aggiunte tabelle di destinazione + seed userRoles

This commit is contained in:
zaccaria.majid
2023-03-13 09:31:47 +01:00
parent a57877a693
commit bf69a7380b
14 changed files with 1065 additions and 121 deletions
@@ -8,6 +8,7 @@ using System.Threading.Tasks;
namespace WebDoorCreator.Data.DbModels
{
[Table("AspNetUsers")]
public class UsersModel
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
@@ -26,5 +27,8 @@ namespace WebDoorCreator.Data.DbModels
public DateTimeOffset? LockoutEnd { get; set; } = null;
public bool LockoutEnabled { get; set; } = false;
public int AccessFailedCount { get; set; } = 0 ;
[ForeignKey("RoleId")]
protected virtual RolesModel? RolesNav { get; set; }
}
}