renis-backend/Database/Models/User.cs
Nikolai Papin 6880715087 Db models
2024-09-07 11:36:46 +03:00

16 lines
344 B
C#

using System.ComponentModel.DataAnnotations;
namespace Renis.Database.Models;
public class User
{
[Key]
public long Id { get; set; }
[Required]
public string Name { get; set; } = null!;
[Phone]
[Required]
public string Phone { get; set; } = null!;
[Required]
public string Password { get; set; } = null!;
}