80 lines
2.5 KiB
C#
80 lines
2.5 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using FSI.BT.IR.Organization.Db.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace FSI.BT.IR.Organization.Db.Migrations
|
|
{
|
|
[DbContext(typeof(AppDbContext))]
|
|
partial class AppDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "8.0.10");
|
|
|
|
modelBuilder.Entity("FSI.BT.IR.Organization.Db.Models.Organization", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("Created")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("FullShortName")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("ParentId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ShortName")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("Updated")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ParentId");
|
|
|
|
b.ToTable("Organizations");
|
|
});
|
|
|
|
modelBuilder.Entity("FSI.BT.IR.Organization.Db.Models.Organization", b =>
|
|
{
|
|
b.HasOne("FSI.BT.IR.Organization.Db.Models.Organization", "Parent")
|
|
.WithMany("Parents")
|
|
.HasForeignKey("ParentId");
|
|
|
|
b.Navigation("Parent");
|
|
});
|
|
|
|
modelBuilder.Entity("FSI.BT.IR.Organization.Db.Models.Organization", b =>
|
|
{
|
|
b.Navigation("Parents");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|