Add project files.

This commit is contained in:
KhasanovAM
2026-01-18 00:30:29 +04:00
parent 9c5a7ce993
commit 61a598aceb
27 changed files with 1974 additions and 0 deletions

22
Models/User.cs Normal file
View File

@@ -0,0 +1,22 @@
using System.ComponentModel.DataAnnotations;
namespace LogisticsApp.Server.Models
{
public class User
{
[Key]
public int Id { get; set; }
[Required]
[StringLength(50)]
public string Username { get; set; } = string.Empty;
[Required]
public string PasswordHash { get; set; } = string.Empty;
[Required]
public string Role { get; set; } = "admin"; // admin, user
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}
}