Skip to content
Snippets Groups Projects
Commit 90055141 authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Fix: Update dependencies

parent 5374efc9
No related branches found
No related tags found
1 merge request!183Fix: Update dependencies
......@@ -345,6 +345,9 @@ namespace Coscine.Database.DataModel
{
entity.ToTable("Log");
entity.HasIndex(e => new { e.UserId, e.LogLevel, e.ServerTimestamp })
.HasName("log_idx_userid_loglevel_servertime");
entity.Property(e => e.Id).HasDefaultValueSql("(newid())");
entity.Property(e => e.ClientTimestamp)
......@@ -497,6 +500,7 @@ namespace Coscine.Database.DataModel
entity.HasOne(d => d.Resource)
.WithMany(p => p.ProjectResources)
.HasForeignKey(d => d.ResourceId)
.OnDelete(DeleteBehavior.ClientSetNull)
.HasConstraintName("FK_ProjectResource_ResourceId_Resources_Id");
});
......@@ -683,6 +687,7 @@ namespace Coscine.Database.DataModel
entity.HasOne(d => d.Resource)
.WithMany(p => p.ResourceDisciplines)
.HasForeignKey(d => d.ResourceId)
.OnDelete(DeleteBehavior.ClientSetNull)
.HasConstraintName("FK_ResourceDiscipline_ResourceId_Resources_Id");
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment