134 lines
4.4 KiB
C#
134 lines
4.4 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using ConnectionsAPI.Database;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace ConnectionsAPI.Database.Migrations
|
|
{
|
|
[DbContext(typeof(ConnectionsContext))]
|
|
partial class ConnectionsContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "8.0.4");
|
|
|
|
modelBuilder.Entity("ConnectionsAPI.Database.Entities.ConnectionsCard", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("CategoriesCategoryId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("CategoryId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Content")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Position")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CategoryId");
|
|
|
|
b.ToTable("ConnectionsCard");
|
|
});
|
|
|
|
modelBuilder.Entity("ConnectionsAPI.Database.Entities.ConnectionsCategory", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Color")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("ConnectionsPuzzleId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ConnectionsPuzzleId");
|
|
|
|
b.ToTable("ConnectionsCategory");
|
|
});
|
|
|
|
modelBuilder.Entity("ConnectionsAPI.Database.Entities.ConnectionsPuzzle", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ContentMD5")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("CreatedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("EditorName")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Index")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("PrintDate")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PrintDate")
|
|
.IsUnique();
|
|
|
|
b.ToTable("ConnectionsPuzzles");
|
|
});
|
|
|
|
modelBuilder.Entity("ConnectionsAPI.Database.Entities.ConnectionsCard", b =>
|
|
{
|
|
b.HasOne("ConnectionsAPI.Database.Entities.ConnectionsCategory", "Category")
|
|
.WithMany("Cards")
|
|
.HasForeignKey("CategoryId");
|
|
|
|
b.Navigation("Category");
|
|
});
|
|
|
|
modelBuilder.Entity("ConnectionsAPI.Database.Entities.ConnectionsCategory", b =>
|
|
{
|
|
b.HasOne("ConnectionsAPI.Database.Entities.ConnectionsPuzzle", "ConnectionsPuzzle")
|
|
.WithMany("Categories")
|
|
.HasForeignKey("ConnectionsPuzzleId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ConnectionsPuzzle");
|
|
});
|
|
|
|
modelBuilder.Entity("ConnectionsAPI.Database.Entities.ConnectionsCategory", b =>
|
|
{
|
|
b.Navigation("Cards");
|
|
});
|
|
|
|
modelBuilder.Entity("ConnectionsAPI.Database.Entities.ConnectionsPuzzle", b =>
|
|
{
|
|
b.Navigation("Categories");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|