mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-06-09 17:39:37 +08:00
Initial commit
This commit is contained in:
15
Models/DataBase/Role.cs
Normal file
15
Models/DataBase/Role.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Foxel.Models.DataBase;
|
||||
|
||||
public class Role : BaseModel
|
||||
{
|
||||
[Required]
|
||||
[StringLength(50)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[StringLength(200)]
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
public ICollection<User>? Users { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user