migration: notificacion datetime

This commit is contained in:
2025-01-05 18:00:19 -03:00
parent b176ee64b2
commit 5b3e65db2f
2 changed files with 7 additions and 7 deletions

View File

@@ -378,7 +378,7 @@ public partial class AlquilaFacilContext : DbContext
modelBuilder.Entity<Notificacione>(entity => modelBuilder.Entity<Notificacione>(entity =>
{ {
entity.HasKey(e => e.Dnicliente).HasName("PRIMARY"); entity.HasKey(e => new { e.Dnicliente, e.Fecha }).HasName("PRIMARY");
entity.HasIndex(e => e.Idpropiedad, "FK_NOTPROP"); entity.HasIndex(e => e.Idpropiedad, "FK_NOTPROP");
@@ -387,15 +387,15 @@ public partial class AlquilaFacilContext : DbContext
entity.Property(e => e.Dnicliente) entity.Property(e => e.Dnicliente)
.HasColumnType("bigint(20)") .HasColumnType("bigint(20)")
.HasColumnName("dnicliente"); .HasColumnName("dnicliente");
entity.Property(e => e.Fecha)
.HasColumnType("datetime")
.HasColumnName("fecha");
entity.Property(e => e.Accion) entity.Property(e => e.Accion)
.HasMaxLength(15) .HasMaxLength(15)
.HasColumnName("accion"); .HasColumnName("accion");
entity.Property(e => e.Dniremitente) entity.Property(e => e.Dniremitente)
.HasColumnType("bigint(20)") .HasColumnType("bigint(20)")
.HasColumnName("dniremitente"); .HasColumnName("dniremitente");
entity.Property(e => e.Fecha)
.HasColumnType("date")
.HasColumnName("fecha");
entity.Property(e => e.Idpropiedad) entity.Property(e => e.Idpropiedad)
.HasColumnType("int(11)") .HasColumnType("int(11)")
.HasColumnName("idpropiedad"); .HasColumnName("idpropiedad");
@@ -404,8 +404,8 @@ public partial class AlquilaFacilContext : DbContext
.HasMaxLength(255) .HasMaxLength(255)
.HasColumnName("mensaje"); .HasColumnName("mensaje");
entity.HasOne(d => d.DniclienteNavigation).WithOne(p => p.NotificacioneDniclienteNavigation) entity.HasOne(d => d.DniclienteNavigation).WithMany(p => p.NotificacioneDniclienteNavigations)
.HasForeignKey<Notificacione>(d => d.Dnicliente) .HasForeignKey(d => d.Dnicliente)
.OnDelete(DeleteBehavior.Restrict) .OnDelete(DeleteBehavior.Restrict)
.HasConstraintName("FK_NOTCLI"); .HasConstraintName("FK_NOTCLI");

View File

@@ -27,7 +27,7 @@ public partial class Cliente
public virtual ICollection<Contrato> ContratoDnipropietarioNavigations { get; set; } = new List<Contrato>(); public virtual ICollection<Contrato> ContratoDnipropietarioNavigations { get; set; } = new List<Contrato>();
public virtual Notificacione? NotificacioneDniclienteNavigation { get; set; } public virtual ICollection<Notificacione> NotificacioneDniclienteNavigations { get; set; } = new List<Notificacione>();
public virtual ICollection<Notificacione> NotificacioneDniremitenteNavigations { get; set; } = new List<Notificacione>(); public virtual ICollection<Notificacione> NotificacioneDniremitenteNavigations { get; set; } = new List<Notificacione>();