diff --git a/GPW.CORE.Data/DbModels/RegMalattieModel.cs b/GPW.CORE.Data/DbModels/RegMalattieModel.cs
new file mode 100644
index 0000000..74e931f
--- /dev/null
+++ b/GPW.CORE.Data/DbModels/RegMalattieModel.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace GPW.CORE.Data.DbModels
+{
+ //
+ // This is here so CodeMaid doesn't reorganize this document
+ //
+ [Table("RegMalattie")]
+ public partial class RegMalattieModel
+ {
+ [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int IdxRegMal { get; set; }
+ public int idxDipendente { get; set; }
+ public DateTime dtInizio { get; set; } = DateTime.Today;
+ public int numGG { get; set; } = 1;
+ public string codCert { get; set; } = "";
+ }
+}
diff --git a/GPW.CORE.Data/GPWContext.cs b/GPW.CORE.Data/GPWContext.cs
index 6d13b92..5d4487d 100644
--- a/GPW.CORE.Data/GPWContext.cs
+++ b/GPW.CORE.Data/GPWContext.cs
@@ -55,6 +55,7 @@ namespace GPW.CORE.Data
public virtual DbSet DbSetAnagKeyValue { get; set; } = null!;
public virtual DbSet DbSetAnagTipoTimb { get; set; } = null!;
public virtual DbSet DbSetDipendenti2Gruppi { get; set; } = null!;
+ public virtual DbSet DbSetRegMalattie { get; set; } = null!;
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
@@ -772,6 +773,12 @@ namespace GPW.CORE.Data
.HasColumnName("oraFine_3");
});
+ modelBuilder.Entity(entity =>
+ {
+ entity.Property(e => e.codCert)
+ .HasMaxLength(250);
+ });
+
OnModelCreatingPartial(modelBuilder);
}