server/aspnetapp/Migrations/20220425020125_goods.cs
(完整代码) 3KBusing System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace aspnetapp.Migrations
{
public partial class goods : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "goods",
columns: table => new
{
goods_id = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
goods_name = table.Column<string>(type: "longtext", nullable: false, collation: "utf8_general_ci")
.Annotation("MySql:CharSet", "utf8"),
goods_characteristic = table.Column<string>(type: "longtext", nullable: false, collation: "utf8_general_ci")
.Annotation("MySql:CharSet", "utf8"),
goods_info = table.Column<string>(type: "longtext", nullable: true, collation: "utf8_general_ci")
.Annotation("MySql:CharSet", "utf8"),
goods_categoryid = table.Column<int>(type: "int", nullable: false),
goods_ordertype = table.Column<int>(type: "int", nullable: true),
goods_isqz = table.Column<bool>(type: "tinyint(1)", nullable: true),
goods_pic = table.Column<string>(type: "longtext", nullable: true, collation: "utf8_general_ci")
.Annotation("MySql:CharSet", "utf8"),
goods_img = table.Column<byte[]>(type: "longblob", nullable: true),
goods_imgname = table.Column<string>(type: "longtext", nullable: true, collation: "utf8_general_ci")
.Annotation("MySql:CharSet", "utf8"),
goods_sortno = table.Column<int>(type: "int", nullable: true),
revision = table.Column<int>(type: "int", nullable: false),
created_by = table.Column<string>(type: "varchar(500)", maxLength: 500, nullable: true, collation: "utf8_general_ci")
.Annotation("MySql:CharSet", "utf8"),
created_dt = table.Column<DateTime>(type: "datetime(6)", nullable: false),
updated_by = table.Column<string>(type: "varchar(500)", maxLength: 500, nullable: true, collation: "utf8_general_ci")
.Annotation("MySql:CharSet", "utf8"),
updated_dt = table.Column<DateTime>(type: "datetime(6)", nullable: false),
is_deleted = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_goods", x => x.goods_id);
})
.Annotation("MySql:CharSet", "utf8")
.Annotation("Relational:Collation", "utf8_general_ci");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "goods");
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。