using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace CloudGaming.Repository.EntityFramework.Admin.Migrations
{
///
public partial class mysql_init : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterDatabase()
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "algorithm_function",
columns: table => new
{
id = table.Column(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_algorithm_function", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "flow",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
number = table.Column(type: "int", nullable: true),
code = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
remark = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_flow", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "flow_approval",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
user_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
user_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
launch_time = table.Column(type: "datetime(6)", nullable: false),
form_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
flow_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
flow_code = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
flow_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_flow_approval", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "flow_approval_step_history",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
sort = table.Column(type: "int", nullable: false),
flow_node_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
flow_node_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
sort_more = table.Column(type: "int", nullable: false),
state = table.Column(type: "int", nullable: false),
opinions = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
user_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
user_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
approval_date = table.Column(type: "datetime(6)", nullable: false),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_flow_approval_step_history", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "flow_approval_step_history_user",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
flow_approval_step_history_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
flow_node_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
flow_node_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
user_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
user_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_flow_approval_step_history_user", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "flow_node",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
flow_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
sort = table.Column(type: "int", nullable: true),
name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
role_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
remark = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_flow_node", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "low_code_list",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
low_code_table_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
low_code_table_info_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
foreign_key_table_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
foreign_key_table_field_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_low_code_list", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "low_code_search",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
low_code_table_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
low_code_table_info_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_low_code_search", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "low_code_table",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
schema = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
type = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
table_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
display_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
entity_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
remark = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
model_path = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
service_path = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
controller_path = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
client_index_path = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
client_info_path = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
client_service_path = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
is_cover = table.Column(type: "tinyint(1)", nullable: true),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_low_code_table", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "low_code_table_info",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
low_code_table_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
is_primary = table.Column(type: "tinyint(1)", nullable: false),
is_identity = table.Column(type: "tinyint(1)", nullable: false),
is_nullable = table.Column(type: "tinyint(1)", nullable: false),
position = table.Column(type: "int", nullable: false),
column_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
describe = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
database_column_type = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
cs_type = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
cs_field = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
max_length = table.Column(type: "int", nullable: true),
display_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_low_code_table_info", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "member",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
number = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
phone = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
sex = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
birthday = table.Column(type: "datetime(6)", nullable: false),
photo = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
introduce = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
file_path = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
user_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_member", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "quartz_job_task",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
group_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
cron = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
execute_time = table.Column(type: "datetime(6)", nullable: true),
state = table.Column(type: "int", nullable: false),
remark = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
type = table.Column(type: "int", nullable: false),
job_point = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
requset_mode = table.Column(type: "int", nullable: true),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_quartz_job_task", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "quartz_job_task_log",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
job_task_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
text = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_quartz_job_task_log", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "sys_data_authority",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
permission_type = table.Column(type: "int", nullable: false),
role_id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_sys_data_authority", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "sys_data_authority_custom",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
sys_data_authority_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
sys_organization_id = table.Column(type: "int", nullable: false),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_sys_data_authority_custom", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "sys_dictionary",
columns: table => new
{
id = table.Column(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
sort = table.Column(type: "int", nullable: false),
code = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
value = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
parent_id = table.Column(type: "int", nullable: true),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_sys_dictionary", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "sys_function",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
number = table.Column(type: "int", nullable: true),
name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
by_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
remark = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_sys_function", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "sys_menu",
columns: table => new
{
id = table.Column(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
level_code = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
number = table.Column(type: "int", nullable: true),
name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
component_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
url = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
router = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
jump_url = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
icon = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
parent_id = table.Column(type: "int", nullable: true),
show = table.Column(type: "tinyint(1)", nullable: false),
close = table.Column(type: "tinyint(1)", nullable: false),
keep_alive = table.Column(type: "tinyint(1)", nullable: false),
state = table.Column(type: "tinyint(1)", nullable: false),
type = table.Column(type: "int", nullable: false),
mode = table.Column(type: "int", nullable: false),
module_url = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
module_url_pro = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_sys_menu", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "sys_menu_function",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
number = table.Column(type: "int", nullable: true),
menu_id = table.Column(type: "int", nullable: false),
function_code = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
function_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
remark = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_sys_menu_function", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "sys_operation_log",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
api = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ip = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
form = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
form_body = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
query_string = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
take_up_time = table.Column(type: "bigint", nullable: false),
browser = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
os = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
controller_display_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
action_display_name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_sys_operation_log", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "sys_organization",
columns: table => new
{
id = table.Column(type: "int", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
order_number = table.Column(type: "int", nullable: true),
level_code = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
leader = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
phone = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
email = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
state = table.Column(type: "int", nullable: true),
parent_id = table.Column(type: "int", nullable: true),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_sys_organization", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "sys_post",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
number = table.Column(type: "int", nullable: true),
code = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
state = table.Column(type: "int", nullable: false),
remarks = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
creator_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
creation_time = table.Column(type: "datetime(6)", nullable: false),
last_modifier_user_id = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
last_modification_time = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_sys_post", x => x.id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "sys_role",
columns: table => new
{
id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
number = table.Column(type: "int", nullable: true),
name = table.Column(type: "longtext", nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
is_admin = table.Column(type: "tinyint(1)", nullable: false),
remark = table.Column