// using System; using IoTSharp.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace IoTSharp.Migrations { [DbContext(typeof(ApplicationDbContext))] [Migration("20220212100327_FixTenantInfo")] partial class FixTenantInfo { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "6.0.2") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("IoTSharp.Data.AuditLog", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("ActionData") .HasColumnType("jsonb"); b.Property("ActionName") .HasColumnType("text"); b.Property("ActionResult") .HasColumnType("jsonb"); b.Property("ActiveDateTime") .HasColumnType("timestamp with time zone"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("ObjectID") .HasColumnType("uuid"); b.Property("ObjectName") .HasColumnType("text"); b.Property("ObjectType") .HasColumnType("integer"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("UserId") .HasColumnType("text"); b.Property("UserName") .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("CustomerId"); b.HasIndex("TenantId"); b.ToTable("AuditLog"); }); modelBuilder.Entity("IoTSharp.Data.AuthorizedKey", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AuthToken") .HasColumnType("text"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("Name") .HasColumnType("text"); b.Property("TenantId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("CustomerId"); b.HasIndex("TenantId"); b.ToTable("AuthorizedKeys"); }); modelBuilder.Entity("IoTSharp.Data.BaseDictionary", b => { b.Property("DictionaryId") .ValueGeneratedOnAdd() .HasColumnType("bigint"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("DictionaryId")); b.Property("Dictionary18NKeyName") .HasColumnType("text"); b.Property("DictionaryColor") .HasColumnType("text"); b.Property("DictionaryDesc") .HasColumnType("text"); b.Property("DictionaryGroupId") .HasColumnType("bigint"); b.Property("DictionaryIcon") .HasColumnType("text"); b.Property("DictionaryName") .HasColumnType("text"); b.Property("DictionaryPattern") .HasColumnType("text"); b.Property("DictionaryStatus") .HasColumnType("integer"); b.Property("DictionaryTag") .HasColumnType("text"); b.Property("DictionaryValue") .HasColumnType("text"); b.Property("DictionaryValueType") .HasColumnType("integer"); b.Property("DictionaryValueTypeName") .HasColumnType("text"); b.HasKey("DictionaryId"); b.ToTable("BaseDictionaries"); }); modelBuilder.Entity("IoTSharp.Data.BaseDictionaryGroup", b => { b.Property("DictionaryGroupId") .ValueGeneratedOnAdd() .HasColumnType("bigint"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("DictionaryGroupId")); b.Property("DictionaryGroup18NKeyName") .HasColumnType("text"); b.Property("DictionaryGroupDesc") .HasColumnType("text"); b.Property("DictionaryGroupKey") .HasColumnType("text"); b.Property("DictionaryGroupName") .HasColumnType("text"); b.Property("DictionaryGroupStatus") .HasColumnType("integer"); b.Property("DictionaryGroupValueType") .HasColumnType("integer"); b.Property("DictionaryGroupValueTypeName") .HasColumnType("text"); b.HasKey("DictionaryGroupId"); b.ToTable("BaseDictionaryGroups"); }); modelBuilder.Entity("IoTSharp.Data.BaseEvent", b => { b.Property("EventId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("BizData") .HasColumnType("text"); b.Property("Bizid") .HasColumnType("text"); b.Property("CreaterDateTime") .HasColumnType("timestamp with time zone"); b.Property("Creator") .HasColumnType("uuid"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("EventDesc") .HasColumnType("text"); b.Property("EventName") .HasColumnType("text"); b.Property("EventStaus") .HasColumnType("integer"); b.Property("FlowRuleRuleId") .HasColumnType("uuid"); b.Property("MataData") .HasColumnType("text"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("Type") .HasColumnType("integer"); b.HasKey("EventId"); b.HasIndex("CustomerId"); b.HasIndex("FlowRuleRuleId"); b.HasIndex("TenantId"); b.ToTable("BaseEvents"); }); modelBuilder.Entity("IoTSharp.Data.BaseI18N", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("AddDate") .HasColumnType("timestamp with time zone"); b.Property("KeyName") .HasColumnType("text"); b.Property("ResouceDesc") .HasColumnType("text"); b.Property("ResouceGroupId") .HasColumnType("integer"); b.Property("ResourceId") .HasColumnType("bigint"); b.Property("ResourceKey") .HasColumnType("text"); b.Property("ResourceTag") .HasColumnType("text"); b.Property("ResourceType") .HasColumnType("integer"); b.Property("Status") .HasColumnType("integer"); b.Property("UserId") .HasColumnType("uuid"); b.Property("ValueBG") .HasColumnType("text"); b.Property("ValueCS") .HasColumnType("text"); b.Property("ValueDA") .HasColumnType("text"); b.Property("ValueDEDE") .HasColumnType("text"); b.Property("ValueELGR") .HasColumnType("text"); b.Property("ValueENGR") .HasColumnType("text"); b.Property("ValueENUS") .HasColumnType("text"); b.Property("ValueESES") .HasColumnType("text"); b.Property("ValueFI") .HasColumnType("text"); b.Property("ValueFRFR") .HasColumnType("text"); b.Property("ValueHE") .HasColumnType("text"); b.Property("ValueHRHR") .HasColumnType("text"); b.Property("ValueHU") .HasColumnType("text"); b.Property("ValueITIT") .HasColumnType("text"); b.Property("ValueJAJP") .HasColumnType("text"); b.Property("ValueKOKR") .HasColumnType("text"); b.Property("ValueNL") .HasColumnType("text"); b.Property("ValuePLPL") .HasColumnType("text"); b.Property("ValuePT") .HasColumnType("text"); b.Property("ValueSLSL") .HasColumnType("text"); b.Property("ValueSR") .HasColumnType("text"); b.Property("ValueSV") .HasColumnType("text"); b.Property("ValueTRTR") .HasColumnType("text"); b.Property("ValueUK") .HasColumnType("text"); b.Property("ValueVI") .HasColumnType("text"); b.Property("ValueZHCN") .HasColumnType("text"); b.Property("ValueZHTW") .HasColumnType("text"); b.HasKey("Id"); b.ToTable("BaseI18Ns"); }); modelBuilder.Entity("IoTSharp.Data.Customer", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Address") .HasColumnType("text"); b.Property("City") .HasColumnType("text"); b.Property("Country") .HasColumnType("text"); b.Property("Email") .HasColumnType("text"); b.Property("Name") .HasColumnType("text"); b.Property("Phone") .HasColumnType("text"); b.Property("Province") .HasColumnType("text"); b.Property("Street") .HasColumnType("text"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("ZipCode") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("TenantId"); b.ToTable("Customer"); }); modelBuilder.Entity("IoTSharp.Data.DataStorage", b => { b.Property("Catalog") .HasColumnType("integer") .HasColumnOrder(0); b.Property("DeviceId") .HasColumnType("uuid") .HasColumnOrder(1); b.Property("KeyName") .HasColumnType("text") .HasColumnOrder(2); b.Property("DataSide") .HasColumnType("integer") .HasColumnOrder(4); b.Property("DateTime") .HasColumnType("timestamp with time zone") .HasColumnOrder(3); b.Property("Type") .HasColumnType("integer") .HasColumnOrder(5); b.Property("Value_Binary") .HasColumnType("bytea"); b.Property("Value_Boolean") .HasColumnType("boolean"); b.Property("Value_DateTime") .HasColumnType("timestamp with time zone"); b.Property("Value_Double") .HasColumnType("double precision"); b.Property("Value_Json") .HasColumnType("jsonb"); b.Property("Value_Long") .HasColumnType("bigint"); b.Property("Value_String") .HasColumnType("text"); b.Property("Value_XML") .HasColumnType("xml"); b.HasKey("Catalog", "DeviceId", "KeyName"); b.HasIndex("Catalog"); b.HasIndex("Catalog", "DeviceId"); b.ToTable("DataStorage"); b.HasDiscriminator("Catalog").HasValue(0); }); modelBuilder.Entity("IoTSharp.Data.Device", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AuthorizedKeyId") .HasColumnType("uuid"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("DeviceModelId") .HasColumnType("uuid"); b.Property("DeviceType") .HasColumnType("integer"); b.Property("LastActive") .HasColumnType("timestamp with time zone"); b.Property("Name") .HasColumnType("text"); b.Property("Online") .HasColumnType("boolean"); b.Property("OwnerId") .HasColumnType("uuid"); b.Property("Status") .HasColumnType("integer"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("Timeout") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("AuthorizedKeyId"); b.HasIndex("CustomerId"); b.HasIndex("DeviceModelId"); b.HasIndex("OwnerId"); b.HasIndex("TenantId"); b.ToTable("Device"); b.HasDiscriminator("DeviceType").HasValue(0); }); modelBuilder.Entity("IoTSharp.Data.DeviceDiagram", b => { b.Property("DiagramId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreateDate") .HasColumnType("timestamp with time zone"); b.Property("Creator") .HasColumnType("uuid"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("DiagramDesc") .HasColumnType("text"); b.Property("DiagramImage") .HasColumnType("text"); b.Property("DiagramName") .HasColumnType("text"); b.Property("DiagramStatus") .HasColumnType("integer"); b.Property("IsDefault") .HasColumnType("boolean"); b.Property("TenantId") .HasColumnType("uuid"); b.HasKey("DiagramId"); b.HasIndex("CustomerId"); b.HasIndex("TenantId"); b.ToTable("DeviceDiagrams"); }); modelBuilder.Entity("IoTSharp.Data.DeviceGraph", b => { b.Property("GraphId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreateDate") .HasColumnType("timestamp with time zone"); b.Property("Creator") .HasColumnType("uuid"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("DeviceDiagramDiagramId") .HasColumnType("uuid"); b.Property("DeviceId") .HasColumnType("uuid"); b.Property("GraphElementId") .HasColumnType("text"); b.Property("GraphFill") .HasColumnType("text"); b.Property("GraphHeight") .HasColumnType("integer"); b.Property("GraphPostionX") .HasColumnType("integer"); b.Property("GraphPostionY") .HasColumnType("integer"); b.Property("GraphShape") .HasColumnType("text"); b.Property("GraphStroke") .HasColumnType("text"); b.Property("GraphStrokeWidth") .HasColumnType("integer"); b.Property("GraphTextAnchor") .HasColumnType("text"); b.Property("GraphTextFill") .HasColumnType("text"); b.Property("GraphTextFontFamily") .HasColumnType("text"); b.Property("GraphTextFontSize") .HasColumnType("integer"); b.Property("GraphTextRefX") .HasColumnType("integer"); b.Property("GraphTextRefY") .HasColumnType("integer"); b.Property("GraphTextVerticalAnchor") .HasColumnType("text"); b.Property("GraphWidth") .HasColumnType("integer"); b.Property("TenantId") .HasColumnType("uuid"); b.HasKey("GraphId"); b.HasIndex("CustomerId"); b.HasIndex("DeviceDiagramDiagramId"); b.HasIndex("TenantId"); b.ToTable("DeviceGraphs"); }); modelBuilder.Entity("IoTSharp.Data.DeviceGraphToolBox", b => { b.Property("ToolBoxId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CommondParam") .HasColumnType("text"); b.Property("CommondType") .HasColumnType("text"); b.Property("CreateDate") .HasColumnType("timestamp with time zone"); b.Property("Creator") .HasColumnType("uuid"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("DeviceId") .HasColumnType("bigint"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("ToolBoxIcon") .HasColumnType("text"); b.Property("ToolBoxName") .HasColumnType("text"); b.Property("ToolBoxOffsetLeftPer") .HasColumnType("integer"); b.Property("ToolBoxOffsetTopPer") .HasColumnType("integer"); b.Property("ToolBoxOffsetX") .HasColumnType("integer"); b.Property("ToolBoxOffsetY") .HasColumnType("integer"); b.Property("ToolBoxRequestUri") .HasColumnType("text"); b.Property("ToolBoxStatus") .HasColumnType("integer"); b.Property("ToolBoxType") .HasColumnType("text"); b.HasKey("ToolBoxId"); b.HasIndex("CustomerId"); b.HasIndex("TenantId"); b.ToTable("DeviceGraphToolBoxes"); }); modelBuilder.Entity("IoTSharp.Data.DeviceIdentity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("DeviceId") .HasColumnType("uuid"); b.Property("IdentityId") .IsRequired() .HasColumnType("text"); b.Property("IdentityType") .HasColumnType("integer"); b.Property("IdentityValue") .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("DeviceId") .IsUnique(); b.ToTable("DeviceIdentities"); }); modelBuilder.Entity("IoTSharp.Data.DeviceModel", b => { b.Property("DeviceModelId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreateDateTime") .HasColumnType("timestamp with time zone"); b.Property("Creator") .HasColumnType("uuid"); b.Property("ModelDesc") .HasColumnType("text"); b.Property("ModelName") .HasColumnType("text"); b.Property("ModelStatus") .HasColumnType("integer"); b.HasKey("DeviceModelId"); b.ToTable("DeviceModels"); }); modelBuilder.Entity("IoTSharp.Data.DeviceModelCommand", b => { b.Property("CommandId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CommandI18N") .HasColumnType("text"); b.Property("CommandName") .HasColumnType("text"); b.Property("CommandParams") .HasColumnType("text"); b.Property("CommandStatus") .HasColumnType("integer"); b.Property("CommandTemplate") .HasColumnType("text"); b.Property("CommandTitle") .HasColumnType("text"); b.Property("CommandType") .HasColumnType("integer"); b.Property("CreateDateTime") .HasColumnType("timestamp with time zone"); b.Property("Creator") .HasColumnType("uuid"); b.Property("DeviceModelId") .HasColumnType("uuid"); b.HasKey("CommandId"); b.HasIndex("DeviceModelId"); b.ToTable("DeviceModelCommands"); }); modelBuilder.Entity("IoTSharp.Data.DevicePort", b => { b.Property("PortId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreateDate") .HasColumnType("timestamp with time zone"); b.Property("Creator") .HasColumnType("bigint"); b.Property("DeviceId") .HasColumnType("uuid"); b.Property("PortDesc") .HasColumnType("text"); b.Property("PortElementId") .HasColumnType("text"); b.Property("PortName") .HasColumnType("text"); b.Property("PortPhyType") .HasColumnType("integer"); b.Property("PortPic") .HasColumnType("text"); b.Property("PortStatus") .HasColumnType("integer"); b.Property("PortType") .HasColumnType("integer"); b.HasKey("PortId"); b.ToTable("DevicePorts"); }); modelBuilder.Entity("IoTSharp.Data.DevicePortMapping", b => { b.Property("MappingId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreateDate") .HasColumnType("timestamp with time zone"); b.Property("Creator") .HasColumnType("uuid"); b.Property("MappingIndex") .HasColumnType("integer"); b.Property("MappingStatus") .HasColumnType("integer"); b.Property("SourceDeviceId") .HasColumnType("uuid"); b.Property("SourceElementId") .HasColumnType("text"); b.Property("SourceId") .HasColumnType("text"); b.Property("TargeId") .HasColumnType("text"); b.Property("TargetDeviceId") .HasColumnType("uuid"); b.Property("TargetElementId") .HasColumnType("text"); b.HasKey("MappingId"); b.ToTable("DevicePortMappings"); }); modelBuilder.Entity("IoTSharp.Data.DeviceRule", b => { b.Property("DeviceRuleId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("ConfigDateTime") .HasColumnType("timestamp with time zone"); b.Property("ConfigUser") .HasColumnType("uuid"); b.Property("DeviceId") .HasColumnType("uuid"); b.Property("EnableTrace") .HasColumnType("integer"); b.Property("FlowRuleRuleId") .HasColumnType("uuid"); b.HasKey("DeviceRuleId"); b.HasIndex("DeviceId"); b.HasIndex("FlowRuleRuleId"); b.ToTable("DeviceRules"); }); modelBuilder.Entity("IoTSharp.Data.DynamicFormFieldInfo", b => { b.Property("FieldId") .ValueGeneratedOnAdd() .HasColumnType("bigint"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("FieldId")); b.Property("Creator") .HasColumnType("uuid"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("FieldCode") .HasColumnType("text"); b.Property("FieldCreateDate") .HasColumnType("timestamp with time zone"); b.Property("FieldEditDate") .HasColumnType("timestamp with time zone"); b.Property("FieldI18nKey") .HasColumnType("text"); b.Property("FieldMaxLength") .HasColumnType("integer"); b.Property("FieldName") .HasColumnType("text"); b.Property("FieldPattern") .HasColumnType("text"); b.Property("FieldPocoTypeName") .HasColumnType("text"); b.Property("FieldStatus") .HasColumnType("integer"); b.Property("FieldUIElement") .HasColumnType("bigint"); b.Property("FieldUIElementSchema") .HasColumnType("text"); b.Property("FieldUnit") .HasColumnType("text"); b.Property("FieldValue") .HasColumnType("text"); b.Property("FieldValueDataSource") .HasColumnType("text"); b.Property("FieldValueLocalDataSource") .HasColumnType("text"); b.Property("FieldValueType") .HasColumnType("integer"); b.Property("FieldValueTypeName") .HasColumnType("text"); b.Property("FormId") .HasColumnType("bigint"); b.Property("IsEnabled") .HasColumnType("boolean"); b.Property("IsRequired") .HasColumnType("boolean"); b.Property("TenantId") .HasColumnType("uuid"); b.HasKey("FieldId"); b.HasIndex("CustomerId"); b.HasIndex("TenantId"); b.ToTable("DynamicFormFieldInfos"); }); modelBuilder.Entity("IoTSharp.Data.DynamicFormFieldValueInfo", b => { b.Property("FieldValueId") .ValueGeneratedOnAdd() .HasColumnType("bigint"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("FieldValueId")); b.Property("BizId") .HasColumnType("bigint"); b.Property("Creator") .HasColumnType("uuid"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("FieldCode") .HasColumnType("text"); b.Property("FieldCreateDate") .HasColumnType("timestamp with time zone"); b.Property("FieldId") .HasColumnType("bigint"); b.Property("FieldName") .HasColumnType("text"); b.Property("FieldUnit") .HasColumnType("text"); b.Property("FieldValue") .HasColumnType("text"); b.Property("FieldValueType") .HasColumnType("bigint"); b.Property("FromId") .HasColumnType("bigint"); b.Property("TenantId") .HasColumnType("uuid"); b.HasKey("FieldValueId"); b.HasIndex("CustomerId"); b.HasIndex("TenantId"); b.ToTable("DynamicFormFieldValueInfos"); }); modelBuilder.Entity("IoTSharp.Data.DynamicFormInfo", b => { b.Property("FormId") .ValueGeneratedOnAdd() .HasColumnType("bigint"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("FormId")); b.Property("BizId") .HasColumnType("bigint"); b.Property("Creator") .HasColumnType("uuid"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("FormCreator") .HasColumnType("bigint"); b.Property("FormDesc") .HasColumnType("text"); b.Property("FormLayout") .HasColumnType("text"); b.Property("FormName") .HasColumnType("text"); b.Property("FormSchame") .HasColumnType("text"); b.Property("FormStatus") .HasColumnType("integer"); b.Property("FromCreateDate") .HasColumnType("timestamp with time zone"); b.Property("IsCompact") .HasColumnType("boolean"); b.Property("ModelClass") .HasColumnType("text"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("Url") .HasColumnType("text"); b.HasKey("FormId"); b.HasIndex("CustomerId"); b.HasIndex("TenantId"); b.ToTable("DynamicFormInfos"); }); modelBuilder.Entity("IoTSharp.Data.Flow", b => { b.Property("FlowId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Conditionexpression") .HasColumnType("text"); b.Property("CreateDate") .HasColumnType("timestamp with time zone"); b.Property("CreateId") .HasColumnType("uuid"); b.Property("Createor") .HasColumnType("uuid"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("ExecutorId") .HasColumnType("uuid"); b.Property("FlowRuleRuleId") .HasColumnType("uuid"); b.Property("FlowStatus") .HasColumnType("integer"); b.Property("FlowType") .HasColumnType("text"); b.Property("Flowdesc") .HasColumnType("text"); b.Property("Flowname") .HasColumnType("text"); b.Property("Incoming") .HasColumnType("text"); b.Property("NodeProcessClass") .HasColumnType("text"); b.Property("NodeProcessMethod") .HasColumnType("text"); b.Property("NodeProcessParams") .HasColumnType("text"); b.Property("NodeProcessScript") .HasColumnType("text"); b.Property("NodeProcessScriptType") .HasColumnType("text"); b.Property("NodeProcessType") .HasColumnType("text"); b.Property("ObjectId") .HasColumnType("text"); b.Property("Outgoing") .HasColumnType("text"); b.Property("SourceId") .HasColumnType("text"); b.Property("TargetId") .HasColumnType("text"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("TestStatus") .HasColumnType("integer"); b.Property("Tester") .HasColumnType("uuid"); b.Property("TesterDateTime") .HasColumnType("timestamp with time zone"); b.Property("bpmnid") .HasColumnType("text"); b.HasKey("FlowId"); b.HasIndex("CustomerId"); b.HasIndex("ExecutorId"); b.HasIndex("FlowRuleRuleId"); b.HasIndex("TenantId"); b.ToTable("Flows"); }); modelBuilder.Entity("IoTSharp.Data.FlowOperation", b => { b.Property("OperationId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AddDate") .HasColumnType("timestamp with time zone"); b.Property("BaseEventEventId") .HasColumnType("uuid"); b.Property("BizId") .HasColumnType("text"); b.Property("Data") .HasColumnType("text"); b.Property("FlowId") .HasColumnType("uuid"); b.Property("FlowRuleRuleId") .HasColumnType("uuid"); b.Property("NodeStatus") .HasColumnType("integer"); b.Property("OperationDesc") .HasColumnType("text"); b.Property("Step") .HasColumnType("integer"); b.Property("Tag") .HasColumnType("text"); b.Property("bpmnid") .HasColumnType("text"); b.HasKey("OperationId"); b.HasIndex("BaseEventEventId"); b.HasIndex("FlowId"); b.HasIndex("FlowRuleRuleId"); b.ToTable("FlowOperations"); }); modelBuilder.Entity("IoTSharp.Data.FlowRule", b => { b.Property("RuleId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatTime") .HasColumnType("timestamp with time zone"); b.Property("CreateId") .HasColumnType("uuid"); b.Property("Creator") .HasColumnType("text"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("DefinitionsXml") .HasColumnType("text"); b.Property("Describes") .HasColumnType("text"); b.Property("ExecutableCode") .HasColumnType("text"); b.Property("MountType") .HasColumnType("integer"); b.Property("Name") .IsRequired() .HasColumnType("text"); b.Property("ParentRuleId") .HasColumnType("uuid"); b.Property("RuleDesc") .HasColumnType("text"); b.Property("RuleStatus") .HasColumnType("integer"); b.Property("RuleType") .HasColumnType("integer"); b.Property("Runner") .HasColumnType("text"); b.Property("SubVersion") .HasColumnType("double precision"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("Version") .HasColumnType("double precision"); b.HasKey("RuleId"); b.HasIndex("CustomerId"); b.HasIndex("TenantId"); b.ToTable("FlowRules"); }); modelBuilder.Entity("IoTSharp.Data.RefreshToken", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AddedDate") .HasColumnType("timestamp with time zone"); b.Property("ExpiryDate") .HasColumnType("timestamp with time zone"); b.Property("IsRevorked") .HasColumnType("boolean"); b.Property("IsUsed") .HasColumnType("boolean"); b.Property("JwtId") .HasColumnType("text"); b.Property("Token") .HasColumnType("text"); b.Property("UserId") .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("RefreshTokens"); }); modelBuilder.Entity("IoTSharp.Data.Relationship", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("IdentityUserId") .HasColumnType("text"); b.Property("TenantId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("CustomerId"); b.HasIndex("IdentityUserId"); b.HasIndex("TenantId"); b.ToTable("Relationship"); }); modelBuilder.Entity("IoTSharp.Data.RuleTaskExecutor", b => { b.Property("ExecutorId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AddDateTime") .HasColumnType("timestamp with time zone"); b.Property("Creator") .HasColumnType("uuid"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("DefaultConfig") .HasColumnType("text"); b.Property("ExecutorDesc") .HasColumnType("text"); b.Property("ExecutorName") .HasColumnType("text"); b.Property("ExecutorStatus") .HasColumnType("integer"); b.Property("MataData") .HasColumnType("text"); b.Property("Path") .HasColumnType("text"); b.Property("Tag") .HasColumnType("text"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("TestStatus") .HasColumnType("integer"); b.Property("Tester") .HasColumnType("uuid"); b.Property("TesterDateTime") .HasColumnType("timestamp with time zone"); b.Property("TypeName") .HasColumnType("text"); b.HasKey("ExecutorId"); b.HasIndex("CustomerId"); b.HasIndex("TenantId"); b.ToTable("RuleTaskExecutors"); }); modelBuilder.Entity("IoTSharp.Data.SubscriptionEvent", b => { b.Property("EventId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreateDateTime") .HasColumnType("timestamp with time zone"); b.Property("Creator") .HasColumnType("uuid"); b.Property("CustomerId") .HasColumnType("uuid"); b.Property("EventDesc") .HasColumnType("text"); b.Property("EventName") .HasColumnType("text"); b.Property("EventNameSpace") .HasColumnType("text"); b.Property("EventParam") .HasColumnType("text"); b.Property("EventStatus") .HasColumnType("integer"); b.Property("EventTag") .HasColumnType("text"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("Type") .HasColumnType("integer"); b.HasKey("EventId"); b.HasIndex("CustomerId"); b.HasIndex("TenantId"); b.ToTable("SubscriptionEvents"); }); modelBuilder.Entity("IoTSharp.Data.SubscriptionTask", b => { b.Property("BindId") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("EventId") .HasColumnType("uuid"); b.Property("RuleTaskExecutorExecutorId") .HasColumnType("uuid"); b.Property("Status") .HasColumnType("integer"); b.Property("SubscriptionEventId") .HasColumnType("uuid"); b.Property("TaskConfig") .HasColumnType("text"); b.HasKey("BindId"); b.HasIndex("RuleTaskExecutorExecutorId"); b.HasIndex("SubscriptionEventId"); b.ToTable("SubscriptionTasks"); }); modelBuilder.Entity("IoTSharp.Data.TelemetryData", b => { b.Property("DeviceId") .HasColumnType("uuid") .HasColumnOrder(1); b.Property("KeyName") .HasColumnType("text") .HasColumnOrder(2); b.Property("DateTime") .HasColumnType("timestamp with time zone") .HasColumnOrder(3); b.Property("DataSide") .HasColumnType("integer") .HasColumnOrder(4); b.Property("Type") .HasColumnType("integer") .HasColumnOrder(5); b.Property("Value_Binary") .HasColumnType("bytea"); b.Property("Value_Boolean") .HasColumnType("boolean"); b.Property("Value_DateTime") .HasColumnType("timestamp with time zone"); b.Property("Value_Double") .HasColumnType("double precision"); b.Property("Value_Json") .HasColumnType("jsonb"); b.Property("Value_Long") .HasColumnType("bigint"); b.Property("Value_String") .HasColumnType("text"); b.Property("Value_XML") .HasColumnType("xml"); b.HasKey("DeviceId", "KeyName", "DateTime"); b.HasIndex("DeviceId"); b.HasIndex("KeyName"); b.HasIndex("DeviceId", "KeyName"); b.ToTable("TelemetryData"); }); modelBuilder.Entity("IoTSharp.Data.Tenant", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Address") .HasColumnType("text"); b.Property("City") .HasColumnType("text"); b.Property("Country") .HasColumnType("text"); b.Property("EMail") .HasColumnType("text"); b.Property("Name") .HasColumnType("text"); b.Property("Phone") .HasColumnType("text"); b.Property("Province") .HasColumnType("text"); b.Property("Street") .HasColumnType("text"); b.Property("ZipCode") .HasColumnType("integer"); b.HasKey("Id"); b.ToTable("Tenant"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => { b.Property("Id") .HasColumnType("text"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("text"); b.Property("Name") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("NormalizedName") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() .HasDatabaseName("RoleNameIndex"); b.ToTable("AspNetRoles", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ClaimType") .HasColumnType("text"); b.Property("ClaimValue") .HasColumnType("text"); b.Property("RoleId") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("RoleId"); b.ToTable("AspNetRoleClaims", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b => { b.Property("Id") .HasColumnType("text"); b.Property("AccessFailedCount") .HasColumnType("integer"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("text"); b.Property("Email") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("EmailConfirmed") .HasColumnType("boolean"); b.Property("LockoutEnabled") .HasColumnType("boolean"); b.Property("LockoutEnd") .HasColumnType("timestamp with time zone"); b.Property("NormalizedEmail") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("NormalizedUserName") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("PasswordHash") .HasColumnType("text"); b.Property("PhoneNumber") .HasColumnType("text"); b.Property("PhoneNumberConfirmed") .HasColumnType("boolean"); b.Property("SecurityStamp") .HasColumnType("text"); b.Property("TwoFactorEnabled") .HasColumnType("boolean"); b.Property("UserName") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.HasKey("Id"); b.HasIndex("NormalizedEmail") .HasDatabaseName("EmailIndex"); b.HasIndex("NormalizedUserName") .IsUnique() .HasDatabaseName("UserNameIndex"); b.ToTable("AspNetUsers", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ClaimType") .HasColumnType("text"); b.Property("ClaimValue") .HasColumnType("text"); b.Property("UserId") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("AspNetUserClaims", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { b.Property("LoginProvider") .HasColumnType("text"); b.Property("ProviderKey") .HasColumnType("text"); b.Property("ProviderDisplayName") .HasColumnType("text"); b.Property("UserId") .IsRequired() .HasColumnType("text"); b.HasKey("LoginProvider", "ProviderKey"); b.HasIndex("UserId"); b.ToTable("AspNetUserLogins", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.Property("UserId") .HasColumnType("text"); b.Property("RoleId") .HasColumnType("text"); b.HasKey("UserId", "RoleId"); b.HasIndex("RoleId"); b.ToTable("AspNetUserRoles", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.Property("UserId") .HasColumnType("text"); b.Property("LoginProvider") .HasColumnType("text"); b.Property("Name") .HasColumnType("text"); b.Property("Value") .HasColumnType("text"); b.HasKey("UserId", "LoginProvider", "Name"); b.ToTable("AspNetUserTokens", (string)null); }); modelBuilder.Entity("IoTSharp.Data.AttributeLatest", b => { b.HasBaseType("IoTSharp.Data.DataStorage"); b.HasDiscriminator().HasValue(2); }); modelBuilder.Entity("IoTSharp.Data.Gateway", b => { b.HasBaseType("IoTSharp.Data.Device"); b.HasDiscriminator().HasValue(1); }); modelBuilder.Entity("IoTSharp.Data.TelemetryLatest", b => { b.HasBaseType("IoTSharp.Data.DataStorage"); b.HasDiscriminator().HasValue(4); }); modelBuilder.Entity("IoTSharp.Data.AuditLog", b => { b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.AuthorizedKey", b => { b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.BaseEvent", b => { b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId"); b.HasOne("IoTSharp.Data.FlowRule", "FlowRule") .WithMany() .HasForeignKey("FlowRuleRuleId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("FlowRule"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.Customer", b => { b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany("Customers") .HasForeignKey("TenantId"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.Device", b => { b.HasOne("IoTSharp.Data.AuthorizedKey", null) .WithMany("Devices") .HasForeignKey("AuthorizedKeyId"); b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany("Devices") .HasForeignKey("CustomerId"); b.HasOne("IoTSharp.Data.DeviceModel", "DeviceModel") .WithMany() .HasForeignKey("DeviceModelId"); b.HasOne("IoTSharp.Data.Gateway", "Owner") .WithMany("Children") .HasForeignKey("OwnerId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany("Devices") .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("DeviceModel"); b.Navigation("Owner"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.DeviceDiagram", b => { b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.DeviceGraph", b => { b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId"); b.HasOne("IoTSharp.Data.DeviceDiagram", "DeviceDiagram") .WithMany() .HasForeignKey("DeviceDiagramDiagramId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("DeviceDiagram"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.DeviceGraphToolBox", b => { b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.DeviceIdentity", b => { b.HasOne("IoTSharp.Data.Device", "Device") .WithOne("DeviceIdentity") .HasForeignKey("IoTSharp.Data.DeviceIdentity", "DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); }); modelBuilder.Entity("IoTSharp.Data.DeviceModelCommand", b => { b.HasOne("IoTSharp.Data.DeviceModel", "DeviceModel") .WithMany("DeviceModelCommands") .HasForeignKey("DeviceModelId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("DeviceModel"); }); modelBuilder.Entity("IoTSharp.Data.DeviceRule", b => { b.HasOne("IoTSharp.Data.Device", "Device") .WithMany() .HasForeignKey("DeviceId"); b.HasOne("IoTSharp.Data.FlowRule", "FlowRule") .WithMany() .HasForeignKey("FlowRuleRuleId"); b.Navigation("Device"); b.Navigation("FlowRule"); }); modelBuilder.Entity("IoTSharp.Data.DynamicFormFieldInfo", b => { b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.DynamicFormFieldValueInfo", b => { b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.DynamicFormInfo", b => { b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.Flow", b => { b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId"); b.HasOne("IoTSharp.Data.RuleTaskExecutor", "Executor") .WithMany() .HasForeignKey("ExecutorId"); b.HasOne("IoTSharp.Data.FlowRule", "FlowRule") .WithMany() .HasForeignKey("FlowRuleRuleId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("Executor"); b.Navigation("FlowRule"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.FlowOperation", b => { b.HasOne("IoTSharp.Data.BaseEvent", "BaseEvent") .WithMany() .HasForeignKey("BaseEventEventId"); b.HasOne("IoTSharp.Data.Flow", "Flow") .WithMany() .HasForeignKey("FlowId"); b.HasOne("IoTSharp.Data.FlowRule", "FlowRule") .WithMany() .HasForeignKey("FlowRuleRuleId"); b.Navigation("BaseEvent"); b.Navigation("Flow"); b.Navigation("FlowRule"); }); modelBuilder.Entity("IoTSharp.Data.FlowRule", b => { b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.RefreshToken", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", "User") .WithMany() .HasForeignKey("UserId"); b.Navigation("User"); }); modelBuilder.Entity("IoTSharp.Data.Relationship", b => { b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId"); b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", "IdentityUser") .WithMany() .HasForeignKey("IdentityUserId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("IdentityUser"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.RuleTaskExecutor", b => { b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.SubscriptionEvent", b => { b.HasOne("IoTSharp.Data.Customer", "Customer") .WithMany() .HasForeignKey("CustomerId"); b.HasOne("IoTSharp.Data.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId"); b.Navigation("Customer"); b.Navigation("Tenant"); }); modelBuilder.Entity("IoTSharp.Data.SubscriptionTask", b => { b.HasOne("IoTSharp.Data.RuleTaskExecutor", "RuleTaskExecutor") .WithMany() .HasForeignKey("RuleTaskExecutorExecutorId"); b.HasOne("IoTSharp.Data.SubscriptionEvent", "Subscription") .WithMany() .HasForeignKey("SubscriptionEventId"); b.Navigation("RuleTaskExecutor"); b.Navigation("Subscription"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("IoTSharp.Data.AuthorizedKey", b => { b.Navigation("Devices"); }); modelBuilder.Entity("IoTSharp.Data.Customer", b => { b.Navigation("Devices"); }); modelBuilder.Entity("IoTSharp.Data.Device", b => { b.Navigation("DeviceIdentity"); }); modelBuilder.Entity("IoTSharp.Data.DeviceModel", b => { b.Navigation("DeviceModelCommands"); }); modelBuilder.Entity("IoTSharp.Data.Tenant", b => { b.Navigation("Customers"); b.Navigation("Devices"); }); modelBuilder.Entity("IoTSharp.Data.Gateway", b => { b.Navigation("Children"); }); #pragma warning restore 612, 618 } } }