| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262 |
- // <auto-generated />
- using System;
- using Business.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore.Infrastructure;
- using Microsoft.EntityFrameworkCore.Metadata;
- using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
- using Volo.Abp.EntityFrameworkCore;
- #nullable disable
- namespace Business.Migrations.BusinessBangMigrationDb
- {
- [DbContext(typeof(BusinessBangMigrationDbContext))]
- partial class BusinessBangMigrationDbContextModelSnapshot : ModelSnapshot
- {
- protected override void BuildModel(ModelBuilder modelBuilder)
- {
- #pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
- .HasAnnotation("ProductVersion", "6.0.5")
- .HasAnnotation("Relational:MaxIdentifierLength", 128);
- SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
- modelBuilder.Entity("Business.Model.Bang.b_bom_child_examine", b =>
- {
- b.Property<long>("Id")
- .HasColumnType("bigint");
- b.Property<bool>("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted")
- .HasComment("删除标识");
- b.Property<int?>("backflush")
- .HasColumnType("int")
- .HasComment("是否倒冲");
- b.Property<long?>("bom_child_id")
- .HasColumnType("bigint")
- .HasComment("bom明细主键");
- b.Property<long?>("bom_id")
- .HasColumnType("bigint")
- .HasComment("BOMid");
- b.Property<string>("bom_number")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)")
- .HasComment("bom编号");
- b.Property<long?>("create_by")
- .HasColumnType("bigint")
- .HasComment("创建人id");
- b.Property<string>("create_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("创建人名称");
- b.Property<DateTime?>("create_time")
- .HasColumnType("datetime2")
- .HasComment("创建时间");
- b.Property<int?>("erp_cls")
- .HasColumnType("int")
- .HasComment("物料属性");
- b.Property<string>("erp_cls_name")
- .HasMaxLength(80)
- .HasColumnType("nvarchar(80)")
- .HasComment("物料属性名称");
- b.Property<long?>("examine_id")
- .HasColumnType("bigint")
- .HasComment("资源检查ID");
- b.Property<long?>("factory_id")
- .HasColumnType("bigint")
- .HasComment("工厂ID");
- b.Property<long>("fid")
- .HasColumnType("bigint")
- .HasComment("本级id");
- b.Property<int?>("haveicsubs")
- .HasColumnType("int")
- .HasComment("存在替代关系");
- b.Property<bool>("is_use")
- .HasColumnType("bit")
- .HasComment("是否使用此物料");
- b.Property<int?>("isbom")
- .HasColumnType("int")
- .HasComment("是否BOM");
- b.Property<long?>("item_id")
- .HasColumnType("bigint")
- .HasComment("物料id");
- b.Property<string>("item_name")
- .HasMaxLength(200)
- .HasColumnType("nvarchar(200)")
- .HasComment("物料名称");
- b.Property<string>("item_number")
- .HasMaxLength(80)
- .HasColumnType("nvarchar(80)")
- .HasComment("物料编号");
- b.Property<DateTime?>("kitting_time")
- .HasColumnType("datetime2")
- .HasComment("齐套时间");
- b.Property<decimal?>("lack_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("缺料数量");
- b.Property<int?>("level")
- .HasColumnType("int")
- .HasComment("level");
- b.Property<decimal?>("make_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("自制数量");
- b.Property<decimal?>("mo_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("在制占用数量");
- b.Property<string>("model")
- .HasMaxLength(200)
- .HasColumnType("nvarchar(200)")
- .HasComment("规格型号");
- b.Property<decimal?>("needCount")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("单个产品总需要用量");
- b.Property<string>("num")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("项次号");
- b.Property<long?>("num_order")
- .HasColumnType("bigint")
- .HasComment("排序使用");
- b.Property<long?>("org_id")
- .HasColumnType("bigint")
- .HasComment("组织ID");
- b.Property<long?>("parent_id")
- .HasColumnType("bigint")
- .HasComment("父级id");
- b.Property<decimal?>("purchase_occupy_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("采购明细占用数量");
- b.Property<decimal?>("purchase_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("采购数量");
- b.Property<decimal?>("qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("单位用量");
- b.Property<DateTime?>("satisfy_time")
- .HasColumnType("datetime2")
- .HasComment("满足时间");
- b.Property<decimal?>("self_lack_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("本级缺料数量");
- b.Property<long?>("sentry_id")
- .HasColumnType("bigint")
- .HasComment("订单行ID");
- b.Property<decimal?>("sqty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("库存数量");
- b.Property<int?>("stock_state")
- .HasColumnType("int")
- .HasComment("物料状态");
- b.Property<decimal?>("subcontracting_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("委外数量");
- b.Property<int?>("substitute_all_num")
- .HasColumnType("int")
- .HasComment("群组优先级");
- b.Property<string>("substitute_code")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)")
- .HasComment("群组代码");
- b.Property<int?>("substitute_mode")
- .HasColumnType("int")
- .HasComment("替代方式");
- b.Property<int?>("substitute_strategy")
- .HasColumnType("int")
- .HasComment("替代策略");
- b.Property<long>("tenant_id")
- .HasColumnType("bigint")
- .HasComment("企业ID");
- b.Property<int?>("type")
- .HasColumnType("int")
- .HasComment("类型");
- b.Property<string>("unit")
- .HasMaxLength(80)
- .HasColumnType("nvarchar(80)")
- .HasComment("单位");
- b.Property<long?>("update_by")
- .HasColumnType("bigint")
- .HasComment("修改人");
- b.Property<string>("update_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("修改人名称");
- b.Property<DateTime?>("update_time")
- .HasColumnType("datetime2")
- .HasComment("修改时间");
- b.Property<decimal?>("use_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("库存占用数量");
- b.Property<string>("version")
- .HasMaxLength(80)
- .HasColumnType("nvarchar(80)")
- .HasComment("版本");
- b.HasKey("Id");
- b.HasIndex("examine_id", "bom_number", "item_number", "tenant_id", "factory_id");
- b.ToTable("b_bom_child_examine", (string)null);
- b.HasComment("Bom明细检查结果");
- });
- modelBuilder.Entity("Business.Model.Bang.b_day_bulletin_board", b =>
- {
- b.Property<long>("Id")
- .HasColumnType("bigint");
- b.Property<bool>("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted")
- .HasComment("删除标识");
- b.Property<long?>("create_by")
- .HasColumnType("bigint")
- .HasComment("创建人id");
- b.Property<string>("create_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("创建人名称");
- b.Property<DateTime?>("create_time")
- .HasColumnType("datetime2")
- .HasComment("创建时间");
- b.Property<string>("day")
- .HasColumnType("nvarchar(max)")
- .HasComment("日期");
- b.Property<long?>("factory_id")
- .HasColumnType("bigint")
- .HasComment("工厂ID");
- b.Property<string>("item_name")
- .HasColumnType("nvarchar(max)")
- .HasComment("物料名称");
- b.Property<string>("item_number")
- .HasColumnType("nvarchar(450)")
- .HasComment("物料编码");
- b.Property<decimal?>("make_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("自制数量");
- b.Property<decimal?>("mo_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("在制占用数量");
- b.Property<long?>("org_id")
- .HasColumnType("bigint")
- .HasComment("组织ID");
- b.Property<decimal?>("purchase_occupy_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("采购占用数量");
- b.Property<decimal?>("self_lack_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("缺料数量");
- b.Property<long>("tenant_id")
- .HasColumnType("bigint")
- .HasComment("企业ID");
- b.Property<int?>("type")
- .HasColumnType("int")
- .HasComment("类别");
- b.Property<long?>("update_by")
- .HasColumnType("bigint")
- .HasComment("修改人");
- b.Property<string>("update_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("修改人名称");
- b.Property<DateTime?>("update_time")
- .HasColumnType("datetime2")
- .HasComment("修改时间");
- b.Property<decimal?>("use_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("库存占用数量");
- b.HasKey("Id");
- b.HasIndex("item_number", "tenant_id", "factory_id");
- b.ToTable("b_day_bulletin_board", (string)null);
- b.HasComment("物料齐套明细");
- });
- modelBuilder.Entity("Business.Model.Bang.b_examine_result", b =>
- {
- b.Property<long>("Id")
- .HasColumnType("bigint");
- b.Property<bool>("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted")
- .HasComment("删除标识");
- b.Property<long?>("bangid")
- .HasColumnType("bigint")
- .HasComment("计算id");
- b.Property<string>("bill_no")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("订单编号");
- b.Property<string>("bom_number")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)")
- .HasComment("BOM编码");
- b.Property<long?>("create_by")
- .HasColumnType("bigint")
- .HasComment("创建人id");
- b.Property<string>("create_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("创建人名称");
- b.Property<DateTime?>("create_time")
- .HasColumnType("datetime2")
- .HasComment("创建时间");
- b.Property<DateTime?>("earliest_times")
- .HasColumnType("datetime2")
- .HasComment("最早开工时间");
- b.Property<int?>("entry_seq")
- .HasColumnType("int")
- .HasComment("行号");
- b.Property<long?>("factory_id")
- .HasColumnType("bigint")
- .HasComment("工厂ID");
- b.Property<DateTime?>("kitting_times")
- .HasColumnType("datetime2")
- .HasComment("物料齐套时间");
- b.Property<DateTime?>("latest_times")
- .HasColumnType("datetime2")
- .HasComment("最晚开工时间");
- b.Property<long?>("morder_id")
- .HasColumnType("bigint")
- .HasComment("工单id");
- b.Property<string>("morder_no")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("工单号");
- b.Property<decimal?>("need_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("需要数量");
- b.Property<DateTime?>("need_time")
- .HasColumnType("datetime2")
- .HasComment("需求日期");
- b.Property<DateTime?>("order_statr_time")
- .HasColumnType("datetime2")
- .HasComment("工单开工时间");
- b.Property<long?>("org_id")
- .HasColumnType("bigint")
- .HasComment("组织ID");
- b.Property<long?>("sentry_id")
- .HasColumnType("bigint")
- .HasComment("订单行id");
- b.Property<long?>("sorderid")
- .HasColumnType("bigint")
- .HasComment("订单id");
- b.Property<DateTime?>("sys_capacity_date")
- .HasColumnType("datetime2")
- .HasComment("建议交期(产能)");
- b.Property<DateTime?>("sys_material_date")
- .HasColumnType("datetime2")
- .HasComment("建议交期(物料)");
- b.Property<long>("tenant_id")
- .HasColumnType("bigint")
- .HasComment("企业ID");
- b.Property<long?>("update_by")
- .HasColumnType("bigint")
- .HasComment("修改人");
- b.Property<string>("update_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("修改人名称");
- b.Property<DateTime?>("update_time")
- .HasColumnType("datetime2")
- .HasComment("修改时间");
- b.HasKey("Id");
- b.HasIndex("bill_no", "bom_number", "tenant_id", "factory_id");
- b.ToTable("b_examine_result", (string)null);
- b.HasComment("资源检查");
- });
- modelBuilder.Entity("Business.Model.Bang.b_mo_occupy", b =>
- {
- b.Property<long>("Id")
- .HasColumnType("bigint");
- b.Property<bool>("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted")
- .HasComment("删除标识");
- b.Property<long?>("bom_child_examine_id")
- .HasColumnType("bigint")
- .HasComment("物料检查明细ID");
- b.Property<long?>("create_by")
- .HasColumnType("bigint")
- .HasComment("创建人id");
- b.Property<string>("create_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("创建人名称");
- b.Property<DateTime?>("create_time")
- .HasColumnType("datetime2")
- .HasComment("创建时间");
- b.Property<long?>("factory_id")
- .HasColumnType("bigint")
- .HasComment("工厂ID");
- b.Property<DateTime?>("moo_etime")
- .HasColumnType("datetime2")
- .HasComment("结束时间");
- b.Property<string>("moo_mo")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("工单号");
- b.Property<decimal?>("moo_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("占用量");
- b.Property<DateTime?>("moo_stime")
- .HasColumnType("datetime2")
- .HasComment("开始时间");
- b.Property<long?>("org_id")
- .HasColumnType("bigint")
- .HasComment("组织ID");
- b.Property<long>("tenant_id")
- .HasColumnType("bigint")
- .HasComment("企业ID");
- b.Property<long?>("update_by")
- .HasColumnType("bigint")
- .HasComment("修改人");
- b.Property<string>("update_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("修改人名称");
- b.Property<DateTime?>("update_time")
- .HasColumnType("datetime2")
- .HasComment("修改时间");
- b.HasKey("Id");
- b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
- b.ToTable("b_mo_occupy", (string)null);
- b.HasComment("在制占用明细");
- });
- modelBuilder.Entity("Business.Model.Bang.b_mo_order", b =>
- {
- b.Property<long>("Id")
- .HasColumnType("bigint");
- b.Property<bool>("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted")
- .HasComment("删除标识");
- b.Property<long?>("bom_child_examine_id")
- .HasColumnType("bigint")
- .HasComment("物料检查明细ID");
- b.Property<long?>("create_by")
- .HasColumnType("bigint")
- .HasComment("创建人id");
- b.Property<string>("create_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("创建人名称");
- b.Property<DateTime?>("create_time")
- .HasColumnType("datetime2")
- .HasComment("创建时间");
- b.Property<long?>("factory_id")
- .HasColumnType("bigint")
- .HasComment("工厂ID");
- b.Property<DateTime?>("moentry_etime")
- .HasColumnType("datetime2")
- .HasComment("生产工单结束日期");
- b.Property<string>("moentry_prdname")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("生产组织名称");
- b.Property<DateTime?>("moentry_stime")
- .HasColumnType("datetime2")
- .HasComment("生产工单开始日期");
- b.Property<DateTime?>("moentry_sys_etime")
- .HasColumnType("datetime2")
- .HasComment("系统建议完工时间");
- b.Property<DateTime?>("moentry_sys_stime")
- .HasColumnType("datetime2")
- .HasComment("系统建议开工时间");
- b.Property<string>("moentry_wrkcname")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("工作中心名称");
- b.Property<decimal?>("morder_need_time")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("工单所需工时");
- b.Property<string>("morder_no")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("生产工单编号");
- b.Property<decimal?>("morder_production_number")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("工单生产数量");
- b.Property<decimal?>("need_number")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("需求数量");
- b.Property<long?>("org_id")
- .HasColumnType("bigint")
- .HasComment("组织ID");
- b.Property<DateTime?>("reality_end_time")
- .HasColumnType("datetime2")
- .HasComment("实际结束时间");
- b.Property<DateTime?>("reality_start_time")
- .HasColumnType("datetime2")
- .HasComment("实际开始时间");
- b.Property<long>("tenant_id")
- .HasColumnType("bigint")
- .HasComment("企业ID");
- b.Property<long?>("update_by")
- .HasColumnType("bigint")
- .HasComment("修改人");
- b.Property<string>("update_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("修改人名称");
- b.Property<DateTime?>("update_time")
- .HasColumnType("datetime2")
- .HasComment("修改时间");
- b.HasKey("Id");
- b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
- b.ToTable("b_mo_order", (string)null);
- b.HasComment("生产工单明细");
- });
- modelBuilder.Entity("Business.Model.Bang.b_ooder", b =>
- {
- b.Property<long>("Id")
- .HasColumnType("bigint");
- b.Property<bool>("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted")
- .HasComment("删除标识");
- b.Property<long?>("bom_child_examine_id")
- .HasColumnType("bigint")
- .HasComment("物料检查明细ID");
- b.Property<long?>("create_by")
- .HasColumnType("bigint")
- .HasComment("创建人id");
- b.Property<string>("create_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("创建人名称");
- b.Property<DateTime?>("create_time")
- .HasColumnType("datetime2")
- .HasComment("创建时间");
- b.Property<long?>("factory_id")
- .HasColumnType("bigint")
- .HasComment("工厂ID");
- b.Property<decimal?>("morder_production_number")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("工单生产数量");
- b.Property<DateTime?>("ooentry_etime")
- .HasColumnType("datetime2")
- .HasComment("计划完工日期");
- b.Property<string>("ooentry_prdname")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("生产组织名称");
- b.Property<DateTime?>("ooentry_stime")
- .HasColumnType("datetime2")
- .HasComment("计划开工日期");
- b.Property<DateTime?>("oorder_date")
- .HasColumnType("datetime2")
- .HasComment("委外订单日期");
- b.Property<string>("oorder_no")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("工单编号");
- b.Property<long?>("org_id")
- .HasColumnType("bigint")
- .HasComment("组织ID");
- b.Property<string>("production_unit")
- .HasMaxLength(100)
- .HasColumnType("nvarchar(100)")
- .HasComment("加工单位");
- b.Property<string>("production_unit_code")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)")
- .HasComment("加工单位编码");
- b.Property<long>("tenant_id")
- .HasColumnType("bigint")
- .HasComment("企业ID");
- b.Property<long?>("update_by")
- .HasColumnType("bigint")
- .HasComment("修改人");
- b.Property<string>("update_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("修改人名称");
- b.Property<DateTime?>("update_time")
- .HasColumnType("datetime2")
- .HasComment("修改时间");
- b.HasKey("Id");
- b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
- b.ToTable("b_ooder", (string)null);
- b.HasComment("采购占用明细");
- });
- modelBuilder.Entity("Business.Model.Bang.b_order_detail", b =>
- {
- b.Property<long>("Id")
- .HasColumnType("bigint");
- b.Property<bool>("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted")
- .HasComment("删除标识");
- b.Property<string>("bom_number")
- .HasColumnType("nvarchar(450)")
- .HasComment("bom编号");
- b.Property<long?>("create_by")
- .HasColumnType("bigint")
- .HasComment("创建人id");
- b.Property<string>("create_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("创建人名称");
- b.Property<DateTime?>("create_time")
- .HasColumnType("datetime2")
- .HasComment("创建时间");
- b.Property<long?>("factory_id")
- .HasColumnType("bigint")
- .HasComment("工厂ID");
- b.Property<long>("fid")
- .HasColumnType("bigint")
- .HasComment("本级id");
- b.Property<bool?>("is_use")
- .HasColumnType("bit")
- .HasComment("是否使用此物料");
- b.Property<long?>("item_id")
- .HasColumnType("bigint")
- .HasComment("物料id");
- b.Property<string>("item_name")
- .HasColumnType("nvarchar(max)")
- .HasComment("物料名称");
- b.Property<string>("item_number")
- .HasColumnType("nvarchar(450)")
- .HasComment("物料编号");
- b.Property<DateTime?>("kitting_time")
- .HasColumnType("datetime2")
- .HasComment("齐套时间");
- b.Property<decimal?>("make_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("自制数量");
- b.Property<decimal?>("mo_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("在制占用数量");
- b.Property<string>("num")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("项次号");
- b.Property<long?>("num_order")
- .HasColumnType("bigint")
- .HasComment("排序使用");
- b.Property<long?>("order_examine_id")
- .HasColumnType("bigint")
- .HasComment("工单齐套检查id");
- b.Property<long?>("org_id")
- .HasColumnType("bigint")
- .HasComment("组织ID");
- b.Property<long?>("parent_id")
- .HasColumnType("bigint")
- .HasComment("父级");
- b.Property<decimal?>("purchase_occupy_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("采购明细占用数量");
- b.Property<decimal?>("purchase_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("采购数量");
- b.Property<decimal?>("qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("用量");
- b.Property<decimal?>("self_lack_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("本级缺料数量");
- b.Property<decimal?>("sqty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("库存数量");
- b.Property<decimal?>("subcontracting_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("委外数量");
- b.Property<string>("substitute_code")
- .HasColumnType("nvarchar(max)")
- .HasComment("群组代码");
- b.Property<int?>("substitute_mode")
- .HasColumnType("int")
- .HasComment("替代方式");
- b.Property<int?>("substitute_strategy")
- .HasColumnType("int")
- .HasComment("替代策略");
- b.Property<long>("tenant_id")
- .HasColumnType("bigint")
- .HasComment("企业ID");
- b.Property<long?>("update_by")
- .HasColumnType("bigint")
- .HasComment("修改人");
- b.Property<string>("update_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("修改人名称");
- b.Property<DateTime?>("update_time")
- .HasColumnType("datetime2")
- .HasComment("修改时间");
- b.Property<decimal?>("use_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("库存占用数量");
- b.HasKey("Id");
- b.HasIndex("order_examine_id", "bom_number", "item_number", "tenant_id", "factory_id");
- b.ToTable("b_order_detail", (string)null);
- b.HasComment("物料齐套明细");
- });
- modelBuilder.Entity("Business.Model.Bang.b_order_examine_result", b =>
- {
- b.Property<long>("Id")
- .HasColumnType("bigint");
- b.Property<bool>("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted")
- .HasComment("删除标识");
- b.Property<string>("bom_number")
- .HasColumnType("nvarchar(450)")
- .HasComment("BOM编码");
- b.Property<long?>("create_by")
- .HasColumnType("bigint")
- .HasComment("创建人id");
- b.Property<string>("create_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("创建人名称");
- b.Property<DateTime?>("create_time")
- .HasColumnType("datetime2")
- .HasComment("创建时间");
- b.Property<long?>("factory_id")
- .HasColumnType("bigint")
- .HasComment("工厂ID");
- b.Property<DateTime?>("ketting_time")
- .HasColumnType("datetime2")
- .HasComment("齐套日期");
- b.Property<decimal?>("need_qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("需要数量");
- b.Property<string>("order_no")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("生产工单编号");
- b.Property<long?>("orderid")
- .HasColumnType("bigint")
- .HasComment("工单id");
- b.Property<long?>("org_id")
- .HasColumnType("bigint")
- .HasComment("组织ID");
- b.Property<long>("tenant_id")
- .HasColumnType("bigint")
- .HasComment("企业ID");
- b.Property<DateTime?>("time")
- .HasColumnType("datetime2")
- .HasComment("开工日期");
- b.Property<int?>("type")
- .HasColumnType("int")
- .HasComment("类别");
- b.Property<long?>("update_by")
- .HasColumnType("bigint")
- .HasComment("修改人");
- b.Property<string>("update_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("修改人名称");
- b.Property<DateTime?>("update_time")
- .HasColumnType("datetime2")
- .HasComment("修改时间");
- b.HasKey("Id");
- b.HasIndex("bom_number", "order_no", "tenant_id", "factory_id");
- b.ToTable("b_order_examine_result", (string)null);
- b.HasComment("工单齐套检查");
- });
- modelBuilder.Entity("Business.Model.Bang.b_purchase", b =>
- {
- b.Property<long>("Id")
- .HasColumnType("bigint");
- b.Property<bool>("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted")
- .HasComment("删除标识");
- b.Property<long?>("bom_child_examine_id")
- .HasColumnType("bigint")
- .HasComment("物料检查明细ID");
- b.Property<long?>("create_by")
- .HasColumnType("bigint")
- .HasComment("创建人id");
- b.Property<string>("create_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("创建人名称");
- b.Property<DateTime?>("create_time")
- .HasColumnType("datetime2")
- .HasComment("创建时间");
- b.Property<long?>("factory_id")
- .HasColumnType("bigint")
- .HasComment("工厂ID");
- b.Property<bool>("isbestoptions")
- .HasColumnType("bit")
- .HasComment("最优解");
- b.Property<long?>("org_id")
- .HasColumnType("bigint")
- .HasComment("组织ID");
- b.Property<decimal?>("pr_aqty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("申请数量");
- b.Property<string>("pr_billno")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("pr单号");
- b.Property<decimal?>("pr_orderprice")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("订单价格(含税)");
- b.Property<DateTime?>("pr_parrive_date")
- .HasColumnType("datetime2")
- .HasComment("计划到达日期");
- b.Property<decimal?>("pr_price")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("采购净价(不含税)");
- b.Property<DateTime?>("pr_pur_affirm_date")
- .HasColumnType("datetime2")
- .HasComment("采购确认到货日期");
- b.Property<string>("pr_purchasename")
- .HasMaxLength(80)
- .HasColumnType("nvarchar(80)")
- .HasComment("供应商名称");
- b.Property<string>("pr_purchasenumber")
- .HasMaxLength(80)
- .HasColumnType("nvarchar(80)")
- .HasComment("供应商编码");
- b.Property<DateTime?>("pr_rarrive_date")
- .HasColumnType("datetime2")
- .HasComment("需求到货日期");
- b.Property<decimal?>("pr_rate")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("税率");
- b.Property<decimal?>("pr_rqty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("需求数量");
- b.Property<decimal?>("pr_sqty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("建议数量");
- b.Property<decimal?>("pr_sysprice")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("系统价格(含税)");
- b.Property<long>("tenant_id")
- .HasColumnType("bigint")
- .HasComment("企业ID");
- b.Property<long?>("update_by")
- .HasColumnType("bigint")
- .HasComment("修改人");
- b.Property<string>("update_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("修改人名称");
- b.Property<DateTime?>("update_time")
- .HasColumnType("datetime2")
- .HasComment("修改时间");
- b.HasKey("Id");
- b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
- b.ToTable("b_purchase", (string)null);
- b.HasComment("采购明细信息");
- });
- modelBuilder.Entity("Business.Model.Bang.b_purchase_occupy", b =>
- {
- b.Property<long>("Id")
- .HasColumnType("bigint");
- b.Property<bool>("IsDeleted")
- .ValueGeneratedOnAdd()
- .HasColumnType("bit")
- .HasDefaultValue(false)
- .HasColumnName("IsDeleted")
- .HasComment("删除标识");
- b.Property<long?>("bom_child_examine_id")
- .HasColumnType("bigint")
- .HasComment("物料检查明细ID");
- b.Property<long?>("create_by")
- .HasColumnType("bigint")
- .HasComment("创建人id");
- b.Property<string>("create_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("创建人名称");
- b.Property<DateTime?>("create_time")
- .HasColumnType("datetime2")
- .HasComment("创建时间");
- b.Property<DateTime?>("etime")
- .HasColumnType("datetime2")
- .HasComment("结束时间");
- b.Property<long?>("factory_id")
- .HasColumnType("bigint")
- .HasComment("工厂ID");
- b.Property<long?>("org_id")
- .HasColumnType("bigint")
- .HasComment("组织ID");
- b.Property<string>("po_billno")
- .HasMaxLength(80)
- .HasColumnType("nvarchar(80)")
- .HasComment("采购订单单号");
- b.Property<decimal?>("qty")
- .HasPrecision(23, 10)
- .HasColumnType("decimal(23,10)")
- .HasComment("占用量");
- b.Property<DateTime?>("stime")
- .HasColumnType("datetime2")
- .HasComment("开始时间");
- b.Property<long>("tenant_id")
- .HasColumnType("bigint")
- .HasComment("企业ID");
- b.Property<string>("type")
- .HasMaxLength(80)
- .HasColumnType("nvarchar(80)")
- .HasComment("类型");
- b.Property<long?>("update_by")
- .HasColumnType("bigint")
- .HasComment("修改人");
- b.Property<string>("update_by_name")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)")
- .HasComment("修改人名称");
- b.Property<DateTime?>("update_time")
- .HasColumnType("datetime2")
- .HasComment("修改时间");
- b.HasKey("Id");
- b.HasIndex("bom_child_examine_id", "tenant_id", "factory_id");
- b.ToTable("b_purchase_occupy", (string)null);
- b.HasComment("采购占用明细");
- });
- #pragma warning restore 612, 618
- }
- }
- }
|