// <auto-generated />
|
using System;
|
using FlexJobApi.EntityFramework.Core;
|
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Metadata;
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
#nullable disable
|
|
namespace FlexJobApi.Database.Migrations.Migrations
|
{
|
[DbContext(typeof(DefaultDbContext))]
|
partial class DefaultDbContextModelSnapshot : ModelSnapshot
|
{
|
protected override void BuildModel(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<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<Guid>("EnterpriseId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("企业Id");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<bool>("IsDisabled")
|
.HasColumnType("bit")
|
.HasComment("是否禁用");
|
|
b.Property<string>("Name")
|
.IsRequired()
|
.HasColumnType("nvarchar(max)")
|
.HasComment("名称");
|
|
b.Property<Guid?>("ParentId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("上级Id");
|
|
b.Property<string>("Path")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("部门路径");
|
|
b.Property<string>("Remark")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("备注");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("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<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<string>("Code")
|
.IsRequired()
|
.HasMaxLength(128)
|
.HasColumnType("nvarchar(128)")
|
.HasComment("编号");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<string>("FieldNames")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("字段名(逗号隔开)");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<string>("Name")
|
.IsRequired()
|
.HasMaxLength(128)
|
.HasColumnType("nvarchar(128)")
|
.HasComment("名称");
|
|
b.Property<string>("Remark")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("备注");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.HasKey("Id");
|
|
b.ToTable("DictionaryCategory", t =>
|
{
|
t.HasComment("字典类别");
|
});
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b =>
|
{
|
b.Property<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<Guid>("CategoryId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("类别Id");
|
|
b.Property<string>("Code")
|
.HasMaxLength(128)
|
.HasColumnType("nvarchar(128)")
|
.HasComment("编号");
|
|
b.Property<string>("Content")
|
.IsRequired()
|
.HasColumnType("nvarchar(max)")
|
.HasComment("显示内容");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<string>("Field1")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("字段1");
|
|
b.Property<string>("Field2")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("字段2");
|
|
b.Property<string>("Field3")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("字段3");
|
|
b.Property<string>("Field4")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("字段4");
|
|
b.Property<string>("Field5")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("字段5");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<bool>("IsDisabled")
|
.HasColumnType("bit")
|
.HasComment("是否禁用");
|
|
b.Property<Guid?>("ParentId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("上级Id");
|
|
b.Property<string>("Path")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("字典路径");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("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<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<string>("BankBranchName")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("开户支行");
|
|
b.Property<string>("BankCard")
|
.HasMaxLength(32)
|
.HasColumnType("nvarchar(32)")
|
.HasComment("银行账户");
|
|
b.Property<string>("BankName")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("开户总行");
|
|
b.Property<Guid?>("CityId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("所在城市Id");
|
|
b.Property<string>("ContactEmail")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("联系邮箱");
|
|
b.Property<string>("ContactPhoneNumber")
|
.HasMaxLength(11)
|
.HasColumnType("nvarchar(11)")
|
.HasComment("联系电话");
|
|
b.Property<string>("Contacts")
|
.HasMaxLength(32)
|
.HasColumnType("nvarchar(32)")
|
.HasComment("联系人");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<Guid>("EnterpriseAuthId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("企业认证Id");
|
|
b.Property<Guid?>("IndustryTypeId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("所属行业Id");
|
|
b.Property<bool>("IsCheckedBankCard")
|
.HasColumnType("bit")
|
.HasComment("是否已校验银行账户");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<string>("MainBusiness")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("主营业务");
|
|
b.Property<decimal?>("MergeSignCost")
|
.HasColumnType("decimal(18,2)")
|
.HasComment("一口价");
|
|
b.Property<int?>("PayAccess")
|
.HasColumnType("int")
|
.HasComment("支付通道");
|
|
b.Property<Guid?>("ProvinceId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("所在省份Id");
|
|
b.Property<int?>("RealAccess")
|
.HasColumnType("int")
|
.HasComment("实名通道");
|
|
b.Property<decimal?>("RealVerifyCost")
|
.HasColumnType("decimal(18,2)")
|
.HasComment("实名费用");
|
|
b.Property<decimal?>("SignCost")
|
.HasColumnType("decimal(18,2)")
|
.HasComment("签约费用");
|
|
b.Property<int?>("SmsAccess")
|
.HasColumnType("int")
|
.HasComment("短信通道");
|
|
b.Property<decimal>("SmsCost")
|
.HasColumnType("decimal(18,2)")
|
.HasComment("短信费用");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.HasKey("Id");
|
|
b.HasIndex("CityId");
|
|
b.HasIndex("EnterpriseAuthId");
|
|
b.HasIndex("IndustryTypeId");
|
|
b.HasIndex("ProvinceId");
|
|
b.ToTable("Enterprise", t =>
|
{
|
t.HasComment("企业");
|
});
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.EnterpriseAuth", b =>
|
{
|
b.Property<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<string>("BankCard")
|
.HasMaxLength(32)
|
.HasColumnType("nvarchar(32)")
|
.HasComment("法人或经办人银行卡号");
|
|
b.Property<string>("BankCardImg")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("法人或经办人银行卡照片");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<string>("EnterpriseName")
|
.IsRequired()
|
.HasMaxLength(128)
|
.HasColumnType("nvarchar(128)")
|
.HasComment("企业全称");
|
|
b.Property<int?>("EnterpriseRealMethod")
|
.HasColumnType("int")
|
.HasComment("企业认证方式");
|
|
b.Property<string>("Identity")
|
.HasMaxLength(18)
|
.HasColumnType("nvarchar(18)")
|
.HasComment("法人或经办人身份证号");
|
|
b.Property<string>("IdentityBackImg")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("法人或经办人身份证国徽面");
|
|
b.Property<string>("IdentityImg")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("法人或经办人身份证人像面");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<bool>("IsReal")
|
.HasColumnType("bit")
|
.HasComment("是否实名");
|
|
b.Property<string>("LegalIdentity")
|
.HasMaxLength(18)
|
.HasColumnType("nvarchar(18)")
|
.HasComment("法人身份证号");
|
|
b.Property<string>("LegalPerson")
|
.HasMaxLength(32)
|
.HasColumnType("nvarchar(32)")
|
.HasComment("法人姓名");
|
|
b.Property<string>("LicenseImage")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("营业执照照片");
|
|
b.Property<string>("Name")
|
.HasMaxLength(32)
|
.HasColumnType("nvarchar(32)")
|
.HasComment("法人或经办人姓名");
|
|
b.Property<int?>("PersonalRealMethod")
|
.HasColumnType("int")
|
.HasComment("法人或经办人实名方式");
|
|
b.Property<string>("PhoneNumber")
|
.HasMaxLength(11)
|
.HasColumnType("nvarchar(11)")
|
.HasComment("法人或经办人手机号");
|
|
b.Property<bool?>("Proxy")
|
.HasColumnType("bit")
|
.HasComment("是否委托经办人");
|
|
b.Property<string>("ProxyPowerAttorneyUrl")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("企业授权书");
|
|
b.Property<string>("SocietyCreditCode")
|
.IsRequired()
|
.HasMaxLength(18)
|
.HasColumnType("nvarchar(18)")
|
.HasComment("统一社会信用代码");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.HasKey("Id");
|
|
b.ToTable("EnterpriseAuth", t =>
|
{
|
t.HasComment("企业认证");
|
});
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
|
{
|
b.Property<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<int>("ClientType")
|
.HasColumnType("int")
|
.HasComment("客户端类型");
|
|
b.Property<string>("Code")
|
.IsRequired()
|
.HasColumnType("nvarchar(max)")
|
.HasComment("编号");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<string>("Group")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("分组名称(用于按钮/字段)");
|
|
b.Property<string>("Icon")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("图标");
|
|
b.Property<bool>("IsCache")
|
.HasColumnType("bit")
|
.HasComment("是否缓存");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<bool>("IsDisabled")
|
.HasColumnType("bit")
|
.HasComment("是否禁用");
|
|
b.Property<string>("Location")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("位置(用于按钮)");
|
|
b.Property<string>("Name")
|
.IsRequired()
|
.HasMaxLength(128)
|
.HasColumnType("nvarchar(128)")
|
.HasComment("名称");
|
|
b.Property<Guid?>("ParentId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("上级Id");
|
|
b.Property<string>("Path")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("菜单路径");
|
|
b.Property<string>("Remark")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("备注");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<int>("Type")
|
.HasColumnType("int")
|
.HasComment("类型");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.Property<string>("Url")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("链接地址");
|
|
b.Property<int>("UserType")
|
.HasColumnType("int")
|
.HasComment("用户类型");
|
|
b.Property<int>("VisitLevel")
|
.HasColumnType("int")
|
.HasComment("访问级别");
|
|
b.Property<string>("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<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<string>("ActionName")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("委托名称");
|
|
b.Property<string>("ActionSummary")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("委托摘要");
|
|
b.Property<bool>("AllowAnonymous")
|
.HasColumnType("bit")
|
.HasComment("忽略权限");
|
|
b.Property<string>("ApplicationName")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("应用名称");
|
|
b.Property<string>("Code")
|
.IsRequired()
|
.HasColumnType("nvarchar(max)")
|
.HasComment("编号");
|
|
b.Property<int>("Controller")
|
.HasColumnType("int")
|
.HasComment("控制器");
|
|
b.Property<string>("ControllerSummary")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("控制器摘要");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<string>("DynamicAssemblyName")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("动态程序集名称");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<bool>("IsExpired")
|
.HasColumnType("bit")
|
.HasComment("是否已过期");
|
|
b.Property<int>("Method")
|
.HasColumnType("int")
|
.HasComment("请求方式");
|
|
b.Property<string>("Name")
|
.IsRequired()
|
.HasColumnType("nvarchar(max)")
|
.HasComment("名称");
|
|
b.Property<string>("RequestTypeFullName")
|
.IsRequired()
|
.HasColumnType("nvarchar(max)")
|
.HasComment("请求类型全名");
|
|
b.Property<string>("RequestTypeName")
|
.IsRequired()
|
.HasColumnType("nvarchar(max)")
|
.HasComment("请求类型名称");
|
|
b.Property<string>("ResponseTypeFullName")
|
.IsRequired()
|
.HasColumnType("nvarchar(max)")
|
.HasComment("响应类型全名");
|
|
b.Property<string>("ResponseTypeName")
|
.IsRequired()
|
.HasColumnType("nvarchar(max)")
|
.HasComment("响应类型名称");
|
|
b.Property<string>("Route")
|
.IsRequired()
|
.HasColumnType("nvarchar(max)")
|
.HasComment("路由");
|
|
b.Property<string>("RouteArea")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("路由区域");
|
|
b.Property<int>("Service")
|
.HasColumnType("int")
|
.HasComment("服务");
|
|
b.Property<string>("ServiceName")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("服务名称");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.HasKey("Id");
|
|
b.ToTable("Resource", t =>
|
{
|
t.HasComment("资源");
|
});
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.Role", b =>
|
{
|
b.Property<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<int>("ClientType")
|
.HasColumnType("int")
|
.HasComment("客户端类型");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<int>("DataPower")
|
.HasColumnType("int")
|
.HasComment("数据权限");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<bool>("IsDisabled")
|
.HasColumnType("bit")
|
.HasComment("是否禁用");
|
|
b.Property<int>("MinLevel")
|
.HasColumnType("int")
|
.HasComment("最低级别");
|
|
b.Property<string>("Name")
|
.IsRequired()
|
.HasMaxLength(128)
|
.HasColumnType("nvarchar(128)")
|
.HasComment("名称");
|
|
b.Property<string>("Remark")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("备注");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.Property<int>("UserType")
|
.HasColumnType("int")
|
.HasComment("用户类型");
|
|
b.HasKey("Id");
|
|
b.ToTable("Role", t =>
|
{
|
t.HasComment("角色");
|
});
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.RoleMenu", b =>
|
{
|
b.Property<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<Guid>("MenuId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("菜单Id");
|
|
b.Property<Guid>("RoleId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("角色Id");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("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<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<int>("DataPower")
|
.HasColumnType("int")
|
.HasComment("数据权限");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<Guid>("ResourceId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("资源Id");
|
|
b.Property<Guid>("RoleId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("角色Id");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("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<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<string>("Address")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("任务地点详细地址");
|
|
b.Property<int>("AgeMaxLimit")
|
.HasColumnType("int")
|
.HasComment("年龄范围大");
|
|
b.Property<int>("AgeMinLimit")
|
.HasColumnType("int")
|
.HasComment("年龄范围最小");
|
|
b.Property<DateTime>("BeginTime")
|
.HasColumnType("datetime2")
|
.HasComment("任务开始时间");
|
|
b.Property<int>("BillingMethod")
|
.HasColumnType("int")
|
.HasComment("计费方式");
|
|
b.Property<Guid>("CityId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("任务地点所属区域Id");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<DateTime>("EndTime")
|
.HasColumnType("datetime2")
|
.HasComment("任务结束时间");
|
|
b.Property<Guid>("EnterpriseId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("企业Id");
|
|
b.Property<int>("GenderLimit")
|
.HasColumnType("int")
|
.HasComment("性别要求");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<string>("Name")
|
.IsRequired()
|
.HasColumnType("nvarchar(max)")
|
.HasComment("任务名称");
|
|
b.Property<decimal>("ServiceFee")
|
.HasColumnType("decimal(18,2)")
|
.HasComment("服务费");
|
|
b.Property<int>("SettlementCycle")
|
.HasColumnType("int")
|
.HasComment("结算方式");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("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<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<Guid>("BenefitId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("福利Id");
|
|
b.Property<Guid>("BenefitId1")
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<Guid>("TaskInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("任务Id");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("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<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<Guid>("TaskInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("任务Id");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<Guid?>("TypeId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("证书类型Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.HasKey("Id");
|
|
b.HasIndex("TaskInfoId");
|
|
b.HasIndex("TypeId");
|
|
b.ToTable("TaskInfoCredentialLimit");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b =>
|
{
|
b.Property<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<int>("HireStatus")
|
.HasColumnType("int")
|
.HasComment("录用状态");
|
|
b.Property<DateTime?>("HireTime")
|
.HasColumnType("datetime2")
|
.HasComment("录用时间");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<int?>("SignContractStatus")
|
.HasColumnType("int")
|
.HasComment("签约状态");
|
|
b.Property<DateTime?>("SignContractTime")
|
.HasColumnType("datetime2")
|
.HasComment("签约时间");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<Guid>("TaskInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("任务Id");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.Property<Guid>("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<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<string>("BankCard")
|
.HasMaxLength(32)
|
.HasColumnType("nvarchar(32)")
|
.HasComment("银行卡号");
|
|
b.Property<string>("BankCardImg")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("银行卡照片");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<string>("Identity")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("身份证号");
|
|
b.Property<string>("IdentityBackImg")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("身份证国徽面");
|
|
b.Property<string>("IdentityImg")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("身份证人像面");
|
|
b.Property<bool>("IsCheckPhoneNumber")
|
.HasColumnType("bit")
|
.HasComment("是否已校验手机号");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<bool>("IsReal")
|
.HasColumnType("bit")
|
.HasComment("是否实名");
|
|
b.Property<string>("Name")
|
.IsRequired()
|
.HasMaxLength(32)
|
.HasColumnType("nvarchar(32)")
|
.HasComment("姓名");
|
|
b.Property<string>("Password")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("密码");
|
|
b.Property<string>("PhoneNumber")
|
.HasMaxLength(11)
|
.HasColumnType("nvarchar(11)")
|
.HasComment("手机号");
|
|
b.Property<int?>("RealAccess")
|
.HasColumnType("int")
|
.HasComment("实名通道");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.Property<string>("UserName")
|
.IsRequired()
|
.HasMaxLength(32)
|
.HasColumnType("nvarchar(32)")
|
.HasComment("用户名");
|
|
b.HasKey("Id");
|
|
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<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<string>("Avatar")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("头像");
|
|
b.Property<Guid?>("CityId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("常驻城市Id");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<Guid?>("EducationalBackgroundId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("学历Id");
|
|
b.Property<Guid?>("EnterpriseId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("企业Id");
|
|
b.Property<int?>("FreeTime")
|
.HasColumnType("int")
|
.HasComment("空闲时间");
|
|
b.Property<int?>("Height")
|
.HasColumnType("int")
|
.HasComment("身高");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<int?>("JobSeekingStatus")
|
.HasColumnType("int")
|
.HasComment("求职状态");
|
|
b.Property<int>("Level")
|
.HasColumnType("int")
|
.HasComment("级别");
|
|
b.Property<Guid?>("PersonalIdentityId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("身份Id");
|
|
b.Property<Guid?>("ProvinceId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("常驻省份Id");
|
|
b.Property<string>("Remark")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("备注");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<int>("Status")
|
.HasColumnType("int")
|
.HasComment("状态");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<int>("Type")
|
.HasColumnType("int")
|
.HasComment("用户类型");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.Property<Guid>("UserAuthId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("用户Id");
|
|
b.Property<int?>("Weight")
|
.HasColumnType("int")
|
.HasComment("体重");
|
|
b.Property<string>("WorkExperience")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("工作经验");
|
|
b.Property<string>("WorkSeniority")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("工作资历");
|
|
b.Property<string>("WxmpOpenId")
|
.HasMaxLength(32)
|
.HasColumnType("nvarchar(32)")
|
.HasComment("微信开放Id");
|
|
b.HasKey("Id");
|
|
b.HasIndex("CityId");
|
|
b.HasIndex("EducationalBackgroundId");
|
|
b.HasIndex("EnterpriseId");
|
|
b.HasIndex("PersonalIdentityId");
|
|
b.HasIndex("ProvinceId");
|
|
b.HasIndex("UserAuthId");
|
|
b.ToTable("UserInfo", t =>
|
{
|
t.HasComment("用户信息");
|
});
|
|
b.HasData(
|
new
|
{
|
Id = new Guid("11111111-1111-1111-1111-111111111112"),
|
CreatedTime = new DateTimeOffset(new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 8, 0, 0, 0)),
|
IsDeleted = false,
|
Level = 999,
|
Sort = 0,
|
Status = 0,
|
Type = 100,
|
UserAuthId = new Guid("11111111-1111-1111-1111-111111111111")
|
});
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserInfoBankCard", b =>
|
{
|
b.Property<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<string>("Bank")
|
.IsRequired()
|
.HasMaxLength(128)
|
.HasColumnType("nvarchar(128)")
|
.HasComment("开户行");
|
|
b.Property<string>("Code")
|
.IsRequired()
|
.HasMaxLength(32)
|
.HasColumnType("nvarchar(32)")
|
.HasComment("银行卡号");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<string>("PhoneNumber")
|
.IsRequired()
|
.HasMaxLength(11)
|
.HasColumnType("nvarchar(11)")
|
.HasComment("银行预留手机号");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.Property<Guid>("UserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("用户信息Id");
|
|
b.HasKey("Id");
|
|
b.HasIndex("UserInfoId");
|
|
b.ToTable("UserInfoBankCard", t =>
|
{
|
t.HasComment("用户银行卡信息");
|
});
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserInfoCredential", b =>
|
{
|
b.Property<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<string>("BackImg")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("证书反面照片");
|
|
b.Property<string>("Code")
|
.IsRequired()
|
.HasMaxLength(128)
|
.HasColumnType("nvarchar(128)")
|
.HasComment("证书编号");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<DateTime>("EndDate")
|
.HasColumnType("datetime2")
|
.HasComment("结束日期");
|
|
b.Property<string>("Img")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("证书正面照片");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<bool>("IsForever")
|
.HasColumnType("bit")
|
.HasComment("永久证书");
|
|
b.Property<string>("IssueUnit")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("发证单位");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<DateTime>("StartDate")
|
.HasColumnType("datetime2")
|
.HasComment("开始日期");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<Guid?>("TypeId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("证书类型Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.Property<Guid>("UserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("用户信息Id");
|
|
b.HasKey("Id");
|
|
b.HasIndex("TypeId");
|
|
b.HasIndex("UserInfoId");
|
|
b.ToTable("UserInfoCredential", t =>
|
{
|
t.HasComment("用户信息资格证书");
|
});
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserInfoDepartment", b =>
|
{
|
b.Property<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<Guid>("DepartmentId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("部门Id");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.Property<Guid>("UserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("用户信息Id");
|
|
b.HasKey("Id");
|
|
b.HasIndex("DepartmentId");
|
|
b.HasIndex("UserInfoId");
|
|
b.ToTable("UserInfoDepartment", t =>
|
{
|
t.HasComment("用户信息部门");
|
});
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserInfoExpectJob", b =>
|
{
|
b.Property<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<Guid>("PersonalIdentityId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("期望岗位Id");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.Property<Guid>("UserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("用户信息Id");
|
|
b.HasKey("Id");
|
|
b.HasIndex("PersonalIdentityId");
|
|
b.HasIndex("UserInfoId");
|
|
b.ToTable("UserInfoExpectJob", t =>
|
{
|
t.HasComment("用户信息期望岗位");
|
});
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserInfoPhoto", b =>
|
{
|
b.Property<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<string>("Img")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("照片");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.Property<Guid>("UserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("用户信息Id");
|
|
b.HasKey("Id");
|
|
b.HasIndex("UserInfoId");
|
|
b.ToTable("UserInfoPhoto", t =>
|
{
|
t.HasComment("用户信息生活照");
|
});
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserInfoRole", b =>
|
{
|
b.Property<Guid>("Id")
|
.ValueGeneratedOnAdd()
|
.HasColumnType("uniqueidentifier");
|
|
b.Property<DateTimeOffset>("CreatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("CreatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("创建操作人");
|
|
b.Property<bool>("IsDeleted")
|
.HasColumnType("bit")
|
.HasComment("是否删除");
|
|
b.Property<Guid>("RoleId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("角色Id");
|
|
b.Property<int>("Sort")
|
.HasColumnType("int")
|
.HasComment("排序");
|
|
b.Property<string>("TraceId")
|
.HasColumnType("nvarchar(max)")
|
.HasComment("跟踪Id");
|
|
b.Property<DateTimeOffset?>("UpdatedTime")
|
.HasColumnType("datetimeoffset");
|
|
b.Property<Guid?>("UpdatedUserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("最后更新操作人");
|
|
b.Property<Guid>("UserInfoId")
|
.HasColumnType("uniqueidentifier")
|
.HasComment("用户信息Id");
|
|
b.HasKey("Id");
|
|
b.HasIndex("RoleId");
|
|
b.HasIndex("UserInfoId");
|
|
b.ToTable("UserInfoRole", t =>
|
{
|
t.HasComment("用户信息角色");
|
});
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.Department", b =>
|
{
|
b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise")
|
.WithMany("Departments")
|
.HasForeignKey("EnterpriseId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.HasOne("FlexJobApi.Core.Department", "Parent")
|
.WithMany("Children")
|
.HasForeignKey("ParentId");
|
|
b.Navigation("Enterprise");
|
|
b.Navigation("Parent");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b =>
|
{
|
b.HasOne("FlexJobApi.Core.DictionaryCategory", "Category")
|
.WithMany()
|
.HasForeignKey("CategoryId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.HasOne("FlexJobApi.Core.DictionaryData", "Parent")
|
.WithMany("Children")
|
.HasForeignKey("ParentId");
|
|
b.Navigation("Category");
|
|
b.Navigation("Parent");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.Enterprise", b =>
|
{
|
b.HasOne("FlexJobApi.Core.DictionaryData", "City")
|
.WithMany()
|
.HasForeignKey("CityId");
|
|
b.HasOne("FlexJobApi.Core.EnterpriseAuth", "EnterpriseAuth")
|
.WithMany()
|
.HasForeignKey("EnterpriseAuthId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.HasOne("FlexJobApi.Core.DictionaryData", "IndustryType")
|
.WithMany()
|
.HasForeignKey("IndustryTypeId");
|
|
b.HasOne("FlexJobApi.Core.DictionaryData", "Province")
|
.WithMany()
|
.HasForeignKey("ProvinceId");
|
|
b.Navigation("City");
|
|
b.Navigation("EnterpriseAuth");
|
|
b.Navigation("IndustryType");
|
|
b.Navigation("Province");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
|
{
|
b.HasOne("FlexJobApi.Core.Menu", "Parent")
|
.WithMany("Children")
|
.HasForeignKey("ParentId");
|
|
b.Navigation("Parent");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.RoleMenu", b =>
|
{
|
b.HasOne("FlexJobApi.Core.Menu", "Menu")
|
.WithMany()
|
.HasForeignKey("MenuId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.HasOne("FlexJobApi.Core.Role", "Role")
|
.WithMany("RoleMenus")
|
.HasForeignKey("RoleId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.Navigation("Menu");
|
|
b.Navigation("Role");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.RoleResource", b =>
|
{
|
b.HasOne("FlexJobApi.Core.Resource", "Resource")
|
.WithMany()
|
.HasForeignKey("ResourceId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.HasOne("FlexJobApi.Core.Role", "Role")
|
.WithMany("RoleResources")
|
.HasForeignKey("RoleId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.Navigation("Resource");
|
|
b.Navigation("Role");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b =>
|
{
|
b.HasOne("FlexJobApi.Core.DictionaryData", "City")
|
.WithMany()
|
.HasForeignKey("CityId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise")
|
.WithMany()
|
.HasForeignKey("EnterpriseId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.Navigation("City");
|
|
b.Navigation("Enterprise");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.TaskInfoBenefit", b =>
|
{
|
b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo")
|
.WithMany("Benefits")
|
.HasForeignKey("BenefitId")
|
.OnDelete(DeleteBehavior.Restrict)
|
.IsRequired();
|
|
b.HasOne("FlexJobApi.Core.DictionaryData", "Benefit")
|
.WithMany()
|
.HasForeignKey("BenefitId1")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.Navigation("Benefit");
|
|
b.Navigation("TaskInfo");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.TaskInfoCredentialLimit", b =>
|
{
|
b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo")
|
.WithMany("CredentialLimits")
|
.HasForeignKey("TaskInfoId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.HasOne("FlexJobApi.Core.DictionaryData", "Type")
|
.WithMany()
|
.HasForeignKey("TypeId");
|
|
b.Navigation("TaskInfo");
|
|
b.Navigation("Type");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.TaskInfoUser", b =>
|
{
|
b.HasOne("FlexJobApi.Core.TaskInfo", "TaskInfo")
|
.WithMany()
|
.HasForeignKey("TaskInfoId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
|
.WithMany()
|
.HasForeignKey("UserInfoId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.Navigation("TaskInfo");
|
|
b.Navigation("UserInfo");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserInfo", b =>
|
{
|
b.HasOne("FlexJobApi.Core.DictionaryData", "City")
|
.WithMany()
|
.HasForeignKey("CityId");
|
|
b.HasOne("FlexJobApi.Core.DictionaryData", "EducationalBackground")
|
.WithMany()
|
.HasForeignKey("EducationalBackgroundId");
|
|
b.HasOne("FlexJobApi.Core.Enterprise", "Enterprise")
|
.WithMany("UserInfos")
|
.HasForeignKey("EnterpriseId");
|
|
b.HasOne("FlexJobApi.Core.DictionaryData", "PersonalIdentity")
|
.WithMany()
|
.HasForeignKey("PersonalIdentityId");
|
|
b.HasOne("FlexJobApi.Core.DictionaryData", "Province")
|
.WithMany()
|
.HasForeignKey("ProvinceId");
|
|
b.HasOne("FlexJobApi.Core.UserAuth", "UserAuth")
|
.WithMany("UserInfos")
|
.HasForeignKey("UserAuthId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.Navigation("City");
|
|
b.Navigation("EducationalBackground");
|
|
b.Navigation("Enterprise");
|
|
b.Navigation("PersonalIdentity");
|
|
b.Navigation("Province");
|
|
b.Navigation("UserAuth");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserInfoBankCard", b =>
|
{
|
b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
|
.WithMany()
|
.HasForeignKey("UserInfoId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.Navigation("UserInfo");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserInfoCredential", b =>
|
{
|
b.HasOne("FlexJobApi.Core.DictionaryData", "Type")
|
.WithMany()
|
.HasForeignKey("TypeId");
|
|
b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
|
.WithMany("UserInfoCredentials")
|
.HasForeignKey("UserInfoId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.Navigation("Type");
|
|
b.Navigation("UserInfo");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserInfoDepartment", b =>
|
{
|
b.HasOne("FlexJobApi.Core.Department", "Department")
|
.WithMany()
|
.HasForeignKey("DepartmentId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
|
.WithMany("UserInfoDepartments")
|
.HasForeignKey("UserInfoId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.Navigation("Department");
|
|
b.Navigation("UserInfo");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserInfoExpectJob", b =>
|
{
|
b.HasOne("FlexJobApi.Core.DictionaryData", "PersonalIdentity")
|
.WithMany()
|
.HasForeignKey("PersonalIdentityId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
|
.WithMany("UserInfoExpectJobs")
|
.HasForeignKey("UserInfoId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.Navigation("PersonalIdentity");
|
|
b.Navigation("UserInfo");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserInfoPhoto", b =>
|
{
|
b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
|
.WithMany()
|
.HasForeignKey("UserInfoId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.Navigation("UserInfo");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserInfoRole", b =>
|
{
|
b.HasOne("FlexJobApi.Core.Role", "Role")
|
.WithMany("UserInfoRoles")
|
.HasForeignKey("RoleId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.HasOne("FlexJobApi.Core.UserInfo", "UserInfo")
|
.WithMany("UserInfoRoles")
|
.HasForeignKey("UserInfoId")
|
.OnDelete(DeleteBehavior.Cascade)
|
.IsRequired();
|
|
b.Navigation("Role");
|
|
b.Navigation("UserInfo");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.Department", b =>
|
{
|
b.Navigation("Children");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.DictionaryData", b =>
|
{
|
b.Navigation("Children");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.Enterprise", b =>
|
{
|
b.Navigation("Departments");
|
|
b.Navigation("UserInfos");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.Menu", b =>
|
{
|
b.Navigation("Children");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.Role", b =>
|
{
|
b.Navigation("RoleMenus");
|
|
b.Navigation("RoleResources");
|
|
b.Navigation("UserInfoRoles");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.TaskInfo", b =>
|
{
|
b.Navigation("Benefits");
|
|
b.Navigation("CredentialLimits");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserAuth", b =>
|
{
|
b.Navigation("UserInfos");
|
});
|
|
modelBuilder.Entity("FlexJobApi.Core.UserInfo", b =>
|
{
|
b.Navigation("UserInfoCredentials");
|
|
b.Navigation("UserInfoDepartments");
|
|
b.Navigation("UserInfoExpectJobs");
|
|
b.Navigation("UserInfoRoles");
|
});
|
#pragma warning restore 612, 618
|
}
|
}
|
}
|