//
using System;
using BigRegister.Api.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace BigRegister.Api.Data.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20260705101743_ArchivedHtml")]
partial class ArchivedHtml
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "10.0.9");
modelBuilder.Entity("BigRegister.Api.Data.Aanvraag", b =>
{
b.Property("Id")
.HasColumnType("TEXT");
b.Property("AutoApprovable")
.HasColumnType("INTEGER");
b.Property("CreatedAt")
.HasColumnType("TEXT");
b.Property("DocumentIds")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Draft")
.HasColumnType("TEXT");
b.Property("Owner")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Reden")
.HasColumnType("TEXT");
b.Property("Referentie")
.HasColumnType("TEXT");
b.Property("StepCount")
.HasColumnType("INTEGER");
b.Property("StepIndex")
.HasColumnType("INTEGER");
b.Property("Submitted")
.HasColumnType("INTEGER");
b.Property("SubmittedAt")
.HasColumnType("TEXT");
b.Property("Type")
.IsRequired()
.HasColumnType("TEXT");
b.Property("UpdatedAt")
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Applications");
});
modelBuilder.Entity("BigRegister.Api.Data.AuditEntry", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("Action")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Actor")
.IsRequired()
.HasColumnType("TEXT");
b.Property("At")
.HasColumnType("TEXT");
b.Property("CategoryId")
.IsRequired()
.HasColumnType("TEXT");
b.Property("DocumentId")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("AuditEntries");
});
modelBuilder.Entity("BigRegister.Api.Data.BriefEntity", b =>
{
b.Property("BriefId")
.HasColumnType("TEXT");
b.Property("ArchivedHtml")
.HasColumnType("TEXT");
b.Property("Beroep")
.IsRequired()
.HasColumnType("TEXT");
b.Property("DrafterId")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Owner")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Placeholders")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Sections")
.IsRequired()
.HasColumnType("TEXT");
b.Property("SentOrgTemplateVersion")
.HasColumnType("INTEGER");
b.Property("Status")
.IsRequired()
.HasColumnType("TEXT");
b.Property("SubOrgId")
.IsRequired()
.HasColumnType("TEXT");
b.Property("TemplateId")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("BriefId");
b.HasIndex("Owner")
.IsUnique();
b.ToTable("Briefs");
});
modelBuilder.Entity("BigRegister.Api.Data.OrgTemplateEntity", b =>
{
b.Property("SubOrgId")
.HasColumnType("TEXT");
b.Property("Draft")
.IsRequired()
.HasColumnType("TEXT");
b.Property("History")
.IsRequired()
.HasColumnType("TEXT");
b.Property("PublishedVersion")
.HasColumnType("INTEGER");
b.HasKey("SubOrgId");
b.ToTable("OrgTemplates");
});
modelBuilder.Entity("BigRegister.Api.Data.StoredDocument", b =>
{
b.Property("DocumentId")
.HasColumnType("TEXT");
b.Property("CategoryId")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Content")
.IsRequired()
.HasColumnType("BLOB");
b.Property("ContentType")
.IsRequired()
.HasColumnType("TEXT");
b.Property("FileName")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Linked")
.HasColumnType("INTEGER");
b.Property("LocalId")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Owner")
.IsRequired()
.HasColumnType("TEXT");
b.Property("SizeBytes")
.HasColumnType("INTEGER");
b.Property("UploadedAt")
.HasColumnType("TEXT");
b.Property("WizardId")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("DocumentId");
b.ToTable("Documents");
});
#pragma warning restore 612, 618
}
}
}