//
using System;
using JiShe.IoT.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore;
#nullable disable
namespace JiShe.IoT.Migrations
{
[DbContext(typeof(IoTDbContext))]
partial class IoTDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
.HasAnnotation("ProductVersion", "9.0.4")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
modelBuilder.Entity("JiShe.ServicePro.BasicManagement.UserRefreshTokens.UserRefreshToken", b =>
{
b.Property("Id")
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("ExpirationTime")
.HasColumnType("datetime(6)")
.HasComment("过期时间");
b.Property("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("IsUsed")
.HasColumnType("tinyint(1)")
.HasComment("是否使用");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("RefreshToken")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("刷新token");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.Property("Token")
.IsRequired()
.HasMaxLength(1024)
.HasColumnType("varchar(1024)")
.HasComment("Token");
b.Property("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("Id")
.HasColumnType("char(36)");
b.Property("AccountId")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("账号ID");
b.Property("AccountName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("账号名称");
b.Property("AppId")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("应用 ID");
b.Property("AppKey")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("应用 AppKey");
b.Property("AppSecret")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("应用 AppSecret");
b.Property("CommunicationAddress")
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("通讯服务地址");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties")
.HasComment("扩展属性,用于存储自定义字段,JSON格式");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("OSACreatorId")
.HasColumnType("int")
.HasComment("旧系统授权创建者Id");
b.Property("OSADeleterId")
.HasColumnType("int")
.HasComment("旧系统授权最后删除者Id");
b.Property("OSALastModifierId")
.HasColumnType("int")
.HasComment("旧系统授权最后修改者Id");
b.Property("PhoneNumber")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("手机号码");
b.Property("PlatformTenantId")
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("平台租户ID");
b.Property("ProductCount")
.HasColumnType("int");
b.Property("Remark")
.HasColumnType("longtext")
.HasComment("备注");
b.Property("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("Id")
.HasColumnType("char(36)");
b.Property("AccessType")
.HasColumnType("int");
b.Property("AccountPhoneNumber")
.HasColumnType("longtext");
b.Property("AuthType")
.HasColumnType("int");
b.Property("CTWingAccountId")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("账号ID");
b.Property("CommunicationAddress")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("通讯服务地址");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DataEncryption")
.HasColumnType("int");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("DeviceCount")
.HasColumnType("int");
b.Property("DeviceThingModelFileId")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("设备物模型文件Id");
b.Property("DeviceThingModelFileName")
.HasMaxLength(256)
.HasColumnType("varchar(256)")
.HasComment("设备物模型文件名称");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties")
.HasComment("扩展属性,用于存储自定义字段,JSON格式");
b.Property("FeatureAccesskey")
.HasMaxLength(256)
.HasColumnType("varchar(256)")
.HasComment("设备访问密钥");
b.Property("IoTPlatformProductId")
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("产品ID");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("IsEnabled")
.HasColumnType("tinyint(1)")
.HasComment("是否启用");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("MasterKey")
.HasMaxLength(256)
.HasColumnType("varchar(256)")
.HasComment("OpenAPI 通信主密钥");
b.Property("NetworkType")
.HasColumnType("int");
b.Property("NodeType")
.HasColumnType("int");
b.Property("OSACreatorId")
.HasColumnType("int")
.HasComment("旧系统授权创建者Id");
b.Property("OSADeleterId")
.HasColumnType("int")
.HasComment("旧系统授权最后删除者Id");
b.Property("OSALastModifierId")
.HasColumnType("int")
.HasComment("旧系统授权最后修改者Id");
b.Property("ProductDesc")
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("必填,产品描述");
b.Property("ProductName")
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("产品名称");
b.Property("ProductProtocol")
.HasColumnType("int");
b.Property("ProductType")
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("一级分类名");
b.Property("Protocol")
.HasMaxLength(20)
.HasColumnType("varchar(20)")
.HasComment("通讯协议");
b.Property("Remark")
.HasColumnType("longtext")
.HasComment("备注");
b.Property("SecondaryType")
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("二级分类名");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId")
.HasComment("租户ID");
b.Property("ThirdType")
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("三级分类名");
b.Property("TupDeviceModel")
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("设备型号");
b.Property("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("Id")
.HasColumnType("char(36)");
b.Property("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("varchar(64)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("Description")
.IsRequired()
.HasMaxLength(1024)
.HasColumnType("varchar(1024)");
b.Property("DisplayText")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("varchar(64)");
b.Property("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("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("Id")
.HasColumnType("char(36)");
b.Property("Code")
.HasColumnType("longtext");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DataDictionaryId")
.HasColumnType("char(36)");
b.Property("Description")
.HasColumnType("longtext");
b.Property("DisplayText")
.HasColumnType("longtext");
b.Property("IsEnabled")
.HasColumnType("tinyint(1)");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("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("Id")
.HasColumnType("char(36)");
b.Property("AccountPhoneNumber")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("账户手机号");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("DeviceAddress")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasComment("设备地址");
b.Property("DeviceName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("设备名称");
b.Property("DeviceOnlineStatus")
.HasColumnType("int")
.HasComment("设备在线状态");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties")
.HasComment("扩展属性,用于存储自定义字段,JSON格式");
b.Property("IoTPlatform")
.HasColumnType("int")
.HasComment("物联网平台类型,默认没有指定");
b.Property("IoTPlatformAccountId")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("物联网平台中对应的账号Id");
b.Property("IoTPlatformDeviceOpenInfo")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("物联网平台中对应的设备Id或者名称");
b.Property("IoTPlatformProductId")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("物联网平台中对应的产品Id");
b.Property("IoTPlatformProductName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("物联网平台中对应的产品Name");
b.Property("IoTPlatformResponse")
.HasColumnType("text")
.HasComment("物联网平台返回的响应信息");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("IsPlatformPushSuccess")
.HasColumnType("tinyint(1)")
.HasComment("物联网平台推送是否成功");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("LastOfflineTime")
.HasColumnType("datetime(6)")
.HasComment("最后离线时间");
b.Property("LastOnlineTime")
.HasColumnType("datetime(6)")
.HasComment("最后在线时间");
b.Property("OSACreatorId")
.HasColumnType("int")
.HasComment("旧系统授权创建者Id");
b.Property("OSADeleterId")
.HasColumnType("int")
.HasComment("旧系统授权最后删除者Id");
b.Property("OSALastModifierId")
.HasColumnType("int")
.HasComment("旧系统授权最后修改者Id");
b.Property("PlatformPassword")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("物联网平台设备密码");
b.Property("Remark")
.HasColumnType("longtext")
.HasComment("备注");
b.Property("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.DynamicMenuManagement.Menus.Menu", b =>
{
b.Property("Id")
.HasColumnType("char(36)");
b.Property("Component")
.HasMaxLength(512)
.HasColumnType("varchar(512)")
.HasComment("组件地址");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("DisplayTitle")
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("标准多语言");
b.Property("Enabled")
.HasColumnType("tinyint(1)");
b.Property("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("HideInMenu")
.HasColumnType("tinyint(1)")
.HasComment("是否显示");
b.Property("Icon")
.HasColumnType("longtext")
.HasComment("图标");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("KeepAlive")
.HasColumnType("tinyint(1)")
.HasComment("是否缓存");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("MenuType")
.HasColumnType("int")
.HasComment("菜单类型");
b.Property("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("唯一编码");
b.Property("OpenType")
.HasColumnType("int")
.HasComment("打开类型");
b.Property("Order")
.HasColumnType("int")
.HasComment("排序");
b.Property("ParentId")
.HasColumnType("char(36)");
b.Property("Path")
.IsRequired()
.HasMaxLength(512)
.HasColumnType("varchar(512)")
.HasComment("路由/接口地址");
b.Property("Policy")
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("授权策略名称");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.Property("Title")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("标题");
b.Property("Url")
.HasColumnType("longtext")
.HasComment("内外链地址");
b.HasKey("Id");
b.ToTable("ServiceProMenus", null, t =>
{
t.HasComment("动态菜单管理");
});
});
modelBuilder.Entity("JiShe.ServicePro.FileManagement.Files.FileObject", b =>
{
b.Property("Id")
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("ContentType")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("文件名称");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("FileName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("文件名称");
b.Property("FileSize")
.HasColumnType("bigint")
.HasComment("文件大小");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("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("Id")
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("CultureName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("语言名称");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("Name")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("varchar(256)")
.HasComment("名称");
b.Property("ResourceName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("资源名称");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.Property("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("Id")
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("CultureName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("语言名称");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("DisplayName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("显示名称");
b.Property("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("FlagIcon")
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("图标");
b.Property("IsDefault")
.HasColumnType("tinyint(1)");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("IsEnabled")
.HasColumnType("tinyint(1)");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.Property("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("Id")
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("Content")
.IsRequired()
.HasMaxLength(1024)
.HasColumnType("varchar(1024)");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("MessageLevel")
.HasColumnType("int");
b.Property("MessageType")
.HasColumnType("int");
b.Property("Read")
.HasColumnType("tinyint(1)");
b.Property("ReadTime")
.HasColumnType("datetime(6)");
b.Property("ReceiveUserId")
.HasColumnType("char(36)");
b.Property("ReceiveUserName")
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property("SenderUserId")
.HasColumnType("char(36)");
b.Property("SenderUserName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.Property("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("Id")
.HasColumnType("char(36)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property("NotificationId")
.HasColumnType("char(36)");
b.Property("Read")
.HasColumnType("tinyint(1)");
b.Property("ReadTime")
.HasColumnType("datetime(6)");
b.Property("ReceiveUserId")
.HasColumnType("char(36)");
b.Property("ReceiveUserName")
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property("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("Id")
.HasColumnType("char(36)");
b.Property("AccountAccesskey")
.IsRequired()
.HasMaxLength(1024)
.HasColumnType("varchar(1024)")
.HasComment("账户通信密钥,平台可以重置密钥");
b.Property("AccountName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("账号名称");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property("ExtraProperties")
.HasColumnType("longtext")
.HasColumnName("ExtraProperties")
.HasComment("扩展属性,用于存储自定义字段,JSON格式");
b.Property("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property