using System.ComponentModel.DataAnnotations;

namespace Fengling.Console.Models.Dtos;

public class CreateUserDto
{
    [Required]
    public string UserName { get; set; } = string.Empty;

    [Required]
    [EmailAddress]
    public string Email { get; set; } = string.Empty;

    [Required]
    public string RealName { get; set; } = string.Empty;

    public string? Phone { get; set; }

    public long? TenantId { get; set; }

    public List<long> RoleIds { get; set; } = new();

    [Required]
    [MinLength(6)]
    public string Password { get; set; } = string.Empty;

    public bool EmailConfirmed { get; set; }

    public bool IsActive { get; set; } = true;
}
