Store round start date in the database (#21153)

This commit is contained in:
DrSmugleaf
2023-10-22 21:01:48 -07:00
committed by GitHub
parent 190b1f61f2
commit 43d5c00648
8 changed files with 3584 additions and 0 deletions

View File

@@ -856,12 +856,20 @@ namespace Content.Server.Database.Migrations.Postgres
.HasColumnType("integer")
.HasColumnName("server_id");
b.Property<DateTime>("StartDate")
.ValueGeneratedOnAdd()
.HasColumnType("timestamp with time zone")
.HasDefaultValue(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified))
.HasColumnName("start_date");
b.HasKey("Id")
.HasName("PK_round");
b.HasIndex("ServerId")
.HasDatabaseName("IX_round_server_id");
b.HasIndex("StartDate");
b.ToTable("round", (string)null);
});