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(nullable: false), OperatorCode = table.Column(nullable: true), ProCode = table.Column(nullable: true), SpendTime = table.Column(nullable: false), CreateTime = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_Informations", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Informations"); } } }