mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-13 07:20:06 +08:00
15 lines
340 B
C#
15 lines
340 B
C#
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; }
|
|
} |