User Role and Authorization features added

This commit is contained in:
Reginald Cherenfant Jasmin
2023-08-18 15:30:34 -04:00
parent 4160c2300b
commit 22261f42ca
43 changed files with 1003 additions and 5 deletions

View File

@ -0,0 +1,17 @@
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DamageAssesment.Api.UsersAccess.Db
{
public class Token
{
[Key]
public string Id { get; set; }
[Required]
[ForeignKey("User")]
public int UserId { get; set; }
public string? RefreshToken { get; set; }
public bool? IsActive { get; set; }
}
}