INBOX-0: regenerate AddRequestsAndMailSettings migration after rebase onto WEB-0 (clean snapshot: CMS + INBOX, Up adds only Requests+MailSettings)
This commit is contained in:
@@ -11,7 +11,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|||||||
namespace GerbilManagerWebAPI.Migrations
|
namespace GerbilManagerWebAPI.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(ApplicationContext))]
|
[DbContext(typeof(ApplicationContext))]
|
||||||
[Migration("20260606073142_AddRequestsAndMailSettings")]
|
[Migration("20260606074229_AddRequestsAndMailSettings")]
|
||||||
partial class AddRequestsAndMailSettings
|
partial class AddRequestsAndMailSettings
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@@ -24,6 +24,91 @@ namespace GerbilManagerWebAPI.Migrations
|
|||||||
|
|
||||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||||
|
|
||||||
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.Block", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
|
b.Property<string>("Data")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<int>("Order")
|
||||||
|
.HasColumnType("integer");
|
||||||
|
|
||||||
|
b.Property<Guid>("PageId")
|
||||||
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
|
b.Property<string>("Type")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("PageId");
|
||||||
|
|
||||||
|
b.ToTable("Blocks");
|
||||||
|
|
||||||
|
b.HasData(
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("51720002-0000-0000-0000-000000000001"),
|
||||||
|
Data = "{\"text\":\"Startseite\",\"level\":1}",
|
||||||
|
Order = 0,
|
||||||
|
PageId = new Guid("51720001-0000-0000-0000-000000000001"),
|
||||||
|
Type = "Heading"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("51720002-0000-0000-0000-000000000002"),
|
||||||
|
Data = "{\"text\":\"Über die Zucht\",\"level\":1}",
|
||||||
|
Order = 0,
|
||||||
|
PageId = new Guid("51720001-0000-0000-0000-000000000002"),
|
||||||
|
Type = "Heading"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("51720002-0000-0000-0000-000000000003"),
|
||||||
|
Data = "{\"text\":\"Abgabetiere\",\"level\":1}",
|
||||||
|
Order = 0,
|
||||||
|
PageId = new Guid("51720001-0000-0000-0000-000000000003"),
|
||||||
|
Type = "Heading"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("51720002-0000-0000-0000-000000000004"),
|
||||||
|
Data = "{\"text\":\"Abgabebedingungen\",\"level\":1}",
|
||||||
|
Order = 0,
|
||||||
|
PageId = new Guid("51720001-0000-0000-0000-000000000004"),
|
||||||
|
Type = "Heading"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("51720002-0000-0000-0000-000000000005"),
|
||||||
|
Data = "{\"text\":\"Farben & Genetik\",\"level\":1}",
|
||||||
|
Order = 0,
|
||||||
|
PageId = new Guid("51720001-0000-0000-0000-000000000005"),
|
||||||
|
Type = "Heading"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("51720002-0000-0000-0000-000000000006"),
|
||||||
|
Data = "{\"text\":\"Kontakt\",\"level\":1}",
|
||||||
|
Order = 0,
|
||||||
|
PageId = new Guid("51720001-0000-0000-0000-000000000006"),
|
||||||
|
Type = "Heading"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("51720002-0000-0000-0000-000000000010"),
|
||||||
|
Data = "{\"mode\":\"auto\",\"intro\":\"\"}",
|
||||||
|
Order = 1,
|
||||||
|
PageId = new Guid("51720001-0000-0000-0000-000000000003"),
|
||||||
|
Type = "AbgabetiereList"
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("GerbilManagerWebAPI.Models.BreederSettings", b =>
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.BreederSettings", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
@@ -885,6 +970,107 @@ namespace GerbilManagerWebAPI.Migrations
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.Media", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
|
b.Property<string>("Alt")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("FileName")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<int?>("Height")
|
||||||
|
.HasColumnType("integer");
|
||||||
|
|
||||||
|
b.Property<string>("Url")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<int?>("Width")
|
||||||
|
.HasColumnType("integer");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Media");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.Page", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
|
b.Property<string>("SeoDescription")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("Slug")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("Status")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("Title")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("Slug")
|
||||||
|
.IsUnique();
|
||||||
|
|
||||||
|
b.ToTable("Pages");
|
||||||
|
|
||||||
|
b.HasData(
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("51720001-0000-0000-0000-000000000001"),
|
||||||
|
Slug = "start",
|
||||||
|
Status = "Published",
|
||||||
|
Title = "Startseite"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("51720001-0000-0000-0000-000000000002"),
|
||||||
|
Slug = "ueber-die-zucht",
|
||||||
|
Status = "Published",
|
||||||
|
Title = "Über die Zucht"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("51720001-0000-0000-0000-000000000003"),
|
||||||
|
Slug = "abgabetiere",
|
||||||
|
Status = "Published",
|
||||||
|
Title = "Abgabetiere"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("51720001-0000-0000-0000-000000000004"),
|
||||||
|
Slug = "abgabebedingungen",
|
||||||
|
Status = "Published",
|
||||||
|
Title = "Abgabebedingungen"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("51720001-0000-0000-0000-000000000005"),
|
||||||
|
Slug = "farben-genetik",
|
||||||
|
Status = "Published",
|
||||||
|
Title = "Farben & Genetik"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("51720001-0000-0000-0000-000000000006"),
|
||||||
|
Slug = "kontakt",
|
||||||
|
Status = "Published",
|
||||||
|
Title = "Kontakt"
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("GerbilManagerWebAPI.Models.Request", b =>
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.Request", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
@@ -991,6 +1177,33 @@ namespace GerbilManagerWebAPI.Migrations
|
|||||||
b.ToTable("SaleContractAnimal");
|
b.ToTable("SaleContractAnimal");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.Site", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
|
b.Property<string>("DefaultLocale")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("NavOrder")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Sites");
|
||||||
|
|
||||||
|
b.HasData(
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("5172e000-0000-0000-0000-000000000001"),
|
||||||
|
DefaultLocale = "de",
|
||||||
|
NavOrder = "[\"51720001-0000-0000-0000-000000000001\",\"51720001-0000-0000-0000-000000000002\",\"51720001-0000-0000-0000-000000000003\",\"51720001-0000-0000-0000-000000000004\",\"51720001-0000-0000-0000-000000000005\",\"51720001-0000-0000-0000-000000000006\"]"
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("GerbilManagerWebAPI.Models.WeightRecord", b =>
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.WeightRecord", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
@@ -1016,6 +1229,15 @@ namespace GerbilManagerWebAPI.Migrations
|
|||||||
b.ToTable("WeightRecords");
|
b.ToTable("WeightRecords");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.Block", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("GerbilManagerWebAPI.Models.Page", null)
|
||||||
|
.WithMany("Blocks")
|
||||||
|
.HasForeignKey("PageId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("GerbilManagerWebAPI.Models.Gerbil", b =>
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.Gerbil", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("GerbilManagerWebAPI.Models.ColorVariety", "ColorVariety")
|
b.HasOne("GerbilManagerWebAPI.Models.ColorVariety", "ColorVariety")
|
||||||
@@ -1141,6 +1363,11 @@ namespace GerbilManagerWebAPI.Migrations
|
|||||||
b.Navigation("Gerbils");
|
b.Navigation("Gerbils");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.Page", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Blocks");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("GerbilManagerWebAPI.Models.SaleContract", b =>
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.SaleContract", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("Animals");
|
b.Navigation("Animals");
|
||||||
@@ -927,6 +927,46 @@ namespace GerbilManagerWebAPI.Migrations
|
|||||||
b.ToTable("Litters");
|
b.ToTable("Litters");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.MailSettings", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
|
b.Property<string>("AppPasswordProtected")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<bool>("BackgroundPollEnabled")
|
||||||
|
.HasColumnType("boolean");
|
||||||
|
|
||||||
|
b.Property<string>("Folder")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("GmailAddress")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<long>("LastUid")
|
||||||
|
.HasColumnType("bigint");
|
||||||
|
|
||||||
|
b.Property<int>("PollIntervalMinutes")
|
||||||
|
.HasColumnType("integer");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("MailSettings");
|
||||||
|
|
||||||
|
b.HasData(
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = new Guid("ab0c0000-0000-0000-0000-000000000001"),
|
||||||
|
BackgroundPollEnabled = false,
|
||||||
|
Folder = "INBOX",
|
||||||
|
LastUid = 0L,
|
||||||
|
PollIntervalMinutes = 15
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("GerbilManagerWebAPI.Models.Media", b =>
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.Media", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
@@ -1028,6 +1068,64 @@ namespace GerbilManagerWebAPI.Migrations
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.Request", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
|
b.Property<DateTimeOffset?>("AnsweredAt")
|
||||||
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
|
b.Property<Guid?>("AssignedContactId")
|
||||||
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
|
b.Property<string>("BodyText")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("DraftReply")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("FromAddress")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("FromName")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("GmailMessageId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("InReplyToMessageId")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<DateTimeOffset>("ReceivedAt")
|
||||||
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
|
b.Property<string>("ReferencesHeader")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("Status")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("Subject")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("ThreadId")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("AssignedContactId");
|
||||||
|
|
||||||
|
b.HasIndex("GmailMessageId")
|
||||||
|
.IsUnique();
|
||||||
|
|
||||||
|
b.ToTable("Requests");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("GerbilManagerWebAPI.Models.SaleContract", b =>
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.SaleContract", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
@@ -1210,6 +1308,16 @@ namespace GerbilManagerWebAPI.Migrations
|
|||||||
b.Navigation("Mother");
|
b.Navigation("Mother");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.Request", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("GerbilManagerWebAPI.Models.Contact", "AssignedContact")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("AssignedContactId")
|
||||||
|
.OnDelete(DeleteBehavior.Restrict);
|
||||||
|
|
||||||
|
b.Navigation("AssignedContact");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("GerbilManagerWebAPI.Models.SaleContract", b =>
|
modelBuilder.Entity("GerbilManagerWebAPI.Models.SaleContract", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("GerbilManagerWebAPI.Models.Contact", "Contact")
|
b.HasOne("GerbilManagerWebAPI.Models.Contact", "Contact")
|
||||||
|
|||||||
Reference in New Issue
Block a user