Skip to content

Commit

Permalink
если это не пофиксит сборку - я удаляю лост парадайз
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgencheg committed Sep 8, 2024
1 parent 8047485 commit f70193d
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -568,29 +568,31 @@ protected override void BuildModel(ModelBuilder modelBuilder)
});
#if LPP_Sponsors
modelBuilder.Entity("Content.Server.Database.Donate", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("donate_id");
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("donate_id");

b.Property<string>("DonateName")
.IsRequired()
.HasColumnType("text")
.HasColumnName("donate_name");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));

b.Property<string>("DonateName")
.IsRequired()
.HasColumnType("text")
.HasColumnName("donate_name");

b.Property<int>("ProfileId")
.HasColumnType("integer")
.HasColumnName("profile_id");
b.Property<int>("ProfileId")
.HasColumnType("integer")
.HasColumnName("profile_id");

b.HasKey("Id")
.HasName("PK_donate");
b.HasKey("Id")
.HasName("PK_donate");

b.HasIndex("ProfileId", "DonateName")
.IsUnique();
b.HasIndex("ProfileId", "DonateName")
.IsUnique();

b.ToTable("donate", (string)null);
});
b.ToTable("donate", (string)null);
});
#endif
modelBuilder.Entity("Content.Server.Database.Job", b =>
{
Expand Down Expand Up @@ -1238,46 +1240,50 @@ protected override void BuildModel(ModelBuilder modelBuilder)
});
#if LPP_Sponsors
modelBuilder.Entity("Content.Server.Database.Sponsor", b =>
{
b.Property<Guid>("UserId")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("user_id");

b.Property<bool>("AllowJob")
.HasColumnType("boolean")
.HasColumnName("allow_job");

b.Property<string>("AllowedMarkings")
.IsRequired()
.HasColumnType("text")
.HasColumnName("allowed_markings");

b.Property<int>("ExtraSlots")
.HasColumnType("integer")
.HasColumnName("extra_slots");

b.Property<bool>("HavePriorityJoin")
.HasColumnType("boolean")
.HasColumnName("have_priority_join");

b.Property<string>("OOCColor")
.IsRequired()
.HasColumnType("text")
.HasColumnName("ooccolor");

b.Property<int>("Tier")
.HasColumnType("integer")
.HasColumnName("tier");

b.HasKey("UserId")
.HasName("PK_sponsors");

b.HasIndex("UserId")
.IsUnique();

b.ToTable("sponsors", (string)null);
});
{
b.Property<Guid>("UserId")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("user_id");

b.Property<bool>("AllowJob")
.HasColumnType("boolean")
.HasColumnName("allow_job");

b.Property<string>("AllowedMarkings")
.IsRequired()
.HasColumnType("text")
.HasColumnName("allowed_markings");

b.Property<DateTime>("ExpireDate")
.HasColumnType("timestamp with time zone")
.HasColumnName("expire_date");

b.Property<int>("ExtraSlots")
.HasColumnType("integer")
.HasColumnName("extra_slots");

b.Property<bool>("HavePriorityJoin")
.HasColumnType("boolean")
.HasColumnName("have_priority_join");

b.Property<string>("OOCColor")
.IsRequired()
.HasColumnType("text")
.HasColumnName("ooccolor");

b.Property<int>("Tier")
.HasColumnType("integer")
.HasColumnName("tier");

b.HasKey("UserId")
.HasName("PK_sponsors");

b.HasIndex("UserId")
.IsUnique();

b.ToTable("sponsors", (string)null);
});
#endif
modelBuilder.Entity("Content.Server.Database.Trait", b =>
{
Expand Down Expand Up @@ -1601,7 +1607,19 @@ protected override void BuildModel(ModelBuilder modelBuilder)

b.Navigation("Server");
});
#if LPP_Sponsors
modelBuilder.Entity("Content.Server.Database.Donate", b =>
{
b.HasOne("Content.Server.Database.Profile", "Profile")
.WithMany("Donate")
.HasForeignKey("ProfileId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("FK_donate_profile_profile_id");

b.Navigation("Profile");
});
#endif
modelBuilder.Entity("Content.Server.Database.Job", b =>
{
b.HasOne("Content.Server.Database.Profile", "Profile")
Expand Down Expand Up @@ -1847,7 +1865,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
modelBuilder.Entity("Content.Server.Database.Profile", b =>
{
b.Navigation("Antags");

#if LPP_Sponsors
b.Navigation("Donate");
#endif
b.Navigation("Jobs");

b.Navigation("Loadouts");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -534,29 +534,29 @@ protected override void BuildModel(ModelBuilder modelBuilder)
});
#if LPP_Sponsors
modelBuilder.Entity("Content.Server.Database.Donate", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasColumnName("donate_id");
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasColumnName("donate_id");

b.Property<string>("DonateName")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("donate_name");
b.Property<string>("DonateName")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("donate_name");

b.Property<int>("ProfileId")
.HasColumnType("INTEGER")
.HasColumnName("profile_id");
b.Property<int>("ProfileId")
.HasColumnType("INTEGER")
.HasColumnName("profile_id");

b.HasKey("Id")
.HasName("PK_donate");
b.HasKey("Id")
.HasName("PK_donate");

b.HasIndex("ProfileId", "DonateName")
.IsUnique();
b.HasIndex("ProfileId", "DonateName")
.IsUnique();

b.ToTable("donate", (string)null);
});
b.ToTable("donate", (string)null);
});
#endif
modelBuilder.Entity("Content.Server.Database.Job", b =>
{
Expand Down Expand Up @@ -1540,7 +1540,19 @@ protected override void BuildModel(ModelBuilder modelBuilder)

b.Navigation("Server");
});
#if LPP_Sponsors
modelBuilder.Entity("Content.Server.Database.Donate", b =>
{
b.HasOne("Content.Server.Database.Profile", "Profile")
.WithMany("Donate")
.HasForeignKey("ProfileId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("FK_donate_profile_profile_id");

b.Navigation("Profile");
});
#endif
modelBuilder.Entity("Content.Server.Database.Job", b =>
{
b.HasOne("Content.Server.Database.Profile", "Profile")
Expand Down Expand Up @@ -1786,7 +1798,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
modelBuilder.Entity("Content.Server.Database.Profile", b =>
{
b.Navigation("Antags");

#if LPP_Sponsors
b.Navigation("Donate");
#endif
b.Navigation("Jobs");

b.Navigation("Loadouts");
Expand Down

0 comments on commit f70193d

Please sign in to comment.