//
using System;
using EntityFramework;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace EntityFramework.Migrations
{
[DbContext(typeof(FireStationDbContext))]
[Migration("20210711121234_init datatabl")]
partial class initdatatabl
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("Relational:MaxIdentifierLength", 64)
.HasAnnotation("ProductVersion", "5.0.7");
modelBuilder.Entity("Domain.Models.FileUploads.FileUnit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("FileId")
.HasColumnType("char(36)");
b.Property("UnitId")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("FileUnits");
});
modelBuilder.Entity("Domain.Models.FileUploads.UploadedFile", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property("ContentType")
.HasColumnType("longtext");
b.Property("DeleteBy")
.HasColumnType("char(36)");
b.Property("DeleteTime")
.HasColumnType("datetime(6)");
b.Property("Extension")
.HasColumnType("longtext");
b.Property("FileName")
.HasColumnType("longtext");
b.Property("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property("OriginalName")
.HasColumnType("longtext");
b.Property("Path")
.HasColumnType("longtext");
b.Property("UploadedBy")
.HasColumnType("longtext");
b.Property("UploadedTime")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.ToTable("UploadedFiles");
});
modelBuilder.Entity("Domain.Models.FireMen.FireMen", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property("BirthDay")
.HasColumnType("longtext");
b.Property("Gender")
.HasColumnType("int");
b.Property("Imgs")
.HasColumnType("longtext");
b.Property("Job")
.HasColumnType("longtext");
b.Property("LicenceCode")
.HasColumnType("longtext")
.HasColumnName("licence_code");
b.Property("LicenceValidDate")
.HasColumnType("longtext")
.HasColumnName("licence_valid_date");
b.Property("Name")
.HasColumnType("longtext");
b.Property("OperatorId")
.HasColumnType("int")
.HasColumnName("operator_id");
b.Property("PhoneNumber")
.HasColumnType("longtext")
.HasColumnName("phone_num");
b.Property("Remark")
.HasColumnType("longtext");
b.Property("Sort")
.HasColumnType("smallint");
b.Property("TrainExp")
.HasColumnType("longtext")
.HasColumnName("train_exp");
b.Property("Uniacid")
.HasColumnType("int");
b.Property("UnitId")
.HasColumnType("int")
.HasColumnName("unit_id");
b.Property("UpdateTime")
.HasColumnType("datetime(6)")
.HasColumnName("upt_time");
b.HasKey("Id");
b.ToTable("unit_firemen");
});
modelBuilder.Entity("Domain.Models.UnitEquipments.UnitEquipment", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property("BuyTime")
.HasColumnType("longtext")
.HasColumnName("buy_time");
b.Property("Count")
.HasColumnType("int");
b.Property("Imgs")
.HasColumnType("longtext");
b.Property("Name")
.HasColumnType("longtext");
b.Property("OperatorId")
.HasColumnType("int")
.HasColumnName("operator_id");
b.Property("Remark")
.HasColumnType("longtext");
b.Property("StatusInfo")
.HasColumnType("longtext")
.HasColumnName("status_info");
b.Property("Type")
.HasColumnType("longtext");
b.Property("UintId")
.HasColumnType("int")
.HasColumnName("unit_id");
b.Property("Uniacid")
.HasColumnType("int");
b.Property("UpdateTime")
.HasColumnType("datetime(6)")
.HasColumnName("upt_time");
b.Property("model")
.HasColumnType("longtext");
b.HasKey("Id");
b.ToTable("unit_equipment");
});
modelBuilder.Entity("Domain.Models.Units.Unit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property("Attachments")
.HasColumnType("longtext");
b.Property("CategoryId")
.HasColumnType("int")
.HasColumnName("category_id");
b.Property("CoverArea")
.HasColumnType("int")
.HasColumnName("cover_area");
b.Property("GroupId")
.HasColumnType("int")
.HasColumnName("group_id");
b.Property("Imgs")
.HasColumnType("longtext");
b.Property("ImportantRating")
.HasColumnType("smallint")
.HasColumnName("important_rating");
b.Property("Latitude")
.HasColumnType("float");
b.Property("LocationName")
.HasColumnType("longtext")
.HasColumnName("location_name");
b.Property("Longitude")
.HasColumnType("float");
b.Property("Name")
.HasColumnType("longtext");
b.Property("OperatorId")
.HasColumnType("int")
.HasColumnName("operator_id");
b.Property("ParentUnitId")
.HasColumnType("int")
.HasColumnName("parent_unit_id");
b.Property("PeopleNum")
.HasColumnType("smallint")
.HasColumnName("people_num");
b.Property("PrincipalName")
.HasColumnType("longtext")
.HasColumnName("principal_name");
b.Property("PrincipalPhoneNum")
.HasColumnType("longtext")
.HasColumnName("principal_phone_num");
b.Property("Remark")
.HasColumnType("longtext");
b.Property("SuperviseLevel")
.HasColumnType("smallint")
.HasColumnName("supervise_level");
b.Property("Uniacid")
.HasColumnType("int");
b.Property("UpdateTime")
.HasColumnType("datetime(6)")
.HasColumnName("upt_time");
b.Property("UseArea")
.HasColumnType("int")
.HasColumnName("use_area");
b.HasKey("Id");
b.ToTable("unit");
});
modelBuilder.Entity("Domain.Models.Units.UnitCategory", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property("GroupId")
.HasColumnType("int")
.HasColumnName("group_id");
b.Property("Icon")
.HasColumnType("longtext");
b.Property("Name")
.HasColumnType("longtext");
b.Property("OperatorId")
.HasColumnType("int")
.HasColumnName("operator_id");
b.Property("Sort")
.HasColumnType("int");
b.Property("Uniacid")
.HasColumnType("int");
b.Property("UpdateTime")
.HasColumnType("datetime(6)")
.HasColumnName("upt_time");
b.HasKey("Id");
b.ToTable("unit_category");
});
modelBuilder.Entity("Domain.Models.Waters.Water", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property("CancelDate")
.HasColumnType("longtext")
.HasColumnName("cancel_date");
b.Property("CategoryId")
.HasColumnType("int")
.HasColumnName("category_id");
b.Property("ChangeDate")
.HasColumnType("longtext")
.HasColumnName("change_date");
b.Property("Code")
.HasColumnType("longtext");
b.Property("GroupId")
.HasColumnType("int")
.HasColumnName("group_id");
b.Property("GuanangType")
.HasColumnType("smallint")
.HasColumnName("guanwang_type");
b.Property("GuanwangDiam")
.HasColumnType("float")
.HasColumnName("guanwang_diam");
b.Property("GuanwangPressure")
.HasColumnType("float")
.HasColumnName("guanwang_pressure");
b.Property("Imgs")
.HasColumnType("longtext");
b.Property("InstallDate")
.HasColumnType("longtext")
.HasColumnName("install_date");
b.Property("Latitude")
.HasColumnType("float");
b.Property("LocationName")
.HasColumnType("longtext")
.HasColumnName("location_name");
b.Property("Longitude")
.HasColumnType("float");
b.Property("OperatorId")
.HasColumnType("int")
.HasColumnName("operator_id");
b.Property("PrincipalName")
.HasColumnType("longtext")
.HasColumnName("principal_name");
b.Property("PrincipalPhoneNum")
.HasColumnType("longtext")
.HasColumnName("principal_phone_num");
b.Property("Remark")
.HasColumnType("longtext");
b.Property("Status")
.HasColumnType("smallint");
b.Property("SupplyCompany")
.HasColumnType("longtext")
.HasColumnName("supply_company");
b.Property("Type")
.HasColumnType("smallint");
b.Property("Uniacid")
.HasColumnType("int");
b.Property("UpdateTime")
.HasColumnType("datetime(6)")
.HasColumnName("upt_time");
b.HasKey("Id");
b.ToTable("water");
});
#pragma warning restore 612, 618
}
}
}