新增车辆表及OTA权限与逻辑优化
新增车辆任务与报警表,完善实体与DbContext配置。细化OTA权限校验,增强回传会话IP安全。优化OTA上传与设置面板,调度器支持重启恢复。报警采集逻辑支持历史分段。
This commit is contained in:
@@ -45,6 +45,202 @@ namespace MiGu.DB.Migrations.Sqlite
|
||||
b.ToTable("user_dashboard_shortcuts", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("MiGu.DB.Domains.Fleet.CdmTaskRecord", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("id");
|
||||
|
||||
b.Property<int?>("CarId")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("car_id");
|
||||
|
||||
b.Property<string>("CarName")
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("car_name");
|
||||
|
||||
b.Property<string>("CreateTime")
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("create_time");
|
||||
|
||||
b.Property<string>("DstLabel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("dst_label");
|
||||
|
||||
b.Property<int>("DstSiteId")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("dst_site_id");
|
||||
|
||||
b.Property<string>("FinishTime")
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("finish_time");
|
||||
|
||||
b.Property<string>("FirstSeenAt")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("first_seen_at");
|
||||
|
||||
b.Property<string>("LastSeenAt")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("last_seen_at");
|
||||
|
||||
b.Property<int>("MissionId")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("mission_id");
|
||||
|
||||
b.Property<string>("MissionName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("mission_name");
|
||||
|
||||
b.Property<string>("MissionTypeName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("mission_type");
|
||||
|
||||
b.Property<bool>("Overdue")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("overdue");
|
||||
|
||||
b.Property<int>("Priority")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("priority");
|
||||
|
||||
b.Property<string>("SrcLabel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("src_label");
|
||||
|
||||
b.Property<int>("SrcSiteId")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("src_site_id");
|
||||
|
||||
b.Property<string>("StartTime")
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("start_time");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.IsRequired()
|
||||
.HasMaxLength(32)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.Property<string>("StatusCode")
|
||||
.IsRequired()
|
||||
.HasMaxLength(32)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("status_code");
|
||||
|
||||
b.Property<string>("StuckReason")
|
||||
.HasMaxLength(512)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("stuck_reason");
|
||||
|
||||
b.Property<string>("TaskId")
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("task_id");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CreateTime");
|
||||
|
||||
b.HasIndex("StatusCode");
|
||||
|
||||
b.ToTable("cdm_tasks", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("MiGu.DB.Domains.Fleet.VehicleAlarmRecord", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
.HasMaxLength(36)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("id");
|
||||
|
||||
b.Property<bool>("Acknowledged")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("acknowledged");
|
||||
|
||||
b.Property<string>("AcknowledgedAt")
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("acknowledged_at");
|
||||
|
||||
b.Property<string>("AcknowledgedBy")
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("acknowledged_by");
|
||||
|
||||
b.Property<int>("CarId")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("car_id");
|
||||
|
||||
b.Property<string>("CarName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("car_name");
|
||||
|
||||
b.Property<long?>("DurationSecs")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("duration_secs");
|
||||
|
||||
b.Property<string>("FirstAt")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("first_at");
|
||||
|
||||
b.Property<string>("Info")
|
||||
.IsRequired()
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("info");
|
||||
|
||||
b.Property<string>("LastAt")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("last_at");
|
||||
|
||||
b.Property<int>("Level")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("level");
|
||||
|
||||
b.Property<string>("ResolvedAt")
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("resolved_at");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.IsRequired()
|
||||
.HasMaxLength(16)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("FirstAt");
|
||||
|
||||
b.HasIndex("Status");
|
||||
|
||||
b.HasIndex("CarId", "Status");
|
||||
|
||||
b.ToTable("vehicle_alarms", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("MiGu.DB.Domains.SimpleFields.SimpleField", b =>
|
||||
{
|
||||
b.Property<string>("Id")
|
||||
|
||||
Reference in New Issue
Block a user