diff --git a/Api/Ewide.Database.Migrations/Ewide.Database.Migrations.csproj b/Api/Ewide.Database.Migrations/Ewide.Database.Migrations.csproj
index 0f054df..bd6a73d 100644
--- a/Api/Ewide.Database.Migrations/Ewide.Database.Migrations.csproj
+++ b/Api/Ewide.Database.Migrations/Ewide.Database.Migrations.csproj
@@ -8,4 +8,8 @@
+
+
+
+
diff --git a/Api/Ewide.Database.Migrations/Migrations/20210423073632_Init.cs b/Api/Ewide.Database.Migrations/Migrations/20210423073632_Init.cs
deleted file mode 100644
index 7940f38..0000000
--- a/Api/Ewide.Database.Migrations/Migrations/20210423073632_Init.cs
+++ /dev/null
@@ -1,1320 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Migrations;
-
-namespace Ewide.Database.Migrations.Migrations
-{
- public partial class Init : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "code_gen_test",
- columns: table => new
- {
- Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"),
- Name = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "名称"),
- NickName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "昵称"),
- Birthday = table.Column(type: "datetime", nullable: false, comment: "生日"),
- Age = table.Column(type: "int", nullable: false, comment: "年龄"),
- CreatedTime = table.Column(type: "datetime", nullable: true, comment: "创建时间"),
- UpdatedTime = table.Column(type: "datetime", nullable: true, comment: "更新时间"),
- CreatedUserId = table.Column(type: "bigint", nullable: true, comment: "创建者Id"),
- CreatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "创建者名称"),
- UpdatedUserId = table.Column(type: "bigint", nullable: true, comment: "修改者Id"),
- UpdatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "修改者名称"),
- IsDeleted = table.Column(type: "tinyint(1)", nullable: false, comment: "软删除标记")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_code_gen_test", x => x.Id);
- },
- comment: "代码生成业务");
-
- migrationBuilder.CreateTable(
- name: "sys_app",
- columns: table => new
- {
- Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"),
- Name = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "名称"),
- Code = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "编码"),
- Icon = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "图标"),
- Color = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "图标颜色"),
- Active = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "是否默认激活"),
- Status = table.Column(type: "int", nullable: false, comment: "状态"),
- Sort = table.Column(type: "int", nullable: false, comment: "排序"),
- CreatedTime = table.Column(type: "datetime", nullable: true, comment: "创建时间"),
- UpdatedTime = table.Column(type: "datetime", nullable: true, comment: "更新时间"),
- CreatedUserId = table.Column(type: "bigint", nullable: true, comment: "创建者Id"),
- CreatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "创建者名称"),
- UpdatedUserId = table.Column(type: "bigint", nullable: true, comment: "修改者Id"),
- UpdatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "修改者名称"),
- IsDeleted = table.Column(type: "tinyint(1)", nullable: false, comment: "软删除标记")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_app", x => x.Id);
- },
- comment: "系统应用表");
-
- migrationBuilder.CreateTable(
- name: "sys_code_gen",
- columns: table => new
- {
- Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"),
- AuthorName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "作者姓名"),
- TablePrefix = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "是否移除表前缀"),
- GenerateType = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "生成方式"),
- TableName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "数据库表名"),
- NameSpace = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "命名空间"),
- BusName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "业务名"),
- CreatedTime = table.Column(type: "datetime", nullable: true, comment: "创建时间"),
- UpdatedTime = table.Column(type: "datetime", nullable: true, comment: "更新时间"),
- CreatedUserId = table.Column(type: "bigint", nullable: true, comment: "创建者Id"),
- CreatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "创建者名称"),
- UpdatedUserId = table.Column(type: "bigint", nullable: true, comment: "修改者Id"),
- UpdatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "修改者名称"),
- IsDeleted = table.Column(type: "tinyint(1)", nullable: false, comment: "软删除标记")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_code_gen", x => x.Id);
- },
- comment: "代码生成表");
-
- migrationBuilder.CreateTable(
- name: "sys_code_gen_config",
- columns: table => new
- {
- Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"),
- CodeGenId = table.Column(type: "bigint", nullable: false, comment: "代码生成主表ID"),
- ColumnName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "数据库字段名"),
- ColumnComment = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "字段描述"),
- NetType = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: ".NET数据类型"),
- EffectType = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "作用类型"),
- DictTypeCode = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "字典Code"),
- WhetherRetract = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "列表是否缩进"),
- WhetherRequired = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "是否必填"),
- QueryWhether = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "是否是查询条件"),
- QueryType = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "查询方式"),
- WhetherTable = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "列表显示"),
- WhetherAddUpdate = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "增改"),
- ColumnKey = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "主外键"),
- DataType = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "数据库中类型"),
- WhetherCommon = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "是否通用字段"),
- CreatedTime = table.Column(type: "datetime", nullable: true, comment: "创建时间"),
- UpdatedTime = table.Column(type: "datetime", nullable: true, comment: "更新时间"),
- CreatedUserId = table.Column(type: "bigint", nullable: true, comment: "创建者Id"),
- CreatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "创建者名称"),
- UpdatedUserId = table.Column(type: "bigint", nullable: true, comment: "修改者Id"),
- UpdatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "修改者名称"),
- IsDeleted = table.Column(type: "tinyint(1)", nullable: false, comment: "软删除标记")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_code_gen_config", x => x.Id);
- },
- comment: "代码生成字段配置表");
-
- migrationBuilder.CreateTable(
- name: "sys_config",
- columns: table => new
- {
- Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"),
- Name = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "名称"),
- Code = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "编码"),
- Value = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "属性值"),
- SysFlag = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "是否是系统参数"),
- Remark = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "备注"),
- Status = table.Column(type: "int", nullable: false, comment: "状态"),
- GroupCode = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "常量所属分类的编码"),
- CreatedTime = table.Column(type: "datetime", nullable: true, comment: "创建时间"),
- UpdatedTime = table.Column(type: "datetime", nullable: true, comment: "更新时间"),
- CreatedUserId = table.Column(type: "bigint", nullable: true, comment: "创建者Id"),
- CreatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "创建者名称"),
- UpdatedUserId = table.Column(type: "bigint", nullable: true, comment: "修改者Id"),
- UpdatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "修改者名称"),
- IsDeleted = table.Column(type: "tinyint(1)", nullable: false, comment: "软删除标记")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_config", x => x.Id);
- },
- comment: "参数配置表");
-
- migrationBuilder.CreateTable(
- name: "sys_dict_type",
- columns: table => new
- {
- Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"),
- Name = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "名称"),
- Code = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "编码"),
- Sort = table.Column(type: "int", nullable: false, comment: "排序"),
- Remark = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "备注"),
- Status = table.Column(type: "int", nullable: false, comment: "状态"),
- CreatedTime = table.Column(type: "datetime", nullable: true, comment: "创建时间"),
- UpdatedTime = table.Column(type: "datetime", nullable: true, comment: "更新时间"),
- CreatedUserId = table.Column(type: "bigint", nullable: true, comment: "创建者Id"),
- CreatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "创建者名称"),
- UpdatedUserId = table.Column(type: "bigint", nullable: true, comment: "修改者Id"),
- UpdatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "修改者名称"),
- IsDeleted = table.Column(type: "tinyint(1)", nullable: false, comment: "软删除标记")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_dict_type", x => x.Id);
- },
- comment: "字典类型表");
-
- migrationBuilder.CreateTable(
- name: "sys_emp",
- columns: table => new
- {
- Id = table.Column(type: "bigint", nullable: false, comment: "用户Id"),
- JobNum = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "工号"),
- OrgId = table.Column(type: "bigint", nullable: false, comment: "机构Id"),
- OrgName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "机构名称")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_emp", x => x.Id);
- },
- comment: "员工表");
-
- migrationBuilder.CreateTable(
- name: "sys_file",
- columns: table => new
- {
- Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"),
- FileLocation = table.Column(type: "int", nullable: false, comment: "文件存储位置"),
- FileBucket = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "文件仓库"),
- FileOriginName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "文件名称"),
- FileSuffix = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "文件后缀"),
- FileSizeKb = table.Column(type: "bigint", nullable: false, comment: "文件大小kb"),
- FileSizeInfo = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "文件大小信息"),
- FileObjectName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "存储到bucket的名称"),
- FilePath = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "存储路径"),
- CreatedTime = table.Column(type: "datetime", nullable: true, comment: "创建时间"),
- UpdatedTime = table.Column(type: "datetime", nullable: true, comment: "更新时间"),
- CreatedUserId = table.Column(type: "bigint", nullable: true, comment: "创建者Id"),
- CreatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "创建者名称"),
- UpdatedUserId = table.Column(type: "bigint", nullable: true, comment: "修改者Id"),
- UpdatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "修改者名称"),
- IsDeleted = table.Column(type: "tinyint(1)", nullable: false, comment: "软删除标记")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_file", x => x.Id);
- },
- comment: "文件信息表");
-
- migrationBuilder.CreateTable(
- name: "sys_log_audit",
- columns: table => new
- {
- Id = table.Column(type: "int", nullable: false)
- .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
- TableName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "表名"),
- ColumnName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "列名"),
- NewValue = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "新值"),
- OldValue = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "旧值"),
- CreatedTime = table.Column(type: "datetime", nullable: false, comment: "操作时间"),
- UserId = table.Column(type: "bigint", nullable: false, comment: "操作人Id"),
- UserName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "操作人名称"),
- Operate = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "操作方式")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_log_audit", x => x.Id);
- },
- comment: "审计日志表");
-
- migrationBuilder.CreateTable(
- name: "sys_log_op",
- columns: table => new
- {
- Id = table.Column(type: "int", nullable: false)
- .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
- Name = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "名称"),
- OpType = table.Column(type: "int", nullable: true, comment: "操作类型"),
- Success = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "是否执行成功"),
- Message = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "具体消息"),
- Ip = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "IP"),
- Location = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "地址"),
- Browser = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "浏览器"),
- Os = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "操作系统"),
- Url = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "请求地址"),
- ClassName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "类名称"),
- MethodName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "方法名称"),
- ReqMethod = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "请求方式"),
- Param = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "请求参数"),
- Result = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "返回结果"),
- ElapsedTime = table.Column(type: "bigint", nullable: false, comment: "耗时"),
- OpTime = table.Column(type: "datetime", nullable: false, comment: "操作时间"),
- Account = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "操作人")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_log_op", x => x.Id);
- },
- comment: "操作日志表");
-
- migrationBuilder.CreateTable(
- name: "sys_log_vis",
- columns: table => new
- {
- Id = table.Column(type: "int", nullable: false)
- .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
- Name = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "名称"),
- Success = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "是否执行成功"),
- Message = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "具体消息"),
- Ip = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "IP"),
- Location = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "地址"),
- Browser = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "浏览器"),
- Os = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "操作系统"),
- VisType = table.Column(type: "int", nullable: true, comment: "访问类型"),
- VisTime = table.Column(type: "datetime", nullable: false, comment: "访问时间"),
- Account = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "访问人")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_log_vis", x => x.Id);
- },
- comment: "访问日志表");
-
- migrationBuilder.CreateTable(
- name: "sys_menu",
- columns: table => new
- {
- Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"),
- Pid = table.Column(type: "bigint", nullable: false, comment: "父Id"),
- Pids = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "父Ids"),
- Name = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "名称"),
- Code = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "编码"),
- Type = table.Column(type: "int", nullable: false, comment: "菜单类型"),
- Icon = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "图标"),
- Router = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "路由地址"),
- Component = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "组件地址"),
- Permission = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "权限标识"),
- Application = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "应用分类"),
- OpenType = table.Column(type: "int", nullable: false, comment: "打开方式"),
- Visible = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "是否可见"),
- Link = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "内链地址"),
- Redirect = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "重定向地址"),
- Weight = table.Column(type: "int", nullable: false, comment: "权重"),
- Sort = table.Column(type: "int", nullable: false, comment: "排序"),
- Remark = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "备注"),
- Status = table.Column(type: "int", nullable: false),
- CreatedTime = table.Column(type: "datetime", nullable: true, comment: "创建时间"),
- UpdatedTime = table.Column(type: "datetime", nullable: true, comment: "更新时间"),
- CreatedUserId = table.Column(type: "bigint", nullable: true, comment: "创建者Id"),
- CreatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "创建者名称"),
- UpdatedUserId = table.Column(type: "bigint", nullable: true, comment: "修改者Id"),
- UpdatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "修改者名称"),
- IsDeleted = table.Column(type: "tinyint(1)", nullable: false, comment: "软删除标记")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_menu", x => x.Id);
- },
- comment: "菜单表");
-
- migrationBuilder.CreateTable(
- name: "sys_notice",
- columns: table => new
- {
- Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"),
- Title = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "标题"),
- Content = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "内容"),
- Type = table.Column(type: "int", nullable: false, comment: "类型"),
- PublicUserId = table.Column(type: "bigint", nullable: false, comment: "发布人Id"),
- PublicUserName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "发布人姓名"),
- PublicOrgId = table.Column(type: "bigint", nullable: false, comment: "发布机构Id"),
- PublicOrgName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "发布机构名称"),
- PublicTime = table.Column(type: "datetime", nullable: false, comment: "发布时间"),
- CancelTime = table.Column(type: "datetime", nullable: false, comment: "撤回时间"),
- Status = table.Column(type: "int", nullable: false, comment: "状态"),
- CreatedTime = table.Column(type: "datetime", nullable: true, comment: "创建时间"),
- UpdatedTime = table.Column(type: "datetime", nullable: true, comment: "更新时间"),
- CreatedUserId = table.Column(type: "bigint", nullable: true, comment: "创建者Id"),
- CreatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "创建者名称"),
- UpdatedUserId = table.Column(type: "bigint", nullable: true, comment: "修改者Id"),
- UpdatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "修改者名称"),
- IsDeleted = table.Column(type: "tinyint(1)", nullable: false, comment: "软删除标记")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_notice", x => x.Id);
- },
- comment: "通知公告表");
-
- migrationBuilder.CreateTable(
- name: "sys_notice_user",
- columns: table => new
- {
- NoticeId = table.Column(type: "bigint", nullable: false, comment: "通知公告Id"),
- UserId = table.Column(type: "bigint", nullable: false, comment: "用户Id"),
- ReadTime = table.Column(type: "datetime", nullable: false, comment: "阅读时间"),
- ReadStatus = table.Column(type: "int", nullable: false, comment: "状态")
- },
- constraints: table =>
- {
- },
- comment: "通知公告用户表");
-
- migrationBuilder.CreateTable(
- name: "sys_oauth_user",
- columns: table => new
- {
- Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"),
- Uuid = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "UUID"),
- AccessToken = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "Token"),
- NickName = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "昵称"),
- Avatar = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "头像"),
- Gender = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "性别"),
- Phone = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "电话"),
- Email = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "邮箱"),
- Location = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "位置"),
- Blog = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "用户网址"),
- Company = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "所在公司"),
- Source = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "用户来源"),
- Remark = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "备注"),
- CreatedTime = table.Column(type: "datetime", nullable: true, comment: "创建时间"),
- UpdatedTime = table.Column(type: "datetime", nullable: true, comment: "更新时间"),
- CreatedUserId = table.Column(type: "bigint", nullable: true, comment: "创建者Id"),
- CreatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "创建者名称"),
- UpdatedUserId = table.Column(type: "bigint", nullable: true, comment: "修改者Id"),
- UpdatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "修改者名称"),
- IsDeleted = table.Column(type: "tinyint(1)", nullable: false, comment: "软删除标记")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_oauth_user", x => x.Id);
- },
- comment: "Oauth登录用户表");
-
- migrationBuilder.CreateTable(
- name: "sys_org",
- columns: table => new
- {
- Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"),
- Pid = table.Column(type: "bigint", nullable: false, comment: "父Id"),
- Pids = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "父Ids"),
- Name = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "名称"),
- Code = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "编码"),
- Contacts = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "联系人"),
- Tel = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "电话"),
- Sort = table.Column(type: "int", nullable: false, comment: "排序"),
- Remark = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "备注"),
- Status = table.Column(type: "int", nullable: false, comment: "状态"),
- CreatedTime = table.Column(type: "datetime", nullable: true, comment: "创建时间"),
- UpdatedTime = table.Column(type: "datetime", nullable: true, comment: "更新时间"),
- CreatedUserId = table.Column(type: "bigint", nullable: true, comment: "创建者Id"),
- CreatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "创建者名称"),
- UpdatedUserId = table.Column(type: "bigint", nullable: true, comment: "修改者Id"),
- UpdatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "修改者名称"),
- IsDeleted = table.Column(type: "tinyint(1)", nullable: false, comment: "软删除标记")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_org", x => x.Id);
- },
- comment: "组织机构表");
-
- migrationBuilder.CreateTable(
- name: "sys_pos",
- columns: table => new
- {
- Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"),
- Name = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "名称"),
- Code = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "编码"),
- Sort = table.Column(type: "int", nullable: false, comment: "排序"),
- Remark = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "备注"),
- Status = table.Column(type: "int", nullable: false, comment: "状态"),
- CreatedTime = table.Column(type: "datetime", nullable: true, comment: "创建时间"),
- UpdatedTime = table.Column(type: "datetime", nullable: true, comment: "更新时间"),
- CreatedUserId = table.Column(type: "bigint", nullable: true, comment: "创建者Id"),
- CreatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "创建者名称"),
- UpdatedUserId = table.Column(type: "bigint", nullable: true, comment: "修改者Id"),
- UpdatedUserName = table.Column(type: "varchar(20) CHARACTER SET utf8mb4", maxLength: 20, nullable: true, comment: "修改者名称"),
- IsDeleted = table.Column(type: "tinyint(1)", nullable: false, comment: "软删除标记")
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_sys_pos", x => x.Id);
- },
- comment: "职位表");
-
- migrationBuilder.CreateTable(
- name: "sys_role",
- columns: table => new
- {
- Id = table.Column(type: "bigint", nullable: false, comment: "Id主键"),
- Name = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "名称"),
- Code = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "编码"),
- Sort = table.Column(type: "int", nullable: false, comment: "排序"),
- DataScopeType = table.Column(type: "int", nullable: false, comment: "数据范围类型"),
- Remark = table.Column(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "备注"),
- Status = table.Column