3832 lines
148 KiB
C#
3832 lines
148 KiB
C#
|
|
// <auto-generated />
|
|||
|
|
using System;
|
|||
|
|
using JiShe.IoT.EntityFrameworkCore;
|
|||
|
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||
|
|
using Volo.Abp.EntityFrameworkCore;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace JiShe.IoT.Migrations
|
|||
|
|
{
|
|||
|
|
[DbContext(typeof(IoTDbContext))]
|
|||
|
|
[Migration("20251207122557_InitialCreate")]
|
|||
|
|
partial class InitialCreate
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|||
|
|
{
|
|||
|
|
#pragma warning disable 612, 618
|
|||
|
|
modelBuilder
|
|||
|
|
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
|
|||
|
|
.HasAnnotation("ProductVersion", "9.0.6")
|
|||
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
|||
|
|
|
|||
|
|
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.BasicManagement.UserRefreshTokens.UserRefreshToken", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("ExpirationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasComment("过期时间");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsUsed")
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasComment("是否使用");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<string>("RefreshToken")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("刷新token");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.Property<string>("Token")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(1024)
|
|||
|
|
.HasColumnType("varchar(1024)")
|
|||
|
|
.HasComment("Token");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("UserId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasComment("用户id");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("RefreshToken");
|
|||
|
|
|
|||
|
|
b.ToTable("ServiceProUserRefreshTokens", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("刷新Token");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.CTWingManagement.CTWingAccount.CTWingAccountInfo", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("AccountId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("账号ID");
|
|||
|
|
|
|||
|
|
b.Property<string>("AccountName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("账号名称");
|
|||
|
|
|
|||
|
|
b.Property<string>("AppId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("应用 ID");
|
|||
|
|
|
|||
|
|
b.Property<string>("AppKey")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("应用 AppKey");
|
|||
|
|
|
|||
|
|
b.Property<string>("AppSecret")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("应用 AppSecret");
|
|||
|
|
|
|||
|
|
b.Property<string>("CommunicationAddress")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("通讯服务地址");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties")
|
|||
|
|
.HasComment("扩展属性,用于存储自定义字段,JSON格式");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSACreatorId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权创建者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSADeleterId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后删除者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSALastModifierId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后修改者Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("PhoneNumber")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("手机号码");
|
|||
|
|
|
|||
|
|
b.Property<string>("PlatformTenantId")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("平台租户ID");
|
|||
|
|
|
|||
|
|
b.Property<int>("ProductCount")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<string>("Remark")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("备注");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId")
|
|||
|
|
.HasComment("租户ID");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("CreationTime");
|
|||
|
|
|
|||
|
|
b.HasIndex(new[] { "Id", "AccountId", "AccountName", "CreationTime" }, "IX_ServiceProCTWingAccountInfo_IsNotUniqueKey")
|
|||
|
|
.IsDescending();
|
|||
|
|
|
|||
|
|
b.ToTable("ServiceProCTWingAccountInfo", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("CTWing账号信息");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.CTWingManagement.CTWingProduct.CTWingPrivateProductInfo", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<int>("AccessType")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<string>("AccountPhoneNumber")
|
|||
|
|
.HasColumnType("longtext");
|
|||
|
|
|
|||
|
|
b.Property<int>("AuthType")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<string>("CTWingAccountId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("账号ID");
|
|||
|
|
|
|||
|
|
b.Property<string>("CommunicationAddress")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("通讯服务地址");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<int>("DataEncryption")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<int>("DeviceCount")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<string>("DeviceThingModelFileId")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("设备物模型文件Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("DeviceThingModelFileName")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasComment("设备物模型文件名称");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties")
|
|||
|
|
.HasComment("扩展属性,用于存储自定义字段,JSON格式");
|
|||
|
|
|
|||
|
|
b.Property<string>("FeatureAccesskey")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasComment("设备访问密钥");
|
|||
|
|
|
|||
|
|
b.Property<string>("IoTPlatformProductId")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("产品ID");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsEnabled")
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasComment("是否启用");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<string>("MasterKey")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasComment("OpenAPI 通信主密钥");
|
|||
|
|
|
|||
|
|
b.Property<int>("NetworkType")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<int>("NodeType")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSACreatorId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权创建者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSADeleterId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后删除者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSALastModifierId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后修改者Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProductDesc")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("必填,产品描述");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProductName")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("产品名称");
|
|||
|
|
|
|||
|
|
b.Property<int>("ProductProtocol")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProductType")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("一级分类名");
|
|||
|
|
|
|||
|
|
b.Property<string>("Protocol")
|
|||
|
|
.HasMaxLength(20)
|
|||
|
|
.HasColumnType("varchar(20)")
|
|||
|
|
.HasComment("通讯协议");
|
|||
|
|
|
|||
|
|
b.Property<string>("Remark")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("备注");
|
|||
|
|
|
|||
|
|
b.Property<string>("SecondaryType")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("二级分类名");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId")
|
|||
|
|
.HasComment("租户ID");
|
|||
|
|
|
|||
|
|
b.Property<string>("ThirdType")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("三级分类名");
|
|||
|
|
|
|||
|
|
b.Property<string>("TupDeviceModel")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("设备型号");
|
|||
|
|
|
|||
|
|
b.Property<int>("TupIsThrough")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("CreationTime");
|
|||
|
|
|
|||
|
|
b.HasIndex(new[] { "Id", "IoTPlatformProductId", "ProductName", "CreationTime" }, "IX_ServiceProCTWingPrivateProductInfo_IsNotUniqueKey")
|
|||
|
|
.IsDescending();
|
|||
|
|
|
|||
|
|
b.ToTable("ServiceProCTWingPrivateProductInfo", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("CTWing产品信息");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionary", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Code")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("Description")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(1024)
|
|||
|
|
.HasColumnType("varchar(1024)");
|
|||
|
|
|
|||
|
|
b.Property<string>("DisplayText")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpDataDictionaries", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("数据字典");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionaryDetail", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Code")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("DataDictionaryId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Description")
|
|||
|
|
.HasMaxLength(1024)
|
|||
|
|
.HasColumnType("varchar(1024)");
|
|||
|
|
|
|||
|
|
b.Property<string>("DisplayText")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtendedAttribute")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsEnabled")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<int>("Order")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("DataDictionaryId");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpDataDictionaryDetails", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("数据字典详情");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.DeviceManagement.DeviceInfos.DeviceManagementInfo", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("AccountPhoneNumber")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("账户手机号");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("DeviceAddress")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasComment("设备地址");
|
|||
|
|
|
|||
|
|
b.Property<string>("DeviceName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("设备名称");
|
|||
|
|
|
|||
|
|
b.Property<int?>("DeviceOnlineStatus")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("设备在线状态");
|
|||
|
|
|
|||
|
|
b.Property<int>("DeviceSource")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("设备来源类型");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeviceThingModelDataId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasComment("设备物模型数据Id");
|
|||
|
|
|
|||
|
|
b.Property<int>("DeviceType")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("设备类型,与业务系统无关,主要区分是网关设备、直连设备");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties")
|
|||
|
|
.HasComment("扩展属性,用于存储自定义字段,JSON格式");
|
|||
|
|
|
|||
|
|
b.Property<int>("IoTPlatform")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("物联网平台类型,默认没有指定");
|
|||
|
|
|
|||
|
|
b.Property<string>("IoTPlatformAccountId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("物联网平台中对应的账号Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("IoTPlatformDeviceOpenInfo")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("物联网平台中对应的设备Id或者名称");
|
|||
|
|
|
|||
|
|
b.Property<string>("IoTPlatformProductId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("物联网平台中对应的产品Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("IoTPlatformProductName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("物联网平台中对应的产品Name");
|
|||
|
|
|
|||
|
|
b.Property<string>("IoTPlatformResponse")
|
|||
|
|
.HasColumnType("text")
|
|||
|
|
.HasComment("物联网平台返回的响应信息");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsNeedConfigDevicMdoel")
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasComment("是否需要配置设备模型");
|
|||
|
|
|
|||
|
|
b.Property<sbyte>("IsPlatformPushSuccess")
|
|||
|
|
.HasColumnType("tinyint(1)")
|
|||
|
|
.HasComment("物联网平台推送是否成功");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastOfflineTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasComment("最后离线时间");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastOnlineTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasComment("最后在线时间");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSACreatorId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权创建者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSADeleterId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后删除者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSALastModifierId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后修改者Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("PlatformPassword")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("物联网平台设备密码");
|
|||
|
|
|
|||
|
|
b.Property<string>("Remark")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("备注");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId")
|
|||
|
|
.HasComment("租户ID");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("CreationTime");
|
|||
|
|
|
|||
|
|
b.HasIndex("DeviceAddress");
|
|||
|
|
|
|||
|
|
b.HasIndex(new[] { "Id", "DeviceName", "DeviceAddress", "IoTPlatformProductId", "CreationTime" }, "IX_ServiceProDeviceInfo_IsNotUniqueKey")
|
|||
|
|
.IsDescending();
|
|||
|
|
|
|||
|
|
b.ToTable("ServiceProDeviceInfo", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("设备信息");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.DeviceManagement.ThingModelInfos.DeviceThingModelCommandInfo", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("CommandName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasComment("指令名称");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("DeviceThingModelId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasComment("设备端物模型Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties")
|
|||
|
|
.HasComment("扩展属性,用于存储自定义字段,JSON格式");
|
|||
|
|
|
|||
|
|
b.Property<int>("IoTPlatform")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("物联网平台类型");
|
|||
|
|
|
|||
|
|
b.Property<string>("IoTPlatformProductId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("物联网平台中对应的产品Id");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<string>("IssueCommand")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(512)
|
|||
|
|
.HasColumnType("varchar(512)")
|
|||
|
|
.HasComment("完整的单个下发指令");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSACreatorId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权创建者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSADeleterId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后删除者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSALastModifierId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后修改者Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("PropertyArray")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(1024)
|
|||
|
|
.HasColumnType("varchar(1024)")
|
|||
|
|
.HasComment("指令设备端物模型的属性名称集合,JSON格式字符串数组");
|
|||
|
|
|
|||
|
|
b.Property<string>("Remark")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("备注");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId")
|
|||
|
|
.HasComment("租户ID");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("CreationTime");
|
|||
|
|
|
|||
|
|
b.HasIndex("DeviceThingModelId");
|
|||
|
|
|
|||
|
|
b.HasIndex(new[] { "Id", "DeviceThingModelId", "IoTPlatformProductId", "CreationTime" }, "IX_ServiceProIoTPlatformThingModelInfo_IsNotUniqueKey")
|
|||
|
|
.IsDescending();
|
|||
|
|
|
|||
|
|
b.ToTable("ServiceProDeviceThingModelCommandInfo", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("设备端透传指令详情");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.DeviceManagement.ThingModelInfos.DeviceThingModelManagement", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("DeviceModelName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("设备端物模型名称");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties")
|
|||
|
|
.HasComment("扩展属性,用于存储自定义字段,JSON格式");
|
|||
|
|
|
|||
|
|
b.Property<sbyte>("FunctionAnalysisFlag")
|
|||
|
|
.HasColumnType("tinyint(1)")
|
|||
|
|
.HasComment("函数解析标记,默认为false, 不能解析");
|
|||
|
|
|
|||
|
|
b.Property<string>("FunctionScript")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("text")
|
|||
|
|
.HasComment("脚本函数体");
|
|||
|
|
|
|||
|
|
b.Property<int>("IoTPlatform")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("物联网平台类型,默认没有指定");
|
|||
|
|
|
|||
|
|
b.Property<string>("IoTPlatformProductId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("物联网平台中对应的产品Id");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSACreatorId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权创建者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSADeleterId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后删除者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSALastModifierId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后修改者Id");
|
|||
|
|
|
|||
|
|
b.Property<int>("ParsingSequence")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("解析顺序,1234或者3412(高低位反转)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Remark")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("备注");
|
|||
|
|
|
|||
|
|
b.Property<string>("ScriptName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasComment("脚本函数名称");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId")
|
|||
|
|
.HasComment("租户ID");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("CreationTime");
|
|||
|
|
|
|||
|
|
b.HasIndex("IoTPlatformProductId");
|
|||
|
|
|
|||
|
|
b.HasIndex(new[] { "Id", "DeviceModelName", "IoTPlatformProductId", "CreationTime" }, "IX_ServiceProIoTPlatformThingModelInfo_IsNotUniqueKey")
|
|||
|
|
.IsDescending()
|
|||
|
|
.HasDatabaseName("IX_ServiceProIoTPlatformThingModelInfo_IsNotUniqueKey1");
|
|||
|
|
|
|||
|
|
b.ToTable("ServiceProDeviceThingModelManagement", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("设备端物模型管理");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.DeviceManagement.ThingModelInfos.DeviceThingModelPropertyInfo", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("DeviceThingModelId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasComment("设备端物模型Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties")
|
|||
|
|
.HasComment("扩展属性,用于存储自定义字段,JSON格式");
|
|||
|
|
|
|||
|
|
b.Property<string>("FiledType")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("物联网平台中对应产品物模型属性或者事件类型");
|
|||
|
|
|
|||
|
|
b.Property<int>("IoTPlatform")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("物联网平台类型");
|
|||
|
|
|
|||
|
|
b.Property<string>("IoTPlatformProductId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("物联网平台中对应的产品Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("IoTPlatformRawFieldDataType")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(20)
|
|||
|
|
.HasColumnType("varchar(20)")
|
|||
|
|
.HasComment("物联网平台中对应的产品物模型属性或者事件数据类型");
|
|||
|
|
|
|||
|
|
b.Property<string>("IoTPlatformRawFieldName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasComment("物联网平台中对应的产品物模型属性或者事件名称");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<sbyte>("IsValueNeedConvert")
|
|||
|
|
.HasColumnType("tinyint(1)")
|
|||
|
|
.HasComment("是否需要值类型转换");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSACreatorId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权创建者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSADeleterId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后删除者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSALastModifierId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后修改者Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("Remark")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("备注");
|
|||
|
|
|
|||
|
|
b.Property<int>("SkipNumber")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("跳过数量");
|
|||
|
|
|
|||
|
|
b.Property<string>("StandardFieldDisplayName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasComment("管理后台产品标准的物模型属性或者事件名称");
|
|||
|
|
|
|||
|
|
b.Property<string>("StandardFieldName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasComment("管理后台产品标准的物模型属性或者事件名称");
|
|||
|
|
|
|||
|
|
b.Property<string>("StandardFieldValueType")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(20)
|
|||
|
|
.HasColumnType("varchar(20)")
|
|||
|
|
.HasComment("标准物模型字段值类型");
|
|||
|
|
|
|||
|
|
b.Property<int>("TakeNumber")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("获取数量");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId")
|
|||
|
|
.HasComment("租户ID");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("CreationTime");
|
|||
|
|
|
|||
|
|
b.HasIndex("IoTPlatformProductId");
|
|||
|
|
|
|||
|
|
b.HasIndex(new[] { "Id", "IoTPlatformProductId", "IoTPlatformRawFieldName", "StandardFieldName", "CreationTime" }, "IX_ServiceProIoTPlatformThingModelInfo_IsNotUniqueKey")
|
|||
|
|
.IsDescending()
|
|||
|
|
.HasDatabaseName("IX_ServiceProIoTPlatformThingModelInfo_IsNotUniqueKey2");
|
|||
|
|
|
|||
|
|
b.ToTable("ServiceProDeviceThingModelPropertylInfo", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("设备端物模型属性信息,是指设备端支持的属性或者事件");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.DeviceManagement.ThingModelInfos.IoTPlatformThingModelInfo", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties")
|
|||
|
|
.HasComment("扩展属性,用于存储自定义字段,JSON格式");
|
|||
|
|
|
|||
|
|
b.Property<string>("FiledType")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("物联网平台中对应产品物模型属性或者事件类型");
|
|||
|
|
|
|||
|
|
b.Property<int>("IoTPlatform")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("物联网平台类型,默认没有指定");
|
|||
|
|
|
|||
|
|
b.Property<string>("IoTPlatformProductId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("物联网平台中对应的产品Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("IoTPlatformRawFieldName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasComment("物联网平台中对应的产品物模型属性或者事件名称");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<sbyte>("IsValueNeedConvert")
|
|||
|
|
.HasColumnType("tinyint(1)")
|
|||
|
|
.HasComment("是否需要值类型转换");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSACreatorId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权创建者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSADeleterId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后删除者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSALastModifierId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后修改者Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("Remark")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("备注");
|
|||
|
|
|
|||
|
|
b.Property<string>("StandardFieldDisplayName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasComment("管理后台产品标准的物模型属性或者事件名称");
|
|||
|
|
|
|||
|
|
b.Property<string>("StandardFieldName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasComment("管理后台产品标准的物模型属性或者事件名称");
|
|||
|
|
|
|||
|
|
b.Property<string>("StandardFieldValueType")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(20)
|
|||
|
|
.HasColumnType("varchar(20)")
|
|||
|
|
.HasComment("标准物模型字段值类型");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId")
|
|||
|
|
.HasComment("租户ID");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("CreationTime");
|
|||
|
|
|
|||
|
|
b.HasIndex("IoTPlatformProductId");
|
|||
|
|
|
|||
|
|
b.HasIndex(new[] { "Id", "IoTPlatformProductId", "IoTPlatformRawFieldName", "StandardFieldName", "CreationTime" }, "IX_ServiceProIoTPlatformThingModelInfo_IsNotUniqueKey")
|
|||
|
|
.IsDescending()
|
|||
|
|
.HasDatabaseName("IX_ServiceProIoTPlatformThingModelInfo_IsNotUniqueKey3");
|
|||
|
|
|
|||
|
|
b.ToTable("ServiceProIoTPlatformThingModelInfo", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("平台端物模型信息");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.DynamicMenuManagement.Menus.Menu", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Component")
|
|||
|
|
.HasMaxLength(512)
|
|||
|
|
.HasColumnType("varchar(512)")
|
|||
|
|
.HasComment("组件地址");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("DisplayTitle")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("标准多语言");
|
|||
|
|
|
|||
|
|
b.Property<bool>("Enabled")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<bool>("HideInMenu")
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasComment("是否显示");
|
|||
|
|
|
|||
|
|
b.Property<string>("Icon")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("图标");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<bool>("KeepAlive")
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasComment("是否缓存");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<int>("MenuType")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("菜单类型");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("唯一编码");
|
|||
|
|
|
|||
|
|
b.Property<int>("OpenType")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("打开类型");
|
|||
|
|
|
|||
|
|
b.Property<int>("Order")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("排序");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ParentId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Path")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(512)
|
|||
|
|
.HasColumnType("varchar(512)")
|
|||
|
|
.HasComment("路由/接口地址");
|
|||
|
|
|
|||
|
|
b.Property<string>("Policy")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("授权策略名称");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.Property<string>("Title")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("标题");
|
|||
|
|
|
|||
|
|
b.Property<string>("Url")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("内外链地址");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("CreationTime");
|
|||
|
|
|
|||
|
|
b.HasIndex("Name");
|
|||
|
|
|
|||
|
|
b.HasIndex(new[] { "Id", "Name", "Path", "MenuType", "CreationTime" }, "IX_Menus_IsNotUniqueKey")
|
|||
|
|
.IsDescending();
|
|||
|
|
|
|||
|
|
b.ToTable("ServiceProMenus", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("动态菜单管理");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.FileManagement.Files.FileObject", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<string>("ContentType")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("文件名称");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<string>("FileName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("文件名称");
|
|||
|
|
|
|||
|
|
b.Property<long>("FileSize")
|
|||
|
|
.HasColumnType("bigint")
|
|||
|
|
.HasComment("文件大小");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("FileName");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpFileObjects", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("文件管理");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.LanguageManagement.LanguageTexts.Aggregates.LanguageText", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<string>("CultureName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("语言名称");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasComment("名称");
|
|||
|
|
|
|||
|
|
b.Property<string>("ResourceName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("资源名称");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.Property<string>("Value")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasComment("值");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("TenantId", "ResourceName", "CultureName");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpLanguageTexts", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("语言文本管理");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.LanguageManagement.Languages.Aggregates.Language", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<string>("CultureName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("语言名称");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("DisplayName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("显示名称");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<string>("FlagIcon")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("图标");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDefault")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsEnabled")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.Property<string>("UiCultureName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("Ui语言名称");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("CultureName");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpLanguages", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("语言管理");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.NotificationManagement.Notifications.Aggregates.Notification", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<string>("Content")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(1024)
|
|||
|
|
.HasColumnType("varchar(1024)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<int>("MessageLevel")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<int>("MessageType")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<bool>("Read")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("ReadTime")
|
|||
|
|
.HasColumnType("datetime(6)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ReceiveUserId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ReceiveUserName")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("SenderUserId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("SenderUserName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.Property<string>("Title")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpNotifications", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("消息通知管理");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.NotificationManagement.Notifications.Aggregates.NotificationSubscription", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("NotificationId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("Read")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("ReadTime")
|
|||
|
|
.HasColumnType("datetime(6)");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("ReceiveUserId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ReceiveUserName")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("NotificationId");
|
|||
|
|
|
|||
|
|
b.HasIndex("ReceiveUserId");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpNotificationSubscriptions", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("消息订阅者");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.OneNETManagement.OneNETAccounts.OneNETAccountInfos", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("AccountAccesskey")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(1024)
|
|||
|
|
.HasColumnType("varchar(1024)")
|
|||
|
|
.HasComment("账户通信密钥,平台可以重置密钥");
|
|||
|
|
|
|||
|
|
b.Property<string>("AccountName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("账号名称");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties")
|
|||
|
|
.HasComment("扩展属性,用于存储自定义字段,JSON格式");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSACreatorId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权创建者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSADeleterId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后删除者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSALastModifierId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后修改者Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("OneNETAccountId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("账户Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("PhoneNumber")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("手机号码");
|
|||
|
|
|
|||
|
|
b.Property<int>("ProductCount")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("产品数量");
|
|||
|
|
|
|||
|
|
b.Property<string>("Remark")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("备注");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId")
|
|||
|
|
.HasComment("租户ID");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("CreationTime");
|
|||
|
|
|
|||
|
|
b.HasIndex(new[] { "Id", "OneNETAccountId", "AccountName", "PhoneNumber", "CreationTime" }, "IX_ServiceProOneNETAccountInfo_IsNotUniqueKey")
|
|||
|
|
.IsDescending();
|
|||
|
|
|
|||
|
|
b.ToTable("ServiceProOneNETAccountInfo", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("OneNET账号管理");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.OneNETManagement.OneNETProducts.OneNETProductInfos", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<int>("AccessProtocol")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("接入协议");
|
|||
|
|
|
|||
|
|
b.Property<string>("AccountPhoneNumber")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("账户手机号");
|
|||
|
|
|
|||
|
|
b.Property<string>("Brand")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("产品品牌");
|
|||
|
|
|
|||
|
|
b.Property<string>("CommunicationAddress")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasComment("通讯服务地址");
|
|||
|
|
|
|||
|
|
b.Property<string>("CommunicationAddressTLS")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasComment("TLS通讯服务地址");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<int>("DataProtocol")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("数据协议");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("DeviceThingModelFileId")
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("设备物模型文件Id");
|
|||
|
|
|
|||
|
|
b.Property<string>("DeviceThingModelFileName")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasComment("设备物模型文件名称");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties")
|
|||
|
|
.HasComment("扩展属性,用于存储自定义字段,JSON格式");
|
|||
|
|
|
|||
|
|
b.Property<string>("IoTPlatformProductId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("物联网平台对应的产品Id");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsEnabled")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<string>("Manufacturer")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("产品厂商");
|
|||
|
|
|
|||
|
|
b.Property<string>("Model")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("产品型号");
|
|||
|
|
|
|||
|
|
b.Property<string>("Network")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("联网方式");
|
|||
|
|
|
|||
|
|
b.Property<int>("NodeType")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("节点类型");
|
|||
|
|
|
|||
|
|
b.Property<int>("NotActiveDeviceCount")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("未激活设备数");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSACreatorId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权创建者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSADeleterId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后删除者Id");
|
|||
|
|
|
|||
|
|
b.Property<int?>("OSALastModifierId")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("旧系统授权最后修改者Id");
|
|||
|
|
|
|||
|
|
b.Property<int>("OfflineDeviceCount")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("离线设备数");
|
|||
|
|
|
|||
|
|
b.Property<string>("OneNETAccountId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(50)
|
|||
|
|
.HasColumnType("varchar(50)")
|
|||
|
|
.HasComment("账户Id");
|
|||
|
|
|
|||
|
|
b.Property<int>("OnlineDeviceCount")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("在线设备总数");
|
|||
|
|
|
|||
|
|
b.Property<int>("OwnDeviceCount")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("自有设备总数");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProductAccesskey")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(1024)
|
|||
|
|
.HasColumnType("varchar(1024)")
|
|||
|
|
.HasComment("产品访问密钥");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("ProductCreateTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasComment("产品创建时间");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProductName")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("产品名称");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("ProductUpdateTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasComment("最近修改时间");
|
|||
|
|
|
|||
|
|
b.Property<string>("Remark")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("备注");
|
|||
|
|
|
|||
|
|
b.Property<int>("Status")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasComment("开发状态");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId")
|
|||
|
|
.HasComment("租户ID");
|
|||
|
|
|
|||
|
|
b.Property<string>("ThingModelInfos")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasComment("平台物模型信息");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("CreationTime");
|
|||
|
|
|
|||
|
|
b.HasIndex("IoTPlatformProductId")
|
|||
|
|
.IsUnique();
|
|||
|
|
|
|||
|
|
b.HasIndex(new[] { "Id", "IoTPlatformProductId", "ProductName", "CreationTime" }, "IX_ServiceProOneNETProductInfo_IsNotUniqueKey")
|
|||
|
|
.IsDescending();
|
|||
|
|
|
|||
|
|
b.ToTable("ServiceProOneNETProductInfo", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("OneNET产品管理");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.TemplateManagement.TextTemplates.TextTemplate", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Code")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("编码");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<string>("Content")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(1024)
|
|||
|
|
.HasColumnType("varchar(1024)")
|
|||
|
|
.HasComment("内容");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<string>("CultureName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("语言");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasComment("名称");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("Code");
|
|||
|
|
|
|||
|
|
b.ToTable("ServiceProTextTemplates", null, t =>
|
|||
|
|
{
|
|||
|
|
t.HasComment("模板管理");
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ApplicationName")
|
|||
|
|
.HasMaxLength(96)
|
|||
|
|
.HasColumnType("varchar(96)")
|
|||
|
|
.HasColumnName("ApplicationName");
|
|||
|
|
|
|||
|
|
b.Property<string>("BrowserInfo")
|
|||
|
|
.HasMaxLength(512)
|
|||
|
|
.HasColumnType("varchar(512)")
|
|||
|
|
.HasColumnName("BrowserInfo");
|
|||
|
|
|
|||
|
|
b.Property<string>("ClientId")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasColumnName("ClientId");
|
|||
|
|
|
|||
|
|
b.Property<string>("ClientIpAddress")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasColumnName("ClientIpAddress");
|
|||
|
|
|
|||
|
|
b.Property<string>("ClientName")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasColumnName("ClientName");
|
|||
|
|
|
|||
|
|
b.Property<string>("Comments")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasColumnName("Comments");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<string>("CorrelationId")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasColumnName("CorrelationId");
|
|||
|
|
|
|||
|
|
b.Property<string>("Exceptions")
|
|||
|
|
.HasColumnType("longtext");
|
|||
|
|
|
|||
|
|
b.Property<int>("ExecutionDuration")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasColumnName("ExecutionDuration");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("ExecutionTime")
|
|||
|
|
.HasColumnType("datetime(6)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<string>("HttpMethod")
|
|||
|
|
.HasMaxLength(16)
|
|||
|
|
.HasColumnType("varchar(16)")
|
|||
|
|
.HasColumnName("HttpMethod");
|
|||
|
|
|
|||
|
|
b.Property<int?>("HttpStatusCode")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasColumnName("HttpStatusCode");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ImpersonatorTenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("ImpersonatorTenantId");
|
|||
|
|
|
|||
|
|
b.Property<string>("ImpersonatorTenantName")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasColumnName("ImpersonatorTenantName");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ImpersonatorUserId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("ImpersonatorUserId");
|
|||
|
|
|
|||
|
|
b.Property<string>("ImpersonatorUserName")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasColumnName("ImpersonatorUserName");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantName")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasColumnName("TenantName");
|
|||
|
|
|
|||
|
|
b.Property<string>("Url")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasColumnName("Url");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("UserId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("UserId");
|
|||
|
|
|
|||
|
|
b.Property<string>("UserName")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasColumnName("UserName");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("TenantId", "ExecutionTime");
|
|||
|
|
|
|||
|
|
b.HasIndex("TenantId", "UserId", "ExecutionTime");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpAuditLogs", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("AuditLogId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("AuditLogId");
|
|||
|
|
|
|||
|
|
b.Property<int>("ExecutionDuration")
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasColumnName("ExecutionDuration");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("ExecutionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("ExecutionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<string>("MethodName")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasColumnName("MethodName");
|
|||
|
|
|
|||
|
|
b.Property<string>("Parameters")
|
|||
|
|
.HasMaxLength(2000)
|
|||
|
|
.HasColumnType("varchar(2000)")
|
|||
|
|
.HasColumnName("Parameters");
|
|||
|
|
|
|||
|
|
b.Property<string>("ServiceName")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasColumnName("ServiceName");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("AuditLogId");
|
|||
|
|
|
|||
|
|
b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpAuditLogActions", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogExcelFile", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<string>("FileName")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasColumnName("FileName");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpAuditLogExcelFiles", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("AuditLogId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("AuditLogId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("ChangeTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("ChangeTime");
|
|||
|
|
|
|||
|
|
b.Property<byte>("ChangeType")
|
|||
|
|
.HasColumnType("tinyint unsigned")
|
|||
|
|
.HasColumnName("ChangeType");
|
|||
|
|
|
|||
|
|
b.Property<string>("EntityId")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasColumnName("EntityId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("EntityTenantId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("EntityTypeFullName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasColumnName("EntityTypeFullName");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("AuditLogId");
|
|||
|
|
|
|||
|
|
b.HasIndex("TenantId", "EntityTypeFullName", "EntityId");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpEntityChanges", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("EntityChangeId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("NewValue")
|
|||
|
|
.HasMaxLength(512)
|
|||
|
|
.HasColumnType("varchar(512)")
|
|||
|
|
.HasColumnName("NewValue");
|
|||
|
|
|
|||
|
|
b.Property<string>("OriginalValue")
|
|||
|
|
.HasMaxLength(512)
|
|||
|
|
.HasColumnType("varchar(512)")
|
|||
|
|
.HasColumnName("OriginalValue");
|
|||
|
|
|
|||
|
|
b.Property<string>("PropertyName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasColumnName("PropertyName");
|
|||
|
|
|
|||
|
|
b.Property<string>("PropertyTypeFullName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasColumnName("PropertyTypeFullName");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("EntityChangeId");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpEntityPropertyChanges", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ApplicationName")
|
|||
|
|
.HasMaxLength(96)
|
|||
|
|
.HasColumnType("varchar(96)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsAbandoned")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false);
|
|||
|
|
|
|||
|
|
b.Property<string>("JobArgs")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(1048576)
|
|||
|
|
.HasColumnType("longtext");
|
|||
|
|
|
|||
|
|
b.Property<string>("JobName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastTryTime")
|
|||
|
|
.HasColumnType("datetime(6)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("NextTryTime")
|
|||
|
|
.HasColumnType("datetime(6)");
|
|||
|
|
|
|||
|
|
b.Property<byte>("Priority")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("tinyint unsigned")
|
|||
|
|
.HasDefaultValue((byte)15);
|
|||
|
|
|
|||
|
|
b.Property<short>("TryCount")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("smallint")
|
|||
|
|
.HasDefaultValue((short)0);
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("IsAbandoned", "NextTryTime");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpBackgroundJobs", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureDefinitionRecord", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("AllowedProviders")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.Property<string>("DefaultValue")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Description")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.Property<string>("DisplayName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<string>("GroupName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsAvailableToHost")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsVisibleToClients")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ParentName")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ValueType")
|
|||
|
|
.HasMaxLength(2048)
|
|||
|
|
.HasColumnType("varchar(2048)");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("GroupName");
|
|||
|
|
|
|||
|
|
b.HasIndex("Name")
|
|||
|
|
.IsUnique();
|
|||
|
|
|
|||
|
|
b.ToTable("AbpFeatures", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureGroupDefinitionRecord", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("DisplayName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("Name")
|
|||
|
|
.IsUnique();
|
|||
|
|
|
|||
|
|
b.ToTable("AbpFeatureGroups", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProviderKey")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProviderName")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Value")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("Name", "ProviderName", "ProviderKey")
|
|||
|
|
.IsUnique();
|
|||
|
|
|
|||
|
|
b.ToTable("AbpFeatureValues", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("Description")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsStatic")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Regex")
|
|||
|
|
.HasMaxLength(512)
|
|||
|
|
.HasColumnType("varchar(512)");
|
|||
|
|
|
|||
|
|
b.Property<string>("RegexDescription")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("Required")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<int>("ValueType")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpClaimTypes", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("SourceTenantId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("SourceUserId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TargetTenantId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("TargetUserId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId")
|
|||
|
|
.IsUnique();
|
|||
|
|
|
|||
|
|
b.ToTable("AbpLinkUsers", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<int>("EntityVersion")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDefault")
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasColumnName("IsDefault");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsPublic")
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasColumnName("IsPublic");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsStatic")
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasColumnName("IsStatic");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.Property<string>("NormalizedName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("NormalizedName");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpRoles", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ClaimType")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ClaimValue")
|
|||
|
|
.HasMaxLength(1024)
|
|||
|
|
.HasColumnType("varchar(1024)");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("RoleId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("RoleId");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpRoleClaims", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Action")
|
|||
|
|
.HasMaxLength(96)
|
|||
|
|
.HasColumnType("varchar(96)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ApplicationName")
|
|||
|
|
.HasMaxLength(96)
|
|||
|
|
.HasColumnType("varchar(96)");
|
|||
|
|
|
|||
|
|
b.Property<string>("BrowserInfo")
|
|||
|
|
.HasMaxLength(512)
|
|||
|
|
.HasColumnType("varchar(512)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ClientId")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ClientIpAddress")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<string>("CorrelationId")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<string>("Identity")
|
|||
|
|
.HasMaxLength(96)
|
|||
|
|
.HasColumnType("varchar(96)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.Property<string>("TenantName")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("UserId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("UserName")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("TenantId", "Action");
|
|||
|
|
|
|||
|
|
b.HasIndex("TenantId", "ApplicationName");
|
|||
|
|
|
|||
|
|
b.HasIndex("TenantId", "Identity");
|
|||
|
|
|
|||
|
|
b.HasIndex("TenantId", "UserId");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpSecurityLogs", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentitySession", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ClientId")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Device")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("DeviceInfo")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<string>("IpAddresses")
|
|||
|
|
.HasMaxLength(2048)
|
|||
|
|
.HasColumnType("varchar(2048)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastAccessed")
|
|||
|
|
.HasColumnType("datetime(6)");
|
|||
|
|
|
|||
|
|
b.Property<string>("SessionId")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("SignedIn")
|
|||
|
|
.HasColumnType("datetime(6)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("UserId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("Device");
|
|||
|
|
|
|||
|
|
b.HasIndex("SessionId");
|
|||
|
|
|
|||
|
|
b.HasIndex("TenantId", "UserId");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpSessions", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<int>("AccessFailedCount")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("int")
|
|||
|
|
.HasDefaultValue(0)
|
|||
|
|
.HasColumnName("AccessFailedCount");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("Email")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasColumnName("Email");
|
|||
|
|
|
|||
|
|
b.Property<bool>("EmailConfirmed")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("EmailConfirmed");
|
|||
|
|
|
|||
|
|
b.Property<int>("EntityVersion")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsActive")
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasColumnName("IsActive");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsExternal")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsExternal");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<DateTimeOffset?>("LastPasswordChangeTime")
|
|||
|
|
.HasColumnType("datetime(6)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("LockoutEnabled")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("LockoutEnabled");
|
|||
|
|
|
|||
|
|
b.Property<DateTimeOffset?>("LockoutEnd")
|
|||
|
|
.HasColumnType("datetime(6)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasColumnName("Name");
|
|||
|
|
|
|||
|
|
b.Property<string>("NormalizedEmail")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasColumnName("NormalizedEmail");
|
|||
|
|
|
|||
|
|
b.Property<string>("NormalizedUserName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasColumnName("NormalizedUserName");
|
|||
|
|
|
|||
|
|
b.Property<string>("PasswordHash")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasColumnName("PasswordHash");
|
|||
|
|
|
|||
|
|
b.Property<string>("PhoneNumber")
|
|||
|
|
.HasMaxLength(16)
|
|||
|
|
.HasColumnType("varchar(16)")
|
|||
|
|
.HasColumnName("PhoneNumber");
|
|||
|
|
|
|||
|
|
b.Property<bool>("PhoneNumberConfirmed")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("PhoneNumberConfirmed");
|
|||
|
|
|
|||
|
|
b.Property<string>("SecurityStamp")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasColumnName("SecurityStamp");
|
|||
|
|
|
|||
|
|
b.Property<bool>("ShouldChangePasswordOnNextLogin")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Surname")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)")
|
|||
|
|
.HasColumnName("Surname");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.Property<bool>("TwoFactorEnabled")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("TwoFactorEnabled");
|
|||
|
|
|
|||
|
|
b.Property<string>("UserName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)")
|
|||
|
|
.HasColumnName("UserName");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("Email");
|
|||
|
|
|
|||
|
|
b.HasIndex("NormalizedEmail");
|
|||
|
|
|
|||
|
|
b.HasIndex("NormalizedUserName");
|
|||
|
|
|
|||
|
|
b.HasIndex("UserName");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpUsers", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ClaimType")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ClaimValue")
|
|||
|
|
.HasMaxLength(1024)
|
|||
|
|
.HasColumnType("varchar(1024)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("UserId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("UserId");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpUserClaims", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserDelegation", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("EndTime")
|
|||
|
|
.HasColumnType("datetime(6)");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("SourceUserId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("StartTime")
|
|||
|
|
.HasColumnType("datetime(6)");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("TargetUserId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpUserDelegations", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("UserId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("LoginProvider")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProviderDisplayName")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProviderKey")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(196)
|
|||
|
|
.HasColumnType("varchar(196)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("UserId", "LoginProvider");
|
|||
|
|
|
|||
|
|
b.HasIndex("LoginProvider", "ProviderKey");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpUserLogins", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("OrganizationUnitId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("UserId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("OrganizationUnitId", "UserId");
|
|||
|
|
|
|||
|
|
b.HasIndex("UserId", "OrganizationUnitId");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpUserOrganizationUnits", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("UserId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("RoleId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("UserId", "RoleId");
|
|||
|
|
|
|||
|
|
b.HasIndex("RoleId", "UserId");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpUserRoles", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("UserId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("LoginProvider")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.Property<string>("Value")
|
|||
|
|
.HasColumnType("longtext");
|
|||
|
|
|
|||
|
|
b.HasKey("UserId", "LoginProvider", "Name");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpUserTokens", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Code")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(95)
|
|||
|
|
.HasColumnType("varchar(95)")
|
|||
|
|
.HasColumnName("Code");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<string>("DisplayName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)")
|
|||
|
|
.HasColumnName("DisplayName");
|
|||
|
|
|
|||
|
|
b.Property<int>("EntityVersion")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("ParentId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("Code");
|
|||
|
|
|
|||
|
|
b.HasIndex("ParentId");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpOrganizationUnits", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("OrganizationUnitId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("RoleId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("OrganizationUnitId", "RoleId");
|
|||
|
|
|
|||
|
|
b.HasIndex("RoleId", "OrganizationUnitId");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpOrganizationUnitRoles", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionDefinitionRecord", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("DisplayName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<string>("GroupName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsEnabled")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<byte>("MultiTenancySide")
|
|||
|
|
.HasColumnType("tinyint unsigned");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ParentName")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Providers")
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<string>("StateCheckers")
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("GroupName");
|
|||
|
|
|
|||
|
|
b.HasIndex("Name")
|
|||
|
|
.IsUnique();
|
|||
|
|
|
|||
|
|
b.ToTable("AbpPermissions", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProviderKey")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProviderName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("TenantId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("TenantId");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey")
|
|||
|
|
.IsUnique();
|
|||
|
|
|
|||
|
|
b.ToTable("AbpPermissionGrants", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGroupDefinitionRecord", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("DisplayName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("Name")
|
|||
|
|
.IsUnique();
|
|||
|
|
|
|||
|
|
b.ToTable("AbpPermissionGroups", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProviderKey")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ProviderName")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Value")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(2048)
|
|||
|
|
.HasColumnType("varchar(2048)");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("Name", "ProviderName", "ProviderKey")
|
|||
|
|
.IsUnique();
|
|||
|
|
|
|||
|
|
b.ToTable("AbpSettings", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.SettingManagement.SettingDefinitionRecord", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("DefaultValue")
|
|||
|
|
.HasMaxLength(2048)
|
|||
|
|
.HasColumnType("varchar(2048)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Description")
|
|||
|
|
.HasMaxLength(512)
|
|||
|
|
.HasColumnType("varchar(512)");
|
|||
|
|
|
|||
|
|
b.Property<string>("DisplayName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(256)
|
|||
|
|
.HasColumnType("varchar(256)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsEncrypted")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsInherited")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsVisibleToClients")
|
|||
|
|
.HasColumnType("bit(1)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(128)
|
|||
|
|
.HasColumnType("varchar(128)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Providers")
|
|||
|
|
.HasMaxLength(1024)
|
|||
|
|
.HasColumnType("varchar(1024)");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("Name")
|
|||
|
|
.IsUnique();
|
|||
|
|
|
|||
|
|
b.ToTable("AbpSettingDefinitions", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("ConcurrencyStamp")
|
|||
|
|
.IsConcurrencyToken()
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(40)
|
|||
|
|
.HasColumnType("varchar(40)")
|
|||
|
|
.HasColumnName("ConcurrencyStamp");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("CreationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("CreatorId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("CreatorId");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("DeleterId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("DeleterId");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("DeletionTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("DeletionTime");
|
|||
|
|
|
|||
|
|
b.Property<int>("EntityVersion")
|
|||
|
|
.HasColumnType("int");
|
|||
|
|
|
|||
|
|
b.Property<string>("ExtraProperties")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("longtext")
|
|||
|
|
.HasColumnName("ExtraProperties");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsDeleted")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("bit(1)")
|
|||
|
|
.HasDefaultValue(false)
|
|||
|
|
.HasColumnName("IsDeleted");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("LastModificationTime")
|
|||
|
|
.HasColumnType("datetime(6)")
|
|||
|
|
.HasColumnName("LastModificationTime");
|
|||
|
|
|
|||
|
|
b.Property<Guid?>("LastModifierId")
|
|||
|
|
.HasColumnType("char(36)")
|
|||
|
|
.HasColumnName("LastModifierId");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("NormalizedName")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("Name");
|
|||
|
|
|
|||
|
|
b.HasIndex("NormalizedName");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpTenants", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("TenantId")
|
|||
|
|
.HasColumnType("char(36)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.HasMaxLength(64)
|
|||
|
|
.HasColumnType("varchar(64)");
|
|||
|
|
|
|||
|
|
b.Property<string>("Value")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(1024)
|
|||
|
|
.HasColumnType("varchar(1024)");
|
|||
|
|
|
|||
|
|
b.HasKey("TenantId", "Name");
|
|||
|
|
|
|||
|
|
b.ToTable("AbpTenantConnectionStrings", (string)null);
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionaryDetail", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("JiShe.ServicePro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionary", null)
|
|||
|
|
.WithMany("Details")
|
|||
|
|
.HasForeignKey("DataDictionaryId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("Volo.Abp.AuditLogging.AuditLog", null)
|
|||
|
|
.WithMany("Actions")
|
|||
|
|
.HasForeignKey("AuditLogId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("Volo.Abp.AuditLogging.AuditLog", null)
|
|||
|
|
.WithMany("EntityChanges")
|
|||
|
|
.HasForeignKey("AuditLogId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("Volo.Abp.AuditLogging.EntityChange", null)
|
|||
|
|
.WithMany("PropertyChanges")
|
|||
|
|
.HasForeignKey("EntityChangeId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("Volo.Abp.Identity.IdentityRole", null)
|
|||
|
|
.WithMany("Claims")
|
|||
|
|
.HasForeignKey("RoleId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
|
|||
|
|
.WithMany("Claims")
|
|||
|
|
.HasForeignKey("UserId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
|
|||
|
|
.WithMany("Logins")
|
|||
|
|
.HasForeignKey("UserId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("Volo.Abp.Identity.OrganizationUnit", null)
|
|||
|
|
.WithMany()
|
|||
|
|
.HasForeignKey("OrganizationUnitId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
|
|||
|
|
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
|
|||
|
|
.WithMany("OrganizationUnits")
|
|||
|
|
.HasForeignKey("UserId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("Volo.Abp.Identity.IdentityRole", null)
|
|||
|
|
.WithMany()
|
|||
|
|
.HasForeignKey("RoleId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
|
|||
|
|
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
|
|||
|
|
.WithMany("Roles")
|
|||
|
|
.HasForeignKey("UserId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("Volo.Abp.Identity.IdentityUser", null)
|
|||
|
|
.WithMany("Tokens")
|
|||
|
|
.HasForeignKey("UserId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("Volo.Abp.Identity.OrganizationUnit", null)
|
|||
|
|
.WithMany()
|
|||
|
|
.HasForeignKey("ParentId");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("Volo.Abp.Identity.OrganizationUnit", null)
|
|||
|
|
.WithMany("Roles")
|
|||
|
|
.HasForeignKey("OrganizationUnitId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
|
|||
|
|
b.HasOne("Volo.Abp.Identity.IdentityRole", null)
|
|||
|
|
.WithMany()
|
|||
|
|
.HasForeignKey("RoleId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("Volo.Abp.TenantManagement.Tenant", null)
|
|||
|
|
.WithMany("ConnectionStrings")
|
|||
|
|
.HasForeignKey("TenantId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("JiShe.ServicePro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionary", b =>
|
|||
|
|
{
|
|||
|
|
b.Navigation("Details");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
|
|||
|
|
{
|
|||
|
|
b.Navigation("Actions");
|
|||
|
|
|
|||
|
|
b.Navigation("EntityChanges");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
|
|||
|
|
{
|
|||
|
|
b.Navigation("PropertyChanges");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
|
|||
|
|
{
|
|||
|
|
b.Navigation("Claims");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
|
|||
|
|
{
|
|||
|
|
b.Navigation("Claims");
|
|||
|
|
|
|||
|
|
b.Navigation("Logins");
|
|||
|
|
|
|||
|
|
b.Navigation("OrganizationUnits");
|
|||
|
|
|
|||
|
|
b.Navigation("Roles");
|
|||
|
|
|
|||
|
|
b.Navigation("Tokens");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
|
|||
|
|
{
|
|||
|
|
b.Navigation("Roles");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b =>
|
|||
|
|
{
|
|||
|
|
b.Navigation("ConnectionStrings");
|
|||
|
|
});
|
|||
|
|
#pragma warning restore 612, 618
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|