first commit

This commit is contained in:
2026-01-10 23:14:51 -06:00
commit 389715b4b4
503 changed files with 98244 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Rs_system.Models;
[Table("configuracion_sistema")]
public class ConfiguracionSistema
{
[Key]
[Column("id")]
public int Id { get; set; }
[Required]
[Column("clave")]
[StringLength(100)]
public string Clave { get; set; } = string.Empty;
[Column("valor")]
public string? Valor { get; set; }
[Column("tipo_dato")]
[StringLength(20)]
public string TipoDato { get; set; } = "TEXTO";
[Column("categoria")]
[StringLength(50)]
public string Categoria { get; set; } = "GENERAL";
[Column("grupo")]
[StringLength(50)]
public string Grupo { get; set; } = "SISTEMA";
[Column("descripcion")]
public string? Descripcion { get; set; }
[Column("es_editable")]
public bool EsEditable { get; set; } = true;
[Column("es_publico")]
public bool EsPublico { get; set; } = false;
[Column("orden")]
public int Orden { get; set; } = 0;
[Column("opciones", TypeName = "jsonb")]
public string? Opciones { get; set; }
[Column("validacion_regex")]
[StringLength(200)]
public string? ValidacionRegex { get; set; }
[Column("creado_en")]
public DateTime CreadoEn { get; set; } = DateTime.UtcNow;
[Column("actualizado_en")]
public DateTime ActualizadoEn { get; set; } = DateTime.UtcNow;
}