You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2662 lines
101 KiB
2662 lines
101 KiB
|
3 months ago
|
// <auto-generated />
|
||
|
|
using System;
|
||
|
|
using ATS.NonCustodial.EntityFrameworkCore.EntityFrameworkCore;
|
||
|
|
using Microsoft.EntityFrameworkCore;
|
||
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||
|
|
|
||
|
|
#nullable disable
|
||
|
|
|
||
|
|
namespace ATS.NonCustodial.DbMigrations.DbMigrations.Migrations.Mysql.Admin
|
||
|
|
{
|
||
|
|
[DbContext(typeof(AdminDbContext))]
|
||
|
|
[Migration("20220615053252_adjustsprealtimetable")]
|
||
|
|
partial class adjustsprealtimetable
|
||
|
|
{
|
||
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||
|
|
{
|
||
|
|
#pragma warning disable 612, 618
|
||
|
|
modelBuilder
|
||
|
|
.HasAnnotation("ProductVersion", "6.0.5")
|
||
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||
|
|
|
||
|
|
MySqlModelBuilderExtensions.HasCharSet(modelBuilder, "utf8mb4 ");
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Admins.AppApi", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Description")
|
||
|
|
.HasMaxLength(255)
|
||
|
|
.HasColumnType("varchar(255)")
|
||
|
|
.HasComment("说明");
|
||
|
|
|
||
|
|
b.Property<string>("HttpMethods")
|
||
|
|
.HasMaxLength(10)
|
||
|
|
.HasColumnType("varchar(10)")
|
||
|
|
.HasComment("接口提交方法");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Label")
|
||
|
|
.HasMaxLength(50)
|
||
|
|
.HasColumnType("varchar(50)")
|
||
|
|
.HasComment("接口名称");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Name")
|
||
|
|
.HasMaxLength(50)
|
||
|
|
.HasColumnType("varchar(50)")
|
||
|
|
.HasComment("接口命名");
|
||
|
|
|
||
|
|
b.Property<long>("ParentId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("所属模块");
|
||
|
|
|
||
|
|
b.Property<string>("Path")
|
||
|
|
.HasMaxLength(128)
|
||
|
|
.HasColumnType("varchar(128)")
|
||
|
|
.HasComment("接口地址");
|
||
|
|
|
||
|
|
b.Property<int>("Sort")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("排序");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_api");
|
||
|
|
|
||
|
|
b.HasComment("接口管理");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Admins.AppDictionary", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Code")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("字典编码");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Description")
|
||
|
|
.HasMaxLength(255)
|
||
|
|
.HasColumnType("varchar(255)")
|
||
|
|
.HasComment("描述");
|
||
|
|
|
||
|
|
b.Property<long>("DictionaryTypeId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("字典类型Id");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Name")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("字典名称");
|
||
|
|
|
||
|
|
b.Property<int>("Sort")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("排序");
|
||
|
|
|
||
|
|
b.Property<string>("Value")
|
||
|
|
.HasMaxLength(50)
|
||
|
|
.HasColumnType("varchar(50)")
|
||
|
|
.HasComment("字典值 (例如:预警类型等级(根据案件字典类型定义,比如预计5次变黄,10变红,存储格式5,10))");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_dictionary");
|
||
|
|
|
||
|
|
b.HasComment("数据字典");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Admins.AppDictionaryType", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Code")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("编码");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Description")
|
||
|
|
.HasMaxLength(255)
|
||
|
|
.HasColumnType("varchar(255)")
|
||
|
|
.HasComment("描述");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Name")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("名称");
|
||
|
|
|
||
|
|
b.Property<int>("Sort")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("排序");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_dictionary_type");
|
||
|
|
|
||
|
|
b.HasComment("数据字典类型");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Admins.AppPermission", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<bool?>("Closable")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("可关闭");
|
||
|
|
|
||
|
|
b.Property<string>("Code")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("权限编码");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Description")
|
||
|
|
.HasMaxLength(255)
|
||
|
|
.HasColumnType("varchar(255)")
|
||
|
|
.HasComment("描述");
|
||
|
|
|
||
|
|
b.Property<bool>("Enabled")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("启用");
|
||
|
|
|
||
|
|
b.Property<bool?>("External")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("链接外显");
|
||
|
|
|
||
|
|
b.Property<bool>("Hidden")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("隐藏");
|
||
|
|
|
||
|
|
b.Property<string>("Icon")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("图标");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Label")
|
||
|
|
.HasMaxLength(50)
|
||
|
|
.HasColumnType("varchar(50)")
|
||
|
|
.HasComment("权限名称");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<bool?>("NewWindow")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("打开新窗口");
|
||
|
|
|
||
|
|
b.Property<bool?>("Opened")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("打开组");
|
||
|
|
|
||
|
|
b.Property<long>("ParentId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("父级节点");
|
||
|
|
|
||
|
|
b.Property<string>("Path")
|
||
|
|
.HasMaxLength(128)
|
||
|
|
.HasColumnType("varchar(128)")
|
||
|
|
.HasComment("菜单访问地址");
|
||
|
|
|
||
|
|
b.Property<int?>("Sort")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("排序");
|
||
|
|
|
||
|
|
b.Property<int>("Type")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("权限类型");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ViewId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("视图");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_permission");
|
||
|
|
|
||
|
|
b.HasComment("权限");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Admins.AppPermissionApi", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("ApiId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("接口Id");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("PermissionId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("权限Id");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_permission_api");
|
||
|
|
|
||
|
|
b.HasComment("权限接口");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Admins.AppRole", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Code")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("编码");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Description")
|
||
|
|
.HasMaxLength(255)
|
||
|
|
.HasColumnType("varchar(255)")
|
||
|
|
.HasComment("说明");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Name")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("名称");
|
||
|
|
|
||
|
|
b.Property<int>("Sort")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("排序");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_role");
|
||
|
|
|
||
|
|
b.HasComment("AppRole");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Admins.AppRolePermission", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("PermissionId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("权限Id");
|
||
|
|
|
||
|
|
b.Property<long>("RoleId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("角色Id");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_role_permission");
|
||
|
|
|
||
|
|
b.HasComment("角色权限");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Admins.AppUser", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Avatar")
|
||
|
|
.HasMaxLength(128)
|
||
|
|
.HasColumnType("varchar(128)")
|
||
|
|
.HasComment("头像路径");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("Birthday")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("生日");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Email")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("email");
|
||
|
|
|
||
|
|
b.Property<int>("Gender")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("性别枚举(0:男性 1:女性 2:未知)");
|
||
|
|
|
||
|
|
b.Property<string>("IdCard")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("身份证号");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Name")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("姓名");
|
||
|
|
|
||
|
|
b.Property<string>("NickName")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("昵称");
|
||
|
|
|
||
|
|
b.Property<string>("Password")
|
||
|
|
.HasMaxLength(36)
|
||
|
|
.HasColumnType("varchar(36)")
|
||
|
|
.HasComment("密码");
|
||
|
|
|
||
|
|
b.Property<string>("PasswordSalt")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("密码盐");
|
||
|
|
|
||
|
|
b.Property<string>("Phone")
|
||
|
|
.HasMaxLength(11)
|
||
|
|
.HasColumnType("varchar(11)")
|
||
|
|
.HasComment("手机号(手机号限制输入为手机号格式,位数为11位。)");
|
||
|
|
|
||
|
|
b.Property<long?>("PositionId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("职位字典Id(数据来自字典)");
|
||
|
|
|
||
|
|
b.Property<string>("Remark")
|
||
|
|
.HasMaxLength(255)
|
||
|
|
.HasColumnType("varchar(255)")
|
||
|
|
.HasComment("备注");
|
||
|
|
|
||
|
|
b.Property<long?>("RoleId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("用户类型(角色)");
|
||
|
|
|
||
|
|
b.Property<int>("State")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("监管人员状态类型(0:未设置 1:在线 2:小休一下 3:挂起)");
|
||
|
|
|
||
|
|
b.Property<string>("UserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("账号");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_user");
|
||
|
|
|
||
|
|
b.HasComment("AppUsers");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Admins.AppUserRole", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("RoleId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("角色Id");
|
||
|
|
|
||
|
|
b.Property<long>("UserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("用户Id");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_user_role");
|
||
|
|
|
||
|
|
b.HasComment("用户角色表");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Admins.AppView", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<bool>("Cache")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("缓存");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Description")
|
||
|
|
.HasMaxLength(255)
|
||
|
|
.HasColumnType("varchar(255)")
|
||
|
|
.HasComment("说明");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Label")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("视图名称");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Name")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("视图命名");
|
||
|
|
|
||
|
|
b.Property<long>("ParentId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("所属节点");
|
||
|
|
|
||
|
|
b.Property<string>("Path")
|
||
|
|
.HasMaxLength(128)
|
||
|
|
.HasColumnType("varchar(128)")
|
||
|
|
.HasComment("视图路径");
|
||
|
|
|
||
|
|
b.Property<int>("Sort")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("排序");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_view");
|
||
|
|
|
||
|
|
b.HasComment("视图管理");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.AppAnnouncement", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("AnnouncementTypeId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("公共类型(数据来自字典)");
|
||
|
|
|
||
|
|
b.Property<string>("Content")
|
||
|
|
.HasMaxLength(2048)
|
||
|
|
.HasColumnType("varchar(2048)")
|
||
|
|
.HasComment("公共内容(富文本框)");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Title")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("公告名字");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_announcement");
|
||
|
|
|
||
|
|
b.HasComment("平台通知管理");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.AppAnnouncementViewStatistics", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("AnnouncementId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("公告Id");
|
||
|
|
|
||
|
|
b.Property<int>("CheckStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("查阅状态");
|
||
|
|
|
||
|
|
b.Property<DateTime>("CheckTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("查阅时间");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("SupervisedPersonId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("被监管人Id");
|
||
|
|
|
||
|
|
b.Property<string>("SupervisedPersonName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("被监管人员");
|
||
|
|
|
||
|
|
b.Property<string>("Title")
|
||
|
|
.IsRequired()
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("公告标题");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_announcement_view_statistics");
|
||
|
|
|
||
|
|
b.HasComment("查阅统计管理(包括公告)\r\n 查阅统计的人员来自公告的发送人员列表。");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.AppBusinessApplication", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime>("ActiveTimePeriodBegin")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("活动开始时间段(年月日时分)");
|
||
|
|
|
||
|
|
b.Property<DateTime>("ActiveTimePeriodEnd")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("活动结束时间段(年月日时分)");
|
||
|
|
|
||
|
|
b.Property<string>("ApplicationDescription")
|
||
|
|
.HasMaxLength(255)
|
||
|
|
.HasColumnType("varchar(255)")
|
||
|
|
.HasComment("申请描述");
|
||
|
|
|
||
|
|
b.Property<DateTime>("ApplicationTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("申请时间");
|
||
|
|
|
||
|
|
b.Property<long>("ApplicationTypeId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("申请类型(数据来自字典)");
|
||
|
|
|
||
|
|
b.Property<string>("AuditOpinion")
|
||
|
|
.HasMaxLength(255)
|
||
|
|
.HasColumnType("varchar(255)")
|
||
|
|
.HasComment("审核意见");
|
||
|
|
|
||
|
|
b.Property<int>("AuditStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("审核状态");
|
||
|
|
|
||
|
|
b.Property<long>("AuditorId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("审核人员Id");
|
||
|
|
|
||
|
|
b.Property<string>("AuditorName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("审核人员名字");
|
||
|
|
|
||
|
|
b.Property<long>("CaseId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案子Id");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("SupervisedPersonId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("被监管人Id (申请人Id)");
|
||
|
|
|
||
|
|
b.Property<string>("SupervisedPersonName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("被监管人员 (申请人名字)");
|
||
|
|
|
||
|
|
b.Property<long>("SupervisorId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("监管人员Id");
|
||
|
|
|
||
|
|
b.Property<string>("SupervisorName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("监管人员名字");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_business_application");
|
||
|
|
|
||
|
|
b.HasComment("被监管人员==>业务申请(比如:申请跨域活动等)对应监管人员办案频次统计");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.AppCommonFence", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Name")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("围栏名称");
|
||
|
|
|
||
|
|
b.Property<string>("Path")
|
||
|
|
.HasMaxLength(1024)
|
||
|
|
.HasColumnType("varchar(1024)")
|
||
|
|
.HasComment("存储围栏的坐标信息 (经纬度数组)");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_common_fence");
|
||
|
|
|
||
|
|
b.HasComment("常用围栏管理");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.AppDeviceManagement", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DeviceStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("设备状态枚举(0:在线 1:离线)");
|
||
|
|
|
||
|
|
b.Property<long>("DeviceTypeId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("设备类型Id(来自字段数据字典)");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Name")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("设备名称");
|
||
|
|
|
||
|
|
b.Property<long>("SupervisedPersonId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("被监管人Id");
|
||
|
|
|
||
|
|
b.Property<string>("SupervisedPersonName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("被监管人员");
|
||
|
|
|
||
|
|
b.Property<long>("SupervisorId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("监管人员-管理人员(来自用户管理员列表)");
|
||
|
|
|
||
|
|
b.Property<string>("SupervisorName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("监管人员-管理人员");
|
||
|
|
|
||
|
|
b.Property<string>("UniqueIdentifier")
|
||
|
|
.HasMaxLength(36)
|
||
|
|
.HasColumnType("varchar(36)")
|
||
|
|
.HasComment("设备唯一标识符");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_device_management");
|
||
|
|
|
||
|
|
b.HasComment("设备(比如:手环)管理");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.AppEarlyWarning", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Content")
|
||
|
|
.IsRequired()
|
||
|
|
.HasMaxLength(2048)
|
||
|
|
.HasColumnType("varchar(2048)")
|
||
|
|
.HasComment("预警提醒内容");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("EarlyWarningTypeId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("预警类型Id(来自数据字典)");
|
||
|
|
|
||
|
|
b.Property<long>("SupervisedPersonId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("被监管人Id");
|
||
|
|
|
||
|
|
b.Property<string>("SupervisedPersonName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("被监管人员");
|
||
|
|
|
||
|
|
b.Property<string>("Title")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("标题");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_early_warning");
|
||
|
|
|
||
|
|
b.HasComment("预警提醒管理");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.AppPunchRecordStatistics", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("CaseId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案件Id");
|
||
|
|
|
||
|
|
b.Property<string>("CaseName")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("案件名称");
|
||
|
|
|
||
|
|
b.Property<string>("CheckInLocation")
|
||
|
|
.HasMaxLength(255)
|
||
|
|
.HasColumnType("varchar(255)")
|
||
|
|
.HasComment("打卡地点(存储的是坐标位置)");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("PunchVideo")
|
||
|
|
.HasMaxLength(128)
|
||
|
|
.HasColumnType("varchar(128)")
|
||
|
|
.HasComment("打卡视频");
|
||
|
|
|
||
|
|
b.Property<long>("SupervisedPersonId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("被监管人Id");
|
||
|
|
|
||
|
|
b.Property<string>("SupervisedPersonName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("被监管人员");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_punch_record_statistics");
|
||
|
|
|
||
|
|
b.HasComment("打卡记管理");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.AppViolationStatistics", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("CaseId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案件Id");
|
||
|
|
|
||
|
|
b.Property<string>("CaseName")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("案件名称");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("SupervisedPersonId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("被监管人Id");
|
||
|
|
|
||
|
|
b.Property<string>("SupervisedPersonName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("被监管人员");
|
||
|
|
|
||
|
|
b.Property<long>("ViolationTypeId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("违规类型(数据来自字典)");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_violation_statistics");
|
||
|
|
|
||
|
|
b.HasComment("违规统计");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.CaseManagements.AppCaseManagement", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CaseBeginTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("案子开始时间");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CaseClosedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("案子结束时间");
|
||
|
|
|
||
|
|
b.Property<int>("CaseProgress")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("案件进度枚举 (0:待执行 1:执行中 2:已结束)");
|
||
|
|
|
||
|
|
b.Property<long>("CaseTypeId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案件类型(数据来自字典)");
|
||
|
|
|
||
|
|
b.Property<double>("CheckInFrequency")
|
||
|
|
.HasColumnType("double")
|
||
|
|
.HasComment("打卡频次(打卡频次的数据可输入小数,保留一位小数) 小时打卡一次\r\n 打卡频次的数据可输入小数,保留一位小数。在被监管人在非休息时间内打卡时间间隔超过设置的间隔,则需要进行预警,提示XXX未打卡。");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("JudgmentStatusId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("判决状态(数据来自字典)");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Name")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("案件名称");
|
||
|
|
|
||
|
|
b.Property<double>("ProximityLevel")
|
||
|
|
.HasColumnType("double")
|
||
|
|
.HasComment("接近等级(米)");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("RestBeginTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("休息开始时间(格式:时分)");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("RestEndTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("休息结束时间(格式:时分)");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_case_management");
|
||
|
|
|
||
|
|
b.HasComment("案件管理实体表");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.CaseManagements.AppCaseNotes", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("CaseId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案件Id");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Notes")
|
||
|
|
.HasMaxLength(1024)
|
||
|
|
.HasColumnType("varchar(1024)")
|
||
|
|
.HasComment("案件重要节点批注内容");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_case_notes");
|
||
|
|
|
||
|
|
b.HasComment("案件重要节点批注");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.CaseManagements.AppCaseSupervisedPerson", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("ApprovalStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("审核状态(在案件管理==>添加被监管人员哪里审核)");
|
||
|
|
|
||
|
|
b.Property<long>("CaseId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案件Id");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("ElectricFenceId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("常用围栏(电子围栏)Id");
|
||
|
|
|
||
|
|
b.Property<string>("EnterFace")
|
||
|
|
.HasMaxLength(128)
|
||
|
|
.HasColumnType("varchar(128)")
|
||
|
|
.HasComment("绑定提交时录入的人脸照片地址");
|
||
|
|
|
||
|
|
b.Property<int>("Gender")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("性别枚举(0:男性 1:女性 2:未知)");
|
||
|
|
|
||
|
|
b.Property<string>("IMEI")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("IMEI是被监管人在APP上提交申请时,会自动上报的手机唯一标识数据。");
|
||
|
|
|
||
|
|
b.Property<string>("IdCard")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("被监管人-身份证号码");
|
||
|
|
|
||
|
|
b.Property<bool>("IsBound")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("被监管人员是否已经绑定(当审核状态为 ApprovalStatusEnum.PassReview)即为绑定");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Phone")
|
||
|
|
.HasMaxLength(11)
|
||
|
|
.HasColumnType("varchar(11)")
|
||
|
|
.HasComment("被监管人-手机号");
|
||
|
|
|
||
|
|
b.Property<int>("PrivacyLevel")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("隐私等级(min)\r\n 隐私等级的时间是在监控大屏展示该人员的位置信息,是在设置的时间之前,如设置为120min,则大屏展示的该人员位置信息展示的是120分钟前的位置。");
|
||
|
|
|
||
|
|
b.Property<long>("SupervisedPersonId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("被监管人员Id(来着用户表)");
|
||
|
|
|
||
|
|
b.Property<string>("SupervisedPersonName")
|
||
|
|
.IsRequired()
|
||
|
|
.HasColumnType("longtext")
|
||
|
|
.HasComment("被监管人-名字 (来着用户表) \r\n 姓名可模糊搜索系统用户管理中用户类型为“被监管人”的数据,展示“姓名_手机号”,选择后可作为填写数据的默认值,用户还是可以在此基础上进行更改。");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("WarningGradeId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("预警类型等级(根据案件字典类型定义,比如预计5次变黄,10变红,存储格式5,10)\r\n 对应预警类型等级字典Id");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_case_supervised_person");
|
||
|
|
|
||
|
|
b.HasComment("案件-被监管人管理\r\n 被监管人对应的未结束的案件,只能是一个。提交案件创建时进行校验判定。");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.CaseManagements.AppCaseSupervisor", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("CaseId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案件Id");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("SupervisorId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案件-监管人员管理员");
|
||
|
|
|
||
|
|
b.Property<string>("SupervisorName")
|
||
|
|
.IsRequired()
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("案件-监管人员管理员名字");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_case_supervisor");
|
||
|
|
|
||
|
|
b.HasComment("案件-监管人管理");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.CaseManagements.AppSharedLocationManagement", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("DeviceId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("设备Id");
|
||
|
|
|
||
|
|
b.Property<DateTime>("ShareTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("分享时间");
|
||
|
|
|
||
|
|
b.Property<int?>("ShareTimeLimit")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("分享时效(单位:小时)");
|
||
|
|
|
||
|
|
b.Property<long>("SharerId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("分享人");
|
||
|
|
|
||
|
|
b.Property<long?>("SupervisedPersonId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("被监管人Id(和设备绑定的人)");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_shared_location_management");
|
||
|
|
|
||
|
|
b.HasComment("设备分享管理");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.CaseManagements.AppSignsInformation", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<double>("ArmTemperature")
|
||
|
|
.HasColumnType("double")
|
||
|
|
.HasComment("腕温");
|
||
|
|
|
||
|
|
b.Property<double>("BloodPressure")
|
||
|
|
.HasColumnType("double")
|
||
|
|
.HasComment("血压");
|
||
|
|
|
||
|
|
b.Property<double>("BodyTemperature")
|
||
|
|
.HasColumnType("double")
|
||
|
|
.HasComment("体温");
|
||
|
|
|
||
|
|
b.Property<long>("CaseId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案件Id");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("DeviceId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("设备名称");
|
||
|
|
|
||
|
|
b.Property<double>("Electricity")
|
||
|
|
.HasColumnType("double")
|
||
|
|
.HasComment("电量");
|
||
|
|
|
||
|
|
b.Property<double>("HeartRate")
|
||
|
|
.HasColumnType("double")
|
||
|
|
.HasComment("心率");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDemolished")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("是否被拆除");
|
||
|
|
|
||
|
|
b.Property<int>("StepCount")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("步数");
|
||
|
|
|
||
|
|
b.Property<long>("SupervisedPersonId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("被监管人Id");
|
||
|
|
|
||
|
|
b.Property<string>("SupervisedPersonName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("被监管人员名字");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_signs_information");
|
||
|
|
|
||
|
|
b.HasComment("体征信息");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.CaseManagements.AppSupervisedPersonRealTimeLocation", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("CaseId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案件Id");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("DeviceId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("设备Id");
|
||
|
|
|
||
|
|
b.Property<decimal>("Latitude")
|
||
|
|
.HasColumnType("decimal(65,30)")
|
||
|
|
.HasComment("维度");
|
||
|
|
|
||
|
|
b.Property<decimal>("Longitude")
|
||
|
|
.HasColumnType("decimal(65,30)")
|
||
|
|
.HasComment("经度");
|
||
|
|
|
||
|
|
b.Property<long>("SupervisedPersonId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("被监管人Id");
|
||
|
|
|
||
|
|
b.Property<string>("SupervisedPersonName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("被监管人员");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_supervised_person_real_time_location");
|
||
|
|
|
||
|
|
b.HasComment("被监管人员实时定位(对接第三方设备)");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.IM.AppCustomer", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Address")
|
||
|
|
.HasMaxLength(255)
|
||
|
|
.HasColumnType("varchar(255)")
|
||
|
|
.HasComment("地址");
|
||
|
|
|
||
|
|
b.Property<long>("CaseId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案件Id");
|
||
|
|
|
||
|
|
b.Property<long?>("ChargeId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("负责人 Id - 用于工单管理");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Email")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("邮箱");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Name")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("客户姓名 - 初始化默认为被监管人昵称");
|
||
|
|
|
||
|
|
b.Property<string>("Notes")
|
||
|
|
.HasMaxLength(255)
|
||
|
|
.HasColumnType("varchar(255)")
|
||
|
|
.HasComment("被监管人备注");
|
||
|
|
|
||
|
|
b.Property<int>("PersonnelRole")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("即时聊天中人员角色(0: 被监管人员 1:监管人员 2:管理员)");
|
||
|
|
|
||
|
|
b.Property<string>("Phone")
|
||
|
|
.HasMaxLength(11)
|
||
|
|
.HasColumnType("varchar(11)")
|
||
|
|
.HasComment("手机号");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("VisitorId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("被监管人Id");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_customer");
|
||
|
|
|
||
|
|
b.HasComment("客户表");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.IM.AppLeaveMessage", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("CaseId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案件Id");
|
||
|
|
|
||
|
|
b.Property<string>("ConnectionId")
|
||
|
|
.HasMaxLength(36)
|
||
|
|
.HasColumnType("varchar(36)")
|
||
|
|
.HasComment("会话链接Id");
|
||
|
|
|
||
|
|
b.Property<string>("Content")
|
||
|
|
.HasMaxLength(1024)
|
||
|
|
.HasColumnType("varchar(1024)")
|
||
|
|
.HasComment("留言内容");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Email")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("邮箱");
|
||
|
|
|
||
|
|
b.Property<long?>("FollowPeopleId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("跟进的人");
|
||
|
|
|
||
|
|
b.Property<string>("IpAddress")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("被监管人IP");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("MessageType")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("留言类型");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("PersonnelRole")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("即时聊天中人员角色(0: 被监管人员 1:监管人员 2:管理员)");
|
||
|
|
|
||
|
|
b.Property<string>("Phone")
|
||
|
|
.HasMaxLength(11)
|
||
|
|
.HasColumnType("varchar(11)")
|
||
|
|
.HasComment("联系方式");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ProcessingTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("处理时间");
|
||
|
|
|
||
|
|
b.Property<int>("Reasons")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("留言产生原因(0:服务时间(无监管人在线)留言 1:推送留言)");
|
||
|
|
|
||
|
|
b.Property<int>("TerminalType")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("来源终端类型 (-1:未知终端 0:PC 1:Mobile)");
|
||
|
|
|
||
|
|
b.Property<string>("UserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("用户名");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("VisitorId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("被监管人Id");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_leave_message");
|
||
|
|
|
||
|
|
b.HasComment("被监管人留言记录");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.IM.AppSessionInformation", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("AverageResponse")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("监管人平均响应时长");
|
||
|
|
|
||
|
|
b.Property<long>("CaseId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案件Id");
|
||
|
|
|
||
|
|
b.Property<string>("ConnectionId")
|
||
|
|
.HasMaxLength(36)
|
||
|
|
.HasColumnType("varchar(36)")
|
||
|
|
.HasComment("当前会话连接Id");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("EndReason")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("会话结束原因(0:被监管人离开网页失效关闭 1:客户关闭 2:会话超市关闭)");
|
||
|
|
|
||
|
|
b.Property<string>("IpAddress")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("被监管人IP地址");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("PersonnelRole")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("即时聊天中人员角色(0: 被监管人员 1:监管人员 2:管理员)");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("QueueStartTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("开始排队时间");
|
||
|
|
|
||
|
|
b.Property<int>("ReporterType")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("问题解决状态 (0:已解决 1:未解决 2:处理中)");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("SessionEndTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("会话结束时间");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("SessionStartTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("会话开始时间");
|
||
|
|
|
||
|
|
b.Property<string>("SourcePage")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("来源页面");
|
||
|
|
|
||
|
|
b.Property<int>("SourceTraffic")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("来源渠道 类型 (0:直接访问)");
|
||
|
|
|
||
|
|
b.Property<long?>("UserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("原始监管人Id");
|
||
|
|
|
||
|
|
b.Property<bool>("ValidSession")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("是否是有效会话-默认无效,当被监管人主动发送一条信息后 更新为有效会话");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime>("VisitorEntryTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("被监管人进入时间");
|
||
|
|
|
||
|
|
b.Property<long?>("VisitorId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("被监管人 Id");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_session_information");
|
||
|
|
|
||
|
|
b.HasComment("被监管人会话信息");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.IM.AppSessionMessage", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("CaseId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案件Id");
|
||
|
|
|
||
|
|
b.Property<string>("Content")
|
||
|
|
.HasMaxLength(1024)
|
||
|
|
.HasColumnType("varchar(1024)")
|
||
|
|
.HasComment("消息内容");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("MessageSourceType")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("消息来源(0:监管人员 1:被监管人员 2:公告通知)");
|
||
|
|
|
||
|
|
b.Property<int>("MessageType")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("消息类型(0:文本 1:图片)");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("PersonnelRole")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("即时聊天中人员角色(0: 被监管人员 1:监管人员 2:管理员)");
|
||
|
|
|
||
|
|
b.Property<long>("SessionId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("会话Id");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_session_message");
|
||
|
|
|
||
|
|
b.HasComment("会话消息");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.IM.AppVisitorRecord", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("CaseId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("案件Id");
|
||
|
|
|
||
|
|
b.Property<string>("City")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("城市");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("IpAddress")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("被监管人IP");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("NetworkProviderType")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("网络提供商");
|
||
|
|
|
||
|
|
b.Property<int>("PersonnelRole")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("即时聊天中人员角色(0: 被监管人员 1:监管人员 2:管理员)");
|
||
|
|
|
||
|
|
b.Property<string>("Province")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("省份");
|
||
|
|
|
||
|
|
b.Property<int>("State")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("当前会话状态 (0:机器人 1:监管人 2:被监管人关闭 3:监管人关闭 4:排队中 5:被监管人离线 6:留言信息 7:网络超时)");
|
||
|
|
|
||
|
|
b.Property<int>("TerminalType")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("来源终端类型 (-1:未知终端 0:PC 1:Mobile)");
|
||
|
|
|
||
|
|
b.Property<string>("UserAgent")
|
||
|
|
.HasMaxLength(128)
|
||
|
|
.HasColumnType("varchar(128)")
|
||
|
|
.HasComment("浏览器User-Agent");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("VisitorName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("被监管人用户名");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_visitor_record");
|
||
|
|
|
||
|
|
b.HasComment("被监管人记录表");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.MaterialManager.AppDirectoryDescriptor", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Name")
|
||
|
|
.IsRequired()
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("对应资料的类型");
|
||
|
|
|
||
|
|
b.Property<long?>("ParentId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("父级Id");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_directory_descriptor");
|
||
|
|
|
||
|
|
b.HasComment("文件夹(对应资料类型)描述");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.MaterialManager.AppFileAccessRecords", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("FileDescriptorId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("文件Id");
|
||
|
|
|
||
|
|
b.Property<string>("FileName")
|
||
|
|
.HasMaxLength(255)
|
||
|
|
.HasColumnType("varchar(255)")
|
||
|
|
.HasComment("文件名");
|
||
|
|
|
||
|
|
b.Property<long>("SupervisedPersonId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("被监管人Id");
|
||
|
|
|
||
|
|
b.Property<string>("SupervisedPersonName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("被监管人员");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_file_access_records");
|
||
|
|
|
||
|
|
b.HasComment("文件查阅记录");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Business.MaterialManager.AppFileDescriptor", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("DirectoryId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("文件夹Id(资料类型Id)");
|
||
|
|
|
||
|
|
b.Property<string>("FilePath")
|
||
|
|
.IsRequired()
|
||
|
|
.HasMaxLength(128)
|
||
|
|
.HasColumnType("varchar(128)")
|
||
|
|
.HasComment("文件存储的路径");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("MimeType")
|
||
|
|
.IsRequired()
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("文件Mime类型");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Name")
|
||
|
|
.IsRequired()
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("文件名称");
|
||
|
|
|
||
|
|
b.Property<long>("Size")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("文件大小");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_file_descriptor");
|
||
|
|
|
||
|
|
b.HasComment("文件描述实体表(对应的文件)");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Datas.AppDataPrivilegeRule", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<int>("DataStatus")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Description")
|
||
|
|
.HasMaxLength(255)
|
||
|
|
.HasColumnType("varchar(255)")
|
||
|
|
.HasComment("权限描述");
|
||
|
|
|
||
|
|
b.Property<bool>("IsDeleted")
|
||
|
|
.HasColumnType("tinyint(1)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("ModifiedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("ModifiedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ModifiedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("PrivilegeRules")
|
||
|
|
.HasMaxLength(2048)
|
||
|
|
.HasColumnType("varchar(2048)")
|
||
|
|
.HasComment("权限规则");
|
||
|
|
|
||
|
|
b.Property<int>("Sort")
|
||
|
|
.HasColumnType("int")
|
||
|
|
.HasComment("排序号");
|
||
|
|
|
||
|
|
b.Property<string>("SourceCode")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("资源标识(模块编号)");
|
||
|
|
|
||
|
|
b.Property<long>("Version")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_data_privilege_rule");
|
||
|
|
|
||
|
|
b.HasComment("系统授权规制表");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Logs.AppLoginLog", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Browser")
|
||
|
|
.HasMaxLength(128)
|
||
|
|
.HasColumnType("varchar(128)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("BrowserInfo")
|
||
|
|
.HasMaxLength(128)
|
||
|
|
.HasColumnType("varchar(128)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Device")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("ElapsedMilliseconds")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("IpAddress")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Msg")
|
||
|
|
.HasMaxLength(1024)
|
||
|
|
.HasColumnType("varchar(1024)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("NickName")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Os")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Result")
|
||
|
|
.HasMaxLength(1024)
|
||
|
|
.HasColumnType("varchar(1024)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_login_log");
|
||
|
|
|
||
|
|
b.HasComment("登录日志");
|
||
|
|
});
|
||
|
|
|
||
|
|
modelBuilder.Entity("ATS.NonCustodial.Domain.Entities.Logs.AppOperationLog", b =>
|
||
|
|
{
|
||
|
|
b.Property<long>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("ApiLabel")
|
||
|
|
.HasMaxLength(50)
|
||
|
|
.HasColumnType("varchar(50)")
|
||
|
|
.HasComment("接口名称");
|
||
|
|
|
||
|
|
b.Property<string>("ApiMethod")
|
||
|
|
.HasMaxLength(10)
|
||
|
|
.HasColumnType("varchar(10)")
|
||
|
|
.HasComment("接口提交方法");
|
||
|
|
|
||
|
|
b.Property<string>("ApiPath")
|
||
|
|
.HasMaxLength(128)
|
||
|
|
.HasColumnType("varchar(128)")
|
||
|
|
.HasComment("接口地址");
|
||
|
|
|
||
|
|
b.Property<string>("Browser")
|
||
|
|
.HasMaxLength(128)
|
||
|
|
.HasColumnType("varchar(128)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("BrowserInfo")
|
||
|
|
.HasMaxLength(128)
|
||
|
|
.HasColumnType("varchar(128)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<DateTime?>("CreatedTime")
|
||
|
|
.HasColumnType("datetime(6)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long?>("CreatedUserId")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("CreatedUserName")
|
||
|
|
.HasMaxLength(20)
|
||
|
|
.HasColumnType("varchar(20)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Device")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<long>("ElapsedMilliseconds")
|
||
|
|
.HasColumnType("bigint")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("IpAddress")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Msg")
|
||
|
|
.HasMaxLength(1024)
|
||
|
|
.HasColumnType("varchar(1024)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("NickName")
|
||
|
|
.HasMaxLength(30)
|
||
|
|
.HasColumnType("varchar(30)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Os")
|
||
|
|
.HasMaxLength(64)
|
||
|
|
.HasColumnType("varchar(64)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.Property<string>("Params")
|
||
|
|
.HasMaxLength(1024)
|
||
|
|
.HasColumnType("varchar(1024)")
|
||
|
|
.HasComment("操作参数");
|
||
|
|
|
||
|
|
b.Property<string>("Result")
|
||
|
|
.HasMaxLength(1024)
|
||
|
|
.HasColumnType("varchar(1024)")
|
||
|
|
.HasComment("");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.ToTable("app_operation_log");
|
||
|
|
|
||
|
|
b.HasComment("操作日志");
|
||
|
|
});
|
||
|
|
#pragma warning restore 612, 618
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|