BusinessMigrationDbContextModelSnapshot.cs 197 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053
  1. // <auto-generated />
  2. using System;
  3. using Business.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Metadata;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. using Volo.Abp.EntityFrameworkCore;
  9. #nullable disable
  10. namespace Business.Migrations
  11. {
  12. [DbContext(typeof(BusinessMigrationDbContext))]
  13. partial class BusinessMigrationDbContextModelSnapshot : ModelSnapshot
  14. {
  15. protected override void BuildModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder
  19. .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
  20. .HasAnnotation("ProductVersion", "6.0.5")
  21. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  22. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
  23. modelBuilder.Entity("Business.Model.Bang.b_bom_pretreatment", b =>
  24. {
  25. b.Property<long>("Id")
  26. .HasColumnType("bigint");
  27. b.Property<bool>("IsDeleted")
  28. .ValueGeneratedOnAdd()
  29. .HasColumnType("bit")
  30. .HasDefaultValue(false)
  31. .HasColumnName("IsDeleted")
  32. .HasComment("删除标识");
  33. b.Property<int>("backflush")
  34. .HasColumnType("int")
  35. .HasComment("是否倒冲");
  36. b.Property<long?>("bom_child_id")
  37. .HasColumnType("bigint")
  38. .HasComment("bom明细主键");
  39. b.Property<long?>("bom_id")
  40. .HasColumnType("bigint")
  41. .HasComment("BOMid");
  42. b.Property<string>("bom_number")
  43. .HasMaxLength(20)
  44. .HasColumnType("nvarchar(20)")
  45. .HasComment("bom编号");
  46. b.Property<long?>("create_by")
  47. .HasColumnType("bigint")
  48. .HasComment("创建人id");
  49. b.Property<string>("create_by_name")
  50. .HasMaxLength(50)
  51. .HasColumnType("nvarchar(50)")
  52. .HasComment("创建人名称");
  53. b.Property<DateTime?>("create_time")
  54. .HasColumnType("datetime2")
  55. .HasComment("创建时间");
  56. b.Property<int>("erp_cls")
  57. .HasColumnType("int")
  58. .HasComment("物料属性");
  59. b.Property<string>("erp_cls_name")
  60. .HasMaxLength(80)
  61. .HasColumnType("nvarchar(80)")
  62. .HasComment("物料属性名称");
  63. b.Property<long?>("factory_id")
  64. .HasColumnType("bigint")
  65. .HasComment("工厂ID");
  66. b.Property<long>("fid")
  67. .HasColumnType("bigint")
  68. .HasComment("本级id");
  69. b.Property<int>("haveicsubs")
  70. .HasColumnType("int")
  71. .HasComment("存在替代关系");
  72. b.Property<long?>("item_id")
  73. .HasColumnType("bigint")
  74. .HasComment("物料id");
  75. b.Property<string>("item_name")
  76. .HasMaxLength(80)
  77. .HasColumnType("nvarchar(80)")
  78. .HasComment("物料名称");
  79. b.Property<string>("item_number")
  80. .HasMaxLength(80)
  81. .HasColumnType("nvarchar(80)")
  82. .HasComment("物料编号");
  83. b.Property<int>("level")
  84. .HasColumnType("int")
  85. .HasComment("level");
  86. b.Property<string>("model")
  87. .HasMaxLength(200)
  88. .HasColumnType("nvarchar(200)")
  89. .HasComment("规格型号");
  90. b.Property<string>("num")
  91. .HasMaxLength(20)
  92. .HasColumnType("nvarchar(20)")
  93. .HasComment("项次号");
  94. b.Property<long?>("num_order")
  95. .HasColumnType("bigint")
  96. .HasComment("供排序使用");
  97. b.Property<long?>("org_id")
  98. .HasColumnType("bigint")
  99. .HasComment("组织ID");
  100. b.Property<long?>("parent_id")
  101. .HasColumnType("bigint")
  102. .HasComment("父级");
  103. b.Property<decimal?>("qty")
  104. .HasPrecision(23, 10)
  105. .HasColumnType("decimal(23,10)")
  106. .HasComment("单位用量");
  107. b.Property<long>("sourceid")
  108. .HasColumnType("bigint")
  109. .HasComment("所属BOM");
  110. b.Property<string>("substitute_code")
  111. .HasMaxLength(20)
  112. .HasColumnType("nvarchar(20)")
  113. .HasComment("群组代码");
  114. b.Property<int>("substitute_mode")
  115. .HasColumnType("int")
  116. .HasComment("替代方式");
  117. b.Property<int>("substitute_strategy")
  118. .HasColumnType("int")
  119. .HasComment("替代策略");
  120. b.Property<long>("tenant_id")
  121. .HasColumnType("bigint")
  122. .HasComment("企业ID");
  123. b.Property<int>("type")
  124. .HasColumnType("int")
  125. .HasComment("类型");
  126. b.Property<string>("unit")
  127. .HasMaxLength(80)
  128. .HasColumnType("nvarchar(80)")
  129. .HasComment("单位");
  130. b.Property<long?>("update_by")
  131. .HasColumnType("bigint")
  132. .HasComment("修改人");
  133. b.Property<string>("update_by_name")
  134. .HasMaxLength(50)
  135. .HasColumnType("nvarchar(50)")
  136. .HasComment("修改人名称");
  137. b.Property<DateTime?>("update_time")
  138. .HasColumnType("datetime2")
  139. .HasComment("修改时间");
  140. b.Property<string>("version")
  141. .HasMaxLength(80)
  142. .HasColumnType("nvarchar(80)")
  143. .HasComment("版本");
  144. b.HasKey("Id");
  145. b.ToTable("b_bom_pretreatment", (string)null);
  146. b.HasComment("Bom预处理");
  147. });
  148. modelBuilder.Entity("Business.Model.MES.IC.bom", b =>
  149. {
  150. b.Property<long>("Id")
  151. .HasColumnType("bigint");
  152. b.Property<bool>("IsDeleted")
  153. .ValueGeneratedOnAdd()
  154. .HasColumnType("bit")
  155. .HasDefaultValue(false)
  156. .HasColumnName("IsDeleted")
  157. .HasComment("删除标识");
  158. b.Property<int?>("backflush")
  159. .HasColumnType("int")
  160. .HasComment("是否倒冲");
  161. b.Property<DateTime?>("begin_day")
  162. .HasColumnType("datetime2")
  163. .HasComment("生效日期");
  164. b.Property<string>("bom_number")
  165. .HasMaxLength(20)
  166. .HasColumnType("nvarchar(20)")
  167. .HasComment("bom单编号");
  168. b.Property<DateTime?>("check_date")
  169. .HasColumnType("datetime2")
  170. .HasComment("检验时间");
  171. b.Property<string>("checker")
  172. .HasMaxLength(80)
  173. .HasColumnType("nvarchar(80)")
  174. .HasComment("检验人");
  175. b.Property<long?>("child_icitem_id")
  176. .IsRequired()
  177. .HasColumnType("bigint")
  178. .HasComment("子级物料id");
  179. b.Property<string>("child_item_name")
  180. .HasMaxLength(200)
  181. .HasColumnType("nvarchar(200)")
  182. .HasComment("子级物料名称");
  183. b.Property<string>("child_item_number")
  184. .HasMaxLength(80)
  185. .HasColumnType("nvarchar(80)")
  186. .HasComment("子级物料代码");
  187. b.Property<long?>("create_by")
  188. .HasColumnType("bigint")
  189. .HasComment("创建人id");
  190. b.Property<string>("create_by_name")
  191. .HasMaxLength(50)
  192. .HasColumnType("nvarchar(50)")
  193. .HasComment("创建人名称");
  194. b.Property<DateTime?>("create_time")
  195. .HasColumnType("datetime2")
  196. .HasComment("创建时间");
  197. b.Property<DateTime?>("end_day")
  198. .HasColumnType("datetime2")
  199. .HasComment("失效日期");
  200. b.Property<long?>("factory_id")
  201. .HasColumnType("bigint")
  202. .HasComment("工厂ID");
  203. b.Property<int?>("haveicsubs")
  204. .HasColumnType("int")
  205. .HasComment("存在替代关系");
  206. b.Property<string>("icitem_ids")
  207. .HasMaxLength(2000)
  208. .HasColumnType("nvarchar(2000)")
  209. .HasComment("组合模式");
  210. b.Property<int?>("is_replace")
  211. .HasColumnType("int")
  212. .HasComment("是否群组替代");
  213. b.Property<long?>("org_id")
  214. .HasColumnType("bigint")
  215. .HasComment("组织ID");
  216. b.Property<long>("parent_icitem_id")
  217. .HasColumnType("bigint")
  218. .HasComment("父级物料id");
  219. b.Property<string>("parent_item_name")
  220. .HasMaxLength(200)
  221. .HasColumnType("nvarchar(200)")
  222. .HasComment("父级物料名称");
  223. b.Property<string>("parent_item_number")
  224. .HasMaxLength(80)
  225. .HasColumnType("nvarchar(80)")
  226. .HasComment("父级物料代码");
  227. b.Property<string>("product_designer")
  228. .HasMaxLength(80)
  229. .HasColumnType("nvarchar(80)")
  230. .HasComment("产品设计员");
  231. b.Property<decimal?>("qty")
  232. .HasPrecision(23, 10)
  233. .HasColumnType("decimal(23,10)")
  234. .HasComment("用量");
  235. b.Property<int?>("seq")
  236. .HasColumnType("int")
  237. .HasComment("序号");
  238. b.Property<string>("substitute_code")
  239. .HasMaxLength(20)
  240. .HasColumnType("nvarchar(20)")
  241. .HasComment("群组代码");
  242. b.Property<long>("tenant_id")
  243. .HasColumnType("bigint")
  244. .HasComment("企业ID");
  245. b.Property<string>("unit")
  246. .HasMaxLength(20)
  247. .HasColumnType("nvarchar(20)")
  248. .HasComment("单位");
  249. b.Property<long?>("update_by")
  250. .HasColumnType("bigint")
  251. .HasComment("修改人");
  252. b.Property<string>("update_by_name")
  253. .HasMaxLength(50)
  254. .HasColumnType("nvarchar(50)")
  255. .HasComment("修改人名称");
  256. b.Property<DateTime?>("update_time")
  257. .HasColumnType("datetime2")
  258. .HasComment("修改时间");
  259. b.Property<int?>("use_status")
  260. .HasColumnType("int")
  261. .HasComment("使用状态");
  262. b.Property<string>("user")
  263. .HasMaxLength(20)
  264. .HasColumnType("nvarchar(20)")
  265. .HasComment("bom创建人");
  266. b.Property<DateTime?>("user_date")
  267. .HasColumnType("datetime2")
  268. .HasComment("bom创建时间");
  269. b.Property<string>("version")
  270. .HasMaxLength(80)
  271. .HasColumnType("nvarchar(80)")
  272. .HasComment("版本");
  273. b.HasKey("Id");
  274. b.HasIndex("bom_number", "parent_item_number", "child_item_number", "version", "tenant_id", "factory_id");
  275. b.ToTable("bom", (string)null);
  276. b.HasComment("物料BOM");
  277. });
  278. modelBuilder.Entity("Business.Model.MES.IC.ic_bom", b =>
  279. {
  280. b.Property<long>("Id")
  281. .HasColumnType("bigint");
  282. b.Property<bool>("IsDeleted")
  283. .ValueGeneratedOnAdd()
  284. .HasColumnType("bit")
  285. .HasDefaultValue(false)
  286. .HasColumnName("IsDeleted")
  287. .HasComment("删除标识");
  288. b.Property<DateTime?>("begin_day")
  289. .HasColumnType("datetime2")
  290. .HasComment("生效日期");
  291. b.Property<string>("biller")
  292. .HasMaxLength(80)
  293. .HasColumnType("nvarchar(80)")
  294. .HasComment("图片");
  295. b.Property<int?>("bom_num")
  296. .HasColumnType("int")
  297. .HasComment("序号");
  298. b.Property<string>("bom_number")
  299. .HasMaxLength(20)
  300. .HasColumnType("nvarchar(20)")
  301. .HasComment("bom单编号");
  302. b.Property<string>("chartnumber")
  303. .HasMaxLength(80)
  304. .HasColumnType("nvarchar(80)")
  305. .HasComment("图表编号");
  306. b.Property<DateTime?>("check_date")
  307. .HasColumnType("datetime2")
  308. .HasComment("检验时间");
  309. b.Property<string>("checker")
  310. .HasMaxLength(80)
  311. .HasColumnType("nvarchar(80)")
  312. .HasComment("检验人");
  313. b.Property<long?>("create_by")
  314. .HasColumnType("bigint")
  315. .HasComment("创建人id");
  316. b.Property<string>("create_by_name")
  317. .HasMaxLength(50)
  318. .HasColumnType("nvarchar(50)")
  319. .HasComment("创建人名称");
  320. b.Property<DateTime?>("create_time")
  321. .HasColumnType("datetime2")
  322. .HasComment("创建时间");
  323. b.Property<DateTime?>("end_day")
  324. .HasColumnType("datetime2")
  325. .HasComment("失效日期");
  326. b.Property<long?>("factory_id")
  327. .HasColumnType("bigint")
  328. .HasComment("工厂ID");
  329. b.Property<long>("icitem_id")
  330. .HasColumnType("bigint")
  331. .HasComment("物料id");
  332. b.Property<string>("item_name")
  333. .HasMaxLength(200)
  334. .HasColumnType("nvarchar(200)")
  335. .HasComment("物料名称");
  336. b.Property<string>("item_number")
  337. .HasMaxLength(80)
  338. .HasColumnType("nvarchar(80)")
  339. .HasComment("物料代码");
  340. b.Property<long?>("org_id")
  341. .HasColumnType("bigint")
  342. .HasComment("组织ID");
  343. b.Property<string>("product_designer")
  344. .HasMaxLength(80)
  345. .HasColumnType("nvarchar(80)")
  346. .HasComment("产品设计员");
  347. b.Property<string>("product_principal")
  348. .HasMaxLength(80)
  349. .HasColumnType("nvarchar(80)")
  350. .HasComment("生产负责人");
  351. b.Property<long>("tenant_id")
  352. .HasColumnType("bigint")
  353. .HasComment("企业ID");
  354. b.Property<string>("unit")
  355. .HasMaxLength(20)
  356. .HasColumnType("nvarchar(20)")
  357. .HasComment("单位");
  358. b.Property<long?>("update_by")
  359. .HasColumnType("bigint")
  360. .HasComment("修改人");
  361. b.Property<string>("update_by_name")
  362. .HasMaxLength(50)
  363. .HasColumnType("nvarchar(50)")
  364. .HasComment("修改人名称");
  365. b.Property<DateTime?>("update_time")
  366. .HasColumnType("datetime2")
  367. .HasComment("修改时间");
  368. b.Property<DateTime?>("use_date")
  369. .HasColumnType("datetime2")
  370. .HasComment("bom创建时间");
  371. b.Property<int?>("use_status")
  372. .HasColumnType("int")
  373. .HasComment("使用状态");
  374. b.Property<string>("user")
  375. .HasMaxLength(20)
  376. .HasColumnType("nvarchar(20)")
  377. .HasComment("bom创建人");
  378. b.Property<string>("version")
  379. .HasMaxLength(80)
  380. .HasColumnType("nvarchar(80)")
  381. .HasComment("版本");
  382. b.HasKey("Id");
  383. b.HasIndex("bom_number", "item_number", "version", "tenant_id", "factory_id");
  384. b.ToTable("ic_bom", (string)null);
  385. b.HasComment("物料BOM");
  386. });
  387. modelBuilder.Entity("Business.Model.MES.IC.ic_bom_child", b =>
  388. {
  389. b.Property<long>("Id")
  390. .HasColumnType("bigint");
  391. b.Property<bool>("IsDeleted")
  392. .ValueGeneratedOnAdd()
  393. .HasColumnType("bit")
  394. .HasDefaultValue(false)
  395. .HasColumnName("IsDeleted")
  396. .HasComment("删除标识");
  397. b.Property<int?>("backflush")
  398. .HasColumnType("int")
  399. .HasComment("是否倒冲");
  400. b.Property<DateTime?>("begin_day")
  401. .HasColumnType("datetime2")
  402. .HasComment("生效日期");
  403. b.Property<long?>("bom_id")
  404. .IsRequired()
  405. .HasColumnType("bigint")
  406. .HasComment("bom主键");
  407. b.Property<string>("bom_number")
  408. .HasMaxLength(20)
  409. .HasColumnType("nvarchar(20)")
  410. .HasComment("bom单编号");
  411. b.Property<int?>("child_num")
  412. .HasColumnType("int")
  413. .HasComment("序号");
  414. b.Property<long?>("create_by")
  415. .HasColumnType("bigint")
  416. .HasComment("创建人id");
  417. b.Property<string>("create_by_name")
  418. .HasMaxLength(50)
  419. .HasColumnType("nvarchar(50)")
  420. .HasComment("创建人名称");
  421. b.Property<DateTime?>("create_time")
  422. .HasColumnType("datetime2")
  423. .HasComment("创建时间");
  424. b.Property<DateTime?>("end_day")
  425. .HasColumnType("datetime2")
  426. .HasComment("失效日期");
  427. b.Property<int?>("entryid")
  428. .HasColumnType("int")
  429. .HasComment("顺序号");
  430. b.Property<int?>("erp_cls")
  431. .HasColumnType("int")
  432. .HasComment("物料属性");
  433. b.Property<long?>("factory_id")
  434. .HasColumnType("bigint")
  435. .HasComment("工厂ID");
  436. b.Property<int?>("haveicsubs")
  437. .HasColumnType("int")
  438. .HasComment("存在替代关系");
  439. b.Property<long?>("icitem_id")
  440. .IsRequired()
  441. .HasColumnType("bigint")
  442. .HasComment("物料id");
  443. b.Property<string>("icitem_ids")
  444. .HasMaxLength(2000)
  445. .HasColumnType("nvarchar(2000)")
  446. .HasComment("组合模式");
  447. b.Property<int?>("is_bom")
  448. .HasColumnType("int")
  449. .HasComment("是否是BOM");
  450. b.Property<int?>("is_replace")
  451. .HasColumnType("int")
  452. .HasComment("是否群组替代");
  453. b.Property<int?>("iskeyitem")
  454. .HasColumnType("int")
  455. .HasComment("是否关键件");
  456. b.Property<string>("item_name")
  457. .HasMaxLength(200)
  458. .HasColumnType("nvarchar(200)")
  459. .HasComment("物料名称");
  460. b.Property<string>("item_number")
  461. .HasMaxLength(80)
  462. .HasColumnType("nvarchar(80)")
  463. .HasComment("物料代码");
  464. b.Property<string>("note")
  465. .HasMaxLength(1000)
  466. .HasColumnType("nvarchar(1000)")
  467. .HasComment("备注");
  468. b.Property<DateTime?>("op_time")
  469. .HasColumnType("datetime2")
  470. .HasComment("操作时间");
  471. b.Property<long?>("org_id")
  472. .HasColumnType("bigint")
  473. .HasComment("组织ID");
  474. b.Property<decimal?>("qty")
  475. .HasPrecision(23, 10)
  476. .HasColumnType("decimal(23,10)")
  477. .HasComment("用量");
  478. b.Property<decimal?>("scrap")
  479. .HasPrecision(23, 10)
  480. .HasColumnType("decimal(23,10)")
  481. .HasComment("损耗率");
  482. b.Property<string>("substitute_code")
  483. .HasMaxLength(20)
  484. .HasColumnType("nvarchar(20)")
  485. .HasComment("群组代码");
  486. b.Property<long>("tenant_id")
  487. .HasColumnType("bigint")
  488. .HasComment("企业ID");
  489. b.Property<int?>("type")
  490. .HasColumnType("int")
  491. .HasComment("物料类型");
  492. b.Property<string>("unit")
  493. .HasMaxLength(20)
  494. .HasColumnType("nvarchar(20)")
  495. .HasComment("单位");
  496. b.Property<long?>("update_by")
  497. .HasColumnType("bigint")
  498. .HasComment("修改人");
  499. b.Property<string>("update_by_name")
  500. .HasMaxLength(50)
  501. .HasColumnType("nvarchar(50)")
  502. .HasComment("修改人名称");
  503. b.Property<DateTime?>("update_time")
  504. .HasColumnType("datetime2")
  505. .HasComment("修改时间");
  506. b.Property<int?>("use_status")
  507. .HasColumnType("int")
  508. .HasComment("使用状态");
  509. b.Property<string>("version")
  510. .HasMaxLength(80)
  511. .HasColumnType("nvarchar(80)")
  512. .HasComment("版本");
  513. b.HasKey("Id");
  514. b.HasIndex("bom_id", "bom_number", "item_number", "version", "tenant_id", "factory_id");
  515. b.ToTable("ic_bom_child", (string)null);
  516. b.HasComment("物料BOM明细");
  517. });
  518. modelBuilder.Entity("Business.Model.MES.IC.ic_factory_details", b =>
  519. {
  520. b.Property<long>("Id")
  521. .HasColumnType("bigint");
  522. b.Property<bool>("IsDeleted")
  523. .ValueGeneratedOnAdd()
  524. .HasColumnType("bit")
  525. .HasDefaultValue(false)
  526. .HasColumnName("IsDeleted")
  527. .HasComment("删除标识");
  528. b.Property<string>("back_flush_sp")
  529. .HasMaxLength(80)
  530. .HasColumnType("nvarchar(80)")
  531. .HasComment("倒冲仓位");
  532. b.Property<string>("back_flush_stock")
  533. .HasMaxLength(80)
  534. .HasColumnType("nvarchar(80)")
  535. .HasComment("倒冲仓库");
  536. b.Property<int?>("batch_manager")
  537. .HasColumnType("int")
  538. .HasComment("是否采用业务批次管理");
  539. b.Property<decimal?>("check_cycle")
  540. .HasPrecision(23, 10)
  541. .HasColumnType("decimal(23,10)")
  542. .HasComment("盘点周期");
  543. b.Property<string>("check_cycunit")
  544. .HasMaxLength(80)
  545. .HasColumnType("nvarchar(80)")
  546. .HasComment("盘点周期单位");
  547. b.Property<long?>("create_by")
  548. .HasColumnType("bigint")
  549. .HasComment("创建人id");
  550. b.Property<string>("create_by_name")
  551. .HasMaxLength(50)
  552. .HasColumnType("nvarchar(50)")
  553. .HasComment("创建人名称");
  554. b.Property<DateTime?>("create_time")
  555. .HasColumnType("datetime2")
  556. .HasComment("创建时间");
  557. b.Property<decimal?>("daily_consume")
  558. .HasPrecision(23, 10)
  559. .HasColumnType("decimal(23,10)")
  560. .HasComment("日消耗量");
  561. b.Property<int?>("days_per")
  562. .HasColumnType("int")
  563. .HasComment("每周_月第天");
  564. b.Property<long?>("default_chkloc")
  565. .HasColumnType("bigint")
  566. .HasComment("默认待检仓库");
  567. b.Property<long?>("default_chksp")
  568. .HasColumnType("bigint")
  569. .HasComment("默认待检仓位");
  570. b.Property<long?>("default_loc")
  571. .HasColumnType("bigint")
  572. .HasComment("默认仓库");
  573. b.Property<string>("default_manager")
  574. .HasMaxLength(80)
  575. .HasColumnType("nvarchar(80)")
  576. .HasComment("默认仓管员");
  577. b.Property<long?>("default_sp")
  578. .HasColumnType("bigint")
  579. .HasComment("默认仓位");
  580. b.Property<string>("factory_fode")
  581. .HasMaxLength(80)
  582. .HasColumnType("nvarchar(80)")
  583. .HasComment("工厂编码");
  584. b.Property<long?>("factory_id")
  585. .HasColumnType("bigint")
  586. .HasComment("工厂ID");
  587. b.Property<decimal?>("high_limit")
  588. .HasPrecision(23, 10)
  589. .HasColumnType("decimal(23,10)")
  590. .HasComment("最高存量");
  591. b.Property<long>("icitem_id")
  592. .HasColumnType("bigint")
  593. .HasComment("物料id");
  594. b.Property<string>("icitem_name")
  595. .HasMaxLength(80)
  596. .HasColumnType("nvarchar(80)")
  597. .HasComment("物料名称");
  598. b.Property<int?>("isbackflush")
  599. .HasColumnType("int")
  600. .HasComment("是否倒冲");
  601. b.Property<string>("item_shelve")
  602. .HasMaxLength(80)
  603. .HasColumnType("nvarchar(80)")
  604. .HasComment("货架信息");
  605. b.Property<DateTime?>("last_checkdate")
  606. .HasColumnType("datetime2")
  607. .HasComment("上次盘点日期");
  608. b.Property<decimal?>("low_limit")
  609. .HasPrecision(23, 10)
  610. .HasColumnType("decimal(23,10)")
  611. .HasComment("最低存量");
  612. b.Property<decimal?>("mat_enter_days")
  613. .HasPrecision(23, 10)
  614. .HasColumnType("decimal(23,10)")
  615. .HasComment("原材料入库时间/天");
  616. b.Property<decimal?>("minorderqty")
  617. .IsRequired()
  618. .HasPrecision(23, 10)
  619. .HasColumnType("decimal(23,10)")
  620. .HasComment("最小订单量");
  621. b.Property<decimal?>("minpackqty")
  622. .IsRequired()
  623. .HasPrecision(23, 10)
  624. .HasColumnType("decimal(23,10)")
  625. .HasComment("最小包装量");
  626. b.Property<string>("note")
  627. .HasMaxLength(1000)
  628. .HasColumnType("nvarchar(1000)")
  629. .HasComment("特殊备注");
  630. b.Property<decimal?>("order_leadtime")
  631. .IsRequired()
  632. .HasPrecision(23, 10)
  633. .HasColumnType("decimal(23,10)")
  634. .HasComment("下单前置期_天");
  635. b.Property<decimal?>("ordissu_days")
  636. .HasPrecision(23, 10)
  637. .HasColumnType("decimal(23,10)")
  638. .HasComment("工单发料时间/天");
  639. b.Property<long?>("org_id")
  640. .HasColumnType("bigint")
  641. .HasComment("组织ID");
  642. b.Property<long?>("pick_type")
  643. .HasColumnType("bigint")
  644. .HasComment("领料类型");
  645. b.Property<decimal?>("prd_out_days")
  646. .HasPrecision(23, 10)
  647. .HasColumnType("decimal(23,10)")
  648. .HasComment("成品发货时间/天");
  649. b.Property<decimal?>("prdenter_days")
  650. .HasPrecision(23, 10)
  651. .HasColumnType("decimal(23,10)")
  652. .HasComment("成品入库时间/天");
  653. b.Property<string>("product_line")
  654. .HasMaxLength(80)
  655. .HasColumnType("nvarchar(80)")
  656. .HasComment("产品线");
  657. b.Property<string>("product_principal")
  658. .HasMaxLength(80)
  659. .HasColumnType("nvarchar(80)")
  660. .HasComment("生产负责人");
  661. b.Property<decimal?>("production_leadtime")
  662. .IsRequired()
  663. .HasPrecision(23, 10)
  664. .HasColumnType("decimal(23,10)")
  665. .HasComment("生产中提前期_天");
  666. b.Property<int?>("put_integer")
  667. .HasColumnType("int")
  668. .HasComment("投料自动取整");
  669. b.Property<decimal?>("qty_max")
  670. .HasPrecision(23, 10)
  671. .HasColumnType("decimal(23,10)")
  672. .HasComment("最大订货量");
  673. b.Property<decimal?>("raw_matreceiv_days")
  674. .HasPrecision(23, 10)
  675. .HasColumnType("decimal(23,10)")
  676. .HasComment("原材料收货处理时间/天");
  677. b.Property<decimal?>("stock_leadtime")
  678. .IsRequired()
  679. .HasPrecision(23, 10)
  680. .HasColumnType("decimal(23,10)")
  681. .HasComment("仓库中提前期_天");
  682. b.Property<int?>("stock_time")
  683. .HasColumnType("int")
  684. .HasComment("是否需要库龄管理");
  685. b.Property<long>("tenant_id")
  686. .HasColumnType("bigint")
  687. .HasComment("企业ID");
  688. b.Property<decimal?>("transportation_leadtime")
  689. .IsRequired()
  690. .HasPrecision(23, 10)
  691. .HasColumnType("decimal(23,10)")
  692. .HasComment("运输中提前期_天");
  693. b.Property<long?>("update_by")
  694. .HasColumnType("bigint")
  695. .HasComment("修改人");
  696. b.Property<string>("update_by_name")
  697. .HasMaxLength(50)
  698. .HasColumnType("nvarchar(50)")
  699. .HasComment("修改人名称");
  700. b.Property<DateTime?>("update_time")
  701. .HasColumnType("datetime2")
  702. .HasComment("修改时间");
  703. b.Property<string>("warehouse_note")
  704. .HasMaxLength(1000)
  705. .HasColumnType("nvarchar(1000)")
  706. .HasComment("库存备注");
  707. b.HasKey("Id");
  708. b.HasIndex("icitem_id", "tenant_id", "factory_id");
  709. b.ToTable("ic_factory_details", (string)null);
  710. b.HasComment("工厂物料明细表");
  711. });
  712. modelBuilder.Entity("Business.Model.MES.IC.ic_item", b =>
  713. {
  714. b.Property<long>("Id")
  715. .HasColumnType("bigint");
  716. b.Property<bool>("IsDeleted")
  717. .ValueGeneratedOnAdd()
  718. .HasColumnType("bit")
  719. .HasDefaultValue(false)
  720. .HasColumnName("IsDeleted")
  721. .HasComment("删除标识");
  722. b.Property<int?>("allowbatch")
  723. .HasColumnType("int")
  724. .HasComment("批号管理");
  725. b.Property<int?>("allowmanu")
  726. .HasColumnType("int")
  727. .HasComment("允许生产");
  728. b.Property<int?>("allowout")
  729. .HasColumnType("int")
  730. .HasComment("允许委外");
  731. b.Property<int?>("allowpur")
  732. .HasColumnType("int")
  733. .HasComment("允许采购");
  734. b.Property<int?>("allowsale")
  735. .HasColumnType("int")
  736. .HasComment("允许销售");
  737. b.Property<int?>("allowserial")
  738. .HasColumnType("int")
  739. .HasComment("序列号管理");
  740. b.Property<string>("box_model")
  741. .HasMaxLength(200)
  742. .HasColumnType("nvarchar(200)")
  743. .HasComment("盒贴规格");
  744. b.Property<string>("chart_number")
  745. .HasMaxLength(80)
  746. .HasColumnType("nvarchar(80)")
  747. .HasComment("图号");
  748. b.Property<long?>("create_by")
  749. .HasColumnType("bigint")
  750. .HasComment("创建人id");
  751. b.Property<string>("create_by_name")
  752. .HasMaxLength(50)
  753. .HasColumnType("nvarchar(50)")
  754. .HasComment("创建人名称");
  755. b.Property<DateTime?>("create_time")
  756. .HasColumnType("datetime2")
  757. .HasComment("创建时间");
  758. b.Property<string>("cubic_measure")
  759. .HasMaxLength(80)
  760. .HasColumnType("nvarchar(80)")
  761. .HasComment("长度单位");
  762. b.Property<int?>("enable_warning")
  763. .HasColumnType("int")
  764. .HasComment("启用预警");
  765. b.Property<int?>("erp_cls")
  766. .HasColumnType("int")
  767. .HasComment("物料属性");
  768. b.Property<string>("erp_cls_name")
  769. .HasMaxLength(80)
  770. .HasColumnType("nvarchar(80)")
  771. .HasComment("物料属性");
  772. b.Property<string>("erp_oldnumber")
  773. .HasMaxLength(80)
  774. .HasColumnType("nvarchar(80)")
  775. .HasComment("erp旧料号");
  776. b.Property<long?>("factory_id")
  777. .HasColumnType("bigint")
  778. .HasComment("工厂ID");
  779. b.Property<string>("fms_number")
  780. .HasMaxLength(80)
  781. .HasColumnType("nvarchar(80)")
  782. .HasComment("fms旧料号");
  783. b.Property<string>("full_name")
  784. .HasMaxLength(255)
  785. .HasColumnType("nvarchar(255)")
  786. .HasComment("全名");
  787. b.Property<string>("fversion")
  788. .HasMaxLength(80)
  789. .HasColumnType("nvarchar(80)")
  790. .HasComment("版本号");
  791. b.Property<decimal?>("gross_weight")
  792. .HasPrecision(23, 10)
  793. .HasColumnType("decimal(23,10)")
  794. .HasComment("毛重");
  795. b.Property<decimal?>("height")
  796. .HasPrecision(23, 10)
  797. .HasColumnType("decimal(23,10)")
  798. .HasComment("高度");
  799. b.Property<int?>("is_equipment")
  800. .HasColumnType("int")
  801. .HasComment("是否为设备");
  802. b.Property<int?>("iskeyitem")
  803. .HasColumnType("int")
  804. .HasComment("是否关键件");
  805. b.Property<long?>("item_level")
  806. .HasColumnType("bigint")
  807. .HasComment("物料等级");
  808. b.Property<decimal?>("length")
  809. .HasPrecision(23, 10)
  810. .HasColumnType("decimal(23,10)")
  811. .HasComment("长度");
  812. b.Property<string>("maund")
  813. .HasMaxLength(80)
  814. .HasColumnType("nvarchar(80)")
  815. .HasComment("重量单位");
  816. b.Property<string>("model")
  817. .HasMaxLength(200)
  818. .HasColumnType("nvarchar(200)")
  819. .HasComment("规格型号");
  820. b.Property<string>("name")
  821. .HasMaxLength(80)
  822. .HasColumnType("nvarchar(80)")
  823. .HasComment("物料名称");
  824. b.Property<decimal?>("net_weight")
  825. .HasPrecision(23, 10)
  826. .HasColumnType("decimal(23,10)")
  827. .HasComment("净重");
  828. b.Property<string>("number")
  829. .HasMaxLength(80)
  830. .HasColumnType("nvarchar(80)")
  831. .HasComment("物料编码");
  832. b.Property<long?>("org_id")
  833. .HasColumnType("bigint")
  834. .HasComment("组织ID");
  835. b.Property<long?>("output_type_id")
  836. .HasColumnType("bigint")
  837. .HasComment("出库类型");
  838. b.Property<string>("photo")
  839. .HasMaxLength(80)
  840. .HasColumnType("nvarchar(80)")
  841. .HasComment("图片");
  842. b.Property<long?>("picktype")
  843. .HasColumnType("bigint")
  844. .HasComment("领料类型");
  845. b.Property<decimal?>("size")
  846. .HasPrecision(23, 10)
  847. .HasColumnType("decimal(23,10)")
  848. .HasComment("体积");
  849. b.Property<string>("source")
  850. .HasMaxLength(200)
  851. .HasColumnType("nvarchar(200)")
  852. .HasComment("来源");
  853. b.Property<decimal?>("standard_manhour")
  854. .HasPrecision(23, 10)
  855. .HasColumnType("decimal(23,10)")
  856. .HasComment("单位标准工时_小时");
  857. b.Property<long>("tenant_id")
  858. .HasColumnType("bigint")
  859. .HasComment("企业ID");
  860. b.Property<string>("unit")
  861. .HasMaxLength(80)
  862. .HasColumnType("nvarchar(80)")
  863. .HasComment("单位");
  864. b.Property<decimal?>("unit_qty")
  865. .HasPrecision(23, 10)
  866. .HasColumnType("decimal(23,10)")
  867. .HasComment("单位包装数量");
  868. b.Property<decimal?>("unititem_amount")
  869. .HasPrecision(23, 10)
  870. .HasColumnType("decimal(23,10)")
  871. .HasComment("单位材料定额_元");
  872. b.Property<long?>("update_by")
  873. .HasColumnType("bigint")
  874. .HasComment("修改人");
  875. b.Property<string>("update_by_name")
  876. .HasMaxLength(50)
  877. .HasColumnType("nvarchar(50)")
  878. .HasComment("修改人名称");
  879. b.Property<DateTime?>("update_time")
  880. .HasColumnType("datetime2")
  881. .HasComment("修改时间");
  882. b.Property<decimal?>("width")
  883. .HasPrecision(23, 10)
  884. .HasColumnType("decimal(23,10)")
  885. .HasComment("宽度");
  886. b.HasKey("Id");
  887. b.HasIndex("number", "name", "tenant_id", "factory_id");
  888. b.ToTable("ic_item", (string)null);
  889. b.HasComment("物料详情");
  890. });
  891. modelBuilder.Entity("Business.Model.MES.IC.ic_item_inventory", b =>
  892. {
  893. b.Property<long>("Id")
  894. .HasColumnType("bigint");
  895. b.Property<bool>("IsDeleted")
  896. .ValueGeneratedOnAdd()
  897. .HasColumnType("bit")
  898. .HasDefaultValue(false)
  899. .HasColumnName("IsDeleted")
  900. .HasComment("删除标识");
  901. b.Property<decimal?>("bal")
  902. .HasPrecision(23, 10)
  903. .HasColumnType("decimal(23,10)")
  904. .HasComment("金额");
  905. b.Property<string>("batch_no")
  906. .HasMaxLength(80)
  907. .HasColumnType("nvarchar(80)")
  908. .HasComment("批次号");
  909. b.Property<long?>("create_by")
  910. .HasColumnType("bigint")
  911. .HasComment("创建人id");
  912. b.Property<string>("create_by_name")
  913. .HasMaxLength(50)
  914. .HasColumnType("nvarchar(50)")
  915. .HasComment("创建人名称");
  916. b.Property<DateTime?>("create_time")
  917. .HasColumnType("datetime2")
  918. .HasComment("创建时间");
  919. b.Property<long?>("factory_id")
  920. .HasColumnType("bigint")
  921. .HasComment("工厂ID");
  922. b.Property<long>("icitem_stock_id")
  923. .HasColumnType("bigint")
  924. .HasComment("物料库存主键");
  925. b.Property<DateTime?>("kf_date")
  926. .HasColumnType("datetime2")
  927. .HasComment("保质期时间");
  928. b.Property<decimal?>("kf_period")
  929. .HasPrecision(23, 10)
  930. .HasColumnType("decimal(23,10)")
  931. .HasComment("保质期时长");
  932. b.Property<long?>("org_id")
  933. .HasColumnType("bigint")
  934. .HasComment("组织ID");
  935. b.Property<decimal?>("qty")
  936. .HasPrecision(23, 10)
  937. .HasColumnType("decimal(23,10)")
  938. .HasComment("数量");
  939. b.Property<decimal?>("qty_lock")
  940. .HasPrecision(23, 10)
  941. .HasColumnType("decimal(23,10)")
  942. .HasComment("锁定库存");
  943. b.Property<DateTime?>("rq")
  944. .HasColumnType("datetime2")
  945. .HasComment("日期");
  946. b.Property<decimal?>("sec_qty")
  947. .HasPrecision(23, 10)
  948. .HasColumnType("decimal(23,10)")
  949. .HasComment("安全库存");
  950. b.Property<long>("stock_id")
  951. .HasColumnType("bigint")
  952. .HasComment("仓库id");
  953. b.Property<string>("stock_name")
  954. .HasMaxLength(80)
  955. .HasColumnType("nvarchar(80)")
  956. .HasComment("仓库名称");
  957. b.Property<string>("stock_place_code")
  958. .HasMaxLength(80)
  959. .HasColumnType("nvarchar(80)")
  960. .HasComment("库位编码");
  961. b.Property<long>("stock_place_id")
  962. .HasColumnType("bigint")
  963. .HasComment("库位id");
  964. b.Property<long>("tenant_id")
  965. .HasColumnType("bigint")
  966. .HasComment("企业ID");
  967. b.Property<string>("unit")
  968. .HasMaxLength(80)
  969. .HasColumnType("nvarchar(80)")
  970. .HasComment("单位");
  971. b.Property<long?>("update_by")
  972. .HasColumnType("bigint")
  973. .HasComment("修改人");
  974. b.Property<string>("update_by_name")
  975. .HasMaxLength(50)
  976. .HasColumnType("nvarchar(50)")
  977. .HasComment("修改人名称");
  978. b.Property<DateTime?>("update_time")
  979. .HasColumnType("datetime2")
  980. .HasComment("修改时间");
  981. b.HasKey("Id");
  982. b.HasIndex("stock_id", "stock_place_id", "tenant_id", "factory_id");
  983. b.ToTable("ic_item_inventory", (string)null);
  984. b.HasComment("物料库存明细表");
  985. });
  986. modelBuilder.Entity("Business.Model.MES.IC.ic_item_stock", b =>
  987. {
  988. b.Property<long>("Id")
  989. .HasColumnType("bigint");
  990. b.Property<bool>("IsDeleted")
  991. .ValueGeneratedOnAdd()
  992. .HasColumnType("bit")
  993. .HasDefaultValue(false)
  994. .HasColumnName("IsDeleted")
  995. .HasComment("删除标识");
  996. b.Property<long?>("create_by")
  997. .HasColumnType("bigint")
  998. .HasComment("创建人id");
  999. b.Property<string>("create_by_name")
  1000. .HasMaxLength(50)
  1001. .HasColumnType("nvarchar(50)")
  1002. .HasComment("创建人名称");
  1003. b.Property<DateTime?>("create_time")
  1004. .HasColumnType("datetime2")
  1005. .HasComment("创建时间");
  1006. b.Property<string>("factory_fode")
  1007. .HasMaxLength(80)
  1008. .HasColumnType("nvarchar(80)")
  1009. .HasComment("工厂编码");
  1010. b.Property<long?>("factory_id")
  1011. .HasColumnType("bigint")
  1012. .HasComment("工厂ID");
  1013. b.Property<long>("icitem_id")
  1014. .HasColumnType("bigint")
  1015. .HasComment("物料id");
  1016. b.Property<string>("icitem_name")
  1017. .HasMaxLength(80)
  1018. .HasColumnType("nvarchar(80)")
  1019. .HasComment("物料名称");
  1020. b.Property<long?>("org_id")
  1021. .HasColumnType("bigint")
  1022. .HasComment("组织ID");
  1023. b.Property<decimal?>("quantity_in_transit")
  1024. .HasPrecision(23, 10)
  1025. .HasColumnType("decimal(23,10)")
  1026. .HasComment("调拨在途数量");
  1027. b.Property<decimal?>("sqty")
  1028. .HasPrecision(23, 10)
  1029. .HasColumnType("decimal(23,10)")
  1030. .HasComment("物料库存量");
  1031. b.Property<long>("tenant_id")
  1032. .HasColumnType("bigint")
  1033. .HasComment("企业ID");
  1034. b.Property<long?>("update_by")
  1035. .HasColumnType("bigint")
  1036. .HasComment("修改人");
  1037. b.Property<string>("update_by_name")
  1038. .HasMaxLength(50)
  1039. .HasColumnType("nvarchar(50)")
  1040. .HasComment("修改人名称");
  1041. b.Property<DateTime?>("update_time")
  1042. .HasColumnType("datetime2")
  1043. .HasComment("修改时间");
  1044. b.HasKey("Id");
  1045. b.HasIndex("icitem_id", "icitem_name", "tenant_id", "factory_id");
  1046. b.ToTable("ic_item_stock", (string)null);
  1047. b.HasComment("物料库存表");
  1048. });
  1049. modelBuilder.Entity("Business.Model.MES.IC.ic_metering_unit", b =>
  1050. {
  1051. b.Property<long>("Id")
  1052. .HasColumnType("bigint");
  1053. b.Property<bool>("IsDeleted")
  1054. .ValueGeneratedOnAdd()
  1055. .HasColumnType("bit")
  1056. .HasDefaultValue(false)
  1057. .HasColumnName("IsDeleted")
  1058. .HasComment("删除标识");
  1059. b.Property<long?>("create_by")
  1060. .HasColumnType("bigint")
  1061. .HasComment("创建人id");
  1062. b.Property<string>("create_by_name")
  1063. .HasMaxLength(50)
  1064. .HasColumnType("nvarchar(50)")
  1065. .HasComment("创建人名称");
  1066. b.Property<DateTime?>("create_time")
  1067. .HasColumnType("datetime2")
  1068. .HasComment("创建时间");
  1069. b.Property<long?>("factory_id")
  1070. .HasColumnType("bigint")
  1071. .HasComment("工厂ID");
  1072. b.Property<long>("icitem_id")
  1073. .HasColumnType("bigint")
  1074. .HasComment("物料id");
  1075. b.Property<string>("icitem_name")
  1076. .HasMaxLength(80)
  1077. .HasColumnType("nvarchar(80)")
  1078. .HasComment("物料名称");
  1079. b.Property<string>("order_unit")
  1080. .HasMaxLength(80)
  1081. .HasColumnType("nvarchar(80)")
  1082. .HasComment("采购计量单位");
  1083. b.Property<long?>("org_id")
  1084. .HasColumnType("bigint")
  1085. .HasComment("组织ID");
  1086. b.Property<string>("product_unit")
  1087. .HasMaxLength(80)
  1088. .HasColumnType("nvarchar(80)")
  1089. .HasComment("生产计量单位");
  1090. b.Property<int?>("qty_decimal")
  1091. .HasColumnType("int")
  1092. .HasComment("数量精度");
  1093. b.Property<string>("sale_unit")
  1094. .HasMaxLength(80)
  1095. .HasColumnType("nvarchar(80)")
  1096. .HasComment("销售计量单位");
  1097. b.Property<string>("store_unit")
  1098. .HasMaxLength(80)
  1099. .HasColumnType("nvarchar(80)")
  1100. .HasComment("库存计量单位");
  1101. b.Property<long>("tenant_id")
  1102. .HasColumnType("bigint")
  1103. .HasComment("企业ID");
  1104. b.Property<string>("unit")
  1105. .HasMaxLength(80)
  1106. .HasColumnType("nvarchar(80)")
  1107. .HasComment("基本计量单位");
  1108. b.Property<string>("unit_group")
  1109. .HasMaxLength(80)
  1110. .HasColumnType("nvarchar(80)")
  1111. .HasComment("计量单位组");
  1112. b.Property<long?>("update_by")
  1113. .HasColumnType("bigint")
  1114. .HasComment("修改人");
  1115. b.Property<string>("update_by_name")
  1116. .HasMaxLength(50)
  1117. .HasColumnType("nvarchar(50)")
  1118. .HasComment("修改人名称");
  1119. b.Property<DateTime?>("update_time")
  1120. .HasColumnType("datetime2")
  1121. .HasComment("修改时间");
  1122. b.HasKey("Id");
  1123. b.HasIndex("icitem_id", "icitem_name", "tenant_id", "factory_id");
  1124. b.ToTable("ic_metering_unit", (string)null);
  1125. b.HasComment("物料计量表");
  1126. });
  1127. modelBuilder.Entity("Business.Model.MES.IC.ic_plan", b =>
  1128. {
  1129. b.Property<long>("Id")
  1130. .HasColumnType("bigint");
  1131. b.Property<bool>("IsDeleted")
  1132. .ValueGeneratedOnAdd()
  1133. .HasColumnType("bit")
  1134. .HasDefaultValue(false)
  1135. .HasColumnName("IsDeleted")
  1136. .HasComment("删除标识");
  1137. b.Property<decimal?>("Shipping_date")
  1138. .HasPrecision(23, 10)
  1139. .HasColumnType("decimal(23,10)")
  1140. .HasComment("发运提前期");
  1141. b.Property<decimal?>("Warehousing_date")
  1142. .HasPrecision(23, 10)
  1143. .HasColumnType("decimal(23,10)")
  1144. .HasComment("入库提前期");
  1145. b.Property<int?>("aux_prop_plan")
  1146. .HasColumnType("int")
  1147. .HasComment("辅助属性参与计划运算");
  1148. b.Property<decimal?>("bat_change_economy")
  1149. .HasPrecision(23, 10)
  1150. .HasColumnType("decimal(23,10)")
  1151. .HasComment("变动提前期批量");
  1152. b.Property<int?>("book_plan")
  1153. .HasColumnType("int")
  1154. .HasComment("是否需要进行订补货计划的运算");
  1155. b.Property<long?>("create_by")
  1156. .HasColumnType("bigint")
  1157. .HasComment("创建人id");
  1158. b.Property<string>("create_by_name")
  1159. .HasMaxLength(50)
  1160. .HasColumnType("nvarchar(50)")
  1161. .HasComment("创建人名称");
  1162. b.Property<DateTime?>("create_time")
  1163. .HasColumnType("datetime2")
  1164. .HasComment("创建时间");
  1165. b.Property<string>("factory_code")
  1166. .HasMaxLength(80)
  1167. .HasColumnType("nvarchar(80)")
  1168. .HasComment("工厂编码");
  1169. b.Property<long?>("factory_id")
  1170. .HasColumnType("bigint")
  1171. .HasComment("工厂ID");
  1172. b.Property<decimal?>("fix_leadtime")
  1173. .HasPrecision(23, 10)
  1174. .HasColumnType("decimal(23,10)")
  1175. .HasComment("固定提前期(天)");
  1176. b.Property<long>("icitem_id")
  1177. .HasColumnType("bigint")
  1178. .HasComment("物料id");
  1179. b.Property<string>("icitem_name")
  1180. .HasMaxLength(80)
  1181. .HasColumnType("nvarchar(80)")
  1182. .HasComment("物料名称");
  1183. b.Property<int?>("isfixedreorder")
  1184. .HasColumnType("int")
  1185. .HasComment("设置为固定再订货点");
  1186. b.Property<decimal?>("lead_time")
  1187. .HasPrecision(23, 10)
  1188. .HasColumnType("decimal(23,10)")
  1189. .HasComment("变动提前期");
  1190. b.Property<decimal?>("order_inter_val")
  1191. .HasPrecision(23, 10)
  1192. .HasColumnType("decimal(23,10)")
  1193. .HasComment("订货间隔期_天");
  1194. b.Property<decimal?>("order_point")
  1195. .HasPrecision(23, 10)
  1196. .HasColumnType("decimal(23,10)")
  1197. .HasComment("再订货点");
  1198. b.Property<int?>("order_trategy")
  1199. .HasColumnType("int")
  1200. .HasComment("订货策略");
  1201. b.Property<long?>("org_id")
  1202. .HasColumnType("bigint")
  1203. .HasComment("组织ID");
  1204. b.Property<int?>("plan_trategy")
  1205. .HasColumnType("int")
  1206. .HasComment("计划策略");
  1207. b.Property<string>("planner_name")
  1208. .HasMaxLength(80)
  1209. .HasColumnType("nvarchar(80)")
  1210. .HasComment("计划员");
  1211. b.Property<string>("planner_num")
  1212. .HasMaxLength(80)
  1213. .HasColumnType("nvarchar(80)")
  1214. .HasComment("计划员_工号");
  1215. b.Property<string>("plannote")
  1216. .HasMaxLength(1000)
  1217. .HasColumnType("nvarchar(1000)")
  1218. .HasComment("计划备注");
  1219. b.Property<decimal?>("secinv")
  1220. .HasPrecision(23, 10)
  1221. .HasColumnType("decimal(23,10)")
  1222. .HasComment("安全库存数量");
  1223. b.Property<decimal?>("secinv_ratio")
  1224. .HasPrecision(23, 10)
  1225. .HasColumnType("decimal(23,10)")
  1226. .HasComment("安全库存触发采购比例");
  1227. b.Property<decimal?>("self_inspection_date")
  1228. .HasPrecision(23, 10)
  1229. .HasColumnType("decimal(23,10)")
  1230. .HasComment("自检提前期");
  1231. b.Property<long>("tenant_id")
  1232. .HasColumnType("bigint")
  1233. .HasComment("企业ID");
  1234. b.Property<decimal?>("total_tqq")
  1235. .HasPrecision(23, 10)
  1236. .HasColumnType("decimal(23,10)")
  1237. .HasComment("累计提前期");
  1238. b.Property<long?>("update_by")
  1239. .HasColumnType("bigint")
  1240. .HasComment("修改人");
  1241. b.Property<string>("update_by_name")
  1242. .HasMaxLength(50)
  1243. .HasColumnType("nvarchar(50)")
  1244. .HasComment("修改人名称");
  1245. b.Property<DateTime?>("update_time")
  1246. .HasColumnType("datetime2")
  1247. .HasComment("修改时间");
  1248. b.HasKey("Id");
  1249. b.HasIndex("icitem_id", "icitem_name", "tenant_id", "factory_id");
  1250. b.ToTable("ic_plan", (string)null);
  1251. b.HasComment("物料采购计划表");
  1252. });
  1253. modelBuilder.Entity("Business.Model.MES.IC.ic_substitute", b =>
  1254. {
  1255. b.Property<long>("Id")
  1256. .HasColumnType("bigint");
  1257. b.Property<bool>("IsDeleted")
  1258. .ValueGeneratedOnAdd()
  1259. .HasColumnType("bit")
  1260. .HasDefaultValue(false)
  1261. .HasColumnName("IsDeleted")
  1262. .HasComment("删除标识");
  1263. b.Property<long?>("create_by")
  1264. .HasColumnType("bigint")
  1265. .HasComment("创建人id");
  1266. b.Property<string>("create_by_name")
  1267. .HasMaxLength(50)
  1268. .HasColumnType("nvarchar(50)")
  1269. .HasComment("创建人名称");
  1270. b.Property<DateTime?>("create_time")
  1271. .HasColumnType("datetime2")
  1272. .HasComment("创建时间");
  1273. b.Property<long?>("factory_id")
  1274. .HasColumnType("bigint")
  1275. .HasComment("工厂ID");
  1276. b.Property<long?>("org_id")
  1277. .HasColumnType("bigint")
  1278. .HasComment("组织ID");
  1279. b.Property<string>("substitute_code")
  1280. .HasMaxLength(20)
  1281. .HasColumnType("nvarchar(20)")
  1282. .HasComment("群组代码");
  1283. b.Property<int?>("substitute_mode")
  1284. .HasColumnType("int")
  1285. .HasComment("替代方式");
  1286. b.Property<int?>("substitute_strategy")
  1287. .HasColumnType("int")
  1288. .HasComment("替代策略");
  1289. b.Property<int?>("substitute_type")
  1290. .HasColumnType("int")
  1291. .HasComment("替代类型");
  1292. b.Property<long>("tenant_id")
  1293. .HasColumnType("bigint")
  1294. .HasComment("企业ID");
  1295. b.Property<long?>("update_by")
  1296. .HasColumnType("bigint")
  1297. .HasComment("修改人");
  1298. b.Property<string>("update_by_name")
  1299. .HasMaxLength(50)
  1300. .HasColumnType("nvarchar(50)")
  1301. .HasComment("修改人名称");
  1302. b.Property<DateTime?>("update_time")
  1303. .HasColumnType("datetime2")
  1304. .HasComment("修改时间");
  1305. b.HasKey("Id");
  1306. b.HasIndex("substitute_code", "tenant_id", "factory_id");
  1307. b.ToTable("ic_substitute", (string)null);
  1308. b.HasComment("替代群组");
  1309. });
  1310. modelBuilder.Entity("Business.Model.MES.IC.ic_substitute_group", b =>
  1311. {
  1312. b.Property<long>("Id")
  1313. .HasColumnType("bigint");
  1314. b.Property<bool>("IsDeleted")
  1315. .ValueGeneratedOnAdd()
  1316. .HasColumnType("bit")
  1317. .HasDefaultValue(false)
  1318. .HasColumnName("IsDeleted")
  1319. .HasComment("删除标识");
  1320. b.Property<long?>("create_by")
  1321. .HasColumnType("bigint")
  1322. .HasComment("创建人id");
  1323. b.Property<string>("create_by_name")
  1324. .HasMaxLength(50)
  1325. .HasColumnType("nvarchar(50)")
  1326. .HasComment("创建人名称");
  1327. b.Property<DateTime?>("create_time")
  1328. .HasColumnType("datetime2")
  1329. .HasComment("创建时间");
  1330. b.Property<long?>("factory_id")
  1331. .HasColumnType("bigint")
  1332. .HasComment("工厂ID");
  1333. b.Property<int?>("main_material")
  1334. .HasColumnType("int")
  1335. .HasComment("主料/替代料");
  1336. b.Property<int?>("order_num")
  1337. .HasColumnType("int")
  1338. .HasComment("群组优先级");
  1339. b.Property<long?>("org_id")
  1340. .HasColumnType("bigint")
  1341. .HasComment("组织ID");
  1342. b.Property<string>("product_line")
  1343. .HasMaxLength(50)
  1344. .HasColumnType("nvarchar(50)")
  1345. .HasComment("产品线");
  1346. b.Property<string>("replace_name")
  1347. .HasMaxLength(50)
  1348. .HasColumnType("nvarchar(50)")
  1349. .HasComment("替代名称");
  1350. b.Property<string>("replace_relation")
  1351. .HasMaxLength(2000)
  1352. .HasColumnType("nvarchar(2000)")
  1353. .HasComment("替代关系");
  1354. b.Property<string>("replace_way")
  1355. .HasMaxLength(50)
  1356. .HasColumnType("nvarchar(50)")
  1357. .HasComment("替代方式");
  1358. b.Property<string>("substitute_code")
  1359. .HasMaxLength(20)
  1360. .HasColumnType("nvarchar(20)")
  1361. .HasComment("群组代码");
  1362. b.Property<long>("substitute_group_id")
  1363. .HasColumnType("bigint")
  1364. .HasComment("群组主键");
  1365. b.Property<long>("tenant_id")
  1366. .HasColumnType("bigint")
  1367. .HasComment("企业ID");
  1368. b.Property<long?>("update_by")
  1369. .HasColumnType("bigint")
  1370. .HasComment("修改人");
  1371. b.Property<string>("update_by_name")
  1372. .HasMaxLength(50)
  1373. .HasColumnType("nvarchar(50)")
  1374. .HasComment("修改人名称");
  1375. b.Property<DateTime?>("update_time")
  1376. .HasColumnType("datetime2")
  1377. .HasComment("修改时间");
  1378. b.Property<string>("use_model")
  1379. .HasMaxLength(5000)
  1380. .HasColumnType("nvarchar(max)")
  1381. .HasComment("使用机型");
  1382. b.HasKey("Id");
  1383. b.HasIndex("substitute_code", "tenant_id", "factory_id");
  1384. b.ToTable("ic_substitute_group", (string)null);
  1385. b.HasComment("物料替代多群组");
  1386. });
  1387. modelBuilder.Entity("Business.Model.MES.IC.ic_substitute_group_detail", b =>
  1388. {
  1389. b.Property<long>("Id")
  1390. .HasColumnType("bigint");
  1391. b.Property<bool>("IsDeleted")
  1392. .ValueGeneratedOnAdd()
  1393. .HasColumnType("bit")
  1394. .HasDefaultValue(false)
  1395. .HasColumnName("IsDeleted")
  1396. .HasComment("删除标识");
  1397. b.Property<long?>("create_by")
  1398. .HasColumnType("bigint")
  1399. .HasComment("创建人id");
  1400. b.Property<string>("create_by_name")
  1401. .HasMaxLength(50)
  1402. .HasColumnType("nvarchar(50)")
  1403. .HasComment("创建人名称");
  1404. b.Property<DateTime?>("create_time")
  1405. .HasColumnType("datetime2")
  1406. .HasComment("创建时间");
  1407. b.Property<long?>("factory_id")
  1408. .HasColumnType("bigint")
  1409. .HasComment("工厂ID");
  1410. b.Property<long>("icitem_id")
  1411. .HasColumnType("bigint")
  1412. .HasComment("物料主键");
  1413. b.Property<string>("icitem_number")
  1414. .HasMaxLength(20)
  1415. .HasColumnType("nvarchar(20)")
  1416. .HasComment("物料编码");
  1417. b.Property<int?>("ismain")
  1418. .HasColumnType("int")
  1419. .HasComment("主/替");
  1420. b.Property<long?>("org_id")
  1421. .HasColumnType("bigint")
  1422. .HasComment("组织ID");
  1423. b.Property<decimal?>("replace_qty")
  1424. .HasPrecision(23, 10)
  1425. .HasColumnType("decimal(23,10)")
  1426. .HasComment("替代数量");
  1427. b.Property<int?>("seq")
  1428. .HasColumnType("int")
  1429. .HasComment("序号");
  1430. b.Property<string>("substitute_code")
  1431. .HasMaxLength(20)
  1432. .HasColumnType("nvarchar(20)")
  1433. .HasComment("群组代码");
  1434. b.Property<long>("substitute_group_id")
  1435. .HasColumnType("bigint")
  1436. .HasComment("替代多群组主键");
  1437. b.Property<long>("tenant_id")
  1438. .HasColumnType("bigint")
  1439. .HasComment("企业ID");
  1440. b.Property<long?>("update_by")
  1441. .HasColumnType("bigint")
  1442. .HasComment("修改人");
  1443. b.Property<string>("update_by_name")
  1444. .HasMaxLength(50)
  1445. .HasColumnType("nvarchar(50)")
  1446. .HasComment("修改人名称");
  1447. b.Property<DateTime?>("update_time")
  1448. .HasColumnType("datetime2")
  1449. .HasComment("修改时间");
  1450. b.HasKey("Id");
  1451. b.HasIndex("substitute_code", "icitem_number", "tenant_id", "factory_id");
  1452. b.ToTable("ic_substitute_group_detail", (string)null);
  1453. b.HasComment("物料替代多群组明细");
  1454. });
  1455. modelBuilder.Entity("Business.Model.Production.mes_moentry", b =>
  1456. {
  1457. b.Property<long>("Id")
  1458. .HasColumnType("bigint");
  1459. b.Property<bool>("IsDeleted")
  1460. .ValueGeneratedOnAdd()
  1461. .HasColumnType("bit")
  1462. .HasDefaultValue(false)
  1463. .HasColumnName("IsDeleted")
  1464. .HasComment("删除标识");
  1465. b.Property<long?>("create_by")
  1466. .HasColumnType("bigint")
  1467. .HasComment("创建人id");
  1468. b.Property<string>("create_by_name")
  1469. .HasMaxLength(50)
  1470. .HasColumnType("nvarchar(50)")
  1471. .HasComment("创建人名称");
  1472. b.Property<DateTime?>("create_time")
  1473. .HasColumnType("datetime2")
  1474. .HasComment("创建时间");
  1475. b.Property<long?>("factory_id")
  1476. .HasColumnType("bigint")
  1477. .HasComment("工厂ID");
  1478. b.Property<string>("fbill_no")
  1479. .HasMaxLength(80)
  1480. .HasColumnType("nvarchar(80)")
  1481. .HasComment("订单编号");
  1482. b.Property<long?>("fentry_id")
  1483. .HasColumnType("bigint")
  1484. .HasComment("订单行号");
  1485. b.Property<long?>("moentry_moid")
  1486. .HasColumnType("bigint")
  1487. .HasComment("工单主表id");
  1488. b.Property<string>("moentry_mono")
  1489. .HasMaxLength(80)
  1490. .HasColumnType("nvarchar(80)")
  1491. .HasComment("工单编号");
  1492. b.Property<decimal?>("morder_production_number")
  1493. .HasPrecision(23, 10)
  1494. .HasColumnType("decimal(23,10)")
  1495. .HasComment("工单生产数量(计划数量)");
  1496. b.Property<decimal?>("need_number")
  1497. .HasPrecision(23, 10)
  1498. .HasColumnType("decimal(23,10)")
  1499. .HasComment("需求数量");
  1500. b.Property<long?>("org_id")
  1501. .HasColumnType("bigint")
  1502. .HasComment("组织ID");
  1503. b.Property<decimal?>("remaining_number")
  1504. .HasPrecision(23, 10)
  1505. .HasColumnType("decimal(23,10)")
  1506. .HasComment("剩余可用数量");
  1507. b.Property<long?>("soentry_id")
  1508. .HasColumnType("bigint")
  1509. .HasComment("订单行id");
  1510. b.Property<long>("tenant_id")
  1511. .HasColumnType("bigint")
  1512. .HasComment("企业ID");
  1513. b.Property<string>("unit")
  1514. .HasMaxLength(80)
  1515. .HasColumnType("nvarchar(80)")
  1516. .HasComment("单位");
  1517. b.Property<long?>("update_by")
  1518. .HasColumnType("bigint")
  1519. .HasComment("修改人");
  1520. b.Property<string>("update_by_name")
  1521. .HasMaxLength(50)
  1522. .HasColumnType("nvarchar(50)")
  1523. .HasComment("修改人名称");
  1524. b.Property<DateTime?>("update_time")
  1525. .HasColumnType("datetime2")
  1526. .HasComment("修改时间");
  1527. b.HasKey("Id");
  1528. b.HasIndex("moentry_moid", "moentry_mono", "tenant_id", "factory_id");
  1529. b.ToTable("mes_moentry", (string)null);
  1530. b.HasComment("生成工单子表");
  1531. });
  1532. modelBuilder.Entity("Business.Model.Production.mes_mooccupy", b =>
  1533. {
  1534. b.Property<long>("Id")
  1535. .HasColumnType("bigint");
  1536. b.Property<bool>("IsDeleted")
  1537. .ValueGeneratedOnAdd()
  1538. .HasColumnType("bit")
  1539. .HasDefaultValue(false)
  1540. .HasColumnName("IsDeleted")
  1541. .HasComment("删除标识");
  1542. b.Property<long?>("create_by")
  1543. .HasColumnType("bigint")
  1544. .HasComment("创建人id");
  1545. b.Property<string>("create_by_name")
  1546. .HasMaxLength(50)
  1547. .HasColumnType("nvarchar(50)")
  1548. .HasComment("创建人名称");
  1549. b.Property<DateTime?>("create_time")
  1550. .HasColumnType("datetime2")
  1551. .HasComment("创建时间");
  1552. b.Property<long?>("factory_id")
  1553. .HasColumnType("bigint")
  1554. .HasComment("工厂ID");
  1555. b.Property<string>("fbill_no")
  1556. .HasMaxLength(50)
  1557. .HasColumnType("nvarchar(50)")
  1558. .HasComment("订单号");
  1559. b.Property<long?>("fentry_id")
  1560. .HasColumnType("bigint")
  1561. .HasComment("行号");
  1562. b.Property<string>("fitem_name")
  1563. .IsRequired()
  1564. .HasMaxLength(500)
  1565. .HasColumnType("nvarchar(500)")
  1566. .HasComment("物料名称");
  1567. b.Property<string>("fitem_number")
  1568. .IsRequired()
  1569. .HasMaxLength(50)
  1570. .HasColumnType("nvarchar(50)")
  1571. .HasComment("物料编码");
  1572. b.Property<string>("fmodel")
  1573. .HasMaxLength(500)
  1574. .HasColumnType("nvarchar(500)")
  1575. .HasComment("规格型号");
  1576. b.Property<string>("moo_cbr")
  1577. .HasMaxLength(50)
  1578. .HasColumnType("nvarchar(50)")
  1579. .HasComment("变更人");
  1580. b.Property<string>("moo_creason")
  1581. .HasMaxLength(500)
  1582. .HasColumnType("nvarchar(500)")
  1583. .HasComment("变更原因");
  1584. b.Property<DateTime?>("moo_ctime")
  1585. .HasColumnType("datetime2")
  1586. .HasComment("变更时间");
  1587. b.Property<DateTime?>("moo_etime")
  1588. .HasColumnType("datetime2")
  1589. .HasComment("结束时间");
  1590. b.Property<long?>("moo_id_billid")
  1591. .HasColumnType("bigint")
  1592. .HasComment("订单id");
  1593. b.Property<string>("moo_id_type")
  1594. .HasMaxLength(50)
  1595. .HasColumnType("nvarchar(50)")
  1596. .HasComment("类型--原始,分配");
  1597. b.Property<string>("moo_mo")
  1598. .HasMaxLength(50)
  1599. .HasColumnType("nvarchar(50)")
  1600. .HasComment("工单号");
  1601. b.Property<long?>("moo_moid")
  1602. .HasColumnType("bigint")
  1603. .HasComment("工单id");
  1604. b.Property<decimal?>("moo_qty")
  1605. .HasPrecision(23, 10)
  1606. .HasColumnType("decimal(23,10)")
  1607. .HasComment("占用量");
  1608. b.Property<int?>("moo_state")
  1609. .HasColumnType("int")
  1610. .HasComment("占用状态-1占用 默认0");
  1611. b.Property<DateTime?>("moo_stime")
  1612. .HasColumnType("datetime2")
  1613. .HasComment("开始时间");
  1614. b.Property<long?>("org_id")
  1615. .HasColumnType("bigint")
  1616. .HasComment("组织ID");
  1617. b.Property<long>("tenant_id")
  1618. .HasColumnType("bigint")
  1619. .HasComment("企业ID");
  1620. b.Property<long?>("update_by")
  1621. .HasColumnType("bigint")
  1622. .HasComment("修改人");
  1623. b.Property<string>("update_by_name")
  1624. .HasMaxLength(50)
  1625. .HasColumnType("nvarchar(50)")
  1626. .HasComment("修改人名称");
  1627. b.Property<DateTime?>("update_time")
  1628. .HasColumnType("datetime2")
  1629. .HasComment("修改时间");
  1630. b.HasKey("Id");
  1631. b.HasIndex("moo_id_billid", "tenant_id", "factory_id");
  1632. b.ToTable("mes_mooccupy", (string)null);
  1633. b.HasComment("在制工单占用记录表");
  1634. });
  1635. modelBuilder.Entity("Business.Model.Production.mes_morder", b =>
  1636. {
  1637. b.Property<long>("Id")
  1638. .HasColumnType("bigint");
  1639. b.Property<bool>("IsDeleted")
  1640. .ValueGeneratedOnAdd()
  1641. .HasColumnType("bit")
  1642. .HasDefaultValue(false)
  1643. .HasColumnName("IsDeleted")
  1644. .HasComment("删除标识");
  1645. b.Property<string>("bom_number")
  1646. .HasMaxLength(80)
  1647. .HasColumnType("nvarchar(80)")
  1648. .HasComment("bom编码");
  1649. b.Property<DateTime?>("convey_date")
  1650. .HasColumnType("datetime2")
  1651. .HasComment("下达日期");
  1652. b.Property<long?>("create_by")
  1653. .HasColumnType("bigint")
  1654. .HasComment("创建人id");
  1655. b.Property<string>("create_by_name")
  1656. .HasMaxLength(50)
  1657. .HasColumnType("nvarchar(50)")
  1658. .HasComment("创建人名称");
  1659. b.Property<DateTime?>("create_time")
  1660. .HasColumnType("datetime2")
  1661. .HasComment("创建时间");
  1662. b.Property<long?>("factory_id")
  1663. .HasColumnType("bigint")
  1664. .HasComment("工厂ID");
  1665. b.Property<string>("fmodel")
  1666. .HasMaxLength(500)
  1667. .HasColumnType("nvarchar(500)")
  1668. .HasComment("规格型号");
  1669. b.Property<string>("fms_number")
  1670. .HasMaxLength(80)
  1671. .HasColumnType("nvarchar(80)")
  1672. .HasComment("fms旧料号");
  1673. b.Property<decimal?>("inspection_number")
  1674. .HasPrecision(23, 10)
  1675. .HasColumnType("decimal(23,10)")
  1676. .HasComment("报检数量");
  1677. b.Property<decimal?>("inventory_number")
  1678. .HasPrecision(23, 10)
  1679. .HasColumnType("decimal(23,10)")
  1680. .HasComment("入库数量");
  1681. b.Property<DateTime?>("mat_end_date")
  1682. .HasColumnType("datetime2")
  1683. .HasComment("基于物料结束时间");
  1684. b.Property<DateTime?>("mat_start_date")
  1685. .HasColumnType("datetime2")
  1686. .HasComment("基于物料开始时间");
  1687. b.Property<DateTime?>("moentry_etime")
  1688. .HasColumnType("datetime2")
  1689. .HasComment("生产工单结束日期");
  1690. b.Property<long?>("moentry_prd")
  1691. .HasColumnType("bigint")
  1692. .HasComment("生产组织id");
  1693. b.Property<string>("moentry_prdname")
  1694. .HasMaxLength(50)
  1695. .HasColumnType("nvarchar(50)")
  1696. .HasComment("生产组织名称");
  1697. b.Property<int?>("moentry_startup_status")
  1698. .HasColumnType("int")
  1699. .HasComment("启动状态");
  1700. b.Property<DateTime?>("moentry_stime")
  1701. .HasColumnType("datetime2")
  1702. .HasComment("生产工单开始日期");
  1703. b.Property<DateTime?>("moentry_sys_etime")
  1704. .HasColumnType("datetime2")
  1705. .HasComment("系统建议完工时间");
  1706. b.Property<DateTime?>("moentry_sys_stime")
  1707. .HasColumnType("datetime2")
  1708. .HasComment("系统建议开工时间");
  1709. b.Property<long?>("moentry_wrkc")
  1710. .HasColumnType("bigint")
  1711. .HasComment("工作中心id");
  1712. b.Property<string>("moentry_wrkcname")
  1713. .HasMaxLength(50)
  1714. .HasColumnType("nvarchar(50)")
  1715. .HasComment("工作中心名称");
  1716. b.Property<string>("morder_batchno")
  1717. .HasMaxLength(100)
  1718. .HasColumnType("nvarchar(100)")
  1719. .HasComment("工单批号--(批号管理的物料出入库要使用)");
  1720. b.Property<DateTime?>("morder_date")
  1721. .HasColumnType("datetime2")
  1722. .HasComment("生产工单日期");
  1723. b.Property<string>("morder_fstate")
  1724. .HasMaxLength(50)
  1725. .HasColumnType("nvarchar(50)")
  1726. .HasComment("前状态--计划、下达、完成、关闭");
  1727. b.Property<string>("morder_icitem_type")
  1728. .HasMaxLength(255)
  1729. .HasColumnType("nvarchar(255)")
  1730. .HasComment("工单所属物料类型");
  1731. b.Property<decimal?>("morder_need_time")
  1732. .HasPrecision(23, 10)
  1733. .HasColumnType("decimal(23,10)")
  1734. .HasComment("工单所需工时");
  1735. b.Property<string>("morder_no")
  1736. .IsRequired()
  1737. .HasMaxLength(50)
  1738. .HasColumnType("nvarchar(50)")
  1739. .HasComment("生产工单编号");
  1740. b.Property<decimal?>("morder_production_number")
  1741. .HasPrecision(23, 10)
  1742. .HasColumnType("decimal(23,10)")
  1743. .HasComment("工单生产数量(计划数量)");
  1744. b.Property<string>("morder_progress")
  1745. .HasMaxLength(1000)
  1746. .HasColumnType("nvarchar(1000)")
  1747. .HasComment("工单进度");
  1748. b.Property<string>("morder_state")
  1749. .HasMaxLength(50)
  1750. .HasColumnType("nvarchar(50)")
  1751. .HasComment("生产工单状态(订单状态:初始,下达,暂停、完成)");
  1752. b.Property<string>("morder_type")
  1753. .HasMaxLength(50)
  1754. .HasColumnType("nvarchar(50)")
  1755. .HasComment("生产工单类型(类型:计划工单、销售工单、委外工单、预测工单)");
  1756. b.Property<decimal?>("need_number")
  1757. .HasPrecision(23, 10)
  1758. .HasColumnType("decimal(23,10)")
  1759. .HasComment("需求数量");
  1760. b.Property<decimal?>("notice_qty")
  1761. .HasPrecision(23, 10)
  1762. .HasColumnType("decimal(23,10)")
  1763. .HasComment("已开入库通知单数量");
  1764. b.Property<long?>("org_id")
  1765. .HasColumnType("bigint")
  1766. .HasComment("组织ID");
  1767. b.Property<string>("overdue_Remark")
  1768. .HasMaxLength(255)
  1769. .HasColumnType("nvarchar(255)")
  1770. .HasComment("逾期原因备注");
  1771. b.Property<long?>("parent_id")
  1772. .HasColumnType("bigint")
  1773. .HasComment("上级工单id");
  1774. b.Property<DateTime?>("pause_time")
  1775. .HasColumnType("datetime2")
  1776. .HasComment("最近暂停时间");
  1777. b.Property<decimal?>("picking_qty")
  1778. .HasPrecision(23, 10)
  1779. .HasColumnType("decimal(23,10)")
  1780. .HasComment("已领料数量");
  1781. b.Property<DateTime?>("planner_end_date")
  1782. .HasColumnType("datetime2")
  1783. .HasComment("计划员设定结束时间");
  1784. b.Property<string>("planner_name")
  1785. .HasMaxLength(80)
  1786. .HasColumnType("nvarchar(80)")
  1787. .HasComment("计划员名称");
  1788. b.Property<string>("planner_num")
  1789. .HasMaxLength(80)
  1790. .HasColumnType("nvarchar(80)")
  1791. .HasComment("计划员工号");
  1792. b.Property<DateTime?>("planner_start_date")
  1793. .HasColumnType("datetime2")
  1794. .HasComment("计划员设定开始时间");
  1795. b.Property<string>("product_code")
  1796. .HasMaxLength(80)
  1797. .HasColumnType("nvarchar(80)")
  1798. .HasComment("产品代码");
  1799. b.Property<string>("product_name")
  1800. .HasMaxLength(500)
  1801. .HasColumnType("nvarchar(500)")
  1802. .HasComment("产品名称");
  1803. b.Property<string>("project_name")
  1804. .HasMaxLength(255)
  1805. .HasColumnType("nvarchar(255)")
  1806. .HasComment("项目名称");
  1807. b.Property<decimal?>("qualified_number")
  1808. .HasPrecision(23, 10)
  1809. .HasColumnType("decimal(23,10)")
  1810. .HasComment("合格数量");
  1811. b.Property<DateTime?>("reality_end_time")
  1812. .HasColumnType("datetime2")
  1813. .HasComment("实际结束时间");
  1814. b.Property<DateTime?>("reality_start_time")
  1815. .HasColumnType("datetime2")
  1816. .HasComment("实际开始时间");
  1817. b.Property<long?>("relation_moid")
  1818. .HasColumnType("bigint")
  1819. .HasComment("关联工单id");
  1820. b.Property<string>("relation_mono")
  1821. .HasMaxLength(50)
  1822. .HasColumnType("nvarchar(50)")
  1823. .HasComment("关联编号");
  1824. b.Property<decimal?>("remaining_number")
  1825. .HasPrecision(23, 10)
  1826. .HasColumnType("decimal(23,10)")
  1827. .HasComment("剩余可用数量");
  1828. b.Property<DateTime?>("restart_time")
  1829. .HasColumnType("datetime2")
  1830. .HasComment("最近重启时间");
  1831. b.Property<DateTime?>("start_time")
  1832. .HasColumnType("datetime2")
  1833. .HasComment("开始时间");
  1834. b.Property<long>("tenant_id")
  1835. .HasColumnType("bigint")
  1836. .HasComment("企业ID");
  1837. b.Property<string>("unit")
  1838. .HasMaxLength(80)
  1839. .HasColumnType("nvarchar(80)")
  1840. .HasComment("单位");
  1841. b.Property<long?>("update_by")
  1842. .HasColumnType("bigint")
  1843. .HasComment("修改人");
  1844. b.Property<string>("update_by_name")
  1845. .HasMaxLength(50)
  1846. .HasColumnType("nvarchar(50)")
  1847. .HasComment("修改人名称");
  1848. b.Property<DateTime?>("update_time")
  1849. .HasColumnType("datetime2")
  1850. .HasComment("修改时间");
  1851. b.Property<decimal?>("work_number")
  1852. .HasPrecision(23, 10)
  1853. .HasColumnType("decimal(23,10)")
  1854. .HasComment("报工数量");
  1855. b.Property<string>("work_order_type")
  1856. .HasMaxLength(255)
  1857. .HasColumnType("nvarchar(255)")
  1858. .HasComment("工单类型(类型:发货工单、试产工单、备库工单、常规工单、返工工单)");
  1859. b.HasKey("Id");
  1860. b.HasIndex("morder_no", "tenant_id", "factory_id");
  1861. b.ToTable("mes_morder", (string)null);
  1862. b.HasComment("工单主表");
  1863. });
  1864. modelBuilder.Entity("Business.Model.Production.mes_oorder", b =>
  1865. {
  1866. b.Property<long>("Id")
  1867. .HasColumnType("bigint");
  1868. b.Property<bool>("IsDeleted")
  1869. .ValueGeneratedOnAdd()
  1870. .HasColumnType("bit")
  1871. .HasDefaultValue(false)
  1872. .HasColumnName("IsDeleted")
  1873. .HasComment("删除标识");
  1874. b.Property<string>("bom_number")
  1875. .HasMaxLength(80)
  1876. .HasColumnType("nvarchar(80)")
  1877. .HasComment("bom编码");
  1878. b.Property<long?>("create_by")
  1879. .HasColumnType("bigint")
  1880. .HasComment("创建人id");
  1881. b.Property<string>("create_by_name")
  1882. .HasMaxLength(50)
  1883. .HasColumnType("nvarchar(50)")
  1884. .HasComment("创建人名称");
  1885. b.Property<DateTime?>("create_time")
  1886. .HasColumnType("datetime2")
  1887. .HasComment("创建时间");
  1888. b.Property<long?>("factory_id")
  1889. .HasColumnType("bigint")
  1890. .HasComment("工厂ID");
  1891. b.Property<string>("ffms_number")
  1892. .HasMaxLength(80)
  1893. .HasColumnType("nvarchar(80)")
  1894. .HasComment("fms旧料号");
  1895. b.Property<decimal?>("inspection_number")
  1896. .HasPrecision(23, 10)
  1897. .HasColumnType("decimal(23,10)")
  1898. .HasComment("报检数量");
  1899. b.Property<decimal?>("inventory_number")
  1900. .HasPrecision(23, 10)
  1901. .HasColumnType("decimal(23,10)")
  1902. .HasComment("入库数量");
  1903. b.Property<int?>("moentry_on")
  1904. .HasColumnType("int")
  1905. .HasComment("启动状态");
  1906. b.Property<decimal?>("morder_production_number")
  1907. .HasPrecision(20, 10)
  1908. .HasColumnType("decimal(20,10)")
  1909. .HasComment("工单生产数量(计划数量)");
  1910. b.Property<string>("morder_progress")
  1911. .HasMaxLength(500)
  1912. .HasColumnType("nvarchar(500)")
  1913. .HasComment("工单进度");
  1914. b.Property<int?>("need_icitem_status")
  1915. .HasColumnType("int")
  1916. .HasComment("所需物料是否充足 1-充足 0-缺料");
  1917. b.Property<decimal?>("need_number")
  1918. .HasPrecision(20, 10)
  1919. .HasColumnType("decimal(20,10)")
  1920. .HasComment("需求数量");
  1921. b.Property<decimal?>("notice_qty")
  1922. .HasPrecision(23, 10)
  1923. .HasColumnType("decimal(23,10)")
  1924. .HasComment("已开通知单数量");
  1925. b.Property<DateTime?>("ooentry_etime")
  1926. .HasColumnType("datetime2")
  1927. .HasComment("计划完工日期");
  1928. b.Property<long?>("ooentry_prd")
  1929. .HasColumnType("bigint")
  1930. .HasComment("生产组织");
  1931. b.Property<string>("ooentry_prdname")
  1932. .HasMaxLength(50)
  1933. .HasColumnType("nvarchar(50)")
  1934. .HasComment("生产组织名称");
  1935. b.Property<DateTime?>("ooentry_stime")
  1936. .HasColumnType("datetime2")
  1937. .HasComment("计划开工日期");
  1938. b.Property<long?>("ooentry_wrkc")
  1939. .HasColumnType("bigint")
  1940. .HasComment("工作中心id");
  1941. b.Property<string>("ooentry_wrkcname")
  1942. .HasMaxLength(50)
  1943. .HasColumnType("nvarchar(50)")
  1944. .HasComment("工作中心名称");
  1945. b.Property<DateTime?>("oorder_date")
  1946. .HasColumnType("datetime2")
  1947. .HasComment("委外订单日期");
  1948. b.Property<string>("oorder_no")
  1949. .HasMaxLength(50)
  1950. .HasColumnType("nvarchar(50)")
  1951. .HasComment("生产工单编号");
  1952. b.Property<string>("oorder_state")
  1953. .HasMaxLength(50)
  1954. .HasColumnType("nvarchar(50)")
  1955. .HasComment("订单状态");
  1956. b.Property<string>("oorder_type")
  1957. .HasMaxLength(80)
  1958. .HasColumnType("nvarchar(80)")
  1959. .HasComment("生产工单类型");
  1960. b.Property<long?>("org_id")
  1961. .HasColumnType("bigint")
  1962. .HasComment("组织ID");
  1963. b.Property<DateTime?>("pause_time")
  1964. .HasColumnType("datetime2")
  1965. .HasComment("最近暂停时间");
  1966. b.Property<string>("planner_name")
  1967. .HasMaxLength(80)
  1968. .HasColumnType("nvarchar(80)")
  1969. .HasComment("计划员名称");
  1970. b.Property<string>("planner_num")
  1971. .HasMaxLength(80)
  1972. .HasColumnType("nvarchar(80)")
  1973. .HasComment("计划员工号");
  1974. b.Property<string>("product_code")
  1975. .HasMaxLength(80)
  1976. .HasColumnType("nvarchar(80)")
  1977. .HasComment("产品代码");
  1978. b.Property<string>("product_name")
  1979. .HasMaxLength(500)
  1980. .HasColumnType("nvarchar(500)")
  1981. .HasComment("产品名称");
  1982. b.Property<string>("production_unit")
  1983. .HasMaxLength(100)
  1984. .HasColumnType("nvarchar(100)")
  1985. .HasComment("加工单位");
  1986. b.Property<string>("production_unit_code")
  1987. .HasMaxLength(20)
  1988. .HasColumnType("nvarchar(20)")
  1989. .HasComment("加工单位编码");
  1990. b.Property<string>("project_name")
  1991. .HasMaxLength(255)
  1992. .HasColumnType("nvarchar(255)")
  1993. .HasComment("项目名称");
  1994. b.Property<decimal?>("qualified_number")
  1995. .HasPrecision(23, 10)
  1996. .HasColumnType("decimal(23,10)")
  1997. .HasComment("合格数量");
  1998. b.Property<decimal?>("remaining_number")
  1999. .HasPrecision(20, 10)
  2000. .HasColumnType("decimal(20,10)")
  2001. .HasComment("剩余可用数量");
  2002. b.Property<DateTime?>("restart_time")
  2003. .HasColumnType("datetime2")
  2004. .HasComment("最近重启时间");
  2005. b.Property<int?>("sent_status")
  2006. .HasColumnType("int")
  2007. .HasComment("发料状态 1-待发料 2-已发料");
  2008. b.Property<long?>("sentry_id")
  2009. .HasColumnType("bigint")
  2010. .HasComment("订单行id");
  2011. b.Property<string>("specification_model")
  2012. .HasMaxLength(500)
  2013. .HasColumnType("nvarchar(500)")
  2014. .HasComment("规格型号");
  2015. b.Property<DateTime?>("start_time")
  2016. .HasColumnType("datetime2")
  2017. .HasComment("开始时间");
  2018. b.Property<long>("tenant_id")
  2019. .HasColumnType("bigint")
  2020. .HasComment("企业ID");
  2021. b.Property<string>("unit")
  2022. .HasMaxLength(80)
  2023. .HasColumnType("nvarchar(80)")
  2024. .HasComment("单位");
  2025. b.Property<long?>("update_by")
  2026. .HasColumnType("bigint")
  2027. .HasComment("修改人");
  2028. b.Property<string>("update_by_name")
  2029. .HasMaxLength(50)
  2030. .HasColumnType("nvarchar(50)")
  2031. .HasComment("修改人名称");
  2032. b.Property<DateTime?>("update_time")
  2033. .HasColumnType("datetime2")
  2034. .HasComment("修改时间");
  2035. b.Property<decimal?>("work_number")
  2036. .HasPrecision(23, 10)
  2037. .HasColumnType("decimal(23,10)")
  2038. .HasComment("报工数量");
  2039. b.HasKey("Id");
  2040. b.ToTable("mes_oorder", (string)null);
  2041. b.HasComment("委外订单表");
  2042. });
  2043. modelBuilder.Entity("Business.Model.Production.mes_stockoccupy", b =>
  2044. {
  2045. b.Property<long>("Id")
  2046. .HasColumnType("bigint");
  2047. b.Property<bool>("IsDeleted")
  2048. .ValueGeneratedOnAdd()
  2049. .HasColumnType("bit")
  2050. .HasDefaultValue(false)
  2051. .HasColumnName("IsDeleted")
  2052. .HasComment("删除标识");
  2053. b.Property<long?>("create_by")
  2054. .HasColumnType("bigint")
  2055. .HasComment("创建人id");
  2056. b.Property<string>("create_by_name")
  2057. .HasMaxLength(50)
  2058. .HasColumnType("nvarchar(50)")
  2059. .HasComment("创建人名称");
  2060. b.Property<DateTime?>("create_time")
  2061. .HasColumnType("datetime2")
  2062. .HasComment("创建时间");
  2063. b.Property<long?>("factory_id")
  2064. .HasColumnType("bigint")
  2065. .HasComment("工厂ID");
  2066. b.Property<string>("fbill_no")
  2067. .HasMaxLength(50)
  2068. .HasColumnType("nvarchar(50)")
  2069. .HasComment("订单编号");
  2070. b.Property<long?>("fentry_id")
  2071. .HasColumnType("bigint")
  2072. .HasComment("订单行号");
  2073. b.Property<string>("fitem_name")
  2074. .HasMaxLength(200)
  2075. .HasColumnType("nvarchar(200)")
  2076. .HasComment("物料名称");
  2077. b.Property<string>("fitem_number")
  2078. .HasMaxLength(50)
  2079. .HasColumnType("nvarchar(50)")
  2080. .HasComment("物料编码");
  2081. b.Property<string>("fmodel")
  2082. .HasMaxLength(200)
  2083. .HasColumnType("nvarchar(200)")
  2084. .HasComment("规格型号");
  2085. b.Property<decimal?>("occupyqty")
  2086. .HasPrecision(20, 2)
  2087. .HasColumnType("decimal(20,2)")
  2088. .HasComment("占用量");
  2089. b.Property<long?>("org_id")
  2090. .HasColumnType("bigint")
  2091. .HasComment("组织ID");
  2092. b.Property<string>("soccupy_cby")
  2093. .HasMaxLength(50)
  2094. .HasColumnType("nvarchar(50)")
  2095. .HasComment("变更人");
  2096. b.Property<string>("soccupy_creason")
  2097. .HasMaxLength(255)
  2098. .HasColumnType("nvarchar(255)")
  2099. .HasComment("变更原因");
  2100. b.Property<DateTime?>("soccupy_ctime")
  2101. .HasColumnType("datetime2")
  2102. .HasComment("变更时间");
  2103. b.Property<DateTime?>("soccupy_etime")
  2104. .HasColumnType("datetime2")
  2105. .HasComment("结束时间");
  2106. b.Property<string>("soccupy_state")
  2107. .HasMaxLength(50)
  2108. .HasColumnType("nvarchar(50)")
  2109. .HasComment("占用状态");
  2110. b.Property<DateTime?>("soccupy_stime")
  2111. .HasColumnType("datetime2")
  2112. .HasComment("开始时间");
  2113. b.Property<string>("soccupy_type")
  2114. .IsRequired()
  2115. .HasMaxLength(50)
  2116. .HasColumnType("nvarchar(50)")
  2117. .HasComment("类型");
  2118. b.Property<long?>("soentry_id")
  2119. .HasColumnType("bigint")
  2120. .HasComment("订单行id");
  2121. b.Property<long>("tenant_id")
  2122. .HasColumnType("bigint")
  2123. .HasComment("企业ID");
  2124. b.Property<long?>("update_by")
  2125. .HasColumnType("bigint")
  2126. .HasComment("修改人");
  2127. b.Property<string>("update_by_name")
  2128. .HasMaxLength(50)
  2129. .HasColumnType("nvarchar(50)")
  2130. .HasComment("修改人名称");
  2131. b.Property<DateTime?>("update_time")
  2132. .HasColumnType("datetime2")
  2133. .HasComment("修改时间");
  2134. b.Property<long>("warehouse_id")
  2135. .HasColumnType("bigint")
  2136. .HasComment("仓库id");
  2137. b.Property<string>("warehouse_name")
  2138. .HasMaxLength(80)
  2139. .HasColumnType("nvarchar(80)")
  2140. .HasComment("仓库名称");
  2141. b.Property<string>("warehouse_type")
  2142. .HasMaxLength(50)
  2143. .HasColumnType("nvarchar(50)")
  2144. .HasComment("仓库类型");
  2145. b.HasKey("Id");
  2146. b.HasIndex("fbill_no", "fitem_number", "tenant_id", "factory_id");
  2147. b.ToTable("mes_stockoccupy", (string)null);
  2148. b.HasComment("成品库存占用表");
  2149. });
  2150. modelBuilder.Entity("Business.Model.Sale.crm_customer", b =>
  2151. {
  2152. b.Property<long>("Id")
  2153. .HasColumnType("bigint");
  2154. b.Property<bool>("IsDeleted")
  2155. .ValueGeneratedOnAdd()
  2156. .HasColumnType("bit")
  2157. .HasDefaultValue(false)
  2158. .HasColumnName("IsDeleted")
  2159. .HasComment("删除标识");
  2160. b.Property<string>("address")
  2161. .HasMaxLength(255)
  2162. .HasColumnType("nvarchar(255)")
  2163. .HasComment("地址");
  2164. b.Property<int?>("carrying_aos")
  2165. .IsRequired()
  2166. .HasColumnType("int")
  2167. .HasComment("默认运输提前期_天");
  2168. b.Property<string>("city")
  2169. .HasMaxLength(255)
  2170. .HasColumnType("nvarchar(255)")
  2171. .HasComment("城市");
  2172. b.Property<string>("contact")
  2173. .HasMaxLength(80)
  2174. .HasColumnType("nvarchar(80)")
  2175. .HasComment("联系人");
  2176. b.Property<string>("corperate")
  2177. .HasMaxLength(255)
  2178. .HasColumnType("nvarchar(255)")
  2179. .HasComment("法人代表");
  2180. b.Property<string>("country")
  2181. .HasMaxLength(255)
  2182. .HasColumnType("nvarchar(255)")
  2183. .HasComment("国别地区");
  2184. b.Property<long?>("create_by")
  2185. .HasColumnType("bigint")
  2186. .HasComment("创建人id");
  2187. b.Property<string>("create_by_name")
  2188. .HasMaxLength(50)
  2189. .HasColumnType("nvarchar(50)")
  2190. .HasComment("创建人名称");
  2191. b.Property<DateTime?>("create_time")
  2192. .HasColumnType("datetime2")
  2193. .HasComment("创建时间");
  2194. b.Property<string>("currency")
  2195. .HasMaxLength(80)
  2196. .HasColumnType("nvarchar(80)")
  2197. .HasComment("结算币种");
  2198. b.Property<string>("cust_group_name")
  2199. .HasMaxLength(255)
  2200. .HasColumnType("nvarchar(255)")
  2201. .HasComment("客户分组名称");
  2202. b.Property<string>("cust_group_number")
  2203. .HasMaxLength(255)
  2204. .HasColumnType("nvarchar(255)")
  2205. .HasComment("客户分组编号");
  2206. b.Property<string>("cust_type")
  2207. .HasMaxLength(255)
  2208. .HasColumnType("nvarchar(255)")
  2209. .HasComment("客户类别");
  2210. b.Property<string>("cust_type_number")
  2211. .HasMaxLength(255)
  2212. .HasColumnType("nvarchar(255)")
  2213. .HasComment("客户类别编码");
  2214. b.Property<int?>("customer_level")
  2215. .HasMaxLength(255)
  2216. .HasColumnType("int")
  2217. .HasComment("客户级别");
  2218. b.Property<string>("customer_name")
  2219. .HasMaxLength(255)
  2220. .HasColumnType("nvarchar(255)")
  2221. .HasComment("客户名称");
  2222. b.Property<string>("customer_no")
  2223. .HasMaxLength(80)
  2224. .HasColumnType("nvarchar(80)")
  2225. .HasComment("客户编号");
  2226. b.Property<string>("email")
  2227. .HasMaxLength(80)
  2228. .HasColumnType("nvarchar(80)")
  2229. .HasComment("邮件地址");
  2230. b.Property<string>("employee_name")
  2231. .HasMaxLength(80)
  2232. .HasColumnType("nvarchar(80)")
  2233. .HasComment("专营业务员");
  2234. b.Property<string>("employee_no")
  2235. .HasMaxLength(80)
  2236. .HasColumnType("nvarchar(80)")
  2237. .HasComment("专营业务员_工号");
  2238. b.Property<long?>("factory_id")
  2239. .HasColumnType("bigint")
  2240. .HasComment("工厂ID");
  2241. b.Property<string>("mobile")
  2242. .HasMaxLength(80)
  2243. .HasColumnType("nvarchar(80)")
  2244. .HasComment("手机号码");
  2245. b.Property<DateTime?>("op_time")
  2246. .HasColumnType("datetime2")
  2247. .HasComment("操作时间");
  2248. b.Property<long?>("org_id")
  2249. .HasColumnType("bigint")
  2250. .HasComment("组织ID");
  2251. b.Property<string>("post_code")
  2252. .HasMaxLength(80)
  2253. .HasColumnType("nvarchar(80)")
  2254. .HasComment("邮政编码");
  2255. b.Property<string>("province")
  2256. .HasMaxLength(255)
  2257. .HasColumnType("nvarchar(255)")
  2258. .HasComment("省份");
  2259. b.Property<string>("region")
  2260. .HasMaxLength(255)
  2261. .HasColumnType("nvarchar(255)")
  2262. .HasComment("区");
  2263. b.Property<string>("sale_mode")
  2264. .HasMaxLength(255)
  2265. .HasColumnType("nvarchar(255)")
  2266. .HasComment("销售模式");
  2267. b.Property<string>("short_name")
  2268. .HasMaxLength(255)
  2269. .HasColumnType("nvarchar(255)")
  2270. .HasComment("客户简称");
  2271. b.Property<string>("short_number")
  2272. .HasMaxLength(255)
  2273. .HasColumnType("nvarchar(255)")
  2274. .HasComment("客户简码");
  2275. b.Property<string>("state")
  2276. .HasMaxLength(80)
  2277. .HasColumnType("nvarchar(80)")
  2278. .HasComment("状态");
  2279. b.Property<string>("telephone")
  2280. .HasMaxLength(80)
  2281. .HasColumnType("nvarchar(80)")
  2282. .HasComment("电话号码");
  2283. b.Property<long>("tenant_id")
  2284. .HasColumnType("bigint")
  2285. .HasComment("企业ID");
  2286. b.Property<long?>("update_by")
  2287. .HasColumnType("bigint")
  2288. .HasComment("修改人");
  2289. b.Property<string>("update_by_name")
  2290. .HasMaxLength(50)
  2291. .HasColumnType("nvarchar(50)")
  2292. .HasComment("修改人名称");
  2293. b.Property<DateTime?>("update_time")
  2294. .HasColumnType("datetime2")
  2295. .HasComment("修改时间");
  2296. b.Property<decimal?>("value_add_rate")
  2297. .HasPrecision(18, 10)
  2298. .HasColumnType("decimal(18,10)")
  2299. .HasComment("增值税率");
  2300. b.HasKey("Id");
  2301. b.HasIndex("customer_no", "tenant_id", "factory_id");
  2302. b.ToTable("crm_customer", (string)null);
  2303. b.HasComment("客户");
  2304. });
  2305. modelBuilder.Entity("Business.Model.Sale.crm_seorder", b =>
  2306. {
  2307. b.Property<long>("Id")
  2308. .HasColumnType("bigint");
  2309. b.Property<bool>("IsDeleted")
  2310. .ValueGeneratedOnAdd()
  2311. .HasColumnType("bit")
  2312. .HasDefaultValue(false)
  2313. .HasColumnName("IsDeleted")
  2314. .HasComment("删除标识");
  2315. b.Property<DateTime?>("audit_date")
  2316. .HasColumnType("datetime2")
  2317. .HasComment("审核日期");
  2318. b.Property<string>("auditor")
  2319. .HasMaxLength(50)
  2320. .HasColumnType("nvarchar(50)")
  2321. .HasComment("审核人");
  2322. b.Property<string>("bill_from")
  2323. .HasMaxLength(255)
  2324. .HasColumnType("nvarchar(255)")
  2325. .HasComment("订单来源");
  2326. b.Property<string>("bill_no")
  2327. .HasMaxLength(50)
  2328. .HasColumnType("nvarchar(50)")
  2329. .HasComment("订单编号");
  2330. b.Property<string>("biller")
  2331. .HasMaxLength(50)
  2332. .HasColumnType("nvarchar(50)")
  2333. .HasComment("制单人");
  2334. b.Property<bool>("closed")
  2335. .HasColumnType("bit")
  2336. .HasComment("是否关闭1关闭0未关闭");
  2337. b.Property<long?>("create_by")
  2338. .HasColumnType("bigint")
  2339. .HasComment("创建人id");
  2340. b.Property<string>("create_by_name")
  2341. .HasMaxLength(50)
  2342. .HasColumnType("nvarchar(50)")
  2343. .HasComment("创建人名称");
  2344. b.Property<long?>("create_dept")
  2345. .HasColumnType("bigint")
  2346. .HasComment("创建部门id");
  2347. b.Property<DateTime?>("create_time")
  2348. .HasColumnType("datetime2")
  2349. .HasComment("创建时间");
  2350. b.Property<int?>("currency")
  2351. .HasMaxLength(50)
  2352. .HasColumnType("int")
  2353. .HasComment("币种");
  2354. b.Property<int?>("custom_id")
  2355. .HasColumnType("int")
  2356. .HasComment("客户id");
  2357. b.Property<int?>("custom_level")
  2358. .HasMaxLength(80)
  2359. .HasColumnType("int")
  2360. .HasComment("客户级别");
  2361. b.Property<string>("custom_name")
  2362. .HasMaxLength(80)
  2363. .HasColumnType("nvarchar(80)")
  2364. .HasComment("客户名称");
  2365. b.Property<string>("custom_no")
  2366. .HasMaxLength(80)
  2367. .HasColumnType("nvarchar(80)")
  2368. .HasComment("客户编码");
  2369. b.Property<DateTime?>("date")
  2370. .HasColumnType("datetime2")
  2371. .HasComment("签订日期");
  2372. b.Property<string>("emp_name")
  2373. .HasMaxLength(50)
  2374. .HasColumnType("nvarchar(50)")
  2375. .HasComment("业务员名称");
  2376. b.Property<string>("emp_no")
  2377. .HasMaxLength(50)
  2378. .HasColumnType("nvarchar(50)")
  2379. .HasComment("业务员工号");
  2380. b.Property<decimal?>("exchange_rate")
  2381. .HasPrecision(20, 8)
  2382. .HasColumnType("decimal(20,8)")
  2383. .HasComment("汇率");
  2384. b.Property<long?>("factory_id")
  2385. .HasColumnType("bigint")
  2386. .HasComment("工厂ID");
  2387. b.Property<DateTime?>("op_time")
  2388. .HasColumnType("datetime2")
  2389. .HasComment("操作时间");
  2390. b.Property<int?>("order_type")
  2391. .HasColumnType("int")
  2392. .HasComment("订单类别(销售、计划)");
  2393. b.Property<long?>("org_id")
  2394. .HasColumnType("bigint")
  2395. .HasComment("组织ID");
  2396. b.Property<int?>("out_stock_type")
  2397. .HasColumnType("int")
  2398. .HasComment("销售出库类型");
  2399. b.Property<string>("project_code")
  2400. .HasMaxLength(255)
  2401. .HasColumnType("nvarchar(255)")
  2402. .HasComment("项目编号");
  2403. b.Property<string>("project_name")
  2404. .HasMaxLength(255)
  2405. .HasColumnType("nvarchar(255)")
  2406. .HasComment("项目名称");
  2407. b.Property<DateTime?>("rdate")
  2408. .HasColumnType("datetime2")
  2409. .HasComment("采购下单日期");
  2410. b.Property<string>("sale_dept_code")
  2411. .HasMaxLength(80)
  2412. .HasColumnType("nvarchar(80)")
  2413. .HasComment("销售部门编号");
  2414. b.Property<long?>("sale_dept_id")
  2415. .HasColumnType("bigint")
  2416. .HasComment("销售部门id");
  2417. b.Property<string>("sale_dept_name")
  2418. .HasMaxLength(80)
  2419. .HasColumnType("nvarchar(80)")
  2420. .HasComment("销售部门名称");
  2421. b.Property<int?>("sale_style")
  2422. .HasColumnType("int")
  2423. .HasComment("销售订单类型");
  2424. b.Property<string>("sale_style_no")
  2425. .HasMaxLength(80)
  2426. .HasColumnType("nvarchar(80)")
  2427. .HasComment("销售订单类型编码");
  2428. b.Property<int?>("status")
  2429. .HasColumnType("int")
  2430. .HasComment("订单状态");
  2431. b.Property<long>("tenant_id")
  2432. .HasColumnType("bigint")
  2433. .HasComment("企业ID");
  2434. b.Property<int?>("trade_type")
  2435. .HasColumnType("int")
  2436. .HasComment("贸易类型");
  2437. b.Property<long?>("update_by")
  2438. .HasColumnType("bigint")
  2439. .HasComment("修改人");
  2440. b.Property<string>("update_by_name")
  2441. .HasMaxLength(50)
  2442. .HasColumnType("nvarchar(50)")
  2443. .HasComment("修改人名称");
  2444. b.Property<DateTime?>("update_time")
  2445. .HasColumnType("datetime2")
  2446. .HasComment("修改时间");
  2447. b.Property<int?>("urgent")
  2448. .HasColumnType("int")
  2449. .HasComment("加急级别");
  2450. b.HasKey("Id");
  2451. b.HasIndex("bill_no", "tenant_id", "factory_id");
  2452. b.ToTable("crm_seorder", (string)null);
  2453. b.HasComment("销售订单表");
  2454. });
  2455. modelBuilder.Entity("Business.Model.Sale.crm_seorderentry", b =>
  2456. {
  2457. b.Property<long>("Id")
  2458. .HasColumnType("bigint");
  2459. b.Property<bool>("IsDeleted")
  2460. .ValueGeneratedOnAdd()
  2461. .HasColumnType("bit")
  2462. .HasDefaultValue(false)
  2463. .HasColumnName("IsDeleted")
  2464. .HasComment("删除标识");
  2465. b.Property<DateTime?>("adjust_date")
  2466. .HasColumnType("datetime2")
  2467. .HasComment("调整建议交期");
  2468. b.Property<decimal?>("amount")
  2469. .HasPrecision(23, 10)
  2470. .HasColumnType("decimal(23,10)")
  2471. .HasComment("金额");
  2472. b.Property<decimal?>("aux_price_discount")
  2473. .HasPrecision(23, 10)
  2474. .HasColumnType("decimal(23,10)")
  2475. .HasComment("实际含税单价");
  2476. b.Property<string>("bill_no")
  2477. .HasMaxLength(50)
  2478. .HasColumnType("nvarchar(50)")
  2479. .HasComment("销售订单编号");
  2480. b.Property<string>("bom_number")
  2481. .HasMaxLength(255)
  2482. .HasColumnType("nvarchar(255)")
  2483. .HasComment("BOM编号");
  2484. b.Property<string>("contract_no")
  2485. .HasMaxLength(50)
  2486. .HasColumnType("nvarchar(50)")
  2487. .HasComment("合同编号");
  2488. b.Property<long?>("create_by")
  2489. .HasColumnType("bigint")
  2490. .HasComment("创建人id");
  2491. b.Property<string>("create_by_name")
  2492. .HasMaxLength(50)
  2493. .HasColumnType("nvarchar(50)")
  2494. .HasComment("创建人名称");
  2495. b.Property<long?>("create_dept")
  2496. .HasColumnType("bigint")
  2497. .HasComment("创建部门id");
  2498. b.Property<DateTime?>("create_time")
  2499. .HasColumnType("datetime2")
  2500. .HasComment("创建时间");
  2501. b.Property<string>("custom_order_bill_no")
  2502. .HasMaxLength(50)
  2503. .HasColumnType("nvarchar(50)")
  2504. .HasComment("客户订单号");
  2505. b.Property<int?>("custom_order_entryid")
  2506. .HasColumnType("int")
  2507. .HasComment("客户订单行号");
  2508. b.Property<string>("custom_order_itemno")
  2509. .HasMaxLength(80)
  2510. .HasColumnType("nvarchar(80)")
  2511. .HasComment("客户料号");
  2512. b.Property<DateTime?>("date")
  2513. .HasColumnType("datetime2")
  2514. .HasComment("最终交货日期");
  2515. b.Property<decimal?>("deliver_count")
  2516. .HasPrecision(23, 10)
  2517. .HasColumnType("decimal(23,10)")
  2518. .HasComment("发货数量(已出库数量)");
  2519. b.Property<decimal?>("deliver_notice_count")
  2520. .HasPrecision(23, 10)
  2521. .HasColumnType("decimal(23,10)")
  2522. .HasComment("发货通知单数量");
  2523. b.Property<decimal?>("discount_amount")
  2524. .HasPrecision(23, 10)
  2525. .HasColumnType("decimal(23,10)")
  2526. .HasComment("折扣额");
  2527. b.Property<decimal?>("discount_rate")
  2528. .HasPrecision(23, 10)
  2529. .HasColumnType("decimal(23,10)")
  2530. .HasComment("折扣率");
  2531. b.Property<int?>("entry_seq")
  2532. .HasColumnType("int")
  2533. .HasComment("行号");
  2534. b.Property<long?>("factory_id")
  2535. .HasColumnType("bigint")
  2536. .HasComment("工厂ID");
  2537. b.Property<string>("fms_number")
  2538. .HasMaxLength(255)
  2539. .HasColumnType("nvarchar(255)")
  2540. .HasComment("FMS旧料号");
  2541. b.Property<bool?>("is_checked")
  2542. .HasColumnType("bit")
  2543. .HasComment("是否完成检测,0未完成,1完成");
  2544. b.Property<string>("item_name")
  2545. .HasMaxLength(255)
  2546. .HasColumnType("nvarchar(255)")
  2547. .HasComment("产品名称");
  2548. b.Property<string>("item_number")
  2549. .HasMaxLength(255)
  2550. .HasColumnType("nvarchar(255)")
  2551. .HasComment("产品代码");
  2552. b.Property<string>("map_name")
  2553. .HasMaxLength(255)
  2554. .HasColumnType("nvarchar(255)")
  2555. .HasComment("代码名称");
  2556. b.Property<string>("map_number")
  2557. .HasMaxLength(255)
  2558. .HasColumnType("nvarchar(255)")
  2559. .HasComment("对应代码");
  2560. b.Property<bool?>("mrp_closed")
  2561. .HasColumnType("bit")
  2562. .HasComment("mrp关闭");
  2563. b.Property<DateTime?>("op_time")
  2564. .HasColumnType("datetime2")
  2565. .HasComment("操作时间");
  2566. b.Property<long?>("org_id")
  2567. .HasColumnType("bigint")
  2568. .HasComment("组织ID");
  2569. b.Property<string>("out_stock_type")
  2570. .HasMaxLength(50)
  2571. .HasColumnType("nvarchar(50)")
  2572. .HasComment("出库类型");
  2573. b.Property<DateTime?>("plan_date")
  2574. .HasColumnType("datetime2")
  2575. .HasComment("客户要求交期");
  2576. b.Property<string>("planner_name")
  2577. .HasMaxLength(50)
  2578. .HasColumnType("nvarchar(50)")
  2579. .HasComment("计划员");
  2580. b.Property<string>("planner_no")
  2581. .HasMaxLength(50)
  2582. .HasColumnType("nvarchar(50)")
  2583. .HasComment("计划员_工号");
  2584. b.Property<decimal?>("price")
  2585. .HasPrecision(23, 10)
  2586. .HasColumnType("decimal(23,10)")
  2587. .HasComment("单价");
  2588. b.Property<string>("progress")
  2589. .HasMaxLength(255)
  2590. .HasColumnType("nvarchar(255)")
  2591. .HasComment("订单进度");
  2592. b.Property<decimal?>("qty")
  2593. .HasPrecision(20, 8)
  2594. .HasColumnType("decimal(20,8)")
  2595. .HasComment("订单数量");
  2596. b.Property<string>("remark")
  2597. .HasMaxLength(255)
  2598. .HasColumnType("nvarchar(255)")
  2599. .HasComment("备注");
  2600. b.Property<int?>("rnumber")
  2601. .HasColumnType("int")
  2602. .HasComment("评审次数");
  2603. b.Property<int?>("rstate")
  2604. .HasColumnType("int")
  2605. .HasComment("评审状态");
  2606. b.Property<string>("se_reject_reason")
  2607. .HasMaxLength(80)
  2608. .HasColumnType("nvarchar(80)")
  2609. .HasComment("业务员工号");
  2610. b.Property<long?>("seorder_id")
  2611. .HasColumnType("bigint")
  2612. .HasComment("销售订单id");
  2613. b.Property<string>("soure_bill_no")
  2614. .HasMaxLength(50)
  2615. .HasColumnType("nvarchar(50)")
  2616. .HasComment("源单编号");
  2617. b.Property<string>("specification")
  2618. .HasMaxLength(255)
  2619. .HasColumnType("nvarchar(255)")
  2620. .HasComment("规格型号");
  2621. b.Property<bool?>("state")
  2622. .HasColumnType("bit")
  2623. .HasComment("数据状态标识 0停用 1启用");
  2624. b.Property<DateTime?>("sys_capacity_date")
  2625. .HasColumnType("datetime2")
  2626. .HasComment("系统建议交期(产能)");
  2627. b.Property<DateTime?>("sys_material_date")
  2628. .HasColumnType("datetime2")
  2629. .HasComment("系统建议交期(物料)");
  2630. b.Property<decimal?>("tax_amtount")
  2631. .HasPrecision(23, 10)
  2632. .HasColumnType("decimal(23,10)")
  2633. .HasComment("销项税额");
  2634. b.Property<decimal?>("tax_price")
  2635. .HasPrecision(23, 10)
  2636. .HasColumnType("decimal(23,10)")
  2637. .HasComment("含税单价");
  2638. b.Property<decimal?>("tax_rate")
  2639. .HasPrecision(23, 10)
  2640. .HasColumnType("decimal(23,10)")
  2641. .HasComment("税率");
  2642. b.Property<long>("tenant_id")
  2643. .HasColumnType("bigint")
  2644. .HasComment("企业ID");
  2645. b.Property<decimal?>("total_amount")
  2646. .HasPrecision(23, 10)
  2647. .HasColumnType("decimal(23,10)")
  2648. .HasComment("价税合计");
  2649. b.Property<string>("unit")
  2650. .HasMaxLength(50)
  2651. .HasColumnType("nvarchar(50)")
  2652. .HasComment("单位");
  2653. b.Property<long?>("update_by")
  2654. .HasColumnType("bigint")
  2655. .HasComment("修改人");
  2656. b.Property<string>("update_by_name")
  2657. .HasMaxLength(50)
  2658. .HasColumnType("nvarchar(50)")
  2659. .HasComment("修改人名称");
  2660. b.Property<DateTime?>("update_time")
  2661. .HasColumnType("datetime2")
  2662. .HasComment("修改时间");
  2663. b.Property<int?>("urgent")
  2664. .HasColumnType("int")
  2665. .HasComment("加急级别");
  2666. b.HasKey("Id");
  2667. b.HasIndex("seorder_id", "bill_no", "item_number", "tenant_id", "factory_id");
  2668. b.ToTable("crm_seorderentry", (string)null);
  2669. b.HasComment("销售订单明细表");
  2670. });
  2671. modelBuilder.Entity("Business.Model.SRM.srm_po_list", b =>
  2672. {
  2673. b.Property<long>("Id")
  2674. .HasColumnType("bigint");
  2675. b.Property<bool>("IsDeleted")
  2676. .ValueGeneratedOnAdd()
  2677. .HasColumnType("bit")
  2678. .HasDefaultValue(false)
  2679. .HasColumnName("IsDeleted")
  2680. .HasComment("删除标识");
  2681. b.Property<long?>("create_by")
  2682. .HasColumnType("bigint")
  2683. .HasComment("创建人id");
  2684. b.Property<string>("create_by_name")
  2685. .HasMaxLength(50)
  2686. .HasColumnType("nvarchar(50)")
  2687. .HasComment("创建人名称");
  2688. b.Property<DateTime?>("create_time")
  2689. .HasColumnType("datetime2")
  2690. .HasComment("创建时间");
  2691. b.Property<long?>("currencytype")
  2692. .IsRequired()
  2693. .HasColumnType("bigint")
  2694. .HasComment("币别");
  2695. b.Property<int?>("deliveryconfirmstate")
  2696. .HasColumnType("int")
  2697. .HasComment("交期确认状态");
  2698. b.Property<decimal?>("esqty")
  2699. .HasPrecision(23, 10)
  2700. .HasColumnType("decimal(23,10)")
  2701. .HasComment("已入库数量");
  2702. b.Property<long?>("factory_id")
  2703. .HasColumnType("bigint")
  2704. .HasComment("工厂ID");
  2705. b.Property<long?>("icitem_id")
  2706. .IsRequired()
  2707. .HasColumnType("bigint")
  2708. .HasComment("物料id");
  2709. b.Property<string>("icitem_name")
  2710. .HasMaxLength(100)
  2711. .HasColumnType("nvarchar(100)")
  2712. .HasComment("物料名称");
  2713. b.Property<int?>("logisticsstate")
  2714. .HasColumnType("int")
  2715. .HasComment("物流状态");
  2716. b.Property<string>("model")
  2717. .HasMaxLength(200)
  2718. .HasColumnType("nvarchar(200)")
  2719. .HasComment("规格型号");
  2720. b.Property<decimal?>("netprice")
  2721. .HasPrecision(23, 10)
  2722. .HasColumnType("decimal(23,10)")
  2723. .HasComment("净价");
  2724. b.Property<string>("number")
  2725. .HasMaxLength(80)
  2726. .HasColumnType("nvarchar(80)")
  2727. .HasComment("物料编码");
  2728. b.Property<long?>("org_id")
  2729. .HasColumnType("bigint")
  2730. .HasComment("组织ID");
  2731. b.Property<decimal?>("plan_qty")
  2732. .HasPrecision(23, 10)
  2733. .HasColumnType("decimal(23,10)")
  2734. .HasComment("计划数量");
  2735. b.Property<string>("po_billno")
  2736. .HasMaxLength(80)
  2737. .HasColumnType("nvarchar(80)")
  2738. .HasComment("po单号");
  2739. b.Property<long?>("po_id")
  2740. .IsRequired()
  2741. .HasColumnType("bigint")
  2742. .HasComment("po单id");
  2743. b.Property<string>("po_mono")
  2744. .HasMaxLength(80)
  2745. .HasColumnType("nvarchar(80)")
  2746. .HasComment("关联工单号");
  2747. b.Property<int?>("polist_row")
  2748. .HasColumnType("int")
  2749. .HasComment("行号");
  2750. b.Property<string>("pr_billno")
  2751. .HasMaxLength(80)
  2752. .HasColumnType("nvarchar(80)")
  2753. .HasComment("pr申请单号");
  2754. b.Property<long?>("pr_id")
  2755. .IsRequired()
  2756. .HasColumnType("bigint")
  2757. .HasComment("pr申请单id");
  2758. b.Property<long?>("pr_purchase_id")
  2759. .IsRequired()
  2760. .HasColumnType("bigint")
  2761. .HasComment("供应商id");
  2762. b.Property<string>("pr_purchase_name")
  2763. .HasMaxLength(80)
  2764. .HasColumnType("nvarchar(80)")
  2765. .HasComment("供应商名称");
  2766. b.Property<decimal?>("price")
  2767. .HasPrecision(23, 10)
  2768. .HasColumnType("decimal(23,10)")
  2769. .HasComment("含税单价");
  2770. b.Property<DateTime?>("procurement_rarr_date")
  2771. .HasColumnType("datetime2")
  2772. .HasComment("采购到货日期");
  2773. b.Property<DateTime?>("pur_affirmdate")
  2774. .HasColumnType("datetime2")
  2775. .HasComment("采购确认到货日期");
  2776. b.Property<DateTime?>("purchase_date")
  2777. .HasColumnType("datetime2")
  2778. .HasComment("供应商交期");
  2779. b.Property<decimal?>("qty")
  2780. .HasPrecision(23, 10)
  2781. .HasColumnType("decimal(23,10)")
  2782. .HasComment("订单数量");
  2783. b.Property<DateTime?>("rarrdate")
  2784. .HasColumnType("datetime2")
  2785. .HasComment("需求到货日期");
  2786. b.Property<decimal?>("rate")
  2787. .HasPrecision(23, 10)
  2788. .HasColumnType("decimal(23,10)")
  2789. .HasComment("税率");
  2790. b.Property<int>("rnumber")
  2791. .HasColumnType("int")
  2792. .HasComment("评审次数");
  2793. b.Property<DateTime?>("rparrive_date")
  2794. .HasColumnType("datetime2")
  2795. .HasComment("再计划到货日期");
  2796. b.Property<decimal?>("rqty")
  2797. .HasPrecision(23, 10)
  2798. .HasColumnType("decimal(23,10)")
  2799. .HasComment("已收货数量");
  2800. b.Property<int?>("rstate")
  2801. .HasColumnType("int")
  2802. .HasComment("评审状态");
  2803. b.Property<decimal?>("shippedqty")
  2804. .HasPrecision(23, 10)
  2805. .HasColumnType("decimal(23,10)")
  2806. .HasComment("已发货数量");
  2807. b.Property<int?>("state")
  2808. .HasColumnType("int")
  2809. .HasComment("数据状态标识");
  2810. b.Property<long?>("stock_id")
  2811. .IsRequired()
  2812. .HasColumnType("bigint")
  2813. .HasComment("收货仓库id");
  2814. b.Property<string>("stock_name")
  2815. .HasMaxLength(80)
  2816. .HasColumnType("nvarchar(80)")
  2817. .HasComment("收货仓库名称");
  2818. b.Property<long>("tenant_id")
  2819. .HasColumnType("bigint")
  2820. .HasComment("企业ID");
  2821. b.Property<decimal?>("total_price")
  2822. .HasPrecision(23, 10)
  2823. .HasColumnType("decimal(23,10)")
  2824. .HasComment("总价");
  2825. b.Property<string>("unit")
  2826. .HasColumnType("nvarchar(max)")
  2827. .HasComment("单位");
  2828. b.Property<long?>("update_by")
  2829. .HasColumnType("bigint")
  2830. .HasComment("修改人");
  2831. b.Property<string>("update_by_name")
  2832. .HasMaxLength(50)
  2833. .HasColumnType("nvarchar(50)")
  2834. .HasComment("修改人名称");
  2835. b.Property<DateTime?>("update_time")
  2836. .HasColumnType("datetime2")
  2837. .HasComment("修改时间");
  2838. b.HasKey("Id");
  2839. b.HasIndex("po_billno", "number", "tenant_id", "factory_id");
  2840. b.ToTable("srm_po_list", (string)null);
  2841. b.HasComment("采购订单明细详情");
  2842. });
  2843. modelBuilder.Entity("Business.Model.SRM.srm_po_main", b =>
  2844. {
  2845. b.Property<long>("Id")
  2846. .HasColumnType("bigint");
  2847. b.Property<bool>("IsDeleted")
  2848. .ValueGeneratedOnAdd()
  2849. .HasColumnType("bit")
  2850. .HasDefaultValue(false)
  2851. .HasColumnName("IsDeleted")
  2852. .HasComment("删除标识");
  2853. b.Property<int?>("bill_type")
  2854. .HasColumnType("int")
  2855. .HasComment("金蝶单据类型值");
  2856. b.Property<int?>("confirmstate")
  2857. .HasColumnType("int")
  2858. .HasComment("确认状态");
  2859. b.Property<string>("contact")
  2860. .HasMaxLength(80)
  2861. .HasColumnType("nvarchar(80)")
  2862. .HasComment("供应商联系人");
  2863. b.Property<long?>("create_by")
  2864. .HasColumnType("bigint")
  2865. .HasComment("创建人id");
  2866. b.Property<string>("create_by_name")
  2867. .HasMaxLength(50)
  2868. .HasColumnType("nvarchar(50)")
  2869. .HasComment("创建人名称");
  2870. b.Property<DateTime?>("create_time")
  2871. .HasColumnType("datetime2")
  2872. .HasComment("创建时间");
  2873. b.Property<long?>("currency")
  2874. .IsRequired()
  2875. .HasColumnType("bigint")
  2876. .HasComment("币别");
  2877. b.Property<string>("deliveryaddress")
  2878. .HasMaxLength(200)
  2879. .HasColumnType("nvarchar(200)")
  2880. .HasComment("收货地址");
  2881. b.Property<long?>("factory_id")
  2882. .HasColumnType("bigint")
  2883. .HasComment("工厂ID");
  2884. b.Property<int?>("financialstate")
  2885. .HasColumnType("int")
  2886. .HasComment("财务状态");
  2887. b.Property<int?>("logisticsstate")
  2888. .HasColumnType("int")
  2889. .HasComment("物流状态");
  2890. b.Property<long?>("org_id")
  2891. .HasColumnType("bigint")
  2892. .HasComment("组织ID");
  2893. b.Property<string>("po_billno")
  2894. .HasMaxLength(80)
  2895. .HasColumnType("nvarchar(80)")
  2896. .HasComment("PO单号");
  2897. b.Property<long?>("po_delivery")
  2898. .IsRequired()
  2899. .HasColumnType("bigint")
  2900. .HasComment("交货方式");
  2901. b.Property<int?>("po_express")
  2902. .HasColumnType("int")
  2903. .HasComment("是否加急");
  2904. b.Property<string>("po_note")
  2905. .HasMaxLength(1000)
  2906. .HasColumnType("nvarchar(1000)")
  2907. .HasComment("备注");
  2908. b.Property<int?>("po_order_type")
  2909. .HasColumnType("int")
  2910. .HasComment("单据类型");
  2911. b.Property<string>("po_purchaser")
  2912. .HasMaxLength(80)
  2913. .HasColumnType("nvarchar(80)")
  2914. .HasComment("采购员");
  2915. b.Property<string>("po_purchaser_no")
  2916. .HasMaxLength(80)
  2917. .HasColumnType("nvarchar(80)")
  2918. .HasComment("采购员工号");
  2919. b.Property<DateTime?>("po_ssend_date")
  2920. .HasColumnType("datetime2")
  2921. .HasComment("下单日期");
  2922. b.Property<decimal?>("po_tax_rate")
  2923. .HasPrecision(23, 10)
  2924. .HasColumnType("decimal(23,10)")
  2925. .HasComment("税率");
  2926. b.Property<decimal?>("po_total")
  2927. .HasPrecision(23, 10)
  2928. .HasColumnType("decimal(23,10)")
  2929. .HasComment("订单总价");
  2930. b.Property<long?>("purchasing_orgid")
  2931. .HasColumnType("bigint")
  2932. .HasComment("采购组织id");
  2933. b.Property<string>("purchasing_orgname")
  2934. .HasMaxLength(50)
  2935. .HasColumnType("nvarchar(50)")
  2936. .HasComment("采购组织名称");
  2937. b.Property<DateTime?>("review_rtime")
  2938. .HasColumnType("datetime2")
  2939. .HasComment("评审通过时间");
  2940. b.Property<decimal?>("rnumber")
  2941. .HasPrecision(23, 10)
  2942. .HasColumnType("decimal(23,10)")
  2943. .HasComment("评审次数");
  2944. b.Property<int?>("rstate")
  2945. .HasColumnType("int")
  2946. .HasComment("评审状态");
  2947. b.Property<int?>("state")
  2948. .HasColumnType("int")
  2949. .HasComment("数据状态");
  2950. b.Property<long?>("supplier_id")
  2951. .IsRequired()
  2952. .HasColumnType("bigint")
  2953. .HasComment("供应商id");
  2954. b.Property<string>("supplier_name")
  2955. .HasMaxLength(80)
  2956. .HasColumnType("nvarchar(80)")
  2957. .HasComment("供应商名称");
  2958. b.Property<string>("supplier_no")
  2959. .HasMaxLength(80)
  2960. .HasColumnType("nvarchar(80)")
  2961. .HasComment("供应商编号");
  2962. b.Property<string>("supplierdddress")
  2963. .HasMaxLength(200)
  2964. .HasColumnType("nvarchar(200)")
  2965. .HasComment("供应地址");
  2966. b.Property<string>("suppliertelephone")
  2967. .HasMaxLength(80)
  2968. .HasColumnType("nvarchar(80)")
  2969. .HasComment("供应商联系人电话");
  2970. b.Property<string>("telephone")
  2971. .HasMaxLength(80)
  2972. .HasColumnType("nvarchar(80)")
  2973. .HasComment("采购联系人电话");
  2974. b.Property<long>("tenant_id")
  2975. .HasColumnType("bigint")
  2976. .HasComment("企业ID");
  2977. b.Property<long?>("update_by")
  2978. .HasColumnType("bigint")
  2979. .HasComment("修改人");
  2980. b.Property<string>("update_by_name")
  2981. .HasMaxLength(50)
  2982. .HasColumnType("nvarchar(50)")
  2983. .HasComment("修改人名称");
  2984. b.Property<DateTime?>("update_time")
  2985. .HasColumnType("datetime2")
  2986. .HasComment("修改时间");
  2987. b.HasKey("Id");
  2988. b.HasIndex("po_billno", "tenant_id", "factory_id");
  2989. b.ToTable("srm_po_main", (string)null);
  2990. b.HasComment("采购订单");
  2991. });
  2992. modelBuilder.Entity("Business.Model.SRM.srm_po_occupy", b =>
  2993. {
  2994. b.Property<long>("Id")
  2995. .HasColumnType("bigint");
  2996. b.Property<bool>("IsDeleted")
  2997. .ValueGeneratedOnAdd()
  2998. .HasColumnType("bit")
  2999. .HasDefaultValue(false)
  3000. .HasColumnName("IsDeleted")
  3001. .HasComment("删除标识");
  3002. b.Property<long?>("bill_no")
  3003. .IsRequired()
  3004. .HasColumnType("bigint")
  3005. .HasComment("客户订单id");
  3006. b.Property<string>("cby")
  3007. .HasMaxLength(80)
  3008. .HasColumnType("nvarchar(80)")
  3009. .HasComment("变更人");
  3010. b.Property<string>("creason")
  3011. .HasMaxLength(1000)
  3012. .HasColumnType("nvarchar(1000)")
  3013. .HasComment("变更原因");
  3014. b.Property<long?>("create_by")
  3015. .HasColumnType("bigint")
  3016. .HasComment("创建人id");
  3017. b.Property<string>("create_by_name")
  3018. .HasMaxLength(50)
  3019. .HasColumnType("nvarchar(50)")
  3020. .HasComment("创建人名称");
  3021. b.Property<DateTime?>("create_time")
  3022. .HasColumnType("datetime2")
  3023. .HasComment("创建时间");
  3024. b.Property<DateTime?>("ctime")
  3025. .HasColumnType("datetime2")
  3026. .HasComment("变更时间");
  3027. b.Property<long?>("eid")
  3028. .IsRequired()
  3029. .HasColumnType("bigint")
  3030. .HasComment("客户订单行id");
  3031. b.Property<int>("entry_id")
  3032. .HasColumnType("int")
  3033. .HasComment("行号");
  3034. b.Property<DateTime?>("etime")
  3035. .HasColumnType("datetime2")
  3036. .HasComment("结束时间");
  3037. b.Property<long?>("factory_id")
  3038. .HasColumnType("bigint")
  3039. .HasComment("工厂ID");
  3040. b.Property<long?>("org_id")
  3041. .HasColumnType("bigint")
  3042. .HasComment("组织ID");
  3043. b.Property<long?>("polist_id")
  3044. .IsRequired()
  3045. .HasColumnType("bigint")
  3046. .HasComment("采购订单id");
  3047. b.Property<int?>("polist_row")
  3048. .HasColumnType("int")
  3049. .HasComment("采购订单行号");
  3050. b.Property<decimal?>("qty")
  3051. .HasPrecision(23, 10)
  3052. .HasColumnType("decimal(23,10)")
  3053. .HasComment("占用量");
  3054. b.Property<int?>("state")
  3055. .HasColumnType("int")
  3056. .HasComment("占用状态");
  3057. b.Property<DateTime?>("stime")
  3058. .HasColumnType("datetime2")
  3059. .HasComment("开始时间");
  3060. b.Property<long>("tenant_id")
  3061. .HasColumnType("bigint")
  3062. .HasComment("企业ID");
  3063. b.Property<string>("type")
  3064. .HasMaxLength(80)
  3065. .HasColumnType("nvarchar(80)")
  3066. .HasComment("类型");
  3067. b.Property<long?>("update_by")
  3068. .HasColumnType("bigint")
  3069. .HasComment("修改人");
  3070. b.Property<string>("update_by_name")
  3071. .HasMaxLength(50)
  3072. .HasColumnType("nvarchar(50)")
  3073. .HasComment("修改人名称");
  3074. b.Property<DateTime?>("update_time")
  3075. .HasColumnType("datetime2")
  3076. .HasComment("修改时间");
  3077. b.HasKey("Id");
  3078. b.HasIndex("polist_id", "tenant_id", "factory_id");
  3079. b.ToTable("srm_po_occupy", (string)null);
  3080. b.HasComment("采购订单占用详情");
  3081. });
  3082. modelBuilder.Entity("Business.Model.SRM.srm_pr_main", b =>
  3083. {
  3084. b.Property<long>("Id")
  3085. .HasColumnType("bigint");
  3086. b.Property<bool>("IsDeleted")
  3087. .ValueGeneratedOnAdd()
  3088. .HasColumnType("bit")
  3089. .HasDefaultValue(false)
  3090. .HasColumnName("IsDeleted")
  3091. .HasComment("删除标识");
  3092. b.Property<long?>("create_by")
  3093. .HasColumnType("bigint")
  3094. .HasComment("创建人id");
  3095. b.Property<string>("create_by_name")
  3096. .HasMaxLength(50)
  3097. .HasColumnType("nvarchar(50)")
  3098. .HasComment("创建人名称");
  3099. b.Property<DateTime?>("create_time")
  3100. .HasColumnType("datetime2")
  3101. .HasComment("创建时间");
  3102. b.Property<long?>("currencytype")
  3103. .IsRequired()
  3104. .HasColumnType("bigint")
  3105. .HasComment("币种");
  3106. b.Property<int?>("entity_id")
  3107. .HasColumnType("int")
  3108. .HasComment("工单行号");
  3109. b.Property<long?>("factory_id")
  3110. .HasColumnType("bigint")
  3111. .HasComment("工厂ID");
  3112. b.Property<long?>("icitem_id")
  3113. .IsRequired()
  3114. .HasColumnType("bigint")
  3115. .HasComment("物料id");
  3116. b.Property<string>("icitem_name")
  3117. .HasMaxLength(80)
  3118. .HasColumnType("nvarchar(80)")
  3119. .HasComment("物料名称");
  3120. b.Property<decimal?>("old_apply_aqty")
  3121. .HasPrecision(23, 10)
  3122. .HasColumnType("decimal(23,10)")
  3123. .HasComment("已申请数量");
  3124. b.Property<long?>("org_id")
  3125. .HasColumnType("bigint")
  3126. .HasComment("组织ID");
  3127. b.Property<decimal?>("pr_aqty")
  3128. .HasPrecision(23, 10)
  3129. .HasColumnType("decimal(23,10)")
  3130. .HasComment("申请数量");
  3131. b.Property<string>("pr_billno")
  3132. .HasMaxLength(80)
  3133. .HasColumnType("nvarchar(80)")
  3134. .HasComment("pr单号");
  3135. b.Property<DateTime?>("pr_bsarrive_date")
  3136. .HasColumnType("datetime2")
  3137. .HasComment("采购员建议到货日期");
  3138. b.Property<string>("pr_mono")
  3139. .HasMaxLength(80)
  3140. .HasColumnType("nvarchar(80)")
  3141. .HasComment("关联工单号");
  3142. b.Property<DateTime?>("pr_oarrive_date")
  3143. .HasColumnType("datetime2")
  3144. .HasComment("订单到货日期");
  3145. b.Property<int?>("pr_order_type")
  3146. .HasColumnType("int")
  3147. .HasComment("单据类型");
  3148. b.Property<decimal?>("pr_orderprice")
  3149. .HasPrecision(23, 10)
  3150. .HasColumnType("decimal(23,10)")
  3151. .HasComment("订单价格(含税)");
  3152. b.Property<DateTime?>("pr_parrive_date")
  3153. .HasColumnType("datetime2")
  3154. .HasComment("计划到达日期");
  3155. b.Property<decimal?>("pr_price")
  3156. .HasPrecision(23, 10)
  3157. .HasColumnType("decimal(23,10)")
  3158. .HasComment("采购净价(不含税)");
  3159. b.Property<DateTime?>("pr_psend_date")
  3160. .HasColumnType("datetime2")
  3161. .HasComment("计划下单日期");
  3162. b.Property<DateTime?>("pr_pur_affirm_date")
  3163. .HasColumnType("datetime2")
  3164. .HasComment("采购确认到货日期");
  3165. b.Property<long?>("pr_purchaseid")
  3166. .IsRequired()
  3167. .HasColumnType("bigint")
  3168. .HasComment("供应商id");
  3169. b.Property<string>("pr_purchasename")
  3170. .HasMaxLength(80)
  3171. .HasColumnType("nvarchar(80)")
  3172. .HasComment("供应商名称");
  3173. b.Property<string>("pr_purchasenumber")
  3174. .HasMaxLength(80)
  3175. .HasColumnType("nvarchar(80)")
  3176. .HasComment("供应商编码");
  3177. b.Property<string>("pr_purchaser")
  3178. .HasMaxLength(80)
  3179. .HasColumnType("nvarchar(80)")
  3180. .HasComment("采购员");
  3181. b.Property<string>("pr_purchaser_num")
  3182. .HasMaxLength(80)
  3183. .HasColumnType("nvarchar(80)")
  3184. .HasComment("采购员工号");
  3185. b.Property<DateTime?>("pr_rarrive_date")
  3186. .HasColumnType("datetime2")
  3187. .HasComment("需求到货日期");
  3188. b.Property<decimal?>("pr_rate")
  3189. .HasPrecision(23, 10)
  3190. .HasColumnType("decimal(23,10)")
  3191. .HasComment("税率");
  3192. b.Property<DateTime?>("pr_rparrive_date")
  3193. .HasColumnType("datetime2")
  3194. .HasComment("再计划到货日期");
  3195. b.Property<decimal?>("pr_rqty")
  3196. .HasPrecision(23, 10)
  3197. .HasColumnType("decimal(23,10)")
  3198. .HasComment("需求数量");
  3199. b.Property<string>("pr_rreason")
  3200. .HasMaxLength(1000)
  3201. .HasColumnType("nvarchar(1000)")
  3202. .HasComment("拒绝原因");
  3203. b.Property<DateTime?>("pr_sarrive_date")
  3204. .HasColumnType("datetime2")
  3205. .HasComment("系统建议到达日期");
  3206. b.Property<decimal?>("pr_sqty")
  3207. .HasPrecision(23, 10)
  3208. .HasColumnType("decimal(23,10)")
  3209. .HasComment("建议数量");
  3210. b.Property<DateTime?>("pr_ssend_date")
  3211. .HasColumnType("datetime2")
  3212. .HasComment("系统建议下单日期");
  3213. b.Property<decimal?>("pr_sysprice")
  3214. .HasPrecision(23, 10)
  3215. .HasColumnType("decimal(23,10)")
  3216. .HasComment("系统价格(含税)");
  3217. b.Property<int?>("pr_type")
  3218. .HasColumnType("int")
  3219. .HasComment("申请类型");
  3220. b.Property<string>("pr_unit")
  3221. .HasMaxLength(20)
  3222. .HasColumnType("nvarchar(20)")
  3223. .HasComment("单位");
  3224. b.Property<string>("remark")
  3225. .HasMaxLength(1000)
  3226. .HasColumnType("nvarchar(1000)")
  3227. .HasComment("备注");
  3228. b.Property<decimal?>("secInv_ratio")
  3229. .HasPrecision(23, 10)
  3230. .HasColumnType("decimal(23,10)")
  3231. .HasComment("安全库存触发采购比例");
  3232. b.Property<long?>("sentry_id")
  3233. .HasColumnType("bigint")
  3234. .HasComment("订单行id");
  3235. b.Property<int?>("state")
  3236. .HasColumnType("int")
  3237. .HasComment("状态");
  3238. b.Property<long>("tenant_id")
  3239. .HasColumnType("bigint")
  3240. .HasComment("企业ID");
  3241. b.Property<long?>("update_by")
  3242. .HasColumnType("bigint")
  3243. .HasComment("修改人");
  3244. b.Property<string>("update_by_name")
  3245. .HasMaxLength(50)
  3246. .HasColumnType("nvarchar(50)")
  3247. .HasComment("修改人名称");
  3248. b.Property<DateTime?>("update_time")
  3249. .HasColumnType("datetime2")
  3250. .HasComment("修改时间");
  3251. b.HasKey("Id");
  3252. b.HasIndex("pr_billno", "pr_purchasenumber", "tenant_id", "factory_id");
  3253. b.ToTable("srm_pr_main", (string)null);
  3254. b.HasComment("采购申请单");
  3255. });
  3256. modelBuilder.Entity("Business.Model.SRM.srm_purchase", b =>
  3257. {
  3258. b.Property<long>("Id")
  3259. .HasColumnType("bigint");
  3260. b.Property<bool>("IsDeleted")
  3261. .ValueGeneratedOnAdd()
  3262. .HasColumnType("bit")
  3263. .HasDefaultValue(false)
  3264. .HasColumnName("IsDeleted")
  3265. .HasComment("删除标识");
  3266. b.Property<decimal?>("batch_append_qty")
  3267. .HasPrecision(23, 10)
  3268. .HasColumnType("decimal(23,10)")
  3269. .HasComment("批量增量");
  3270. b.Property<long?>("create_by")
  3271. .HasColumnType("bigint")
  3272. .HasComment("创建人id");
  3273. b.Property<string>("create_by_name")
  3274. .HasMaxLength(50)
  3275. .HasColumnType("nvarchar(50)")
  3276. .HasComment("创建人名称");
  3277. b.Property<DateTime?>("create_time")
  3278. .HasColumnType("datetime2")
  3279. .HasComment("创建时间");
  3280. b.Property<long?>("currency_type")
  3281. .HasColumnType("bigint")
  3282. .HasComment("币种");
  3283. b.Property<string>("factory_code")
  3284. .HasMaxLength(80)
  3285. .HasColumnType("nvarchar(80)")
  3286. .HasComment("工厂编码");
  3287. b.Property<long?>("factory_id")
  3288. .HasColumnType("bigint")
  3289. .HasComment("工厂ID");
  3290. b.Property<long>("icitem_id")
  3291. .HasColumnType("bigint")
  3292. .HasComment("物料id");
  3293. b.Property<string>("icitem_name")
  3294. .HasMaxLength(80)
  3295. .HasColumnType("nvarchar(80)")
  3296. .HasComment("物料名称");
  3297. b.Property<decimal?>("netpurchase_price")
  3298. .HasPrecision(23, 10)
  3299. .HasColumnType("decimal(23,10)")
  3300. .HasComment("采购净价(不含税)");
  3301. b.Property<string>("order_dept")
  3302. .HasMaxLength(80)
  3303. .HasColumnType("nvarchar(80)")
  3304. .HasComment("采购部门");
  3305. b.Property<decimal?>("order_price")
  3306. .HasPrecision(23, 10)
  3307. .HasColumnType("decimal(23,10)")
  3308. .HasComment("采购单价");
  3309. b.Property<string>("order_rector_name")
  3310. .HasMaxLength(80)
  3311. .HasColumnType("nvarchar(80)")
  3312. .HasComment("采购负责人");
  3313. b.Property<string>("order_rector_num")
  3314. .HasMaxLength(80)
  3315. .HasColumnType("nvarchar(80)")
  3316. .HasComment("采购负责人_工号");
  3317. b.Property<long?>("org_id")
  3318. .HasColumnType("bigint")
  3319. .HasComment("组织ID");
  3320. b.Property<string>("purchase_unit")
  3321. .HasMaxLength(80)
  3322. .HasColumnType("nvarchar(80)")
  3323. .HasComment("采购计量单位");
  3324. b.Property<string>("purcher")
  3325. .HasMaxLength(80)
  3326. .HasColumnType("nvarchar(80)")
  3327. .HasComment("采购员");
  3328. b.Property<string>("purchgroup")
  3329. .HasMaxLength(80)
  3330. .HasColumnType("nvarchar(80)")
  3331. .HasComment("采购组");
  3332. b.Property<decimal?>("qty_min")
  3333. .HasPrecision(23, 10)
  3334. .HasColumnType("decimal(23,10)")
  3335. .HasComment("最小订货量");
  3336. b.Property<decimal?>("sale_price")
  3337. .HasPrecision(23, 10)
  3338. .HasColumnType("decimal(23,10)")
  3339. .HasComment("销售单价");
  3340. b.Property<string>("sourcelist_number")
  3341. .HasMaxLength(80)
  3342. .HasColumnType("nvarchar(80)")
  3343. .HasComment("货源清单编号");
  3344. b.Property<long?>("supplier_id")
  3345. .HasColumnType("bigint")
  3346. .HasComment("供应商id");
  3347. b.Property<string>("supplier_name")
  3348. .HasMaxLength(80)
  3349. .HasColumnType("nvarchar(80)")
  3350. .HasComment("供应商名称");
  3351. b.Property<string>("supplier_number")
  3352. .HasMaxLength(80)
  3353. .HasColumnType("nvarchar(80)")
  3354. .HasComment("供应商编码");
  3355. b.Property<decimal?>("taxrate")
  3356. .HasPrecision(23, 10)
  3357. .HasColumnType("decimal(23,10)")
  3358. .HasComment("税率");
  3359. b.Property<long>("tenant_id")
  3360. .HasColumnType("bigint")
  3361. .HasComment("企业ID");
  3362. b.Property<long?>("update_by")
  3363. .HasColumnType("bigint")
  3364. .HasComment("修改人");
  3365. b.Property<string>("update_by_name")
  3366. .HasMaxLength(50)
  3367. .HasColumnType("nvarchar(50)")
  3368. .HasComment("修改人名称");
  3369. b.Property<DateTime?>("update_time")
  3370. .HasColumnType("datetime2")
  3371. .HasComment("修改时间");
  3372. b.HasKey("Id");
  3373. b.HasIndex("icitem_id", "supplier_number", "tenant_id", "factory_id");
  3374. b.ToTable("srm_purchase", (string)null);
  3375. b.HasComment("物料采购报价单");
  3376. });
  3377. modelBuilder.Entity("Business.Model.SRM.srm_supplier", b =>
  3378. {
  3379. b.Property<long>("Id")
  3380. .HasColumnType("bigint");
  3381. b.Property<bool>("IsDeleted")
  3382. .ValueGeneratedOnAdd()
  3383. .HasColumnType("bit")
  3384. .HasDefaultValue(false)
  3385. .HasColumnName("IsDeleted")
  3386. .HasComment("删除标识");
  3387. b.Property<string>("addr_en")
  3388. .HasMaxLength(255)
  3389. .HasColumnType("nvarchar(255)")
  3390. .HasComment("英文地址");
  3391. b.Property<DateTime?>("approve_date")
  3392. .HasColumnType("datetime2")
  3393. .HasComment("批准日期");
  3394. b.Property<bool?>("auto_create_mr")
  3395. .HasColumnType("bit")
  3396. .HasComment("交货自动生成收货单据");
  3397. b.Property<bool?>("auto_validate_order")
  3398. .HasColumnType("bit")
  3399. .HasComment("自动确认订单");
  3400. b.Property<string>("bank")
  3401. .HasMaxLength(255)
  3402. .HasColumnType("nvarchar(255)")
  3403. .HasComment("开户银行");
  3404. b.Property<string>("bank_account")
  3405. .HasMaxLength(80)
  3406. .HasColumnType("nvarchar(80)")
  3407. .HasComment("银行账号");
  3408. b.Property<DateTime?>("begin_day")
  3409. .HasColumnType("datetime2")
  3410. .HasComment("生效日期");
  3411. b.Property<string>("branch_info")
  3412. .HasMaxLength(255)
  3413. .HasColumnType("nvarchar(255)")
  3414. .HasComment("分支机构信息");
  3415. b.Property<string>("checker")
  3416. .HasMaxLength(80)
  3417. .HasColumnType("nvarchar(80)")
  3418. .HasComment("审核人");
  3419. b.Property<string>("company_type")
  3420. .HasMaxLength(80)
  3421. .HasColumnType("nvarchar(80)")
  3422. .HasComment("公司类别");
  3423. b.Property<string>("contact")
  3424. .HasMaxLength(80)
  3425. .HasColumnType("nvarchar(80)")
  3426. .HasComment("联系人");
  3427. b.Property<string>("country")
  3428. .HasMaxLength(255)
  3429. .HasColumnType("nvarchar(255)")
  3430. .HasComment("国别地区");
  3431. b.Property<long?>("create_by")
  3432. .HasColumnType("bigint")
  3433. .HasComment("创建人id");
  3434. b.Property<string>("create_by_name")
  3435. .HasMaxLength(50)
  3436. .HasColumnType("nvarchar(50)")
  3437. .HasComment("创建人名称");
  3438. b.Property<DateTime?>("create_time")
  3439. .HasColumnType("datetime2")
  3440. .HasComment("创建时间");
  3441. b.Property<string>("currency")
  3442. .HasMaxLength(80)
  3443. .HasColumnType("nvarchar(80)")
  3444. .HasComment("结算币种");
  3445. b.Property<string>("department")
  3446. .HasMaxLength(80)
  3447. .HasColumnType("nvarchar(80)")
  3448. .HasComment("分管部门");
  3449. b.Property<string>("email")
  3450. .HasMaxLength(80)
  3451. .HasColumnType("nvarchar(80)")
  3452. .HasComment("邮件地址");
  3453. b.Property<string>("employee_name")
  3454. .HasMaxLength(80)
  3455. .HasColumnType("nvarchar(80)")
  3456. .HasComment("专营业务员");
  3457. b.Property<string>("employee_no")
  3458. .HasMaxLength(80)
  3459. .HasColumnType("nvarchar(80)")
  3460. .HasComment("专营业务员_工号");
  3461. b.Property<DateTime?>("end_day")
  3462. .HasColumnType("datetime2")
  3463. .HasComment("失效日期");
  3464. b.Property<long?>("factory_id")
  3465. .HasColumnType("bigint")
  3466. .HasComment("工厂ID");
  3467. b.Property<string>("fax")
  3468. .HasMaxLength(80)
  3469. .HasColumnType("nvarchar(80)")
  3470. .HasComment("传真号码");
  3471. b.Property<bool?>("isuse_supplier_portal")
  3472. .HasColumnType("bit")
  3473. .HasComment("启用供应商门户");
  3474. b.Property<string>("licence")
  3475. .HasMaxLength(255)
  3476. .HasColumnType("nvarchar(255)")
  3477. .HasComment("营业执照");
  3478. b.Property<string>("mobile")
  3479. .HasMaxLength(80)
  3480. .HasColumnType("nvarchar(80)")
  3481. .HasComment("移动电话");
  3482. b.Property<string>("name_en")
  3483. .HasMaxLength(255)
  3484. .HasColumnType("nvarchar(255)")
  3485. .HasComment("英文名称");
  3486. b.Property<DateTime?>("op_time")
  3487. .HasColumnType("datetime2")
  3488. .HasComment("操作时间");
  3489. b.Property<long?>("org_id")
  3490. .HasColumnType("bigint")
  3491. .HasComment("组织ID");
  3492. b.Property<string>("po_mode")
  3493. .HasMaxLength(80)
  3494. .HasColumnType("nvarchar(80)")
  3495. .HasComment("采购模式");
  3496. b.Property<string>("post_code")
  3497. .HasMaxLength(80)
  3498. .HasColumnType("nvarchar(80)")
  3499. .HasComment("邮政编码");
  3500. b.Property<string>("region")
  3501. .HasMaxLength(255)
  3502. .HasColumnType("nvarchar(255)")
  3503. .HasComment("区域");
  3504. b.Property<string>("regmark")
  3505. .HasMaxLength(255)
  3506. .HasColumnType("nvarchar(255)")
  3507. .HasComment("注册商标");
  3508. b.Property<DateTime?>("regster_date")
  3509. .HasColumnType("datetime2")
  3510. .HasComment("注册日期");
  3511. b.Property<string>("settlement")
  3512. .HasMaxLength(80)
  3513. .HasColumnType("nvarchar(80)")
  3514. .HasComment("结算方式");
  3515. b.Property<string>("state")
  3516. .HasMaxLength(80)
  3517. .HasColumnType("nvarchar(80)")
  3518. .HasComment("状态");
  3519. b.Property<string>("stockid_assignee")
  3520. .HasMaxLength(255)
  3521. .HasColumnType("nvarchar(255)")
  3522. .HasComment("受托代销虚仓");
  3523. b.Property<string>("supplier_address")
  3524. .HasMaxLength(255)
  3525. .HasColumnType("nvarchar(255)")
  3526. .HasComment("供应商地址");
  3527. b.Property<string>("supplier_full_name")
  3528. .HasMaxLength(255)
  3529. .HasColumnType("nvarchar(255)")
  3530. .HasComment("供应商全称");
  3531. b.Property<string>("supplier_help_code")
  3532. .HasMaxLength(80)
  3533. .HasColumnType("nvarchar(80)")
  3534. .HasComment("供应商助记码");
  3535. b.Property<string>("supplier_name")
  3536. .HasMaxLength(255)
  3537. .HasColumnType("nvarchar(255)")
  3538. .HasComment("供应商名称");
  3539. b.Property<string>("supplier_no")
  3540. .HasMaxLength(80)
  3541. .HasColumnType("nvarchar(80)")
  3542. .HasComment("供应商编号");
  3543. b.Property<string>("supplier_short_name")
  3544. .HasMaxLength(255)
  3545. .HasColumnType("nvarchar(255)")
  3546. .HasComment("供应商简称");
  3547. b.Property<string>("supply_grade")
  3548. .HasMaxLength(80)
  3549. .HasColumnType("nvarchar(80)")
  3550. .HasComment("供应商等级");
  3551. b.Property<string>("supply_type")
  3552. .HasMaxLength(80)
  3553. .HasColumnType("nvarchar(80)")
  3554. .HasComment("供应类别");
  3555. b.Property<string>("taxid")
  3556. .HasMaxLength(255)
  3557. .HasColumnType("nvarchar(255)")
  3558. .HasComment("税务登记号");
  3559. b.Property<string>("telephone")
  3560. .HasMaxLength(80)
  3561. .HasColumnType("nvarchar(80)")
  3562. .HasComment("联系电话");
  3563. b.Property<long>("tenant_id")
  3564. .HasColumnType("bigint")
  3565. .HasComment("企业ID");
  3566. b.Property<string>("trade")
  3567. .HasMaxLength(255)
  3568. .HasColumnType("nvarchar(255)")
  3569. .HasComment("行业");
  3570. b.Property<string>("type")
  3571. .HasMaxLength(80)
  3572. .HasColumnType("nvarchar(80)")
  3573. .HasComment("供应商分类");
  3574. b.Property<long?>("update_by")
  3575. .HasColumnType("bigint")
  3576. .HasComment("修改人");
  3577. b.Property<string>("update_by_name")
  3578. .HasMaxLength(50)
  3579. .HasColumnType("nvarchar(50)")
  3580. .HasComment("修改人名称");
  3581. b.Property<DateTime?>("update_time")
  3582. .HasColumnType("datetime2")
  3583. .HasComment("修改时间");
  3584. b.Property<decimal?>("value_add_rate")
  3585. .HasPrecision(23, 10)
  3586. .HasColumnType("decimal(23,10)")
  3587. .HasComment("增值税率");
  3588. b.Property<string>("vmi_stock")
  3589. .HasMaxLength(255)
  3590. .HasColumnType("nvarchar(255)")
  3591. .HasComment("VMI仓");
  3592. b.HasKey("Id");
  3593. b.HasIndex("supplier_no", "tenant_id", "factory_id");
  3594. b.ToTable("srm_supplier", (string)null);
  3595. b.HasComment("供应商");
  3596. });
  3597. modelBuilder.Entity("Business.Model.Tech.mes_process", b =>
  3598. {
  3599. b.Property<long>("Id")
  3600. .HasColumnType("bigint");
  3601. b.Property<bool>("IsDeleted")
  3602. .ValueGeneratedOnAdd()
  3603. .HasColumnType("bit")
  3604. .HasDefaultValue(false)
  3605. .HasColumnName("IsDeleted")
  3606. .HasComment("删除标识");
  3607. b.Property<long?>("create_by")
  3608. .HasColumnType("bigint")
  3609. .HasComment("创建人id");
  3610. b.Property<string>("create_by_name")
  3611. .HasMaxLength(50)
  3612. .HasColumnType("nvarchar(50)")
  3613. .HasComment("创建人名称");
  3614. b.Property<DateTime?>("create_time")
  3615. .HasColumnType("datetime2")
  3616. .HasComment("创建时间");
  3617. b.Property<long?>("factory_id")
  3618. .HasColumnType("bigint")
  3619. .HasComment("工厂ID");
  3620. b.Property<string>("long_desc")
  3621. .HasMaxLength(2000)
  3622. .HasColumnType("nvarchar(2000)")
  3623. .HasComment("详细描述");
  3624. b.Property<long?>("org_id")
  3625. .HasColumnType("bigint")
  3626. .HasComment("组织ID");
  3627. b.Property<string>("proc_name")
  3628. .IsRequired()
  3629. .HasMaxLength(100)
  3630. .HasColumnType("nvarchar(100)")
  3631. .HasComment("工序名称");
  3632. b.Property<string>("short_desc")
  3633. .HasMaxLength(500)
  3634. .HasColumnType("nvarchar(500)")
  3635. .HasComment("简述");
  3636. b.Property<string>("subids")
  3637. .HasMaxLength(2000)
  3638. .HasColumnType("nvarchar(2000)")
  3639. .HasComment("组合工序id");
  3640. b.Property<long>("tenant_id")
  3641. .HasColumnType("bigint")
  3642. .HasComment("企业ID");
  3643. b.Property<long?>("update_by")
  3644. .HasColumnType("bigint")
  3645. .HasComment("修改人");
  3646. b.Property<string>("update_by_name")
  3647. .HasMaxLength(50)
  3648. .HasColumnType("nvarchar(50)")
  3649. .HasComment("修改人名称");
  3650. b.Property<DateTime?>("update_time")
  3651. .HasColumnType("datetime2")
  3652. .HasComment("修改时间");
  3653. b.HasKey("Id");
  3654. b.ToTable("mes_process", (string)null);
  3655. b.HasComment("工序表");
  3656. });
  3657. modelBuilder.Entity("Business.Model.Tech.mes_tech_process", b =>
  3658. {
  3659. b.Property<long>("Id")
  3660. .HasColumnType("bigint");
  3661. b.Property<bool>("IsDeleted")
  3662. .ValueGeneratedOnAdd()
  3663. .HasColumnType("bit")
  3664. .HasDefaultValue(false)
  3665. .HasColumnName("IsDeleted")
  3666. .HasComment("删除标识");
  3667. b.Property<long?>("create_by")
  3668. .HasColumnType("bigint")
  3669. .HasComment("创建人id");
  3670. b.Property<string>("create_by_name")
  3671. .HasMaxLength(50)
  3672. .HasColumnType("nvarchar(50)")
  3673. .HasComment("创建人名称");
  3674. b.Property<DateTime?>("create_time")
  3675. .HasColumnType("datetime2")
  3676. .HasComment("创建时间");
  3677. b.Property<decimal?>("ct")
  3678. .HasPrecision(23, 10)
  3679. .HasColumnType("decimal(23,10)")
  3680. .HasComment("节拍时间");
  3681. b.Property<decimal?>("effect_ratio")
  3682. .HasPrecision(10, 4)
  3683. .HasColumnType("decimal(10,4)")
  3684. .HasComment("效率系数");
  3685. b.Property<long?>("factory_id")
  3686. .HasColumnType("bigint")
  3687. .HasComment("工厂ID");
  3688. b.Property<int?>("is_schedule")
  3689. .IsRequired()
  3690. .HasColumnType("int")
  3691. .HasComment("是否需要排产:1-是;0-否");
  3692. b.Property<int?>("level")
  3693. .IsRequired()
  3694. .HasColumnType("int")
  3695. .HasComment("组合层级");
  3696. b.Property<decimal?>("lq")
  3697. .HasPrecision(23, 10)
  3698. .HasColumnType("decimal(23,10)")
  3699. .HasComment("前置最小数量");
  3700. b.Property<decimal?>("lqt")
  3701. .HasPrecision(23, 10)
  3702. .HasColumnType("decimal(23,10)")
  3703. .HasComment("前置等待时间");
  3704. b.Property<int?>("maxworkshop")
  3705. .HasColumnType("int")
  3706. .HasComment("最大并行工位数");
  3707. b.Property<int?>("mototrack")
  3708. .HasColumnType("int")
  3709. .HasComment("是否需要跟踪工序");
  3710. b.Property<int?>("needqc")
  3711. .HasColumnType("int")
  3712. .HasComment("是否需要质检");
  3713. b.Property<long?>("nextprocid")
  3714. .HasColumnType("bigint")
  3715. .HasComment("下一工序id");
  3716. b.Property<long?>("org_id")
  3717. .HasColumnType("bigint")
  3718. .HasComment("组织ID");
  3719. b.Property<long?>("parentprocid")
  3720. .HasColumnType("bigint")
  3721. .HasComment("父级工序id");
  3722. b.Property<long?>("proc_id")
  3723. .IsRequired()
  3724. .HasColumnType("bigint")
  3725. .HasComment("工序主键");
  3726. b.Property<decimal?>("readytime")
  3727. .HasPrecision(20, 8)
  3728. .HasColumnType("decimal(20,8)")
  3729. .HasComment("前置准备时间");
  3730. b.Property<long?>("tech_id")
  3731. .IsRequired()
  3732. .HasColumnType("bigint")
  3733. .HasComment("工艺主键");
  3734. b.Property<long>("tenant_id")
  3735. .HasColumnType("bigint")
  3736. .HasComment("企业ID");
  3737. b.Property<long?>("update_by")
  3738. .HasColumnType("bigint")
  3739. .HasComment("修改人");
  3740. b.Property<string>("update_by_name")
  3741. .HasMaxLength(50)
  3742. .HasColumnType("nvarchar(50)")
  3743. .HasComment("修改人名称");
  3744. b.Property<DateTime?>("update_time")
  3745. .HasColumnType("datetime2")
  3746. .HasComment("修改时间");
  3747. b.Property<decimal?>("upe")
  3748. .HasPrecision(23, 10)
  3749. .HasColumnType("decimal(23,10)")
  3750. .HasComment("一次可加工数量");
  3751. b.Property<decimal?>("uph")
  3752. .HasPrecision(23, 10)
  3753. .HasColumnType("decimal(23,10)")
  3754. .HasComment("UPH");
  3755. b.Property<decimal?>("upp")
  3756. .HasPrecision(23, 10)
  3757. .HasColumnType("decimal(23,10)")
  3758. .HasComment("子工序加工数量");
  3759. b.Property<int?>("wctype")
  3760. .HasColumnType("int")
  3761. .HasComment("工作中心类型");
  3762. b.Property<int?>("wsinuse")
  3763. .HasColumnType("int")
  3764. .HasComment("实际运行工位数");
  3765. b.HasKey("Id");
  3766. b.ToTable("mes_tech_process", (string)null);
  3767. b.HasComment("工艺关联工序表");
  3768. });
  3769. modelBuilder.Entity("Business.Model.Tech.mes_technique", b =>
  3770. {
  3771. b.Property<long>("Id")
  3772. .HasColumnType("bigint");
  3773. b.Property<bool>("IsDeleted")
  3774. .ValueGeneratedOnAdd()
  3775. .HasColumnType("bit")
  3776. .HasDefaultValue(false)
  3777. .HasColumnName("IsDeleted")
  3778. .HasComment("删除标识");
  3779. b.Property<string>("bom")
  3780. .HasMaxLength(100)
  3781. .HasColumnType("nvarchar(100)")
  3782. .HasComment("产品");
  3783. b.Property<string>("bomver")
  3784. .HasMaxLength(100)
  3785. .HasColumnType("nvarchar(100)")
  3786. .HasComment("产品版本");
  3787. b.Property<long?>("create_by")
  3788. .HasColumnType("bigint")
  3789. .HasComment("创建人id");
  3790. b.Property<string>("create_by_name")
  3791. .HasMaxLength(50)
  3792. .HasColumnType("nvarchar(50)")
  3793. .HasComment("创建人名称");
  3794. b.Property<DateTime?>("create_time")
  3795. .HasColumnType("datetime2")
  3796. .HasComment("创建时间");
  3797. b.Property<string>("desc")
  3798. .HasMaxLength(100)
  3799. .HasColumnType("nvarchar(100)")
  3800. .HasComment("描述");
  3801. b.Property<long?>("factory_id")
  3802. .HasColumnType("bigint")
  3803. .HasComment("工厂ID");
  3804. b.Property<int?>("level")
  3805. .HasColumnType("int")
  3806. .HasComment("效率计算层级");
  3807. b.Property<long?>("org_id")
  3808. .HasColumnType("bigint")
  3809. .HasComment("组织ID");
  3810. b.Property<string>("tech_name")
  3811. .IsRequired()
  3812. .HasMaxLength(100)
  3813. .HasColumnType("nvarchar(100)")
  3814. .HasComment("工艺路径名称");
  3815. b.Property<long>("tenant_id")
  3816. .HasColumnType("bigint")
  3817. .HasComment("企业ID");
  3818. b.Property<long?>("update_by")
  3819. .HasColumnType("bigint")
  3820. .HasComment("修改人");
  3821. b.Property<string>("update_by_name")
  3822. .HasMaxLength(50)
  3823. .HasColumnType("nvarchar(50)")
  3824. .HasComment("修改人名称");
  3825. b.Property<DateTime?>("update_time")
  3826. .HasColumnType("datetime2")
  3827. .HasComment("修改时间");
  3828. b.HasKey("Id");
  3829. b.ToTable("mes_technique", (string)null);
  3830. b.HasComment("工艺路径表");
  3831. });
  3832. modelBuilder.Entity("Business.Model.Tech.mes_workshop", b =>
  3833. {
  3834. b.Property<long>("Id")
  3835. .HasColumnType("bigint");
  3836. b.Property<bool>("IsDeleted")
  3837. .ValueGeneratedOnAdd()
  3838. .HasColumnType("bit")
  3839. .HasDefaultValue(false)
  3840. .HasColumnName("IsDeleted")
  3841. .HasComment("删除标识");
  3842. b.Property<string>("building")
  3843. .HasMaxLength(100)
  3844. .HasColumnType("nvarchar(100)")
  3845. .HasComment("楼栋");
  3846. b.Property<long?>("create_by")
  3847. .HasColumnType("bigint")
  3848. .HasComment("创建人id");
  3849. b.Property<string>("create_by_name")
  3850. .HasMaxLength(50)
  3851. .HasColumnType("nvarchar(50)")
  3852. .HasComment("创建人名称");
  3853. b.Property<DateTime?>("create_time")
  3854. .HasColumnType("datetime2")
  3855. .HasComment("创建时间");
  3856. b.Property<long?>("factory_id")
  3857. .HasColumnType("bigint")
  3858. .HasComment("工厂ID");
  3859. b.Property<string>("floor")
  3860. .HasMaxLength(100)
  3861. .HasColumnType("nvarchar(100)")
  3862. .HasComment("楼层");
  3863. b.Property<string>("geoinfo")
  3864. .HasMaxLength(100)
  3865. .HasColumnType("nvarchar(100)")
  3866. .HasComment("坐标");
  3867. b.Property<string>("name")
  3868. .HasMaxLength(100)
  3869. .HasColumnType("nvarchar(100)")
  3870. .HasComment("工位名称");
  3871. b.Property<long?>("org_id")
  3872. .HasColumnType("bigint")
  3873. .HasComment("组织ID");
  3874. b.Property<string>("subids")
  3875. .HasMaxLength(2000)
  3876. .HasColumnType("nvarchar(2000)")
  3877. .HasComment("组合工位ids");
  3878. b.Property<long>("tenant_id")
  3879. .HasColumnType("bigint")
  3880. .HasComment("企业ID");
  3881. b.Property<long?>("update_by")
  3882. .HasColumnType("bigint")
  3883. .HasComment("修改人");
  3884. b.Property<string>("update_by_name")
  3885. .HasMaxLength(50)
  3886. .HasColumnType("nvarchar(50)")
  3887. .HasComment("修改人名称");
  3888. b.Property<DateTime?>("update_time")
  3889. .HasColumnType("datetime2")
  3890. .HasComment("修改时间");
  3891. b.Property<long?>("work_calendar_id")
  3892. .HasColumnType("bigint")
  3893. .HasComment("工作日历id");
  3894. b.Property<string>("zone")
  3895. .HasMaxLength(100)
  3896. .HasColumnType("nvarchar(100)")
  3897. .HasComment("区域");
  3898. b.HasKey("Id");
  3899. b.ToTable("mes_workshop", (string)null);
  3900. b.HasComment("工位表(工作中心)");
  3901. });
  3902. #pragma warning restore 612, 618
  3903. }
  3904. }
  3905. }