From fb3e3ed608780e2db3ba5b3cef93e098d14af43d Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 17 Nov 2022 20:15:50 -0600 Subject: AƱadido modelo de usuario personalizado MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Models/ApplicationDbContext.cs | 3 +-- Models/UserAccount.cs | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 Models/UserAccount.cs diff --git a/Models/ApplicationDbContext.cs b/Models/ApplicationDbContext.cs index 902237d..6288321 100644 --- a/Models/ApplicationDbContext.cs +++ b/Models/ApplicationDbContext.cs @@ -6,7 +6,6 @@ using Microsoft.EntityFrameworkCore; namespace BackendPIA.Models { public class ApplicationDbContext : IdentityDbContext { - public ApplicationDbContext(DbContextOptions options) : base(options) { - } + public ApplicationDbContext(DbContextOptions options) : base(options) {} } } diff --git a/Models/UserAccount.cs b/Models/UserAccount.cs new file mode 100644 index 0000000..54baac5 --- /dev/null +++ b/Models/UserAccount.cs @@ -0,0 +1,9 @@ +using System.ComponentModel.DataAnnotations; +using Microsoft.AspNetCore.Identity; + +namespace BackendPIA.Models { + public class UserAccount : IdentityUser { + [StringLength(64)] + public string? SessionToken { get; set; } + } +} \ No newline at end of file -- cgit v1.2.3