Creating all entities for subject 2

This commit is contained in:
2025-09-26 16:18:22 +01:00
parent cd0e4e6431
commit 1078244eeb
12 changed files with 146 additions and 4 deletions

13
PyroFetes/Models/User.cs Normal file
View File

@@ -0,0 +1,13 @@
using System.ComponentModel.DataAnnotations;
namespace PyroFetes.Models;
public class User
{
[Key] public int Id { get; set; }
[Required, MaxLength(100)] public string? Name { get; set; }
[Required, MinLength(12)] public string? Password { get; set; }
[Required] public string? Salt { get; set; }
[Required] public string? Email { get; set; }
[Required] public string? Fonction { get; set; }
}