186 lines
6.1 KiB
C#
186 lines
6.1 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
using WorkerService1;
|
|
using WorkerService1.Domains;
|
|
|
|
#nullable disable
|
|
|
|
namespace AutoDispathingWork.Migrations
|
|
{
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
[Migration("20240812130932_dbv3")]
|
|
partial class dbv3
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "8.0.7")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("WorkerService1.Domains.LogInfo", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("From")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Level")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Message")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CreateTime");
|
|
|
|
b.ToTable("LogInfos");
|
|
});
|
|
|
|
modelBuilder.Entity("WorkerService1.Domains.Polygon", b =>
|
|
{
|
|
b.Property<Guid?>("PolygonId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<List<List<Points>>>("Points")
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<List<string>>("RangeCameras")
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("UserName")
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("PolygonId");
|
|
|
|
b.ToTable("Polygons");
|
|
});
|
|
|
|
modelBuilder.Entity("WorkerService1.Domains.SmsSendRecord", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("Content")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ErrorMessage")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsSuccess")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("RefrenceId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("SendTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SendTime");
|
|
|
|
b.ToTable("SmsSendRecords");
|
|
});
|
|
|
|
modelBuilder.Entity("WorkerService1.Dto.Configuration.ClientOptions", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("ApiGateway")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("CloseFileApi")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("CloseFileRunning")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<int>("Delay")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("DiposeOrder")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("DispatchingRunning")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("GetCamerasApi")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("GetTaskApi")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("GetUserApi")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("LoginApi")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Password")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasAnnotation("Relational:JsonPropertyName", "password");
|
|
|
|
b.Property<string>("UserName")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasAnnotation("Relational:JsonPropertyName", "username");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("ClientOptions");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|