2021-11-24 11:30:29 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2021-11-26 17:05:41 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
2021-11-24 11:30:29 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
|
{
|
2021-11-26 17:05:41 +05:00
|
|
|
|
[Table("t_permission"), Comment("Описание битов разрешений для ролей пользователей")]
|
2021-11-24 11:30:29 +05:00
|
|
|
|
public class Permission
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
[Column("id")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
2021-11-26 17:05:41 +05:00
|
|
|
|
[Column("index"), Comment("Порядковый номер бита. \n В нем 0-запрещено, 1-разрешено.")]
|
|
|
|
|
public string Index { get; set; }
|
2021-11-24 11:30:29 +05:00
|
|
|
|
|
2021-11-26 17:05:41 +05:00
|
|
|
|
[Column("description"), Comment("Описание разрешений")]
|
|
|
|
|
[StringLength(255)]
|
|
|
|
|
public string Description { get; set; }
|
2021-11-24 11:30:29 +05:00
|
|
|
|
}
|
|
|
|
|
}
|