using System; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace Yi.Framework.Model.Migrations { public partial class yi5 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "visit", columns: table => new { id = table.Column(type: "int", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), time = table.Column(type: "datetime(6)", nullable: false), num = table.Column(type: "int", nullable: false), is_delete = table.Column(type: "int", nullable: false) }, constraints: table => { table.PrimaryKey("PK_visit", x => x.id); }) .Annotation("MySql:CharSet", "utf8mb4"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "visit"); } } }