mirror of
https://github.com/ditkrg/AuthorizationServerDemos.git
synced 2026-01-25 14:33:03 +00:00
clean up CSharp folder
This commit is contained in:
34
CSharp/TrafficPoliceApi/Migrations/20210107062802_Vehicle.cs
Normal file
34
CSharp/TrafficPoliceApi/Migrations/20210107062802_Vehicle.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace OidcSamples.TrafficPoliceApi.Migrations
|
||||
{
|
||||
public partial class Vehicle : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "vehicles",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<long>(type: "bigint", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
owner_id = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true),
|
||||
model = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true),
|
||||
color = table.Column<string>(type: "character varying(32)", maxLength: 32, nullable: true),
|
||||
license_plate = table.Column<string>(type: "character varying(32)", maxLength: 32, nullable: true),
|
||||
type = table.Column<int>(type: "integer", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("pk_vehicles", x => x.id);
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "vehicles");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user