añadido un bit de habilitado

This commit is contained in:
2025-04-25 11:23:42 -03:00
parent eeb2ff1c65
commit df751ead57
2 changed files with 6 additions and 0 deletions

View File

@@ -424,6 +424,10 @@ public partial class AlquilaFacilContext : DbContext
entity.Property(e => e.Id)
.HasColumnType("int(11)")
.HasColumnName("id");
entity.Property(e => e.Habilitado)
.IsRequired()
.HasDefaultValueSql("'1'")
.HasColumnName("habilitado");
entity.Property(e => e.Nombre)
.HasMaxLength(12)
.HasColumnName("nombre");

View File

@@ -10,6 +10,8 @@ public partial class Grupo:IComponenteSeguridad
public string Nombre { get; set; } = null!;
public bool? Habilitado { get; set; }
[JsonIgnore]
public virtual ICollection<Grupo> IdGrupoHijos { get; set; } = new List<Grupo>();