1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using System;
- using FreeSql.DataAnnotations;
- using System.ComponentModel.DataAnnotations;
- using System.Collections.Generic;
- namespace Admin.Core.Model.Admin
- {
-
-
-
- [Table(Name = "ad_role")]
- [Index("uk_role_name", "Name", true)]
- public class RoleEntity: EntityBase
- {
-
-
-
- [MaxLength(50)]
- public string Name { get; set; }
-
-
-
- [Column(DbType = "varchar(100)")]
- public string Description { get; set; }
-
-
-
- public bool Enabled { get; set; } = true;
-
-
-
- public int Sort { get; set; }
- [Navigate(ManyToMany = typeof(UserRoleEntity))]
- public virtual ICollection<UserEntity> Users { get; set; }
- }
- }
|