提交 2567751f 编写于 作者: 麦壳饼's avatar 麦壳饼

Merge branch 'master' of https://github.com/IoTSharp/IoTSharp

{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "6.0.8",
"commands": [
"dotnet-ef"
]
}
}
}
\ No newline at end of file
......@@ -5,6 +5,7 @@ using IoTSharp.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Linq;
namespace Microsoft.Extensions.DependencyInjection
{
......@@ -32,5 +33,17 @@ namespace Microsoft.Extensions.DependencyInjection
builder.AddDataSource(connectionString, ReadWriteType.Read | ReadWriteType.Write, DatabaseType.SQLite);
builder.SetDateSharding<TelemetryData>(nameof(TelemetryData.DateTime), expandBy, DateTime.Now);
}
public static void SetCaseInsensitiveSearchesForSQLite(this ModelBuilder modelBuilder)
{
modelBuilder.UseCollation("NOCASE");
foreach (var property in modelBuilder.Model.GetEntityTypes()
.SelectMany(t => t.GetProperties())
.Where(p => p.ClrType == typeof(string)))
{
property.SetCollation("NOCASE");
}
}
}
}
......@@ -11,13 +11,15 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace IoTSharp.Data.Sqlite.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20220808144703_CreateIdentitySchema")]
[Migration("20220812062443_CreateIdentitySchema")]
partial class CreateIdentitySchema
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.7");
modelBuilder
.UseCollation("NOCASE")
.HasAnnotation("ProductVersion", "6.0.7");
modelBuilder.Entity("IoTSharp.Data.Alarm", b =>
{
......@@ -29,13 +31,15 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("AlarmDetail")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("AlarmStatus")
.HasColumnType("INTEGER");
b.Property<string>("AlarmType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<DateTime>("ClearDateTime")
.HasColumnType("TEXT");
......@@ -80,16 +84,19 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("AssetType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("CustomerId")
.HasColumnType("TEXT");
b.Property<string>("Description")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Name")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -116,16 +123,19 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("Description")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid>("DeviceId")
.HasColumnType("TEXT");
b.Property<string>("KeyName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Name")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -141,13 +151,16 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("ActionData")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ActionName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ActionResult")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<DateTime>("ActiveDateTime")
.HasColumnType("TEXT");
......@@ -159,7 +172,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("ObjectName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("ObjectType")
.HasColumnType("INTEGER");
......@@ -168,10 +182,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("UserId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("UserName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -189,13 +205,15 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("AuthToken")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("CustomerId")
.HasColumnType("TEXT");
b.Property<string>("Name")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -216,40 +234,49 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("Dictionary18NKeyName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryColor")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<long?>("DictionaryGroupId")
.HasColumnType("INTEGER");
b.Property<string>("DictionaryIcon")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryPattern")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int?>("DictionaryStatus")
.HasColumnType("INTEGER");
b.Property<string>("DictionaryTag")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryValue")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int?>("DictionaryValueType")
.HasColumnType("INTEGER");
b.Property<string>("DictionaryValueTypeName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("DictionaryId");
......@@ -263,16 +290,20 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("DictionaryGroup18NKeyName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryGroupDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryGroupKey")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryGroupName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int?>("DictionaryGroupStatus")
.HasColumnType("INTEGER");
......@@ -281,7 +312,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("DictionaryGroupValueTypeName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("DictionaryGroupId");
......@@ -295,10 +327,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("BizData")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Bizid")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<DateTime>("CreaterDateTime")
.HasColumnType("TEXT");
......@@ -310,10 +344,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("EventDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("EventName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("EventStaus")
.HasColumnType("INTEGER");
......@@ -322,7 +358,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("MataData")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -351,10 +388,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("KeyName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ResouceDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int?>("ResouceGroupId")
.HasColumnType("INTEGER");
......@@ -363,10 +402,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("ResourceKey")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ResourceTag")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int?>("ResourceType")
.HasColumnType("INTEGER");
......@@ -378,85 +419,112 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("ValueBG")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueCS")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueDA")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueDEDE")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueELGR")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueENGR")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueENUS")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueESES")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueFI")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueFRFR")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueHE")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueHRHR")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueHU")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueITIT")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueJAJP")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueKOKR")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueNL")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValuePLPL")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValuePT")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueSLSL")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueSR")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueSV")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueTRTR")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueUK")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueVI")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueZHCN")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueZHTW")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -470,28 +538,36 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("Address")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("City")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Country")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Email")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Name")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Phone")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Province")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Street")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -518,7 +594,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
b.Property<string>("KeyName")
.HasColumnType("TEXT")
.HasColumnOrder(2);
.HasColumnOrder(2)
.UseCollation("NOCASE");
b.Property<int>("DataSide")
.HasColumnType("INTEGER")
......@@ -545,16 +622,19 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("REAL");
b.Property<string>("Value_Json")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<long?>("Value_Long")
.HasColumnType("INTEGER");
b.Property<string>("Value_String")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Value_XML")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Catalog", "DeviceId", "KeyName");
......@@ -589,7 +669,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("Name")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<bool>("Online")
.HasColumnType("INTEGER");
......@@ -639,13 +720,16 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("DiagramDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DiagramImage")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DiagramName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("DiagramStatus")
.HasColumnType("INTEGER");
......@@ -687,10 +771,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("GraphElementId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("GraphFill")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("GraphHeight")
.HasColumnType("INTEGER");
......@@ -702,22 +788,27 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("GraphShape")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("GraphStroke")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("GraphStrokeWidth")
.HasColumnType("INTEGER");
b.Property<string>("GraphTextAnchor")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("GraphTextFill")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("GraphTextFontFamily")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("GraphTextFontSize")
.HasColumnType("INTEGER");
......@@ -729,7 +820,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("GraphTextVerticalAnchor")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("GraphWidth")
.HasColumnType("INTEGER");
......@@ -755,10 +847,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("CommondParam")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("CommondType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<DateTime?>("CreateDate")
.HasColumnType("TEXT");
......@@ -776,10 +870,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("ToolBoxIcon")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ToolBoxName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("ToolBoxOffsetLeftPer")
.HasColumnType("INTEGER");
......@@ -794,13 +890,15 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("ToolBoxRequestUri")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("ToolBoxStatus")
.HasColumnType("INTEGER");
b.Property<string>("ToolBoxType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("ToolBoxId");
......@@ -822,13 +920,15 @@ namespace IoTSharp.Data.Sqlite.Migrations
b.Property<string>("IdentityId")
.IsRequired()
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("IdentityType")
.HasColumnType("INTEGER");
b.Property<string>("IdentityValue")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -851,10 +951,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("ModelDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ModelName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("ModelStatus")
.HasColumnType("INTEGER");
......@@ -871,22 +973,27 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("CommandI18N")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("CommandName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("CommandParams")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("CommandStatus")
.HasColumnType("INTEGER");
b.Property<string>("CommandTemplate")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("CommandTitle")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("CommandType")
.HasColumnType("INTEGER");
......@@ -923,19 +1030,23 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("PortDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("PortElementId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("PortName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("PortPhyType")
.HasColumnType("INTEGER");
b.Property<string>("PortPic")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("PortStatus")
.HasColumnType("INTEGER");
......@@ -970,19 +1081,23 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("SourceElementId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("SourceId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("TargeId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid>("TargetDeviceId")
.HasColumnType("TEXT");
b.Property<string>("TargetElementId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("MappingId");
......@@ -1032,7 +1147,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("FieldCode")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<DateTime?>("FieldCreateDate")
.HasColumnType("TEXT");
......@@ -1041,19 +1157,23 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("FieldI18nKey")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("FieldMaxLength")
.HasColumnType("INTEGER");
b.Property<string>("FieldName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldPattern")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldPocoTypeName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("FieldStatus")
.HasColumnType("INTEGER");
......@@ -1062,25 +1182,31 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("FieldUIElementSchema")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldUnit")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldValue")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldValueDataSource")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldValueLocalDataSource")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("FieldValueType")
.HasColumnType("INTEGER");
b.Property<string>("FieldValueTypeName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<long>("FormId")
.HasColumnType("INTEGER");
......@@ -1119,7 +1245,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("FieldCode")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<DateTime?>("FieldCreateDate")
.HasColumnType("TEXT");
......@@ -1128,13 +1255,16 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("FieldName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldUnit")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldValue")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<long>("FieldValueType")
.HasColumnType("INTEGER");
......@@ -1173,16 +1303,20 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("FormDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FormLayout")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FormName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FormSchame")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("FormStatus")
.HasColumnType("INTEGER");
......@@ -1194,13 +1328,15 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("ModelClass")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
b.Property<string>("Url")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("FormId");
......@@ -1218,7 +1354,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("Conditionexpression")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<DateTime>("CreateDate")
.HasColumnType("TEXT");
......@@ -1242,46 +1379,60 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("FlowType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Flowdesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Flowname")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Incoming")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NodeProcessClass")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NodeProcessMethod")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NodeProcessParams")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NodeProcessScript")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NodeProcessScriptType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NodeProcessType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ObjectId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Outgoing")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("SourceId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("TargetId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -1296,7 +1447,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("bpmnid")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("FlowId");
......@@ -1324,10 +1476,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("BizId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Data")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("FlowId")
.HasColumnType("TEXT");
......@@ -1339,16 +1493,19 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("OperationDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("Step")
.HasColumnType("INTEGER");
b.Property<string>("Tag")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("bpmnid")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("OperationId");
......@@ -1374,32 +1531,38 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("Creator")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("CustomerId")
.HasColumnType("TEXT");
b.Property<string>("DefinitionsXml")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Describes")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ExecutableCode")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("MountType")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid>("ParentRuleId")
.HasColumnType("TEXT");
b.Property<string>("RuleDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int?>("RuleStatus")
.HasColumnType("INTEGER");
......@@ -1408,7 +1571,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("Runner")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<double>("SubVersion")
.HasColumnType("REAL");
......@@ -1447,13 +1611,16 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("JwtId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Token")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("UserId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -1472,7 +1639,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("IdentityUserId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -1504,25 +1672,31 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("DefaultConfig")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ExecutorDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ExecutorName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("ExecutorStatus")
.HasColumnType("INTEGER");
b.Property<string>("MataData")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Path")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Tag")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -1537,7 +1711,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("TypeName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("ExecutorId");
......@@ -1564,22 +1739,27 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("EventDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("EventName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("EventNameSpace")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("EventParam")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("EventStatus")
.HasColumnType("INTEGER");
b.Property<string>("EventTag")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -1615,7 +1795,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("TaskConfig")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("BindId");
......@@ -1634,7 +1815,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
b.Property<string>("KeyName")
.HasColumnType("TEXT")
.HasColumnOrder(2);
.HasColumnOrder(2)
.UseCollation("NOCASE");
b.Property<DateTime>("DateTime")
.HasColumnType("TEXT")
......@@ -1661,16 +1843,19 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("REAL");
b.Property<string>("Value_Json")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<long?>("Value_Long")
.HasColumnType("INTEGER");
b.Property<string>("Value_String")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Value_XML")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("DeviceId", "KeyName", "DateTime");
......@@ -1690,28 +1875,36 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("Address")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("City")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Country")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("EMail")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Name")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Phone")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Province")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Street")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("ZipCode")
.HasColumnType("INTEGER");
......@@ -1724,19 +1917,23 @@ namespace IoTSharp.Data.Sqlite.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
{
b.Property<string>("Id")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Name")
.HasMaxLength(256)
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NormalizedName")
.HasMaxLength(256)
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -1754,14 +1951,17 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("ClaimType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ClaimValue")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("RoleId")
.IsRequired()
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -1773,18 +1973,21 @@ namespace IoTSharp.Data.Sqlite.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b =>
{
b.Property<string>("Id")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("AccessFailedCount")
.HasColumnType("INTEGER");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Email")
.HasMaxLength(256)
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<bool>("EmailConfirmed")
.HasColumnType("INTEGER");
......@@ -1797,30 +2000,36 @@ namespace IoTSharp.Data.Sqlite.Migrations
b.Property<string>("NormalizedEmail")
.HasMaxLength(256)
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NormalizedUserName")
.HasMaxLength(256)
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("PasswordHash")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("PhoneNumber")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<bool>("PhoneNumberConfirmed")
.HasColumnType("INTEGER");
b.Property<string>("SecurityStamp")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<bool>("TwoFactorEnabled")
.HasColumnType("INTEGER");
b.Property<string>("UserName")
.HasMaxLength(256)
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -1841,14 +2050,17 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("ClaimType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ClaimValue")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -1860,17 +2072,21 @@ namespace IoTSharp.Data.Sqlite.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
b.Property<string>("LoginProvider")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ProviderKey")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ProviderDisplayName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("LoginProvider", "ProviderKey");
......@@ -1882,10 +2098,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
{
b.Property<string>("UserId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("RoleId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("UserId", "RoleId");
......@@ -1897,16 +2115,20 @@ namespace IoTSharp.Data.Sqlite.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.Property<string>("UserId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("LoginProvider")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Name")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Value")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("UserId", "LoginProvider", "Name");
......
......@@ -13,10 +13,10 @@ namespace IoTSharp.Data.Sqlite.Migrations
name: "AspNetRoles",
columns: table => new
{
Id = table.Column<string>(type: "TEXT", nullable: false),
Name = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
NormalizedName = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
ConcurrencyStamp = table.Column<string>(type: "TEXT", nullable: true)
Id = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE"),
Name = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true, collation: "NOCASE"),
NormalizedName = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true, collation: "NOCASE"),
ConcurrencyStamp = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE")
},
constraints: table =>
{
......@@ -27,16 +27,16 @@ namespace IoTSharp.Data.Sqlite.Migrations
name: "AspNetUsers",
columns: table => new
{
Id = table.Column<string>(type: "TEXT", nullable: false),
UserName = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
NormalizedUserName = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
Email = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
NormalizedEmail = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
Id = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE"),
UserName = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true, collation: "NOCASE"),
NormalizedUserName = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true, collation: "NOCASE"),
Email = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true, collation: "NOCASE"),
NormalizedEmail = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true, collation: "NOCASE"),
EmailConfirmed = table.Column<bool>(type: "INTEGER", nullable: false),
PasswordHash = table.Column<string>(type: "TEXT", nullable: true),
SecurityStamp = table.Column<string>(type: "TEXT", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "TEXT", nullable: true),
PhoneNumber = table.Column<string>(type: "TEXT", nullable: true),
PasswordHash = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
SecurityStamp = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ConcurrencyStamp = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
PhoneNumber = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
PhoneNumberConfirmed = table.Column<bool>(type: "INTEGER", nullable: false),
TwoFactorEnabled = table.Column<bool>(type: "INTEGER", nullable: false),
LockoutEnd = table.Column<DateTimeOffset>(type: "TEXT", nullable: true),
......@@ -54,18 +54,18 @@ namespace IoTSharp.Data.Sqlite.Migrations
{
DictionaryId = table.Column<long>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
DictionaryName = table.Column<string>(type: "TEXT", nullable: true),
DictionaryValue = table.Column<string>(type: "TEXT", nullable: true),
Dictionary18NKeyName = table.Column<string>(type: "TEXT", nullable: true),
DictionaryName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DictionaryValue = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Dictionary18NKeyName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DictionaryStatus = table.Column<int>(type: "INTEGER", nullable: true),
DictionaryValueType = table.Column<int>(type: "INTEGER", nullable: true),
DictionaryValueTypeName = table.Column<string>(type: "TEXT", nullable: true),
DictionaryValueTypeName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DictionaryGroupId = table.Column<long>(type: "INTEGER", nullable: true),
DictionaryPattern = table.Column<string>(type: "TEXT", nullable: true),
DictionaryDesc = table.Column<string>(type: "TEXT", nullable: true),
DictionaryColor = table.Column<string>(type: "TEXT", nullable: true),
DictionaryIcon = table.Column<string>(type: "TEXT", nullable: true),
DictionaryTag = table.Column<string>(type: "TEXT", nullable: true)
DictionaryPattern = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DictionaryDesc = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DictionaryColor = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DictionaryIcon = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DictionaryTag = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE")
},
constraints: table =>
{
......@@ -78,13 +78,13 @@ namespace IoTSharp.Data.Sqlite.Migrations
{
DictionaryGroupId = table.Column<long>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
DictionaryGroupName = table.Column<string>(type: "TEXT", nullable: true),
DictionaryGroupKey = table.Column<string>(type: "TEXT", nullable: true),
DictionaryGroupName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DictionaryGroupKey = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DictionaryGroupValueType = table.Column<int>(type: "INTEGER", nullable: true),
DictionaryGroupStatus = table.Column<int>(type: "INTEGER", nullable: true),
DictionaryGroupValueTypeName = table.Column<string>(type: "TEXT", nullable: true),
DictionaryGroupDesc = table.Column<string>(type: "TEXT", nullable: true),
DictionaryGroup18NKeyName = table.Column<string>(type: "TEXT", nullable: true)
DictionaryGroupValueTypeName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DictionaryGroupDesc = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DictionaryGroup18NKeyName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE")
},
constraints: table =>
{
......@@ -99,39 +99,39 @@ namespace IoTSharp.Data.Sqlite.Migrations
.Annotation("Sqlite:Autoincrement", true),
UserId = table.Column<Guid>(type: "TEXT", nullable: false),
Status = table.Column<int>(type: "INTEGER", nullable: false),
KeyName = table.Column<string>(type: "TEXT", nullable: true),
ValueBG = table.Column<string>(type: "TEXT", nullable: true),
ValueCS = table.Column<string>(type: "TEXT", nullable: true),
ValueDA = table.Column<string>(type: "TEXT", nullable: true),
ValueDEDE = table.Column<string>(type: "TEXT", nullable: true),
ValueESES = table.Column<string>(type: "TEXT", nullable: true),
ValueENUS = table.Column<string>(type: "TEXT", nullable: true),
ValueENGR = table.Column<string>(type: "TEXT", nullable: true),
ValueELGR = table.Column<string>(type: "TEXT", nullable: true),
ValueFI = table.Column<string>(type: "TEXT", nullable: true),
ValueFRFR = table.Column<string>(type: "TEXT", nullable: true),
ValueHE = table.Column<string>(type: "TEXT", nullable: true),
ValueHRHR = table.Column<string>(type: "TEXT", nullable: true),
ValueHU = table.Column<string>(type: "TEXT", nullable: true),
ValueITIT = table.Column<string>(type: "TEXT", nullable: true),
ValueJAJP = table.Column<string>(type: "TEXT", nullable: true),
ValueKOKR = table.Column<string>(type: "TEXT", nullable: true),
ValueNL = table.Column<string>(type: "TEXT", nullable: true),
ValuePLPL = table.Column<string>(type: "TEXT", nullable: true),
ValuePT = table.Column<string>(type: "TEXT", nullable: true),
ValueSLSL = table.Column<string>(type: "TEXT", nullable: true),
ValueTRTR = table.Column<string>(type: "TEXT", nullable: true),
ValueSR = table.Column<string>(type: "TEXT", nullable: true),
ValueSV = table.Column<string>(type: "TEXT", nullable: true),
ValueUK = table.Column<string>(type: "TEXT", nullable: true),
ValueVI = table.Column<string>(type: "TEXT", nullable: true),
ValueZHCN = table.Column<string>(type: "TEXT", nullable: true),
ValueZHTW = table.Column<string>(type: "TEXT", nullable: true),
KeyName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueBG = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueCS = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueDA = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueDEDE = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueESES = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueENUS = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueENGR = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueELGR = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueFI = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueFRFR = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueHE = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueHRHR = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueHU = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueITIT = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueJAJP = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueKOKR = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueNL = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValuePLPL = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValuePT = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueSLSL = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueTRTR = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueSR = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueSV = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueUK = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueVI = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueZHCN = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ValueZHTW = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ResourceType = table.Column<int>(type: "INTEGER", nullable: true),
ResourceId = table.Column<long>(type: "INTEGER", nullable: true),
ResourceKey = table.Column<string>(type: "TEXT", nullable: true),
ResourceTag = table.Column<string>(type: "TEXT", nullable: true),
ResouceDesc = table.Column<string>(type: "TEXT", nullable: true),
ResourceKey = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ResourceTag = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ResouceDesc = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ResouceGroupId = table.Column<int>(type: "INTEGER", nullable: true),
AddDate = table.Column<DateTime>(type: "TEXT", nullable: true)
},
......@@ -146,17 +146,17 @@ namespace IoTSharp.Data.Sqlite.Migrations
{
Catalog = table.Column<int>(type: "INTEGER", nullable: false),
DeviceId = table.Column<Guid>(type: "TEXT", nullable: false),
KeyName = table.Column<string>(type: "TEXT", nullable: false),
KeyName = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE"),
DateTime = table.Column<DateTime>(type: "TEXT", nullable: false),
DataSide = table.Column<int>(type: "INTEGER", nullable: false),
Type = table.Column<int>(type: "INTEGER", nullable: false),
Value_Boolean = table.Column<bool>(type: "INTEGER", nullable: true),
Value_String = table.Column<string>(type: "TEXT", nullable: true),
Value_String = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Value_Long = table.Column<long>(type: "INTEGER", nullable: true),
Value_DateTime = table.Column<DateTime>(type: "TEXT", nullable: true),
Value_Double = table.Column<double>(type: "REAL", nullable: true),
Value_Json = table.Column<string>(type: "TEXT", nullable: true),
Value_XML = table.Column<string>(type: "TEXT", nullable: true),
Value_Json = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Value_XML = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Value_Binary = table.Column<byte[]>(type: "BLOB", nullable: true)
},
constraints: table =>
......@@ -169,8 +169,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
DeviceModelId = table.Column<Guid>(type: "TEXT", nullable: false),
ModelName = table.Column<string>(type: "TEXT", nullable: true),
ModelDesc = table.Column<string>(type: "TEXT", nullable: true),
ModelName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ModelDesc = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ModelStatus = table.Column<int>(type: "INTEGER", nullable: false),
CreateDateTime = table.Column<DateTime>(type: "TEXT", nullable: false),
Creator = table.Column<Guid>(type: "TEXT", nullable: false)
......@@ -185,10 +185,10 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
MappingId = table.Column<Guid>(type: "TEXT", nullable: false),
SourceId = table.Column<string>(type: "TEXT", nullable: true),
TargeId = table.Column<string>(type: "TEXT", nullable: true),
SourceElementId = table.Column<string>(type: "TEXT", nullable: true),
TargetElementId = table.Column<string>(type: "TEXT", nullable: true),
SourceId = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
TargeId = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
SourceElementId = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
TargetElementId = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
CreateDate = table.Column<DateTime>(type: "TEXT", nullable: true),
Creator = table.Column<Guid>(type: "TEXT", nullable: false),
MappingStatus = table.Column<int>(type: "INTEGER", nullable: false),
......@@ -206,16 +206,16 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
PortId = table.Column<Guid>(type: "TEXT", nullable: false),
PortName = table.Column<string>(type: "TEXT", nullable: true),
PortDesc = table.Column<string>(type: "TEXT", nullable: true),
PortPic = table.Column<string>(type: "TEXT", nullable: true),
PortName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
PortDesc = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
PortPic = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
PortType = table.Column<int>(type: "INTEGER", nullable: false),
PortPhyType = table.Column<int>(type: "INTEGER", nullable: false),
PortStatus = table.Column<int>(type: "INTEGER", nullable: false),
DeviceId = table.Column<Guid>(type: "TEXT", nullable: false),
CreateDate = table.Column<DateTime>(type: "TEXT", nullable: true),
Creator = table.Column<long>(type: "INTEGER", nullable: false),
PortElementId = table.Column<string>(type: "TEXT", nullable: true)
PortElementId = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE")
},
constraints: table =>
{
......@@ -227,17 +227,17 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
DeviceId = table.Column<Guid>(type: "TEXT", nullable: false),
KeyName = table.Column<string>(type: "TEXT", nullable: false),
KeyName = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE"),
DateTime = table.Column<DateTime>(type: "TEXT", nullable: false),
DataSide = table.Column<int>(type: "INTEGER", nullable: false),
Type = table.Column<int>(type: "INTEGER", nullable: false),
Value_Boolean = table.Column<bool>(type: "INTEGER", nullable: true),
Value_String = table.Column<string>(type: "TEXT", nullable: true),
Value_String = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Value_Long = table.Column<long>(type: "INTEGER", nullable: true),
Value_DateTime = table.Column<DateTime>(type: "TEXT", nullable: true),
Value_Double = table.Column<double>(type: "REAL", nullable: true),
Value_Json = table.Column<string>(type: "TEXT", nullable: true),
Value_XML = table.Column<string>(type: "TEXT", nullable: true),
Value_Json = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Value_XML = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Value_Binary = table.Column<byte[]>(type: "BLOB", nullable: true)
},
constraints: table =>
......@@ -250,14 +250,14 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
Id = table.Column<Guid>(type: "TEXT", nullable: false),
Name = table.Column<string>(type: "TEXT", nullable: true),
EMail = table.Column<string>(type: "TEXT", nullable: true),
Phone = table.Column<string>(type: "TEXT", nullable: true),
Country = table.Column<string>(type: "TEXT", nullable: true),
Province = table.Column<string>(type: "TEXT", nullable: true),
City = table.Column<string>(type: "TEXT", nullable: true),
Street = table.Column<string>(type: "TEXT", nullable: true),
Address = table.Column<string>(type: "TEXT", nullable: true),
Name = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
EMail = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Phone = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Country = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Province = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
City = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Street = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Address = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ZipCode = table.Column<int>(type: "INTEGER", nullable: false)
},
constraints: table =>
......@@ -271,9 +271,9 @@ namespace IoTSharp.Data.Sqlite.Migrations
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
RoleId = table.Column<string>(type: "TEXT", nullable: false),
ClaimType = table.Column<string>(type: "TEXT", nullable: true),
ClaimValue = table.Column<string>(type: "TEXT", nullable: true)
RoleId = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE"),
ClaimType = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ClaimValue = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE")
},
constraints: table =>
{
......@@ -292,9 +292,9 @@ namespace IoTSharp.Data.Sqlite.Migrations
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
UserId = table.Column<string>(type: "TEXT", nullable: false),
ClaimType = table.Column<string>(type: "TEXT", nullable: true),
ClaimValue = table.Column<string>(type: "TEXT", nullable: true)
UserId = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE"),
ClaimType = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ClaimValue = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE")
},
constraints: table =>
{
......@@ -311,10 +311,10 @@ namespace IoTSharp.Data.Sqlite.Migrations
name: "AspNetUserLogins",
columns: table => new
{
LoginProvider = table.Column<string>(type: "TEXT", nullable: false),
ProviderKey = table.Column<string>(type: "TEXT", nullable: false),
ProviderDisplayName = table.Column<string>(type: "TEXT", nullable: true),
UserId = table.Column<string>(type: "TEXT", nullable: false)
LoginProvider = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE"),
ProviderKey = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE"),
ProviderDisplayName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
UserId = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE")
},
constraints: table =>
{
......@@ -331,8 +331,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
name: "AspNetUserRoles",
columns: table => new
{
UserId = table.Column<string>(type: "TEXT", nullable: false),
RoleId = table.Column<string>(type: "TEXT", nullable: false)
UserId = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE"),
RoleId = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE")
},
constraints: table =>
{
......@@ -355,10 +355,10 @@ namespace IoTSharp.Data.Sqlite.Migrations
name: "AspNetUserTokens",
columns: table => new
{
UserId = table.Column<string>(type: "TEXT", nullable: false),
LoginProvider = table.Column<string>(type: "TEXT", nullable: false),
Name = table.Column<string>(type: "TEXT", nullable: false),
Value = table.Column<string>(type: "TEXT", nullable: true)
UserId = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE"),
LoginProvider = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE"),
Name = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE"),
Value = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE")
},
constraints: table =>
{
......@@ -376,9 +376,9 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
Id = table.Column<Guid>(type: "TEXT", nullable: false),
UserId = table.Column<string>(type: "TEXT", nullable: true),
Token = table.Column<string>(type: "TEXT", nullable: true),
JwtId = table.Column<string>(type: "TEXT", nullable: true),
UserId = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Token = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
JwtId = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
IsUsed = table.Column<bool>(type: "INTEGER", nullable: false),
IsRevorked = table.Column<bool>(type: "INTEGER", nullable: false),
AddedDate = table.Column<DateTime>(type: "TEXT", nullable: false),
......@@ -399,12 +399,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
CommandId = table.Column<Guid>(type: "TEXT", nullable: false),
CommandTitle = table.Column<string>(type: "TEXT", nullable: true),
CommandI18N = table.Column<string>(type: "TEXT", nullable: true),
CommandTitle = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
CommandI18N = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
CommandType = table.Column<int>(type: "INTEGER", nullable: false),
CommandParams = table.Column<string>(type: "TEXT", nullable: true),
CommandName = table.Column<string>(type: "TEXT", nullable: true),
CommandTemplate = table.Column<string>(type: "TEXT", nullable: true),
CommandParams = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
CommandName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
CommandTemplate = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DeviceModelId = table.Column<Guid>(type: "TEXT", nullable: false),
CreateDateTime = table.Column<DateTime>(type: "TEXT", nullable: false),
Creator = table.Column<Guid>(type: "TEXT", nullable: false),
......@@ -426,14 +426,14 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
Id = table.Column<Guid>(type: "TEXT", nullable: false),
Name = table.Column<string>(type: "TEXT", nullable: true),
Email = table.Column<string>(type: "TEXT", nullable: true),
Phone = table.Column<string>(type: "TEXT", nullable: true),
Country = table.Column<string>(type: "TEXT", nullable: true),
Province = table.Column<string>(type: "TEXT", nullable: true),
City = table.Column<string>(type: "TEXT", nullable: true),
Street = table.Column<string>(type: "TEXT", nullable: true),
Address = table.Column<string>(type: "TEXT", nullable: true),
Name = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Email = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Phone = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Country = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Province = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
City = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Street = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Address = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ZipCode = table.Column<int>(type: "INTEGER", nullable: false),
TenantId = table.Column<Guid>(type: "TEXT", nullable: true)
},
......@@ -452,8 +452,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
Id = table.Column<Guid>(type: "TEXT", nullable: false),
AlarmType = table.Column<string>(type: "TEXT", nullable: true),
AlarmDetail = table.Column<string>(type: "TEXT", nullable: true),
AlarmType = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
AlarmDetail = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
AckDateTime = table.Column<DateTime>(type: "TEXT", nullable: false),
ClearDateTime = table.Column<DateTime>(type: "TEXT", nullable: false),
StartDateTime = table.Column<DateTime>(type: "TEXT", nullable: false),
......@@ -486,9 +486,9 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
Id = table.Column<Guid>(type: "TEXT", nullable: false),
Name = table.Column<string>(type: "TEXT", nullable: true),
Description = table.Column<string>(type: "TEXT", nullable: true),
AssetType = table.Column<string>(type: "TEXT", nullable: true),
Name = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Description = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
AssetType = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
CustomerId = table.Column<Guid>(type: "TEXT", nullable: true),
TenantId = table.Column<Guid>(type: "TEXT", nullable: true)
},
......@@ -514,14 +514,14 @@ namespace IoTSharp.Data.Sqlite.Migrations
Id = table.Column<Guid>(type: "TEXT", nullable: false),
TenantId = table.Column<Guid>(type: "TEXT", nullable: true),
CustomerId = table.Column<Guid>(type: "TEXT", nullable: true),
UserId = table.Column<string>(type: "TEXT", nullable: true),
UserName = table.Column<string>(type: "TEXT", nullable: true),
UserId = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
UserName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ObjectID = table.Column<Guid>(type: "TEXT", nullable: false),
ObjectName = table.Column<string>(type: "TEXT", nullable: true),
ObjectName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ObjectType = table.Column<int>(type: "INTEGER", nullable: false),
ActionName = table.Column<string>(type: "TEXT", nullable: true),
ActionData = table.Column<string>(type: "TEXT", nullable: true),
ActionResult = table.Column<string>(type: "TEXT", nullable: true),
ActionName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ActionData = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ActionResult = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ActiveDateTime = table.Column<DateTime>(type: "TEXT", nullable: false)
},
constraints: table =>
......@@ -544,8 +544,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
Id = table.Column<Guid>(type: "TEXT", nullable: false),
Name = table.Column<string>(type: "TEXT", nullable: true),
AuthToken = table.Column<string>(type: "TEXT", nullable: true),
Name = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
AuthToken = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
TenantId = table.Column<Guid>(type: "TEXT", nullable: true),
CustomerId = table.Column<Guid>(type: "TEXT", nullable: true)
},
......@@ -569,12 +569,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
DiagramId = table.Column<Guid>(type: "TEXT", nullable: false),
DiagramName = table.Column<string>(type: "TEXT", nullable: true),
DiagramDesc = table.Column<string>(type: "TEXT", nullable: true),
DiagramName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DiagramDesc = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DiagramStatus = table.Column<int>(type: "INTEGER", nullable: false),
Creator = table.Column<Guid>(type: "TEXT", nullable: false),
CreateDate = table.Column<DateTimeOffset>(type: "TEXT", nullable: true),
DiagramImage = table.Column<string>(type: "TEXT", nullable: true),
DiagramImage = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
IsDefault = table.Column<bool>(type: "INTEGER", nullable: false),
TenantId = table.Column<Guid>(type: "TEXT", nullable: true),
CustomerId = table.Column<Guid>(type: "TEXT", nullable: true)
......@@ -599,11 +599,11 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
ToolBoxId = table.Column<Guid>(type: "TEXT", nullable: false),
ToolBoxName = table.Column<string>(type: "TEXT", nullable: true),
ToolBoxIcon = table.Column<string>(type: "TEXT", nullable: true),
ToolBoxName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ToolBoxIcon = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ToolBoxStatus = table.Column<int>(type: "INTEGER", nullable: false),
ToolBoxRequestUri = table.Column<string>(type: "TEXT", nullable: true),
ToolBoxType = table.Column<string>(type: "TEXT", nullable: true),
ToolBoxRequestUri = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ToolBoxType = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DeviceId = table.Column<long>(type: "INTEGER", nullable: false),
ToolBoxOffsetX = table.Column<int>(type: "INTEGER", nullable: false),
ToolBoxOffsetY = table.Column<int>(type: "INTEGER", nullable: false),
......@@ -611,8 +611,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
ToolBoxOffsetLeftPer = table.Column<int>(type: "INTEGER", nullable: false),
CreateDate = table.Column<DateTime>(type: "TEXT", nullable: true),
Creator = table.Column<Guid>(type: "TEXT", nullable: false),
CommondParam = table.Column<string>(type: "TEXT", nullable: true),
CommondType = table.Column<string>(type: "TEXT", nullable: true),
CommondParam = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
CommondType = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
TenantId = table.Column<Guid>(type: "TEXT", nullable: true),
CustomerId = table.Column<Guid>(type: "TEXT", nullable: true)
},
......@@ -637,27 +637,27 @@ namespace IoTSharp.Data.Sqlite.Migrations
{
FieldId = table.Column<long>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
FieldName = table.Column<string>(type: "TEXT", nullable: true),
FieldValue = table.Column<string>(type: "TEXT", nullable: true),
FieldName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FieldValue = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FieldValueType = table.Column<int>(type: "INTEGER", nullable: false),
FormId = table.Column<long>(type: "INTEGER", nullable: false),
Creator = table.Column<Guid>(type: "TEXT", nullable: false),
FieldCreateDate = table.Column<DateTime>(type: "TEXT", nullable: true),
FieldEditDate = table.Column<DateTime>(type: "TEXT", nullable: true),
FieldCode = table.Column<string>(type: "TEXT", nullable: true),
FieldUnit = table.Column<string>(type: "TEXT", nullable: true),
FieldCode = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FieldUnit = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
IsRequired = table.Column<bool>(type: "INTEGER", nullable: false),
IsEnabled = table.Column<bool>(type: "INTEGER", nullable: false),
FieldStatus = table.Column<int>(type: "INTEGER", nullable: false),
FieldI18nKey = table.Column<string>(type: "TEXT", nullable: true),
FieldValueDataSource = table.Column<string>(type: "TEXT", nullable: true),
FieldValueLocalDataSource = table.Column<string>(type: "TEXT", nullable: true),
FieldPattern = table.Column<string>(type: "TEXT", nullable: true),
FieldI18nKey = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FieldValueDataSource = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FieldValueLocalDataSource = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FieldPattern = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FieldMaxLength = table.Column<int>(type: "INTEGER", nullable: false),
FieldValueTypeName = table.Column<string>(type: "TEXT", nullable: true),
FieldValueTypeName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FieldUIElement = table.Column<long>(type: "INTEGER", nullable: false),
FieldUIElementSchema = table.Column<string>(type: "TEXT", nullable: true),
FieldPocoTypeName = table.Column<string>(type: "TEXT", nullable: true),
FieldUIElementSchema = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FieldPocoTypeName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
TenantId = table.Column<Guid>(type: "TEXT", nullable: true),
CustomerId = table.Column<Guid>(type: "TEXT", nullable: true)
},
......@@ -683,13 +683,13 @@ namespace IoTSharp.Data.Sqlite.Migrations
FieldValueId = table.Column<long>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
FieldId = table.Column<long>(type: "INTEGER", nullable: false),
FieldName = table.Column<string>(type: "TEXT", nullable: true),
FieldValue = table.Column<string>(type: "TEXT", nullable: true),
FieldName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FieldValue = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FromId = table.Column<long>(type: "INTEGER", nullable: false),
Creator = table.Column<Guid>(type: "TEXT", nullable: false),
FieldCreateDate = table.Column<DateTime>(type: "TEXT", nullable: true),
FieldCode = table.Column<string>(type: "TEXT", nullable: true),
FieldUnit = table.Column<string>(type: "TEXT", nullable: true),
FieldCode = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FieldUnit = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FieldValueType = table.Column<long>(type: "INTEGER", nullable: false),
BizId = table.Column<long>(type: "INTEGER", nullable: false),
TenantId = table.Column<Guid>(type: "TEXT", nullable: true),
......@@ -718,15 +718,15 @@ namespace IoTSharp.Data.Sqlite.Migrations
.Annotation("Sqlite:Autoincrement", true),
BizId = table.Column<long>(type: "INTEGER", nullable: false),
FormCreator = table.Column<long>(type: "INTEGER", nullable: false),
FormName = table.Column<string>(type: "TEXT", nullable: true),
FormDesc = table.Column<string>(type: "TEXT", nullable: true),
FormName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FormDesc = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FormStatus = table.Column<int>(type: "INTEGER", nullable: false),
FormSchame = table.Column<string>(type: "TEXT", nullable: true),
ModelClass = table.Column<string>(type: "TEXT", nullable: true),
Url = table.Column<string>(type: "TEXT", nullable: true),
FormSchame = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ModelClass = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Url = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Creator = table.Column<Guid>(type: "TEXT", nullable: false),
FromCreateDate = table.Column<DateTime>(type: "TEXT", nullable: true),
FormLayout = table.Column<string>(type: "TEXT", nullable: true),
FormLayout = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
IsCompact = table.Column<bool>(type: "INTEGER", nullable: false),
TenantId = table.Column<Guid>(type: "TEXT", nullable: true),
CustomerId = table.Column<Guid>(type: "TEXT", nullable: true)
......@@ -752,15 +752,15 @@ namespace IoTSharp.Data.Sqlite.Migrations
{
RuleId = table.Column<Guid>(type: "TEXT", nullable: false),
RuleType = table.Column<int>(type: "INTEGER", nullable: false),
Name = table.Column<string>(type: "TEXT", nullable: false),
Describes = table.Column<string>(type: "TEXT", nullable: true),
Runner = table.Column<string>(type: "TEXT", nullable: true),
ExecutableCode = table.Column<string>(type: "TEXT", nullable: true),
Creator = table.Column<string>(type: "TEXT", nullable: true),
RuleDesc = table.Column<string>(type: "TEXT", nullable: true),
Name = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE"),
Describes = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Runner = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ExecutableCode = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Creator = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
RuleDesc = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
RuleStatus = table.Column<int>(type: "INTEGER", nullable: true),
CreatTime = table.Column<DateTime>(type: "TEXT", nullable: true),
DefinitionsXml = table.Column<string>(type: "TEXT", nullable: true),
DefinitionsXml = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ParentRuleId = table.Column<Guid>(type: "TEXT", nullable: false),
SubVersion = table.Column<double>(type: "REAL", nullable: false),
Version = table.Column<double>(type: "REAL", nullable: false),
......@@ -789,7 +789,7 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
Id = table.Column<Guid>(type: "TEXT", nullable: false),
IdentityUserId = table.Column<string>(type: "TEXT", nullable: true),
IdentityUserId = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
TenantId = table.Column<Guid>(type: "TEXT", nullable: true),
CustomerId = table.Column<Guid>(type: "TEXT", nullable: true)
},
......@@ -818,13 +818,13 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
ExecutorId = table.Column<Guid>(type: "TEXT", nullable: false),
ExecutorName = table.Column<string>(type: "TEXT", nullable: true),
ExecutorDesc = table.Column<string>(type: "TEXT", nullable: true),
Path = table.Column<string>(type: "TEXT", nullable: true),
TypeName = table.Column<string>(type: "TEXT", nullable: true),
DefaultConfig = table.Column<string>(type: "TEXT", nullable: true),
MataData = table.Column<string>(type: "TEXT", nullable: true),
Tag = table.Column<string>(type: "TEXT", nullable: true),
ExecutorName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ExecutorDesc = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Path = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
TypeName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DefaultConfig = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
MataData = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Tag = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ExecutorStatus = table.Column<int>(type: "INTEGER", nullable: false),
AddDateTime = table.Column<DateTime>(type: "TEXT", nullable: false),
Creator = table.Column<Guid>(type: "TEXT", nullable: false),
......@@ -854,13 +854,13 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
EventId = table.Column<Guid>(type: "TEXT", nullable: false),
EventName = table.Column<string>(type: "TEXT", nullable: true),
EventDesc = table.Column<string>(type: "TEXT", nullable: true),
EventNameSpace = table.Column<string>(type: "TEXT", nullable: true),
EventName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
EventDesc = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
EventNameSpace = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
EventStatus = table.Column<int>(type: "INTEGER", nullable: false),
Type = table.Column<int>(type: "INTEGER", nullable: false),
EventParam = table.Column<string>(type: "TEXT", nullable: true),
EventTag = table.Column<string>(type: "TEXT", nullable: true),
EventParam = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
EventTag = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
CreateDateTime = table.Column<DateTime>(type: "TEXT", nullable: false),
Creator = table.Column<Guid>(type: "TEXT", nullable: false),
TenantId = table.Column<Guid>(type: "TEXT", nullable: true),
......@@ -886,11 +886,11 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
Id = table.Column<Guid>(type: "TEXT", nullable: false),
Name = table.Column<string>(type: "TEXT", nullable: true),
Description = table.Column<string>(type: "TEXT", nullable: true),
Name = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Description = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DeviceId = table.Column<Guid>(type: "TEXT", nullable: false),
DataCatalog = table.Column<int>(type: "INTEGER", nullable: false),
KeyName = table.Column<string>(type: "TEXT", nullable: true),
KeyName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
AssetId = table.Column<Guid>(type: "TEXT", nullable: true)
},
constraints: table =>
......@@ -908,7 +908,7 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
Id = table.Column<Guid>(type: "TEXT", nullable: false),
Name = table.Column<string>(type: "TEXT", nullable: true),
Name = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DeviceType = table.Column<int>(type: "INTEGER", nullable: false),
Online = table.Column<bool>(type: "INTEGER", nullable: false),
LastActive = table.Column<DateTime>(type: "TEXT", nullable: false),
......@@ -956,24 +956,24 @@ namespace IoTSharp.Data.Sqlite.Migrations
{
GraphId = table.Column<Guid>(type: "TEXT", nullable: false),
DeviceId = table.Column<Guid>(type: "TEXT", nullable: false),
GraphShape = table.Column<string>(type: "TEXT", nullable: true),
GraphShape = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
GraphWidth = table.Column<int>(type: "INTEGER", nullable: false),
GraphHeight = table.Column<int>(type: "INTEGER", nullable: false),
GraphPostionX = table.Column<int>(type: "INTEGER", nullable: false),
GraphPostionY = table.Column<int>(type: "INTEGER", nullable: false),
GraphElementId = table.Column<string>(type: "TEXT", nullable: true),
GraphElementId = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
CreateDate = table.Column<DateTime>(type: "TEXT", nullable: true),
Creator = table.Column<Guid>(type: "TEXT", nullable: false),
DeviceDiagramDiagramId = table.Column<Guid>(type: "TEXT", nullable: true),
GraphFill = table.Column<string>(type: "TEXT", nullable: true),
GraphStroke = table.Column<string>(type: "TEXT", nullable: true),
GraphFill = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
GraphStroke = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
GraphStrokeWidth = table.Column<int>(type: "INTEGER", nullable: false),
GraphTextFill = table.Column<string>(type: "TEXT", nullable: true),
GraphTextFill = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
GraphTextFontSize = table.Column<int>(type: "INTEGER", nullable: false),
GraphTextRefX = table.Column<int>(type: "INTEGER", nullable: false),
GraphTextAnchor = table.Column<string>(type: "TEXT", nullable: true),
GraphTextVerticalAnchor = table.Column<string>(type: "TEXT", nullable: true),
GraphTextFontFamily = table.Column<string>(type: "TEXT", nullable: true),
GraphTextAnchor = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
GraphTextVerticalAnchor = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
GraphTextFontFamily = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
GraphTextRefY = table.Column<int>(type: "INTEGER", nullable: false),
TenantId = table.Column<Guid>(type: "TEXT", nullable: true),
CustomerId = table.Column<Guid>(type: "TEXT", nullable: true)
......@@ -1003,16 +1003,16 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
EventId = table.Column<Guid>(type: "TEXT", nullable: false),
EventName = table.Column<string>(type: "TEXT", nullable: true),
EventDesc = table.Column<string>(type: "TEXT", nullable: true),
EventName = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
EventDesc = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
EventStaus = table.Column<int>(type: "INTEGER", nullable: false),
Type = table.Column<int>(type: "INTEGER", nullable: false),
MataData = table.Column<string>(type: "TEXT", nullable: true),
MataData = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Creator = table.Column<Guid>(type: "TEXT", nullable: false),
FlowRuleRuleId = table.Column<Guid>(type: "TEXT", nullable: true),
Bizid = table.Column<string>(type: "TEXT", nullable: true),
Bizid = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
CreaterDateTime = table.Column<DateTime>(type: "TEXT", nullable: false),
BizData = table.Column<string>(type: "TEXT", nullable: true),
BizData = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
TenantId = table.Column<Guid>(type: "TEXT", nullable: true),
CustomerId = table.Column<Guid>(type: "TEXT", nullable: true)
},
......@@ -1041,23 +1041,23 @@ namespace IoTSharp.Data.Sqlite.Migrations
columns: table => new
{
FlowId = table.Column<Guid>(type: "TEXT", nullable: false),
bpmnid = table.Column<string>(type: "TEXT", nullable: true),
Flowname = table.Column<string>(type: "TEXT", nullable: true),
bpmnid = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Flowname = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FlowRuleRuleId = table.Column<Guid>(type: "TEXT", nullable: true),
Flowdesc = table.Column<string>(type: "TEXT", nullable: true),
ObjectId = table.Column<string>(type: "TEXT", nullable: true),
FlowType = table.Column<string>(type: "TEXT", nullable: true),
SourceId = table.Column<string>(type: "TEXT", nullable: true),
TargetId = table.Column<string>(type: "TEXT", nullable: true),
NodeProcessClass = table.Column<string>(type: "TEXT", nullable: true),
Conditionexpression = table.Column<string>(type: "TEXT", nullable: true),
NodeProcessMethod = table.Column<string>(type: "TEXT", nullable: true),
NodeProcessParams = table.Column<string>(type: "TEXT", nullable: true),
NodeProcessType = table.Column<string>(type: "TEXT", nullable: true),
NodeProcessScriptType = table.Column<string>(type: "TEXT", nullable: true),
NodeProcessScript = table.Column<string>(type: "TEXT", nullable: true),
Incoming = table.Column<string>(type: "TEXT", nullable: true),
Outgoing = table.Column<string>(type: "TEXT", nullable: true),
Flowdesc = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
ObjectId = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FlowType = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
SourceId = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
TargetId = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
NodeProcessClass = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Conditionexpression = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
NodeProcessMethod = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
NodeProcessParams = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
NodeProcessType = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
NodeProcessScriptType = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
NodeProcessScript = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Incoming = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Outgoing = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FlowStatus = table.Column<int>(type: "INTEGER", nullable: false),
TestStatus = table.Column<int>(type: "INTEGER", nullable: false),
Tester = table.Column<Guid>(type: "TEXT", nullable: false),
......@@ -1103,7 +1103,7 @@ namespace IoTSharp.Data.Sqlite.Migrations
SubscriptionEventId = table.Column<Guid>(type: "TEXT", nullable: true),
RuleTaskExecutorExecutorId = table.Column<Guid>(type: "TEXT", nullable: true),
Status = table.Column<int>(type: "INTEGER", nullable: false),
TaskConfig = table.Column<string>(type: "TEXT", nullable: true)
TaskConfig = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE")
},
constraints: table =>
{
......@@ -1126,8 +1126,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
{
Id = table.Column<Guid>(type: "TEXT", nullable: false),
IdentityType = table.Column<int>(type: "INTEGER", nullable: false),
IdentityId = table.Column<string>(type: "TEXT", nullable: false),
IdentityValue = table.Column<string>(type: "TEXT", nullable: true),
IdentityId = table.Column<string>(type: "TEXT", nullable: false, collation: "NOCASE"),
IdentityValue = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
DeviceId = table.Column<Guid>(type: "TEXT", nullable: false)
},
constraints: table =>
......@@ -1174,15 +1174,15 @@ namespace IoTSharp.Data.Sqlite.Migrations
OperationId = table.Column<Guid>(type: "TEXT", nullable: false),
AddDate = table.Column<DateTime>(type: "TEXT", nullable: true),
NodeStatus = table.Column<int>(type: "INTEGER", nullable: false),
OperationDesc = table.Column<string>(type: "TEXT", nullable: true),
Data = table.Column<string>(type: "TEXT", nullable: true),
BizId = table.Column<string>(type: "TEXT", nullable: true),
bpmnid = table.Column<string>(type: "TEXT", nullable: true),
OperationDesc = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
Data = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
BizId = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
bpmnid = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE"),
FlowId = table.Column<Guid>(type: "TEXT", nullable: true),
FlowRuleRuleId = table.Column<Guid>(type: "TEXT", nullable: true),
BaseEventEventId = table.Column<Guid>(type: "TEXT", nullable: true),
Step = table.Column<int>(type: "INTEGER", nullable: false),
Tag = table.Column<string>(type: "TEXT", nullable: true)
Tag = table.Column<string>(type: "TEXT", nullable: true, collation: "NOCASE")
},
constraints: table =>
{
......
......@@ -15,7 +15,9 @@ namespace IoTSharp.Data.Sqlite.Migrations
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.7");
modelBuilder
.UseCollation("NOCASE")
.HasAnnotation("ProductVersion", "6.0.7");
modelBuilder.Entity("IoTSharp.Data.Alarm", b =>
{
......@@ -27,13 +29,15 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("AlarmDetail")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("AlarmStatus")
.HasColumnType("INTEGER");
b.Property<string>("AlarmType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<DateTime>("ClearDateTime")
.HasColumnType("TEXT");
......@@ -78,16 +82,19 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("AssetType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("CustomerId")
.HasColumnType("TEXT");
b.Property<string>("Description")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Name")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -114,16 +121,19 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("Description")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid>("DeviceId")
.HasColumnType("TEXT");
b.Property<string>("KeyName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Name")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -139,13 +149,16 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("ActionData")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ActionName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ActionResult")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<DateTime>("ActiveDateTime")
.HasColumnType("TEXT");
......@@ -157,7 +170,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("ObjectName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("ObjectType")
.HasColumnType("INTEGER");
......@@ -166,10 +180,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("UserId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("UserName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -187,13 +203,15 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("AuthToken")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("CustomerId")
.HasColumnType("TEXT");
b.Property<string>("Name")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -214,40 +232,49 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("Dictionary18NKeyName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryColor")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<long?>("DictionaryGroupId")
.HasColumnType("INTEGER");
b.Property<string>("DictionaryIcon")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryPattern")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int?>("DictionaryStatus")
.HasColumnType("INTEGER");
b.Property<string>("DictionaryTag")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryValue")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int?>("DictionaryValueType")
.HasColumnType("INTEGER");
b.Property<string>("DictionaryValueTypeName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("DictionaryId");
......@@ -261,16 +288,20 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("DictionaryGroup18NKeyName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryGroupDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryGroupKey")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DictionaryGroupName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int?>("DictionaryGroupStatus")
.HasColumnType("INTEGER");
......@@ -279,7 +310,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("DictionaryGroupValueTypeName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("DictionaryGroupId");
......@@ -293,10 +325,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("BizData")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Bizid")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<DateTime>("CreaterDateTime")
.HasColumnType("TEXT");
......@@ -308,10 +342,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("EventDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("EventName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("EventStaus")
.HasColumnType("INTEGER");
......@@ -320,7 +356,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("MataData")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -349,10 +386,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("KeyName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ResouceDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int?>("ResouceGroupId")
.HasColumnType("INTEGER");
......@@ -361,10 +400,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("ResourceKey")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ResourceTag")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int?>("ResourceType")
.HasColumnType("INTEGER");
......@@ -376,85 +417,112 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("ValueBG")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueCS")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueDA")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueDEDE")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueELGR")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueENGR")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueENUS")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueESES")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueFI")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueFRFR")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueHE")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueHRHR")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueHU")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueITIT")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueJAJP")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueKOKR")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueNL")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValuePLPL")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValuePT")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueSLSL")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueSR")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueSV")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueTRTR")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueUK")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueVI")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueZHCN")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ValueZHTW")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -468,28 +536,36 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("Address")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("City")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Country")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Email")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Name")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Phone")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Province")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Street")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -516,7 +592,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
b.Property<string>("KeyName")
.HasColumnType("TEXT")
.HasColumnOrder(2);
.HasColumnOrder(2)
.UseCollation("NOCASE");
b.Property<int>("DataSide")
.HasColumnType("INTEGER")
......@@ -543,16 +620,19 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("REAL");
b.Property<string>("Value_Json")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<long?>("Value_Long")
.HasColumnType("INTEGER");
b.Property<string>("Value_String")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Value_XML")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Catalog", "DeviceId", "KeyName");
......@@ -587,7 +667,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("Name")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<bool>("Online")
.HasColumnType("INTEGER");
......@@ -637,13 +718,16 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("DiagramDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DiagramImage")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("DiagramName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("DiagramStatus")
.HasColumnType("INTEGER");
......@@ -685,10 +769,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("GraphElementId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("GraphFill")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("GraphHeight")
.HasColumnType("INTEGER");
......@@ -700,22 +786,27 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("GraphShape")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("GraphStroke")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("GraphStrokeWidth")
.HasColumnType("INTEGER");
b.Property<string>("GraphTextAnchor")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("GraphTextFill")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("GraphTextFontFamily")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("GraphTextFontSize")
.HasColumnType("INTEGER");
......@@ -727,7 +818,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("GraphTextVerticalAnchor")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("GraphWidth")
.HasColumnType("INTEGER");
......@@ -753,10 +845,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("CommondParam")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("CommondType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<DateTime?>("CreateDate")
.HasColumnType("TEXT");
......@@ -774,10 +868,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("ToolBoxIcon")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ToolBoxName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("ToolBoxOffsetLeftPer")
.HasColumnType("INTEGER");
......@@ -792,13 +888,15 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("ToolBoxRequestUri")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("ToolBoxStatus")
.HasColumnType("INTEGER");
b.Property<string>("ToolBoxType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("ToolBoxId");
......@@ -820,13 +918,15 @@ namespace IoTSharp.Data.Sqlite.Migrations
b.Property<string>("IdentityId")
.IsRequired()
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("IdentityType")
.HasColumnType("INTEGER");
b.Property<string>("IdentityValue")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -849,10 +949,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("ModelDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ModelName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("ModelStatus")
.HasColumnType("INTEGER");
......@@ -869,22 +971,27 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("CommandI18N")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("CommandName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("CommandParams")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("CommandStatus")
.HasColumnType("INTEGER");
b.Property<string>("CommandTemplate")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("CommandTitle")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("CommandType")
.HasColumnType("INTEGER");
......@@ -921,19 +1028,23 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("PortDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("PortElementId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("PortName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("PortPhyType")
.HasColumnType("INTEGER");
b.Property<string>("PortPic")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("PortStatus")
.HasColumnType("INTEGER");
......@@ -968,19 +1079,23 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("SourceElementId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("SourceId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("TargeId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid>("TargetDeviceId")
.HasColumnType("TEXT");
b.Property<string>("TargetElementId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("MappingId");
......@@ -1030,7 +1145,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("FieldCode")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<DateTime?>("FieldCreateDate")
.HasColumnType("TEXT");
......@@ -1039,19 +1155,23 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("FieldI18nKey")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("FieldMaxLength")
.HasColumnType("INTEGER");
b.Property<string>("FieldName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldPattern")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldPocoTypeName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("FieldStatus")
.HasColumnType("INTEGER");
......@@ -1060,25 +1180,31 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("FieldUIElementSchema")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldUnit")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldValue")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldValueDataSource")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldValueLocalDataSource")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("FieldValueType")
.HasColumnType("INTEGER");
b.Property<string>("FieldValueTypeName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<long>("FormId")
.HasColumnType("INTEGER");
......@@ -1117,7 +1243,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("FieldCode")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<DateTime?>("FieldCreateDate")
.HasColumnType("TEXT");
......@@ -1126,13 +1253,16 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("FieldName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldUnit")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FieldValue")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<long>("FieldValueType")
.HasColumnType("INTEGER");
......@@ -1171,16 +1301,20 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("FormDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FormLayout")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FormName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("FormSchame")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("FormStatus")
.HasColumnType("INTEGER");
......@@ -1192,13 +1326,15 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("ModelClass")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
b.Property<string>("Url")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("FormId");
......@@ -1216,7 +1352,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("Conditionexpression")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<DateTime>("CreateDate")
.HasColumnType("TEXT");
......@@ -1240,46 +1377,60 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("FlowType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Flowdesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Flowname")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Incoming")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NodeProcessClass")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NodeProcessMethod")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NodeProcessParams")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NodeProcessScript")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NodeProcessScriptType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NodeProcessType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ObjectId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Outgoing")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("SourceId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("TargetId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -1294,7 +1445,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("bpmnid")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("FlowId");
......@@ -1322,10 +1474,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("BizId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Data")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("FlowId")
.HasColumnType("TEXT");
......@@ -1337,16 +1491,19 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("OperationDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("Step")
.HasColumnType("INTEGER");
b.Property<string>("Tag")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("bpmnid")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("OperationId");
......@@ -1372,32 +1529,38 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("Creator")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("CustomerId")
.HasColumnType("TEXT");
b.Property<string>("DefinitionsXml")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Describes")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ExecutableCode")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("MountType")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid>("ParentRuleId")
.HasColumnType("TEXT");
b.Property<string>("RuleDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int?>("RuleStatus")
.HasColumnType("INTEGER");
......@@ -1406,7 +1569,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("Runner")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<double>("SubVersion")
.HasColumnType("REAL");
......@@ -1445,13 +1609,16 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("JwtId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Token")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("UserId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -1470,7 +1637,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("IdentityUserId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -1502,25 +1670,31 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("DefaultConfig")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ExecutorDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ExecutorName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("ExecutorStatus")
.HasColumnType("INTEGER");
b.Property<string>("MataData")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Path")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Tag")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -1535,7 +1709,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("TypeName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("ExecutorId");
......@@ -1562,22 +1737,27 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("EventDesc")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("EventName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("EventNameSpace")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("EventParam")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("EventStatus")
.HasColumnType("INTEGER");
b.Property<string>("EventTag")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<Guid?>("TenantId")
.HasColumnType("TEXT");
......@@ -1613,7 +1793,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("TaskConfig")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("BindId");
......@@ -1632,7 +1813,8 @@ namespace IoTSharp.Data.Sqlite.Migrations
b.Property<string>("KeyName")
.HasColumnType("TEXT")
.HasColumnOrder(2);
.HasColumnOrder(2)
.UseCollation("NOCASE");
b.Property<DateTime>("DateTime")
.HasColumnType("TEXT")
......@@ -1659,16 +1841,19 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("REAL");
b.Property<string>("Value_Json")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<long?>("Value_Long")
.HasColumnType("INTEGER");
b.Property<string>("Value_String")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Value_XML")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("DeviceId", "KeyName", "DateTime");
......@@ -1688,28 +1873,36 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("TEXT");
b.Property<string>("Address")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("City")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Country")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("EMail")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Name")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Phone")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Province")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Street")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("ZipCode")
.HasColumnType("INTEGER");
......@@ -1722,19 +1915,23 @@ namespace IoTSharp.Data.Sqlite.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
{
b.Property<string>("Id")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Name")
.HasMaxLength(256)
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NormalizedName")
.HasMaxLength(256)
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -1752,14 +1949,17 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("ClaimType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ClaimValue")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("RoleId")
.IsRequired()
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -1771,18 +1971,21 @@ namespace IoTSharp.Data.Sqlite.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b =>
{
b.Property<string>("Id")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<int>("AccessFailedCount")
.HasColumnType("INTEGER");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Email")
.HasMaxLength(256)
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<bool>("EmailConfirmed")
.HasColumnType("INTEGER");
......@@ -1795,30 +1998,36 @@ namespace IoTSharp.Data.Sqlite.Migrations
b.Property<string>("NormalizedEmail")
.HasMaxLength(256)
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("NormalizedUserName")
.HasMaxLength(256)
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("PasswordHash")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("PhoneNumber")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<bool>("PhoneNumberConfirmed")
.HasColumnType("INTEGER");
b.Property<string>("SecurityStamp")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<bool>("TwoFactorEnabled")
.HasColumnType("INTEGER");
b.Property<string>("UserName")
.HasMaxLength(256)
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -1839,14 +2048,17 @@ namespace IoTSharp.Data.Sqlite.Migrations
.HasColumnType("INTEGER");
b.Property<string>("ClaimType")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ClaimValue")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("Id");
......@@ -1858,17 +2070,21 @@ namespace IoTSharp.Data.Sqlite.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
b.Property<string>("LoginProvider")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ProviderKey")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("ProviderDisplayName")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("LoginProvider", "ProviderKey");
......@@ -1880,10 +2096,12 @@ namespace IoTSharp.Data.Sqlite.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
{
b.Property<string>("UserId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("RoleId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("UserId", "RoleId");
......@@ -1895,16 +2113,20 @@ namespace IoTSharp.Data.Sqlite.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.Property<string>("UserId")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("LoginProvider")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Name")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.Property<string>("Value")
.HasColumnType("TEXT");
.HasColumnType("TEXT")
.UseCollation("NOCASE");
b.HasKey("UserId", "LoginProvider", "Name");
......
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using System;
using Microsoft.Extensions.DependencyInjection;
namespace IoTSharp.Data.Sqlite
{
......@@ -14,7 +15,7 @@ namespace IoTSharp.Data.Sqlite
public void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.SetCaseInsensitiveSearchesForSQLite();
}
}
}
\ No newline at end of file
......@@ -29,6 +29,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tools", "Tools", "{3048484A
tools\ef_mg_add.cmd = tools\ef_mg_add.cmd
tools\ef_mg_remove.cmd = tools\ef_mg_remove.cmd
tools\upgrade_ef.cmd = tools\upgrade_ef.cmd
setnpm.cmd = setnpm.cmd
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "IoTSharp.SDKs", "IoTSharp.SDKs", "{86E9E4E0-24A0-4C89-A98B-B0D41C75B4F1}"
......
......@@ -19,7 +19,7 @@
<nz-tree-node *nzTreeNodeDef="let node; when: hasChild" nzTreeNodeIndentLine>
<nz-tree-node-toggle>
<i nz-icon nzType="caret-down" nzTreeNodeToggleRotateIcon></i>
<em nz-icon nzType="caret-down" nzTreeNodeToggleRotateIcon></em>
</nz-tree-node-toggle>
<nz-select [(ngModel)]="node.field">
......@@ -40,11 +40,11 @@
<nz-option nzLabel="OR" nzValue="||"></nz-option>
</nz-select>
<button nz-button nzType="text" nzSize="small" (click)="addNewNode(node)">
<i nz-icon nzType="plus" nzTheme="outline"></i>
<em nz-icon nzType="plus" nzTheme="outline"></em>
</button>
<button nz-button nzType="text" nzSize="small" (click)="delete(node)">
<i nz-icon nzType="minus" ></i>
<em nz-icon nzType="minus" ></em>
</button>
</nz-tree-node>
</nz-tree-view>
......@@ -53,10 +53,10 @@
<textarea nz-input placeholder="test expression" [(ngModel)]="expression" [nzAutosize]="{ minRows: 3, maxRows: 5 }"></textarea>
<ng-template #suffixTemplateInfo>
<i nz-icon nz-tooltip nzTooltipTitle="" nzType="info-circle" ></i>
<em nz-icon nz-tooltip nzTooltipTitle="" nzType="info-circle" ></em>
</ng-template>
</nz-row>
<nz-row class="customrow">
<button nz-button nzType="primary" nzShape="round" (click)="create()"><i nz-icon nzType="download"></i>生成</button>
<button nz-button nzType="primary" nzShape="round" (click)="close()"><i nz-icon nzType="download"></i>关闭</button></nz-row>
<button nz-button nzType="primary" nzShape="round" (click)="create()"><em nz-icon nzType="download"></em>生成</button>
<button nz-button nzType="primary" nzShape="round" (click)="close()"><em nz-icon nzType="download"></em>关闭</button></nz-row>
......@@ -39,7 +39,7 @@
</nz-input-group>
<ng-template #suffixTemplateInfo>
<i nz-icon nz-tooltip nzTooltipTitle="" nzType="info-circle" (click)="showce()" ></i>
<em nz-icon nz-tooltip nzTooltipTitle="" nzType="info-circle" (click)="showce()" ></em>
</ng-template>
</se>
......
......@@ -34,7 +34,7 @@ export default class CustomContextPad {
autoPlace.append(element, shape);
} else {
appendBuiltinShapeStart(event, element);
appendBuiltinShapeStart(event);
}
};
}
......@@ -77,4 +77,4 @@ CustomContextPad.$inject = [
'elementFactory',
'injector',
'translate'
];
\ No newline at end of file
];
......@@ -92,6 +92,7 @@
<PackageReference Include="IoTSharp.HealthChecks.Taos" Version="2.0.478" />
<PackageReference Include="MaiKeBing.HostedService.ZeroMQ" Version="1.0.35" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.7" />
<PackageReference Include="Microsoft.AspNetCore.SpaProxy" Version="6.0.8" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.16.1" />
<PackageReference Include="MQTTnet" Version="4.1.0.247" />
<PackageReference Include="MQTTnet.AspNetCore" Version="4.1.0.247" />
......@@ -106,7 +107,7 @@
<PackageReference Include="Silkier.AspNetCore" Version="1.0.592" />
<PackageReference Include="Silkier.EFCore" Version="1.0.592" />
<PackageReference Include="SilkierQuartz" Version="5.0.356" />
<PackageReference Include="SkiaSharp" Version="2.88.0" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0">
<TreatAsUsed>true</TreatAsUsed>
</PackageReference>
......
......@@ -2,4 +2,4 @@ echo off
cls
echo Drop to IoTSharp.Data.%1
set ASPNETCORE_ENVIRONMENT=%1
dotnet ef database drop --context IoTSharp.Data.ApplicationDbContext --startup-project ..\IoTSharp\IoTSharp.csproj --project ..\IoTSharp.Data.%1\IoTSharp.Data.%1.csproj
\ No newline at end of file
dotnet dotnet-ef database drop --context IoTSharp.Data.ApplicationDbContext --startup-project ..\IoTSharp\IoTSharp.csproj --project ..\IoTSharp.Data.%1\IoTSharp.Data.%1.csproj
\ No newline at end of file
......@@ -2,4 +2,4 @@ echo off
cls
echo Add a migration name is %2 to IoTSharp.Data.%1
set ASPNETCORE_ENVIRONMENT=%1
dotnet ef migrations add %2 --context IoTSharp.Data.ApplicationDbContext --startup-project ..\IoTSharp\IoTSharp.csproj --project ..\IoTSharp.Data.%1\IoTSharp.Data.%1.csproj
\ No newline at end of file
dotnet dotnet-ef migrations add %2 --context IoTSharp.Data.ApplicationDbContext --startup-project ..\IoTSharp\IoTSharp.csproj --project ..\IoTSharp.Data.%1\IoTSharp.Data.%1.csproj
\ No newline at end of file
......@@ -2,4 +2,4 @@ echo off
cls
echo remove a migration from IoTSharp.Data.%1
set ASPNETCORE_ENVIRONMENT=%1
dotnet ef migrations remove --context IoTSharp.Data.ApplicationDbContext --startup-project ..\IoTSharp\IoTSharp.csproj --project ..\IoTSharp.Data.%1\IoTSharp.Data.%1.csproj
\ No newline at end of file
dotnet dotnet-ef migrations remove --context IoTSharp.Data.ApplicationDbContext --startup-project ..\IoTSharp\IoTSharp.csproj --project ..\IoTSharp.Data.%1\IoTSharp.Data.%1.csproj
\ No newline at end of file
npm config set registry https://registry.npmmirror.com
\ No newline at end of file
dotnet tool update --global dotnet-ef
\ No newline at end of file
dotnet tool update dotnet-ef
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册