Modèles User et Role
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Knots.Models;
|
||||
|
||||
public class Role
|
||||
{
|
||||
|
||||
public int Id { get; set; }
|
||||
[Required] public string Libelle { get; set; }
|
||||
}
|
||||
@@ -1,6 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Knots.Models;
|
||||
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user