1234567891011121314151617181920212223242526272829303132 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
- namespace Repository.Migrations
- {
- public partial class AddInformation : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "Informations",
- columns: table => new
- {
- Id = table.Column<Guid>(nullable: false),
- OperatorCode = table.Column<string>(nullable: true),
- ProCode = table.Column<string>(nullable: true),
- SpendTime = table.Column<int>(nullable: false),
- CreateTime = table.Column<DateTime>(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Informations", x => x.Id);
- });
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "Informations");
- }
- }
- }
|