initial commit from an older template
This commit is contained in:
18
Models/Database/Right.cs
Executable file
18
Models/Database/Right.cs
Executable file
@@ -0,0 +1,18 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace GamificationService.Models.Database;
|
||||
|
||||
public class Right
|
||||
{
|
||||
[Key]
|
||||
public long Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(50)]
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
[StringLength(100)]
|
||||
public string? Description { get; set; }
|
||||
|
||||
public List<RoleRight> RoleRights { get; set; } = new List<RoleRight>();
|
||||
}
|
||||
Reference in New Issue
Block a user