continue Gangwar System
This commit is contained in:
1384
ReallifeGamemode.Database/Migrations/20191129201024_Turfs.Designer.cs
generated
Normal file
1384
ReallifeGamemode.Database/Migrations/20191129201024_Turfs.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
37
ReallifeGamemode.Database/Migrations/20191129201024_Turfs.cs
Normal file
37
ReallifeGamemode.Database/Migrations/20191129201024_Turfs.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ReallifeGamemode.Database.Migrations
|
||||
{
|
||||
public partial class Turfs : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Turfs",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
FactionId = table.Column<int>(nullable: true),
|
||||
Owner = table.Column<string>(nullable: true),
|
||||
Name = table.Column<string>(nullable: true),
|
||||
X = table.Column<int>(nullable: false),
|
||||
Y = table.Column<int>(nullable: false),
|
||||
Rotation = table.Column<float>(nullable: false),
|
||||
Range = table.Column<float>(nullable: false),
|
||||
Color = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Turfs", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Turfs");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -890,6 +890,32 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
b.ToTable("TuningGarages");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Turfs", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<int>("Color");
|
||||
|
||||
b.Property<int?>("FactionId");
|
||||
|
||||
b.Property<string>("Name");
|
||||
|
||||
b.Property<string>("Owner");
|
||||
|
||||
b.Property<float>("Range");
|
||||
|
||||
b.Property<float>("Rotation");
|
||||
|
||||
b.Property<int>("X");
|
||||
|
||||
b.Property<int>("Y");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Turfs");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.User", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
|
||||
Reference in New Issue
Block a user