消防站文档解析
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

408 lines
14 KiB

3 years ago
// <auto-generated />
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<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<Guid>("FileId")
.HasColumnType("char(36)");
b.Property<int>("UnitId")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("FileUnits");
});
modelBuilder.Entity("Domain.Models.FileUploads.UploadedFile", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<string>("ContentType")
.HasColumnType("longtext");
b.Property<Guid>("DeleteBy")
.HasColumnType("char(36)");
b.Property<DateTime>("DeleteTime")
.HasColumnType("datetime(6)");
b.Property<string>("Extension")
.HasColumnType("longtext");
b.Property<string>("FileName")
.HasColumnType("longtext");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property<string>("OriginalName")
.HasColumnType("longtext");
b.Property<string>("Path")
.HasColumnType("longtext");
b.Property<string>("UploadedBy")
.HasColumnType("longtext");
b.Property<DateTime>("UploadedTime")
.HasColumnType("datetime(6)");
b.HasKey("Id");
b.ToTable("UploadedFiles");
});
modelBuilder.Entity("Domain.Models.FireMen.FireMen", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<string>("BirthDay")
.HasColumnType("longtext");
b.Property<int>("Gender")
.HasColumnType("int");
b.Property<string>("Imgs")
.HasColumnType("longtext");
b.Property<string>("Job")
.HasColumnType("longtext");
b.Property<string>("LicenceCode")
.HasColumnType("longtext")
.HasColumnName("licence_code");
b.Property<string>("LicenceValidDate")
.HasColumnType("longtext")
.HasColumnName("licence_valid_date");
b.Property<string>("Name")
.HasColumnType("longtext");
b.Property<int>("OperatorId")
.HasColumnType("int")
.HasColumnName("operator_id");
b.Property<string>("PhoneNumber")
.HasColumnType("longtext")
.HasColumnName("phone_num");
b.Property<string>("Remark")
.HasColumnType("longtext");
b.Property<short>("Sort")
.HasColumnType("smallint");
b.Property<string>("TrainExp")
.HasColumnType("longtext")
.HasColumnName("train_exp");
b.Property<int>("Uniacid")
.HasColumnType("int");
b.Property<int>("UnitId")
.HasColumnType("int")
.HasColumnName("unit_id");
b.Property<DateTime>("UpdateTime")
.HasColumnType("datetime(6)")
.HasColumnName("upt_time");
b.HasKey("Id");
b.ToTable("unit_firemen");
});
modelBuilder.Entity("Domain.Models.UnitEquipments.UnitEquipment", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<string>("BuyTime")
.HasColumnType("longtext")
.HasColumnName("buy_time");
b.Property<int>("Count")
.HasColumnType("int");
b.Property<string>("Imgs")
.HasColumnType("longtext");
b.Property<string>("Name")
.HasColumnType("longtext");
b.Property<int>("OperatorId")
.HasColumnType("int")
.HasColumnName("operator_id");
b.Property<string>("Remark")
.HasColumnType("longtext");
b.Property<string>("StatusInfo")
.HasColumnType("longtext")
.HasColumnName("status_info");
b.Property<string>("Type")
.HasColumnType("longtext");
b.Property<int>("UintId")
.HasColumnType("int")
.HasColumnName("unit_id");
b.Property<int>("Uniacid")
.HasColumnType("int");
b.Property<DateTime>("UpdateTime")
.HasColumnType("datetime(6)")
.HasColumnName("upt_time");
b.Property<string>("model")
.HasColumnType("longtext");
b.HasKey("Id");
b.ToTable("unit_equipment");
});
modelBuilder.Entity("Domain.Models.Units.Unit", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<string>("Attachments")
.HasColumnType("longtext");
b.Property<int>("CategoryId")
.HasColumnType("int")
.HasColumnName("category_id");
b.Property<int>("CoverArea")
.HasColumnType("int")
.HasColumnName("cover_area");
b.Property<int>("GroupId")
.HasColumnType("int")
.HasColumnName("group_id");
b.Property<string>("Imgs")
.HasColumnType("longtext");
b.Property<short>("ImportantRating")
.HasColumnType("smallint")
.HasColumnName("important_rating");
b.Property<float>("Latitude")
.HasColumnType("float");
b.Property<string>("LocationName")
.HasColumnType("longtext")
.HasColumnName("location_name");
b.Property<float>("Longitude")
.HasColumnType("float");
b.Property<string>("Name")
.HasColumnType("longtext");
b.Property<int>("OperatorId")
.HasColumnType("int")
.HasColumnName("operator_id");
b.Property<int>("ParentUnitId")
.HasColumnType("int")
.HasColumnName("parent_unit_id");
b.Property<short>("PeopleNum")
.HasColumnType("smallint")
.HasColumnName("people_num");
b.Property<string>("PrincipalName")
.HasColumnType("longtext")
.HasColumnName("principal_name");
b.Property<string>("PrincipalPhoneNum")
.HasColumnType("longtext")
.HasColumnName("principal_phone_num");
b.Property<string>("Remark")
.HasColumnType("longtext");
b.Property<short>("SuperviseLevel")
.HasColumnType("smallint")
.HasColumnName("supervise_level");
b.Property<int>("Uniacid")
.HasColumnType("int");
b.Property<DateTime>("UpdateTime")
.HasColumnType("datetime(6)")
.HasColumnName("upt_time");
b.Property<int>("UseArea")
.HasColumnType("int")
.HasColumnName("use_area");
b.HasKey("Id");
b.ToTable("unit");
});
modelBuilder.Entity("Domain.Models.Units.UnitCategory", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<int>("GroupId")
.HasColumnType("int")
.HasColumnName("group_id");
b.Property<string>("Icon")
.HasColumnType("longtext");
b.Property<string>("Name")
.HasColumnType("longtext");
b.Property<int>("OperatorId")
.HasColumnType("int")
.HasColumnName("operator_id");
b.Property<int>("Sort")
.HasColumnType("int");
b.Property<int>("Uniacid")
.HasColumnType("int");
b.Property<DateTime>("UpdateTime")
.HasColumnType("datetime(6)")
.HasColumnName("upt_time");
b.HasKey("Id");
b.ToTable("unit_category");
});
modelBuilder.Entity("Domain.Models.Waters.Water", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<string>("CancelDate")
.HasColumnType("longtext")
.HasColumnName("cancel_date");
b.Property<int>("CategoryId")
.HasColumnType("int")
.HasColumnName("category_id");
b.Property<string>("ChangeDate")
.HasColumnType("longtext")
.HasColumnName("change_date");
b.Property<string>("Code")
.HasColumnType("longtext");
b.Property<int>("GroupId")
.HasColumnType("int")
.HasColumnName("group_id");
b.Property<short>("GuanangType")
.HasColumnType("smallint")
.HasColumnName("guanwang_type");
b.Property<float>("GuanwangDiam")
.HasColumnType("float")
.HasColumnName("guanwang_diam");
b.Property<float>("GuanwangPressure")
.HasColumnType("float")
.HasColumnName("guanwang_pressure");
b.Property<string>("Imgs")
.HasColumnType("longtext");
b.Property<string>("InstallDate")
.HasColumnType("longtext")
.HasColumnName("install_date");
b.Property<float>("Latitude")
.HasColumnType("float");
b.Property<string>("LocationName")
.HasColumnType("longtext")
.HasColumnName("location_name");
b.Property<float>("Longitude")
.HasColumnType("float");
b.Property<int>("OperatorId")
.HasColumnType("int")
.HasColumnName("operator_id");
b.Property<string>("PrincipalName")
.HasColumnType("longtext")
.HasColumnName("principal_name");
b.Property<string>("PrincipalPhoneNum")
.HasColumnType("longtext")
.HasColumnName("principal_phone_num");
b.Property<string>("Remark")
.HasColumnType("longtext");
b.Property<short>("Status")
.HasColumnType("smallint");
b.Property<string>("SupplyCompany")
.HasColumnType("longtext")
.HasColumnName("supply_company");
b.Property<short>("Type")
.HasColumnType("smallint");
b.Property<int>("Uniacid")
.HasColumnType("int");
b.Property<DateTime>("UpdateTime")
.HasColumnType("datetime(6)")
.HasColumnName("upt_time");
b.HasKey("Id");
b.ToTable("water");
});
#pragma warning restore 612, 618
}
}
}