using System.ComponentModel.DataAnnotations;

namespace foundation_system.Models.ViewModels
{
    public class CajaChicaViewModel
    {
        public int Id { get; set; }

        [Required]
        [StringLength(100)]
        public string Nombre { get; set; } = string.Empty;

        [Required]
        [Display(Name = "Responsable")]
        public long ResponsableUsuarioId { get; set; }

        [Required]
        [Range(0.01, 10000, ErrorMessage = "El monto asignado debe ser mayor a 0.")]
        [Display(Name = "Monto Asignado")]
        public decimal MontoAsignado { get; set; }

        [Required]
        [DataType(DataType.Date)]
        [Display(Name = "Fecha de Apertura")]
        public DateOnly FechaApertura { get; set; } = DateOnly.FromDateTime(DateTime.Today);
    }
}
