clean up CSharp folder

This commit is contained in:
Muhammad Azeez
2021-01-18 18:32:15 +03:00
parent 0071321f50
commit 04b6e1af7c
201 changed files with 9 additions and 12 deletions

View 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");
}
}
}