Modèles User et Role

This commit is contained in:
oistig
2026-03-12 15:26:04 +01:00
parent e116708b76
commit 6c019947d5
2 changed files with 13 additions and 2 deletions

View File

@@ -1,6 +1,9 @@
using System.ComponentModel.DataAnnotations;
namespace Knots.Models; namespace Knots.Models;
public class Role public class Role
{ {
public int Id { get; set; }
[Required] public string Libelle { get; set; }
} }

View File

@@ -1,6 +1,14 @@
using System.ComponentModel.DataAnnotations;
namespace Knots.Models; namespace Knots.Models;
public class User public class User
{ {
public int Id { get; set; }
[Required] public string Username { get; set; }
public string? Description {get; set;}
[Required] public string Password { get; set; }
[Required] public string Email { get; set; }
[Required, Length(10, 10)] public string Tel { get; set; }
public string? ProfilePicture { get; set; }
} }