iotgateway/IoTGateway.DataAccess/Migrations/DataContextModelSnapshot.cs

863 lines
29 KiB
C#
Raw Permalink Normal View History

2021-12-12 06:55:48 +00:00
// <auto-generated />
using System;
using IoTGateway.DataAccess;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
2022-01-24 15:10:56 +00:00
#nullable disable
2021-12-12 06:55:48 +00:00
namespace IoTGateway.DataAccess.Migrations
{
[DbContext(typeof(DataContext))]
partial class DataContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
2022-11-07 04:52:13 +00:00
modelBuilder
.HasAnnotation("ProductVersion", "6.0.10")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
2021-12-12 06:55:48 +00:00
modelBuilder.Entity("IoTGateway.Model.Device", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<bool>("AutoStart")
2022-11-07 04:52:13 +00:00
.HasColumnType("tinyint(1)");
2021-12-12 06:55:48 +00:00
b.Property<bool>("CgUpload")
2022-11-07 04:52:13 +00:00
.HasColumnType("tinyint(1)");
2022-10-12 06:35:19 +00:00
b.Property<uint>("CmdPeriod")
2022-11-07 04:52:13 +00:00
.HasColumnType("int unsigned");
2022-10-12 06:35:19 +00:00
2021-12-12 06:55:48 +00:00
b.Property<string>("CreateBy")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("CreateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("Description")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("DeviceName")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<int>("DeviceTypeEnum")
2022-11-07 04:52:13 +00:00
.HasColumnType("int");
2021-12-12 06:55:48 +00:00
b.Property<Guid?>("DriverId")
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<uint>("EnforcePeriod")
2022-11-07 04:52:13 +00:00
.HasColumnType("int unsigned");
2021-12-12 06:55:48 +00:00
b.Property<uint>("Index")
2022-11-07 04:52:13 +00:00
.HasColumnType("int unsigned");
2021-12-12 06:55:48 +00:00
b.Property<Guid?>("ParentId")
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("UpdateBy")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("UpdateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.HasIndex("DriverId");
b.HasIndex("ParentId");
b.ToTable("Devices");
});
modelBuilder.Entity("IoTGateway.Model.DeviceConfig", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("CreateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("CreateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
2022-03-24 13:38:11 +00:00
b.Property<int>("DataSide")
2022-11-07 04:52:13 +00:00
.HasColumnType("int");
2022-03-24 13:38:11 +00:00
2021-12-12 06:55:48 +00:00
b.Property<string>("Description")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("DeviceConfigName")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<Guid?>("DeviceId")
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("EnumInfo")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("UpdateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("UpdateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("Value")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.HasIndex("DeviceId");
b.ToTable("DeviceConfigs");
});
modelBuilder.Entity("IoTGateway.Model.DeviceVariable", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<int>("DataType")
2022-11-07 04:52:13 +00:00
.HasColumnType("int");
2021-12-12 06:55:48 +00:00
b.Property<string>("Description")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("DeviceAddress")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<Guid?>("DeviceId")
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("Expressions")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2022-08-25 00:59:49 +00:00
b.Property<uint>("Index")
2022-11-07 04:52:13 +00:00
.HasColumnType("int unsigned");
2022-08-25 00:59:49 +00:00
2021-12-12 06:55:48 +00:00
b.Property<string>("Method")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("Name")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<int>("ProtectType")
2022-11-07 04:52:13 +00:00
.HasColumnType("int");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.HasIndex("DeviceId");
b.ToTable("DeviceVariables");
});
modelBuilder.Entity("IoTGateway.Model.Driver", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("AssembleName")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<int>("AuthorizesNum")
2022-11-07 04:52:13 +00:00
.HasColumnType("int");
2021-12-12 06:55:48 +00:00
b.Property<string>("CreateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("CreateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("DriverName")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("FileName")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("UpdateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("UpdateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.ToTable("Drivers");
});
2022-04-13 09:01:24 +00:00
modelBuilder.Entity("IoTGateway.Model.RpcLog", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2022-04-13 09:01:24 +00:00
b.Property<string>("Description")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2022-04-13 09:01:24 +00:00
b.Property<Guid?>("DeviceId")
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2022-04-13 09:01:24 +00:00
b.Property<DateTime>("EndTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2022-04-13 09:01:24 +00:00
b.Property<bool>("IsSuccess")
2022-11-07 04:52:13 +00:00
.HasColumnType("tinyint(1)");
2022-04-13 09:01:24 +00:00
b.Property<string>("Method")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2022-04-13 09:01:24 +00:00
b.Property<string>("Params")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2022-04-13 09:01:24 +00:00
b.Property<int>("RpcSide")
2022-11-07 04:52:13 +00:00
.HasColumnType("int");
2022-04-13 09:01:24 +00:00
b.Property<DateTime>("StartTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2022-04-13 09:01:24 +00:00
b.HasKey("ID");
b.HasIndex("DeviceId");
b.ToTable("RpcLogs");
});
2021-12-12 06:55:48 +00:00
modelBuilder.Entity("IoTGateway.Model.SystemConfig", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
2022-08-10 08:55:44 +00:00
b.Property<string>("ClientId")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2022-08-10 08:55:44 +00:00
2021-12-12 06:55:48 +00:00
b.Property<string>("CreateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("CreateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("GatewayName")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
2022-01-24 15:10:56 +00:00
b.Property<int>("IoTPlatformType")
2022-11-07 04:52:13 +00:00
.HasColumnType("int");
2022-01-24 15:10:56 +00:00
2021-12-12 06:55:48 +00:00
b.Property<string>("MqttIp")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<int>("MqttPort")
2022-11-07 04:52:13 +00:00
.HasColumnType("int");
2021-12-12 06:55:48 +00:00
b.Property<string>("MqttUName")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("MqttUPwd")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("UpdateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("UpdateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.ToTable("SystemConfig");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.ActionLog", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("ActionName")
.HasMaxLength(255)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(255)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime>("ActionTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("ActionUrl")
.HasMaxLength(250)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(250)");
2021-12-12 06:55:48 +00:00
b.Property<string>("CreateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("CreateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<double>("Duration")
2022-11-07 04:52:13 +00:00
.HasColumnType("double");
2021-12-12 06:55:48 +00:00
b.Property<string>("IP")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<string>("ITCode")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<int>("LogType")
2022-11-07 04:52:13 +00:00
.HasColumnType("int");
2021-12-12 06:55:48 +00:00
b.Property<string>("ModuleName")
.HasMaxLength(255)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(255)");
2021-12-12 06:55:48 +00:00
b.Property<string>("Remark")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("UpdateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("UpdateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.ToTable("ActionLogs");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.DataPrivilege", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("CreateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("CreateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("Domain")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("GroupCode")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("RelateId")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("TableName")
.IsRequired()
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<string>("UpdateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("UpdateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("UserCode")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.ToTable("DataPrivileges");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.FileAttachment", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("ExtraInfo")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<byte[]>("FileData")
2022-11-07 04:52:13 +00:00
.HasColumnType("longblob");
2021-12-12 06:55:48 +00:00
b.Property<string>("FileExt")
.IsRequired()
.HasMaxLength(10)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(10)");
2021-12-12 06:55:48 +00:00
b.Property<string>("FileName")
.IsRequired()
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("HandlerInfo")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<long>("Length")
2022-11-07 04:52:13 +00:00
.HasColumnType("bigint");
2021-12-12 06:55:48 +00:00
b.Property<string>("Path")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("SaveMode")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<DateTime>("UploadTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.ToTable("FileAttachments");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkGroup", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("CreateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("CreateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("GroupCode")
.IsRequired()
.HasMaxLength(100)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(100)");
2021-12-12 06:55:48 +00:00
b.Property<string>("GroupName")
.IsRequired()
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<string>("GroupRemark")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("TenantCode")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("UpdateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("UpdateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.ToTable("FrameworkGroups");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkMenu", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("ActionName")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("ClassName")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<int?>("DisplayOrder")
.IsRequired()
2022-11-07 04:52:13 +00:00
.HasColumnType("int");
2021-12-12 06:55:48 +00:00
b.Property<string>("Domain")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<bool>("FolderOnly")
2022-11-07 04:52:13 +00:00
.HasColumnType("tinyint(1)");
2021-12-12 06:55:48 +00:00
b.Property<string>("Icon")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<bool>("IsInherit")
2022-11-07 04:52:13 +00:00
.HasColumnType("tinyint(1)");
2021-12-12 06:55:48 +00:00
b.Property<bool?>("IsInside")
.IsRequired()
2022-11-07 04:52:13 +00:00
.HasColumnType("tinyint(1)");
2021-12-12 06:55:48 +00:00
b.Property<bool>("IsPublic")
2022-11-07 04:52:13 +00:00
.HasColumnType("tinyint(1)");
2021-12-12 06:55:48 +00:00
b.Property<string>("MethodName")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("ModuleName")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("PageName")
.IsRequired()
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<Guid?>("ParentId")
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<bool>("ShowOnMenu")
2022-11-07 04:52:13 +00:00
.HasColumnType("tinyint(1)");
2021-12-12 06:55:48 +00:00
b.Property<string>("Url")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.HasIndex("ParentId");
b.ToTable("FrameworkMenus");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkRole", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("CreateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("CreateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("RoleCode")
.IsRequired()
.HasMaxLength(100)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(100)");
2021-12-12 06:55:48 +00:00
b.Property<string>("RoleName")
.IsRequired()
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<string>("RoleRemark")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("TenantCode")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("UpdateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("UpdateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.ToTable("FrameworkRoles");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkUser", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("Address")
.HasMaxLength(200)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(200)");
2021-12-12 06:55:48 +00:00
b.Property<string>("CellPhone")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("CreateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("CreateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("Email")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<int?>("Gender")
2022-11-07 04:52:13 +00:00
.HasColumnType("int");
2021-12-12 06:55:48 +00:00
b.Property<string>("HomePhone")
.HasMaxLength(30)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(30)");
2021-12-12 06:55:48 +00:00
b.Property<string>("ITCode")
.IsRequired()
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<bool>("IsValid")
2022-11-07 04:52:13 +00:00
.HasColumnType("tinyint(1)");
2021-12-12 06:55:48 +00:00
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<string>("Password")
.IsRequired()
.HasMaxLength(32)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(32)");
2021-12-12 06:55:48 +00:00
b.Property<Guid?>("PhotoId")
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("TenantCode")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("UpdateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("UpdateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("ZipCode")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.HasIndex("PhotoId");
b.ToTable("FrameworkUsers");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkUserGroup", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("CreateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("CreateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("GroupCode")
.IsRequired()
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("UpdateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("UpdateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("UserCode")
.IsRequired()
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.ToTable("FrameworkUserGroups");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkUserRole", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("CreateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("CreateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("RoleCode")
.IsRequired()
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("UpdateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("UpdateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("UserCode")
.IsRequired()
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.ToTable("FrameworkUserRoles");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.FunctionPrivilege", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<bool?>("Allowed")
.IsRequired()
2022-11-07 04:52:13 +00:00
.HasColumnType("tinyint(1)");
2021-12-12 06:55:48 +00:00
b.Property<string>("CreateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("CreateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<Guid>("MenuItemId")
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<string>("RoleCode")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.Property<string>("UpdateBy")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime?>("UpdateTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.HasIndex("MenuItemId");
b.ToTable("FunctionPrivileges");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.PersistedGrant", b =>
{
b.Property<Guid>("ID")
.ValueGeneratedOnAdd()
2022-11-07 04:52:13 +00:00
.HasColumnType("char(36)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime>("CreationTime")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<DateTime>("Expiration")
2022-11-07 04:52:13 +00:00
.HasColumnType("datetime(6)");
2021-12-12 06:55:48 +00:00
b.Property<string>("RefreshToken")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<string>("Type")
.HasMaxLength(50)
2022-11-07 04:52:13 +00:00
.HasColumnType("varchar(50)");
2021-12-12 06:55:48 +00:00
b.Property<string>("UserCode")
2022-11-07 04:52:13 +00:00
.HasColumnType("longtext");
2021-12-12 06:55:48 +00:00
b.HasKey("ID");
b.ToTable("PersistedGrants");
});
modelBuilder.Entity("IoTGateway.Model.Device", b =>
{
b.HasOne("IoTGateway.Model.Driver", "Driver")
.WithMany()
.HasForeignKey("DriverId");
b.HasOne("IoTGateway.Model.Device", "Parent")
.WithMany("Children")
.HasForeignKey("ParentId");
b.Navigation("Driver");
b.Navigation("Parent");
});
modelBuilder.Entity("IoTGateway.Model.DeviceConfig", b =>
{
b.HasOne("IoTGateway.Model.Device", "Device")
.WithMany("DeviceConfigs")
.HasForeignKey("DeviceId");
b.Navigation("Device");
});
modelBuilder.Entity("IoTGateway.Model.DeviceVariable", b =>
{
b.HasOne("IoTGateway.Model.Device", "Device")
.WithMany("DeviceVariables")
.HasForeignKey("DeviceId");
b.Navigation("Device");
});
2022-04-13 09:01:24 +00:00
modelBuilder.Entity("IoTGateway.Model.RpcLog", b =>
{
b.HasOne("IoTGateway.Model.Device", "Device")
.WithMany()
.HasForeignKey("DeviceId");
b.Navigation("Device");
});
2021-12-12 06:55:48 +00:00
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkMenu", b =>
{
b.HasOne("WalkingTec.Mvvm.Core.FrameworkMenu", "Parent")
.WithMany("Children")
.HasForeignKey("ParentId");
b.Navigation("Parent");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkUser", b =>
{
b.HasOne("WalkingTec.Mvvm.Core.FileAttachment", "Photo")
.WithMany()
.HasForeignKey("PhotoId")
.OnDelete(DeleteBehavior.Restrict);
b.Navigation("Photo");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.FunctionPrivilege", b =>
{
b.HasOne("WalkingTec.Mvvm.Core.FrameworkMenu", "MenuItem")
.WithMany("Privileges")
.HasForeignKey("MenuItemId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("MenuItem");
});
modelBuilder.Entity("IoTGateway.Model.Device", b =>
{
b.Navigation("Children");
b.Navigation("DeviceConfigs");
b.Navigation("DeviceVariables");
});
modelBuilder.Entity("WalkingTec.Mvvm.Core.FrameworkMenu", b =>
{
b.Navigation("Children");
b.Navigation("Privileges");
});
#pragma warning restore 612, 618
}
}
}