23 lines
478 B
C#
23 lines
478 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.AspNetCore.Identity;
|
|
|
|
namespace T120B165_ImgBoard.Models;
|
|
|
|
public static class UserRoles
|
|
{
|
|
public const string Admin = "Admin";
|
|
public const string Regular = "Regular";
|
|
}
|
|
|
|
public class RefreshToken
|
|
{
|
|
[Key]
|
|
public string Token { get; set; }
|
|
public User User { get; set; }
|
|
public DateTime Expires { get; set; }
|
|
}
|
|
|
|
public class User : IdentityUser
|
|
{
|
|
//public List<Post> Posts { get; set; }
|
|
}; |