//
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
{
///
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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CreateTime")
.HasColumnType("timestamp with time zone");
b.Property("From")
.IsRequired()
.HasColumnType("text");
b.Property("Level")
.IsRequired()
.HasColumnType("text");
b.Property("Message")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.HasIndex("CreateTime");
b.ToTable("LogInfos");
});
modelBuilder.Entity("WorkerService1.Domains.Polygon", b =>
{
b.Property("PolygonId")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Name")
.IsRequired()
.HasColumnType("text");
b.Property("PhoneNumber")
.HasColumnType("text");
b.Property>>("Points")
.HasColumnType("jsonb");
b.Property>("RangeCameras")
.HasColumnType("jsonb");
b.Property("UserId")
.HasColumnType("text");
b.Property("UserName")
.HasColumnType("text");
b.HasKey("PolygonId");
b.ToTable("Polygons");
});
modelBuilder.Entity("WorkerService1.Domains.SmsSendRecord", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("Content")
.IsRequired()
.HasColumnType("text");
b.Property("ErrorMessage")
.IsRequired()
.HasColumnType("text");
b.Property("IsSuccess")
.HasColumnType("boolean");
b.Property("PhoneNumber")
.IsRequired()
.HasColumnType("text");
b.Property("RefrenceId")
.IsRequired()
.HasColumnType("text");
b.Property("SendTime")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.HasIndex("SendTime");
b.ToTable("SmsSendRecords");
});
modelBuilder.Entity("WorkerService1.Dto.Configuration.ClientOptions", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("ApiGateway")
.IsRequired()
.HasColumnType("text");
b.Property("CloseFileApi")
.IsRequired()
.HasColumnType("text");
b.Property("CloseFileRunning")
.HasColumnType("boolean");
b.Property("Delay")
.HasColumnType("integer");
b.Property("DiposeOrder")
.IsRequired()
.HasColumnType("text");
b.Property("DispatchingRunning")
.HasColumnType("boolean");
b.Property("GetCamerasApi")
.IsRequired()
.HasColumnType("text");
b.Property("GetTaskApi")
.IsRequired()
.HasColumnType("text");
b.Property("GetUserApi")
.IsRequired()
.HasColumnType("text");
b.Property("LoginApi")
.IsRequired()
.HasColumnType("text");
b.Property("Password")
.IsRequired()
.HasColumnType("text")
.HasAnnotation("Relational:JsonPropertyName", "password");
b.Property("UserName")
.IsRequired()
.HasColumnType("text")
.HasAnnotation("Relational:JsonPropertyName", "username");
b.HasKey("Id");
b.ToTable("ClientOptions");
});
#pragma warning restore 612, 618
}
}
}