Files
foundation_system/foundation_system/Models/CategoriaGasto.cs
2025-12-31 15:24:23 -06:00

29 lines
724 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace foundation_system.Models
{
[Table("categorias_gastos")]
public class CategoriaGasto
{
[Key]
[Column("id")]
public int Id { get; set; }
[Required]
[StringLength(100)]
[Column("nombre")]
public string Nombre { get; set; } = string.Empty;
[StringLength(50)]
[Column("codigo_cuenta_contable")]
public string? CodigoCuentaContable { get; set; }
[Column("activo")]
public bool Activo { get; set; } = true;
[Column("creado_en")]
public DateTime CreadoEn { get; set; } = DateTime.UtcNow;
}
}