renis-backend/Database/Models/User.cs

18 lines
431 B
C#
Raw Permalink Normal View History

2024-09-07 08:36:46 +00:00
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!;
2024-09-07 10:34:38 +00:00
[Required]
public DateTime PasswordChangeDate { get; set; } = DateTime.UtcNow;
2024-09-07 08:36:46 +00:00
}