using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace VOL.Core.Migrations { public partial class _20250514v2 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "G_Article", columns: table => new { Id = table.Column(type: "int", nullable: false, comment: "Id") .Annotation("SqlServer:Identity", "1, 1"), Tiele = table.Column(type: "nvarchar(1000)", nullable: true, comment: "文章标题"), Abstract = table.Column(type: "nvarchar(2000)", nullable: true, comment: "摘要"), CoverImage = table.Column(type: "nvarchar(1000)", nullable: true, comment: "封面图"), ArticleUrl = table.Column(type: "nvarchar(1000)", nullable: true, comment: "文章地址"), UpdateDate = table.Column(type: "datetime", nullable: false, comment: "更新时间") }, constraints: table => { table.PrimaryKey("PK_G_Article", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "G_Article"); } } }