23 lines
618 B
C#
23 lines
618 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WebDoorCreator.Data.DbModels
|
|
{
|
|
[Table("AspNetUserRoles")]
|
|
public class UserRolesModel
|
|
{
|
|
public string UserId { get; set; } = "";
|
|
public string RoleId { get; set; } = "";
|
|
|
|
[ForeignKey("UserId")]
|
|
protected virtual UsersModel? UsersNav { get; set; }
|
|
[ForeignKey("RoleId")]
|
|
protected virtual RolesModel? RolesNav { get; set; }
|
|
}
|
|
}
|