Updated more models

This commit is contained in:
phoenix
2025-04-03 20:01:18 -04:00
parent 725eab7e7f
commit a091f8c9f9
16 changed files with 71 additions and 16 deletions
+8
View File
@@ -21,6 +21,14 @@ public class SongContext : DbContext
modelBuilder.Entity<Song>()
.ToTable("Song");
modelBuilder.Entity<Song>(entity =>
{
entity.HasKey(e => e.Id);
entity.Property(e => e.Id)
.HasColumnType("binary(16)");
});
modelBuilder.Entity<Song>()
.Property(s => s.Year)
.IsRequired(false);