20260129 - 01
This commit is contained in:
@@ -2056,6 +2056,8 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
|
||||
entity.HasIndex(e => e.Codigo, "Codigo_UNIQUE").IsUnique();
|
||||
|
||||
entity.HasIndex(e => e.DescripcionAbreviada, "DescripcionAbreviada_UNIQUE").IsUnique();
|
||||
|
||||
entity.HasIndex(e => e.Descripcion, "Descripcion_UNIQUE").IsUnique();
|
||||
|
||||
entity.HasIndex(e => e.idUsuarioCreador, "productos_01_usuarios_idx");
|
||||
@@ -2070,8 +2072,6 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
|
||||
entity.Property(e => e.Codigo).HasMaxLength(40);
|
||||
entity.Property(e => e.CodigoBarras).HasMaxLength(16);
|
||||
entity.Property(e => e.ControlarEnAlbaran).HasMaxLength(2);
|
||||
entity.Property(e => e.CorrespondenciaPatas).HasMaxLength(45);
|
||||
entity.Property(e => e.Descripcion)
|
||||
.HasMaxLength(100)
|
||||
.UseCollation("latin1_swedish_ci")
|
||||
@@ -2079,20 +2079,17 @@ public partial class GrupoSanchoToroContext : DbContext
|
||||
entity.Property(e => e.DescripcionAbreviada).HasMaxLength(45);
|
||||
entity.Property(e => e.FechaBaja).HasColumnType("datetime");
|
||||
entity.Property(e => e.Modelo).HasMaxLength(50);
|
||||
entity.Property(e => e.ModeloGruaPatas).HasMaxLength(45);
|
||||
entity.Property(e => e.ModelosPatas).HasMaxLength(45);
|
||||
entity.Property(e => e.NumeroSerie).HasMaxLength(2);
|
||||
entity.Property(e => e.Observaciones)
|
||||
.HasMaxLength(300)
|
||||
.UseCollation("latin1_swedish_ci")
|
||||
.HasCharSet("latin1");
|
||||
entity.Property(e => e.PrecioVenta).HasDefaultValueSql("'0'");
|
||||
entity.Property(e => e.PrefijoNumeroSerie).HasMaxLength(8);
|
||||
entity.Property(e => e.ReferenciaFabrica).HasMaxLength(45);
|
||||
entity.Property(e => e.StockMinimo).HasMaxLength(45);
|
||||
entity.Property(e => e.Ubicacion).HasMaxLength(45);
|
||||
|
||||
entity.HasOne(d => d.idEmpresaNavigation).WithMany(p => p.productos)
|
||||
.HasForeignKey(d => d.idEmpresa)
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.HasConstraintName("productos_empresas");
|
||||
|
||||
entity.HasOne(d => d.idFamiliaNavigation).WithMany(p => p.productos)
|
||||
|
||||
Reference in New Issue
Block a user