Entity/Migrations/20220819151945_initDB20220819.cs
(完整代码) 1KBusing System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Entity.Migrations
{
public partial class initDB20220819 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ConsumableRecord",
columns: table => new
{
Id = table.Column<string>(type: "varchar(36)", nullable: false),
ConsumableId = table.Column<string>(type: "varchar(36)", nullable: true),
Creator = table.Column<string>(type: "varchar(36)", nullable: true),
Num = table.Column<int>(type: "int", nullable: false),
Type = table.Column<int>(type: "int", nullable: false),
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ConsumableRecord", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ConsumableRecord");
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。