forked from gongxuegit/tiku-backend.net
feat: enforce tenant isolation and shared question bank
This commit is contained in:
@@ -182,7 +182,7 @@ internal sealed class ContentImportItemConfiguration : IEntityTypeConfiguration<
|
||||
builder.Property(entity => entity.SourcePayload).IsJson("{}");
|
||||
builder.Property(entity => entity.NormalizedPayload).IsJson("{}");
|
||||
builder.Property(entity => entity.ContentHash).HasMaxLength(128);
|
||||
builder.HasIndex(entity => new { entity.JobId, entity.RowNo }).IsUnique();
|
||||
builder.HasIndex(entity => new { entity.TenantId, entity.JobId, entity.RowNo }).IsUnique();
|
||||
builder.HasIndex(entity => new { entity.TenantId, entity.JobId, entity.Status, entity.RowNo });
|
||||
builder.ToTable(table =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user