using Microsoft.EntityFrameworkCore.Migrations; namespace Yi.Framework.Model.Migrations { public partial class yi1 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "user", columns: table => new { id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), name = table.Column(type: "TEXT", nullable: true), age = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { table.PrimaryKey("PK_user", x => x.id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "user"); } } }