BusinessMigrationDbContextModelSnapshot.cs 199 KB

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