mirror of
https://github.com/yawaflua/PL_JusticeBot.git
synced 2025-12-10 04:19:31 +02:00
добавил патенты, верификацию, сделал паспорта, ип ооо
This commit is contained in:
@@ -21,6 +21,46 @@ namespace DiscordApp.Migrations
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("DiscordApp.Database.Tables.ArtsPatents", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<long>("Date")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("Employee")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int[]>("Number")
|
||||
.IsRequired()
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.Property<string>("Size")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("isAllowedToResell")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<int>("passportId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("passportId");
|
||||
|
||||
b.ToTable("ArtsPatent", "public");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscordApp.Database.Tables.Autobranches", b =>
|
||||
{
|
||||
b.Property<decimal>("ChannelId")
|
||||
@@ -36,6 +76,86 @@ namespace DiscordApp.Migrations
|
||||
b.ToTable("Autobranches", "public");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscordApp.Database.Tables.Bizness", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("ApplicantId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int[]>("BiznessEmployes")
|
||||
.IsRequired()
|
||||
.HasColumnType("integer[]");
|
||||
|
||||
b.Property<string>("BiznessName")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("BiznessType")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("CardNumber")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<long>("Date")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("Employee")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ApplicantId");
|
||||
|
||||
b.ToTable("Bizness");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscordApp.Database.Tables.BooksPatents", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Annotation")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<long>("Date")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("Employee")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Janre")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("isAllowedToResell")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<int>("passportId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("passportId");
|
||||
|
||||
b.ToTable("BooksPatent", "public");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscordApp.Database.Tables.Passport", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -72,6 +192,39 @@ namespace DiscordApp.Migrations
|
||||
|
||||
b.ToTable("Passport", "public");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscordApp.Database.Tables.ArtsPatents", b =>
|
||||
{
|
||||
b.HasOne("DiscordApp.Database.Tables.Passport", "passport")
|
||||
.WithMany()
|
||||
.HasForeignKey("passportId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("passport");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscordApp.Database.Tables.Bizness", b =>
|
||||
{
|
||||
b.HasOne("DiscordApp.Database.Tables.Passport", "Applicant")
|
||||
.WithMany()
|
||||
.HasForeignKey("ApplicantId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Applicant");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("DiscordApp.Database.Tables.BooksPatents", b =>
|
||||
{
|
||||
b.HasOne("DiscordApp.Database.Tables.Passport", "passport")
|
||||
.WithMany()
|
||||
.HasForeignKey("passportId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("passport");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user