using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FlexJobApi.Database.Migrations.Migrations
{
///
public partial class UpdateResource0806002 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_TaskInfoBenefit_DictionaryData_BenefitId1",
table: "TaskInfoBenefit");
migrationBuilder.DropForeignKey(
name: "FK_TaskInfoBenefit_TaskInfo_BenefitId",
table: "TaskInfoBenefit");
migrationBuilder.DropIndex(
name: "IX_TaskInfoBenefit_BenefitId1",
table: "TaskInfoBenefit");
migrationBuilder.DropColumn(
name: "BenefitId1",
table: "TaskInfoBenefit");
migrationBuilder.AlterTable(
name: "UserInfoRole",
oldComment: "用户信息角色");
migrationBuilder.AlterTable(
name: "UserInfoPhoto",
oldComment: "用户信息生活照");
migrationBuilder.AlterTable(
name: "UserInfoExpectJob",
oldComment: "用户信息期望岗位");
migrationBuilder.AlterTable(
name: "UserInfoDepartment",
oldComment: "用户信息部门");
migrationBuilder.AlterTable(
name: "UserInfoCredential",
oldComment: "用户信息资格证书");
migrationBuilder.AlterTable(
name: "UserInfoBankCard",
oldComment: "用户银行卡信息");
migrationBuilder.AlterTable(
name: "UserInfo",
oldComment: "用户信息");
migrationBuilder.AlterTable(
name: "UserAuth",
oldComment: "用户");
migrationBuilder.AlterTable(
name: "TaskInfoUser",
oldComment: "任务用户信息");
migrationBuilder.AlterTable(
name: "TaskInfoBenefit",
oldComment: "任务福利");
migrationBuilder.AlterTable(
name: "TaskInfo",
oldComment: "任务信息");
migrationBuilder.AlterTable(
name: "RoleResource",
oldComment: "角色资源");
migrationBuilder.AlterTable(
name: "RoleMenu",
oldComment: "角色菜单");
migrationBuilder.AlterTable(
name: "Role",
oldComment: "角色");
migrationBuilder.AlterTable(
name: "Resource",
oldComment: "资源");
migrationBuilder.AlterTable(
name: "Menu",
oldComment: "菜单");
migrationBuilder.AlterTable(
name: "EnterpriseAuth",
oldComment: "企业认证");
migrationBuilder.AlterTable(
name: "Enterprise",
oldComment: "企业");
migrationBuilder.AlterTable(
name: "DictionaryData",
oldComment: "字典数据");
migrationBuilder.AlterTable(
name: "DictionaryCategory",
oldComment: "字典类别");
migrationBuilder.AlterTable(
name: "Department",
oldComment: "部门");
migrationBuilder.AlterColumn(
name: "UserInfoId",
table: "UserInfoRole",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "用户信息Id");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoRole",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoRole",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoRole",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "RoleId",
table: "UserInfoRole",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "角色Id");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoRole",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoRole",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UserInfoId",
table: "UserInfoPhoto",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "用户信息Id");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoPhoto",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoPhoto",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoPhoto",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoPhoto",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "Img",
table: "UserInfoPhoto",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "照片");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoPhoto",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UserInfoId",
table: "UserInfoExpectJob",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "用户信息Id");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoExpectJob",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoExpectJob",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoExpectJob",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "PersonalIdentityId",
table: "UserInfoExpectJob",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "期望岗位Id");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoExpectJob",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoExpectJob",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UserInfoId",
table: "UserInfoDepartment",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "用户信息Id");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoDepartment",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoDepartment",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoDepartment",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoDepartment",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "DepartmentId",
table: "UserInfoDepartment",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "部门Id");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoDepartment",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UserInfoId",
table: "UserInfoCredential",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "用户信息Id");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoCredential",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TypeId",
table: "UserInfoCredential",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "证书类型Id");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoCredential",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "StartDate",
table: "UserInfoCredential",
type: "datetime2",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldComment: "开始日期");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoCredential",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IssueUnit",
table: "UserInfoCredential",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "发证单位");
migrationBuilder.AlterColumn(
name: "IsForever",
table: "UserInfoCredential",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "永久证书");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoCredential",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "Img",
table: "UserInfoCredential",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "证书正面照片");
migrationBuilder.AlterColumn(
name: "EndDate",
table: "UserInfoCredential",
type: "datetime2",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldComment: "结束日期");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoCredential",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "Code",
table: "UserInfoCredential",
type: "nvarchar(128)",
maxLength: 128,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(128)",
oldMaxLength: 128,
oldComment: "证书编号");
migrationBuilder.AlterColumn(
name: "BackImg",
table: "UserInfoCredential",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "证书反面照片");
migrationBuilder.AlterColumn(
name: "UserInfoId",
table: "UserInfoBankCard",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "用户信息Id");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoBankCard",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoBankCard",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoBankCard",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "PhoneNumber",
table: "UserInfoBankCard",
type: "nvarchar(11)",
maxLength: 11,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(11)",
oldMaxLength: 11,
oldComment: "银行预留手机号");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoBankCard",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoBankCard",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "Code",
table: "UserInfoBankCard",
type: "nvarchar(32)",
maxLength: 32,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(32)",
oldMaxLength: 32,
oldComment: "银行卡号");
migrationBuilder.AlterColumn(
name: "Bank",
table: "UserInfoBankCard",
type: "nvarchar(128)",
maxLength: 128,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(128)",
oldMaxLength: 128,
oldComment: "开户行");
migrationBuilder.AlterColumn(
name: "WxmpOpenId",
table: "UserInfo",
type: "nvarchar(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(32)",
oldMaxLength: 32,
oldNullable: true,
oldComment: "微信开放Id");
migrationBuilder.AlterColumn(
name: "WorkSeniority",
table: "UserInfo",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "工作资历");
migrationBuilder.AlterColumn(
name: "WorkExperience",
table: "UserInfo",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "工作经验");
migrationBuilder.AlterColumn(
name: "Weight",
table: "UserInfo",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "体重");
migrationBuilder.AlterColumn(
name: "UserAuthId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "用户Id");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "Type",
table: "UserInfo",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "用户类型");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfo",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Status",
table: "UserInfo",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "状态");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfo",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "Remark",
table: "UserInfo",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "备注");
migrationBuilder.AlterColumn(
name: "ProvinceId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "常驻省份Id");
migrationBuilder.AlterColumn(
name: "PersonalIdentityId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "身份Id");
migrationBuilder.AlterColumn(
name: "Level",
table: "UserInfo",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "级别");
migrationBuilder.AlterColumn(
name: "JobSeekingStatus",
table: "UserInfo",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "求职状态");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfo",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "Height",
table: "UserInfo",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "身高");
migrationBuilder.AlterColumn(
name: "FreeTime",
table: "UserInfo",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "空闲时间");
migrationBuilder.AlterColumn(
name: "EnterpriseId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "企业Id");
migrationBuilder.AlterColumn(
name: "EducationalBackgroundId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "学历Id");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "CityId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "常驻城市Id");
migrationBuilder.AlterColumn(
name: "Avatar",
table: "UserInfo",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "头像");
migrationBuilder.AlterColumn(
name: "UserName",
table: "UserAuth",
type: "nvarchar(32)",
maxLength: 32,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(32)",
oldMaxLength: 32,
oldComment: "用户名");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserAuth",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserAuth",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserAuth",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "RealAccess",
table: "UserAuth",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "实名通道");
migrationBuilder.AlterColumn(
name: "PhoneNumber",
table: "UserAuth",
type: "nvarchar(11)",
maxLength: 11,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(11)",
oldMaxLength: 11,
oldNullable: true,
oldComment: "手机号");
migrationBuilder.AlterColumn(
name: "Password",
table: "UserAuth",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "密码");
migrationBuilder.AlterColumn(
name: "Name",
table: "UserAuth",
type: "nvarchar(32)",
maxLength: 32,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(32)",
oldMaxLength: 32,
oldComment: "姓名");
migrationBuilder.AlterColumn(
name: "IsReal",
table: "UserAuth",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否实名");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserAuth",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "IsCheckPhoneNumber",
table: "UserAuth",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否已校验手机号");
migrationBuilder.AlterColumn(
name: "IdentityImg",
table: "UserAuth",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "身份证人像面");
migrationBuilder.AlterColumn(
name: "IdentityBackImg",
table: "UserAuth",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "身份证国徽面");
migrationBuilder.AlterColumn(
name: "Identity",
table: "UserAuth",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "身份证号");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserAuth",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "BankCardImg",
table: "UserAuth",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "银行卡照片");
migrationBuilder.AlterColumn(
name: "BankCard",
table: "UserAuth",
type: "nvarchar(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(32)",
oldMaxLength: 32,
oldNullable: true,
oldComment: "银行卡号");
migrationBuilder.AlterColumn(
name: "UserInfoId",
table: "TaskInfoUser",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "用户信息Id");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "TaskInfoUser",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "TaskInfoUser",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "TaskInfoId",
table: "TaskInfoUser",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "任务Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "TaskInfoUser",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "SignContractTime",
table: "TaskInfoUser",
type: "datetime2",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldNullable: true,
oldComment: "签约时间");
migrationBuilder.AlterColumn(
name: "SignContractStatus",
table: "TaskInfoUser",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "签约状态");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "TaskInfoUser",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "HireTime",
table: "TaskInfoUser",
type: "datetime2",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldNullable: true,
oldComment: "录用时间");
migrationBuilder.AlterColumn(
name: "HireStatus",
table: "TaskInfoUser",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "录用状态");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "TaskInfoUser",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "TaskInfoCredentialLimit",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TypeId",
table: "TaskInfoCredentialLimit",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "证书类型Id");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "TaskInfoCredentialLimit",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "TaskInfoId",
table: "TaskInfoCredentialLimit",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "任务Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "TaskInfoCredentialLimit",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "TaskInfoCredentialLimit",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "TaskInfoCredentialLimit",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "TaskInfoBenefit",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "TaskInfoBenefit",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "TaskInfoId",
table: "TaskInfoBenefit",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "任务Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "TaskInfoBenefit",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "TaskInfoBenefit",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "TaskInfoBenefit",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "BenefitId",
table: "TaskInfoBenefit",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "福利Id");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "TaskInfo",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "TaskInfo",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "TaskInfo",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "SettlementCycle",
table: "TaskInfo",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "结算方式");
migrationBuilder.AlterColumn(
name: "ServiceFee",
table: "TaskInfo",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldComment: "服务费");
migrationBuilder.AlterColumn(
name: "Name",
table: "TaskInfo",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldComment: "任务名称");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "TaskInfo",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "GenderLimit",
table: "TaskInfo",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "性别要求");
migrationBuilder.AlterColumn(
name: "EnterpriseId",
table: "TaskInfo",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "企业Id");
migrationBuilder.AlterColumn(
name: "EndTime",
table: "TaskInfo",
type: "datetime2",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldComment: "任务结束时间");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "TaskInfo",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "CityId",
table: "TaskInfo",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "任务地点所属区域Id");
migrationBuilder.AlterColumn(
name: "BillingMethod",
table: "TaskInfo",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "计费方式");
migrationBuilder.AlterColumn(
name: "BeginTime",
table: "TaskInfo",
type: "datetime2",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldComment: "任务开始时间");
migrationBuilder.AlterColumn(
name: "AgeMinLimit",
table: "TaskInfo",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "年龄范围最小");
migrationBuilder.AlterColumn(
name: "AgeMaxLimit",
table: "TaskInfo",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "年龄范围大");
migrationBuilder.AlterColumn(
name: "Address",
table: "TaskInfo",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "任务地点详细地址");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "RoleResource",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "RoleResource",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "RoleResource",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "RoleId",
table: "RoleResource",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "角色Id");
migrationBuilder.AlterColumn(
name: "ResourceId",
table: "RoleResource",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "资源Id");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "RoleResource",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "DataPower",
table: "RoleResource",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "数据权限");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "RoleResource",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "RoleMenu",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "RoleMenu",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "RoleMenu",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "RoleId",
table: "RoleMenu",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "角色Id");
migrationBuilder.AlterColumn(
name: "MenuId",
table: "RoleMenu",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "菜单Id");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "RoleMenu",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "RoleMenu",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UserType",
table: "Role",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "用户类型");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "Role",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "Role",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "Role",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "Remark",
table: "Role",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "备注");
migrationBuilder.AlterColumn(
name: "Name",
table: "Role",
type: "nvarchar(128)",
maxLength: 128,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(128)",
oldMaxLength: 128,
oldComment: "名称");
migrationBuilder.AlterColumn(
name: "MinLevel",
table: "Role",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "最低级别");
migrationBuilder.AlterColumn(
name: "IsDisabled",
table: "Role",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否禁用");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "Role",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "DataPower",
table: "Role",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "数据权限");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "Role",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "ClientType",
table: "Role",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "客户端类型");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "Resource",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "Resource",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "Resource",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "ServiceName",
table: "Resource",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "服务名称");
migrationBuilder.AlterColumn(
name: "Service",
table: "Resource",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "服务");
migrationBuilder.AlterColumn(
name: "RouteArea",
table: "Resource",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "路由区域");
migrationBuilder.AlterColumn(
name: "Route",
table: "Resource",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldComment: "路由");
migrationBuilder.AlterColumn(
name: "ResponseTypeName",
table: "Resource",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldComment: "响应类型名称");
migrationBuilder.AlterColumn(
name: "ResponseTypeFullName",
table: "Resource",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldComment: "响应类型全名");
migrationBuilder.AlterColumn(
name: "RequestTypeName",
table: "Resource",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldComment: "请求类型名称");
migrationBuilder.AlterColumn(
name: "RequestTypeFullName",
table: "Resource",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldComment: "请求类型全名");
migrationBuilder.AlterColumn(
name: "Name",
table: "Resource",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldComment: "名称");
migrationBuilder.AlterColumn(
name: "Method",
table: "Resource",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "请求方式");
migrationBuilder.AlterColumn(
name: "IsExpired",
table: "Resource",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否已过期");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "Resource",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "DynamicAssemblyName",
table: "Resource",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "动态程序集名称");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "Resource",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "ControllerSummary",
table: "Resource",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "控制器摘要");
migrationBuilder.AlterColumn(
name: "Controller",
table: "Resource",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "控制器");
migrationBuilder.AlterColumn(
name: "Code",
table: "Resource",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldComment: "编号");
migrationBuilder.AlterColumn(
name: "ApplicationName",
table: "Resource",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "应用名称");
migrationBuilder.AlterColumn(
name: "AllowAnonymous",
table: "Resource",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "忽略权限");
migrationBuilder.AlterColumn(
name: "ActionSummary",
table: "Resource",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "委托摘要");
migrationBuilder.AlterColumn(
name: "ActionName",
table: "Resource",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "委托名称");
migrationBuilder.AlterColumn(
name: "Width",
table: "Menu",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "列宽(用于按钮/列/元素)");
migrationBuilder.AlterColumn(
name: "VisitLevel",
table: "Menu",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "访问级别");
migrationBuilder.AlterColumn(
name: "UserType",
table: "Menu",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "用户类型");
migrationBuilder.AlterColumn(
name: "Url",
table: "Menu",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "链接地址");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "Menu",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "Type",
table: "Menu",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "类型");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "Menu",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "Menu",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "Remark",
table: "Menu",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "备注");
migrationBuilder.AlterColumn(
name: "Path",
table: "Menu",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "菜单路径");
migrationBuilder.AlterColumn(
name: "ParentId",
table: "Menu",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "上级Id");
migrationBuilder.AlterColumn(
name: "Name",
table: "Menu",
type: "nvarchar(128)",
maxLength: 128,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(128)",
oldMaxLength: 128,
oldComment: "名称");
migrationBuilder.AlterColumn(
name: "Location",
table: "Menu",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "位置(用于按钮)");
migrationBuilder.AlterColumn(
name: "IsDisabled",
table: "Menu",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否禁用");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "Menu",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "IsCache",
table: "Menu",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否缓存");
migrationBuilder.AlterColumn(
name: "Icon",
table: "Menu",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "图标");
migrationBuilder.AlterColumn(
name: "Group",
table: "Menu",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "分组名称(用于按钮/字段)");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "Menu",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "Code",
table: "Menu",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldComment: "编号");
migrationBuilder.AlterColumn(
name: "ClientType",
table: "Menu",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "客户端类型");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "EnterpriseAuth",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "EnterpriseAuth",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "EnterpriseAuth",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "SocietyCreditCode",
table: "EnterpriseAuth",
type: "nvarchar(18)",
maxLength: 18,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(18)",
oldMaxLength: 18,
oldComment: "统一社会信用代码");
migrationBuilder.AlterColumn(
name: "ProxyPowerAttorneyUrl",
table: "EnterpriseAuth",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "企业授权书");
migrationBuilder.AlterColumn(
name: "Proxy",
table: "EnterpriseAuth",
type: "bit",
nullable: true,
oldClrType: typeof(bool),
oldType: "bit",
oldNullable: true,
oldComment: "是否委托经办人");
migrationBuilder.AlterColumn(
name: "PhoneNumber",
table: "EnterpriseAuth",
type: "nvarchar(11)",
maxLength: 11,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(11)",
oldMaxLength: 11,
oldNullable: true,
oldComment: "法人或经办人手机号");
migrationBuilder.AlterColumn(
name: "PersonalRealMethod",
table: "EnterpriseAuth",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "法人或经办人实名方式");
migrationBuilder.AlterColumn(
name: "Name",
table: "EnterpriseAuth",
type: "nvarchar(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(32)",
oldMaxLength: 32,
oldNullable: true,
oldComment: "法人或经办人姓名");
migrationBuilder.AlterColumn(
name: "LicenseImage",
table: "EnterpriseAuth",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "营业执照照片");
migrationBuilder.AlterColumn(
name: "LegalPerson",
table: "EnterpriseAuth",
type: "nvarchar(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(32)",
oldMaxLength: 32,
oldNullable: true,
oldComment: "法人姓名");
migrationBuilder.AlterColumn(
name: "LegalIdentity",
table: "EnterpriseAuth",
type: "nvarchar(18)",
maxLength: 18,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(18)",
oldMaxLength: 18,
oldNullable: true,
oldComment: "法人身份证号");
migrationBuilder.AlterColumn(
name: "IsReal",
table: "EnterpriseAuth",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否实名");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "EnterpriseAuth",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "IdentityImg",
table: "EnterpriseAuth",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "法人或经办人身份证人像面");
migrationBuilder.AlterColumn(
name: "IdentityBackImg",
table: "EnterpriseAuth",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "法人或经办人身份证国徽面");
migrationBuilder.AlterColumn(
name: "Identity",
table: "EnterpriseAuth",
type: "nvarchar(18)",
maxLength: 18,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(18)",
oldMaxLength: 18,
oldNullable: true,
oldComment: "法人或经办人身份证号");
migrationBuilder.AlterColumn(
name: "EnterpriseRealMethod",
table: "EnterpriseAuth",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "企业认证方式");
migrationBuilder.AlterColumn(
name: "EnterpriseName",
table: "EnterpriseAuth",
type: "nvarchar(128)",
maxLength: 128,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(128)",
oldMaxLength: 128,
oldComment: "企业全称");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "EnterpriseAuth",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "BankCardImg",
table: "EnterpriseAuth",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "法人或经办人银行卡照片");
migrationBuilder.AlterColumn(
name: "BankCard",
table: "EnterpriseAuth",
type: "nvarchar(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(32)",
oldMaxLength: 32,
oldNullable: true,
oldComment: "法人或经办人银行卡号");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "Enterprise",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "Enterprise",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "Enterprise",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "SmsCost",
table: "Enterprise",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldComment: "短信费用");
migrationBuilder.AlterColumn(
name: "SmsAccess",
table: "Enterprise",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "短信通道");
migrationBuilder.AlterColumn(
name: "SignCost",
table: "Enterprise",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true,
oldComment: "签约费用");
migrationBuilder.AlterColumn(
name: "RealVerifyCost",
table: "Enterprise",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true,
oldComment: "实名费用");
migrationBuilder.AlterColumn(
name: "RealAccess",
table: "Enterprise",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "实名通道");
migrationBuilder.AlterColumn(
name: "ProvinceId",
table: "Enterprise",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "所在省份Id");
migrationBuilder.AlterColumn(
name: "PayAccess",
table: "Enterprise",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "支付通道");
migrationBuilder.AlterColumn(
name: "MergeSignCost",
table: "Enterprise",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true,
oldComment: "一口价");
migrationBuilder.AlterColumn(
name: "MainBusiness",
table: "Enterprise",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "主营业务");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "Enterprise",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "IsCheckedBankCard",
table: "Enterprise",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否已校验银行账户");
migrationBuilder.AlterColumn(
name: "IndustryTypeId",
table: "Enterprise",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "所属行业Id");
migrationBuilder.AlterColumn(
name: "EnterpriseAuthId",
table: "Enterprise",
type: "uniqueidentifier",
nullable: false,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldComment: "企业认证Id");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "Enterprise",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "Contacts",
table: "Enterprise",
type: "nvarchar(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(32)",
oldMaxLength: 32,
oldNullable: true,
oldComment: "联系人");
migrationBuilder.AlterColumn(
name: "ContactPhoneNumber",
table: "Enterprise",
type: "nvarchar(11)",
maxLength: 11,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(11)",
oldMaxLength: 11,
oldNullable: true,
oldComment: "联系电话");
migrationBuilder.AlterColumn(
name: "ContactEmail",
table: "Enterprise",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "联系邮箱");
migrationBuilder.AlterColumn(
name: "CityId",
table: "Enterprise",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "所在城市Id");
migrationBuilder.AlterColumn(
name: "BankName",
table: "Enterprise",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "开户总行");
migrationBuilder.AlterColumn(
name: "BankCard",
table: "Enterprise",
type: "nvarchar(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(32)",
oldMaxLength: 32,
oldNullable: true,
oldComment: "银行账户");
migrationBuilder.AlterColumn(
name: "BankBranchName",
table: "Enterprise",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "开户支行");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "DictionaryData",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "DictionaryData",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "DictionaryData",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn