//
using System;
using FlexJobApi.EntityFramework.Core;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace FlexJobApi.Database.Migrations.Migrations
{
[DbContext(typeof(DefaultDbContext))]
[Migration("20250805070426_UpdateRole0805")]
partial class UpdateRole0805
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "9.0.7")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("FlexJobApi.Core.Department", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("EnterpriseId")
.HasColumnType("uniqueidentifier")
.HasComment("企业Id");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("IsDisabled")
.HasColumnType("bit")
.HasComment("是否禁用");
b.Property("Name")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("名称");
b.Property("ParentId")
.HasColumnType("uniqueidentifier")
.HasComment("上级Id");
b.Property("Path")
.HasColumnType("nvarchar(max)")
.HasComment("部门路径");
b.Property("Remark")
.HasColumnType("nvarchar(max)")
.HasComment("备注");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.HasKey("Id");
b.HasIndex("EnterpriseId");
b.HasIndex("ParentId");
b.ToTable("Department", t =>
{
t.HasComment("部门");
});
});
modelBuilder.Entity("FlexJobApi.Core.DictionaryCategory", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Code")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)")
.HasComment("编号");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("FieldNames")
.HasColumnType("nvarchar(max)")
.HasComment("字段名(逗号隔开)");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)")
.HasComment("名称");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.HasKey("Id");
b.ToTable("DictionaryCategory", t =>
{
t.HasComment("字典类别");
});
});
modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("CategoryId")
.HasColumnType("uniqueidentifier")
.HasComment("类别Id");
b.Property("Code")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)")
.HasComment("编号");
b.Property("Content")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("显示内容");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("Field1")
.HasColumnType("nvarchar(max)")
.HasComment("字段1");
b.Property("Field2")
.HasColumnType("nvarchar(max)")
.HasComment("字段2");
b.Property("Field3")
.HasColumnType("nvarchar(max)")
.HasComment("字段3");
b.Property("Field4")
.HasColumnType("nvarchar(max)")
.HasComment("字段4");
b.Property("Field5")
.HasColumnType("nvarchar(max)")
.HasComment("字段5");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("ParentId")
.HasColumnType("uniqueidentifier")
.HasComment("上级Id");
b.Property("Path")
.HasColumnType("nvarchar(max)")
.HasComment("字典路径");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.HasKey("Id");
b.HasIndex("CategoryId");
b.HasIndex("ParentId");
b.ToTable("DictionaryData", t =>
{
t.HasComment("字典数据");
});
});
modelBuilder.Entity("FlexJobApi.Core.Enterprise", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("BankCard")
.HasMaxLength(32)
.HasColumnType("nvarchar(32)")
.HasComment("法人或经办人银行卡号");
b.Property("BankCardImgId")
.HasColumnType("uniqueidentifier")
.HasComment("法人或经办人银行卡照片Id");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("EnterpriseName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)")
.HasComment("企业全称");
b.Property("EnterpriseRealMethod")
.HasColumnType("int")
.HasComment("企业认证方式");
b.Property("Identity")
.HasMaxLength(18)
.HasColumnType("nvarchar(18)")
.HasComment("法人或经办人身份证号");
b.Property("IdentityBackImgId")
.HasColumnType("uniqueidentifier")
.HasComment("法人或经办人身份证国徽面Id");
b.Property("IdentityImgId")
.HasColumnType("uniqueidentifier")
.HasComment("法人或经办人身份证人像面Id");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("IsReal")
.HasColumnType("bit")
.HasComment("是否实名");
b.Property("LegalPerson")
.HasMaxLength(32)
.HasColumnType("nvarchar(32)")
.HasComment("法人姓名");
b.Property("LicenseImageId")
.HasColumnType("uniqueidentifier")
.HasComment("营业执照照片Id");
b.Property("Name")
.HasMaxLength(32)
.HasColumnType("nvarchar(32)")
.HasComment("法人或经办人姓名");
b.Property("PersonalRealMethod")
.HasColumnType("int")
.HasComment("法人或经办人实名方式");
b.Property("PhoneNumber")
.HasMaxLength(11)
.HasColumnType("nvarchar(11)")
.HasComment("法人或经办人手机号");
b.Property("Proxy")
.HasColumnType("bit")
.HasComment("是否委托经办人");
b.Property("ProxyPowerAttorneyUrl")
.HasColumnType("nvarchar(max)")
.HasComment("企业授权书");
b.Property("RealAccess")
.HasColumnType("int")
.HasComment("实名通道");
b.Property("SocietyCreditCode")
.IsRequired()
.HasMaxLength(18)
.HasColumnType("nvarchar(18)")
.HasComment("统一社会信用代码");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.HasKey("Id");
b.HasIndex("IdentityBackImgId");
b.HasIndex("IdentityImgId");
b.HasIndex("LicenseImageId");
b.ToTable("Enterprise", t =>
{
t.HasComment("企业");
});
});
modelBuilder.Entity("FlexJobApi.Core.FileStore", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("AbsolutePath")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("绝对路径");
b.Property("Access")
.HasColumnType("int")
.HasComment("通道");
b.Property("ContentType")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)")
.HasComment("内容类型");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("Extension")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("nvarchar(32)")
.HasComment("扩展名");
b.Property("FileType")
.HasColumnType("int")
.HasComment("文件类型");
b.Property("Hash")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("哈希");
b.Property("ImageHeight")
.HasColumnType("int")
.HasComment("高度(像素)");
b.Property("ImageWidth")
.HasColumnType("int")
.HasComment("宽度(像素)");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("Length")
.HasColumnType("bigint")
.HasComment("文件大小(字节)");
b.Property("Name")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("名称");
b.Property("RelativePath")
.HasColumnType("nvarchar(max)")
.HasComment("相对路径");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.HasKey("Id");
b.ToTable("FileStore", t =>
{
t.HasComment("文件存储");
});
});
modelBuilder.Entity("FlexJobApi.Core.FileVirtualPath", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("Name")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("名称");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("StoreId")
.HasColumnType("uniqueidentifier")
.HasComment("文件存储Id");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.Property("VirtualPath")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("虚拟路径");
b.HasKey("Id");
b.HasIndex("StoreId");
b.ToTable("FileVirtualPath", t =>
{
t.HasComment("文件虚拟路径");
});
});
modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("ClientType")
.HasColumnType("int")
.HasComment("客户端类型");
b.Property("Code")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("编号");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("Group")
.HasColumnType("nvarchar(max)")
.HasComment("分组名称(用于按钮/字段)");
b.Property("Icon")
.HasColumnType("nvarchar(max)")
.HasComment("图标");
b.Property("IsCache")
.HasColumnType("bit")
.HasComment("是否缓存");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("IsDisabled")
.HasColumnType("bit")
.HasComment("是否禁用");
b.Property("Location")
.HasColumnType("nvarchar(max)")
.HasComment("位置(用于按钮)");
b.Property("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)")
.HasComment("名称");
b.Property("ParentId")
.HasColumnType("uniqueidentifier")
.HasComment("上级Id");
b.Property("Path")
.HasColumnType("nvarchar(max)")
.HasComment("菜单路径");
b.Property("Remark")
.HasColumnType("nvarchar(max)")
.HasComment("备注");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("Type")
.HasColumnType("int")
.HasComment("类型");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.Property("Url")
.HasColumnType("nvarchar(max)")
.HasComment("链接地址");
b.Property("UserType")
.HasColumnType("int")
.HasComment("用户类型");
b.Property("VisitLevel")
.HasColumnType("int")
.HasComment("访问级别");
b.Property("Width")
.HasColumnType("nvarchar(max)")
.HasComment("列宽(用于按钮/列/元素)");
b.HasKey("Id");
b.HasIndex("ParentId");
b.ToTable("Menu", t =>
{
t.HasComment("菜单");
});
});
modelBuilder.Entity("FlexJobApi.Core.Resource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("ActionName")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("委托名称");
b.Property("Code")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("编号");
b.Property("Controller")
.HasColumnType("int")
.HasComment("控制器");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("IsExpired")
.HasColumnType("bit")
.HasComment("是否已过期");
b.Property("Method")
.HasColumnType("int")
.HasComment("请求方式");
b.Property("Name")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("名称");
b.Property("RequestTypeFullName")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("请求类型全名");
b.Property("RequestTypeName")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("请求类型名称");
b.Property("ResponseTypeFullName")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("响应类型全名");
b.Property("ResponseTypeName")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("响应类型名称");
b.Property("Route")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("路由");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.HasKey("Id");
b.ToTable("Resource", t =>
{
t.HasComment("资源");
});
});
modelBuilder.Entity("FlexJobApi.Core.Role", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("ClientType")
.HasColumnType("int")
.HasComment("客户端类型");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("DataPower")
.HasColumnType("int");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("MinLevel")
.HasColumnType("int")
.HasComment("最低级别");
b.Property("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("nvarchar(128)")
.HasComment("名称");
b.Property("Remark")
.HasColumnType("nvarchar(max)");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.Property("UserType")
.HasColumnType("int")
.HasComment("用户类型");
b.HasKey("Id");
b.ToTable("Role", t =>
{
t.HasComment("角色");
});
});
modelBuilder.Entity("FlexJobApi.Core.RoleMenu", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("MenuId")
.HasColumnType("uniqueidentifier")
.HasComment("菜单Id");
b.Property("RoleId")
.HasColumnType("uniqueidentifier")
.HasComment("角色Id");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.HasKey("Id");
b.HasIndex("MenuId");
b.HasIndex("RoleId");
b.ToTable("RoleMenu", t =>
{
t.HasComment("角色菜单");
});
});
modelBuilder.Entity("FlexJobApi.Core.RoleResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("DataPower")
.HasColumnType("int")
.HasComment("数据权限");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("ResourceId")
.HasColumnType("uniqueidentifier")
.HasComment("资源Id");
b.Property("RoleId")
.HasColumnType("uniqueidentifier")
.HasComment("角色Id");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.HasKey("Id");
b.HasIndex("ResourceId");
b.HasIndex("RoleId");
b.ToTable("RoleResource", t =>
{
t.HasComment("角色资源");
});
});
modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Address")
.HasColumnType("nvarchar(max)")
.HasComment("任务地点详细地址");
b.Property("AgeMaxLimit")
.HasColumnType("int")
.HasComment("年龄范围大");
b.Property("AgeMinLimit")
.HasColumnType("int")
.HasComment("年龄范围最小");
b.Property("BeginTime")
.HasColumnType("datetime2")
.HasComment("任务开始时间");
b.Property("BillingMethod")
.HasColumnType("int")
.HasComment("计费方式");
b.Property("CityId")
.HasColumnType("uniqueidentifier")
.HasComment("任务地点所属区域Id");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("EndTime")
.HasColumnType("datetime2")
.HasComment("任务结束时间");
b.Property("EnterpriseId")
.HasColumnType("uniqueidentifier")
.HasComment("企业Id");
b.Property("GenderLimit")
.HasColumnType("int")
.HasComment("性别要求");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("Name")
.IsRequired()
.HasColumnType("nvarchar(max)")
.HasComment("任务名称");
b.Property("ServiceFee")
.HasColumnType("decimal(18,2)")
.HasComment("服务费");
b.Property("SettlementCycle")
.HasColumnType("int")
.HasComment("结算方式");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.HasKey("Id");
b.HasIndex("CityId");
b.HasIndex("EnterpriseId");
b.ToTable("TaskInfo", t =>
{
t.HasComment("任务信息");
});
});
modelBuilder.Entity("FlexJobApi.Core.TaskInfoBenefit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("BenefitId")
.HasColumnType("uniqueidentifier")
.HasComment("福利Id");
b.Property("BenefitId1")
.HasColumnType("uniqueidentifier");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TaskInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("任务Id");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.HasKey("Id");
b.HasIndex("BenefitId");
b.HasIndex("BenefitId1");
b.ToTable("TaskInfoBenefit", t =>
{
t.HasComment("任务福利");
});
});
modelBuilder.Entity("FlexJobApi.Core.TaskInfoCredentialLimit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TaskInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("任务Id");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("TypeId")
.HasColumnType("uniqueidentifier")
.HasComment("证书类型Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.HasKey("Id");
b.HasIndex("TaskInfoId");
b.HasIndex("TypeId");
b.ToTable("TaskInfoCredentialLimit");
});
modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("HireStatus")
.HasColumnType("int")
.HasComment("录用状态");
b.Property("HireTime")
.HasColumnType("datetime2")
.HasComment("录用时间");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("SignContractStatus")
.HasColumnType("int")
.HasComment("签约状态");
b.Property("SignContractTime")
.HasColumnType("datetime2")
.HasComment("签约时间");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TaskInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("任务Id");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.Property("UserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("用户信息Id");
b.HasKey("Id");
b.HasIndex("TaskInfoId");
b.HasIndex("UserInfoId");
b.ToTable("TaskInfoUser", t =>
{
t.HasComment("任务用户信息");
});
});
modelBuilder.Entity("FlexJobApi.Core.UserAuth", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("AvatarId")
.HasColumnType("uniqueidentifier")
.HasComment("头像Id");
b.Property("BankCard")
.HasMaxLength(32)
.HasColumnType("nvarchar(32)")
.HasComment("银行卡号");
b.Property("BankCardImgId")
.HasColumnType("uniqueidentifier")
.HasComment("银行卡照片Id");
b.Property("CreatedTime")
.HasColumnType("datetimeoffset");
b.Property("CreatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("创建操作人");
b.Property("Identity")
.HasColumnType("nvarchar(max)")
.HasComment("身份证号");
b.Property("IdentityBackImgId")
.HasColumnType("uniqueidentifier")
.HasComment("身份证国徽面Id");
b.Property("IdentityImgId")
.HasColumnType("uniqueidentifier")
.HasComment("身份证人像面Id");
b.Property("IsCheckPhoneNumber")
.HasColumnType("bit")
.HasComment("是否已校验手机号");
b.Property("IsDeleted")
.HasColumnType("bit")
.HasComment("是否删除");
b.Property("IsReal")
.HasColumnType("bit")
.HasComment("是否实名");
b.Property("Name")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("nvarchar(32)")
.HasComment("姓名");
b.Property("Password")
.HasColumnType("nvarchar(max)")
.HasComment("密码");
b.Property("PhoneNumber")
.HasMaxLength(11)
.HasColumnType("nvarchar(11)")
.HasComment("手机号");
b.Property("RealAccess")
.HasColumnType("int")
.HasComment("实名通道");
b.Property("Sort")
.HasColumnType("int")
.HasComment("排序");
b.Property("TraceId")
.HasColumnType("nvarchar(max)")
.HasComment("跟踪Id");
b.Property("UpdatedTime")
.HasColumnType("datetimeoffset");
b.Property("UpdatedUserInfoId")
.HasColumnType("uniqueidentifier")
.HasComment("最后更新操作人");
b.Property("UserName")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("nvarchar(32)")
.HasComment("用户名");
b.HasKey("Id");
b.HasIndex("AvatarId");
b.HasIndex("BankCardImgId");
b.HasIndex("IdentityBackImgId");
b.HasIndex("IdentityImgId");
b.ToTable("UserAuth", t =>
{
t.HasComment("用户");
});
b.HasData(
new
{
Id = new Guid("11111111-1111-1111-1111-111111111111"),
CreatedTime = new DateTimeOffset(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 8, 0, 0, 0)),
IsCheckPhoneNumber = false,
IsDeleted = false,
IsReal = false,
Name = "管理员",
Password = "iEYggKrMhQ3ASUGLobra1w==:fn/DsMJUbD9FGpvBvR3moMpMPptdxzZlourPVhU479I=",
Sort = 0,
UserName = "system"
});
});
modelBuilder.Entity("FlexJobApi.Core.UserInfo", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("CityId")
.HasColumnType("uniqueidentifier")
.HasComment("常驻城市Id");
b.Property