18 lines
431 B
C#
18 lines
431 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!;
|
|
[Required]
|
|
public DateTime PasswordChangeDate { get; set; } = DateTime.UtcNow;
|
|
} |