server/aspnetapp/Migrations/20220407021415_order.cs
(完整代码) 3KBusing System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace aspnetapp.Migrations
{
public partial class order : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Orders",
columns: table => new
{
order_id = table.Column<int>(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
order_buyrusername = table.Column<string>(type: "varchar(500)", maxLength: 500, nullable: false, collation: "utf8_general_ci")
.Annotation("MySql:CharSet", "utf8"),
order_buyruserid = table.Column<int>(type: "int", nullable: false),
order_building = table.Column<string>(type: "varchar(500)", maxLength: 500, nullable: false, collation: "utf8_general_ci")
.Annotation("MySql:CharSet", "utf8"),
order_companyid = table.Column<int>(type: "int", nullable: false),
order_company = table.Column<string>(type: "varchar(1000)", maxLength: 1000, nullable: false, collation: "utf8_general_ci")
.Annotation("MySql:CharSet", "utf8"),
order_departmentid = table.Column<int>(type: "int", nullable: false),
order_department = table.Column<string>(type: "varchar(1000)", maxLength: 1000, nullable: false, collation: "utf8_general_ci")
.Annotation("MySql:CharSet", "utf8"),
order_card = table.Column<string>(type: "varchar(500)", maxLength: 500, nullable: true, collation: "utf8_general_ci")
.Annotation("MySql:CharSet", "utf8"),
order_cardtype = table.Column<int>(type: "int", nullable: true),
order_remark = table.Column<string>(type: "varchar(1000)", maxLength: 1000, nullable: false, collation: "utf8_general_ci")
.Annotation("MySql:CharSet", "utf8"),
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),
is_deleted = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Orders", x => x.order_id);
})
.Annotation("MySql:CharSet", "utf8")
.Annotation("Relational:Collation", "utf8_general_ci");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Orders");
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。