29 lines
724 B
C#
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;
|
|
}
|
|
}
|