in dotnet/space-translate/SpaceTranslate/Migrations/20220316152050_Initial.Designer.cs [17:106]
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.0");
modelBuilder.Entity("SpaceTranslate.Database.Organization", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("ClientId")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("ClientSecret")
.IsRequired()
.HasColumnType("TEXT");
b.Property<DateTimeOffset>("Created")
.HasColumnType("TEXT");
b.Property<string>("ServerUrl")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("SigningKey")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex(new[] { "ClientId" }, "IX_ClientId");
b.HasIndex(new[] { "ServerUrl" }, "IX_ServerUrl");
b.ToTable("Organizations");
});
modelBuilder.Entity("SpaceTranslate.Database.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTimeOffset>("Created")
.HasColumnType("TEXT");
b.Property<int>("OrganizationId")
.HasColumnType("INTEGER");
b.Property<string>("RefreshToken")
.HasColumnType("TEXT");
b.Property<string>("Scope")
.HasMaxLength(2147483647)
.HasColumnType("TEXT");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("OrganizationId");
b.ToTable("Users");
});
modelBuilder.Entity("SpaceTranslate.Database.User", b =>
{
b.HasOne("SpaceTranslate.Database.Organization", "Organization")
.WithMany("Users")
.HasForeignKey("OrganizationId")
.OnDelete(DeleteBehavior.ClientCascade)
.IsRequired();
b.Navigation("Organization");
});
modelBuilder.Entity("SpaceTranslate.Database.Organization", b =>
{
b.Navigation("Users");
});
#pragma warning restore 612, 618
}