24 lines
545 B
C#
24 lines
545 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace line_gestao_api.Models;
|
|
|
|
public class User
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
|
|
[Required, MaxLength(120)]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[Required, MaxLength(120)]
|
|
public string Email { get; set; } = string.Empty;
|
|
|
|
[MaxLength(20)]
|
|
public string Phone { get; set; } = string.Empty;
|
|
|
|
|
|
[Required]
|
|
public string PasswordHash { get; set; } = string.Empty;
|
|
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
}
|