WebCMSEntities.cs 523 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715
  1. using System;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata;
  4. namespace MySystem.Models
  5. {
  6. public partial class WebCMSEntities : DbContext
  7. {
  8. public WebCMSEntities()
  9. {
  10. }
  11. public WebCMSEntities(DbContextOptions<WebCMSEntities> options)
  12. : base(options)
  13. {
  14. }
  15. public virtual DbSet<ActiveReward> ActiveReward { get; set; }
  16. public virtual DbSet<ActivityEnrolRecord> ActivityEnrolRecord { get; set; }
  17. public virtual DbSet<ActivityInfo> ActivityInfo { get; set; }
  18. public virtual DbSet<ActivityPrizeDetail> ActivityPrizeDetail { get; set; }
  19. public virtual DbSet<Advertisment> Advertisment { get; set; }
  20. public virtual DbSet<AgentLevelSet> AgentLevelSet { get; set; }
  21. public virtual DbSet<AppBottomNavs> AppBottomNavs { get; set; }
  22. public virtual DbSet<AppVersion> AppVersion { get; set; }
  23. public virtual DbSet<AppVideo> AppVideo { get; set; }
  24. public virtual DbSet<AppVideoList> AppVideoList { get; set; }
  25. public virtual DbSet<BankInfo> BankInfo { get; set; }
  26. public virtual DbSet<Col> Col { get; set; }
  27. public virtual DbSet<ConsumerOpenIds> ConsumerOpenIds { get; set; }
  28. public virtual DbSet<ConsumerOrderForNo> ConsumerOrderForNo { get; set; }
  29. public virtual DbSet<ConsumerOrders> ConsumerOrders { get; set; }
  30. public virtual DbSet<ConsumerProfit> ConsumerProfit { get; set; }
  31. public virtual DbSet<Consumers> Consumers { get; set; }
  32. public virtual DbSet<CouponAssignRecords> CouponAssignRecords { get; set; }
  33. public virtual DbSet<Coupons> Coupons { get; set; }
  34. public virtual DbSet<CouponsForUser> CouponsForUser { get; set; }
  35. public virtual DbSet<CustomTagSet> CustomTagSet { get; set; }
  36. public virtual DbSet<ErpCompanys> ErpCompanys { get; set; }
  37. public virtual DbSet<FileUpdateInfo> FileUpdateInfo { get; set; }
  38. public virtual DbSet<FluxProfitDetail> FluxProfitDetail { get; set; }
  39. public virtual DbSet<FluxProfitSummary> FluxProfitSummary { get; set; }
  40. public virtual DbSet<IndexIconList> IndexIconList { get; set; }
  41. public virtual DbSet<KqProductBrand> KqProductBrand { get; set; }
  42. public virtual DbSet<KqProductOrgs> KqProductOrgs { get; set; }
  43. public virtual DbSet<KqProductRuleSet> KqProductRuleSet { get; set; }
  44. public virtual DbSet<KqProducts> KqProducts { get; set; }
  45. public virtual DbSet<MachineApply> MachineApply { get; set; }
  46. public virtual DbSet<MachineApplyDetail> MachineApplyDetail { get; set; }
  47. public virtual DbSet<MachineChange> MachineChange { get; set; }
  48. public virtual DbSet<MachineChangeDetail> MachineChangeDetail { get; set; }
  49. public virtual DbSet<MachineForMerNo> MachineForMerNo { get; set; }
  50. public virtual DbSet<MachineForQrCode> MachineForQrCode { get; set; }
  51. public virtual DbSet<MachineForSnNo> MachineForSnNo { get; set; }
  52. public virtual DbSet<MachineRenew> MachineRenew { get; set; }
  53. public virtual DbSet<MachineReturn> MachineReturn { get; set; }
  54. public virtual DbSet<MenuRight> MenuRight { get; set; }
  55. public virtual DbSet<MerchantAddInfo> MerchantAddInfo { get; set; }
  56. public virtual DbSet<MerchantAdmin> MerchantAdmin { get; set; }
  57. public virtual DbSet<MerchantAuth> MerchantAuth { get; set; }
  58. public virtual DbSet<MerchantClass> MerchantClass { get; set; }
  59. public virtual DbSet<MerchantCol> MerchantCol { get; set; }
  60. public virtual DbSet<MerchantComment> MerchantComment { get; set; }
  61. public virtual DbSet<MerchantForCode> MerchantForCode { get; set; }
  62. public virtual DbSet<MerchantForMobile> MerchantForMobile { get; set; }
  63. public virtual DbSet<MerchantForName> MerchantForName { get; set; }
  64. public virtual DbSet<MerchantInfo> MerchantInfo { get; set; }
  65. public virtual DbSet<MerchantParamSet> MerchantParamSet { get; set; }
  66. public virtual DbSet<MerchantQrCode> MerchantQrCode { get; set; }
  67. public virtual DbSet<MerchantRebateDetail> MerchantRebateDetail { get; set; }
  68. public virtual DbSet<Merchants> Merchants { get; set; }
  69. public virtual DbSet<MobileCodeCheck> MobileCodeCheck { get; set; }
  70. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  71. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  72. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  73. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  74. public virtual DbSet<MsgPush> MsgPush { get; set; }
  75. public virtual DbSet<MsgSms> MsgSms { get; set; }
  76. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  77. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  78. public virtual DbSet<OpenBankCityTable> OpenBankCityTable { get; set; }
  79. public virtual DbSet<OpenBankTable> OpenBankTable { get; set; }
  80. public virtual DbSet<OpenReward> OpenReward { get; set; }
  81. public virtual DbSet<OpenRewardDetail> OpenRewardDetail { get; set; }
  82. public virtual DbSet<OpenSnSnapshot> OpenSnSnapshot { get; set; }
  83. public virtual DbSet<OperateLog> OperateLog { get; set; }
  84. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  85. public virtual DbSet<OrderForNo> OrderForNo { get; set; }
  86. public virtual DbSet<OrderProduct> OrderProduct { get; set; }
  87. public virtual DbSet<OrderRefund> OrderRefund { get; set; }
  88. public virtual DbSet<OrderRefundReason> OrderRefundReason { get; set; }
  89. public virtual DbSet<Orders> Orders { get; set; }
  90. public virtual DbSet<PageInfo> PageInfo { get; set; }
  91. public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
  92. public virtual DbSet<PosCouponForUser> PosCouponForUser { get; set; }
  93. public virtual DbSet<PosCouponOrders> PosCouponOrders { get; set; }
  94. public virtual DbSet<PosCouponRecord> PosCouponRecord { get; set; }
  95. public virtual DbSet<PosCoupons> PosCoupons { get; set; }
  96. public virtual DbSet<PosMachines> PosMachines { get; set; }
  97. public virtual DbSet<PosMachinesTwo> PosMachinesTwo { get; set; }
  98. public virtual DbSet<PosMerchantInfo> PosMerchantInfo { get; set; }
  99. public virtual DbSet<ProductComment> ProductComment { get; set; }
  100. public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
  101. public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
  102. public virtual DbSet<ProductFareTemp> ProductFareTemp { get; set; }
  103. public virtual DbSet<ProductKeys> ProductKeys { get; set; }
  104. public virtual DbSet<ProductNorm> ProductNorm { get; set; }
  105. public virtual DbSet<ProductNormItem> ProductNormItem { get; set; }
  106. public virtual DbSet<ProductNormTemp> ProductNormTemp { get; set; }
  107. public virtual DbSet<Products> Products { get; set; }
  108. public virtual DbSet<ProfitObjectActivations> ProfitObjectActivations { get; set; }
  109. public virtual DbSet<ProfitObjectContinueFloors> ProfitObjectContinueFloors { get; set; }
  110. public virtual DbSet<ProfitObjectFloors> ProfitObjectFloors { get; set; }
  111. public virtual DbSet<ProfitObjectLevelKinds> ProfitObjectLevelKinds { get; set; }
  112. public virtual DbSet<ProfitObjectLevels> ProfitObjectLevels { get; set; }
  113. public virtual DbSet<ProfitObjects> ProfitObjects { get; set; }
  114. public virtual DbSet<ProfitObjectsActiveCheck> ProfitObjectsActiveCheck { get; set; }
  115. public virtual DbSet<ProfitObjectsActiveParams> ProfitObjectsActiveParams { get; set; }
  116. public virtual DbSet<ProfitObjectsActives> ProfitObjectsActives { get; set; }
  117. public virtual DbSet<ProfitObjectsActivesForId> ProfitObjectsActivesForId { get; set; }
  118. public virtual DbSet<ProfitObjectsRule> ProfitObjectsRule { get; set; }
  119. public virtual DbSet<ProfitObjectsRuleDetails> ProfitObjectsRuleDetails { get; set; }
  120. public virtual DbSet<ProfitReceiveRecord> ProfitReceiveRecord { get; set; }
  121. public virtual DbSet<ProfitReceives> ProfitReceives { get; set; }
  122. public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
  123. public virtual DbSet<ProfitRewardRecord> ProfitRewardRecord { get; set; }
  124. public virtual DbSet<ProfitSubsidyDetail> ProfitSubsidyDetail { get; set; }
  125. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  126. public virtual DbSet<PullNewAct> PullNewAct { get; set; }
  127. public virtual DbSet<PullNewDetail> PullNewDetail { get; set; }
  128. public virtual DbSet<PullnewSummary> PullnewSummary { get; set; }
  129. public virtual DbSet<RightDic> RightDic { get; set; }
  130. public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
  131. public virtual DbSet<StoreBalance> StoreBalance { get; set; }
  132. public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
  133. public virtual DbSet<StoreForCode> StoreForCode { get; set; }
  134. public virtual DbSet<StoreForName> StoreForName { get; set; }
  135. public virtual DbSet<StoreHouse> StoreHouse { get; set; }
  136. public virtual DbSet<StoreMallOrderSummary> StoreMallOrderSummary { get; set; }
  137. public virtual DbSet<StoreSnActivateSummary> StoreSnActivateSummary { get; set; }
  138. public virtual DbSet<StoreStockChange> StoreStockChange { get; set; }
  139. public virtual DbSet<StoreSwapSn> StoreSwapSn { get; set; }
  140. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  141. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  142. public virtual DbSet<SysLog> SysLog { get; set; }
  143. public virtual DbSet<SysRechargeRecord> SysRechargeRecord { get; set; }
  144. public virtual DbSet<SystemSet> SystemSet { get; set; }
  145. public virtual DbSet<TeamApply> TeamApply { get; set; }
  146. public virtual DbSet<TeamApplyForTeamName> TeamApplyForTeamName { get; set; }
  147. public virtual DbSet<TeamApplyForTeamNo> TeamApplyForTeamNo { get; set; }
  148. public virtual DbSet<TeamBlackList> TeamBlackList { get; set; }
  149. public virtual DbSet<TeamConfig> TeamConfig { get; set; }
  150. public virtual DbSet<TeamDayTop> TeamDayTop { get; set; }
  151. public virtual DbSet<TeamOfferApply> TeamOfferApply { get; set; }
  152. public virtual DbSet<TeamPersonDayTop> TeamPersonDayTop { get; set; }
  153. public virtual DbSet<TmpCert> TmpCert { get; set; }
  154. public virtual DbSet<TradeDaySummary> TradeDaySummary { get; set; }
  155. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  156. public virtual DbSet<UploadParams> UploadParams { get; set; }
  157. public virtual DbSet<UserAccount> UserAccount { get; set; }
  158. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  159. public virtual DbSet<UserAddress> UserAddress { get; set; }
  160. public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
  161. public virtual DbSet<UserBack> UserBack { get; set; }
  162. public virtual DbSet<UserBackKind> UserBackKind { get; set; }
  163. public virtual DbSet<UserBalanceTop> UserBalanceTop { get; set; }
  164. public virtual DbSet<UserCar> UserCar { get; set; }
  165. public virtual DbSet<UserCardForWeChat> UserCardForWeChat { get; set; }
  166. public virtual DbSet<UserCardRecord> UserCardRecord { get; set; }
  167. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  168. public virtual DbSet<UserCenterIconList> UserCenterIconList { get; set; }
  169. public virtual DbSet<UserCollection> UserCollection { get; set; }
  170. public virtual DbSet<UserData> UserData { get; set; }
  171. public virtual DbSet<UserDetail> UserDetail { get; set; }
  172. public virtual DbSet<UserFamilyMember> UserFamilyMember { get; set; }
  173. public virtual DbSet<UserForMakerCode> UserForMakerCode { get; set; }
  174. public virtual DbSet<UserForMobile> UserForMobile { get; set; }
  175. public virtual DbSet<UserForRealName> UserForRealName { get; set; }
  176. public virtual DbSet<UserFriend> UserFriend { get; set; }
  177. public virtual DbSet<UserGroup> UserGroup { get; set; }
  178. public virtual DbSet<UserLevelSet> UserLevelSet { get; set; }
  179. public virtual DbSet<UserLoginRecord> UserLoginRecord { get; set; }
  180. public virtual DbSet<UserMachineData> UserMachineData { get; set; }
  181. public virtual DbSet<UserMallLargeSn> UserMallLargeSn { get; set; }
  182. public virtual DbSet<UserOfflineSignInRecords> UserOfflineSignInRecords { get; set; }
  183. public virtual DbSet<UserProfit> UserProfit { get; set; }
  184. public virtual DbSet<UserProfitSet> UserProfitSet { get; set; }
  185. public virtual DbSet<UserProfitSubsidySummary> UserProfitSubsidySummary { get; set; }
  186. public virtual DbSet<UserRank> UserRank { get; set; }
  187. public virtual DbSet<UserRankWhite> UserRankWhite { get; set; }
  188. public virtual DbSet<UserRebateDetail> UserRebateDetail { get; set; }
  189. public virtual DbSet<UserSnActInfo> UserSnActInfo { get; set; }
  190. public virtual DbSet<UserSnDelayChange> UserSnDelayChange { get; set; }
  191. public virtual DbSet<UserStoreChange> UserStoreChange { get; set; }
  192. public virtual DbSet<UserSwapDetail> UserSwapDetail { get; set; }
  193. public virtual DbSet<UserSwapSummary> UserSwapSummary { get; set; }
  194. public virtual DbSet<UserSwapWhite> UserSwapWhite { get; set; }
  195. public virtual DbSet<UserTradeDaySummary> UserTradeDaySummary { get; set; }
  196. public virtual DbSet<UserTradeMonthSummary> UserTradeMonthSummary { get; set; }
  197. public virtual DbSet<Users> Users { get; set; }
  198. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  199. {
  200. if (!optionsBuilder.IsConfigured)
  201. {
  202. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  203. }
  204. }
  205. protected override void OnModelCreating(ModelBuilder modelBuilder)
  206. {
  207. modelBuilder.Entity<ActiveReward>(entity =>
  208. {
  209. entity.Property(e => e.Id).HasColumnType("int(11)");
  210. entity.Property(e => e.ActDate).HasColumnType("datetime");
  211. entity.Property(e => e.ActType).HasColumnType("int(11)");
  212. entity.Property(e => e.ActTypeDesc)
  213. .HasColumnType("varchar(64)")
  214. .HasCharSet("utf8")
  215. .HasCollation("utf8_general_ci");
  216. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  217. entity.Property(e => e.City)
  218. .HasColumnType("varchar(32)")
  219. .HasCharSet("utf8")
  220. .HasCollation("utf8_general_ci");
  221. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  222. entity.Property(e => e.CreateMan)
  223. .HasColumnType("varchar(50)")
  224. .HasCharSet("utf8")
  225. .HasCollation("utf8_general_ci");
  226. entity.Property(e => e.DirectBuddyNo).HasColumnType("int(11)");
  227. entity.Property(e => e.DivideAmount).HasColumnType("decimal(18,2)");
  228. entity.Property(e => e.KqMerNo)
  229. .HasColumnType("varchar(32)")
  230. .HasCharSet("utf8")
  231. .HasCollation("utf8_general_ci");
  232. entity.Property(e => e.KqSnNo)
  233. .HasColumnType("varchar(32)")
  234. .HasCharSet("utf8")
  235. .HasCollation("utf8_general_ci");
  236. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  237. entity.Property(e => e.MerUserNav)
  238. .HasColumnType("varchar(200)")
  239. .HasCharSet("utf8")
  240. .HasCollation("utf8_general_ci");
  241. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  242. entity.Property(e => e.ParentParentUserId).HasColumnType("int(11)");
  243. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  244. entity.Property(e => e.Province)
  245. .HasColumnType("varchar(32)")
  246. .HasCharSet("utf8")
  247. .HasCollation("utf8_general_ci");
  248. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  249. entity.Property(e => e.Remark)
  250. .HasColumnType("varchar(64)")
  251. .HasCharSet("utf8")
  252. .HasCollation("utf8_general_ci");
  253. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  254. entity.Property(e => e.RewardRef).HasColumnType("int(11)");
  255. entity.Property(e => e.RewardSourceUserId).HasColumnType("int(11)");
  256. entity.Property(e => e.RewardTips)
  257. .HasColumnType("varchar(16)")
  258. .HasCharSet("utf8")
  259. .HasCollation("utf8_general_ci");
  260. entity.Property(e => e.RuleRewardAmount).HasColumnType("decimal(18,2)");
  261. entity.Property(e => e.SeoDescription)
  262. .HasColumnType("varchar(500)")
  263. .HasCharSet("utf8")
  264. .HasCollation("utf8_general_ci");
  265. entity.Property(e => e.SeoKeyword)
  266. .HasColumnType("varchar(200)")
  267. .HasCharSet("utf8")
  268. .HasCollation("utf8_general_ci");
  269. entity.Property(e => e.SeoTitle)
  270. .HasColumnType("varchar(100)")
  271. .HasCharSet("utf8")
  272. .HasCollation("utf8_general_ci");
  273. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  274. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  275. entity.Property(e => e.SnType).HasColumnType("int(11)");
  276. entity.Property(e => e.Sort).HasColumnType("int(11)");
  277. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  278. entity.Property(e => e.Status).HasColumnType("int(11)");
  279. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  280. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  281. entity.Property(e => e.UpdateMan)
  282. .HasColumnType("varchar(50)")
  283. .HasCharSet("utf8")
  284. .HasCollation("utf8_general_ci");
  285. entity.Property(e => e.UserId).HasColumnType("int(11)");
  286. entity.Property(e => e.UserNav)
  287. .HasColumnType("varchar(200)")
  288. .HasCharSet("utf8")
  289. .HasCollation("utf8_general_ci");
  290. entity.Property(e => e.Version).HasColumnType("int(11)");
  291. });
  292. modelBuilder.Entity<ActivityEnrolRecord>(entity =>
  293. {
  294. entity.Property(e => e.Id).HasColumnType("int(11)");
  295. entity.Property(e => e.ActId).HasColumnType("int(11)");
  296. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  297. entity.Property(e => e.CreateMan)
  298. .HasColumnType("varchar(50)")
  299. .HasCharSet("utf8")
  300. .HasCollation("utf8_general_ci");
  301. entity.Property(e => e.EffectEndTime)
  302. .HasColumnType("varchar(8)")
  303. .HasCharSet("utf8")
  304. .HasCollation("utf8_general_ci");
  305. entity.Property(e => e.EffectStartTime)
  306. .HasColumnType("varchar(8)")
  307. .HasCharSet("utf8")
  308. .HasCollation("utf8_general_ci");
  309. entity.Property(e => e.EnrolMonth)
  310. .HasColumnType("varchar(80)")
  311. .HasCharSet("utf8")
  312. .HasCollation("utf8_general_ci");
  313. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  314. entity.Property(e => e.SeoDescription)
  315. .HasColumnType("varchar(500)")
  316. .HasCharSet("utf8")
  317. .HasCollation("utf8_general_ci");
  318. entity.Property(e => e.SeoKeyword)
  319. .HasColumnType("varchar(200)")
  320. .HasCharSet("utf8")
  321. .HasCollation("utf8_general_ci");
  322. entity.Property(e => e.SeoTitle)
  323. .HasColumnType("varchar(100)")
  324. .HasCharSet("utf8")
  325. .HasCollation("utf8_general_ci");
  326. entity.Property(e => e.Sort).HasColumnType("int(11)");
  327. entity.Property(e => e.Status).HasColumnType("int(11)");
  328. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  329. entity.Property(e => e.UpdateMan)
  330. .HasColumnType("varchar(50)")
  331. .HasCharSet("utf8")
  332. .HasCollation("utf8_general_ci");
  333. entity.Property(e => e.UserId).HasColumnType("int(11)");
  334. entity.Property(e => e.Version).HasColumnType("int(11)");
  335. });
  336. modelBuilder.Entity<ActivityInfo>(entity =>
  337. {
  338. entity.Property(e => e.Id).HasColumnType("int(11)");
  339. entity.Property(e => e.ActBanner)
  340. .HasColumnType("varchar(200)")
  341. .HasCharSet("utf8")
  342. .HasCollation("utf8_general_ci");
  343. entity.Property(e => e.ActCode)
  344. .HasColumnType("varchar(32)")
  345. .HasCharSet("utf8")
  346. .HasCollation("utf8_general_ci");
  347. entity.Property(e => e.ActContent)
  348. .HasColumnType("longtext")
  349. .HasCharSet("utf8")
  350. .HasCollation("utf8_general_ci");
  351. entity.Property(e => e.ActName)
  352. .HasColumnType("varchar(128)")
  353. .HasCharSet("utf8")
  354. .HasCollation("utf8_general_ci");
  355. entity.Property(e => e.ActReferUrl)
  356. .HasColumnType("varchar(255)")
  357. .HasCharSet("utf8")
  358. .HasCollation("utf8_general_ci");
  359. entity.Property(e => e.ActType).HasColumnType("int(11)");
  360. entity.Property(e => e.BrandId)
  361. .HasColumnType("varchar(100)")
  362. .HasCharSet("utf8")
  363. .HasCollation("utf8_general_ci");
  364. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  365. entity.Property(e => e.CreateMan)
  366. .HasColumnType("varchar(50)")
  367. .HasCharSet("utf8")
  368. .HasCollation("utf8_general_ci");
  369. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  370. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  371. entity.Property(e => e.EnrolEndDate).HasColumnType("datetime");
  372. entity.Property(e => e.EnrolEndTime)
  373. .HasColumnType("varchar(8)")
  374. .HasCharSet("utf8")
  375. .HasCollation("utf8_general_ci");
  376. entity.Property(e => e.EnrolStartDate).HasColumnType("datetime");
  377. entity.Property(e => e.EnrolStartTime)
  378. .HasColumnType("varchar(8)")
  379. .HasCharSet("utf8")
  380. .HasCollation("utf8_general_ci");
  381. entity.Property(e => e.IsTop).HasColumnType("int(11)");
  382. entity.Property(e => e.LimitTopBuddy)
  383. .HasColumnType("varchar(255)")
  384. .HasCharSet("utf8")
  385. .HasCollation("utf8_general_ci");
  386. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  387. entity.Property(e => e.Remark)
  388. .HasColumnType("varchar(128)")
  389. .HasCharSet("utf8")
  390. .HasCollation("utf8_general_ci");
  391. entity.Property(e => e.SeoDescription)
  392. .HasColumnType("varchar(500)")
  393. .HasCharSet("utf8")
  394. .HasCollation("utf8_general_ci");
  395. entity.Property(e => e.SeoKeyword)
  396. .HasColumnType("varchar(200)")
  397. .HasCharSet("utf8")
  398. .HasCollation("utf8_general_ci");
  399. entity.Property(e => e.SeoTitle)
  400. .HasColumnType("varchar(100)")
  401. .HasCharSet("utf8")
  402. .HasCollation("utf8_general_ci");
  403. entity.Property(e => e.Sort).HasColumnType("int(11)");
  404. entity.Property(e => e.Status).HasColumnType("int(11)");
  405. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  406. entity.Property(e => e.UpdateMan)
  407. .HasColumnType("varchar(50)")
  408. .HasCharSet("utf8")
  409. .HasCollation("utf8_general_ci");
  410. entity.Property(e => e.Version).HasColumnType("int(11)");
  411. });
  412. modelBuilder.Entity<ActivityPrizeDetail>(entity =>
  413. {
  414. entity.Property(e => e.Id).HasColumnType("int(11)");
  415. entity.Property(e => e.ActRewardAmt).HasColumnType("decimal(18,2)");
  416. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  417. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  418. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  419. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  420. entity.Property(e => e.CreateMan)
  421. .HasColumnType("varchar(50)")
  422. .HasCharSet("utf8")
  423. .HasCollation("utf8_general_ci");
  424. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  425. entity.Property(e => e.OtherProdCreditTradeAmt).HasColumnType("decimal(18,2)");
  426. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  427. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  428. entity.Property(e => e.SeoDescription)
  429. .HasColumnType("varchar(500)")
  430. .HasCharSet("utf8")
  431. .HasCollation("utf8_general_ci");
  432. entity.Property(e => e.SeoKeyword)
  433. .HasColumnType("varchar(200)")
  434. .HasCharSet("utf8")
  435. .HasCollation("utf8_general_ci");
  436. entity.Property(e => e.SeoTitle)
  437. .HasColumnType("varchar(100)")
  438. .HasCharSet("utf8")
  439. .HasCollation("utf8_general_ci");
  440. entity.Property(e => e.Sort).HasColumnType("int(11)");
  441. entity.Property(e => e.Status).HasColumnType("int(11)");
  442. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  443. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  444. entity.Property(e => e.TradeMonth)
  445. .HasColumnType("varchar(6)")
  446. .HasCharSet("utf8")
  447. .HasCollation("utf8_general_ci");
  448. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  449. entity.Property(e => e.UpdateMan)
  450. .HasColumnType("varchar(50)")
  451. .HasCharSet("utf8")
  452. .HasCollation("utf8_general_ci");
  453. entity.Property(e => e.UserId).HasColumnType("int(11)");
  454. entity.Property(e => e.Version).HasColumnType("int(11)");
  455. });
  456. modelBuilder.Entity<Advertisment>(entity =>
  457. {
  458. entity.Property(e => e.Id).HasColumnType("int(11)");
  459. entity.Property(e => e.ColId)
  460. .HasColumnType("varchar(30)")
  461. .HasCharSet("utf8")
  462. .HasCollation("utf8_general_ci");
  463. entity.Property(e => e.Contents)
  464. .HasColumnType("longtext")
  465. .HasCharSet("utf8")
  466. .HasCollation("utf8_general_ci");
  467. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  468. entity.Property(e => e.CreateMan)
  469. .HasColumnType("varchar(50)")
  470. .HasCharSet("utf8")
  471. .HasCollation("utf8_general_ci");
  472. entity.Property(e => e.PicPath)
  473. .HasColumnType("varchar(200)")
  474. .HasCharSet("utf8")
  475. .HasCollation("utf8_general_ci");
  476. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  477. entity.Property(e => e.SeoDescription)
  478. .HasColumnType("varchar(500)")
  479. .HasCharSet("utf8")
  480. .HasCollation("utf8_general_ci");
  481. entity.Property(e => e.SeoKeyword)
  482. .HasColumnType("varchar(200)")
  483. .HasCharSet("utf8")
  484. .HasCollation("utf8_general_ci");
  485. entity.Property(e => e.SeoTitle)
  486. .HasColumnType("varchar(100)")
  487. .HasCharSet("utf8")
  488. .HasCollation("utf8_general_ci");
  489. entity.Property(e => e.Sort).HasColumnType("int(11)");
  490. entity.Property(e => e.Status).HasColumnType("int(11)");
  491. entity.Property(e => e.Title)
  492. .HasColumnType("varchar(50)")
  493. .HasCharSet("utf8")
  494. .HasCollation("utf8_general_ci");
  495. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  496. entity.Property(e => e.UpdateMan)
  497. .HasColumnType("varchar(50)")
  498. .HasCharSet("utf8")
  499. .HasCollation("utf8_general_ci");
  500. entity.Property(e => e.Url)
  501. .HasColumnType("longtext")
  502. .HasCharSet("utf8")
  503. .HasCollation("utf8_general_ci");
  504. entity.Property(e => e.Version).HasColumnType("int(11)");
  505. });
  506. modelBuilder.Entity<AgentLevelSet>(entity =>
  507. {
  508. entity.Property(e => e.Id).HasColumnType("int(11)");
  509. entity.Property(e => e.AreasProfitPercent).HasColumnType("decimal(18,2)");
  510. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  511. entity.Property(e => e.CreateMan)
  512. .HasColumnType("varchar(50)")
  513. .HasCharSet("utf8")
  514. .HasCollation("utf8_general_ci");
  515. entity.Property(e => e.LevelDiff)
  516. .HasColumnType("bit(1)")
  517. .HasDefaultValueSql("b'0'");
  518. entity.Property(e => e.Name)
  519. .HasColumnType("varchar(50)")
  520. .HasCharSet("utf8")
  521. .HasCollation("utf8_general_ci");
  522. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  523. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  524. entity.Property(e => e.SeoDescription)
  525. .HasColumnType("varchar(500)")
  526. .HasCharSet("utf8")
  527. .HasCollation("utf8_general_ci");
  528. entity.Property(e => e.SeoKeyword)
  529. .HasColumnType("varchar(200)")
  530. .HasCharSet("utf8")
  531. .HasCollation("utf8_general_ci");
  532. entity.Property(e => e.SeoTitle)
  533. .HasColumnType("varchar(100)")
  534. .HasCharSet("utf8")
  535. .HasCollation("utf8_general_ci");
  536. entity.Property(e => e.Sort).HasColumnType("int(11)");
  537. entity.Property(e => e.Status).HasColumnType("int(11)");
  538. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  539. entity.Property(e => e.UpdateMan)
  540. .HasColumnType("varchar(50)")
  541. .HasCharSet("utf8")
  542. .HasCollation("utf8_general_ci");
  543. entity.Property(e => e.Version).HasColumnType("int(11)");
  544. });
  545. modelBuilder.Entity<AppBottomNavs>(entity =>
  546. {
  547. entity.Property(e => e.Id).HasColumnType("int(11)");
  548. entity.Property(e => e.BgColor)
  549. .HasColumnType("varchar(6)")
  550. .HasCharSet("utf8")
  551. .HasCollation("utf8_general_ci");
  552. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  553. entity.Property(e => e.CreateMan)
  554. .HasColumnType("varchar(50)")
  555. .HasCharSet("utf8")
  556. .HasCollation("utf8_general_ci");
  557. entity.Property(e => e.NoPageHint)
  558. .HasColumnType("varchar(50)")
  559. .HasCharSet("utf8")
  560. .HasCollation("utf8_general_ci");
  561. entity.Property(e => e.NormalIcon)
  562. .HasColumnType("varchar(200)")
  563. .HasCharSet("utf8")
  564. .HasCollation("utf8_general_ci");
  565. entity.Property(e => e.NormalTextColor)
  566. .HasColumnType("varchar(6)")
  567. .HasCharSet("utf8")
  568. .HasCollation("utf8_general_ci");
  569. entity.Property(e => e.PageName)
  570. .HasColumnType("varchar(50)")
  571. .HasCharSet("utf8")
  572. .HasCollation("utf8_general_ci");
  573. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  574. entity.Property(e => e.SelectIcon)
  575. .HasColumnType("varchar(200)")
  576. .HasCharSet("utf8")
  577. .HasCollation("utf8_general_ci");
  578. entity.Property(e => e.SelectTextColor)
  579. .HasColumnType("varchar(6)")
  580. .HasCharSet("utf8")
  581. .HasCollation("utf8_general_ci");
  582. entity.Property(e => e.SeoDescription)
  583. .HasColumnType("varchar(500)")
  584. .HasCharSet("utf8")
  585. .HasCollation("utf8_general_ci");
  586. entity.Property(e => e.SeoKeyword)
  587. .HasColumnType("varchar(200)")
  588. .HasCharSet("utf8")
  589. .HasCollation("utf8_general_ci");
  590. entity.Property(e => e.SeoTitle)
  591. .HasColumnType("varchar(100)")
  592. .HasCharSet("utf8")
  593. .HasCollation("utf8_general_ci");
  594. entity.Property(e => e.Sort).HasColumnType("int(11)");
  595. entity.Property(e => e.Status).HasColumnType("int(11)");
  596. entity.Property(e => e.Title)
  597. .HasColumnType("varchar(10)")
  598. .HasCharSet("utf8")
  599. .HasCollation("utf8_general_ci");
  600. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  601. entity.Property(e => e.UpdateMan)
  602. .HasColumnType("varchar(50)")
  603. .HasCharSet("utf8")
  604. .HasCollation("utf8_general_ci");
  605. entity.Property(e => e.Version).HasColumnType("int(11)");
  606. });
  607. modelBuilder.Entity<AppVersion>(entity =>
  608. {
  609. entity.Property(e => e.Id).HasColumnType("int(11)");
  610. entity.Property(e => e.CancelText)
  611. .HasColumnType("varchar(10)")
  612. .HasCharSet("utf8")
  613. .HasCollation("utf8_general_ci");
  614. entity.Property(e => e.ConfirmText)
  615. .HasColumnType("varchar(10)")
  616. .HasCharSet("utf8")
  617. .HasCollation("utf8_general_ci");
  618. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  619. entity.Property(e => e.CreateMan)
  620. .HasColumnType("varchar(50)")
  621. .HasCharSet("utf8")
  622. .HasCollation("utf8_general_ci");
  623. entity.Property(e => e.DownloadUrl)
  624. .HasColumnType("varchar(500)")
  625. .HasCharSet("utf8")
  626. .HasCollation("utf8_general_ci");
  627. entity.Property(e => e.Info)
  628. .HasColumnType("varchar(200)")
  629. .HasCharSet("utf8")
  630. .HasCollation("utf8_general_ci");
  631. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  632. entity.Property(e => e.SeoDescription)
  633. .HasColumnType("varchar(500)")
  634. .HasCharSet("utf8")
  635. .HasCollation("utf8_general_ci");
  636. entity.Property(e => e.SeoKeyword)
  637. .HasColumnType("varchar(200)")
  638. .HasCharSet("utf8")
  639. .HasCollation("utf8_general_ci");
  640. entity.Property(e => e.SeoTitle)
  641. .HasColumnType("varchar(100)")
  642. .HasCharSet("utf8")
  643. .HasCollation("utf8_general_ci");
  644. entity.Property(e => e.Sort).HasColumnType("int(11)");
  645. entity.Property(e => e.Status).HasColumnType("int(11)");
  646. entity.Property(e => e.TerminalKind)
  647. .HasColumnType("varchar(10)")
  648. .HasCharSet("utf8")
  649. .HasCollation("utf8_general_ci");
  650. entity.Property(e => e.Title)
  651. .HasColumnType("varchar(50)")
  652. .HasCharSet("utf8")
  653. .HasCollation("utf8_general_ci");
  654. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  655. entity.Property(e => e.UpdateMan)
  656. .HasColumnType("varchar(50)")
  657. .HasCharSet("utf8")
  658. .HasCollation("utf8_general_ci");
  659. entity.Property(e => e.Version).HasColumnType("int(11)");
  660. entity.Property(e => e.VersionNum)
  661. .HasColumnType("varchar(20)")
  662. .HasCharSet("utf8")
  663. .HasCollation("utf8_general_ci");
  664. });
  665. modelBuilder.Entity<AppVideo>(entity =>
  666. {
  667. entity.Property(e => e.Id).HasColumnType("int(11)");
  668. entity.Property(e => e.BannerPic)
  669. .HasColumnType("varchar(200)")
  670. .HasCharSet("utf8")
  671. .HasCollation("utf8_general_ci");
  672. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  673. entity.Property(e => e.CreateMan)
  674. .HasColumnType("varchar(50)")
  675. .HasCharSet("utf8")
  676. .HasCollation("utf8_general_ci");
  677. entity.Property(e => e.Name)
  678. .HasColumnType("varchar(50)")
  679. .HasCharSet("utf8")
  680. .HasCollation("utf8_general_ci");
  681. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  682. entity.Property(e => e.Remark)
  683. .HasColumnType("varchar(200)")
  684. .HasCharSet("utf8")
  685. .HasCollation("utf8_general_ci");
  686. entity.Property(e => e.SeoDescription)
  687. .HasColumnType("varchar(500)")
  688. .HasCharSet("utf8")
  689. .HasCollation("utf8_general_ci");
  690. entity.Property(e => e.SeoKeyword)
  691. .HasColumnType("varchar(200)")
  692. .HasCharSet("utf8")
  693. .HasCollation("utf8_general_ci");
  694. entity.Property(e => e.SeoTitle)
  695. .HasColumnType("varchar(100)")
  696. .HasCharSet("utf8")
  697. .HasCollation("utf8_general_ci");
  698. entity.Property(e => e.Sort).HasColumnType("int(11)");
  699. entity.Property(e => e.Status).HasColumnType("int(11)");
  700. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  701. entity.Property(e => e.UpdateMan)
  702. .HasColumnType("varchar(50)")
  703. .HasCharSet("utf8")
  704. .HasCollation("utf8_general_ci");
  705. entity.Property(e => e.Version).HasColumnType("int(11)");
  706. });
  707. modelBuilder.Entity<AppVideoList>(entity =>
  708. {
  709. entity.Property(e => e.Id).HasColumnType("int(11)");
  710. entity.Property(e => e.BgPic)
  711. .HasColumnType("varchar(200)")
  712. .HasCharSet("utf8")
  713. .HasCollation("utf8_general_ci");
  714. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  715. entity.Property(e => e.CreateMan)
  716. .HasColumnType("varchar(50)")
  717. .HasCharSet("utf8")
  718. .HasCollation("utf8_general_ci");
  719. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  720. entity.Property(e => e.Remark)
  721. .HasColumnType("varchar(200)")
  722. .HasCharSet("utf8")
  723. .HasCollation("utf8_general_ci");
  724. entity.Property(e => e.SeoDescription)
  725. .HasColumnType("varchar(500)")
  726. .HasCharSet("utf8")
  727. .HasCollation("utf8_general_ci");
  728. entity.Property(e => e.SeoKeyword)
  729. .HasColumnType("varchar(200)")
  730. .HasCharSet("utf8")
  731. .HasCollation("utf8_general_ci");
  732. entity.Property(e => e.SeoTitle)
  733. .HasColumnType("varchar(100)")
  734. .HasCharSet("utf8")
  735. .HasCollation("utf8_general_ci");
  736. entity.Property(e => e.Sort).HasColumnType("int(11)");
  737. entity.Property(e => e.Status).HasColumnType("int(11)");
  738. entity.Property(e => e.Title)
  739. .HasColumnType("varchar(50)")
  740. .HasCharSet("utf8")
  741. .HasCollation("utf8_general_ci");
  742. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  743. entity.Property(e => e.UpdateMan)
  744. .HasColumnType("varchar(50)")
  745. .HasCharSet("utf8")
  746. .HasCollation("utf8_general_ci");
  747. entity.Property(e => e.Version).HasColumnType("int(11)");
  748. entity.Property(e => e.VideoId).HasColumnType("int(11)");
  749. entity.Property(e => e.VideoUrl)
  750. .HasColumnType("varchar(500)")
  751. .HasCharSet("utf8")
  752. .HasCollation("utf8_general_ci");
  753. });
  754. modelBuilder.Entity<BankInfo>(entity =>
  755. {
  756. entity.Property(e => e.Id).HasColumnType("int(11)");
  757. entity.Property(e => e.BankCode)
  758. .HasColumnType("varchar(16)")
  759. .HasCharSet("utf8")
  760. .HasCollation("utf8_general_ci");
  761. entity.Property(e => e.BankName)
  762. .HasColumnType("varchar(100)")
  763. .HasCharSet("utf8")
  764. .HasCollation("utf8_general_ci");
  765. entity.Property(e => e.BankNameAbbr)
  766. .HasColumnType("varchar(60)")
  767. .HasCharSet("utf8")
  768. .HasCollation("utf8_general_ci");
  769. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  770. entity.Property(e => e.CreateMan)
  771. .HasColumnType("varchar(50)")
  772. .HasCharSet("utf8")
  773. .HasCollation("utf8_general_ci");
  774. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  775. entity.Property(e => e.SeoDescription)
  776. .HasColumnType("varchar(500)")
  777. .HasCharSet("utf8")
  778. .HasCollation("utf8_general_ci");
  779. entity.Property(e => e.SeoKeyword)
  780. .HasColumnType("varchar(200)")
  781. .HasCharSet("utf8")
  782. .HasCollation("utf8_general_ci");
  783. entity.Property(e => e.SeoTitle)
  784. .HasColumnType("varchar(100)")
  785. .HasCharSet("utf8")
  786. .HasCollation("utf8_general_ci");
  787. entity.Property(e => e.Sort).HasColumnType("int(11)");
  788. entity.Property(e => e.Status).HasColumnType("int(11)");
  789. entity.Property(e => e.UnitedBankName)
  790. .HasColumnType("varchar(100)")
  791. .HasCharSet("utf8")
  792. .HasCollation("utf8_general_ci");
  793. entity.Property(e => e.UnitedBankNo)
  794. .HasColumnType("varchar(16)")
  795. .HasCharSet("utf8")
  796. .HasCollation("utf8_general_ci");
  797. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  798. entity.Property(e => e.UpdateMan)
  799. .HasColumnType("varchar(50)")
  800. .HasCharSet("utf8")
  801. .HasCollation("utf8_general_ci");
  802. entity.Property(e => e.Version).HasColumnType("int(11)");
  803. });
  804. modelBuilder.Entity<Col>(entity =>
  805. {
  806. entity.Property(e => e.Id).HasColumnType("int(11)");
  807. entity.Property(e => e.ClassName)
  808. .HasColumnType("varchar(50)")
  809. .HasCharSet("utf8")
  810. .HasCollation("utf8_general_ci");
  811. entity.Property(e => e.ColDetail)
  812. .HasColumnType("varchar(50)")
  813. .HasCharSet("utf8")
  814. .HasCollation("utf8_general_ci");
  815. entity.Property(e => e.ColEnName)
  816. .HasColumnType("varchar(50)")
  817. .HasCharSet("utf8")
  818. .HasCollation("utf8_general_ci");
  819. entity.Property(e => e.ColEnNav)
  820. .HasColumnType("varchar(200)")
  821. .HasCharSet("utf8")
  822. .HasCollation("utf8_general_ci");
  823. entity.Property(e => e.ColId)
  824. .HasColumnType("varchar(30)")
  825. .HasCharSet("utf8")
  826. .HasCollation("utf8_general_ci");
  827. entity.Property(e => e.ColName)
  828. .HasColumnType("varchar(50)")
  829. .HasCharSet("utf8")
  830. .HasCollation("utf8_general_ci");
  831. entity.Property(e => e.ColPicPath)
  832. .HasColumnType("varchar(200)")
  833. .HasCharSet("utf8")
  834. .HasCollation("utf8_general_ci");
  835. entity.Property(e => e.Contents)
  836. .HasColumnType("longtext")
  837. .HasCharSet("utf8")
  838. .HasCollation("utf8_general_ci");
  839. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  840. entity.Property(e => e.CreateMan)
  841. .HasColumnType("varchar(50)")
  842. .HasCharSet("utf8")
  843. .HasCollation("utf8_general_ci");
  844. entity.Property(e => e.DetailTemp)
  845. .HasColumnType("varchar(100)")
  846. .HasCharSet("utf8")
  847. .HasCollation("utf8_general_ci");
  848. entity.Property(e => e.DetailTempM)
  849. .HasColumnType("varchar(100)")
  850. .HasCharSet("utf8")
  851. .HasCollation("utf8_general_ci");
  852. entity.Property(e => e.ListPageCount).HasColumnType("int(11)");
  853. entity.Property(e => e.ListTemp)
  854. .HasColumnType("varchar(100)")
  855. .HasCharSet("utf8")
  856. .HasCollation("utf8_general_ci");
  857. entity.Property(e => e.ListTempM)
  858. .HasColumnType("varchar(100)")
  859. .HasCharSet("utf8")
  860. .HasCollation("utf8_general_ci");
  861. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  862. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  863. entity.Property(e => e.Recommend)
  864. .HasColumnType("bit(1)")
  865. .HasDefaultValueSql("b'0'");
  866. entity.Property(e => e.SeoDescription)
  867. .HasColumnType("varchar(500)")
  868. .HasCharSet("utf8")
  869. .HasCollation("utf8_general_ci");
  870. entity.Property(e => e.SeoKeyword)
  871. .HasColumnType("varchar(200)")
  872. .HasCharSet("utf8")
  873. .HasCollation("utf8_general_ci");
  874. entity.Property(e => e.SeoTitle)
  875. .HasColumnType("varchar(100)")
  876. .HasCharSet("utf8")
  877. .HasCollation("utf8_general_ci");
  878. entity.Property(e => e.Sort).HasColumnType("int(11)");
  879. entity.Property(e => e.Status).HasColumnType("int(11)");
  880. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  881. entity.Property(e => e.UpdateMan)
  882. .HasColumnType("varchar(50)")
  883. .HasCharSet("utf8")
  884. .HasCollation("utf8_general_ci");
  885. entity.Property(e => e.Url)
  886. .HasColumnType("longtext")
  887. .HasCharSet("utf8")
  888. .HasCollation("utf8_general_ci");
  889. entity.Property(e => e.Version).HasColumnType("int(11)");
  890. });
  891. modelBuilder.Entity<ConsumerOpenIds>(entity =>
  892. {
  893. entity.HasKey(e => e.OpenId)
  894. .HasName("PRIMARY");
  895. entity.Property(e => e.OpenId)
  896. .HasColumnType("varchar(50)")
  897. .HasCharSet("utf8")
  898. .HasCollation("utf8_general_ci");
  899. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  900. });
  901. modelBuilder.Entity<ConsumerOrderForNo>(entity =>
  902. {
  903. entity.HasKey(e => e.OrderNo)
  904. .HasName("PRIMARY");
  905. entity.Property(e => e.OrderNo)
  906. .HasColumnType("varchar(50)")
  907. .HasCharSet("utf8")
  908. .HasCollation("utf8_general_ci");
  909. entity.Property(e => e.OrderIds).HasColumnType("int(11)");
  910. });
  911. modelBuilder.Entity<ConsumerOrders>(entity =>
  912. {
  913. entity.Property(e => e.Id).HasColumnType("int(11)");
  914. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  915. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  916. entity.Property(e => e.CreateMan)
  917. .HasColumnType("varchar(50)")
  918. .HasCharSet("utf8")
  919. .HasCollation("utf8_general_ci");
  920. entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
  921. entity.Property(e => e.IsAct)
  922. .HasColumnType("bit(1)")
  923. .HasDefaultValueSql("b'0'");
  924. entity.Property(e => e.MaxDivi).HasColumnType("decimal(18,2)");
  925. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  926. entity.Property(e => e.OrderNo)
  927. .HasColumnType("varchar(30)")
  928. .HasCharSet("utf8")
  929. .HasCollation("utf8_general_ci");
  930. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  931. entity.Property(e => e.PayMoney).HasColumnType("decimal(18,2)");
  932. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  933. entity.Property(e => e.ReturnMoney).HasColumnType("decimal(18,2)");
  934. entity.Property(e => e.SeoDescription)
  935. .HasColumnType("varchar(500)")
  936. .HasCharSet("utf8")
  937. .HasCollation("utf8_general_ci");
  938. entity.Property(e => e.SeoKeyword)
  939. .HasColumnType("varchar(200)")
  940. .HasCharSet("utf8")
  941. .HasCollation("utf8_general_ci");
  942. entity.Property(e => e.SeoTitle)
  943. .HasColumnType("varchar(100)")
  944. .HasCharSet("utf8")
  945. .HasCollation("utf8_general_ci");
  946. entity.Property(e => e.SnNo)
  947. .HasColumnType("varchar(50)")
  948. .HasCharSet("utf8")
  949. .HasCollation("utf8_general_ci");
  950. entity.Property(e => e.Sort).HasColumnType("int(11)");
  951. entity.Property(e => e.Status).HasColumnType("int(11)");
  952. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  953. entity.Property(e => e.UpdateMan)
  954. .HasColumnType("varchar(50)")
  955. .HasCharSet("utf8")
  956. .HasCollation("utf8_general_ci");
  957. entity.Property(e => e.Version).HasColumnType("int(11)");
  958. });
  959. modelBuilder.Entity<ConsumerProfit>(entity =>
  960. {
  961. entity.Property(e => e.Id).HasColumnType("int(11)");
  962. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  963. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  964. entity.Property(e => e.CreateMan)
  965. .HasColumnType("varchar(50)")
  966. .HasCharSet("utf8")
  967. .HasCollation("utf8_general_ci");
  968. entity.Property(e => e.GetMoney).HasColumnType("decimal(18,2)");
  969. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  970. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  971. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  972. entity.Property(e => e.SeoDescription)
  973. .HasColumnType("varchar(500)")
  974. .HasCharSet("utf8")
  975. .HasCollation("utf8_general_ci");
  976. entity.Property(e => e.SeoKeyword)
  977. .HasColumnType("varchar(200)")
  978. .HasCharSet("utf8")
  979. .HasCollation("utf8_general_ci");
  980. entity.Property(e => e.SeoTitle)
  981. .HasColumnType("varchar(100)")
  982. .HasCharSet("utf8")
  983. .HasCollation("utf8_general_ci");
  984. entity.Property(e => e.Sort).HasColumnType("int(11)");
  985. entity.Property(e => e.Status).HasColumnType("int(11)");
  986. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  987. entity.Property(e => e.UpdateMan)
  988. .HasColumnType("varchar(50)")
  989. .HasCharSet("utf8")
  990. .HasCollation("utf8_general_ci");
  991. entity.Property(e => e.Version).HasColumnType("int(11)");
  992. });
  993. modelBuilder.Entity<Consumers>(entity =>
  994. {
  995. entity.Property(e => e.Id).HasColumnType("int(11)");
  996. entity.Property(e => e.AlipayFlag)
  997. .HasColumnType("bit(1)")
  998. .HasDefaultValueSql("b'0'");
  999. entity.Property(e => e.AlipayUserId)
  1000. .HasColumnType("varchar(50)")
  1001. .HasCharSet("utf8")
  1002. .HasCollation("utf8_general_ci");
  1003. entity.Property(e => e.CardFlag)
  1004. .HasColumnType("bit(1)")
  1005. .HasDefaultValueSql("b'0'");
  1006. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1007. entity.Property(e => e.CreateMan)
  1008. .HasColumnType("varchar(50)")
  1009. .HasCharSet("utf8")
  1010. .HasCollation("utf8_general_ci");
  1011. entity.Property(e => e.CurIntgegral).HasColumnType("int(11)");
  1012. entity.Property(e => e.HeadPhoto)
  1013. .HasColumnType("varchar(2000)")
  1014. .HasCharSet("utf8")
  1015. .HasCollation("utf8_general_ci");
  1016. entity.Property(e => e.LastConsumDate).HasColumnType("datetime");
  1017. entity.Property(e => e.Mobile)
  1018. .HasColumnType("varchar(11)")
  1019. .HasCharSet("utf8")
  1020. .HasCollation("utf8_general_ci");
  1021. entity.Property(e => e.NickName)
  1022. .HasColumnType("varchar(50)")
  1023. .HasCharSet("utf8")
  1024. .HasCollation("utf8_general_ci");
  1025. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1026. entity.Property(e => e.SeoDescription)
  1027. .HasColumnType("varchar(500)")
  1028. .HasCharSet("utf8")
  1029. .HasCollation("utf8_general_ci");
  1030. entity.Property(e => e.SeoKeyword)
  1031. .HasColumnType("varchar(200)")
  1032. .HasCharSet("utf8")
  1033. .HasCollation("utf8_general_ci");
  1034. entity.Property(e => e.SeoTitle)
  1035. .HasColumnType("varchar(100)")
  1036. .HasCharSet("utf8")
  1037. .HasCollation("utf8_general_ci");
  1038. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1039. entity.Property(e => e.Status).HasColumnType("int(11)");
  1040. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1041. entity.Property(e => e.TotalConsumCount).HasColumnType("int(11)");
  1042. entity.Property(e => e.TotalDividend).HasColumnType("decimal(18,2)");
  1043. entity.Property(e => e.TotalIntegral).HasColumnType("int(11)");
  1044. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1045. entity.Property(e => e.UpdateMan)
  1046. .HasColumnType("varchar(50)")
  1047. .HasCharSet("utf8")
  1048. .HasCollation("utf8_general_ci");
  1049. entity.Property(e => e.Version).HasColumnType("int(11)");
  1050. entity.Property(e => e.WeChatPayFlag)
  1051. .HasColumnType("bit(1)")
  1052. .HasDefaultValueSql("b'0'");
  1053. entity.Property(e => e.WechatOpenId)
  1054. .HasColumnType("varchar(50)")
  1055. .HasCharSet("utf8")
  1056. .HasCollation("utf8_general_ci");
  1057. entity.Property(e => e.WechatUnionid)
  1058. .HasColumnType("varchar(50)")
  1059. .HasCharSet("utf8")
  1060. .HasCollation("utf8_general_ci");
  1061. });
  1062. modelBuilder.Entity<CouponAssignRecords>(entity =>
  1063. {
  1064. entity.Property(e => e.Id).HasColumnType("int(11)");
  1065. entity.Property(e => e.Areas)
  1066. .HasColumnType("varchar(50)")
  1067. .HasCharSet("utf8")
  1068. .HasCollation("utf8_general_ci");
  1069. entity.Property(e => e.CouponIds)
  1070. .HasColumnType("varchar(200)")
  1071. .HasCharSet("utf8")
  1072. .HasCollation("utf8_general_ci");
  1073. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1074. entity.Property(e => e.CreateMan)
  1075. .HasColumnType("varchar(50)")
  1076. .HasCharSet("utf8")
  1077. .HasCollation("utf8_general_ci");
  1078. entity.Property(e => e.CurMoneyMax).HasColumnType("decimal(18,2)");
  1079. entity.Property(e => e.CurMoneyMin).HasColumnType("decimal(18,2)");
  1080. entity.Property(e => e.Mobile)
  1081. .HasColumnType("varchar(11)")
  1082. .HasCharSet("utf8")
  1083. .HasCollation("utf8_general_ci");
  1084. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1085. entity.Property(e => e.SeoDescription)
  1086. .HasColumnType("varchar(500)")
  1087. .HasCharSet("utf8")
  1088. .HasCollation("utf8_general_ci");
  1089. entity.Property(e => e.SeoKeyword)
  1090. .HasColumnType("varchar(200)")
  1091. .HasCharSet("utf8")
  1092. .HasCollation("utf8_general_ci");
  1093. entity.Property(e => e.SeoTitle)
  1094. .HasColumnType("varchar(100)")
  1095. .HasCharSet("utf8")
  1096. .HasCollation("utf8_general_ci");
  1097. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1098. entity.Property(e => e.Status).HasColumnType("int(11)");
  1099. entity.Property(e => e.TotalOrderMoneyMax).HasColumnType("decimal(18,2)");
  1100. entity.Property(e => e.TotalOrderMoneyMin).HasColumnType("decimal(18,2)");
  1101. entity.Property(e => e.TotalUseIntegralMax).HasColumnType("decimal(18,2)");
  1102. entity.Property(e => e.TotalUseIntegralMin).HasColumnType("decimal(18,2)");
  1103. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1104. entity.Property(e => e.UpdateMan)
  1105. .HasColumnType("varchar(50)")
  1106. .HasCharSet("utf8")
  1107. .HasCollation("utf8_general_ci");
  1108. entity.Property(e => e.UserGroupId)
  1109. .HasColumnType("varchar(50)")
  1110. .HasCharSet("utf8")
  1111. .HasCollation("utf8_general_ci");
  1112. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1113. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1114. entity.Property(e => e.Version).HasColumnType("int(11)");
  1115. });
  1116. modelBuilder.Entity<Coupons>(entity =>
  1117. {
  1118. entity.Property(e => e.Id).HasColumnType("int(11)");
  1119. entity.Property(e => e.AndPromotion)
  1120. .HasColumnType("bit(1)")
  1121. .HasDefaultValueSql("b'0'");
  1122. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1123. entity.Property(e => e.CreateMan)
  1124. .HasColumnType("varchar(50)")
  1125. .HasCharSet("utf8")
  1126. .HasCollation("utf8_general_ci");
  1127. entity.Property(e => e.ExpireEndDate).HasColumnType("datetime");
  1128. entity.Property(e => e.ExpireStartDate).HasColumnType("datetime");
  1129. entity.Property(e => e.Explanation)
  1130. .HasColumnType("varchar(200)")
  1131. .HasCharSet("utf8")
  1132. .HasCollation("utf8_general_ci");
  1133. entity.Property(e => e.FullReduceData).HasColumnType("decimal(18,2)");
  1134. entity.Property(e => e.FullReduceMoney).HasColumnType("decimal(18,2)");
  1135. entity.Property(e => e.IsNewUser)
  1136. .HasColumnType("bit(1)")
  1137. .HasDefaultValueSql("b'0'");
  1138. entity.Property(e => e.IsPublic)
  1139. .HasColumnType("bit(1)")
  1140. .HasDefaultValueSql("b'0'");
  1141. entity.Property(e => e.IsReUse)
  1142. .HasColumnType("bit(1)")
  1143. .HasDefaultValueSql("b'0'");
  1144. entity.Property(e => e.IsRepeat)
  1145. .HasColumnType("bit(1)")
  1146. .HasDefaultValueSql("b'0'");
  1147. entity.Property(e => e.IsSuperpose)
  1148. .HasColumnType("bit(1)")
  1149. .HasDefaultValueSql("b'0'");
  1150. entity.Property(e => e.Kind).HasColumnType("int(11)");
  1151. entity.Property(e => e.MerchantId)
  1152. .HasColumnType("varchar(200)")
  1153. .HasCharSet("utf8")
  1154. .HasCollation("utf8_general_ci");
  1155. entity.Property(e => e.Name)
  1156. .HasColumnType("varchar(50)")
  1157. .HasCharSet("utf8")
  1158. .HasCollation("utf8_general_ci");
  1159. entity.Property(e => e.ProductColId)
  1160. .HasColumnType("varchar(200)")
  1161. .HasCharSet("utf8")
  1162. .HasCollation("utf8_general_ci");
  1163. entity.Property(e => e.ProductId)
  1164. .HasColumnType("varchar(500)")
  1165. .HasCharSet("utf8")
  1166. .HasCollation("utf8_general_ci");
  1167. entity.Property(e => e.PublicEndDate).HasColumnType("datetime");
  1168. entity.Property(e => e.PublicMax).HasColumnType("int(11)");
  1169. entity.Property(e => e.PublicMaxByDay).HasColumnType("int(11)");
  1170. entity.Property(e => e.PublicStartDate).HasColumnType("datetime");
  1171. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1172. entity.Property(e => e.RepeatCondition)
  1173. .HasColumnType("varchar(50)")
  1174. .HasCharSet("utf8")
  1175. .HasCollation("utf8_general_ci");
  1176. entity.Property(e => e.RepeatType).HasColumnType("int(11)");
  1177. entity.Property(e => e.SeoDescription)
  1178. .HasColumnType("varchar(500)")
  1179. .HasCharSet("utf8")
  1180. .HasCollation("utf8_general_ci");
  1181. entity.Property(e => e.SeoKeyword)
  1182. .HasColumnType("varchar(200)")
  1183. .HasCharSet("utf8")
  1184. .HasCollation("utf8_general_ci");
  1185. entity.Property(e => e.SeoTitle)
  1186. .HasColumnType("varchar(100)")
  1187. .HasCharSet("utf8")
  1188. .HasCollation("utf8_general_ci");
  1189. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1190. entity.Property(e => e.Status).HasColumnType("int(11)");
  1191. entity.Property(e => e.Stock).HasColumnType("decimal(18,2)");
  1192. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1193. entity.Property(e => e.UpdateMan)
  1194. .HasColumnType("varchar(50)")
  1195. .HasCharSet("utf8")
  1196. .HasCollation("utf8_general_ci");
  1197. entity.Property(e => e.UseEndDate).HasColumnType("datetime");
  1198. entity.Property(e => e.UseStartDate).HasColumnType("datetime");
  1199. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1200. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1201. entity.Property(e => e.Version).HasColumnType("int(11)");
  1202. });
  1203. modelBuilder.Entity<CouponsForUser>(entity =>
  1204. {
  1205. entity.Property(e => e.Id).HasColumnType("int(11)");
  1206. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  1207. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1208. entity.Property(e => e.CreateMan)
  1209. .HasColumnType("varchar(50)")
  1210. .HasCharSet("utf8")
  1211. .HasCollation("utf8_general_ci");
  1212. entity.Property(e => e.IsLock)
  1213. .HasColumnType("bit(1)")
  1214. .HasDefaultValueSql("b'0'");
  1215. entity.Property(e => e.IsUse)
  1216. .HasColumnType("bit(1)")
  1217. .HasDefaultValueSql("b'0'");
  1218. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1219. entity.Property(e => e.SeoDescription)
  1220. .HasColumnType("varchar(500)")
  1221. .HasCharSet("utf8")
  1222. .HasCollation("utf8_general_ci");
  1223. entity.Property(e => e.SeoKeyword)
  1224. .HasColumnType("varchar(200)")
  1225. .HasCharSet("utf8")
  1226. .HasCollation("utf8_general_ci");
  1227. entity.Property(e => e.SeoTitle)
  1228. .HasColumnType("varchar(100)")
  1229. .HasCharSet("utf8")
  1230. .HasCollation("utf8_general_ci");
  1231. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1232. entity.Property(e => e.Status).HasColumnType("int(11)");
  1233. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1234. entity.Property(e => e.UpdateMan)
  1235. .HasColumnType("varchar(50)")
  1236. .HasCharSet("utf8")
  1237. .HasCollation("utf8_general_ci");
  1238. entity.Property(e => e.UseDate).HasColumnType("datetime");
  1239. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1240. entity.Property(e => e.Version).HasColumnType("int(11)");
  1241. });
  1242. modelBuilder.Entity<CustomTagSet>(entity =>
  1243. {
  1244. entity.Property(e => e.Id).HasColumnType("int(11)");
  1245. entity.Property(e => e.Contents)
  1246. .HasColumnType("varchar(500)")
  1247. .HasCharSet("utf8")
  1248. .HasCollation("utf8_general_ci");
  1249. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1250. entity.Property(e => e.CreateMan)
  1251. .HasColumnType("varchar(50)")
  1252. .HasCharSet("utf8")
  1253. .HasCollation("utf8_general_ci");
  1254. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1255. entity.Property(e => e.SeoDescription)
  1256. .HasColumnType("varchar(500)")
  1257. .HasCharSet("utf8")
  1258. .HasCollation("utf8_general_ci");
  1259. entity.Property(e => e.SeoKeyword)
  1260. .HasColumnType("varchar(200)")
  1261. .HasCharSet("utf8")
  1262. .HasCollation("utf8_general_ci");
  1263. entity.Property(e => e.SeoTitle)
  1264. .HasColumnType("varchar(100)")
  1265. .HasCharSet("utf8")
  1266. .HasCollation("utf8_general_ci");
  1267. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1268. entity.Property(e => e.Status).HasColumnType("int(11)");
  1269. entity.Property(e => e.Tags)
  1270. .HasColumnType("varchar(50)")
  1271. .HasCharSet("utf8")
  1272. .HasCollation("utf8_general_ci");
  1273. entity.Property(e => e.Title)
  1274. .HasColumnType("varchar(50)")
  1275. .HasCharSet("utf8")
  1276. .HasCollation("utf8_general_ci");
  1277. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1278. entity.Property(e => e.UpdateMan)
  1279. .HasColumnType("varchar(50)")
  1280. .HasCharSet("utf8")
  1281. .HasCollation("utf8_general_ci");
  1282. entity.Property(e => e.Version).HasColumnType("int(11)");
  1283. });
  1284. modelBuilder.Entity<ErpCompanys>(entity =>
  1285. {
  1286. entity.Property(e => e.Id).HasColumnType("int(11)");
  1287. entity.Property(e => e.Code)
  1288. .HasColumnType("varchar(50)")
  1289. .HasCharSet("utf8")
  1290. .HasCollation("utf8_general_ci");
  1291. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1292. entity.Property(e => e.CreateMan)
  1293. .HasColumnType("varchar(50)")
  1294. .HasCharSet("utf8")
  1295. .HasCollation("utf8_general_ci");
  1296. entity.Property(e => e.Name)
  1297. .HasColumnType("varchar(50)")
  1298. .HasCharSet("utf8")
  1299. .HasCollation("utf8_general_ci");
  1300. entity.Property(e => e.Phone)
  1301. .HasColumnType("varchar(30)")
  1302. .HasCharSet("utf8")
  1303. .HasCollation("utf8_general_ci");
  1304. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1305. entity.Property(e => e.SeoDescription)
  1306. .HasColumnType("varchar(500)")
  1307. .HasCharSet("utf8")
  1308. .HasCollation("utf8_general_ci");
  1309. entity.Property(e => e.SeoKeyword)
  1310. .HasColumnType("varchar(200)")
  1311. .HasCharSet("utf8")
  1312. .HasCollation("utf8_general_ci");
  1313. entity.Property(e => e.SeoTitle)
  1314. .HasColumnType("varchar(100)")
  1315. .HasCharSet("utf8")
  1316. .HasCollation("utf8_general_ci");
  1317. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1318. entity.Property(e => e.Status).HasColumnType("int(11)");
  1319. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1320. entity.Property(e => e.UpdateMan)
  1321. .HasColumnType("varchar(50)")
  1322. .HasCharSet("utf8")
  1323. .HasCollation("utf8_general_ci");
  1324. entity.Property(e => e.Version).HasColumnType("int(11)");
  1325. });
  1326. modelBuilder.Entity<FileUpdateInfo>(entity =>
  1327. {
  1328. entity.Property(e => e.Id).HasColumnType("int(11)");
  1329. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1330. entity.Property(e => e.CreateMan)
  1331. .HasColumnType("varchar(50)")
  1332. .HasCharSet("utf8")
  1333. .HasCollation("utf8_general_ci");
  1334. entity.Property(e => e.FileName)
  1335. .HasColumnType("varchar(50)")
  1336. .HasCharSet("utf8")
  1337. .HasCollation("utf8_general_ci");
  1338. entity.Property(e => e.Path)
  1339. .HasColumnType("varchar(200)")
  1340. .HasCharSet("utf8")
  1341. .HasCollation("utf8_general_ci");
  1342. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1343. entity.Property(e => e.SeoDescription)
  1344. .HasColumnType("varchar(500)")
  1345. .HasCharSet("utf8")
  1346. .HasCollation("utf8_general_ci");
  1347. entity.Property(e => e.SeoKeyword)
  1348. .HasColumnType("varchar(200)")
  1349. .HasCharSet("utf8")
  1350. .HasCollation("utf8_general_ci");
  1351. entity.Property(e => e.SeoTitle)
  1352. .HasColumnType("varchar(100)")
  1353. .HasCharSet("utf8")
  1354. .HasCollation("utf8_general_ci");
  1355. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1356. entity.Property(e => e.Status).HasColumnType("int(11)");
  1357. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1358. entity.Property(e => e.UpdateMan)
  1359. .HasColumnType("varchar(50)")
  1360. .HasCharSet("utf8")
  1361. .HasCollation("utf8_general_ci");
  1362. entity.Property(e => e.Version).HasColumnType("int(11)");
  1363. entity.Property(e => e.VersionNum).HasColumnType("int(11)");
  1364. });
  1365. modelBuilder.Entity<FluxProfitDetail>(entity =>
  1366. {
  1367. entity.Property(e => e.Id).HasColumnType("int(11)");
  1368. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1369. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1370. entity.Property(e => e.CreateMan)
  1371. .HasColumnType("varchar(50)")
  1372. .HasCharSet("utf8")
  1373. .HasCollation("utf8_general_ci");
  1374. entity.Property(e => e.FluxEndDate)
  1375. .HasColumnType("varchar(8)")
  1376. .HasCharSet("utf8")
  1377. .HasCollation("utf8_general_ci");
  1378. entity.Property(e => e.FluxFeeAmt).HasColumnType("decimal(18,2)");
  1379. entity.Property(e => e.FluxOrderNo)
  1380. .HasColumnType("varchar(64)")
  1381. .HasCharSet("utf8")
  1382. .HasCollation("utf8_general_ci");
  1383. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1384. entity.Property(e => e.FluxStartDate)
  1385. .HasColumnType("varchar(8)")
  1386. .HasCharSet("utf8")
  1387. .HasCollation("utf8_general_ci");
  1388. entity.Property(e => e.MerNo)
  1389. .HasColumnType("varchar(32)")
  1390. .HasCharSet("utf8")
  1391. .HasCollation("utf8_general_ci");
  1392. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1393. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1394. entity.Property(e => e.MerchantUserId).HasColumnType("int(11)");
  1395. entity.Property(e => e.PosType)
  1396. .HasColumnType("varchar(32)")
  1397. .HasCharSet("utf8")
  1398. .HasCollation("utf8_general_ci");
  1399. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  1400. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1401. entity.Property(e => e.RecordNo)
  1402. .HasColumnType("varchar(32)")
  1403. .HasCharSet("utf8")
  1404. .HasCollation("utf8_general_ci");
  1405. entity.Property(e => e.Remark)
  1406. .HasColumnType("varchar(128)")
  1407. .HasCharSet("utf8")
  1408. .HasCollation("utf8_general_ci");
  1409. entity.Property(e => e.SeoDescription)
  1410. .HasColumnType("varchar(500)")
  1411. .HasCharSet("utf8")
  1412. .HasCollation("utf8_general_ci");
  1413. entity.Property(e => e.SeoKeyword)
  1414. .HasColumnType("varchar(200)")
  1415. .HasCharSet("utf8")
  1416. .HasCollation("utf8_general_ci");
  1417. entity.Property(e => e.SeoTitle)
  1418. .HasColumnType("varchar(100)")
  1419. .HasCharSet("utf8")
  1420. .HasCollation("utf8_general_ci");
  1421. entity.Property(e => e.SnNo)
  1422. .HasColumnType("varchar(32)")
  1423. .HasCharSet("utf8")
  1424. .HasCollation("utf8_general_ci");
  1425. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1426. entity.Property(e => e.Status).HasColumnType("int(11)");
  1427. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1428. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  1429. entity.Property(e => e.TradeDate)
  1430. .HasColumnType("varchar(8)")
  1431. .HasCharSet("utf8")
  1432. .HasCollation("utf8_general_ci");
  1433. entity.Property(e => e.TradeMonth)
  1434. .HasColumnType("varchar(6)")
  1435. .HasCharSet("utf8")
  1436. .HasCollation("utf8_general_ci");
  1437. entity.Property(e => e.TradeOrderNo)
  1438. .HasColumnType("varchar(64)")
  1439. .HasCharSet("utf8")
  1440. .HasCollation("utf8_general_ci");
  1441. entity.Property(e => e.TradeTime)
  1442. .HasColumnType("varchar(6)")
  1443. .HasCharSet("utf8")
  1444. .HasCollation("utf8_general_ci");
  1445. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1446. entity.Property(e => e.UpdateMan)
  1447. .HasColumnType("varchar(50)")
  1448. .HasCharSet("utf8")
  1449. .HasCollation("utf8_general_ci");
  1450. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1451. entity.Property(e => e.Version).HasColumnType("int(11)");
  1452. });
  1453. modelBuilder.Entity<FluxProfitSummary>(entity =>
  1454. {
  1455. entity.Property(e => e.Id).HasColumnType("int(11)");
  1456. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1457. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  1458. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1459. entity.Property(e => e.CreateMan)
  1460. .HasColumnType("varchar(50)")
  1461. .HasCharSet("utf8")
  1462. .HasCollation("utf8_general_ci");
  1463. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1464. entity.Property(e => e.FluxTradeNum).HasColumnType("int(11)");
  1465. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1466. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1467. entity.Property(e => e.Remark)
  1468. .HasColumnType("varchar(64)")
  1469. .HasCharSet("utf8")
  1470. .HasCollation("utf8_general_ci");
  1471. entity.Property(e => e.SeoDescription)
  1472. .HasColumnType("varchar(500)")
  1473. .HasCharSet("utf8")
  1474. .HasCollation("utf8_general_ci");
  1475. entity.Property(e => e.SeoKeyword)
  1476. .HasColumnType("varchar(200)")
  1477. .HasCharSet("utf8")
  1478. .HasCollation("utf8_general_ci");
  1479. entity.Property(e => e.SeoTitle)
  1480. .HasColumnType("varchar(100)")
  1481. .HasCharSet("utf8")
  1482. .HasCollation("utf8_general_ci");
  1483. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1484. entity.Property(e => e.Status).HasColumnType("int(11)");
  1485. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1486. entity.Property(e => e.TradeMonth)
  1487. .HasColumnType("varchar(6)")
  1488. .HasCharSet("utf8")
  1489. .HasCollation("utf8_general_ci");
  1490. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1491. entity.Property(e => e.UpdateMan)
  1492. .HasColumnType("varchar(50)")
  1493. .HasCharSet("utf8")
  1494. .HasCollation("utf8_general_ci");
  1495. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1496. entity.Property(e => e.Version).HasColumnType("int(11)");
  1497. });
  1498. modelBuilder.Entity<IndexIconList>(entity =>
  1499. {
  1500. entity.Property(e => e.Id).HasColumnType("int(11)");
  1501. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1502. entity.Property(e => e.CreateMan)
  1503. .HasColumnType("varchar(50)")
  1504. .HasCharSet("utf8")
  1505. .HasCollation("utf8_general_ci");
  1506. entity.Property(e => e.Icon)
  1507. .HasColumnType("varchar(200)")
  1508. .HasCharSet("utf8")
  1509. .HasCollation("utf8_general_ci");
  1510. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1511. entity.Property(e => e.SeoDescription)
  1512. .HasColumnType("varchar(500)")
  1513. .HasCharSet("utf8")
  1514. .HasCollation("utf8_general_ci");
  1515. entity.Property(e => e.SeoKeyword)
  1516. .HasColumnType("varchar(200)")
  1517. .HasCharSet("utf8")
  1518. .HasCollation("utf8_general_ci");
  1519. entity.Property(e => e.SeoTitle)
  1520. .HasColumnType("varchar(100)")
  1521. .HasCharSet("utf8")
  1522. .HasCollation("utf8_general_ci");
  1523. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1524. entity.Property(e => e.Status).HasColumnType("int(11)");
  1525. entity.Property(e => e.Title)
  1526. .HasColumnType("varchar(50)")
  1527. .HasCharSet("utf8")
  1528. .HasCollation("utf8_general_ci");
  1529. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1530. entity.Property(e => e.UpdateMan)
  1531. .HasColumnType("varchar(50)")
  1532. .HasCharSet("utf8")
  1533. .HasCollation("utf8_general_ci");
  1534. entity.Property(e => e.Url)
  1535. .HasColumnType("varchar(50)")
  1536. .HasCharSet("utf8")
  1537. .HasCollation("utf8_general_ci");
  1538. entity.Property(e => e.Version).HasColumnType("int(11)");
  1539. });
  1540. modelBuilder.Entity<KqProductBrand>(entity =>
  1541. {
  1542. entity.Property(e => e.Id).HasColumnType("int(11)");
  1543. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1544. entity.Property(e => e.CreateMan)
  1545. .HasColumnType("varchar(50)")
  1546. .HasCharSet("utf8")
  1547. .HasCollation("utf8_general_ci");
  1548. entity.Property(e => e.Name)
  1549. .HasColumnType("varchar(50)")
  1550. .HasCharSet("utf8")
  1551. .HasCollation("utf8_general_ci");
  1552. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  1553. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1554. entity.Property(e => e.SeoDescription)
  1555. .HasColumnType("varchar(500)")
  1556. .HasCharSet("utf8")
  1557. .HasCollation("utf8_general_ci");
  1558. entity.Property(e => e.SeoKeyword)
  1559. .HasColumnType("varchar(200)")
  1560. .HasCharSet("utf8")
  1561. .HasCollation("utf8_general_ci");
  1562. entity.Property(e => e.SeoTitle)
  1563. .HasColumnType("varchar(100)")
  1564. .HasCharSet("utf8")
  1565. .HasCollation("utf8_general_ci");
  1566. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1567. entity.Property(e => e.Status).HasColumnType("int(11)");
  1568. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1569. entity.Property(e => e.UpdateMan)
  1570. .HasColumnType("varchar(50)")
  1571. .HasCharSet("utf8")
  1572. .HasCollation("utf8_general_ci");
  1573. entity.Property(e => e.Version).HasColumnType("int(11)");
  1574. });
  1575. modelBuilder.Entity<KqProductOrgs>(entity =>
  1576. {
  1577. entity.Property(e => e.Id).HasColumnType("int(11)");
  1578. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1579. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1580. entity.Property(e => e.CreateMan)
  1581. .HasColumnType("varchar(50)")
  1582. .HasCharSet("utf8")
  1583. .HasCollation("utf8_general_ci");
  1584. entity.Property(e => e.Name)
  1585. .HasColumnType("varchar(50)")
  1586. .HasCharSet("utf8")
  1587. .HasCollation("utf8_general_ci");
  1588. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1589. entity.Property(e => e.SeoDescription)
  1590. .HasColumnType("varchar(500)")
  1591. .HasCharSet("utf8")
  1592. .HasCollation("utf8_general_ci");
  1593. entity.Property(e => e.SeoKeyword)
  1594. .HasColumnType("varchar(200)")
  1595. .HasCharSet("utf8")
  1596. .HasCollation("utf8_general_ci");
  1597. entity.Property(e => e.SeoTitle)
  1598. .HasColumnType("varchar(100)")
  1599. .HasCharSet("utf8")
  1600. .HasCollation("utf8_general_ci");
  1601. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1602. entity.Property(e => e.Status).HasColumnType("int(11)");
  1603. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1604. entity.Property(e => e.UpdateMan)
  1605. .HasColumnType("varchar(50)")
  1606. .HasCharSet("utf8")
  1607. .HasCollation("utf8_general_ci");
  1608. entity.Property(e => e.Version).HasColumnType("int(11)");
  1609. });
  1610. modelBuilder.Entity<KqProductRuleSet>(entity =>
  1611. {
  1612. entity.Property(e => e.Id).HasColumnType("int(11)");
  1613. entity.Property(e => e.ActDeposit).HasColumnType("decimal(18,2)");
  1614. entity.Property(e => e.ActEndDate).HasColumnType("datetime");
  1615. entity.Property(e => e.ActFirst).HasColumnType("decimal(18,2)");
  1616. entity.Property(e => e.ActFirstDeposit).HasColumnType("decimal(18,2)");
  1617. entity.Property(e => e.ActPosCount).HasColumnType("int(11)");
  1618. entity.Property(e => e.ActPrize).HasColumnType("decimal(18,2)");
  1619. entity.Property(e => e.ActStartDate).HasColumnType("datetime");
  1620. entity.Property(e => e.ActiveCount).HasColumnType("int(11)");
  1621. entity.Property(e => e.ActivePrice).HasColumnType("decimal(18,2)");
  1622. entity.Property(e => e.BigExtendCycleDays).HasColumnType("int(11)");
  1623. entity.Property(e => e.BigTotalAmount).HasColumnType("decimal(18,2)");
  1624. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1625. entity.Property(e => e.CreateMan)
  1626. .HasColumnType("varchar(50)")
  1627. .HasCharSet("utf8")
  1628. .HasCollation("utf8_general_ci");
  1629. entity.Property(e => e.CycleEndDate).HasColumnType("datetime");
  1630. entity.Property(e => e.CycleIsOther)
  1631. .HasColumnType("bit(1)")
  1632. .HasDefaultValueSql("b'0'");
  1633. entity.Property(e => e.CyclePosDays).HasColumnType("int(11)");
  1634. entity.Property(e => e.CycleStartDate).HasColumnType("datetime");
  1635. entity.Property(e => e.Deposit).HasColumnType("decimal(18,2)");
  1636. entity.Property(e => e.FeeBindDays).HasColumnType("int(11)");
  1637. entity.Property(e => e.FeeFixed).HasColumnType("decimal(18,2)");
  1638. entity.Property(e => e.FeeOfDays).HasColumnType("datetime");
  1639. entity.Property(e => e.FeeRate).HasColumnType("decimal(18,2)");
  1640. entity.Property(e => e.FlowCardDirectProfit).HasColumnType("decimal(18,2)");
  1641. entity.Property(e => e.FlowCardEndDate).HasColumnType("datetime");
  1642. entity.Property(e => e.FlowCardFee).HasColumnType("decimal(18,2)");
  1643. entity.Property(e => e.FlowCardFreeDays).HasColumnType("int(11)");
  1644. entity.Property(e => e.FlowCardStartDate).HasColumnType("datetime");
  1645. entity.Property(e => e.HelpEndDate).HasColumnType("datetime");
  1646. entity.Property(e => e.HelpFee).HasColumnType("decimal(18,2)");
  1647. entity.Property(e => e.HelpMonths).HasColumnType("int(11)");
  1648. entity.Property(e => e.HelpStartDate).HasColumnType("datetime");
  1649. entity.Property(e => e.HelpSteadyFee).HasColumnType("decimal(18,2)");
  1650. entity.Property(e => e.MerStaEndDate).HasColumnType("datetime");
  1651. entity.Property(e => e.MerStaMonths).HasColumnType("int(11)");
  1652. entity.Property(e => e.MerStaProfit).HasColumnType("decimal(18,2)");
  1653. entity.Property(e => e.MerStaStartDate).HasColumnType("datetime");
  1654. entity.Property(e => e.MerStaTradeForMonth).HasColumnType("decimal(18,2)");
  1655. entity.Property(e => e.OpenEndDate).HasColumnType("datetime");
  1656. entity.Property(e => e.OpenStaDays).HasColumnType("int(11)");
  1657. entity.Property(e => e.OpenStaPrize).HasColumnType("decimal(18,2)");
  1658. entity.Property(e => e.OpenStaPrize2).HasColumnType("decimal(18,2)");
  1659. entity.Property(e => e.OpenStaTrade).HasColumnType("decimal(18,2)");
  1660. entity.Property(e => e.OpenStartDate).HasColumnType("datetime");
  1661. entity.Property(e => e.OrgId).HasColumnType("int(11)");
  1662. entity.Property(e => e.PullNewEndDate).HasColumnType("datetime");
  1663. entity.Property(e => e.PullNewExtendDays).HasColumnType("int(11)");
  1664. entity.Property(e => e.PullNewStartDate).HasColumnType("datetime");
  1665. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1666. entity.Property(e => e.SeoDescription)
  1667. .HasColumnType("varchar(500)")
  1668. .HasCharSet("utf8")
  1669. .HasCollation("utf8_general_ci");
  1670. entity.Property(e => e.SeoKeyword)
  1671. .HasColumnType("varchar(200)")
  1672. .HasCharSet("utf8")
  1673. .HasCollation("utf8_general_ci");
  1674. entity.Property(e => e.SeoTitle)
  1675. .HasColumnType("varchar(100)")
  1676. .HasCharSet("utf8")
  1677. .HasCollation("utf8_general_ci");
  1678. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1679. entity.Property(e => e.Status).HasColumnType("int(11)");
  1680. entity.Property(e => e.SubsidyEndDate).HasColumnType("datetime");
  1681. entity.Property(e => e.SubsidyStartDate).HasColumnType("datetime");
  1682. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1683. entity.Property(e => e.UpdateMan)
  1684. .HasColumnType("varchar(50)")
  1685. .HasCharSet("utf8")
  1686. .HasCollation("utf8_general_ci");
  1687. entity.Property(e => e.Version).HasColumnType("int(11)");
  1688. });
  1689. modelBuilder.Entity<KqProducts>(entity =>
  1690. {
  1691. entity.Property(e => e.Id).HasColumnType("int(11)");
  1692. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1693. entity.Property(e => e.CreateMan)
  1694. .HasColumnType("varchar(50)")
  1695. .HasCharSet("utf8")
  1696. .HasCollation("utf8_general_ci");
  1697. entity.Property(e => e.Name)
  1698. .HasColumnType("varchar(50)")
  1699. .HasCharSet("utf8")
  1700. .HasCollation("utf8_general_ci");
  1701. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1702. entity.Property(e => e.SeoDescription)
  1703. .HasColumnType("varchar(500)")
  1704. .HasCharSet("utf8")
  1705. .HasCollation("utf8_general_ci");
  1706. entity.Property(e => e.SeoKeyword)
  1707. .HasColumnType("varchar(200)")
  1708. .HasCharSet("utf8")
  1709. .HasCollation("utf8_general_ci");
  1710. entity.Property(e => e.SeoTitle)
  1711. .HasColumnType("varchar(100)")
  1712. .HasCharSet("utf8")
  1713. .HasCollation("utf8_general_ci");
  1714. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1715. entity.Property(e => e.Status).HasColumnType("int(11)");
  1716. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1717. entity.Property(e => e.UpdateMan)
  1718. .HasColumnType("varchar(50)")
  1719. .HasCharSet("utf8")
  1720. .HasCollation("utf8_general_ci");
  1721. entity.Property(e => e.Version).HasColumnType("int(11)");
  1722. });
  1723. modelBuilder.Entity<MachineApply>(entity =>
  1724. {
  1725. entity.Property(e => e.Id).HasColumnType("int(11)");
  1726. entity.Property(e => e.Address)
  1727. .HasColumnType("varchar(50)")
  1728. .HasCharSet("utf8")
  1729. .HasCollation("utf8_general_ci");
  1730. entity.Property(e => e.ApplyDeviceName)
  1731. .HasColumnType("varchar(32)")
  1732. .HasCharSet("utf8")
  1733. .HasCollation("utf8_general_ci");
  1734. entity.Property(e => e.ApplyDeviceNum).HasColumnType("int(11)");
  1735. entity.Property(e => e.ApplyNo)
  1736. .HasColumnType("varchar(32)")
  1737. .HasCharSet("utf8")
  1738. .HasCollation("utf8_general_ci");
  1739. entity.Property(e => e.ApplyTime).HasColumnType("datetime");
  1740. entity.Property(e => e.Areas)
  1741. .HasColumnType("varchar(30)")
  1742. .HasCharSet("utf8")
  1743. .HasCollation("utf8_general_ci");
  1744. entity.Property(e => e.AuditBy)
  1745. .HasColumnType("varchar(32)")
  1746. .HasCharSet("utf8")
  1747. .HasCollation("utf8_general_ci");
  1748. entity.Property(e => e.AuditRemark)
  1749. .HasColumnType("varchar(128)")
  1750. .HasCharSet("utf8")
  1751. .HasCollation("utf8_general_ci");
  1752. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1753. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1754. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1755. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1756. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1757. entity.Property(e => e.CreateMan)
  1758. .HasColumnType("varchar(50)")
  1759. .HasCharSet("utf8")
  1760. .HasCollation("utf8_general_ci");
  1761. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  1762. entity.Property(e => e.ExpressName)
  1763. .HasColumnType("varchar(32)")
  1764. .HasCharSet("utf8")
  1765. .HasCollation("utf8_general_ci");
  1766. entity.Property(e => e.ExpressNo)
  1767. .HasColumnType("varchar(32)")
  1768. .HasCharSet("utf8")
  1769. .HasCollation("utf8_general_ci");
  1770. entity.Property(e => e.Mobile)
  1771. .HasColumnType("varchar(11)")
  1772. .HasCharSet("utf8")
  1773. .HasCollation("utf8_general_ci");
  1774. entity.Property(e => e.OrderExpand)
  1775. .HasColumnType("mediumtext")
  1776. .HasCharSet("utf8")
  1777. .HasCollation("utf8_general_ci");
  1778. entity.Property(e => e.ProductName)
  1779. .HasColumnType("varchar(32)")
  1780. .HasCharSet("utf8")
  1781. .HasCollation("utf8_general_ci");
  1782. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1783. entity.Property(e => e.RealName)
  1784. .HasColumnType("varchar(30)")
  1785. .HasCharSet("utf8")
  1786. .HasCollation("utf8_general_ci");
  1787. entity.Property(e => e.Remark)
  1788. .HasColumnType("varchar(64)")
  1789. .HasCharSet("utf8")
  1790. .HasCollation("utf8_general_ci");
  1791. entity.Property(e => e.ReturnOrderNo)
  1792. .HasColumnType("varchar(32)")
  1793. .HasCharSet("utf8")
  1794. .HasCollation("utf8_general_ci");
  1795. entity.Property(e => e.ReturnStatus).HasColumnType("int(11)");
  1796. entity.Property(e => e.SendDate).HasColumnType("datetime");
  1797. entity.Property(e => e.SendSn)
  1798. .HasColumnType("varchar(32)")
  1799. .HasCharSet("utf8")
  1800. .HasCollation("utf8_general_ci");
  1801. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  1802. entity.Property(e => e.SeoDescription)
  1803. .HasColumnType("varchar(500)")
  1804. .HasCharSet("utf8")
  1805. .HasCollation("utf8_general_ci");
  1806. entity.Property(e => e.SeoKeyword)
  1807. .HasColumnType("varchar(200)")
  1808. .HasCharSet("utf8")
  1809. .HasCollation("utf8_general_ci");
  1810. entity.Property(e => e.SeoTitle)
  1811. .HasColumnType("varchar(100)")
  1812. .HasCharSet("utf8")
  1813. .HasCollation("utf8_general_ci");
  1814. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1815. entity.Property(e => e.Status).HasColumnType("int(11)");
  1816. entity.Property(e => e.StoreAddress)
  1817. .HasColumnType("varchar(50)")
  1818. .HasCharSet("utf8")
  1819. .HasCollation("utf8_general_ci");
  1820. entity.Property(e => e.StoreAreas)
  1821. .HasColumnType("varchar(30)")
  1822. .HasCharSet("utf8")
  1823. .HasCollation("utf8_general_ci");
  1824. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1825. entity.Property(e => e.StoreManager)
  1826. .HasColumnType("varchar(32)")
  1827. .HasCharSet("utf8")
  1828. .HasCollation("utf8_general_ci");
  1829. entity.Property(e => e.StoreManagerMobile)
  1830. .HasColumnType("varchar(11)")
  1831. .HasCharSet("utf8")
  1832. .HasCollation("utf8_general_ci");
  1833. entity.Property(e => e.StoreName)
  1834. .HasColumnType("varchar(32)")
  1835. .HasCharSet("utf8")
  1836. .HasCollation("utf8_general_ci");
  1837. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  1838. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  1839. entity.Property(e => e.SwapActProName)
  1840. .HasColumnType("varchar(32)")
  1841. .HasCharSet("utf8")
  1842. .HasCollation("utf8_general_ci");
  1843. entity.Property(e => e.SwapActProType).HasColumnType("int(11)");
  1844. entity.Property(e => e.SwapSnExpand)
  1845. .HasColumnType("mediumtext")
  1846. .HasCharSet("utf8")
  1847. .HasCollation("utf8_general_ci");
  1848. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1849. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1850. entity.Property(e => e.UpdateMan)
  1851. .HasColumnType("varchar(50)")
  1852. .HasCharSet("utf8")
  1853. .HasCollation("utf8_general_ci");
  1854. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1855. entity.Property(e => e.Version).HasColumnType("int(11)");
  1856. });
  1857. modelBuilder.Entity<MachineApplyDetail>(entity =>
  1858. {
  1859. entity.Property(e => e.Id).HasColumnType("int(11)");
  1860. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  1861. entity.Property(e => e.ApplyNo)
  1862. .HasColumnType("varchar(32)")
  1863. .HasCharSet("utf8")
  1864. .HasCollation("utf8_general_ci");
  1865. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1866. entity.Property(e => e.CreateMan)
  1867. .HasColumnType("varchar(50)")
  1868. .HasCharSet("utf8")
  1869. .HasCollation("utf8_general_ci");
  1870. entity.Property(e => e.DeviceDesc)
  1871. .HasColumnType("varchar(32)")
  1872. .HasCharSet("utf8")
  1873. .HasCollation("utf8_general_ci");
  1874. entity.Property(e => e.DeviceModel)
  1875. .HasColumnType("varchar(32)")
  1876. .HasCharSet("utf8")
  1877. .HasCollation("utf8_general_ci");
  1878. entity.Property(e => e.DeviceSnNo)
  1879. .HasColumnType("varchar(32)")
  1880. .HasCharSet("utf8")
  1881. .HasCollation("utf8_general_ci");
  1882. entity.Property(e => e.DeviceStatus).HasColumnType("int(11)");
  1883. entity.Property(e => e.DeviceVendor)
  1884. .HasColumnType("varchar(32)")
  1885. .HasCharSet("utf8")
  1886. .HasCollation("utf8_general_ci");
  1887. entity.Property(e => e.ProductName)
  1888. .HasColumnType("varchar(32)")
  1889. .HasCharSet("utf8")
  1890. .HasCollation("utf8_general_ci");
  1891. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  1892. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1893. entity.Property(e => e.Remark)
  1894. .HasColumnType("varchar(64)")
  1895. .HasCharSet("utf8")
  1896. .HasCollation("utf8_general_ci");
  1897. entity.Property(e => e.SeoDescription)
  1898. .HasColumnType("varchar(500)")
  1899. .HasCharSet("utf8")
  1900. .HasCollation("utf8_general_ci");
  1901. entity.Property(e => e.SeoKeyword)
  1902. .HasColumnType("varchar(200)")
  1903. .HasCharSet("utf8")
  1904. .HasCollation("utf8_general_ci");
  1905. entity.Property(e => e.SeoTitle)
  1906. .HasColumnType("varchar(100)")
  1907. .HasCharSet("utf8")
  1908. .HasCollation("utf8_general_ci");
  1909. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1910. entity.Property(e => e.SourceSnNo)
  1911. .HasColumnType("varchar(32)")
  1912. .HasCharSet("utf8")
  1913. .HasCollation("utf8_general_ci");
  1914. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  1915. entity.Property(e => e.Status).HasColumnType("int(11)");
  1916. entity.Property(e => e.UpSrcProName)
  1917. .HasColumnType("varchar(32)")
  1918. .HasCharSet("utf8")
  1919. .HasCollation("utf8_general_ci");
  1920. entity.Property(e => e.UpSrcProType).HasColumnType("int(11)");
  1921. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1922. entity.Property(e => e.UpdateMan)
  1923. .HasColumnType("varchar(50)")
  1924. .HasCharSet("utf8")
  1925. .HasCollation("utf8_general_ci");
  1926. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1927. entity.Property(e => e.Version).HasColumnType("int(11)");
  1928. });
  1929. modelBuilder.Entity<MachineChange>(entity =>
  1930. {
  1931. entity.Property(e => e.Id).HasColumnType("int(11)");
  1932. entity.Property(e => e.AuditBy)
  1933. .HasColumnType("varchar(32)")
  1934. .HasCharSet("utf8")
  1935. .HasCollation("utf8_general_ci");
  1936. entity.Property(e => e.AuditRemark)
  1937. .HasColumnType("varchar(128)")
  1938. .HasCharSet("utf8")
  1939. .HasCollation("utf8_general_ci");
  1940. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1941. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1942. entity.Property(e => e.BackProductName)
  1943. .HasColumnType("varchar(32)")
  1944. .HasCharSet("utf8")
  1945. .HasCollation("utf8_general_ci");
  1946. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  1947. entity.Property(e => e.BackStoreId).HasColumnType("int(11)");
  1948. entity.Property(e => e.BackStoreName)
  1949. .HasColumnType("varchar(32)")
  1950. .HasCharSet("utf8")
  1951. .HasCollation("utf8_general_ci");
  1952. entity.Property(e => e.BackStoreUserId).HasColumnType("int(11)");
  1953. entity.Property(e => e.ChangeDeviceName)
  1954. .HasColumnType("varchar(32)")
  1955. .HasCharSet("utf8")
  1956. .HasCollation("utf8_general_ci");
  1957. entity.Property(e => e.ChangeDeviceNum).HasColumnType("int(11)");
  1958. entity.Property(e => e.ChangeNo)
  1959. .HasColumnType("varchar(32)")
  1960. .HasCharSet("utf8")
  1961. .HasCollation("utf8_general_ci");
  1962. entity.Property(e => e.ChangeSnExpand)
  1963. .HasColumnType("mediumtext")
  1964. .HasCharSet("utf8")
  1965. .HasCollation("utf8_general_ci");
  1966. entity.Property(e => e.ChangeTime).HasColumnType("datetime");
  1967. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1968. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1969. entity.Property(e => e.CreateMan)
  1970. .HasColumnType("varchar(50)")
  1971. .HasCharSet("utf8")
  1972. .HasCollation("utf8_general_ci");
  1973. entity.Property(e => e.OrderExpand)
  1974. .HasColumnType("mediumtext")
  1975. .HasCharSet("utf8")
  1976. .HasCollation("utf8_general_ci");
  1977. entity.Property(e => e.OutProductName)
  1978. .HasColumnType("varchar(32)")
  1979. .HasCharSet("utf8")
  1980. .HasCollation("utf8_general_ci");
  1981. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  1982. entity.Property(e => e.OutStoreAddress)
  1983. .HasColumnType("varchar(128)")
  1984. .HasCharSet("utf8")
  1985. .HasCollation("utf8_general_ci");
  1986. entity.Property(e => e.OutStoreAreas)
  1987. .HasColumnType("varchar(30)")
  1988. .HasCharSet("utf8")
  1989. .HasCollation("utf8_general_ci");
  1990. entity.Property(e => e.OutStoreId).HasColumnType("int(11)");
  1991. entity.Property(e => e.OutStoreManager)
  1992. .HasColumnType("varchar(32)")
  1993. .HasCharSet("utf8")
  1994. .HasCollation("utf8_general_ci");
  1995. entity.Property(e => e.OutStoreManagerMobile)
  1996. .HasColumnType("varchar(11)")
  1997. .HasCharSet("utf8")
  1998. .HasCollation("utf8_general_ci");
  1999. entity.Property(e => e.OutStoreName)
  2000. .HasColumnType("varchar(32)")
  2001. .HasCharSet("utf8")
  2002. .HasCollation("utf8_general_ci");
  2003. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2004. entity.Property(e => e.Remark)
  2005. .HasColumnType("varchar(64)")
  2006. .HasCharSet("utf8")
  2007. .HasCollation("utf8_general_ci");
  2008. entity.Property(e => e.SeoDescription)
  2009. .HasColumnType("varchar(500)")
  2010. .HasCharSet("utf8")
  2011. .HasCollation("utf8_general_ci");
  2012. entity.Property(e => e.SeoKeyword)
  2013. .HasColumnType("varchar(200)")
  2014. .HasCharSet("utf8")
  2015. .HasCollation("utf8_general_ci");
  2016. entity.Property(e => e.SeoTitle)
  2017. .HasColumnType("varchar(100)")
  2018. .HasCharSet("utf8")
  2019. .HasCollation("utf8_general_ci");
  2020. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2021. entity.Property(e => e.Status).HasColumnType("int(11)");
  2022. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2023. entity.Property(e => e.UpdateMan)
  2024. .HasColumnType("varchar(50)")
  2025. .HasCharSet("utf8")
  2026. .HasCollation("utf8_general_ci");
  2027. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2028. entity.Property(e => e.Version).HasColumnType("int(11)");
  2029. });
  2030. modelBuilder.Entity<MachineChangeDetail>(entity =>
  2031. {
  2032. entity.Property(e => e.Id).HasColumnType("int(11)");
  2033. entity.Property(e => e.BackDeviceStatus).HasColumnType("int(11)");
  2034. entity.Property(e => e.BackProductName)
  2035. .HasColumnType("varchar(32)")
  2036. .HasCharSet("utf8")
  2037. .HasCollation("utf8_general_ci");
  2038. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2039. entity.Property(e => e.BackSnNo)
  2040. .HasColumnType("varchar(32)")
  2041. .HasCharSet("utf8")
  2042. .HasCollation("utf8_general_ci");
  2043. entity.Property(e => e.BackSnType).HasColumnType("int(11)");
  2044. entity.Property(e => e.ChangeId).HasColumnType("int(11)");
  2045. entity.Property(e => e.ChangeNo)
  2046. .HasColumnType("varchar(32)")
  2047. .HasCharSet("utf8")
  2048. .HasCollation("utf8_general_ci");
  2049. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2050. entity.Property(e => e.CreateMan)
  2051. .HasColumnType("varchar(50)")
  2052. .HasCharSet("utf8")
  2053. .HasCollation("utf8_general_ci");
  2054. entity.Property(e => e.OutProductName)
  2055. .HasColumnType("varchar(32)")
  2056. .HasCharSet("utf8")
  2057. .HasCollation("utf8_general_ci");
  2058. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2059. entity.Property(e => e.OutSnNo)
  2060. .HasColumnType("varchar(32)")
  2061. .HasCharSet("utf8")
  2062. .HasCollation("utf8_general_ci");
  2063. entity.Property(e => e.OutSnType).HasColumnType("int(11)");
  2064. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2065. entity.Property(e => e.Remark)
  2066. .HasColumnType("varchar(64)")
  2067. .HasCharSet("utf8")
  2068. .HasCollation("utf8_general_ci");
  2069. entity.Property(e => e.SeoDescription)
  2070. .HasColumnType("varchar(500)")
  2071. .HasCharSet("utf8")
  2072. .HasCollation("utf8_general_ci");
  2073. entity.Property(e => e.SeoKeyword)
  2074. .HasColumnType("varchar(200)")
  2075. .HasCharSet("utf8")
  2076. .HasCollation("utf8_general_ci");
  2077. entity.Property(e => e.SeoTitle)
  2078. .HasColumnType("varchar(100)")
  2079. .HasCharSet("utf8")
  2080. .HasCollation("utf8_general_ci");
  2081. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2082. entity.Property(e => e.Status).HasColumnType("int(11)");
  2083. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2084. entity.Property(e => e.UpdateMan)
  2085. .HasColumnType("varchar(50)")
  2086. .HasCharSet("utf8")
  2087. .HasCollation("utf8_general_ci");
  2088. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2089. entity.Property(e => e.Version).HasColumnType("int(11)");
  2090. });
  2091. modelBuilder.Entity<MachineForMerNo>(entity =>
  2092. {
  2093. entity.HasKey(e => e.MerNo)
  2094. .HasName("PRIMARY");
  2095. entity.Property(e => e.MerNo)
  2096. .HasColumnType("varchar(50)")
  2097. .HasCharSet("utf8")
  2098. .HasCollation("utf8_general_ci");
  2099. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2100. });
  2101. modelBuilder.Entity<MachineForQrCode>(entity =>
  2102. {
  2103. entity.HasKey(e => e.DataId)
  2104. .HasName("PRIMARY");
  2105. entity.Property(e => e.DataId)
  2106. .HasColumnType("varchar(20)")
  2107. .HasCharSet("utf8")
  2108. .HasCollation("utf8_general_ci");
  2109. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2110. entity.Property(e => e.MachineSnNo)
  2111. .HasColumnType("varchar(50)")
  2112. .HasCharSet("utf8")
  2113. .HasCollation("utf8_general_ci");
  2114. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2115. entity.Property(e => e.SnNo)
  2116. .HasColumnType("varchar(50)")
  2117. .HasCharSet("utf8")
  2118. .HasCollation("utf8_general_ci");
  2119. });
  2120. modelBuilder.Entity<MachineForSnNo>(entity =>
  2121. {
  2122. entity.HasKey(e => e.SnNo)
  2123. .HasName("PRIMARY");
  2124. entity.Property(e => e.SnNo)
  2125. .HasColumnType("varchar(50)")
  2126. .HasCharSet("utf8")
  2127. .HasCollation("utf8_general_ci");
  2128. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2129. });
  2130. modelBuilder.Entity<MachineRenew>(entity =>
  2131. {
  2132. entity.Property(e => e.Id).HasColumnType("int(11)");
  2133. entity.Property(e => e.ApplyDate)
  2134. .HasColumnType("varchar(8)")
  2135. .HasCharSet("utf8")
  2136. .HasCollation("utf8_general_ci");
  2137. entity.Property(e => e.ApplyNo)
  2138. .HasColumnType("varchar(32)")
  2139. .HasCharSet("utf8")
  2140. .HasCollation("utf8_general_ci");
  2141. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2142. entity.Property(e => e.AuditDesc)
  2143. .HasColumnType("varchar(256)")
  2144. .HasCharSet("utf8")
  2145. .HasCollation("utf8_general_ci");
  2146. entity.Property(e => e.AuditStatus)
  2147. .HasColumnName("audit_status")
  2148. .HasColumnType("int(11)");
  2149. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2150. entity.Property(e => e.CreateMan)
  2151. .HasColumnType("varchar(50)")
  2152. .HasCharSet("utf8")
  2153. .HasCollation("utf8_general_ci");
  2154. entity.Property(e => e.DamagedBrandId).HasColumnType("int(11)");
  2155. entity.Property(e => e.DamagedSnNo)
  2156. .HasColumnType("varchar(32)")
  2157. .HasCharSet("utf8")
  2158. .HasCollation("utf8_general_ci");
  2159. entity.Property(e => e.DamagedSnType).HasColumnType("int(11)");
  2160. entity.Property(e => e.DeliverBrandId).HasColumnType("int(11)");
  2161. entity.Property(e => e.DeliverSnNo)
  2162. .HasColumnType("varchar(32)")
  2163. .HasCharSet("utf8")
  2164. .HasCollation("utf8_general_ci");
  2165. entity.Property(e => e.DemandDesc)
  2166. .HasColumnType("varchar(256)")
  2167. .HasCharSet("utf8")
  2168. .HasCollation("utf8_general_ci");
  2169. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2170. entity.Property(e => e.ReplaceBrandId).HasColumnType("int(11)");
  2171. entity.Property(e => e.ReplaceSnNo)
  2172. .HasColumnType("varchar(32)")
  2173. .HasCharSet("utf8")
  2174. .HasCollation("utf8_general_ci");
  2175. entity.Property(e => e.ReplaceSnType).HasColumnType("int(11)");
  2176. entity.Property(e => e.SeoDescription)
  2177. .HasColumnType("varchar(500)")
  2178. .HasCharSet("utf8")
  2179. .HasCollation("utf8_general_ci");
  2180. entity.Property(e => e.SeoKeyword)
  2181. .HasColumnType("varchar(200)")
  2182. .HasCharSet("utf8")
  2183. .HasCollation("utf8_general_ci");
  2184. entity.Property(e => e.SeoTitle)
  2185. .HasColumnType("varchar(100)")
  2186. .HasCharSet("utf8")
  2187. .HasCollation("utf8_general_ci");
  2188. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2189. entity.Property(e => e.Status).HasColumnType("int(11)");
  2190. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2191. entity.Property(e => e.UpdateMan)
  2192. .HasColumnType("varchar(50)")
  2193. .HasCharSet("utf8")
  2194. .HasCollation("utf8_general_ci");
  2195. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2196. entity.Property(e => e.Version).HasColumnType("int(11)");
  2197. });
  2198. modelBuilder.Entity<MachineReturn>(entity =>
  2199. {
  2200. entity.Property(e => e.Id).HasColumnType("int(11)");
  2201. entity.Property(e => e.ApplyNo)
  2202. .HasColumnType("varchar(32)")
  2203. .HasCharSet("utf8")
  2204. .HasCollation("utf8_general_ci");
  2205. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2206. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2207. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2208. entity.Property(e => e.CreateMan)
  2209. .HasColumnType("varchar(50)")
  2210. .HasCharSet("utf8")
  2211. .HasCollation("utf8_general_ci");
  2212. entity.Property(e => e.DeviceDesc)
  2213. .HasColumnType("varchar(256)")
  2214. .HasCharSet("utf8")
  2215. .HasCollation("utf8_general_ci");
  2216. entity.Property(e => e.DeviceNum).HasColumnType("int(11)");
  2217. entity.Property(e => e.DeviceSnNos)
  2218. .HasColumnType("mediumtext")
  2219. .HasCharSet("utf8")
  2220. .HasCollation("utf8_general_ci");
  2221. entity.Property(e => e.Operator)
  2222. .HasColumnType("varchar(32)")
  2223. .HasCharSet("utf8")
  2224. .HasCollation("utf8_general_ci");
  2225. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2226. entity.Property(e => e.Remark)
  2227. .HasColumnType("varchar(64)")
  2228. .HasCharSet("utf8")
  2229. .HasCollation("utf8_general_ci");
  2230. entity.Property(e => e.SeoDescription)
  2231. .HasColumnType("varchar(500)")
  2232. .HasCharSet("utf8")
  2233. .HasCollation("utf8_general_ci");
  2234. entity.Property(e => e.SeoKeyword)
  2235. .HasColumnType("varchar(200)")
  2236. .HasCharSet("utf8")
  2237. .HasCollation("utf8_general_ci");
  2238. entity.Property(e => e.SeoTitle)
  2239. .HasColumnType("varchar(100)")
  2240. .HasCharSet("utf8")
  2241. .HasCollation("utf8_general_ci");
  2242. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2243. entity.Property(e => e.Status).HasColumnType("int(11)");
  2244. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  2245. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2246. entity.Property(e => e.UpdateMan)
  2247. .HasColumnType("varchar(50)")
  2248. .HasCharSet("utf8")
  2249. .HasCollation("utf8_general_ci");
  2250. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2251. entity.Property(e => e.Version).HasColumnType("int(11)");
  2252. });
  2253. modelBuilder.Entity<MenuRight>(entity =>
  2254. {
  2255. entity.HasKey(e => e.MenuId)
  2256. .HasName("PRIMARY");
  2257. entity.Property(e => e.MenuId)
  2258. .HasColumnType("varchar(50)")
  2259. .HasCharSet("utf8")
  2260. .HasCollation("utf8_general_ci");
  2261. entity.Property(e => e.Name)
  2262. .HasColumnType("varchar(50)")
  2263. .HasCharSet("utf8")
  2264. .HasCollation("utf8_general_ci");
  2265. });
  2266. modelBuilder.Entity<MerchantAddInfo>(entity =>
  2267. {
  2268. entity.Property(e => e.Id).HasColumnType("int(11)");
  2269. entity.Property(e => e.AccountBank)
  2270. .HasColumnType("varchar(30)")
  2271. .HasCharSet("utf8")
  2272. .HasCollation("utf8_general_ci");
  2273. entity.Property(e => e.AccountName)
  2274. .HasColumnType("varchar(50)")
  2275. .HasCharSet("utf8")
  2276. .HasCollation("utf8_general_ci");
  2277. entity.Property(e => e.AccountNumber)
  2278. .HasColumnType("varchar(50)")
  2279. .HasCharSet("utf8")
  2280. .HasCollation("utf8_general_ci");
  2281. entity.Property(e => e.ActivitiesId)
  2282. .HasColumnType("varchar(32)")
  2283. .HasCharSet("utf8")
  2284. .HasCollation("utf8_general_ci");
  2285. entity.Property(e => e.ActivitiesRate)
  2286. .HasColumnType("varchar(20)")
  2287. .HasCharSet("utf8")
  2288. .HasCollation("utf8_general_ci");
  2289. entity.Property(e => e.AppAppid)
  2290. .HasColumnType("varchar(50)")
  2291. .HasCharSet("utf8")
  2292. .HasCollation("utf8_general_ci");
  2293. entity.Property(e => e.AppPics)
  2294. .HasColumnType("varchar(200)")
  2295. .HasCharSet("utf8")
  2296. .HasCollation("utf8_general_ci");
  2297. entity.Property(e => e.AppSubAppid)
  2298. .HasColumnType("varchar(50)")
  2299. .HasCharSet("utf8")
  2300. .HasCollation("utf8_general_ci");
  2301. entity.Property(e => e.ApplymentId)
  2302. .HasColumnType("varchar(50)")
  2303. .HasCharSet("utf8")
  2304. .HasCollation("utf8_general_ci");
  2305. entity.Property(e => e.ApplymentState)
  2306. .HasColumnType("varchar(50)")
  2307. .HasCharSet("utf8")
  2308. .HasCollation("utf8_general_ci");
  2309. entity.Property(e => e.AuditDetail)
  2310. .HasColumnType("mediumtext")
  2311. .HasCharSet("utf8")
  2312. .HasCollation("utf8_general_ci");
  2313. entity.Property(e => e.BankAccountType)
  2314. .HasColumnType("varchar(50)")
  2315. .HasCharSet("utf8")
  2316. .HasCollation("utf8_general_ci");
  2317. entity.Property(e => e.BankAddressCode)
  2318. .HasColumnType("varchar(20)")
  2319. .HasCharSet("utf8")
  2320. .HasCollation("utf8_general_ci");
  2321. entity.Property(e => e.BankBranchId)
  2322. .HasColumnType("varchar(20)")
  2323. .HasCharSet("utf8")
  2324. .HasCollation("utf8_general_ci");
  2325. entity.Property(e => e.BankName)
  2326. .HasColumnType("varchar(50)")
  2327. .HasCharSet("utf8")
  2328. .HasCollation("utf8_general_ci");
  2329. entity.Property(e => e.BizAddressCode)
  2330. .HasColumnType("varchar(30)")
  2331. .HasCharSet("utf8")
  2332. .HasCollation("utf8_general_ci");
  2333. entity.Property(e => e.BizStoreAddress)
  2334. .HasColumnType("varchar(50)")
  2335. .HasCharSet("utf8")
  2336. .HasCollation("utf8_general_ci");
  2337. entity.Property(e => e.BizStoreName)
  2338. .HasColumnType("varchar(50)")
  2339. .HasCharSet("utf8")
  2340. .HasCollation("utf8_general_ci");
  2341. entity.Property(e => e.BizSubAppid)
  2342. .HasColumnType("varchar(32)")
  2343. .HasCharSet("utf8")
  2344. .HasCollation("utf8_general_ci");
  2345. entity.Property(e => e.BusinessCode)
  2346. .HasColumnType("varchar(50)")
  2347. .HasCharSet("utf8")
  2348. .HasCollation("utf8_general_ci");
  2349. entity.Property(e => e.CardPeriodBegin).HasColumnType("datetime");
  2350. entity.Property(e => e.CardPeriodEnd).HasColumnType("datetime");
  2351. entity.Property(e => e.CertCopy)
  2352. .HasColumnType("varchar(200)")
  2353. .HasCharSet("utf8")
  2354. .HasCollation("utf8_general_ci");
  2355. entity.Property(e => e.CertLegalPerson)
  2356. .HasColumnType("varchar(20)")
  2357. .HasCharSet("utf8")
  2358. .HasCollation("utf8_general_ci");
  2359. entity.Property(e => e.CertMerchantName)
  2360. .HasColumnType("varchar(30)")
  2361. .HasCharSet("utf8")
  2362. .HasCollation("utf8_general_ci");
  2363. entity.Property(e => e.CertNumber)
  2364. .HasColumnType("varchar(32)")
  2365. .HasCharSet("utf8")
  2366. .HasCollation("utf8_general_ci");
  2367. entity.Property(e => e.CertType)
  2368. .HasColumnType("varchar(30)")
  2369. .HasCharSet("utf8")
  2370. .HasCollation("utf8_general_ci");
  2371. entity.Property(e => e.CertificateLetterCopy)
  2372. .HasColumnType("varchar(200)")
  2373. .HasCharSet("utf8")
  2374. .HasCollation("utf8_general_ci");
  2375. entity.Property(e => e.CompanyAddress)
  2376. .HasColumnType("varchar(50)")
  2377. .HasCharSet("utf8")
  2378. .HasCollation("utf8_general_ci");
  2379. entity.Property(e => e.ContactEmail)
  2380. .HasColumnType("varchar(50)")
  2381. .HasCharSet("utf8")
  2382. .HasCollation("utf8_general_ci");
  2383. entity.Property(e => e.ContactIdNumber)
  2384. .HasColumnType("varchar(18)")
  2385. .HasCharSet("utf8")
  2386. .HasCollation("utf8_general_ci");
  2387. entity.Property(e => e.ContactName)
  2388. .HasColumnType("varchar(30)")
  2389. .HasCharSet("utf8")
  2390. .HasCollation("utf8_general_ci");
  2391. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2392. entity.Property(e => e.CreateMan)
  2393. .HasColumnType("varchar(50)")
  2394. .HasCharSet("utf8")
  2395. .HasCollation("utf8_general_ci");
  2396. entity.Property(e => e.IdCardCopy)
  2397. .HasColumnType("varchar(200)")
  2398. .HasCharSet("utf8")
  2399. .HasCollation("utf8_general_ci");
  2400. entity.Property(e => e.IdCardName)
  2401. .HasColumnType("varchar(20)")
  2402. .HasCharSet("utf8")
  2403. .HasCollation("utf8_general_ci");
  2404. entity.Property(e => e.IdCardNational)
  2405. .HasColumnType("varchar(200)")
  2406. .HasCharSet("utf8")
  2407. .HasCollation("utf8_general_ci");
  2408. entity.Property(e => e.IdCardNumber)
  2409. .HasColumnType("varchar(18)")
  2410. .HasCharSet("utf8")
  2411. .HasCollation("utf8_general_ci");
  2412. entity.Property(e => e.IdDocType)
  2413. .HasColumnType("varchar(50)")
  2414. .HasCharSet("utf8")
  2415. .HasCollation("utf8_general_ci");
  2416. entity.Property(e => e.IndoorPic)
  2417. .HasColumnType("varchar(200)")
  2418. .HasCharSet("utf8")
  2419. .HasCollation("utf8_general_ci");
  2420. entity.Property(e => e.LegalPerson)
  2421. .HasColumnType("varchar(20)")
  2422. .HasCharSet("utf8")
  2423. .HasCollation("utf8_general_ci");
  2424. entity.Property(e => e.LicenseCopy)
  2425. .HasColumnType("varchar(200)")
  2426. .HasCharSet("utf8")
  2427. .HasCollation("utf8_general_ci");
  2428. entity.Property(e => e.LicenseNumber)
  2429. .HasColumnType("varchar(32)")
  2430. .HasCharSet("utf8")
  2431. .HasCollation("utf8_general_ci");
  2432. entity.Property(e => e.MerchantShortname)
  2433. .HasColumnType("varchar(50)")
  2434. .HasCharSet("utf8")
  2435. .HasCollation("utf8_general_ci");
  2436. entity.Property(e => e.MiniProgramAppid)
  2437. .HasColumnType("varchar(50)")
  2438. .HasCharSet("utf8")
  2439. .HasCollation("utf8_general_ci");
  2440. entity.Property(e => e.MiniProgramPics)
  2441. .HasColumnType("varchar(200)")
  2442. .HasCharSet("utf8")
  2443. .HasCollation("utf8_general_ci");
  2444. entity.Property(e => e.MiniProgramSubAppid)
  2445. .HasColumnType("varchar(50)")
  2446. .HasCharSet("utf8")
  2447. .HasCollation("utf8_general_ci");
  2448. entity.Property(e => e.MobilePhone)
  2449. .HasColumnType("varchar(11)")
  2450. .HasCharSet("utf8")
  2451. .HasCollation("utf8_general_ci");
  2452. entity.Property(e => e.MpAppid)
  2453. .HasColumnType("varchar(50)")
  2454. .HasCharSet("utf8")
  2455. .HasCollation("utf8_general_ci");
  2456. entity.Property(e => e.MpPics)
  2457. .HasColumnType("varchar(200)")
  2458. .HasCharSet("utf8")
  2459. .HasCollation("utf8_general_ci");
  2460. entity.Property(e => e.MpSubAppid)
  2461. .HasColumnType("varchar(50)")
  2462. .HasCharSet("utf8")
  2463. .HasCollation("utf8_general_ci");
  2464. entity.Property(e => e.OpenId)
  2465. .HasColumnType("varchar(50)")
  2466. .HasCharSet("utf8")
  2467. .HasCollation("utf8_general_ci");
  2468. entity.Property(e => e.OrgPeriodBegin).HasColumnType("datetime");
  2469. entity.Property(e => e.OrgPeriodEnd).HasColumnType("datetime");
  2470. entity.Property(e => e.OrganizationCode)
  2471. .HasColumnType("varchar(32)")
  2472. .HasCharSet("utf8")
  2473. .HasCollation("utf8_general_ci");
  2474. entity.Property(e => e.OrganizationCopy)
  2475. .HasColumnType("varchar(200)")
  2476. .HasCharSet("utf8")
  2477. .HasCollation("utf8_general_ci");
  2478. entity.Property(e => e.Owner)
  2479. .HasColumnType("bit(1)")
  2480. .HasDefaultValueSql("b'0'");
  2481. entity.Property(e => e.PeriodBegin).HasColumnType("datetime");
  2482. entity.Property(e => e.PeriodEnd).HasColumnType("datetime");
  2483. entity.Property(e => e.QualificationType)
  2484. .HasColumnType("varchar(30)")
  2485. .HasCharSet("utf8")
  2486. .HasCollation("utf8_general_ci");
  2487. entity.Property(e => e.Qualifications)
  2488. .HasColumnType("varchar(200)")
  2489. .HasCharSet("utf8")
  2490. .HasCollation("utf8_general_ci");
  2491. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2492. entity.Property(e => e.SalesScenesType)
  2493. .HasColumnType("varchar(50)")
  2494. .HasCharSet("utf8")
  2495. .HasCollation("utf8_general_ci");
  2496. entity.Property(e => e.SeoDescription)
  2497. .HasColumnType("varchar(500)")
  2498. .HasCharSet("utf8")
  2499. .HasCollation("utf8_general_ci");
  2500. entity.Property(e => e.SeoKeyword)
  2501. .HasColumnType("varchar(200)")
  2502. .HasCharSet("utf8")
  2503. .HasCollation("utf8_general_ci");
  2504. entity.Property(e => e.SeoTitle)
  2505. .HasColumnType("varchar(100)")
  2506. .HasCharSet("utf8")
  2507. .HasCollation("utf8_general_ci");
  2508. entity.Property(e => e.ServicePhone)
  2509. .HasColumnType("varchar(30)")
  2510. .HasCharSet("utf8")
  2511. .HasCollation("utf8_general_ci");
  2512. entity.Property(e => e.SettlementId)
  2513. .HasColumnType("varchar(3)")
  2514. .HasCharSet("utf8")
  2515. .HasCollation("utf8_general_ci");
  2516. entity.Property(e => e.SignUrl)
  2517. .HasColumnType("varchar(1000)")
  2518. .HasCharSet("utf8")
  2519. .HasCollation("utf8_general_ci");
  2520. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2521. entity.Property(e => e.Status).HasColumnType("int(11)");
  2522. entity.Property(e => e.StoreEntrancePic)
  2523. .HasColumnType("varchar(200)")
  2524. .HasCharSet("utf8")
  2525. .HasCollation("utf8_general_ci");
  2526. entity.Property(e => e.SubCorpId)
  2527. .HasColumnType("varchar(50)")
  2528. .HasCharSet("utf8")
  2529. .HasCollation("utf8_general_ci");
  2530. entity.Property(e => e.SubMchid)
  2531. .HasColumnType("varchar(32)")
  2532. .HasCharSet("utf8")
  2533. .HasCollation("utf8_general_ci");
  2534. entity.Property(e => e.SubjectType)
  2535. .HasColumnType("varchar(50)")
  2536. .HasCharSet("utf8")
  2537. .HasCollation("utf8_general_ci");
  2538. entity.Property(e => e.UboInfoIdCardCopy)
  2539. .HasColumnType("varchar(200)")
  2540. .HasCharSet("utf8")
  2541. .HasCollation("utf8_general_ci");
  2542. entity.Property(e => e.UboInfoIdCardNational)
  2543. .HasColumnType("varchar(200)")
  2544. .HasCharSet("utf8")
  2545. .HasCollation("utf8_general_ci");
  2546. entity.Property(e => e.UboInfoIdDocCopy)
  2547. .HasColumnType("varchar(200)")
  2548. .HasCharSet("utf8")
  2549. .HasCollation("utf8_general_ci");
  2550. entity.Property(e => e.UboInfoIdNumber)
  2551. .HasColumnType("varchar(30)")
  2552. .HasCharSet("utf8")
  2553. .HasCollation("utf8_general_ci");
  2554. entity.Property(e => e.UboInfoIdPeriodBegin).HasColumnType("datetime");
  2555. entity.Property(e => e.UboInfoIdPeriodEnd).HasColumnType("datetime");
  2556. entity.Property(e => e.UboInfoIdType)
  2557. .HasColumnType("varchar(50)")
  2558. .HasCharSet("utf8")
  2559. .HasCollation("utf8_general_ci");
  2560. entity.Property(e => e.UboInfoName)
  2561. .HasColumnType("varchar(20)")
  2562. .HasCharSet("utf8")
  2563. .HasCollation("utf8_general_ci");
  2564. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2565. entity.Property(e => e.UpdateMan)
  2566. .HasColumnType("varchar(50)")
  2567. .HasCharSet("utf8")
  2568. .HasCollation("utf8_general_ci");
  2569. entity.Property(e => e.Version).HasColumnType("int(11)");
  2570. entity.Property(e => e.WebAppId)
  2571. .HasColumnType("varchar(50)")
  2572. .HasCharSet("utf8")
  2573. .HasCollation("utf8_general_ci");
  2574. entity.Property(e => e.WebAuthorisation)
  2575. .HasColumnType("varchar(200)")
  2576. .HasCharSet("utf8")
  2577. .HasCollation("utf8_general_ci");
  2578. entity.Property(e => e.WebDomain)
  2579. .HasColumnType("varchar(50)")
  2580. .HasCharSet("utf8")
  2581. .HasCollation("utf8_general_ci");
  2582. entity.Property(e => e.WeworkPics)
  2583. .HasColumnType("varchar(200)")
  2584. .HasCharSet("utf8")
  2585. .HasCollation("utf8_general_ci");
  2586. });
  2587. modelBuilder.Entity<MerchantAdmin>(entity =>
  2588. {
  2589. entity.Property(e => e.Id).HasColumnType("int(11)");
  2590. entity.Property(e => e.AdminName)
  2591. .HasColumnType("varchar(50)")
  2592. .HasCharSet("utf8")
  2593. .HasCollation("utf8_general_ci");
  2594. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2595. entity.Property(e => e.CreateMan)
  2596. .HasColumnType("varchar(50)")
  2597. .HasCharSet("utf8")
  2598. .HasCollation("utf8_general_ci");
  2599. entity.Property(e => e.Email)
  2600. .HasColumnType("varchar(50)")
  2601. .HasCharSet("utf8")
  2602. .HasCollation("utf8_general_ci");
  2603. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  2604. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2605. entity.Property(e => e.Mobile)
  2606. .HasColumnType("varchar(11)")
  2607. .HasCharSet("utf8")
  2608. .HasCollation("utf8_general_ci");
  2609. entity.Property(e => e.Note)
  2610. .HasColumnType("mediumtext")
  2611. .HasCharSet("utf8")
  2612. .HasCollation("utf8_general_ci");
  2613. entity.Property(e => e.Password)
  2614. .HasColumnType("varchar(32)")
  2615. .HasCharSet("utf8")
  2616. .HasCollation("utf8_general_ci");
  2617. entity.Property(e => e.Qq)
  2618. .HasColumnName("QQ")
  2619. .HasColumnType("varchar(20)")
  2620. .HasCharSet("utf8")
  2621. .HasCollation("utf8_general_ci");
  2622. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2623. entity.Property(e => e.RealName)
  2624. .HasColumnType("varchar(50)")
  2625. .HasCharSet("utf8")
  2626. .HasCollation("utf8_general_ci");
  2627. entity.Property(e => e.RightInfo)
  2628. .HasColumnType("varchar(500)")
  2629. .HasCharSet("utf8")
  2630. .HasCollation("utf8_general_ci");
  2631. entity.Property(e => e.SeoDescription)
  2632. .HasColumnType("varchar(500)")
  2633. .HasCharSet("utf8")
  2634. .HasCollation("utf8_general_ci");
  2635. entity.Property(e => e.SeoKeyword)
  2636. .HasColumnType("varchar(200)")
  2637. .HasCharSet("utf8")
  2638. .HasCollation("utf8_general_ci");
  2639. entity.Property(e => e.SeoTitle)
  2640. .HasColumnType("varchar(100)")
  2641. .HasCharSet("utf8")
  2642. .HasCollation("utf8_general_ci");
  2643. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2644. entity.Property(e => e.Status).HasColumnType("int(11)");
  2645. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2646. entity.Property(e => e.UpdateMan)
  2647. .HasColumnType("varchar(50)")
  2648. .HasCharSet("utf8")
  2649. .HasCollation("utf8_general_ci");
  2650. entity.Property(e => e.Version).HasColumnType("int(11)");
  2651. });
  2652. modelBuilder.Entity<MerchantAuth>(entity =>
  2653. {
  2654. entity.Property(e => e.Id).HasColumnType("int(11)");
  2655. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  2656. entity.Property(e => e.BankCardAccount)
  2657. .HasColumnType("varchar(32)")
  2658. .HasCharSet("utf8")
  2659. .HasCollation("utf8_general_ci");
  2660. entity.Property(e => e.BankMobile)
  2661. .HasColumnType("varchar(11)")
  2662. .HasCharSet("utf8")
  2663. .HasCollation("utf8_general_ci");
  2664. entity.Property(e => e.BankName)
  2665. .HasColumnType("varchar(64)")
  2666. .HasCharSet("utf8")
  2667. .HasCollation("utf8_general_ci");
  2668. entity.Property(e => e.ChannelCode)
  2669. .HasColumnType("varchar(16)")
  2670. .HasCharSet("utf8")
  2671. .HasCollation("utf8_general_ci");
  2672. entity.Property(e => e.ChannelName)
  2673. .HasColumnType("varchar(32)")
  2674. .HasCharSet("utf8")
  2675. .HasCollation("utf8_general_ci");
  2676. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2677. entity.Property(e => e.CreateMan)
  2678. .HasColumnType("varchar(50)")
  2679. .HasCharSet("utf8")
  2680. .HasCollation("utf8_general_ci");
  2681. entity.Property(e => e.IdCardNo)
  2682. .HasColumnType("varchar(18)")
  2683. .HasCharSet("utf8")
  2684. .HasCollation("utf8_general_ci");
  2685. entity.Property(e => e.MerNo)
  2686. .HasColumnType("varchar(20)")
  2687. .HasCharSet("utf8")
  2688. .HasCollation("utf8_general_ci");
  2689. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2690. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2691. entity.Property(e => e.RealName)
  2692. .HasColumnType("varchar(16)")
  2693. .HasCharSet("utf8")
  2694. .HasCollation("utf8_general_ci");
  2695. entity.Property(e => e.ReqData)
  2696. .HasColumnType("varchar(2000)")
  2697. .HasCharSet("utf8")
  2698. .HasCollation("utf8_general_ci");
  2699. entity.Property(e => e.RespData)
  2700. .HasColumnType("varchar(2000)")
  2701. .HasCharSet("utf8")
  2702. .HasCollation("utf8_general_ci");
  2703. entity.Property(e => e.ReturnCode)
  2704. .HasColumnType("varchar(30)")
  2705. .HasCharSet("utf8")
  2706. .HasCollation("utf8_general_ci");
  2707. entity.Property(e => e.ReturnMsg)
  2708. .HasColumnType("varchar(512)")
  2709. .HasCharSet("utf8")
  2710. .HasCollation("utf8_general_ci");
  2711. entity.Property(e => e.SeoDescription)
  2712. .HasColumnType("varchar(500)")
  2713. .HasCharSet("utf8")
  2714. .HasCollation("utf8_general_ci");
  2715. entity.Property(e => e.SeoKeyword)
  2716. .HasColumnType("varchar(200)")
  2717. .HasCharSet("utf8")
  2718. .HasCollation("utf8_general_ci");
  2719. entity.Property(e => e.SeoTitle)
  2720. .HasColumnType("varchar(100)")
  2721. .HasCharSet("utf8")
  2722. .HasCollation("utf8_general_ci");
  2723. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2724. entity.Property(e => e.Status).HasColumnType("int(11)");
  2725. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2726. entity.Property(e => e.UpdateMan)
  2727. .HasColumnType("varchar(50)")
  2728. .HasCharSet("utf8")
  2729. .HasCollation("utf8_general_ci");
  2730. entity.Property(e => e.Version).HasColumnType("int(11)");
  2731. });
  2732. modelBuilder.Entity<MerchantClass>(entity =>
  2733. {
  2734. entity.Property(e => e.Id).HasColumnType("int(11)");
  2735. entity.Property(e => e.ColName)
  2736. .HasColumnType("varchar(50)")
  2737. .HasCharSet("utf8")
  2738. .HasCollation("utf8_general_ci");
  2739. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2740. entity.Property(e => e.CreateMan)
  2741. .HasColumnType("varchar(50)")
  2742. .HasCharSet("utf8")
  2743. .HasCollation("utf8_general_ci");
  2744. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2745. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2746. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2747. entity.Property(e => e.SeoDescription)
  2748. .HasColumnType("varchar(500)")
  2749. .HasCharSet("utf8")
  2750. .HasCollation("utf8_general_ci");
  2751. entity.Property(e => e.SeoKeyword)
  2752. .HasColumnType("varchar(200)")
  2753. .HasCharSet("utf8")
  2754. .HasCollation("utf8_general_ci");
  2755. entity.Property(e => e.SeoTitle)
  2756. .HasColumnType("varchar(100)")
  2757. .HasCharSet("utf8")
  2758. .HasCollation("utf8_general_ci");
  2759. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2760. entity.Property(e => e.Status).HasColumnType("int(11)");
  2761. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2762. entity.Property(e => e.UpdateMan)
  2763. .HasColumnType("varchar(50)")
  2764. .HasCharSet("utf8")
  2765. .HasCollation("utf8_general_ci");
  2766. entity.Property(e => e.Version).HasColumnType("int(11)");
  2767. });
  2768. modelBuilder.Entity<MerchantCol>(entity =>
  2769. {
  2770. entity.Property(e => e.Id).HasColumnType("int(11)");
  2771. entity.Property(e => e.ColDetail)
  2772. .HasColumnType("varchar(50)")
  2773. .HasCharSet("utf8")
  2774. .HasCollation("utf8_general_ci");
  2775. entity.Property(e => e.ColEnName)
  2776. .HasColumnType("varchar(50)")
  2777. .HasCharSet("utf8")
  2778. .HasCollation("utf8_general_ci");
  2779. entity.Property(e => e.ColId)
  2780. .HasColumnType("varchar(30)")
  2781. .HasCharSet("utf8")
  2782. .HasCollation("utf8_general_ci");
  2783. entity.Property(e => e.ColName)
  2784. .HasColumnType("varchar(50)")
  2785. .HasCharSet("utf8")
  2786. .HasCollation("utf8_general_ci");
  2787. entity.Property(e => e.ColPicPath)
  2788. .HasColumnType("varchar(200)")
  2789. .HasCharSet("utf8")
  2790. .HasCollation("utf8_general_ci");
  2791. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2792. entity.Property(e => e.CreateMan)
  2793. .HasColumnType("varchar(50)")
  2794. .HasCharSet("utf8")
  2795. .HasCollation("utf8_general_ci");
  2796. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2797. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2798. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2799. entity.Property(e => e.Recommend)
  2800. .HasColumnType("bit(1)")
  2801. .HasDefaultValueSql("b'0'");
  2802. entity.Property(e => e.SeoDescription)
  2803. .HasColumnType("varchar(500)")
  2804. .HasCharSet("utf8")
  2805. .HasCollation("utf8_general_ci");
  2806. entity.Property(e => e.SeoKeyword)
  2807. .HasColumnType("varchar(200)")
  2808. .HasCharSet("utf8")
  2809. .HasCollation("utf8_general_ci");
  2810. entity.Property(e => e.SeoTitle)
  2811. .HasColumnType("varchar(100)")
  2812. .HasCharSet("utf8")
  2813. .HasCollation("utf8_general_ci");
  2814. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2815. entity.Property(e => e.Status).HasColumnType("int(11)");
  2816. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2817. entity.Property(e => e.UpdateMan)
  2818. .HasColumnType("varchar(50)")
  2819. .HasCharSet("utf8")
  2820. .HasCollation("utf8_general_ci");
  2821. entity.Property(e => e.Version).HasColumnType("int(11)");
  2822. });
  2823. modelBuilder.Entity<MerchantComment>(entity =>
  2824. {
  2825. entity.Property(e => e.Id).HasColumnType("int(11)");
  2826. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2827. entity.Property(e => e.CreateMan)
  2828. .HasColumnType("varchar(50)")
  2829. .HasCharSet("utf8")
  2830. .HasCollation("utf8_general_ci");
  2831. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2832. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  2833. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2834. entity.Property(e => e.SeoDescription)
  2835. .HasColumnType("varchar(500)")
  2836. .HasCharSet("utf8")
  2837. .HasCollation("utf8_general_ci");
  2838. entity.Property(e => e.SeoKeyword)
  2839. .HasColumnType("varchar(200)")
  2840. .HasCharSet("utf8")
  2841. .HasCollation("utf8_general_ci");
  2842. entity.Property(e => e.SeoTitle)
  2843. .HasColumnType("varchar(100)")
  2844. .HasCharSet("utf8")
  2845. .HasCollation("utf8_general_ci");
  2846. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2847. entity.Property(e => e.StarNum1).HasColumnType("int(11)");
  2848. entity.Property(e => e.StarNum2).HasColumnType("int(11)");
  2849. entity.Property(e => e.StarNum3).HasColumnType("int(11)");
  2850. entity.Property(e => e.Status).HasColumnType("int(11)");
  2851. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2852. entity.Property(e => e.UpdateMan)
  2853. .HasColumnType("varchar(50)")
  2854. .HasCharSet("utf8")
  2855. .HasCollation("utf8_general_ci");
  2856. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2857. entity.Property(e => e.Version).HasColumnType("int(11)");
  2858. });
  2859. modelBuilder.Entity<MerchantForCode>(entity =>
  2860. {
  2861. entity.HasKey(e => e.Code)
  2862. .HasName("PRIMARY");
  2863. entity.Property(e => e.Code)
  2864. .HasColumnType("varchar(30)")
  2865. .HasCharSet("utf8")
  2866. .HasCollation("utf8_general_ci");
  2867. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2868. });
  2869. modelBuilder.Entity<MerchantForMobile>(entity =>
  2870. {
  2871. entity.HasKey(e => e.Mobile)
  2872. .HasName("PRIMARY");
  2873. entity.Property(e => e.Mobile)
  2874. .HasColumnType("varchar(11)")
  2875. .HasCharSet("utf8")
  2876. .HasCollation("utf8_general_ci");
  2877. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2878. });
  2879. modelBuilder.Entity<MerchantForName>(entity =>
  2880. {
  2881. entity.HasKey(e => e.Name)
  2882. .HasName("PRIMARY");
  2883. entity.Property(e => e.Name)
  2884. .HasColumnType("varchar(30)")
  2885. .HasCharSet("utf8")
  2886. .HasCollation("utf8_general_ci");
  2887. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2888. });
  2889. modelBuilder.Entity<MerchantInfo>(entity =>
  2890. {
  2891. entity.Property(e => e.Id).HasColumnType("int(11)");
  2892. entity.Property(e => e.ActivationDate).HasColumnType("datetime");
  2893. entity.Property(e => e.ActivationStatus).HasColumnType("int(11)");
  2894. entity.Property(e => e.Address)
  2895. .HasColumnType("varchar(100)")
  2896. .HasCharSet("utf8")
  2897. .HasCollation("utf8_general_ci");
  2898. entity.Property(e => e.Areas)
  2899. .HasColumnType("varchar(50)")
  2900. .HasCharSet("utf8")
  2901. .HasCollation("utf8_general_ci");
  2902. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2903. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  2904. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2905. entity.Property(e => e.CreateMan)
  2906. .HasColumnType("varchar(50)")
  2907. .HasCharSet("utf8")
  2908. .HasCollation("utf8_general_ci");
  2909. entity.Property(e => e.IsAuth)
  2910. .HasColumnType("bit(1)")
  2911. .HasDefaultValueSql("b'0'");
  2912. entity.Property(e => e.LastAddConsumerDate).HasColumnType("datetime");
  2913. entity.Property(e => e.LastConsumeDate).HasColumnType("datetime");
  2914. entity.Property(e => e.LoginPwd)
  2915. .HasColumnType("varchar(32)")
  2916. .HasCharSet("utf8")
  2917. .HasCollation("utf8_general_ci");
  2918. entity.Property(e => e.Logo)
  2919. .HasColumnType("varchar(200)")
  2920. .HasCharSet("utf8")
  2921. .HasCollation("utf8_general_ci");
  2922. entity.Property(e => e.Mobile)
  2923. .HasColumnType("varchar(11)")
  2924. .HasCharSet("utf8")
  2925. .HasCollation("utf8_general_ci");
  2926. entity.Property(e => e.Name)
  2927. .HasColumnType("varchar(50)")
  2928. .HasCharSet("utf8")
  2929. .HasCollation("utf8_general_ci");
  2930. entity.Property(e => e.ParentUserNav)
  2931. .HasColumnType("varchar(500)")
  2932. .HasCharSet("utf8")
  2933. .HasCollation("utf8_general_ci");
  2934. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2935. entity.Property(e => e.SeoDescription)
  2936. .HasColumnType("varchar(500)")
  2937. .HasCharSet("utf8")
  2938. .HasCollation("utf8_general_ci");
  2939. entity.Property(e => e.SeoKeyword)
  2940. .HasColumnType("varchar(200)")
  2941. .HasCharSet("utf8")
  2942. .HasCollation("utf8_general_ci");
  2943. entity.Property(e => e.SeoTitle)
  2944. .HasColumnType("varchar(100)")
  2945. .HasCharSet("utf8")
  2946. .HasCollation("utf8_general_ci");
  2947. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2948. entity.Property(e => e.Status).HasColumnType("int(11)");
  2949. entity.Property(e => e.TotalActual).HasColumnType("decimal(18,2)");
  2950. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  2951. entity.Property(e => e.TotalConsumeCount).HasColumnType("int(11)");
  2952. entity.Property(e => e.TotalCustomer).HasColumnType("int(11)");
  2953. entity.Property(e => e.TotalOrder).HasColumnType("int(11)");
  2954. entity.Property(e => e.TotalUser).HasColumnType("int(11)");
  2955. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2956. entity.Property(e => e.UpdateMan)
  2957. .HasColumnType("varchar(50)")
  2958. .HasCharSet("utf8")
  2959. .HasCollation("utf8_general_ci");
  2960. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2961. entity.Property(e => e.Version).HasColumnType("int(11)");
  2962. });
  2963. modelBuilder.Entity<MerchantParamSet>(entity =>
  2964. {
  2965. entity.Property(e => e.Id).HasColumnType("int(11)");
  2966. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2967. entity.Property(e => e.CreateMan)
  2968. .HasColumnType("varchar(50)")
  2969. .HasCharSet("utf8")
  2970. .HasCollation("utf8_general_ci");
  2971. entity.Property(e => e.DiviPercent).HasColumnType("decimal(18,2)");
  2972. entity.Property(e => e.DiviPersons).HasColumnType("int(11)");
  2973. entity.Property(e => e.GetPercent).HasColumnType("decimal(18,2)");
  2974. entity.Property(e => e.IsAll).HasColumnType("int(11)");
  2975. entity.Property(e => e.MinPayMoney).HasColumnType("decimal(18,2)");
  2976. entity.Property(e => e.ProfitDays).HasColumnType("int(11)");
  2977. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2978. entity.Property(e => e.SeoDescription)
  2979. .HasColumnType("varchar(500)")
  2980. .HasCharSet("utf8")
  2981. .HasCollation("utf8_general_ci");
  2982. entity.Property(e => e.SeoKeyword)
  2983. .HasColumnType("varchar(200)")
  2984. .HasCharSet("utf8")
  2985. .HasCollation("utf8_general_ci");
  2986. entity.Property(e => e.SeoTitle)
  2987. .HasColumnType("varchar(100)")
  2988. .HasCharSet("utf8")
  2989. .HasCollation("utf8_general_ci");
  2990. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2991. entity.Property(e => e.Status).HasColumnType("int(11)");
  2992. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2993. entity.Property(e => e.UpdateMan)
  2994. .HasColumnType("varchar(50)")
  2995. .HasCharSet("utf8")
  2996. .HasCollation("utf8_general_ci");
  2997. entity.Property(e => e.Version).HasColumnType("int(11)");
  2998. });
  2999. modelBuilder.Entity<MerchantQrCode>(entity =>
  3000. {
  3001. entity.Property(e => e.Id).HasColumnType("int(11)");
  3002. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3003. entity.Property(e => e.CreateMan)
  3004. .HasColumnType("varchar(50)")
  3005. .HasCharSet("utf8")
  3006. .HasCollation("utf8_general_ci");
  3007. entity.Property(e => e.MachineId).HasColumnType("int(11)");
  3008. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3009. entity.Property(e => e.QrCodeContent)
  3010. .HasColumnType("varchar(500)")
  3011. .HasCharSet("utf8")
  3012. .HasCollation("utf8_general_ci");
  3013. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3014. entity.Property(e => e.SeoDescription)
  3015. .HasColumnType("varchar(500)")
  3016. .HasCharSet("utf8")
  3017. .HasCollation("utf8_general_ci");
  3018. entity.Property(e => e.SeoKeyword)
  3019. .HasColumnType("varchar(200)")
  3020. .HasCharSet("utf8")
  3021. .HasCollation("utf8_general_ci");
  3022. entity.Property(e => e.SeoTitle)
  3023. .HasColumnType("varchar(100)")
  3024. .HasCharSet("utf8")
  3025. .HasCollation("utf8_general_ci");
  3026. entity.Property(e => e.SnNo)
  3027. .HasColumnType("varchar(50)")
  3028. .HasCharSet("utf8")
  3029. .HasCollation("utf8_general_ci");
  3030. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3031. entity.Property(e => e.Status).HasColumnType("int(11)");
  3032. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3033. entity.Property(e => e.UpdateMan)
  3034. .HasColumnType("varchar(50)")
  3035. .HasCharSet("utf8")
  3036. .HasCollation("utf8_general_ci");
  3037. entity.Property(e => e.Version).HasColumnType("int(11)");
  3038. });
  3039. modelBuilder.Entity<MerchantRebateDetail>(entity =>
  3040. {
  3041. entity.Property(e => e.Id).HasColumnType("int(11)");
  3042. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3043. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3044. entity.Property(e => e.CreateMan)
  3045. .HasColumnType("varchar(50)")
  3046. .HasCharSet("utf8")
  3047. .HasCollation("utf8_general_ci");
  3048. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3049. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3050. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3051. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3052. entity.Property(e => e.MerNo)
  3053. .HasColumnType("varchar(32)")
  3054. .HasCharSet("utf8")
  3055. .HasCollation("utf8_general_ci");
  3056. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  3057. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  3058. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3059. entity.Property(e => e.MmpUserName)
  3060. .HasColumnType("varchar(32)")
  3061. .HasCharSet("utf8")
  3062. .HasCollation("utf8_general_ci");
  3063. entity.Property(e => e.MmpUserNo)
  3064. .HasColumnType("varchar(32)")
  3065. .HasCharSet("utf8")
  3066. .HasCollation("utf8_general_ci");
  3067. entity.Property(e => e.ProductName)
  3068. .HasColumnType("varchar(32)")
  3069. .HasCharSet("utf8")
  3070. .HasCollation("utf8_general_ci");
  3071. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3072. entity.Property(e => e.Remark)
  3073. .HasColumnType("varchar(64)")
  3074. .HasCharSet("utf8")
  3075. .HasCollation("utf8_general_ci");
  3076. entity.Property(e => e.RewardDesc)
  3077. .HasColumnType("varchar(128)")
  3078. .HasCharSet("utf8")
  3079. .HasCollation("utf8_general_ci");
  3080. entity.Property(e => e.SeoDescription)
  3081. .HasColumnType("varchar(500)")
  3082. .HasCharSet("utf8")
  3083. .HasCollation("utf8_general_ci");
  3084. entity.Property(e => e.SeoKeyword)
  3085. .HasColumnType("varchar(200)")
  3086. .HasCharSet("utf8")
  3087. .HasCollation("utf8_general_ci");
  3088. entity.Property(e => e.SeoTitle)
  3089. .HasColumnType("varchar(100)")
  3090. .HasCharSet("utf8")
  3091. .HasCollation("utf8_general_ci");
  3092. entity.Property(e => e.SnNo)
  3093. .HasColumnType("varchar(32)")
  3094. .HasCharSet("utf8")
  3095. .HasCollation("utf8_general_ci");
  3096. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3097. entity.Property(e => e.Status).HasColumnType("int(11)");
  3098. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  3099. entity.Property(e => e.TradeDate)
  3100. .HasColumnType("varchar(8)")
  3101. .HasCharSet("utf8")
  3102. .HasCollation("utf8_general_ci");
  3103. entity.Property(e => e.TradeMonth)
  3104. .HasColumnType("varchar(6)")
  3105. .HasCharSet("utf8")
  3106. .HasCollation("utf8_general_ci");
  3107. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3108. entity.Property(e => e.UpdateMan)
  3109. .HasColumnType("varchar(50)")
  3110. .HasCharSet("utf8")
  3111. .HasCollation("utf8_general_ci");
  3112. entity.Property(e => e.Version).HasColumnType("int(11)");
  3113. });
  3114. modelBuilder.Entity<Merchants>(entity =>
  3115. {
  3116. entity.Property(e => e.Id).HasColumnType("int(11)");
  3117. entity.Property(e => e.Address)
  3118. .HasColumnType("varchar(50)")
  3119. .HasCharSet("utf8")
  3120. .HasCollation("utf8_general_ci");
  3121. entity.Property(e => e.Areas)
  3122. .HasColumnType("varchar(30)")
  3123. .HasCharSet("utf8")
  3124. .HasCollation("utf8_general_ci");
  3125. entity.Property(e => e.BusinessLicense)
  3126. .HasColumnType("varchar(200)")
  3127. .HasCharSet("utf8")
  3128. .HasCollation("utf8_general_ci");
  3129. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  3130. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3131. entity.Property(e => e.CreateMan)
  3132. .HasColumnType("varchar(50)")
  3133. .HasCharSet("utf8")
  3134. .HasCollation("utf8_general_ci");
  3135. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  3136. entity.Property(e => e.IsAuth)
  3137. .HasColumnType("bit(1)")
  3138. .HasDefaultValueSql("b'0'");
  3139. entity.Property(e => e.IsRecommend)
  3140. .HasColumnType("bit(1)")
  3141. .HasDefaultValueSql("b'0'");
  3142. entity.Property(e => e.LoginPwd)
  3143. .HasColumnType("varchar(32)")
  3144. .HasCharSet("utf8")
  3145. .HasCollation("utf8_general_ci");
  3146. entity.Property(e => e.Logo)
  3147. .HasColumnType("varchar(200)")
  3148. .HasCharSet("utf8")
  3149. .HasCollation("utf8_general_ci");
  3150. entity.Property(e => e.Name)
  3151. .HasColumnType("varchar(50)")
  3152. .HasCharSet("utf8")
  3153. .HasCollation("utf8_general_ci");
  3154. entity.Property(e => e.PayPwd)
  3155. .HasColumnType("varchar(32)")
  3156. .HasCharSet("utf8")
  3157. .HasCollation("utf8_general_ci");
  3158. entity.Property(e => e.Phone)
  3159. .HasColumnType("varchar(30)")
  3160. .HasCharSet("utf8")
  3161. .HasCollation("utf8_general_ci");
  3162. entity.Property(e => e.Principal)
  3163. .HasColumnType("varchar(30)")
  3164. .HasCharSet("utf8")
  3165. .HasCollation("utf8_general_ci");
  3166. entity.Property(e => e.Province)
  3167. .HasColumnType("varchar(20)")
  3168. .HasCharSet("utf8")
  3169. .HasCollation("utf8_general_ci");
  3170. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3171. entity.Property(e => e.SeoDescription)
  3172. .HasColumnType("varchar(500)")
  3173. .HasCharSet("utf8")
  3174. .HasCollation("utf8_general_ci");
  3175. entity.Property(e => e.SeoKeyword)
  3176. .HasColumnType("varchar(200)")
  3177. .HasCharSet("utf8")
  3178. .HasCollation("utf8_general_ci");
  3179. entity.Property(e => e.SeoTitle)
  3180. .HasColumnType("varchar(100)")
  3181. .HasCharSet("utf8")
  3182. .HasCollation("utf8_general_ci");
  3183. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3184. entity.Property(e => e.StarNum1).HasColumnType("decimal(18,2)");
  3185. entity.Property(e => e.StarNum2).HasColumnType("decimal(18,2)");
  3186. entity.Property(e => e.StarNum3).HasColumnType("decimal(18,2)");
  3187. entity.Property(e => e.Status).HasColumnType("int(11)");
  3188. entity.Property(e => e.Title)
  3189. .HasColumnType("varchar(50)")
  3190. .HasCharSet("utf8")
  3191. .HasCollation("utf8_general_ci");
  3192. entity.Property(e => e.Title2)
  3193. .HasColumnType("varchar(50)")
  3194. .HasCharSet("utf8")
  3195. .HasCollation("utf8_general_ci");
  3196. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3197. entity.Property(e => e.UpdateMan)
  3198. .HasColumnType("varchar(50)")
  3199. .HasCharSet("utf8")
  3200. .HasCollation("utf8_general_ci");
  3201. entity.Property(e => e.UserName)
  3202. .HasColumnType("varchar(50)")
  3203. .HasCharSet("utf8")
  3204. .HasCollation("utf8_general_ci");
  3205. entity.Property(e => e.Version).HasColumnType("int(11)");
  3206. });
  3207. modelBuilder.Entity<MobileCodeCheck>(entity =>
  3208. {
  3209. entity.HasKey(e => e.Mobile)
  3210. .HasName("PRIMARY");
  3211. entity.Property(e => e.Mobile)
  3212. .HasColumnType("varchar(11)")
  3213. .HasCharSet("utf8")
  3214. .HasCollation("utf8_general_ci");
  3215. entity.Property(e => e.CheckCode)
  3216. .HasColumnType("varchar(6)")
  3217. .HasCharSet("utf8")
  3218. .HasCollation("utf8_general_ci");
  3219. entity.Property(e => e.CheckCodeTime).HasColumnType("datetime");
  3220. entity.Property(e => e.CheckNo)
  3221. .HasColumnType("varchar(6)")
  3222. .HasCharSet("utf8")
  3223. .HasCollation("utf8_general_ci");
  3224. });
  3225. modelBuilder.Entity<MsgBlackList>(entity =>
  3226. {
  3227. entity.Property(e => e.Id).HasColumnType("int(11)");
  3228. entity.Property(e => e.ColId)
  3229. .HasColumnType("varchar(30)")
  3230. .HasCharSet("utf8")
  3231. .HasCollation("utf8_general_ci");
  3232. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3233. entity.Property(e => e.CreateMan)
  3234. .HasColumnType("varchar(50)")
  3235. .HasCharSet("utf8")
  3236. .HasCollation("utf8_general_ci");
  3237. entity.Property(e => e.Extend)
  3238. .HasColumnType("varchar(2000)")
  3239. .HasCharSet("utf8")
  3240. .HasCollation("utf8_general_ci");
  3241. entity.Property(e => e.Ip)
  3242. .HasColumnType("varchar(64)")
  3243. .HasCharSet("utf8")
  3244. .HasCollation("utf8_general_ci");
  3245. entity.Property(e => e.Mobile)
  3246. .HasColumnType("varchar(11)")
  3247. .HasCharSet("utf8")
  3248. .HasCollation("utf8_general_ci");
  3249. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3250. entity.Property(e => e.Reason)
  3251. .HasColumnType("varchar(512)")
  3252. .HasCharSet("utf8")
  3253. .HasCollation("utf8_general_ci");
  3254. entity.Property(e => e.Remark)
  3255. .HasColumnType("varchar(64)")
  3256. .HasCharSet("utf8")
  3257. .HasCollation("utf8_general_ci");
  3258. entity.Property(e => e.SeoDescription)
  3259. .HasColumnType("varchar(500)")
  3260. .HasCharSet("utf8")
  3261. .HasCollation("utf8_general_ci");
  3262. entity.Property(e => e.SeoKeyword)
  3263. .HasColumnType("varchar(200)")
  3264. .HasCharSet("utf8")
  3265. .HasCollation("utf8_general_ci");
  3266. entity.Property(e => e.SeoTitle)
  3267. .HasColumnType("varchar(100)")
  3268. .HasCharSet("utf8")
  3269. .HasCollation("utf8_general_ci");
  3270. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3271. entity.Property(e => e.Status).HasColumnType("int(11)");
  3272. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3273. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3274. entity.Property(e => e.UpdateMan)
  3275. .HasColumnType("varchar(50)")
  3276. .HasCharSet("utf8")
  3277. .HasCollation("utf8_general_ci");
  3278. entity.Property(e => e.Version).HasColumnType("int(11)");
  3279. });
  3280. modelBuilder.Entity<MsgPersonal>(entity =>
  3281. {
  3282. entity.Property(e => e.Id).HasColumnType("int(11)");
  3283. entity.Property(e => e.BgPic)
  3284. .HasColumnType("varchar(200)")
  3285. .HasCharSet("utf8")
  3286. .HasCollation("utf8_general_ci");
  3287. entity.Property(e => e.Content)
  3288. .HasColumnType("longtext")
  3289. .HasCharSet("utf8")
  3290. .HasCollation("utf8_general_ci");
  3291. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3292. entity.Property(e => e.CreateMan)
  3293. .HasColumnType("varchar(50)")
  3294. .HasCharSet("utf8")
  3295. .HasCollation("utf8_general_ci");
  3296. entity.Property(e => e.ExtendColumn)
  3297. .HasColumnType("mediumtext")
  3298. .HasCharSet("utf8")
  3299. .HasCollation("utf8_general_ci");
  3300. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3301. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3302. entity.Property(e => e.PushParam)
  3303. .HasColumnType("varchar(255)")
  3304. .HasCharSet("utf8")
  3305. .HasCollation("utf8_general_ci");
  3306. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3307. entity.Property(e => e.ReadFlag)
  3308. .HasColumnType("bit(1)")
  3309. .HasDefaultValueSql("b'0'");
  3310. entity.Property(e => e.Remark)
  3311. .HasColumnType("varchar(255)")
  3312. .HasCharSet("utf8")
  3313. .HasCollation("utf8_general_ci");
  3314. entity.Property(e => e.SeoDescription)
  3315. .HasColumnType("varchar(500)")
  3316. .HasCharSet("utf8")
  3317. .HasCollation("utf8_general_ci");
  3318. entity.Property(e => e.SeoKeyword)
  3319. .HasColumnType("varchar(200)")
  3320. .HasCharSet("utf8")
  3321. .HasCollation("utf8_general_ci");
  3322. entity.Property(e => e.SeoTitle)
  3323. .HasColumnType("varchar(100)")
  3324. .HasCharSet("utf8")
  3325. .HasCollation("utf8_general_ci");
  3326. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3327. entity.Property(e => e.Status).HasColumnType("int(11)");
  3328. entity.Property(e => e.Summary)
  3329. .HasColumnType("varchar(500)")
  3330. .HasCharSet("utf8")
  3331. .HasCollation("utf8_general_ci");
  3332. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3333. entity.Property(e => e.Title)
  3334. .HasColumnType("varchar(50)")
  3335. .HasCharSet("utf8")
  3336. .HasCollation("utf8_general_ci");
  3337. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3338. entity.Property(e => e.UpdateMan)
  3339. .HasColumnType("varchar(50)")
  3340. .HasCharSet("utf8")
  3341. .HasCollation("utf8_general_ci");
  3342. entity.Property(e => e.Url)
  3343. .HasColumnType("varchar(500)")
  3344. .HasCharSet("utf8")
  3345. .HasCollation("utf8_general_ci");
  3346. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3347. entity.Property(e => e.Version).HasColumnType("int(11)");
  3348. });
  3349. modelBuilder.Entity<MsgPlacard>(entity =>
  3350. {
  3351. entity.Property(e => e.Id).HasColumnType("int(11)");
  3352. entity.Property(e => e.BgPic)
  3353. .HasColumnType("varchar(200)")
  3354. .HasCharSet("utf8")
  3355. .HasCollation("utf8_general_ci");
  3356. entity.Property(e => e.Content)
  3357. .HasColumnType("longtext")
  3358. .HasCharSet("utf8")
  3359. .HasCollation("utf8_general_ci");
  3360. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3361. entity.Property(e => e.CreateMan)
  3362. .HasColumnType("varchar(50)")
  3363. .HasCharSet("utf8")
  3364. .HasCollation("utf8_general_ci");
  3365. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  3366. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  3367. entity.Property(e => e.ExtendColumn)
  3368. .HasColumnType("mediumtext")
  3369. .HasCharSet("utf8")
  3370. .HasCollation("utf8_general_ci");
  3371. entity.Property(e => e.IsTop)
  3372. .HasColumnType("bit(1)")
  3373. .HasDefaultValueSql("b'0'");
  3374. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3375. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3376. entity.Property(e => e.PushParam)
  3377. .HasColumnType("varchar(255)")
  3378. .HasCharSet("utf8")
  3379. .HasCollation("utf8_general_ci");
  3380. entity.Property(e => e.PushTime).HasColumnType("datetime");
  3381. entity.Property(e => e.PushType).HasColumnType("int(11)");
  3382. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3383. entity.Property(e => e.Remark)
  3384. .HasColumnType("varchar(255)")
  3385. .HasCharSet("utf8")
  3386. .HasCollation("utf8_general_ci");
  3387. entity.Property(e => e.SeoDescription)
  3388. .HasColumnType("varchar(500)")
  3389. .HasCharSet("utf8")
  3390. .HasCollation("utf8_general_ci");
  3391. entity.Property(e => e.SeoKeyword)
  3392. .HasColumnType("varchar(200)")
  3393. .HasCharSet("utf8")
  3394. .HasCollation("utf8_general_ci");
  3395. entity.Property(e => e.SeoTitle)
  3396. .HasColumnType("varchar(100)")
  3397. .HasCharSet("utf8")
  3398. .HasCollation("utf8_general_ci");
  3399. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  3400. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3401. entity.Property(e => e.Status).HasColumnType("int(11)");
  3402. entity.Property(e => e.Summary)
  3403. .HasColumnType("varchar(500)")
  3404. .HasCharSet("utf8")
  3405. .HasCollation("utf8_general_ci");
  3406. entity.Property(e => e.Title)
  3407. .HasColumnType("varchar(50)")
  3408. .HasCharSet("utf8")
  3409. .HasCollation("utf8_general_ci");
  3410. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3411. entity.Property(e => e.UpdateMan)
  3412. .HasColumnType("varchar(50)")
  3413. .HasCharSet("utf8")
  3414. .HasCollation("utf8_general_ci");
  3415. entity.Property(e => e.Url)
  3416. .HasColumnType("varchar(500)")
  3417. .HasCharSet("utf8")
  3418. .HasCollation("utf8_general_ci");
  3419. entity.Property(e => e.Version).HasColumnType("int(11)");
  3420. });
  3421. modelBuilder.Entity<MsgPlacardRead>(entity =>
  3422. {
  3423. entity.Property(e => e.Id).HasColumnType("int(11)");
  3424. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3425. entity.Property(e => e.CreateMan)
  3426. .HasColumnType("varchar(50)")
  3427. .HasCharSet("utf8")
  3428. .HasCollation("utf8_general_ci");
  3429. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  3430. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3431. entity.Property(e => e.ReadFlag)
  3432. .HasColumnType("bit(1)")
  3433. .HasDefaultValueSql("b'0'");
  3434. entity.Property(e => e.Remark)
  3435. .HasColumnType("varchar(255)")
  3436. .HasCharSet("utf8")
  3437. .HasCollation("utf8_general_ci");
  3438. entity.Property(e => e.SeoDescription)
  3439. .HasColumnType("varchar(500)")
  3440. .HasCharSet("utf8")
  3441. .HasCollation("utf8_general_ci");
  3442. entity.Property(e => e.SeoKeyword)
  3443. .HasColumnType("varchar(200)")
  3444. .HasCharSet("utf8")
  3445. .HasCollation("utf8_general_ci");
  3446. entity.Property(e => e.SeoTitle)
  3447. .HasColumnType("varchar(100)")
  3448. .HasCharSet("utf8")
  3449. .HasCollation("utf8_general_ci");
  3450. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3451. entity.Property(e => e.Status).HasColumnType("int(11)");
  3452. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3453. entity.Property(e => e.UpdateMan)
  3454. .HasColumnType("varchar(50)")
  3455. .HasCharSet("utf8")
  3456. .HasCollation("utf8_general_ci");
  3457. entity.Property(e => e.UserId)
  3458. .HasColumnType("varchar(64)")
  3459. .HasCharSet("utf8")
  3460. .HasCollation("utf8_general_ci");
  3461. entity.Property(e => e.Version).HasColumnType("int(11)");
  3462. });
  3463. modelBuilder.Entity<MsgPush>(entity =>
  3464. {
  3465. entity.Property(e => e.Id).HasColumnType("int(11)");
  3466. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  3467. entity.Property(e => e.ClientType)
  3468. .HasColumnType("varchar(20)")
  3469. .HasCharSet("utf8")
  3470. .HasCollation("utf8_general_ci");
  3471. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3472. entity.Property(e => e.CreateMan)
  3473. .HasColumnType("varchar(50)")
  3474. .HasCharSet("utf8")
  3475. .HasCollation("utf8_general_ci");
  3476. entity.Property(e => e.Details)
  3477. .HasColumnType("varchar(200)")
  3478. .HasCharSet("utf8")
  3479. .HasCollation("utf8_general_ci");
  3480. entity.Property(e => e.Devices)
  3481. .HasColumnType("mediumtext")
  3482. .HasCharSet("utf8")
  3483. .HasCollation("utf8_general_ci");
  3484. entity.Property(e => e.IsSilent)
  3485. .HasColumnType("bit(1)")
  3486. .HasDefaultValueSql("b'0'");
  3487. entity.Property(e => e.MessageId)
  3488. .HasColumnType("varchar(50)")
  3489. .HasCharSet("utf8")
  3490. .HasCollation("utf8_general_ci");
  3491. entity.Property(e => e.Mobiles)
  3492. .HasColumnType("mediumtext")
  3493. .HasCharSet("utf8")
  3494. .HasCollation("utf8_general_ci");
  3495. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3496. entity.Property(e => e.SeoDescription)
  3497. .HasColumnType("varchar(500)")
  3498. .HasCharSet("utf8")
  3499. .HasCollation("utf8_general_ci");
  3500. entity.Property(e => e.SeoKeyword)
  3501. .HasColumnType("varchar(200)")
  3502. .HasCharSet("utf8")
  3503. .HasCollation("utf8_general_ci");
  3504. entity.Property(e => e.SeoTitle)
  3505. .HasColumnType("varchar(100)")
  3506. .HasCharSet("utf8")
  3507. .HasCollation("utf8_general_ci");
  3508. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3509. entity.Property(e => e.Status).HasColumnType("int(11)");
  3510. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3511. entity.Property(e => e.Title)
  3512. .HasColumnType("varchar(50)")
  3513. .HasCharSet("utf8")
  3514. .HasCollation("utf8_general_ci");
  3515. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3516. entity.Property(e => e.UpdateMan)
  3517. .HasColumnType("varchar(50)")
  3518. .HasCharSet("utf8")
  3519. .HasCollation("utf8_general_ci");
  3520. entity.Property(e => e.Url)
  3521. .HasColumnType("varchar(500)")
  3522. .HasCharSet("utf8")
  3523. .HasCollation("utf8_general_ci");
  3524. entity.Property(e => e.Version).HasColumnType("int(11)");
  3525. });
  3526. modelBuilder.Entity<MsgSms>(entity =>
  3527. {
  3528. entity.Property(e => e.Id).HasColumnType("int(11)");
  3529. entity.Property(e => e.Code).HasColumnType("int(11)");
  3530. entity.Property(e => e.ColId)
  3531. .HasColumnType("varchar(30)")
  3532. .HasCharSet("utf8")
  3533. .HasCollation("utf8_general_ci");
  3534. entity.Property(e => e.Content)
  3535. .HasColumnType("varchar(200)")
  3536. .HasCharSet("utf8")
  3537. .HasCollation("utf8_general_ci");
  3538. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3539. entity.Property(e => e.CreateMan)
  3540. .HasColumnType("varchar(50)")
  3541. .HasCharSet("utf8")
  3542. .HasCollation("utf8_general_ci");
  3543. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  3544. entity.Property(e => e.Ip)
  3545. .HasColumnType("varchar(15)")
  3546. .HasCharSet("utf8")
  3547. .HasCollation("utf8_general_ci");
  3548. entity.Property(e => e.Kind)
  3549. .HasColumnType("varchar(64)")
  3550. .HasCharSet("utf8")
  3551. .HasCollation("utf8_general_ci");
  3552. entity.Property(e => e.Mobile)
  3553. .HasColumnType("varchar(11)")
  3554. .HasCharSet("utf8")
  3555. .HasCollation("utf8_general_ci");
  3556. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3557. entity.Property(e => e.RespCode)
  3558. .HasColumnType("varchar(16)")
  3559. .HasCharSet("utf8")
  3560. .HasCollation("utf8_general_ci");
  3561. entity.Property(e => e.RespContent)
  3562. .HasColumnType("varchar(500)")
  3563. .HasCharSet("utf8")
  3564. .HasCollation("utf8_general_ci");
  3565. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  3566. entity.Property(e => e.SendTime).HasColumnType("datetime");
  3567. entity.Property(e => e.SendType).HasColumnType("int(11)");
  3568. entity.Property(e => e.SeoDescription)
  3569. .HasColumnType("varchar(500)")
  3570. .HasCharSet("utf8")
  3571. .HasCollation("utf8_general_ci");
  3572. entity.Property(e => e.SeoKeyword)
  3573. .HasColumnType("varchar(200)")
  3574. .HasCharSet("utf8")
  3575. .HasCollation("utf8_general_ci");
  3576. entity.Property(e => e.SeoTitle)
  3577. .HasColumnType("varchar(100)")
  3578. .HasCharSet("utf8")
  3579. .HasCollation("utf8_general_ci");
  3580. entity.Property(e => e.SignName)
  3581. .HasColumnType("varchar(10)")
  3582. .HasCharSet("utf8")
  3583. .HasCollation("utf8_general_ci");
  3584. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3585. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3586. entity.Property(e => e.Status).HasColumnType("int(11)");
  3587. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3588. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3589. entity.Property(e => e.UpdateMan)
  3590. .HasColumnType("varchar(50)")
  3591. .HasCharSet("utf8")
  3592. .HasCollation("utf8_general_ci");
  3593. entity.Property(e => e.VerifyCode)
  3594. .HasColumnType("varchar(6)")
  3595. .HasCharSet("utf8")
  3596. .HasCollation("utf8_general_ci");
  3597. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  3598. entity.Property(e => e.Version).HasColumnType("int(11)");
  3599. });
  3600. modelBuilder.Entity<MsgSmsSet>(entity =>
  3601. {
  3602. entity.Property(e => e.Id).HasColumnType("int(11)");
  3603. entity.Property(e => e.AuthPwd)
  3604. .HasColumnType("varchar(50)")
  3605. .HasCharSet("utf8")
  3606. .HasCollation("utf8_general_ci");
  3607. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3608. entity.Property(e => e.CreateMan)
  3609. .HasColumnType("varchar(50)")
  3610. .HasCharSet("utf8")
  3611. .HasCollation("utf8_general_ci");
  3612. entity.Property(e => e.Name)
  3613. .HasColumnType("varchar(50)")
  3614. .HasCharSet("utf8")
  3615. .HasCollation("utf8_general_ci");
  3616. entity.Property(e => e.Params)
  3617. .HasColumnType("varchar(200)")
  3618. .HasCharSet("utf8")
  3619. .HasCollation("utf8_general_ci");
  3620. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3621. entity.Property(e => e.ReqUrl)
  3622. .HasColumnType("varchar(200)")
  3623. .HasCharSet("utf8")
  3624. .HasCollation("utf8_general_ci");
  3625. entity.Property(e => e.SeoDescription)
  3626. .HasColumnType("varchar(500)")
  3627. .HasCharSet("utf8")
  3628. .HasCollation("utf8_general_ci");
  3629. entity.Property(e => e.SeoKeyword)
  3630. .HasColumnType("varchar(200)")
  3631. .HasCharSet("utf8")
  3632. .HasCollation("utf8_general_ci");
  3633. entity.Property(e => e.SeoTitle)
  3634. .HasColumnType("varchar(100)")
  3635. .HasCharSet("utf8")
  3636. .HasCollation("utf8_general_ci");
  3637. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3638. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3639. entity.Property(e => e.Status).HasColumnType("int(11)");
  3640. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3641. entity.Property(e => e.UpdateMan)
  3642. .HasColumnType("varchar(50)")
  3643. .HasCharSet("utf8")
  3644. .HasCollation("utf8_general_ci");
  3645. entity.Property(e => e.UserName)
  3646. .HasColumnType("varchar(50)")
  3647. .HasCharSet("utf8")
  3648. .HasCollation("utf8_general_ci");
  3649. entity.Property(e => e.Version).HasColumnType("int(11)");
  3650. });
  3651. modelBuilder.Entity<MsgTemplate>(entity =>
  3652. {
  3653. entity.Property(e => e.Id).HasColumnType("int(11)");
  3654. entity.Property(e => e.ColId)
  3655. .HasColumnType("varchar(30)")
  3656. .HasCharSet("utf8")
  3657. .HasCollation("utf8_general_ci");
  3658. entity.Property(e => e.Content)
  3659. .HasColumnType("varchar(200)")
  3660. .HasCharSet("utf8")
  3661. .HasCollation("utf8_general_ci");
  3662. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3663. entity.Property(e => e.CreateMan)
  3664. .HasColumnType("varchar(50)")
  3665. .HasCharSet("utf8")
  3666. .HasCollation("utf8_general_ci");
  3667. entity.Property(e => e.Extend)
  3668. .HasColumnType("varchar(2000)")
  3669. .HasCharSet("utf8")
  3670. .HasCollation("utf8_general_ci");
  3671. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3672. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3673. entity.Property(e => e.Remark)
  3674. .HasColumnType("varchar(64)")
  3675. .HasCharSet("utf8")
  3676. .HasCollation("utf8_general_ci");
  3677. entity.Property(e => e.SeoDescription)
  3678. .HasColumnType("varchar(500)")
  3679. .HasCharSet("utf8")
  3680. .HasCollation("utf8_general_ci");
  3681. entity.Property(e => e.SeoKeyword)
  3682. .HasColumnType("varchar(200)")
  3683. .HasCharSet("utf8")
  3684. .HasCollation("utf8_general_ci");
  3685. entity.Property(e => e.SeoTitle)
  3686. .HasColumnType("varchar(100)")
  3687. .HasCharSet("utf8")
  3688. .HasCollation("utf8_general_ci");
  3689. entity.Property(e => e.SignName)
  3690. .HasColumnType("varchar(10)")
  3691. .HasCharSet("utf8")
  3692. .HasCollation("utf8_general_ci");
  3693. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3694. entity.Property(e => e.Status).HasColumnType("int(11)");
  3695. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  3696. entity.Property(e => e.Title)
  3697. .HasColumnType("varchar(50)")
  3698. .HasCharSet("utf8")
  3699. .HasCollation("utf8_general_ci");
  3700. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3701. entity.Property(e => e.UpdateMan)
  3702. .HasColumnType("varchar(50)")
  3703. .HasCharSet("utf8")
  3704. .HasCollation("utf8_general_ci");
  3705. entity.Property(e => e.Version).HasColumnType("int(11)");
  3706. });
  3707. modelBuilder.Entity<OpenBankCityTable>(entity =>
  3708. {
  3709. entity.HasKey(e => e.CityName)
  3710. .HasName("PRIMARY");
  3711. entity.Property(e => e.CityName)
  3712. .HasColumnType("varchar(100)")
  3713. .HasCharSet("utf8")
  3714. .HasCollation("utf8_general_ci");
  3715. entity.Property(e => e.Code)
  3716. .HasColumnType("varchar(20)")
  3717. .HasCharSet("utf8")
  3718. .HasCollation("utf8_general_ci");
  3719. });
  3720. modelBuilder.Entity<OpenBankTable>(entity =>
  3721. {
  3722. entity.HasKey(e => e.BankName)
  3723. .HasName("PRIMARY");
  3724. entity.Property(e => e.BankName)
  3725. .HasColumnType("varchar(200)")
  3726. .HasCharSet("utf8")
  3727. .HasCollation("utf8_general_ci");
  3728. entity.Property(e => e.BankCode)
  3729. .HasColumnType("varchar(50)")
  3730. .HasCharSet("utf8")
  3731. .HasCollation("utf8_general_ci");
  3732. });
  3733. modelBuilder.Entity<OpenReward>(entity =>
  3734. {
  3735. entity.Property(e => e.Id).HasColumnType("int(11)");
  3736. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3737. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3738. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3739. entity.Property(e => e.CreateMan)
  3740. .HasColumnType("varchar(50)")
  3741. .HasCharSet("utf8")
  3742. .HasCollation("utf8_general_ci");
  3743. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3744. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3745. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3746. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3747. entity.Property(e => e.OpenRewardNo)
  3748. .HasColumnType("varchar(32)")
  3749. .HasCharSet("utf8")
  3750. .HasCollation("utf8_general_ci");
  3751. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3752. entity.Property(e => e.Remark)
  3753. .HasColumnType("varchar(128)")
  3754. .HasCharSet("utf8")
  3755. .HasCollation("utf8_general_ci");
  3756. entity.Property(e => e.RewardDesc)
  3757. .HasColumnType("varchar(128)")
  3758. .HasCharSet("utf8")
  3759. .HasCollation("utf8_general_ci");
  3760. entity.Property(e => e.RewardMerCount).HasColumnType("int(11)");
  3761. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3762. entity.Property(e => e.SeoDescription)
  3763. .HasColumnType("varchar(500)")
  3764. .HasCharSet("utf8")
  3765. .HasCollation("utf8_general_ci");
  3766. entity.Property(e => e.SeoKeyword)
  3767. .HasColumnType("varchar(200)")
  3768. .HasCharSet("utf8")
  3769. .HasCollation("utf8_general_ci");
  3770. entity.Property(e => e.SeoTitle)
  3771. .HasColumnType("varchar(100)")
  3772. .HasCharSet("utf8")
  3773. .HasCollation("utf8_general_ci");
  3774. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3775. entity.Property(e => e.Status).HasColumnType("int(11)");
  3776. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3777. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3778. entity.Property(e => e.TradeMonth)
  3779. .HasColumnType("varchar(6)")
  3780. .HasCharSet("utf8")
  3781. .HasCollation("utf8_general_ci");
  3782. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3783. entity.Property(e => e.UpdateMan)
  3784. .HasColumnType("varchar(50)")
  3785. .HasCharSet("utf8")
  3786. .HasCollation("utf8_general_ci");
  3787. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3788. entity.Property(e => e.Version).HasColumnType("int(11)");
  3789. });
  3790. modelBuilder.Entity<OpenRewardDetail>(entity =>
  3791. {
  3792. entity.Property(e => e.Id).HasColumnType("int(11)");
  3793. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3794. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3795. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3796. entity.Property(e => e.CreateMan)
  3797. .HasColumnType("varchar(50)")
  3798. .HasCharSet("utf8")
  3799. .HasCollation("utf8_general_ci");
  3800. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3801. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3802. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3803. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3804. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3805. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  3806. entity.Property(e => e.MerNo)
  3807. .HasColumnType("varchar(32)")
  3808. .HasCharSet("utf8")
  3809. .HasCollation("utf8_general_ci");
  3810. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3811. entity.Property(e => e.OpenDetailRec)
  3812. .HasColumnType("varchar(32)")
  3813. .HasCharSet("utf8")
  3814. .HasCollation("utf8_general_ci");
  3815. entity.Property(e => e.OpenRewardNo)
  3816. .HasColumnType("varchar(32)")
  3817. .HasCharSet("utf8")
  3818. .HasCollation("utf8_general_ci");
  3819. entity.Property(e => e.ProductName)
  3820. .HasColumnType("varchar(32)")
  3821. .HasCharSet("utf8")
  3822. .HasCollation("utf8_general_ci");
  3823. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3824. entity.Property(e => e.Remark)
  3825. .HasColumnType("varchar(128)")
  3826. .HasCharSet("utf8")
  3827. .HasCollation("utf8_general_ci");
  3828. entity.Property(e => e.RewardDesc)
  3829. .HasColumnType("varchar(128)")
  3830. .HasCharSet("utf8")
  3831. .HasCollation("utf8_general_ci");
  3832. entity.Property(e => e.RewardTips)
  3833. .HasColumnType("varchar(16)")
  3834. .HasCharSet("utf8")
  3835. .HasCollation("utf8_general_ci");
  3836. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3837. entity.Property(e => e.SeoDescription)
  3838. .HasColumnType("varchar(500)")
  3839. .HasCharSet("utf8")
  3840. .HasCollation("utf8_general_ci");
  3841. entity.Property(e => e.SeoKeyword)
  3842. .HasColumnType("varchar(200)")
  3843. .HasCharSet("utf8")
  3844. .HasCollation("utf8_general_ci");
  3845. entity.Property(e => e.SeoTitle)
  3846. .HasColumnType("varchar(100)")
  3847. .HasCharSet("utf8")
  3848. .HasCollation("utf8_general_ci");
  3849. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3850. entity.Property(e => e.SnNo)
  3851. .HasColumnType("varchar(32)")
  3852. .HasCharSet("utf8")
  3853. .HasCollation("utf8_general_ci");
  3854. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3855. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3856. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3857. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3858. entity.Property(e => e.Status).HasColumnType("int(11)");
  3859. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3860. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3861. entity.Property(e => e.TradeMonth)
  3862. .HasColumnType("varchar(6)")
  3863. .HasCharSet("utf8")
  3864. .HasCollation("utf8_general_ci");
  3865. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3866. entity.Property(e => e.UpdateMan)
  3867. .HasColumnType("varchar(50)")
  3868. .HasCharSet("utf8")
  3869. .HasCollation("utf8_general_ci");
  3870. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3871. entity.Property(e => e.Version).HasColumnType("int(11)");
  3872. });
  3873. modelBuilder.Entity<OpenSnSnapshot>(entity =>
  3874. {
  3875. entity.Property(e => e.Id).HasColumnType("int(11)");
  3876. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3877. entity.Property(e => e.BuySnNum).HasColumnType("int(11)");
  3878. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3879. entity.Property(e => e.CreateMan)
  3880. .HasColumnType("varchar(50)")
  3881. .HasCharSet("utf8")
  3882. .HasCollation("utf8_general_ci");
  3883. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3884. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3885. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3886. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3887. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3888. entity.Property(e => e.FailReason)
  3889. .HasColumnType("varchar(128)")
  3890. .HasCharSet("utf8")
  3891. .HasCollation("utf8_general_ci");
  3892. entity.Property(e => e.MerNo)
  3893. .HasColumnType("varchar(32)")
  3894. .HasCharSet("utf8")
  3895. .HasCollation("utf8_general_ci");
  3896. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  3897. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3898. entity.Property(e => e.OpenDetailRec)
  3899. .HasColumnType("varchar(32)")
  3900. .HasCharSet("utf8")
  3901. .HasCollation("utf8_general_ci");
  3902. entity.Property(e => e.OpenRewardNo)
  3903. .HasColumnType("varchar(32)")
  3904. .HasCharSet("utf8")
  3905. .HasCollation("utf8_general_ci");
  3906. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3907. entity.Property(e => e.Remark)
  3908. .HasColumnType("varchar(128)")
  3909. .HasCharSet("utf8")
  3910. .HasCollation("utf8_general_ci");
  3911. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  3912. entity.Property(e => e.RewardDesc)
  3913. .HasColumnType("varchar(128)")
  3914. .HasCharSet("utf8")
  3915. .HasCollation("utf8_general_ci");
  3916. entity.Property(e => e.RewardTips)
  3917. .HasColumnType("varchar(16)")
  3918. .HasCharSet("utf8")
  3919. .HasCollation("utf8_general_ci");
  3920. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3921. entity.Property(e => e.SeoDescription)
  3922. .HasColumnType("varchar(500)")
  3923. .HasCharSet("utf8")
  3924. .HasCollation("utf8_general_ci");
  3925. entity.Property(e => e.SeoKeyword)
  3926. .HasColumnType("varchar(200)")
  3927. .HasCharSet("utf8")
  3928. .HasCollation("utf8_general_ci");
  3929. entity.Property(e => e.SeoTitle)
  3930. .HasColumnType("varchar(100)")
  3931. .HasCharSet("utf8")
  3932. .HasCollation("utf8_general_ci");
  3933. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3934. entity.Property(e => e.SnNo)
  3935. .HasColumnType("varchar(32)")
  3936. .HasCharSet("utf8")
  3937. .HasCollation("utf8_general_ci");
  3938. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3939. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3940. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3941. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3942. entity.Property(e => e.Status).HasColumnType("int(11)");
  3943. entity.Property(e => e.StdBuySnNum).HasColumnType("int(11)");
  3944. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3945. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3946. entity.Property(e => e.TradeMonth)
  3947. .HasColumnType("varchar(6)")
  3948. .HasCharSet("utf8")
  3949. .HasCollation("utf8_general_ci");
  3950. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3951. entity.Property(e => e.UpdateMan)
  3952. .HasColumnType("varchar(50)")
  3953. .HasCharSet("utf8")
  3954. .HasCollation("utf8_general_ci");
  3955. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3956. entity.Property(e => e.UserNav)
  3957. .HasColumnType("varchar(300)")
  3958. .HasCharSet("utf8")
  3959. .HasCollation("utf8_general_ci");
  3960. entity.Property(e => e.Version).HasColumnType("int(11)");
  3961. });
  3962. modelBuilder.Entity<OperateLog>(entity =>
  3963. {
  3964. entity.Property(e => e.Id).HasColumnType("int(11)");
  3965. entity.Property(e => e.AfterOperate)
  3966. .HasColumnType("mediumtext")
  3967. .HasCharSet("utf8")
  3968. .HasCollation("utf8_general_ci");
  3969. entity.Property(e => e.BeforeOperate)
  3970. .HasColumnType("mediumtext")
  3971. .HasCharSet("utf8")
  3972. .HasCollation("utf8_general_ci");
  3973. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3974. entity.Property(e => e.CreateMan)
  3975. .HasColumnType("varchar(50)")
  3976. .HasCharSet("utf8")
  3977. .HasCollation("utf8_general_ci");
  3978. entity.Property(e => e.OpMode)
  3979. .HasColumnType("varchar(30)")
  3980. .HasCharSet("utf8")
  3981. .HasCollation("utf8_general_ci");
  3982. entity.Property(e => e.OperateMan)
  3983. .HasColumnType("varchar(50)")
  3984. .HasCharSet("utf8")
  3985. .HasCollation("utf8_general_ci");
  3986. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3987. entity.Property(e => e.SeoDescription)
  3988. .HasColumnType("varchar(500)")
  3989. .HasCharSet("utf8")
  3990. .HasCollation("utf8_general_ci");
  3991. entity.Property(e => e.SeoKeyword)
  3992. .HasColumnType("varchar(200)")
  3993. .HasCharSet("utf8")
  3994. .HasCollation("utf8_general_ci");
  3995. entity.Property(e => e.SeoTitle)
  3996. .HasColumnType("varchar(100)")
  3997. .HasCharSet("utf8")
  3998. .HasCollation("utf8_general_ci");
  3999. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4000. entity.Property(e => e.Status).HasColumnType("int(11)");
  4001. entity.Property(e => e.TableEnName)
  4002. .HasColumnType("varchar(50)")
  4003. .HasCharSet("utf8")
  4004. .HasCollation("utf8_general_ci");
  4005. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4006. entity.Property(e => e.UpdateMan)
  4007. .HasColumnType("varchar(50)")
  4008. .HasCharSet("utf8")
  4009. .HasCollation("utf8_general_ci");
  4010. entity.Property(e => e.Version).HasColumnType("int(11)");
  4011. });
  4012. modelBuilder.Entity<OperateRightList>(entity =>
  4013. {
  4014. entity.Property(e => e.Id).HasColumnType("int(11)");
  4015. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4016. entity.Property(e => e.CreateMan)
  4017. .HasColumnType("varchar(50)")
  4018. .HasCharSet("utf8")
  4019. .HasCollation("utf8_general_ci");
  4020. entity.Property(e => e.EnName)
  4021. .HasColumnType("varchar(50)")
  4022. .HasCharSet("utf8")
  4023. .HasCollation("utf8_general_ci");
  4024. entity.Property(e => e.Name)
  4025. .HasColumnType("varchar(50)")
  4026. .HasCharSet("utf8")
  4027. .HasCollation("utf8_general_ci");
  4028. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4029. entity.Property(e => e.SeoDescription)
  4030. .HasColumnType("varchar(500)")
  4031. .HasCharSet("utf8")
  4032. .HasCollation("utf8_general_ci");
  4033. entity.Property(e => e.SeoKeyword)
  4034. .HasColumnType("varchar(200)")
  4035. .HasCharSet("utf8")
  4036. .HasCollation("utf8_general_ci");
  4037. entity.Property(e => e.SeoTitle)
  4038. .HasColumnType("varchar(100)")
  4039. .HasCharSet("utf8")
  4040. .HasCollation("utf8_general_ci");
  4041. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4042. entity.Property(e => e.Status).HasColumnType("int(11)");
  4043. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4044. entity.Property(e => e.UpdateMan)
  4045. .HasColumnType("varchar(50)")
  4046. .HasCharSet("utf8")
  4047. .HasCollation("utf8_general_ci");
  4048. entity.Property(e => e.Version).HasColumnType("int(11)");
  4049. });
  4050. modelBuilder.Entity<OrderForNo>(entity =>
  4051. {
  4052. entity.HasKey(e => e.OrderNo)
  4053. .HasName("PRIMARY");
  4054. entity.Property(e => e.OrderNo)
  4055. .HasColumnType("varchar(50)")
  4056. .HasCharSet("utf8")
  4057. .HasCollation("utf8_general_ci");
  4058. entity.Property(e => e.OrderIds)
  4059. .HasColumnType("varchar(50)")
  4060. .HasCharSet("utf8")
  4061. .HasCollation("utf8_general_ci");
  4062. entity.Property(e => e.RspCode).HasColumnType("int(11)");
  4063. entity.Property(e => e.RspMsg)
  4064. .HasColumnType("varchar(500)")
  4065. .HasCharSet("utf8")
  4066. .HasCollation("utf8_general_ci");
  4067. });
  4068. modelBuilder.Entity<OrderProduct>(entity =>
  4069. {
  4070. entity.Property(e => e.Id).HasColumnType("int(11)");
  4071. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4072. entity.Property(e => e.CreateMan)
  4073. .HasColumnType("varchar(50)")
  4074. .HasCharSet("utf8")
  4075. .HasCollation("utf8_general_ci");
  4076. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4077. entity.Property(e => e.NormDetail)
  4078. .HasColumnType("varchar(200)")
  4079. .HasCharSet("utf8")
  4080. .HasCollation("utf8_general_ci");
  4081. entity.Property(e => e.NormId)
  4082. .HasColumnType("varchar(50)")
  4083. .HasCharSet("utf8")
  4084. .HasCollation("utf8_general_ci");
  4085. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4086. entity.Property(e => e.ProductCode)
  4087. .HasColumnType("varchar(30)")
  4088. .HasCharSet("utf8")
  4089. .HasCollation("utf8_general_ci");
  4090. entity.Property(e => e.ProductCount).HasColumnType("int(11)");
  4091. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4092. entity.Property(e => e.ProductIntegral).HasColumnType("decimal(18,2)");
  4093. entity.Property(e => e.ProductName)
  4094. .HasColumnType("varchar(100)")
  4095. .HasCharSet("utf8")
  4096. .HasCollation("utf8_general_ci");
  4097. entity.Property(e => e.ProductPhoto)
  4098. .HasColumnType("varchar(200)")
  4099. .HasCharSet("utf8")
  4100. .HasCollation("utf8_general_ci");
  4101. entity.Property(e => e.ProductPrice).HasColumnType("decimal(18,2)");
  4102. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4103. entity.Property(e => e.SeoDescription)
  4104. .HasColumnType("varchar(500)")
  4105. .HasCharSet("utf8")
  4106. .HasCollation("utf8_general_ci");
  4107. entity.Property(e => e.SeoKeyword)
  4108. .HasColumnType("varchar(200)")
  4109. .HasCharSet("utf8")
  4110. .HasCollation("utf8_general_ci");
  4111. entity.Property(e => e.SeoTitle)
  4112. .HasColumnType("varchar(100)")
  4113. .HasCharSet("utf8")
  4114. .HasCollation("utf8_general_ci");
  4115. entity.Property(e => e.SnNos)
  4116. .HasColumnType("mediumtext")
  4117. .HasCharSet("utf8")
  4118. .HasCollation("utf8_general_ci");
  4119. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4120. entity.Property(e => e.Status).HasColumnType("int(11)");
  4121. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4122. entity.Property(e => e.TotalIntegral).HasColumnType("decimal(18,2)");
  4123. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4124. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4125. entity.Property(e => e.UpdateMan)
  4126. .HasColumnType("varchar(50)")
  4127. .HasCharSet("utf8")
  4128. .HasCollation("utf8_general_ci");
  4129. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4130. entity.Property(e => e.Version).HasColumnType("int(11)");
  4131. });
  4132. modelBuilder.Entity<OrderRefund>(entity =>
  4133. {
  4134. entity.Property(e => e.Id).HasColumnType("int(11)");
  4135. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  4136. entity.Property(e => e.Contents)
  4137. .HasColumnType("longtext")
  4138. .HasCharSet("utf8")
  4139. .HasCollation("utf8_general_ci");
  4140. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4141. entity.Property(e => e.CreateMan)
  4142. .HasColumnType("varchar(50)")
  4143. .HasCharSet("utf8")
  4144. .HasCollation("utf8_general_ci");
  4145. entity.Property(e => e.ErpCode)
  4146. .HasColumnType("varchar(50)")
  4147. .HasCharSet("utf8")
  4148. .HasCollation("utf8_general_ci");
  4149. entity.Property(e => e.ErpCompany).HasColumnType("int(11)");
  4150. entity.Property(e => e.GoodStatus).HasColumnType("int(11)");
  4151. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4152. entity.Property(e => e.Mobile)
  4153. .HasColumnType("varchar(11)")
  4154. .HasCharSet("utf8")
  4155. .HasCollation("utf8_general_ci");
  4156. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4157. entity.Property(e => e.Photos)
  4158. .HasColumnType("varchar(500)")
  4159. .HasCharSet("utf8")
  4160. .HasCollation("utf8_general_ci");
  4161. entity.Property(e => e.ProductId)
  4162. .HasColumnType("varchar(50)")
  4163. .HasCharSet("utf8")
  4164. .HasCollation("utf8_general_ci");
  4165. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4166. entity.Property(e => e.Reason).HasColumnType("int(11)");
  4167. entity.Property(e => e.SeoDescription)
  4168. .HasColumnType("varchar(500)")
  4169. .HasCharSet("utf8")
  4170. .HasCollation("utf8_general_ci");
  4171. entity.Property(e => e.SeoKeyword)
  4172. .HasColumnType("varchar(200)")
  4173. .HasCharSet("utf8")
  4174. .HasCollation("utf8_general_ci");
  4175. entity.Property(e => e.SeoTitle)
  4176. .HasColumnType("varchar(100)")
  4177. .HasCharSet("utf8")
  4178. .HasCollation("utf8_general_ci");
  4179. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4180. entity.Property(e => e.Status).HasColumnType("int(11)");
  4181. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4182. entity.Property(e => e.UpdateMan)
  4183. .HasColumnType("varchar(50)")
  4184. .HasCharSet("utf8")
  4185. .HasCollation("utf8_general_ci");
  4186. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4187. entity.Property(e => e.Version).HasColumnType("int(11)");
  4188. });
  4189. modelBuilder.Entity<OrderRefundReason>(entity =>
  4190. {
  4191. entity.Property(e => e.Id).HasColumnType("int(11)");
  4192. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4193. entity.Property(e => e.CreateMan)
  4194. .HasColumnType("varchar(50)")
  4195. .HasCharSet("utf8")
  4196. .HasCollation("utf8_general_ci");
  4197. entity.Property(e => e.Name)
  4198. .HasColumnType("varchar(50)")
  4199. .HasCharSet("utf8")
  4200. .HasCollation("utf8_general_ci");
  4201. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4202. entity.Property(e => e.SeoDescription)
  4203. .HasColumnType("varchar(500)")
  4204. .HasCharSet("utf8")
  4205. .HasCollation("utf8_general_ci");
  4206. entity.Property(e => e.SeoKeyword)
  4207. .HasColumnType("varchar(200)")
  4208. .HasCharSet("utf8")
  4209. .HasCollation("utf8_general_ci");
  4210. entity.Property(e => e.SeoTitle)
  4211. .HasColumnType("varchar(100)")
  4212. .HasCharSet("utf8")
  4213. .HasCollation("utf8_general_ci");
  4214. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4215. entity.Property(e => e.Status).HasColumnType("int(11)");
  4216. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4217. entity.Property(e => e.UpdateMan)
  4218. .HasColumnType("varchar(50)")
  4219. .HasCharSet("utf8")
  4220. .HasCollation("utf8_general_ci");
  4221. entity.Property(e => e.Version).HasColumnType("int(11)");
  4222. });
  4223. modelBuilder.Entity<Orders>(entity =>
  4224. {
  4225. entity.Property(e => e.Id).HasColumnType("int(11)");
  4226. entity.Property(e => e.ActualPay).HasColumnType("decimal(18,2)");
  4227. entity.Property(e => e.Address)
  4228. .HasColumnType("varchar(50)")
  4229. .HasCharSet("utf8")
  4230. .HasCollation("utf8_general_ci");
  4231. entity.Property(e => e.Areas)
  4232. .HasColumnType("varchar(30)")
  4233. .HasCharSet("utf8")
  4234. .HasCollation("utf8_general_ci");
  4235. entity.Property(e => e.AutoConfirmDate).HasColumnType("datetime");
  4236. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4237. entity.Property(e => e.ChannelAmount).HasColumnType("decimal(18,2)");
  4238. entity.Property(e => e.ConfirmDate).HasColumnType("datetime");
  4239. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  4240. entity.Property(e => e.CouponMoney).HasColumnType("decimal(18,2)");
  4241. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4242. entity.Property(e => e.CreateMan)
  4243. .HasColumnType("varchar(50)")
  4244. .HasCharSet("utf8")
  4245. .HasCollation("utf8_general_ci");
  4246. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  4247. entity.Property(e => e.ErpCode)
  4248. .HasColumnType("varchar(50)")
  4249. .HasCharSet("utf8")
  4250. .HasCollation("utf8_general_ci");
  4251. entity.Property(e => e.ErpMode).HasColumnType("int(11)");
  4252. entity.Property(e => e.ErpName)
  4253. .HasColumnType("varchar(50)")
  4254. .HasCharSet("utf8")
  4255. .HasCollation("utf8_general_ci");
  4256. entity.Property(e => e.ErpPrice).HasColumnType("decimal(18,2)");
  4257. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4258. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4259. entity.Property(e => e.Mobile)
  4260. .HasColumnType("varchar(11)")
  4261. .HasCharSet("utf8")
  4262. .HasCollation("utf8_general_ci");
  4263. entity.Property(e => e.OrderNo)
  4264. .HasColumnType("varchar(30)")
  4265. .HasCharSet("utf8")
  4266. .HasCollation("utf8_general_ci");
  4267. entity.Property(e => e.PayDate).HasColumnType("datetime");
  4268. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  4269. entity.Property(e => e.PayStatus).HasColumnType("int(11)");
  4270. entity.Property(e => e.PostalCode)
  4271. .HasColumnType("varchar(6)")
  4272. .HasCharSet("utf8")
  4273. .HasCollation("utf8_general_ci");
  4274. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4275. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4276. entity.Property(e => e.RealName)
  4277. .HasColumnType("varchar(10)")
  4278. .HasCharSet("utf8")
  4279. .HasCollation("utf8_general_ci");
  4280. entity.Property(e => e.RefundActAmount).HasColumnType("decimal(18,2)");
  4281. entity.Property(e => e.RefundFeeAmount).HasColumnType("decimal(18,2)");
  4282. entity.Property(e => e.RefundReason)
  4283. .HasColumnType("varchar(64)")
  4284. .HasCharSet("utf8")
  4285. .HasCollation("utf8_general_ci");
  4286. entity.Property(e => e.RefundStatus).HasColumnType("int(11)");
  4287. entity.Property(e => e.Remark)
  4288. .HasColumnType("varchar(64)")
  4289. .HasCharSet("utf8")
  4290. .HasCollation("utf8_general_ci");
  4291. entity.Property(e => e.ReqData)
  4292. .HasColumnType("varchar(2048)")
  4293. .HasCharSet("utf8")
  4294. .HasCollation("utf8_general_ci");
  4295. entity.Property(e => e.ResData)
  4296. .HasColumnType("varchar(2048)")
  4297. .HasCharSet("utf8")
  4298. .HasCollation("utf8_general_ci");
  4299. entity.Property(e => e.ReturnCode)
  4300. .HasColumnType("varchar(32)")
  4301. .HasCharSet("utf8")
  4302. .HasCollation("utf8_general_ci");
  4303. entity.Property(e => e.ReturnMsg)
  4304. .HasColumnType("varchar(128)")
  4305. .HasCharSet("utf8")
  4306. .HasCollation("utf8_general_ci");
  4307. entity.Property(e => e.SendDate).HasColumnType("datetime");
  4308. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  4309. entity.Property(e => e.SeoDescription)
  4310. .HasColumnType("varchar(500)")
  4311. .HasCharSet("utf8")
  4312. .HasCollation("utf8_general_ci");
  4313. entity.Property(e => e.SeoKeyword)
  4314. .HasColumnType("varchar(200)")
  4315. .HasCharSet("utf8")
  4316. .HasCollation("utf8_general_ci");
  4317. entity.Property(e => e.SeoTitle)
  4318. .HasColumnType("varchar(100)")
  4319. .HasCharSet("utf8")
  4320. .HasCollation("utf8_general_ci");
  4321. entity.Property(e => e.SnNos)
  4322. .HasColumnType("mediumtext")
  4323. .HasCharSet("utf8")
  4324. .HasCollation("utf8_general_ci");
  4325. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4326. entity.Property(e => e.Status).HasColumnType("int(11)");
  4327. entity.Property(e => e.StoreContact)
  4328. .HasColumnType("varchar(30)")
  4329. .HasCharSet("utf8")
  4330. .HasCollation("utf8_general_ci");
  4331. entity.Property(e => e.StoreContactMobile)
  4332. .HasColumnType("varchar(11)")
  4333. .HasCharSet("utf8")
  4334. .HasCollation("utf8_general_ci");
  4335. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4336. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  4337. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  4338. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4339. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4340. entity.Property(e => e.TradeNo)
  4341. .HasColumnType("varchar(50)")
  4342. .HasCharSet("utf8")
  4343. .HasCollation("utf8_general_ci");
  4344. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4345. entity.Property(e => e.UpdateMan)
  4346. .HasColumnType("varchar(50)")
  4347. .HasCharSet("utf8")
  4348. .HasCollation("utf8_general_ci");
  4349. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4350. entity.Property(e => e.UserMessage)
  4351. .HasColumnType("varchar(50)")
  4352. .HasCharSet("utf8")
  4353. .HasCollation("utf8_general_ci");
  4354. entity.Property(e => e.Version).HasColumnType("int(11)");
  4355. });
  4356. modelBuilder.Entity<PageInfo>(entity =>
  4357. {
  4358. entity.Property(e => e.Id).HasColumnType("int(11)");
  4359. entity.Property(e => e.ColId)
  4360. .HasColumnType("varchar(30)")
  4361. .HasCharSet("utf8")
  4362. .HasCollation("utf8_general_ci");
  4363. entity.Property(e => e.Contents)
  4364. .HasColumnType("longtext")
  4365. .HasCharSet("utf8")
  4366. .HasCollation("utf8_general_ci");
  4367. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4368. entity.Property(e => e.CreateMan)
  4369. .HasColumnType("varchar(50)")
  4370. .HasCharSet("utf8")
  4371. .HasCollation("utf8_general_ci");
  4372. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4373. entity.Property(e => e.SeoDescription)
  4374. .HasColumnType("varchar(500)")
  4375. .HasCharSet("utf8")
  4376. .HasCollation("utf8_general_ci");
  4377. entity.Property(e => e.SeoKeyword)
  4378. .HasColumnType("varchar(200)")
  4379. .HasCharSet("utf8")
  4380. .HasCollation("utf8_general_ci");
  4381. entity.Property(e => e.SeoTitle)
  4382. .HasColumnType("varchar(100)")
  4383. .HasCharSet("utf8")
  4384. .HasCollation("utf8_general_ci");
  4385. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4386. entity.Property(e => e.Status).HasColumnType("int(11)");
  4387. entity.Property(e => e.Title)
  4388. .HasColumnType("varchar(200)")
  4389. .HasCharSet("utf8")
  4390. .HasCollation("utf8_general_ci");
  4391. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4392. entity.Property(e => e.UpdateMan)
  4393. .HasColumnType("varchar(50)")
  4394. .HasCharSet("utf8")
  4395. .HasCollation("utf8_general_ci");
  4396. entity.Property(e => e.Version).HasColumnType("int(11)");
  4397. });
  4398. modelBuilder.Entity<PageUpdateInfo>(entity =>
  4399. {
  4400. entity.Property(e => e.Id).HasColumnType("int(11)");
  4401. entity.Property(e => e.BgColor)
  4402. .HasColumnType("varchar(6)")
  4403. .HasCharSet("utf8")
  4404. .HasCollation("utf8_general_ci");
  4405. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4406. entity.Property(e => e.CreateMan)
  4407. .HasColumnType("varchar(50)")
  4408. .HasCharSet("utf8")
  4409. .HasCollation("utf8_general_ci");
  4410. entity.Property(e => e.GotoPages)
  4411. .HasColumnType("varchar(500)")
  4412. .HasCharSet("utf8")
  4413. .HasCollation("utf8_general_ci");
  4414. entity.Property(e => e.IsScrollBar)
  4415. .HasColumnType("bit(1)")
  4416. .HasDefaultValueSql("b'0'");
  4417. entity.Property(e => e.IsSkid)
  4418. .HasColumnType("bit(1)")
  4419. .HasDefaultValueSql("b'0'");
  4420. entity.Property(e => e.LeftAction1)
  4421. .HasColumnType("longtext")
  4422. .HasCharSet("utf8")
  4423. .HasCollation("utf8_general_ci");
  4424. entity.Property(e => e.LeftAction2)
  4425. .HasColumnType("longtext")
  4426. .HasCharSet("utf8")
  4427. .HasCollation("utf8_general_ci");
  4428. entity.Property(e => e.LeftBtn1)
  4429. .HasColumnType("varchar(100)")
  4430. .HasCharSet("utf8")
  4431. .HasCollation("utf8_general_ci");
  4432. entity.Property(e => e.LeftBtn2)
  4433. .HasColumnType("varchar(50)")
  4434. .HasCharSet("utf8")
  4435. .HasCollation("utf8_general_ci");
  4436. entity.Property(e => e.ModulePath)
  4437. .HasColumnType("varchar(200)")
  4438. .HasCharSet("utf8")
  4439. .HasCollation("utf8_general_ci");
  4440. entity.Property(e => e.ModuleVersion).HasColumnType("int(11)");
  4441. entity.Property(e => e.MustUpdate)
  4442. .HasColumnType("bit(1)")
  4443. .HasDefaultValueSql("b'0'");
  4444. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4445. entity.Property(e => e.RightAction1)
  4446. .HasColumnType("longtext")
  4447. .HasCharSet("utf8")
  4448. .HasCollation("utf8_general_ci");
  4449. entity.Property(e => e.RightAction2)
  4450. .HasColumnType("longtext")
  4451. .HasCharSet("utf8")
  4452. .HasCollation("utf8_general_ci");
  4453. entity.Property(e => e.RightBtn1)
  4454. .HasColumnType("varchar(50)")
  4455. .HasCharSet("utf8")
  4456. .HasCollation("utf8_general_ci");
  4457. entity.Property(e => e.RightBtn2)
  4458. .HasColumnType("varchar(50)")
  4459. .HasCharSet("utf8")
  4460. .HasCollation("utf8_general_ci");
  4461. entity.Property(e => e.SeoDescription)
  4462. .HasColumnType("varchar(500)")
  4463. .HasCharSet("utf8")
  4464. .HasCollation("utf8_general_ci");
  4465. entity.Property(e => e.SeoKeyword)
  4466. .HasColumnType("varchar(200)")
  4467. .HasCharSet("utf8")
  4468. .HasCollation("utf8_general_ci");
  4469. entity.Property(e => e.SeoTitle)
  4470. .HasColumnType("varchar(100)")
  4471. .HasCharSet("utf8")
  4472. .HasCollation("utf8_general_ci");
  4473. entity.Property(e => e.ShowTitle)
  4474. .HasColumnType("bit(1)")
  4475. .HasDefaultValueSql("b'0'");
  4476. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4477. entity.Property(e => e.Status).HasColumnType("int(11)");
  4478. entity.Property(e => e.StatusBarStyle)
  4479. .HasColumnType("varchar(10)")
  4480. .HasCharSet("utf8")
  4481. .HasCollation("utf8_general_ci");
  4482. entity.Property(e => e.TextColor)
  4483. .HasColumnType("varchar(6)")
  4484. .HasCharSet("utf8")
  4485. .HasCollation("utf8_general_ci");
  4486. entity.Property(e => e.Title)
  4487. .HasColumnType("varchar(50)")
  4488. .HasCharSet("utf8")
  4489. .HasCollation("utf8_general_ci");
  4490. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4491. entity.Property(e => e.UpdateMan)
  4492. .HasColumnType("varchar(50)")
  4493. .HasCharSet("utf8")
  4494. .HasCollation("utf8_general_ci");
  4495. entity.Property(e => e.Version).HasColumnType("int(11)");
  4496. });
  4497. modelBuilder.Entity<PosCouponForUser>(entity =>
  4498. {
  4499. entity.Property(e => e.Id).HasColumnType("int(11)");
  4500. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4501. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  4502. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4503. entity.Property(e => e.SeoDescription)
  4504. .HasColumnType("varchar(500)")
  4505. .HasCharSet("utf8")
  4506. .HasCollation("utf8_general_ci");
  4507. entity.Property(e => e.SeoKeyword)
  4508. .HasColumnType("varchar(200)")
  4509. .HasCharSet("utf8")
  4510. .HasCollation("utf8_general_ci");
  4511. entity.Property(e => e.SeoTitle)
  4512. .HasColumnType("varchar(100)")
  4513. .HasCharSet("utf8")
  4514. .HasCollation("utf8_general_ci");
  4515. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4516. entity.Property(e => e.Status).HasColumnType("int(11)");
  4517. entity.Property(e => e.StockNum).HasColumnType("int(11)");
  4518. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  4519. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4520. });
  4521. modelBuilder.Entity<PosCouponOrders>(entity =>
  4522. {
  4523. entity.Property(e => e.Id).HasColumnType("int(11)");
  4524. entity.Property(e => e.AfterOut).HasColumnType("int(11)");
  4525. entity.Property(e => e.AfterStock).HasColumnType("int(11)");
  4526. entity.Property(e => e.AfterTotal).HasColumnType("int(11)");
  4527. entity.Property(e => e.BeforeOut).HasColumnType("int(11)");
  4528. entity.Property(e => e.BeforeStock).HasColumnType("int(11)");
  4529. entity.Property(e => e.BeforeTotal).HasColumnType("int(11)");
  4530. entity.Property(e => e.ChangeCount).HasColumnType("int(11)");
  4531. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  4532. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4533. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  4534. entity.Property(e => e.OrderNo)
  4535. .HasColumnType("varchar(50)")
  4536. .HasCharSet("utf8")
  4537. .HasCollation("utf8_general_ci");
  4538. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4539. entity.Property(e => e.SeoDescription)
  4540. .HasColumnType("varchar(500)")
  4541. .HasCharSet("utf8")
  4542. .HasCollation("utf8_general_ci");
  4543. entity.Property(e => e.SeoKeyword)
  4544. .HasColumnType("varchar(200)")
  4545. .HasCharSet("utf8")
  4546. .HasCollation("utf8_general_ci");
  4547. entity.Property(e => e.SeoTitle)
  4548. .HasColumnType("varchar(100)")
  4549. .HasCharSet("utf8")
  4550. .HasCollation("utf8_general_ci");
  4551. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4552. entity.Property(e => e.Status).HasColumnType("int(11)");
  4553. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  4554. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4555. });
  4556. modelBuilder.Entity<PosCouponRecord>(entity =>
  4557. {
  4558. entity.Property(e => e.Id).HasColumnType("int(11)");
  4559. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  4560. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4561. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  4562. entity.Property(e => e.OrderNo)
  4563. .HasColumnType("varchar(50)")
  4564. .HasCharSet("utf8")
  4565. .HasCollation("utf8_general_ci");
  4566. entity.Property(e => e.PosCouponId).HasColumnType("int(11)");
  4567. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4568. entity.Property(e => e.SeoDescription)
  4569. .HasColumnType("varchar(500)")
  4570. .HasCharSet("utf8")
  4571. .HasCollation("utf8_general_ci");
  4572. entity.Property(e => e.SeoKeyword)
  4573. .HasColumnType("varchar(200)")
  4574. .HasCharSet("utf8")
  4575. .HasCollation("utf8_general_ci");
  4576. entity.Property(e => e.SeoTitle)
  4577. .HasColumnType("varchar(100)")
  4578. .HasCharSet("utf8")
  4579. .HasCollation("utf8_general_ci");
  4580. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4581. entity.Property(e => e.Status).HasColumnType("int(11)");
  4582. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  4583. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4584. });
  4585. modelBuilder.Entity<PosCoupons>(entity =>
  4586. {
  4587. entity.Property(e => e.Id).HasColumnType("int(11)");
  4588. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4589. entity.Property(e => e.ExchangeCode)
  4590. .HasColumnType("varchar(10)")
  4591. .HasCharSet("utf8")
  4592. .HasCollation("utf8_general_ci");
  4593. entity.Property(e => e.IsLock)
  4594. .HasColumnType("bit(1)")
  4595. .HasDefaultValueSql("b'0'");
  4596. entity.Property(e => e.IsUse)
  4597. .HasColumnType("bit(1)")
  4598. .HasDefaultValueSql("b'0'");
  4599. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4600. entity.Property(e => e.SeoDescription)
  4601. .HasColumnType("varchar(500)")
  4602. .HasCharSet("utf8")
  4603. .HasCollation("utf8_general_ci");
  4604. entity.Property(e => e.SeoKeyword)
  4605. .HasColumnType("varchar(200)")
  4606. .HasCharSet("utf8")
  4607. .HasCollation("utf8_general_ci");
  4608. entity.Property(e => e.SeoTitle)
  4609. .HasColumnType("varchar(100)")
  4610. .HasCharSet("utf8")
  4611. .HasCollation("utf8_general_ci");
  4612. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4613. entity.Property(e => e.Status).HasColumnType("int(11)");
  4614. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4615. entity.Property(e => e.UseDate).HasColumnType("datetime");
  4616. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4617. });
  4618. modelBuilder.Entity<PosMachines>(entity =>
  4619. {
  4620. entity.Property(e => e.Id).HasColumnType("int(11)");
  4621. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4622. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4623. entity.Property(e => e.ActivityList)
  4624. .HasColumnType("varchar(200)")
  4625. .HasCharSet("utf8")
  4626. .HasCollation("utf8_general_ci");
  4627. entity.Property(e => e.BatchNo)
  4628. .HasColumnType("varchar(32)")
  4629. .HasCharSet("utf8")
  4630. .HasCollation("utf8_general_ci");
  4631. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4632. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4633. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4634. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4635. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4636. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4637. entity.Property(e => e.CreateMan)
  4638. .HasColumnType("varchar(50)")
  4639. .HasCharSet("utf8")
  4640. .HasCollation("utf8_general_ci");
  4641. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4642. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4643. entity.Property(e => e.Detail)
  4644. .HasColumnType("longtext")
  4645. .HasCharSet("utf8")
  4646. .HasCollation("utf8_general_ci");
  4647. entity.Property(e => e.DeviceKind)
  4648. .HasColumnType("varchar(32)")
  4649. .HasCharSet("utf8")
  4650. .HasCollation("utf8_general_ci");
  4651. entity.Property(e => e.DeviceName)
  4652. .HasColumnType("varchar(32)")
  4653. .HasCharSet("utf8")
  4654. .HasCollation("utf8_general_ci");
  4655. entity.Property(e => e.DeviceType)
  4656. .HasColumnType("varchar(20)")
  4657. .HasCharSet("utf8")
  4658. .HasCollation("utf8_general_ci");
  4659. entity.Property(e => e.IsPurchase)
  4660. .HasColumnType("bit(1)")
  4661. .HasDefaultValueSql("b'0'");
  4662. entity.Property(e => e.IsVip)
  4663. .HasColumnType("bit(1)")
  4664. .HasDefaultValueSql("b'0'");
  4665. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4666. entity.Property(e => e.PosSn)
  4667. .HasColumnType("varchar(50)")
  4668. .HasCharSet("utf8")
  4669. .HasCollation("utf8_general_ci");
  4670. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4671. entity.Property(e => e.PrizeParams)
  4672. .HasColumnType("varchar(200)")
  4673. .HasCharSet("utf8")
  4674. .HasCollation("utf8_general_ci");
  4675. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4676. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4677. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4678. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4679. entity.Property(e => e.SeoDescription)
  4680. .HasColumnType("varchar(500)")
  4681. .HasCharSet("utf8")
  4682. .HasCollation("utf8_general_ci");
  4683. entity.Property(e => e.SeoKeyword)
  4684. .HasColumnType("varchar(200)")
  4685. .HasCharSet("utf8")
  4686. .HasCollation("utf8_general_ci");
  4687. entity.Property(e => e.SeoTitle)
  4688. .HasColumnType("varchar(100)")
  4689. .HasCharSet("utf8")
  4690. .HasCollation("utf8_general_ci");
  4691. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4692. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4693. entity.Property(e => e.Status).HasColumnType("int(11)");
  4694. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4695. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4696. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4697. entity.Property(e => e.UpdateMan)
  4698. .HasColumnType("varchar(50)")
  4699. .HasCharSet("utf8")
  4700. .HasCollation("utf8_general_ci");
  4701. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4702. entity.Property(e => e.UserNav)
  4703. .HasColumnType("longtext")
  4704. .HasCharSet("utf8")
  4705. .HasCollation("utf8_general_ci");
  4706. entity.Property(e => e.Version).HasColumnType("int(11)");
  4707. });
  4708. modelBuilder.Entity<PosMachinesTwo>(entity =>
  4709. {
  4710. entity.Property(e => e.Id).HasColumnType("int(11)");
  4711. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4712. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4713. entity.Property(e => e.ActivityList)
  4714. .HasColumnType("varchar(200)")
  4715. .HasCharSet("utf8")
  4716. .HasCollation("utf8_general_ci");
  4717. entity.Property(e => e.BatchNo)
  4718. .HasColumnType("varchar(32)")
  4719. .HasCharSet("utf8")
  4720. .HasCollation("utf8_general_ci");
  4721. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4722. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4723. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4724. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4725. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4726. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4727. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4728. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4729. entity.Property(e => e.Detail)
  4730. .HasColumnType("longtext")
  4731. .HasCharSet("utf8")
  4732. .HasCollation("utf8_general_ci");
  4733. entity.Property(e => e.DeviceKind)
  4734. .HasColumnType("varchar(32)")
  4735. .HasCharSet("utf8")
  4736. .HasCollation("utf8_general_ci");
  4737. entity.Property(e => e.DeviceName)
  4738. .HasColumnType("varchar(32)")
  4739. .HasCharSet("utf8")
  4740. .HasCollation("utf8_general_ci");
  4741. entity.Property(e => e.DeviceType)
  4742. .HasColumnType("varchar(20)")
  4743. .HasCharSet("utf8")
  4744. .HasCollation("utf8_general_ci");
  4745. entity.Property(e => e.IsPurchase).HasColumnType("int(11)");
  4746. entity.Property(e => e.IsVip)
  4747. .HasColumnType("bit(1)")
  4748. .HasDefaultValueSql("b'0'");
  4749. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4750. entity.Property(e => e.PosSn)
  4751. .HasColumnType("varchar(50)")
  4752. .HasCharSet("utf8")
  4753. .HasCollation("utf8_general_ci");
  4754. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4755. entity.Property(e => e.PrizeParams)
  4756. .HasColumnType("varchar(200)")
  4757. .HasCharSet("utf8")
  4758. .HasCollation("utf8_general_ci");
  4759. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4760. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4761. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4762. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4763. entity.Property(e => e.SeoDescription)
  4764. .HasColumnType("varchar(500)")
  4765. .HasCharSet("utf8")
  4766. .HasCollation("utf8_general_ci");
  4767. entity.Property(e => e.SeoKeyword)
  4768. .HasColumnType("varchar(200)")
  4769. .HasCharSet("utf8")
  4770. .HasCollation("utf8_general_ci");
  4771. entity.Property(e => e.SeoTitle)
  4772. .HasColumnType("varchar(100)")
  4773. .HasCharSet("utf8")
  4774. .HasCollation("utf8_general_ci");
  4775. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4776. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4777. entity.Property(e => e.Status).HasColumnType("int(11)");
  4778. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4779. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4780. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4781. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4782. entity.Property(e => e.UserNav)
  4783. .HasColumnType("longtext")
  4784. .HasCharSet("utf8")
  4785. .HasCollation("utf8_general_ci");
  4786. });
  4787. modelBuilder.Entity<PosMerchantInfo>(entity =>
  4788. {
  4789. entity.Property(e => e.Id).HasColumnType("int(11)");
  4790. entity.Property(e => e.ActType).HasColumnType("int(11)");
  4791. entity.Property(e => e.ActTypeDesc)
  4792. .HasColumnType("varchar(64)")
  4793. .HasCharSet("utf8")
  4794. .HasCollation("utf8_general_ci");
  4795. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  4796. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4797. entity.Property(e => e.City)
  4798. .HasColumnType("varchar(32)")
  4799. .HasCharSet("utf8")
  4800. .HasCollation("utf8_general_ci");
  4801. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4802. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  4803. entity.Property(e => e.KqMerNo)
  4804. .HasColumnType("varchar(32)")
  4805. .HasCharSet("utf8")
  4806. .HasCollation("utf8_general_ci");
  4807. entity.Property(e => e.KqRegTime).HasColumnType("datetime");
  4808. entity.Property(e => e.KqSnNo)
  4809. .HasColumnType("varchar(32)")
  4810. .HasCharSet("utf8")
  4811. .HasCollation("utf8_general_ci");
  4812. entity.Property(e => e.MatchTime).HasColumnType("datetime");
  4813. entity.Property(e => e.MerIdcardNo)
  4814. .HasColumnType("varchar(18)")
  4815. .HasCharSet("utf8")
  4816. .HasCollation("utf8_general_ci");
  4817. entity.Property(e => e.MerRealName)
  4818. .HasColumnType("varchar(16)")
  4819. .HasCharSet("utf8")
  4820. .HasCollation("utf8_general_ci");
  4821. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  4822. entity.Property(e => e.MerStatus).HasColumnType("int(11)");
  4823. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  4824. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  4825. entity.Property(e => e.MerchantMobile)
  4826. .HasColumnType("varchar(11)")
  4827. .HasCharSet("utf8")
  4828. .HasCollation("utf8_general_ci");
  4829. entity.Property(e => e.MerchantName)
  4830. .HasColumnType("varchar(32)")
  4831. .HasCharSet("utf8")
  4832. .HasCollation("utf8_general_ci");
  4833. entity.Property(e => e.MerchantNo)
  4834. .HasColumnType("varchar(16)")
  4835. .HasCharSet("utf8")
  4836. .HasCollation("utf8_general_ci");
  4837. entity.Property(e => e.MgrName)
  4838. .HasColumnType("varchar(32)")
  4839. .HasCharSet("utf8")
  4840. .HasCollation("utf8_general_ci");
  4841. entity.Property(e => e.MgrNo)
  4842. .HasColumnType("varchar(16)")
  4843. .HasCharSet("utf8")
  4844. .HasCollation("utf8_general_ci");
  4845. entity.Property(e => e.Province)
  4846. .HasColumnType("varchar(32)")
  4847. .HasCharSet("utf8")
  4848. .HasCollation("utf8_general_ci");
  4849. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4850. entity.Property(e => e.RebateQual).HasColumnType("int(11)");
  4851. entity.Property(e => e.Remark)
  4852. .HasColumnType("varchar(64)")
  4853. .HasCharSet("utf8")
  4854. .HasCollation("utf8_general_ci");
  4855. entity.Property(e => e.SeoDescription)
  4856. .HasColumnType("varchar(500)")
  4857. .HasCharSet("utf8")
  4858. .HasCollation("utf8_general_ci");
  4859. entity.Property(e => e.SeoKeyword)
  4860. .HasColumnType("varchar(200)")
  4861. .HasCharSet("utf8")
  4862. .HasCollation("utf8_general_ci");
  4863. entity.Property(e => e.SeoTitle)
  4864. .HasColumnType("varchar(100)")
  4865. .HasCharSet("utf8")
  4866. .HasCollation("utf8_general_ci");
  4867. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  4868. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  4869. entity.Property(e => e.SnType).HasColumnType("int(11)");
  4870. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4871. entity.Property(e => e.Status).HasColumnType("int(11)");
  4872. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4873. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4874. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4875. });
  4876. modelBuilder.Entity<ProductComment>(entity =>
  4877. {
  4878. entity.Property(e => e.Id).HasColumnType("int(11)");
  4879. entity.Property(e => e.AgreeCount).HasColumnType("int(11)");
  4880. entity.Property(e => e.BackCount).HasColumnType("int(11)");
  4881. entity.Property(e => e.Contents)
  4882. .HasColumnType("varchar(200)")
  4883. .HasCharSet("utf8")
  4884. .HasCollation("utf8_general_ci");
  4885. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4886. entity.Property(e => e.CreateMan)
  4887. .HasColumnType("varchar(50)")
  4888. .HasCharSet("utf8")
  4889. .HasCollation("utf8_general_ci");
  4890. entity.Property(e => e.HasPhoto)
  4891. .HasColumnType("bit(1)")
  4892. .HasDefaultValueSql("b'0'");
  4893. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4894. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4895. entity.Property(e => e.PhotoList)
  4896. .HasColumnType("mediumtext")
  4897. .HasCharSet("utf8")
  4898. .HasCollation("utf8_general_ci");
  4899. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4900. entity.Property(e => e.ProductNormId).HasColumnType("int(11)");
  4901. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4902. entity.Property(e => e.SeoDescription)
  4903. .HasColumnType("varchar(500)")
  4904. .HasCharSet("utf8")
  4905. .HasCollation("utf8_general_ci");
  4906. entity.Property(e => e.SeoKeyword)
  4907. .HasColumnType("varchar(200)")
  4908. .HasCharSet("utf8")
  4909. .HasCollation("utf8_general_ci");
  4910. entity.Property(e => e.SeoTitle)
  4911. .HasColumnType("varchar(100)")
  4912. .HasCharSet("utf8")
  4913. .HasCollation("utf8_general_ci");
  4914. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4915. entity.Property(e => e.StarNum).HasColumnType("int(11)");
  4916. entity.Property(e => e.Status).HasColumnType("int(11)");
  4917. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4918. entity.Property(e => e.UpdateMan)
  4919. .HasColumnType("varchar(50)")
  4920. .HasCharSet("utf8")
  4921. .HasCollation("utf8_general_ci");
  4922. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4923. entity.Property(e => e.Version).HasColumnType("int(11)");
  4924. });
  4925. modelBuilder.Entity<ProductCommentAgree>(entity =>
  4926. {
  4927. entity.Property(e => e.Id).HasColumnType("int(11)");
  4928. entity.Property(e => e.ProductCommentId).HasColumnType("int(11)");
  4929. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4930. });
  4931. modelBuilder.Entity<ProductFareAreas>(entity =>
  4932. {
  4933. entity.Property(e => e.Id).HasColumnType("int(11)");
  4934. entity.Property(e => e.Areas)
  4935. .HasColumnType("longtext")
  4936. .HasCharSet("utf8")
  4937. .HasCollation("utf8_general_ci");
  4938. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4939. entity.Property(e => e.CreateMan)
  4940. .HasColumnType("varchar(50)")
  4941. .HasCharSet("utf8")
  4942. .HasCollation("utf8_general_ci");
  4943. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4944. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4945. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4946. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4947. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4948. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4949. entity.Property(e => e.SeoDescription)
  4950. .HasColumnType("varchar(500)")
  4951. .HasCharSet("utf8")
  4952. .HasCollation("utf8_general_ci");
  4953. entity.Property(e => e.SeoKeyword)
  4954. .HasColumnType("varchar(200)")
  4955. .HasCharSet("utf8")
  4956. .HasCollation("utf8_general_ci");
  4957. entity.Property(e => e.SeoTitle)
  4958. .HasColumnType("varchar(100)")
  4959. .HasCharSet("utf8")
  4960. .HasCollation("utf8_general_ci");
  4961. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4962. entity.Property(e => e.Status).HasColumnType("int(11)");
  4963. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  4964. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4965. entity.Property(e => e.UpdateMan)
  4966. .HasColumnType("varchar(50)")
  4967. .HasCharSet("utf8")
  4968. .HasCollation("utf8_general_ci");
  4969. entity.Property(e => e.Version).HasColumnType("int(11)");
  4970. });
  4971. modelBuilder.Entity<ProductFareTemp>(entity =>
  4972. {
  4973. entity.Property(e => e.Id).HasColumnType("int(11)");
  4974. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4975. entity.Property(e => e.CreateMan)
  4976. .HasColumnType("varchar(50)")
  4977. .HasCharSet("utf8")
  4978. .HasCollation("utf8_general_ci");
  4979. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4980. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4981. entity.Property(e => e.IsFree)
  4982. .HasColumnType("bit(1)")
  4983. .HasDefaultValueSql("b'0'");
  4984. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4985. entity.Property(e => e.MeterMode).HasColumnType("int(11)");
  4986. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4987. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4988. entity.Property(e => e.Name)
  4989. .HasColumnType("varchar(50)")
  4990. .HasCharSet("utf8")
  4991. .HasCollation("utf8_general_ci");
  4992. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4993. entity.Property(e => e.SendAddress)
  4994. .HasColumnType("varchar(50)")
  4995. .HasCharSet("utf8")
  4996. .HasCollation("utf8_general_ci");
  4997. entity.Property(e => e.SendAreas)
  4998. .HasColumnType("varchar(30)")
  4999. .HasCharSet("utf8")
  5000. .HasCollation("utf8_general_ci");
  5001. entity.Property(e => e.SendDate).HasColumnType("int(11)");
  5002. entity.Property(e => e.SeoDescription)
  5003. .HasColumnType("varchar(500)")
  5004. .HasCharSet("utf8")
  5005. .HasCollation("utf8_general_ci");
  5006. entity.Property(e => e.SeoKeyword)
  5007. .HasColumnType("varchar(200)")
  5008. .HasCharSet("utf8")
  5009. .HasCollation("utf8_general_ci");
  5010. entity.Property(e => e.SeoTitle)
  5011. .HasColumnType("varchar(100)")
  5012. .HasCharSet("utf8")
  5013. .HasCollation("utf8_general_ci");
  5014. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5015. entity.Property(e => e.Status).HasColumnType("int(11)");
  5016. entity.Property(e => e.TransportMode).HasColumnType("int(11)");
  5017. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5018. entity.Property(e => e.UpdateMan)
  5019. .HasColumnType("varchar(50)")
  5020. .HasCharSet("utf8")
  5021. .HasCollation("utf8_general_ci");
  5022. entity.Property(e => e.Version).HasColumnType("int(11)");
  5023. });
  5024. modelBuilder.Entity<ProductKeys>(entity =>
  5025. {
  5026. entity.HasKey(e => e.Name)
  5027. .HasName("PRIMARY");
  5028. entity.Property(e => e.Name)
  5029. .HasColumnType("varchar(10)")
  5030. .HasCharSet("utf8")
  5031. .HasCollation("utf8_general_ci");
  5032. entity.Property(e => e.ColIds)
  5033. .HasColumnType("longtext")
  5034. .HasCharSet("utf8")
  5035. .HasCollation("utf8_general_ci");
  5036. entity.Property(e => e.ProductIds)
  5037. .HasColumnType("longtext")
  5038. .HasCharSet("utf8")
  5039. .HasCollation("utf8_general_ci");
  5040. });
  5041. modelBuilder.Entity<ProductNorm>(entity =>
  5042. {
  5043. entity.Property(e => e.Id).HasColumnType("int(11)");
  5044. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5045. entity.Property(e => e.Code)
  5046. .HasColumnType("varchar(50)")
  5047. .HasCharSet("utf8")
  5048. .HasCollation("utf8_general_ci");
  5049. entity.Property(e => e.ColName)
  5050. .HasColumnType("varchar(50)")
  5051. .HasCharSet("utf8")
  5052. .HasCollation("utf8_general_ci");
  5053. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5054. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5055. entity.Property(e => e.CreateMan)
  5056. .HasColumnType("varchar(50)")
  5057. .HasCharSet("utf8")
  5058. .HasCollation("utf8_general_ci");
  5059. entity.Property(e => e.IdList)
  5060. .HasColumnType("varchar(50)")
  5061. .HasCharSet("utf8")
  5062. .HasCollation("utf8_general_ci");
  5063. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5064. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5065. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5066. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5067. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5068. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5069. entity.Property(e => e.SeoDescription)
  5070. .HasColumnType("varchar(500)")
  5071. .HasCharSet("utf8")
  5072. .HasCollation("utf8_general_ci");
  5073. entity.Property(e => e.SeoKeyword)
  5074. .HasColumnType("varchar(200)")
  5075. .HasCharSet("utf8")
  5076. .HasCollation("utf8_general_ci");
  5077. entity.Property(e => e.SeoTitle)
  5078. .HasColumnType("varchar(100)")
  5079. .HasCharSet("utf8")
  5080. .HasCollation("utf8_general_ci");
  5081. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5082. entity.Property(e => e.Status).HasColumnType("int(11)");
  5083. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5084. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5085. entity.Property(e => e.UpdateMan)
  5086. .HasColumnType("varchar(50)")
  5087. .HasCharSet("utf8")
  5088. .HasCollation("utf8_general_ci");
  5089. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5090. entity.Property(e => e.UserPrice).HasColumnType("decimal(18,2)");
  5091. entity.Property(e => e.Version).HasColumnType("int(11)");
  5092. });
  5093. modelBuilder.Entity<ProductNormItem>(entity =>
  5094. {
  5095. entity.Property(e => e.Id).HasColumnType("int(11)");
  5096. entity.Property(e => e.ColName)
  5097. .HasColumnType("varchar(50)")
  5098. .HasCharSet("utf8")
  5099. .HasCollation("utf8_general_ci");
  5100. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5101. entity.Property(e => e.CreateMan)
  5102. .HasColumnType("varchar(50)")
  5103. .HasCharSet("utf8")
  5104. .HasCollation("utf8_general_ci");
  5105. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5106. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  5107. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5108. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5109. entity.Property(e => e.SeoDescription)
  5110. .HasColumnType("varchar(500)")
  5111. .HasCharSet("utf8")
  5112. .HasCollation("utf8_general_ci");
  5113. entity.Property(e => e.SeoKeyword)
  5114. .HasColumnType("varchar(200)")
  5115. .HasCharSet("utf8")
  5116. .HasCollation("utf8_general_ci");
  5117. entity.Property(e => e.SeoTitle)
  5118. .HasColumnType("varchar(100)")
  5119. .HasCharSet("utf8")
  5120. .HasCollation("utf8_general_ci");
  5121. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5122. entity.Property(e => e.Status).HasColumnType("int(11)");
  5123. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5124. entity.Property(e => e.UpdateMan)
  5125. .HasColumnType("varchar(50)")
  5126. .HasCharSet("utf8")
  5127. .HasCollation("utf8_general_ci");
  5128. entity.Property(e => e.Version).HasColumnType("int(11)");
  5129. });
  5130. modelBuilder.Entity<ProductNormTemp>(entity =>
  5131. {
  5132. entity.Property(e => e.Id).HasColumnType("int(11)");
  5133. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5134. entity.Property(e => e.CreateMan)
  5135. .HasColumnType("varchar(50)")
  5136. .HasCharSet("utf8")
  5137. .HasCollation("utf8_general_ci");
  5138. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5139. entity.Property(e => e.Name)
  5140. .HasColumnType("varchar(50)")
  5141. .HasCharSet("utf8")
  5142. .HasCollation("utf8_general_ci");
  5143. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5144. entity.Property(e => e.SeoDescription)
  5145. .HasColumnType("varchar(500)")
  5146. .HasCharSet("utf8")
  5147. .HasCollation("utf8_general_ci");
  5148. entity.Property(e => e.SeoKeyword)
  5149. .HasColumnType("varchar(200)")
  5150. .HasCharSet("utf8")
  5151. .HasCollation("utf8_general_ci");
  5152. entity.Property(e => e.SeoTitle)
  5153. .HasColumnType("varchar(100)")
  5154. .HasCharSet("utf8")
  5155. .HasCollation("utf8_general_ci");
  5156. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5157. entity.Property(e => e.Status).HasColumnType("int(11)");
  5158. entity.Property(e => e.TempJsonData)
  5159. .HasColumnType("longtext")
  5160. .HasCharSet("utf8")
  5161. .HasCollation("utf8_general_ci");
  5162. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5163. entity.Property(e => e.UpdateMan)
  5164. .HasColumnType("varchar(50)")
  5165. .HasCharSet("utf8")
  5166. .HasCollation("utf8_general_ci");
  5167. entity.Property(e => e.Version).HasColumnType("int(11)");
  5168. });
  5169. modelBuilder.Entity<Products>(entity =>
  5170. {
  5171. entity.Property(e => e.Id).HasColumnType("int(11)");
  5172. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5173. entity.Property(e => e.ColId)
  5174. .HasColumnType("varchar(30)")
  5175. .HasCharSet("utf8")
  5176. .HasCollation("utf8_general_ci");
  5177. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  5178. entity.Property(e => e.Contents)
  5179. .HasColumnType("longtext")
  5180. .HasCharSet("utf8")
  5181. .HasCollation("utf8_general_ci");
  5182. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5183. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5184. entity.Property(e => e.CreateMan)
  5185. .HasColumnType("varchar(50)")
  5186. .HasCharSet("utf8")
  5187. .HasCollation("utf8_general_ci");
  5188. entity.Property(e => e.DetailPicPath)
  5189. .HasColumnType("varchar(500)")
  5190. .HasCharSet("utf8")
  5191. .HasCollation("utf8_general_ci");
  5192. entity.Property(e => e.Details)
  5193. .HasColumnType("longtext")
  5194. .HasCharSet("utf8")
  5195. .HasCollation("utf8_general_ci");
  5196. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5197. entity.Property(e => e.FareTemplateId).HasColumnType("int(11)");
  5198. entity.Property(e => e.GoodPercent).HasColumnType("decimal(18,2)");
  5199. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5200. entity.Property(e => e.IsLimit)
  5201. .HasColumnType("bit(1)")
  5202. .HasDefaultValueSql("b'0'");
  5203. entity.Property(e => e.IsRecommend)
  5204. .HasColumnType("bit(1)")
  5205. .HasDefaultValueSql("b'0'");
  5206. entity.Property(e => e.IsRecommend2)
  5207. .HasColumnType("bit(1)")
  5208. .HasDefaultValueSql("b'0'");
  5209. entity.Property(e => e.IsRecommend3)
  5210. .HasColumnType("bit(1)")
  5211. .HasDefaultValueSql("b'0'");
  5212. entity.Property(e => e.KeyWord)
  5213. .HasColumnType("varchar(500)")
  5214. .HasCharSet("utf8")
  5215. .HasCollation("utf8_general_ci");
  5216. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5217. entity.Property(e => e.LinkUrl)
  5218. .HasColumnType("varchar(500)")
  5219. .HasCharSet("utf8")
  5220. .HasCollation("utf8_general_ci");
  5221. entity.Property(e => e.ListPicPath)
  5222. .HasColumnType("varchar(200)")
  5223. .HasCharSet("utf8")
  5224. .HasCollation("utf8_general_ci");
  5225. entity.Property(e => e.MemberPrice).HasColumnType("decimal(18,2)");
  5226. entity.Property(e => e.MerchantClassId).HasColumnType("int(11)");
  5227. entity.Property(e => e.MerchantColId)
  5228. .HasColumnType("varchar(30)")
  5229. .HasCharSet("utf8")
  5230. .HasCollation("utf8_general_ci");
  5231. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5232. entity.Property(e => e.MonthSale).HasColumnType("int(11)");
  5233. entity.Property(e => e.NormIds)
  5234. .HasColumnType("varchar(100)")
  5235. .HasCharSet("utf8")
  5236. .HasCollation("utf8_general_ci");
  5237. entity.Property(e => e.NormJson)
  5238. .HasColumnType("longtext")
  5239. .HasCharSet("utf8")
  5240. .HasCollation("utf8_general_ci");
  5241. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5242. entity.Property(e => e.ProductCode)
  5243. .HasColumnType("varchar(30)")
  5244. .HasCharSet("utf8")
  5245. .HasCollation("utf8_general_ci");
  5246. entity.Property(e => e.ProductName)
  5247. .HasColumnType("varchar(100)")
  5248. .HasCharSet("utf8")
  5249. .HasCollation("utf8_general_ci");
  5250. entity.Property(e => e.PublishDate).HasColumnType("datetime");
  5251. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5252. entity.Property(e => e.SeoDescription)
  5253. .HasColumnType("varchar(500)")
  5254. .HasCharSet("utf8")
  5255. .HasCollation("utf8_general_ci");
  5256. entity.Property(e => e.SeoKeyword)
  5257. .HasColumnType("varchar(200)")
  5258. .HasCharSet("utf8")
  5259. .HasCollation("utf8_general_ci");
  5260. entity.Property(e => e.SeoTitle)
  5261. .HasColumnType("varchar(100)")
  5262. .HasCharSet("utf8")
  5263. .HasCollation("utf8_general_ci");
  5264. entity.Property(e => e.ShareDetail)
  5265. .HasColumnType("varchar(200)")
  5266. .HasCharSet("utf8")
  5267. .HasCollation("utf8_general_ci");
  5268. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5269. entity.Property(e => e.SourcePrice).HasColumnType("decimal(18,2)");
  5270. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5271. entity.Property(e => e.Status).HasColumnType("int(11)");
  5272. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5273. entity.Property(e => e.Title)
  5274. .HasColumnType("varchar(50)")
  5275. .HasCharSet("utf8")
  5276. .HasCollation("utf8_general_ci");
  5277. entity.Property(e => e.Title2)
  5278. .HasColumnType("varchar(50)")
  5279. .HasCharSet("utf8")
  5280. .HasCollation("utf8_general_ci");
  5281. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5282. entity.Property(e => e.UpdateMan)
  5283. .HasColumnType("varchar(50)")
  5284. .HasCharSet("utf8")
  5285. .HasCollation("utf8_general_ci");
  5286. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5287. entity.Property(e => e.Version).HasColumnType("int(11)");
  5288. });
  5289. modelBuilder.Entity<ProfitObjectActivations>(entity =>
  5290. {
  5291. entity.Property(e => e.Id).HasColumnType("int(11)");
  5292. entity.Property(e => e.Code)
  5293. .HasColumnType("varchar(32)")
  5294. .HasCharSet("utf8")
  5295. .HasCollation("utf8_general_ci");
  5296. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5297. entity.Property(e => e.CreateMan)
  5298. .HasColumnType("varchar(50)")
  5299. .HasCharSet("utf8")
  5300. .HasCollation("utf8_general_ci");
  5301. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5302. entity.Property(e => e.ExpiredNumber).HasColumnType("decimal(18,6)");
  5303. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5304. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5305. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5306. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5307. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5308. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5309. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5310. entity.Property(e => e.SeoDescription)
  5311. .HasColumnType("varchar(500)")
  5312. .HasCharSet("utf8")
  5313. .HasCollation("utf8_general_ci");
  5314. entity.Property(e => e.SeoKeyword)
  5315. .HasColumnType("varchar(200)")
  5316. .HasCharSet("utf8")
  5317. .HasCollation("utf8_general_ci");
  5318. entity.Property(e => e.SeoTitle)
  5319. .HasColumnType("varchar(100)")
  5320. .HasCharSet("utf8")
  5321. .HasCollation("utf8_general_ci");
  5322. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5323. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5324. entity.Property(e => e.Status).HasColumnType("int(11)");
  5325. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5326. entity.Property(e => e.UpdateMan)
  5327. .HasColumnType("varchar(50)")
  5328. .HasCharSet("utf8")
  5329. .HasCollation("utf8_general_ci");
  5330. entity.Property(e => e.Version).HasColumnType("int(11)");
  5331. });
  5332. modelBuilder.Entity<ProfitObjectContinueFloors>(entity =>
  5333. {
  5334. entity.Property(e => e.Id).HasColumnType("int(11)");
  5335. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5336. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5337. entity.Property(e => e.CreateMan)
  5338. .HasColumnType("varchar(50)")
  5339. .HasCharSet("utf8")
  5340. .HasCollation("utf8_general_ci");
  5341. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5342. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5343. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5344. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5345. entity.Property(e => e.SeoDescription)
  5346. .HasColumnType("varchar(500)")
  5347. .HasCharSet("utf8")
  5348. .HasCollation("utf8_general_ci");
  5349. entity.Property(e => e.SeoKeyword)
  5350. .HasColumnType("varchar(200)")
  5351. .HasCharSet("utf8")
  5352. .HasCollation("utf8_general_ci");
  5353. entity.Property(e => e.SeoTitle)
  5354. .HasColumnType("varchar(100)")
  5355. .HasCharSet("utf8")
  5356. .HasCollation("utf8_general_ci");
  5357. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5358. entity.Property(e => e.Status).HasColumnType("int(11)");
  5359. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5360. entity.Property(e => e.UpdateMan)
  5361. .HasColumnType("varchar(50)")
  5362. .HasCharSet("utf8")
  5363. .HasCollation("utf8_general_ci");
  5364. entity.Property(e => e.Version).HasColumnType("int(11)");
  5365. });
  5366. modelBuilder.Entity<ProfitObjectFloors>(entity =>
  5367. {
  5368. entity.Property(e => e.Id).HasColumnType("int(11)");
  5369. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5370. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5371. entity.Property(e => e.CreateMan)
  5372. .HasColumnType("varchar(50)")
  5373. .HasCharSet("utf8")
  5374. .HasCollation("utf8_general_ci");
  5375. entity.Property(e => e.FloorDiff)
  5376. .HasColumnType("bit(1)")
  5377. .HasDefaultValueSql("b'0'");
  5378. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5379. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5380. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5381. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5382. entity.Property(e => e.SeoDescription)
  5383. .HasColumnType("varchar(500)")
  5384. .HasCharSet("utf8")
  5385. .HasCollation("utf8_general_ci");
  5386. entity.Property(e => e.SeoKeyword)
  5387. .HasColumnType("varchar(200)")
  5388. .HasCharSet("utf8")
  5389. .HasCollation("utf8_general_ci");
  5390. entity.Property(e => e.SeoTitle)
  5391. .HasColumnType("varchar(100)")
  5392. .HasCharSet("utf8")
  5393. .HasCollation("utf8_general_ci");
  5394. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5395. entity.Property(e => e.Status).HasColumnType("int(11)");
  5396. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5397. entity.Property(e => e.UpdateMan)
  5398. .HasColumnType("varchar(50)")
  5399. .HasCharSet("utf8")
  5400. .HasCollation("utf8_general_ci");
  5401. entity.Property(e => e.Version).HasColumnType("int(11)");
  5402. });
  5403. modelBuilder.Entity<ProfitObjectLevelKinds>(entity =>
  5404. {
  5405. entity.Property(e => e.Id).HasColumnType("int(11)");
  5406. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5407. entity.Property(e => e.CreateMan)
  5408. .HasColumnType("varchar(50)")
  5409. .HasCharSet("utf8")
  5410. .HasCollation("utf8_general_ci");
  5411. entity.Property(e => e.Name)
  5412. .HasColumnType("varchar(50)")
  5413. .HasCharSet("utf8")
  5414. .HasCollation("utf8_general_ci");
  5415. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5416. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5417. entity.Property(e => e.SeoDescription)
  5418. .HasColumnType("varchar(500)")
  5419. .HasCharSet("utf8")
  5420. .HasCollation("utf8_general_ci");
  5421. entity.Property(e => e.SeoKeyword)
  5422. .HasColumnType("varchar(200)")
  5423. .HasCharSet("utf8")
  5424. .HasCollation("utf8_general_ci");
  5425. entity.Property(e => e.SeoTitle)
  5426. .HasColumnType("varchar(100)")
  5427. .HasCharSet("utf8")
  5428. .HasCollation("utf8_general_ci");
  5429. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5430. entity.Property(e => e.Status).HasColumnType("int(11)");
  5431. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5432. entity.Property(e => e.UpdateMan)
  5433. .HasColumnType("varchar(50)")
  5434. .HasCharSet("utf8")
  5435. .HasCollation("utf8_general_ci");
  5436. entity.Property(e => e.Version).HasColumnType("int(11)");
  5437. });
  5438. modelBuilder.Entity<ProfitObjectLevels>(entity =>
  5439. {
  5440. entity.Property(e => e.Id).HasColumnType("int(11)");
  5441. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5442. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5443. entity.Property(e => e.CreateMan)
  5444. .HasColumnType("varchar(50)")
  5445. .HasCharSet("utf8")
  5446. .HasCollation("utf8_general_ci");
  5447. entity.Property(e => e.DebitAddProfitVal).HasColumnType("decimal(18,2)");
  5448. entity.Property(e => e.DebitPercents).HasColumnType("decimal(18,2)");
  5449. entity.Property(e => e.KindId).HasColumnType("int(11)");
  5450. entity.Property(e => e.LevelDiff)
  5451. .HasColumnType("bit(1)")
  5452. .HasDefaultValueSql("b'0'");
  5453. entity.Property(e => e.LevelNumber).HasColumnType("int(11)");
  5454. entity.Property(e => e.Name)
  5455. .HasColumnType("varchar(50)")
  5456. .HasCharSet("utf8")
  5457. .HasCollation("utf8_general_ci");
  5458. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5459. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5460. entity.Property(e => e.SeoDescription)
  5461. .HasColumnType("varchar(500)")
  5462. .HasCharSet("utf8")
  5463. .HasCollation("utf8_general_ci");
  5464. entity.Property(e => e.SeoKeyword)
  5465. .HasColumnType("varchar(200)")
  5466. .HasCharSet("utf8")
  5467. .HasCollation("utf8_general_ci");
  5468. entity.Property(e => e.SeoTitle)
  5469. .HasColumnType("varchar(100)")
  5470. .HasCharSet("utf8")
  5471. .HasCollation("utf8_general_ci");
  5472. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5473. entity.Property(e => e.Status).HasColumnType("int(11)");
  5474. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5475. entity.Property(e => e.UpdateMan)
  5476. .HasColumnType("varchar(50)")
  5477. .HasCharSet("utf8")
  5478. .HasCollation("utf8_general_ci");
  5479. entity.Property(e => e.Version).HasColumnType("int(11)");
  5480. });
  5481. modelBuilder.Entity<ProfitObjects>(entity =>
  5482. {
  5483. entity.Property(e => e.Id).HasColumnType("int(11)");
  5484. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5485. entity.Property(e => e.CreateMan)
  5486. .HasColumnType("varchar(50)")
  5487. .HasCharSet("utf8")
  5488. .HasCollation("utf8_general_ci");
  5489. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5490. entity.Property(e => e.MaxFloor).HasColumnType("int(11)");
  5491. entity.Property(e => e.MaxLevel).HasColumnType("int(11)");
  5492. entity.Property(e => e.MaxLevelContinue)
  5493. .HasColumnType("bit(1)")
  5494. .HasDefaultValueSql("b'0'");
  5495. entity.Property(e => e.MinProfitVal).HasColumnType("decimal(18,5)");
  5496. entity.Property(e => e.Name)
  5497. .HasColumnType("varchar(50)")
  5498. .HasCharSet("utf8")
  5499. .HasCollation("utf8_general_ci");
  5500. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5501. entity.Property(e => e.SeoDescription)
  5502. .HasColumnType("varchar(500)")
  5503. .HasCharSet("utf8")
  5504. .HasCollation("utf8_general_ci");
  5505. entity.Property(e => e.SeoKeyword)
  5506. .HasColumnType("varchar(200)")
  5507. .HasCharSet("utf8")
  5508. .HasCollation("utf8_general_ci");
  5509. entity.Property(e => e.SeoTitle)
  5510. .HasColumnType("varchar(100)")
  5511. .HasCharSet("utf8")
  5512. .HasCollation("utf8_general_ci");
  5513. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5514. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5515. entity.Property(e => e.Status).HasColumnType("int(11)");
  5516. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5517. entity.Property(e => e.UpdateMan)
  5518. .HasColumnType("varchar(50)")
  5519. .HasCharSet("utf8")
  5520. .HasCollation("utf8_general_ci");
  5521. entity.Property(e => e.Version).HasColumnType("int(11)");
  5522. });
  5523. modelBuilder.Entity<ProfitObjectsActiveCheck>(entity =>
  5524. {
  5525. entity.HasKey(e => e.CheckData)
  5526. .HasName("PRIMARY");
  5527. entity.Property(e => e.CheckData)
  5528. .HasColumnType("varchar(100)")
  5529. .HasCharSet("utf8")
  5530. .HasCollation("utf8_general_ci");
  5531. });
  5532. modelBuilder.Entity<ProfitObjectsActiveParams>(entity =>
  5533. {
  5534. entity.Property(e => e.Id).HasColumnType("int(11)");
  5535. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5536. entity.Property(e => e.CreateMan)
  5537. .HasColumnType("varchar(50)")
  5538. .HasCharSet("utf8")
  5539. .HasCollation("utf8_general_ci");
  5540. entity.Property(e => e.Name)
  5541. .HasColumnType("varchar(50)")
  5542. .HasCharSet("utf8")
  5543. .HasCollation("utf8_general_ci");
  5544. entity.Property(e => e.ProfitObjectsActiveId).HasColumnType("int(11)");
  5545. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5546. entity.Property(e => e.Remark)
  5547. .HasColumnType("varchar(200)")
  5548. .HasCharSet("utf8")
  5549. .HasCollation("utf8_general_ci");
  5550. entity.Property(e => e.SeoDescription)
  5551. .HasColumnType("varchar(500)")
  5552. .HasCharSet("utf8")
  5553. .HasCollation("utf8_general_ci");
  5554. entity.Property(e => e.SeoKeyword)
  5555. .HasColumnType("varchar(200)")
  5556. .HasCharSet("utf8")
  5557. .HasCollation("utf8_general_ci");
  5558. entity.Property(e => e.SeoTitle)
  5559. .HasColumnType("varchar(100)")
  5560. .HasCharSet("utf8")
  5561. .HasCollation("utf8_general_ci");
  5562. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5563. entity.Property(e => e.Status).HasColumnType("int(11)");
  5564. entity.Property(e => e.TextValue)
  5565. .HasColumnType("varchar(20)")
  5566. .HasCharSet("utf8")
  5567. .HasCollation("utf8_general_ci");
  5568. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5569. entity.Property(e => e.UpdateMan)
  5570. .HasColumnType("varchar(50)")
  5571. .HasCharSet("utf8")
  5572. .HasCollation("utf8_general_ci");
  5573. entity.Property(e => e.Version).HasColumnType("int(11)");
  5574. });
  5575. modelBuilder.Entity<ProfitObjectsActives>(entity =>
  5576. {
  5577. entity.Property(e => e.Id).HasColumnType("int(11)");
  5578. entity.Property(e => e.CardType).HasColumnType("int(11)");
  5579. entity.Property(e => e.Code)
  5580. .HasColumnType("varchar(50)")
  5581. .HasCharSet("utf8")
  5582. .HasCollation("utf8_general_ci");
  5583. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5584. entity.Property(e => e.CreateMan)
  5585. .HasColumnType("varchar(50)")
  5586. .HasCharSet("utf8")
  5587. .HasCollation("utf8_general_ci");
  5588. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5589. entity.Property(e => e.FinishNumber).HasColumnType("decimal(18,6)");
  5590. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5591. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5592. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5593. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5594. entity.Property(e => e.Name)
  5595. .HasColumnType("varchar(50)")
  5596. .HasCharSet("utf8")
  5597. .HasCollation("utf8_general_ci");
  5598. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5599. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5600. entity.Property(e => e.ProfitNumber2).HasColumnType("decimal(18,2)");
  5601. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5602. entity.Property(e => e.SeoDescription)
  5603. .HasColumnType("varchar(500)")
  5604. .HasCharSet("utf8")
  5605. .HasCollation("utf8_general_ci");
  5606. entity.Property(e => e.SeoKeyword)
  5607. .HasColumnType("varchar(200)")
  5608. .HasCharSet("utf8")
  5609. .HasCollation("utf8_general_ci");
  5610. entity.Property(e => e.SeoTitle)
  5611. .HasColumnType("varchar(100)")
  5612. .HasCharSet("utf8")
  5613. .HasCollation("utf8_general_ci");
  5614. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5615. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5616. entity.Property(e => e.Status).HasColumnType("int(11)");
  5617. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5618. entity.Property(e => e.UpdateMan)
  5619. .HasColumnType("varchar(50)")
  5620. .HasCharSet("utf8")
  5621. .HasCollation("utf8_general_ci");
  5622. entity.Property(e => e.Version).HasColumnType("int(11)");
  5623. });
  5624. modelBuilder.Entity<ProfitObjectsActivesForId>(entity =>
  5625. {
  5626. entity.HasKey(e => e.Name)
  5627. .HasName("PRIMARY");
  5628. entity.Property(e => e.Name)
  5629. .HasColumnType("varchar(50)")
  5630. .HasCharSet("utf8")
  5631. .HasCollation("utf8_general_ci");
  5632. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  5633. });
  5634. modelBuilder.Entity<ProfitObjectsRule>(entity =>
  5635. {
  5636. entity.Property(e => e.Id).HasColumnType("int(11)");
  5637. entity.Property(e => e.Code)
  5638. .HasColumnType("varchar(50)")
  5639. .HasCharSet("utf8")
  5640. .HasCollation("utf8_general_ci");
  5641. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5642. entity.Property(e => e.CreateMan)
  5643. .HasColumnType("varchar(50)")
  5644. .HasCharSet("utf8")
  5645. .HasCollation("utf8_general_ci");
  5646. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5647. entity.Property(e => e.Name)
  5648. .HasColumnType("varchar(50)")
  5649. .HasCharSet("utf8")
  5650. .HasCollation("utf8_general_ci");
  5651. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5652. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5653. entity.Property(e => e.SeoDescription)
  5654. .HasColumnType("varchar(500)")
  5655. .HasCharSet("utf8")
  5656. .HasCollation("utf8_general_ci");
  5657. entity.Property(e => e.SeoKeyword)
  5658. .HasColumnType("varchar(200)")
  5659. .HasCharSet("utf8")
  5660. .HasCollation("utf8_general_ci");
  5661. entity.Property(e => e.SeoTitle)
  5662. .HasColumnType("varchar(100)")
  5663. .HasCharSet("utf8")
  5664. .HasCollation("utf8_general_ci");
  5665. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5666. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5667. entity.Property(e => e.Status).HasColumnType("int(11)");
  5668. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5669. entity.Property(e => e.UpdateMan)
  5670. .HasColumnType("varchar(50)")
  5671. .HasCharSet("utf8")
  5672. .HasCollation("utf8_general_ci");
  5673. entity.Property(e => e.Version).HasColumnType("int(11)");
  5674. });
  5675. modelBuilder.Entity<ProfitObjectsRuleDetails>(entity =>
  5676. {
  5677. entity.Property(e => e.Id).HasColumnType("int(11)");
  5678. entity.Property(e => e.Code)
  5679. .HasColumnType("varchar(50)")
  5680. .HasCharSet("utf8")
  5681. .HasCollation("utf8_general_ci");
  5682. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5683. entity.Property(e => e.CreateMan)
  5684. .HasColumnType("varchar(50)")
  5685. .HasCharSet("utf8")
  5686. .HasCollation("utf8_general_ci");
  5687. entity.Property(e => e.DataValue)
  5688. .HasColumnType("varchar(50)")
  5689. .HasCharSet("utf8")
  5690. .HasCollation("utf8_general_ci");
  5691. entity.Property(e => e.Name)
  5692. .HasColumnType("varchar(50)")
  5693. .HasCharSet("utf8")
  5694. .HasCollation("utf8_general_ci");
  5695. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5696. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  5697. entity.Property(e => e.SeoDescription)
  5698. .HasColumnType("varchar(500)")
  5699. .HasCharSet("utf8")
  5700. .HasCollation("utf8_general_ci");
  5701. entity.Property(e => e.SeoKeyword)
  5702. .HasColumnType("varchar(200)")
  5703. .HasCharSet("utf8")
  5704. .HasCollation("utf8_general_ci");
  5705. entity.Property(e => e.SeoTitle)
  5706. .HasColumnType("varchar(100)")
  5707. .HasCharSet("utf8")
  5708. .HasCollation("utf8_general_ci");
  5709. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5710. entity.Property(e => e.Status).HasColumnType("int(11)");
  5711. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5712. entity.Property(e => e.UpdateMan)
  5713. .HasColumnType("varchar(50)")
  5714. .HasCharSet("utf8")
  5715. .HasCollation("utf8_general_ci");
  5716. entity.Property(e => e.Version).HasColumnType("int(11)");
  5717. });
  5718. modelBuilder.Entity<ProfitReceiveRecord>(entity =>
  5719. {
  5720. entity.Property(e => e.Id).HasColumnType("int(11)");
  5721. entity.Property(e => e.Account)
  5722. .HasColumnType("varchar(32)")
  5723. .HasCharSet("utf8")
  5724. .HasCollation("utf8_general_ci");
  5725. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  5726. entity.Property(e => e.AppId)
  5727. .HasColumnType("varchar(32)")
  5728. .HasCharSet("utf8")
  5729. .HasCollation("utf8_general_ci");
  5730. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5731. entity.Property(e => e.CreateMan)
  5732. .HasColumnType("varchar(50)")
  5733. .HasCharSet("utf8")
  5734. .HasCollation("utf8_general_ci");
  5735. entity.Property(e => e.CustomRelation)
  5736. .HasColumnType("varchar(10)")
  5737. .HasCharSet("utf8")
  5738. .HasCollation("utf8_general_ci");
  5739. entity.Property(e => e.Description)
  5740. .HasColumnType("varchar(50)")
  5741. .HasCharSet("utf8")
  5742. .HasCollation("utf8_general_ci");
  5743. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5744. entity.Property(e => e.Name)
  5745. .HasColumnType("varchar(32)")
  5746. .HasCharSet("utf8")
  5747. .HasCollation("utf8_general_ci");
  5748. entity.Property(e => e.OrderId)
  5749. .HasColumnType("varchar(32)")
  5750. .HasCharSet("utf8")
  5751. .HasCollation("utf8_general_ci");
  5752. entity.Property(e => e.OutOrderNo)
  5753. .HasColumnType("varchar(32)")
  5754. .HasCharSet("utf8")
  5755. .HasCollation("utf8_general_ci");
  5756. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5757. entity.Property(e => e.RelationType)
  5758. .HasColumnType("varchar(30)")
  5759. .HasCharSet("utf8")
  5760. .HasCollation("utf8_general_ci");
  5761. entity.Property(e => e.SeoDescription)
  5762. .HasColumnType("varchar(500)")
  5763. .HasCharSet("utf8")
  5764. .HasCollation("utf8_general_ci");
  5765. entity.Property(e => e.SeoKeyword)
  5766. .HasColumnType("varchar(200)")
  5767. .HasCharSet("utf8")
  5768. .HasCollation("utf8_general_ci");
  5769. entity.Property(e => e.SeoTitle)
  5770. .HasColumnType("varchar(100)")
  5771. .HasCharSet("utf8")
  5772. .HasCollation("utf8_general_ci");
  5773. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5774. entity.Property(e => e.State)
  5775. .HasColumnType("varchar(20)")
  5776. .HasCharSet("utf8")
  5777. .HasCollation("utf8_general_ci");
  5778. entity.Property(e => e.Status).HasColumnType("int(11)");
  5779. entity.Property(e => e.SubAppId)
  5780. .HasColumnType("varchar(32)")
  5781. .HasCharSet("utf8")
  5782. .HasCollation("utf8_general_ci");
  5783. entity.Property(e => e.SubMchid)
  5784. .HasColumnType("varchar(32)")
  5785. .HasCharSet("utf8")
  5786. .HasCollation("utf8_general_ci");
  5787. entity.Property(e => e.TransactionId)
  5788. .HasColumnType("varchar(32)")
  5789. .HasCharSet("utf8")
  5790. .HasCollation("utf8_general_ci");
  5791. entity.Property(e => e.Type)
  5792. .HasColumnType("varchar(30)")
  5793. .HasCharSet("utf8")
  5794. .HasCollation("utf8_general_ci");
  5795. entity.Property(e => e.UnfreezeUnsplit)
  5796. .HasColumnType("bit(1)")
  5797. .HasDefaultValueSql("b'0'");
  5798. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5799. entity.Property(e => e.UpdateMan)
  5800. .HasColumnType("varchar(50)")
  5801. .HasCharSet("utf8")
  5802. .HasCollation("utf8_general_ci");
  5803. entity.Property(e => e.Version).HasColumnType("int(11)");
  5804. });
  5805. modelBuilder.Entity<ProfitReceives>(entity =>
  5806. {
  5807. entity.Property(e => e.Id).HasColumnType("int(11)");
  5808. entity.Property(e => e.Account)
  5809. .HasColumnType("varchar(32)")
  5810. .HasCharSet("utf8")
  5811. .HasCollation("utf8_general_ci");
  5812. entity.Property(e => e.AppId)
  5813. .HasColumnType("varchar(32)")
  5814. .HasCharSet("utf8")
  5815. .HasCollation("utf8_general_ci");
  5816. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5817. entity.Property(e => e.CreateMan)
  5818. .HasColumnType("varchar(50)")
  5819. .HasCharSet("utf8")
  5820. .HasCollation("utf8_general_ci");
  5821. entity.Property(e => e.CustomRelation)
  5822. .HasColumnType("varchar(10)")
  5823. .HasCharSet("utf8")
  5824. .HasCollation("utf8_general_ci");
  5825. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5826. entity.Property(e => e.Name)
  5827. .HasColumnType("varchar(32)")
  5828. .HasCharSet("utf8")
  5829. .HasCollation("utf8_general_ci");
  5830. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5831. entity.Property(e => e.RelationType)
  5832. .HasColumnType("varchar(30)")
  5833. .HasCharSet("utf8")
  5834. .HasCollation("utf8_general_ci");
  5835. entity.Property(e => e.SeoDescription)
  5836. .HasColumnType("varchar(500)")
  5837. .HasCharSet("utf8")
  5838. .HasCollation("utf8_general_ci");
  5839. entity.Property(e => e.SeoKeyword)
  5840. .HasColumnType("varchar(200)")
  5841. .HasCharSet("utf8")
  5842. .HasCollation("utf8_general_ci");
  5843. entity.Property(e => e.SeoTitle)
  5844. .HasColumnType("varchar(100)")
  5845. .HasCharSet("utf8")
  5846. .HasCollation("utf8_general_ci");
  5847. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5848. entity.Property(e => e.Status).HasColumnType("int(11)");
  5849. entity.Property(e => e.SubAppId)
  5850. .HasColumnType("varchar(32)")
  5851. .HasCharSet("utf8")
  5852. .HasCollation("utf8_general_ci");
  5853. entity.Property(e => e.SubMchid)
  5854. .HasColumnType("varchar(32)")
  5855. .HasCharSet("utf8")
  5856. .HasCollation("utf8_general_ci");
  5857. entity.Property(e => e.Type)
  5858. .HasColumnType("varchar(30)")
  5859. .HasCharSet("utf8")
  5860. .HasCollation("utf8_general_ci");
  5861. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5862. entity.Property(e => e.UpdateMan)
  5863. .HasColumnType("varchar(50)")
  5864. .HasCharSet("utf8")
  5865. .HasCollation("utf8_general_ci");
  5866. entity.Property(e => e.Version).HasColumnType("int(11)");
  5867. });
  5868. modelBuilder.Entity<ProfitRecord>(entity =>
  5869. {
  5870. entity.Property(e => e.Id).HasColumnType("int(11)");
  5871. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5872. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  5873. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  5874. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5875. entity.Property(e => e.CreateMan)
  5876. .HasColumnType("varchar(50)")
  5877. .HasCharSet("utf8")
  5878. .HasCollation("utf8_general_ci");
  5879. entity.Property(e => e.DirectFlag)
  5880. .HasColumnType("bit(1)")
  5881. .HasDefaultValueSql("b'0'");
  5882. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  5883. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  5884. entity.Property(e => e.MerHelpFlag)
  5885. .HasColumnType("bit(1)")
  5886. .HasDefaultValueSql("b'0'");
  5887. entity.Property(e => e.MerNo)
  5888. .HasColumnType("varchar(32)")
  5889. .HasCharSet("utf8")
  5890. .HasCollation("utf8_general_ci");
  5891. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5892. entity.Property(e => e.ParentNav)
  5893. .HasColumnType("varchar(1000)")
  5894. .HasCharSet("utf8")
  5895. .HasCollation("utf8_general_ci");
  5896. entity.Property(e => e.ProfitAmount).HasColumnType("decimal(18,2)");
  5897. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  5898. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5899. entity.Property(e => e.Remark)
  5900. .HasColumnType("varchar(64)")
  5901. .HasCharSet("utf8")
  5902. .HasCollation("utf8_general_ci");
  5903. entity.Property(e => e.SeoDescription)
  5904. .HasColumnType("varchar(500)")
  5905. .HasCharSet("utf8")
  5906. .HasCollation("utf8_general_ci");
  5907. entity.Property(e => e.SeoKeyword)
  5908. .HasColumnType("varchar(200)")
  5909. .HasCharSet("utf8")
  5910. .HasCollation("utf8_general_ci");
  5911. entity.Property(e => e.SeoTitle)
  5912. .HasColumnType("varchar(100)")
  5913. .HasCharSet("utf8")
  5914. .HasCollation("utf8_general_ci");
  5915. entity.Property(e => e.SnNo)
  5916. .HasColumnType("varchar(32)")
  5917. .HasCharSet("utf8")
  5918. .HasCollation("utf8_general_ci");
  5919. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5920. entity.Property(e => e.Status).HasColumnType("int(11)");
  5921. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  5922. entity.Property(e => e.TradeId).HasColumnType("int(11)");
  5923. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5924. entity.Property(e => e.UpdateMan)
  5925. .HasColumnType("varchar(50)")
  5926. .HasCharSet("utf8")
  5927. .HasCollation("utf8_general_ci");
  5928. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5929. entity.Property(e => e.Version).HasColumnType("int(11)");
  5930. });
  5931. modelBuilder.Entity<ProfitRewardRecord>(entity =>
  5932. {
  5933. entity.Property(e => e.Id).HasColumnType("int(11)");
  5934. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5935. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  5936. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5937. entity.Property(e => e.CreateMan)
  5938. .HasColumnType("varchar(50)")
  5939. .HasCharSet("utf8")
  5940. .HasCollation("utf8_general_ci");
  5941. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5942. entity.Property(e => e.CreditTradeProfit).HasColumnType("decimal(18,2)");
  5943. entity.Property(e => e.DebitCapSingleReward).HasColumnType("decimal(18,2)");
  5944. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  5945. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  5946. entity.Property(e => e.DebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5947. entity.Property(e => e.DebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5948. entity.Property(e => e.DebitTradeCapProfit).HasColumnType("decimal(18,2)");
  5949. entity.Property(e => e.HelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5950. entity.Property(e => e.HelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5951. entity.Property(e => e.HelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5952. entity.Property(e => e.HelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5953. entity.Property(e => e.HelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5954. entity.Property(e => e.HelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5955. entity.Property(e => e.HelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5956. entity.Property(e => e.HelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5957. entity.Property(e => e.HelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5958. entity.Property(e => e.HelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5959. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5960. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5961. entity.Property(e => e.NonQrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5962. entity.Property(e => e.NonQrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5963. entity.Property(e => e.NonQrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5964. entity.Property(e => e.NotHelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5965. entity.Property(e => e.NotHelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5966. entity.Property(e => e.NotHelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5967. entity.Property(e => e.NotHelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5968. entity.Property(e => e.NotHelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5969. entity.Property(e => e.NotHelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5970. entity.Property(e => e.NotHelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5971. entity.Property(e => e.NotHelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5972. entity.Property(e => e.NotHelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5973. entity.Property(e => e.NotHelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5974. entity.Property(e => e.OtherCreditTradeAmt).HasColumnType("decimal(18,2)");
  5975. entity.Property(e => e.OtherDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5976. entity.Property(e => e.OtherTradeAmt).HasColumnType("decimal(18,2)");
  5977. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  5978. entity.Property(e => e.QrCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5979. entity.Property(e => e.QrCreditProfitRate).HasColumnType("decimal(18,2)");
  5980. entity.Property(e => e.QrCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5981. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5982. entity.Property(e => e.QrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5983. entity.Property(e => e.QrDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5984. entity.Property(e => e.QrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5985. entity.Property(e => e.QrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5986. entity.Property(e => e.QrDebitProfitRate).HasColumnType("decimal(18,2)");
  5987. entity.Property(e => e.QrDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5988. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5989. entity.Property(e => e.RecordNo)
  5990. .HasColumnType("varchar(32)")
  5991. .HasCharSet("utf8")
  5992. .HasCollation("utf8_general_ci");
  5993. entity.Property(e => e.Remark)
  5994. .HasColumnType("varchar(64)")
  5995. .HasCharSet("utf8")
  5996. .HasCollation("utf8_general_ci");
  5997. entity.Property(e => e.SeoDescription)
  5998. .HasColumnType("varchar(500)")
  5999. .HasCharSet("utf8")
  6000. .HasCollation("utf8_general_ci");
  6001. entity.Property(e => e.SeoKeyword)
  6002. .HasColumnType("varchar(200)")
  6003. .HasCharSet("utf8")
  6004. .HasCollation("utf8_general_ci");
  6005. entity.Property(e => e.SeoTitle)
  6006. .HasColumnType("varchar(100)")
  6007. .HasCharSet("utf8")
  6008. .HasCollation("utf8_general_ci");
  6009. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6010. entity.Property(e => e.Status).HasColumnType("int(11)");
  6011. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  6012. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  6013. entity.Property(e => e.TradeMonth)
  6014. .HasColumnType("varchar(6)")
  6015. .HasCharSet("utf8")
  6016. .HasCollation("utf8_general_ci");
  6017. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  6018. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6019. entity.Property(e => e.UpdateMan)
  6020. .HasColumnType("varchar(50)")
  6021. .HasCharSet("utf8")
  6022. .HasCollation("utf8_general_ci");
  6023. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6024. entity.Property(e => e.Version).HasColumnType("int(11)");
  6025. });
  6026. modelBuilder.Entity<ProfitSubsidyDetail>(entity =>
  6027. {
  6028. entity.Property(e => e.Id).HasColumnType("int(11)");
  6029. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  6030. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6031. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6032. entity.Property(e => e.CreateMan)
  6033. .HasColumnType("varchar(50)")
  6034. .HasCharSet("utf8")
  6035. .HasCollation("utf8_general_ci");
  6036. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  6037. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6038. entity.Property(e => e.MerHelpFlag)
  6039. .HasColumnType("bit(1)")
  6040. .HasDefaultValueSql("b'0'");
  6041. entity.Property(e => e.MerNo)
  6042. .HasColumnType("varchar(32)")
  6043. .HasCharSet("utf8")
  6044. .HasCollation("utf8_general_ci");
  6045. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  6046. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  6047. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6048. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6049. entity.Property(e => e.ProductName)
  6050. .HasColumnType("varchar(16)")
  6051. .HasCharSet("utf8")
  6052. .HasCollation("utf8_general_ci");
  6053. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6054. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6055. entity.Property(e => e.RecordNo)
  6056. .HasColumnType("varchar(32)")
  6057. .HasCharSet("utf8")
  6058. .HasCollation("utf8_general_ci");
  6059. entity.Property(e => e.Remark)
  6060. .HasColumnType("varchar(64)")
  6061. .HasCharSet("utf8")
  6062. .HasCollation("utf8_general_ci");
  6063. entity.Property(e => e.SeoDescription)
  6064. .HasColumnType("varchar(500)")
  6065. .HasCharSet("utf8")
  6066. .HasCollation("utf8_general_ci");
  6067. entity.Property(e => e.SeoKeyword)
  6068. .HasColumnType("varchar(200)")
  6069. .HasCharSet("utf8")
  6070. .HasCollation("utf8_general_ci");
  6071. entity.Property(e => e.SeoTitle)
  6072. .HasColumnType("varchar(100)")
  6073. .HasCharSet("utf8")
  6074. .HasCollation("utf8_general_ci");
  6075. entity.Property(e => e.SnNo)
  6076. .HasColumnType("varchar(32)")
  6077. .HasCharSet("utf8")
  6078. .HasCollation("utf8_general_ci");
  6079. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6080. entity.Property(e => e.Status).HasColumnType("int(11)");
  6081. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  6082. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  6083. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  6084. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  6085. entity.Property(e => e.TradeMonth)
  6086. .HasColumnType("varchar(6)")
  6087. .HasCharSet("utf8")
  6088. .HasCollation("utf8_general_ci");
  6089. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6090. entity.Property(e => e.UpdateMan)
  6091. .HasColumnType("varchar(50)")
  6092. .HasCharSet("utf8")
  6093. .HasCollation("utf8_general_ci");
  6094. entity.Property(e => e.Version).HasColumnType("int(11)");
  6095. });
  6096. modelBuilder.Entity<PublicAccountSet>(entity =>
  6097. {
  6098. entity.Property(e => e.Id).HasColumnType("int(11)");
  6099. entity.Property(e => e.AlipayAppId)
  6100. .HasColumnType("varchar(50)")
  6101. .HasCharSet("utf8")
  6102. .HasCollation("utf8_general_ci");
  6103. entity.Property(e => e.AlipayPartnerId)
  6104. .HasColumnType("varchar(50)")
  6105. .HasCharSet("utf8")
  6106. .HasCollation("utf8_general_ci");
  6107. entity.Property(e => e.AlipayPrivateKey)
  6108. .HasColumnType("mediumtext")
  6109. .HasCharSet("utf8")
  6110. .HasCollation("utf8_general_ci");
  6111. entity.Property(e => e.AlipayPublicKey)
  6112. .HasColumnType("mediumtext")
  6113. .HasCharSet("utf8")
  6114. .HasCollation("utf8_general_ci");
  6115. entity.Property(e => e.AliyunAccessKeyId)
  6116. .HasColumnType("varchar(50)")
  6117. .HasCharSet("utf8")
  6118. .HasCollation("utf8_general_ci");
  6119. entity.Property(e => e.AliyunAccessKeySecret)
  6120. .HasColumnType("varchar(50)")
  6121. .HasCharSet("utf8")
  6122. .HasCollation("utf8_general_ci");
  6123. entity.Property(e => e.AliyunAndroidActivity)
  6124. .HasColumnType("varchar(100)")
  6125. .HasCharSet("utf8")
  6126. .HasCollation("utf8_general_ci");
  6127. entity.Property(e => e.AliyunAndroidNotifyTitle)
  6128. .HasColumnType("varchar(20)")
  6129. .HasCharSet("utf8")
  6130. .HasCollation("utf8_general_ci");
  6131. entity.Property(e => e.AliyunPushAndroidAppId)
  6132. .HasColumnType("varchar(50)")
  6133. .HasCharSet("utf8")
  6134. .HasCollation("utf8_general_ci");
  6135. entity.Property(e => e.AliyunPushAndroidAppSecret)
  6136. .HasColumnType("varchar(50)")
  6137. .HasCharSet("utf8")
  6138. .HasCollation("utf8_general_ci");
  6139. entity.Property(e => e.AliyunPushIosAppId)
  6140. .HasColumnType("varchar(500)")
  6141. .HasCharSet("utf8")
  6142. .HasCollation("utf8_general_ci");
  6143. entity.Property(e => e.AliyunPushIosAppSecret)
  6144. .HasColumnType("varchar(50)")
  6145. .HasCharSet("utf8")
  6146. .HasCollation("utf8_general_ci");
  6147. entity.Property(e => e.AliyunRegionId)
  6148. .HasColumnType("varchar(30)")
  6149. .HasCharSet("utf8")
  6150. .HasCollation("utf8_general_ci");
  6151. entity.Property(e => e.ErpApiUrl)
  6152. .HasColumnType("varchar(200)")
  6153. .HasCharSet("utf8")
  6154. .HasCollation("utf8_general_ci");
  6155. entity.Property(e => e.ErpAppCode)
  6156. .HasColumnType("varchar(100)")
  6157. .HasCharSet("utf8")
  6158. .HasCollation("utf8_general_ci");
  6159. entity.Property(e => e.MeiQiaAppKey)
  6160. .HasColumnType("varchar(50)")
  6161. .HasCharSet("utf8")
  6162. .HasCollation("utf8_general_ci");
  6163. entity.Property(e => e.MobAppKey)
  6164. .HasColumnType("varchar(50)")
  6165. .HasCharSet("utf8")
  6166. .HasCollation("utf8_general_ci");
  6167. entity.Property(e => e.MobAppSecret)
  6168. .HasColumnType("varchar(50)")
  6169. .HasCharSet("utf8")
  6170. .HasCollation("utf8_general_ci");
  6171. entity.Property(e => e.QqAndroidAppId)
  6172. .HasColumnType("varchar(50)")
  6173. .HasCharSet("utf8")
  6174. .HasCollation("utf8_general_ci");
  6175. entity.Property(e => e.QqAndroidAppKey)
  6176. .HasColumnType("varchar(50)")
  6177. .HasCharSet("utf8")
  6178. .HasCollation("utf8_general_ci");
  6179. entity.Property(e => e.QqIosAppId)
  6180. .HasColumnType("varchar(50)")
  6181. .HasCharSet("utf8")
  6182. .HasCollation("utf8_general_ci");
  6183. entity.Property(e => e.QqIosAppKey)
  6184. .HasColumnType("varchar(50)")
  6185. .HasCharSet("utf8")
  6186. .HasCollation("utf8_general_ci");
  6187. entity.Property(e => e.ServerIp)
  6188. .HasColumnType("varchar(15)")
  6189. .HasCharSet("utf8")
  6190. .HasCollation("utf8_general_ci");
  6191. entity.Property(e => e.SmsApiDefaultTemplate)
  6192. .HasColumnType("varchar(200)")
  6193. .HasCharSet("utf8")
  6194. .HasCollation("utf8_general_ci");
  6195. entity.Property(e => e.SmsApiPwd)
  6196. .HasColumnType("varchar(50)")
  6197. .HasCharSet("utf8")
  6198. .HasCollation("utf8_general_ci");
  6199. entity.Property(e => e.SmsApiSign)
  6200. .HasColumnType("varchar(10)")
  6201. .HasCharSet("utf8")
  6202. .HasCollation("utf8_general_ci");
  6203. entity.Property(e => e.SmsApiUserId)
  6204. .HasColumnType("varchar(50)")
  6205. .HasCharSet("utf8")
  6206. .HasCollation("utf8_general_ci");
  6207. entity.Property(e => e.WeChatAppId)
  6208. .HasColumnType("varchar(50)")
  6209. .HasCharSet("utf8")
  6210. .HasCollation("utf8_general_ci");
  6211. entity.Property(e => e.WeChatAppSecret)
  6212. .HasColumnType("varchar(50)")
  6213. .HasCharSet("utf8")
  6214. .HasCollation("utf8_general_ci");
  6215. entity.Property(e => e.WeChatMchId)
  6216. .HasColumnType("varchar(20)")
  6217. .HasCharSet("utf8")
  6218. .HasCollation("utf8_general_ci");
  6219. entity.Property(e => e.WeChatMiniAppId)
  6220. .HasColumnType("varchar(50)")
  6221. .HasCharSet("utf8")
  6222. .HasCollation("utf8_general_ci");
  6223. entity.Property(e => e.WeChatMiniAppSecret)
  6224. .HasColumnType("varchar(50)")
  6225. .HasCharSet("utf8")
  6226. .HasCollation("utf8_general_ci");
  6227. entity.Property(e => e.WeChatOpenAppId)
  6228. .HasColumnType("varchar(50)")
  6229. .HasCharSet("utf8")
  6230. .HasCollation("utf8_general_ci");
  6231. entity.Property(e => e.WeChatOpenAppSecret)
  6232. .HasColumnType("varchar(50)")
  6233. .HasCharSet("utf8")
  6234. .HasCollation("utf8_general_ci");
  6235. entity.Property(e => e.WeChatPayKey)
  6236. .HasColumnType("varchar(50)")
  6237. .HasCharSet("utf8")
  6238. .HasCollation("utf8_general_ci");
  6239. });
  6240. modelBuilder.Entity<PullNewAct>(entity =>
  6241. {
  6242. entity.Property(e => e.Id).HasColumnType("int(11)");
  6243. entity.Property(e => e.ActEffectEndDate).HasColumnType("datetime");
  6244. entity.Property(e => e.ActEffectStartDate).HasColumnType("datetime");
  6245. entity.Property(e => e.ActStdCond)
  6246. .HasColumnType("varchar(32)")
  6247. .HasCharSet("utf8")
  6248. .HasCollation("utf8_general_ci");
  6249. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6250. entity.Property(e => e.CreateMan)
  6251. .HasColumnType("varchar(50)")
  6252. .HasCharSet("utf8")
  6253. .HasCollation("utf8_general_ci");
  6254. entity.Property(e => e.ProductName)
  6255. .HasColumnType("varchar(32)")
  6256. .HasCharSet("utf8")
  6257. .HasCollation("utf8_general_ci");
  6258. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6259. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6260. entity.Property(e => e.Remark)
  6261. .HasColumnType("varchar(128)")
  6262. .HasCharSet("utf8")
  6263. .HasCollation("utf8_general_ci");
  6264. entity.Property(e => e.SeoDescription)
  6265. .HasColumnType("varchar(500)")
  6266. .HasCharSet("utf8")
  6267. .HasCollation("utf8_general_ci");
  6268. entity.Property(e => e.SeoKeyword)
  6269. .HasColumnType("varchar(200)")
  6270. .HasCharSet("utf8")
  6271. .HasCollation("utf8_general_ci");
  6272. entity.Property(e => e.SeoTitle)
  6273. .HasColumnType("varchar(100)")
  6274. .HasCharSet("utf8")
  6275. .HasCollation("utf8_general_ci");
  6276. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  6277. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6278. entity.Property(e => e.Status).HasColumnType("int(11)");
  6279. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6280. entity.Property(e => e.UpdateMan)
  6281. .HasColumnType("varchar(50)")
  6282. .HasCharSet("utf8")
  6283. .HasCollation("utf8_general_ci");
  6284. entity.Property(e => e.Version).HasColumnType("int(11)");
  6285. });
  6286. modelBuilder.Entity<PullNewDetail>(entity =>
  6287. {
  6288. entity.Property(e => e.Id).HasColumnType("int(11)");
  6289. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6290. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6291. entity.Property(e => e.CreateMan)
  6292. .HasColumnType("varchar(50)")
  6293. .HasCharSet("utf8")
  6294. .HasCollation("utf8_general_ci");
  6295. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6296. entity.Property(e => e.RecMallBrandId).HasColumnType("int(11)");
  6297. entity.Property(e => e.RecMallOrder)
  6298. .HasColumnType("varchar(32)")
  6299. .HasCharSet("utf8")
  6300. .HasCollation("utf8_general_ci");
  6301. entity.Property(e => e.RecMallOrderTime).HasColumnType("datetime");
  6302. entity.Property(e => e.RecMallProductName)
  6303. .HasColumnType("varchar(32)")
  6304. .HasCharSet("utf8")
  6305. .HasCollation("utf8_general_ci");
  6306. entity.Property(e => e.RecMallProductNum).HasColumnType("int(11)");
  6307. entity.Property(e => e.RecMallSendTime).HasColumnType("datetime");
  6308. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  6309. entity.Property(e => e.RecUserType).HasColumnType("int(11)");
  6310. entity.Property(e => e.RegDate).HasColumnType("datetime");
  6311. entity.Property(e => e.Remark)
  6312. .HasColumnType("varchar(64)")
  6313. .HasCharSet("utf8")
  6314. .HasCollation("utf8_general_ci");
  6315. entity.Property(e => e.RewardStatus).HasColumnType("int(11)");
  6316. entity.Property(e => e.SeoDescription)
  6317. .HasColumnType("varchar(500)")
  6318. .HasCharSet("utf8")
  6319. .HasCollation("utf8_general_ci");
  6320. entity.Property(e => e.SeoKeyword)
  6321. .HasColumnType("varchar(200)")
  6322. .HasCharSet("utf8")
  6323. .HasCollation("utf8_general_ci");
  6324. entity.Property(e => e.SeoTitle)
  6325. .HasColumnType("varchar(100)")
  6326. .HasCharSet("utf8")
  6327. .HasCollation("utf8_general_ci");
  6328. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6329. entity.Property(e => e.StatDate)
  6330. .HasColumnType("varchar(8)")
  6331. .HasCharSet("utf8")
  6332. .HasCollation("utf8_general_ci");
  6333. entity.Property(e => e.StatMonth)
  6334. .HasColumnType("varchar(6)")
  6335. .HasCharSet("utf8")
  6336. .HasCollation("utf8_general_ci");
  6337. entity.Property(e => e.StatType).HasColumnType("int(11)");
  6338. entity.Property(e => e.Status).HasColumnType("int(11)");
  6339. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6340. entity.Property(e => e.UpdateMan)
  6341. .HasColumnType("varchar(50)")
  6342. .HasCharSet("utf8")
  6343. .HasCollation("utf8_general_ci");
  6344. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6345. entity.Property(e => e.Version).HasColumnType("int(11)");
  6346. });
  6347. modelBuilder.Entity<PullnewSummary>(entity =>
  6348. {
  6349. entity.Property(e => e.Id).HasColumnType("int(11)");
  6350. entity.Property(e => e.BizSnDelayDay).HasColumnType("int(11)");
  6351. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6352. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6353. entity.Property(e => e.CreateMan)
  6354. .HasColumnType("varchar(50)")
  6355. .HasCharSet("utf8")
  6356. .HasCollation("utf8_general_ci");
  6357. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6358. entity.Property(e => e.RecUserAuthNum).HasColumnType("int(11)");
  6359. entity.Property(e => e.RecUserDeliveryStdNum).HasColumnType("int(11)");
  6360. entity.Property(e => e.Remark)
  6361. .HasColumnType("varchar(64)")
  6362. .HasCharSet("utf8")
  6363. .HasCollation("utf8_general_ci");
  6364. entity.Property(e => e.RuleSnDelayDay).HasColumnType("int(11)");
  6365. entity.Property(e => e.SeoDescription)
  6366. .HasColumnType("varchar(500)")
  6367. .HasCharSet("utf8")
  6368. .HasCollation("utf8_general_ci");
  6369. entity.Property(e => e.SeoKeyword)
  6370. .HasColumnType("varchar(200)")
  6371. .HasCharSet("utf8")
  6372. .HasCollation("utf8_general_ci");
  6373. entity.Property(e => e.SeoTitle)
  6374. .HasColumnType("varchar(100)")
  6375. .HasCharSet("utf8")
  6376. .HasCollation("utf8_general_ci");
  6377. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6378. entity.Property(e => e.StatDate)
  6379. .HasColumnType("varchar(8)")
  6380. .HasCharSet("utf8")
  6381. .HasCollation("utf8_general_ci");
  6382. entity.Property(e => e.StatMonth)
  6383. .HasColumnType("varchar(6)")
  6384. .HasCharSet("utf8")
  6385. .HasCollation("utf8_general_ci");
  6386. entity.Property(e => e.Status).HasColumnType("int(11)");
  6387. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6388. entity.Property(e => e.UpdateMan)
  6389. .HasColumnType("varchar(50)")
  6390. .HasCharSet("utf8")
  6391. .HasCollation("utf8_general_ci");
  6392. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6393. entity.Property(e => e.Version).HasColumnType("int(11)");
  6394. });
  6395. modelBuilder.Entity<RightDic>(entity =>
  6396. {
  6397. entity.Property(e => e.Id)
  6398. .HasColumnName("ID")
  6399. .HasColumnType("varchar(50)")
  6400. .HasCharSet("utf8")
  6401. .HasCollation("utf8_general_ci");
  6402. entity.Property(e => e.Icon)
  6403. .HasColumnType("varchar(50)")
  6404. .HasCharSet("utf8")
  6405. .HasCollation("utf8_general_ci");
  6406. entity.Property(e => e.MainDataList)
  6407. .HasColumnType("bit(1)")
  6408. .HasDefaultValueSql("b'0'");
  6409. entity.Property(e => e.MainMenu)
  6410. .HasColumnType("bit(1)")
  6411. .HasDefaultValueSql("b'0'");
  6412. entity.Property(e => e.MainStat)
  6413. .HasColumnType("bit(1)")
  6414. .HasDefaultValueSql("b'0'");
  6415. entity.Property(e => e.Name)
  6416. .HasColumnType("varchar(50)")
  6417. .HasCharSet("utf8")
  6418. .HasCollation("utf8_general_ci");
  6419. entity.Property(e => e.OtherRight)
  6420. .HasColumnType("varchar(500)")
  6421. .HasCharSet("utf8")
  6422. .HasCollation("utf8_general_ci");
  6423. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  6424. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6425. entity.Property(e => e.Url)
  6426. .HasColumnType("varchar(200)")
  6427. .HasCharSet("utf8")
  6428. .HasCollation("utf8_general_ci");
  6429. });
  6430. modelBuilder.Entity<ServiceCenter>(entity =>
  6431. {
  6432. entity.Property(e => e.Id).HasColumnType("int(11)");
  6433. entity.Property(e => e.CategoryId).HasColumnType("int(11)");
  6434. entity.Property(e => e.Content)
  6435. .HasColumnType("longtext")
  6436. .HasCharSet("utf8")
  6437. .HasCollation("utf8_general_ci");
  6438. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6439. entity.Property(e => e.CreateMan)
  6440. .HasColumnType("varchar(50)")
  6441. .HasCharSet("utf8")
  6442. .HasCollation("utf8_general_ci");
  6443. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6444. entity.Property(e => e.SeoDescription)
  6445. .HasColumnType("varchar(500)")
  6446. .HasCharSet("utf8")
  6447. .HasCollation("utf8_general_ci");
  6448. entity.Property(e => e.SeoKeyword)
  6449. .HasColumnType("varchar(200)")
  6450. .HasCharSet("utf8")
  6451. .HasCollation("utf8_general_ci");
  6452. entity.Property(e => e.SeoTitle)
  6453. .HasColumnType("varchar(100)")
  6454. .HasCharSet("utf8")
  6455. .HasCollation("utf8_general_ci");
  6456. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6457. entity.Property(e => e.Status).HasColumnType("int(11)");
  6458. entity.Property(e => e.SubTitle)
  6459. .HasColumnType("varchar(50)")
  6460. .HasCharSet("utf8")
  6461. .HasCollation("utf8_general_ci");
  6462. entity.Property(e => e.Title)
  6463. .HasColumnType("varchar(50)")
  6464. .HasCharSet("utf8")
  6465. .HasCollation("utf8_general_ci");
  6466. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6467. entity.Property(e => e.UpdateMan)
  6468. .HasColumnType("varchar(50)")
  6469. .HasCharSet("utf8")
  6470. .HasCollation("utf8_general_ci");
  6471. entity.Property(e => e.Version).HasColumnType("int(11)");
  6472. });
  6473. modelBuilder.Entity<StoreBalance>(entity =>
  6474. {
  6475. entity.Property(e => e.Id).HasColumnType("int(11)");
  6476. entity.Property(e => e.AfterLaveNum).HasColumnType("int(11)");
  6477. entity.Property(e => e.AfterOutNum).HasColumnType("int(11)");
  6478. entity.Property(e => e.AfterTotalNum).HasColumnType("int(11)");
  6479. entity.Property(e => e.BeforeLaveNum).HasColumnType("int(11)");
  6480. entity.Property(e => e.BeforeOutNum).HasColumnType("int(11)");
  6481. entity.Property(e => e.BeforeTotalNum).HasColumnType("int(11)");
  6482. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6483. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6484. entity.Property(e => e.CreateMan)
  6485. .HasColumnType("varchar(50)")
  6486. .HasCharSet("utf8")
  6487. .HasCollation("utf8_general_ci");
  6488. entity.Property(e => e.OpStoreNum).HasColumnType("int(11)");
  6489. entity.Property(e => e.OpSymbol)
  6490. .HasColumnType("varchar(1)")
  6491. .HasCharSet("utf8")
  6492. .HasCollation("utf8_general_ci");
  6493. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6494. entity.Property(e => e.SeoDescription)
  6495. .HasColumnType("varchar(500)")
  6496. .HasCharSet("utf8")
  6497. .HasCollation("utf8_general_ci");
  6498. entity.Property(e => e.SeoKeyword)
  6499. .HasColumnType("varchar(200)")
  6500. .HasCharSet("utf8")
  6501. .HasCollation("utf8_general_ci");
  6502. entity.Property(e => e.SeoTitle)
  6503. .HasColumnType("varchar(100)")
  6504. .HasCharSet("utf8")
  6505. .HasCollation("utf8_general_ci");
  6506. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6507. entity.Property(e => e.Status).HasColumnType("int(11)");
  6508. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6509. entity.Property(e => e.TransRecordNo)
  6510. .HasColumnType("varchar(32)")
  6511. .HasCharSet("utf8")
  6512. .HasCollation("utf8_general_ci");
  6513. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6514. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6515. entity.Property(e => e.UpdateMan)
  6516. .HasColumnType("varchar(50)")
  6517. .HasCharSet("utf8")
  6518. .HasCollation("utf8_general_ci");
  6519. entity.Property(e => e.Version).HasColumnType("int(11)");
  6520. });
  6521. modelBuilder.Entity<StoreChangeHistory>(entity =>
  6522. {
  6523. entity.Property(e => e.Id).HasColumnType("int(11)");
  6524. entity.Property(e => e.BizBatchNo)
  6525. .HasColumnType("varchar(32)")
  6526. .HasCharSet("utf8")
  6527. .HasCollation("utf8_general_ci");
  6528. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6529. entity.Property(e => e.ChangeRecordNo)
  6530. .HasColumnType("varchar(32)")
  6531. .HasCharSet("utf8")
  6532. .HasCollation("utf8_general_ci");
  6533. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6534. entity.Property(e => e.CreateMan)
  6535. .HasColumnType("varchar(50)")
  6536. .HasCharSet("utf8")
  6537. .HasCollation("utf8_general_ci");
  6538. entity.Property(e => e.DeviceModel)
  6539. .HasColumnType("varchar(32)")
  6540. .HasCharSet("utf8")
  6541. .HasCollation("utf8_general_ci");
  6542. entity.Property(e => e.DeviceType)
  6543. .HasColumnType("varchar(32)")
  6544. .HasCharSet("utf8")
  6545. .HasCollation("utf8_general_ci");
  6546. entity.Property(e => e.DeviceVendor)
  6547. .HasColumnType("varchar(32)")
  6548. .HasCharSet("utf8")
  6549. .HasCollation("utf8_general_ci");
  6550. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6551. entity.Property(e => e.FromRemark)
  6552. .HasColumnType("varchar(64)")
  6553. .HasCharSet("utf8")
  6554. .HasCollation("utf8_general_ci");
  6555. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6556. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6557. entity.Property(e => e.SeoDescription)
  6558. .HasColumnType("varchar(500)")
  6559. .HasCharSet("utf8")
  6560. .HasCollation("utf8_general_ci");
  6561. entity.Property(e => e.SeoKeyword)
  6562. .HasColumnType("varchar(200)")
  6563. .HasCharSet("utf8")
  6564. .HasCollation("utf8_general_ci");
  6565. entity.Property(e => e.SeoTitle)
  6566. .HasColumnType("varchar(100)")
  6567. .HasCharSet("utf8")
  6568. .HasCollation("utf8_general_ci");
  6569. entity.Property(e => e.SnNo)
  6570. .HasColumnType("varchar(32)")
  6571. .HasCharSet("utf8")
  6572. .HasCollation("utf8_general_ci");
  6573. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6574. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6575. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6576. entity.Property(e => e.Status).HasColumnType("int(11)");
  6577. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6578. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6579. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6580. entity.Property(e => e.ToRemark)
  6581. .HasColumnType("varchar(64)")
  6582. .HasCharSet("utf8")
  6583. .HasCollation("utf8_general_ci");
  6584. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6585. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6586. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6587. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6588. entity.Property(e => e.UpdateMan)
  6589. .HasColumnType("varchar(50)")
  6590. .HasCharSet("utf8")
  6591. .HasCollation("utf8_general_ci");
  6592. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6593. entity.Property(e => e.Version).HasColumnType("int(11)");
  6594. });
  6595. modelBuilder.Entity<StoreForCode>(entity =>
  6596. {
  6597. entity.HasKey(e => e.Code)
  6598. .HasName("PRIMARY");
  6599. entity.Property(e => e.Code)
  6600. .HasColumnType("varchar(30)")
  6601. .HasCharSet("utf8")
  6602. .HasCollation("utf8_general_ci");
  6603. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6604. });
  6605. modelBuilder.Entity<StoreForName>(entity =>
  6606. {
  6607. entity.HasKey(e => e.Name)
  6608. .HasName("PRIMARY");
  6609. entity.Property(e => e.Name)
  6610. .HasColumnType("varchar(30)")
  6611. .HasCharSet("utf8")
  6612. .HasCollation("utf8_general_ci");
  6613. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6614. });
  6615. modelBuilder.Entity<StoreHouse>(entity =>
  6616. {
  6617. entity.Property(e => e.Id).HasColumnType("int(11)");
  6618. entity.Property(e => e.Address)
  6619. .HasColumnType("varchar(128)")
  6620. .HasCharSet("utf8")
  6621. .HasCollation("utf8_general_ci");
  6622. entity.Property(e => e.Areas)
  6623. .HasColumnType("varchar(30)")
  6624. .HasCharSet("utf8")
  6625. .HasCollation("utf8_general_ci");
  6626. entity.Property(e => e.BrandId)
  6627. .HasColumnType("varchar(30)")
  6628. .HasCharSet("utf8")
  6629. .HasCollation("utf8_general_ci");
  6630. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6631. entity.Property(e => e.CreateMan)
  6632. .HasColumnType("varchar(50)")
  6633. .HasCharSet("utf8")
  6634. .HasCollation("utf8_general_ci");
  6635. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  6636. entity.Property(e => e.LimitTopUserId)
  6637. .HasColumnType("varchar(100)")
  6638. .HasCharSet("utf8")
  6639. .HasCollation("utf8_general_ci");
  6640. entity.Property(e => e.ManageMobile)
  6641. .HasColumnType("varchar(11)")
  6642. .HasCharSet("utf8")
  6643. .HasCollation("utf8_general_ci");
  6644. entity.Property(e => e.ManageUserId).HasColumnType("int(11)");
  6645. entity.Property(e => e.ManagerEmail)
  6646. .HasColumnType("varchar(32)")
  6647. .HasCharSet("utf8")
  6648. .HasCollation("utf8_general_ci");
  6649. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  6650. entity.Property(e => e.ParentNav)
  6651. .HasColumnType("longtext")
  6652. .HasCharSet("utf8")
  6653. .HasCollation("utf8_general_ci");
  6654. entity.Property(e => e.ParentStoreId).HasColumnType("int(11)");
  6655. entity.Property(e => e.ProductName)
  6656. .HasColumnType("varchar(32)")
  6657. .HasCharSet("utf8")
  6658. .HasCollation("utf8_general_ci");
  6659. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6660. entity.Property(e => e.Remark)
  6661. .HasColumnType("varchar(128)")
  6662. .HasCharSet("utf8")
  6663. .HasCollation("utf8_general_ci");
  6664. entity.Property(e => e.SeoDescription)
  6665. .HasColumnType("varchar(500)")
  6666. .HasCharSet("utf8")
  6667. .HasCollation("utf8_general_ci");
  6668. entity.Property(e => e.SeoKeyword)
  6669. .HasColumnType("varchar(200)")
  6670. .HasCharSet("utf8")
  6671. .HasCollation("utf8_general_ci");
  6672. entity.Property(e => e.SeoTitle)
  6673. .HasColumnType("varchar(100)")
  6674. .HasCharSet("utf8")
  6675. .HasCollation("utf8_general_ci");
  6676. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6677. entity.Property(e => e.Status).HasColumnType("int(11)");
  6678. entity.Property(e => e.StoreKind).HasColumnType("int(11)");
  6679. entity.Property(e => e.StoreName)
  6680. .HasColumnType("varchar(32)")
  6681. .HasCharSet("utf8")
  6682. .HasCollation("utf8_general_ci");
  6683. entity.Property(e => e.StoreNo)
  6684. .HasColumnType("varchar(16)")
  6685. .HasCharSet("utf8")
  6686. .HasCollation("utf8_general_ci");
  6687. entity.Property(e => e.StoreStatus).HasColumnType("int(11)");
  6688. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  6689. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  6690. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6691. entity.Property(e => e.UpdateMan)
  6692. .HasColumnType("varchar(50)")
  6693. .HasCharSet("utf8")
  6694. .HasCollation("utf8_general_ci");
  6695. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6696. entity.Property(e => e.Version).HasColumnType("int(11)");
  6697. });
  6698. modelBuilder.Entity<StoreMallOrderSummary>(entity =>
  6699. {
  6700. entity.Property(e => e.Id).HasColumnType("int(11)");
  6701. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6702. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6703. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6704. entity.Property(e => e.CreateMan)
  6705. .HasColumnType("varchar(50)")
  6706. .HasCharSet("utf8")
  6707. .HasCollation("utf8_general_ci");
  6708. entity.Property(e => e.OrderAmt).HasColumnType("int(11)");
  6709. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  6710. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6711. entity.Property(e => e.RefundAmt).HasColumnType("decimal(18,2)");
  6712. entity.Property(e => e.RefundOrderNum).HasColumnType("int(11)");
  6713. entity.Property(e => e.Remark)
  6714. .HasColumnType("varchar(64)")
  6715. .HasCharSet("utf8")
  6716. .HasCollation("utf8_general_ci");
  6717. entity.Property(e => e.SeoDescription)
  6718. .HasColumnType("varchar(500)")
  6719. .HasCharSet("utf8")
  6720. .HasCollation("utf8_general_ci");
  6721. entity.Property(e => e.SeoKeyword)
  6722. .HasColumnType("varchar(200)")
  6723. .HasCharSet("utf8")
  6724. .HasCollation("utf8_general_ci");
  6725. entity.Property(e => e.SeoTitle)
  6726. .HasColumnType("varchar(100)")
  6727. .HasCharSet("utf8")
  6728. .HasCollation("utf8_general_ci");
  6729. entity.Property(e => e.SettleAmt).HasColumnType("decimal(18,2)");
  6730. entity.Property(e => e.SettleStatus).HasColumnType("int(11)");
  6731. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6732. entity.Property(e => e.Status).HasColumnType("int(11)");
  6733. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6734. entity.Property(e => e.TradeMonth)
  6735. .HasColumnType("varchar(6)")
  6736. .HasCharSet("utf8")
  6737. .HasCollation("utf8_general_ci");
  6738. entity.Property(e => e.UnitPrice).HasColumnType("decimal(18,2)");
  6739. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6740. entity.Property(e => e.UpdateMan)
  6741. .HasColumnType("varchar(50)")
  6742. .HasCharSet("utf8")
  6743. .HasCollation("utf8_general_ci");
  6744. entity.Property(e => e.Version).HasColumnType("int(11)");
  6745. });
  6746. modelBuilder.Entity<StoreSnActivateSummary>(entity =>
  6747. {
  6748. entity.Property(e => e.Id).HasColumnType("int(11)");
  6749. entity.Property(e => e.ActivateNum).HasColumnType("int(11)");
  6750. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6751. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6752. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6753. entity.Property(e => e.CreateMan)
  6754. .HasColumnType("varchar(50)")
  6755. .HasCharSet("utf8")
  6756. .HasCollation("utf8_general_ci");
  6757. entity.Property(e => e.EffectActNum).HasColumnType("int(11)");
  6758. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6759. entity.Property(e => e.RejectActNum).HasColumnType("int(11)");
  6760. entity.Property(e => e.Remark)
  6761. .HasColumnType("varchar(64)")
  6762. .HasCharSet("utf8")
  6763. .HasCollation("utf8_general_ci");
  6764. entity.Property(e => e.SeoDescription)
  6765. .HasColumnType("varchar(500)")
  6766. .HasCharSet("utf8")
  6767. .HasCollation("utf8_general_ci");
  6768. entity.Property(e => e.SeoKeyword)
  6769. .HasColumnType("varchar(200)")
  6770. .HasCharSet("utf8")
  6771. .HasCollation("utf8_general_ci");
  6772. entity.Property(e => e.SeoTitle)
  6773. .HasColumnType("varchar(100)")
  6774. .HasCharSet("utf8")
  6775. .HasCollation("utf8_general_ci");
  6776. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6777. entity.Property(e => e.Status).HasColumnType("int(11)");
  6778. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6779. entity.Property(e => e.TradeDate)
  6780. .HasColumnType("varchar(8)")
  6781. .HasCharSet("utf8")
  6782. .HasCollation("utf8_general_ci");
  6783. entity.Property(e => e.TradeMonth)
  6784. .HasColumnType("varchar(6)")
  6785. .HasCharSet("utf8")
  6786. .HasCollation("utf8_general_ci");
  6787. entity.Property(e => e.TransferActNum).HasColumnType("int(11)");
  6788. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6789. entity.Property(e => e.UpdateMan)
  6790. .HasColumnType("varchar(50)")
  6791. .HasCharSet("utf8")
  6792. .HasCollation("utf8_general_ci");
  6793. entity.Property(e => e.UserApplyNum).HasColumnType("int(11)");
  6794. entity.Property(e => e.Version).HasColumnType("int(11)");
  6795. });
  6796. modelBuilder.Entity<StoreStockChange>(entity =>
  6797. {
  6798. entity.Property(e => e.Id).HasColumnType("int(11)");
  6799. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  6800. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  6801. entity.Property(e => e.BindMerchant).HasColumnType("int(11)");
  6802. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  6803. entity.Property(e => e.BizBatchNo)
  6804. .HasColumnType("varchar(32)")
  6805. .HasCharSet("utf8")
  6806. .HasCollation("utf8_general_ci");
  6807. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6808. entity.Property(e => e.BrandType)
  6809. .HasColumnType("varchar(10)")
  6810. .HasCharSet("utf8")
  6811. .HasCollation("utf8_general_ci");
  6812. entity.Property(e => e.ChangeNo)
  6813. .HasColumnType("varchar(32)")
  6814. .HasCharSet("utf8")
  6815. .HasCollation("utf8_general_ci");
  6816. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6817. entity.Property(e => e.CreateMan)
  6818. .HasColumnType("varchar(50)")
  6819. .HasCharSet("utf8")
  6820. .HasCollation("utf8_general_ci");
  6821. entity.Property(e => e.DeviceModel)
  6822. .HasColumnType("varchar(32)")
  6823. .HasCharSet("utf8")
  6824. .HasCollation("utf8_general_ci");
  6825. entity.Property(e => e.DeviceType)
  6826. .HasColumnType("varchar(32)")
  6827. .HasCharSet("utf8")
  6828. .HasCollation("utf8_general_ci");
  6829. entity.Property(e => e.DeviceVendor)
  6830. .HasColumnType("varchar(32)")
  6831. .HasCharSet("utf8")
  6832. .HasCollation("utf8_general_ci");
  6833. entity.Property(e => e.ExpressNo)
  6834. .HasColumnType("varchar(32)")
  6835. .HasCharSet("utf8")
  6836. .HasCollation("utf8_general_ci");
  6837. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6838. entity.Property(e => e.FromRemark)
  6839. .HasColumnType("varchar(64)")
  6840. .HasCharSet("utf8")
  6841. .HasCollation("utf8_general_ci");
  6842. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6843. entity.Property(e => e.ProductName)
  6844. .HasColumnType("varchar(32)")
  6845. .HasCharSet("utf8")
  6846. .HasCollation("utf8_general_ci");
  6847. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6848. entity.Property(e => e.SeoDescription)
  6849. .HasColumnType("varchar(500)")
  6850. .HasCharSet("utf8")
  6851. .HasCollation("utf8_general_ci");
  6852. entity.Property(e => e.SeoKeyword)
  6853. .HasColumnType("varchar(200)")
  6854. .HasCharSet("utf8")
  6855. .HasCollation("utf8_general_ci");
  6856. entity.Property(e => e.SeoTitle)
  6857. .HasColumnType("varchar(100)")
  6858. .HasCharSet("utf8")
  6859. .HasCollation("utf8_general_ci");
  6860. entity.Property(e => e.SnNo)
  6861. .HasColumnType("varchar(32)")
  6862. .HasCharSet("utf8")
  6863. .HasCollation("utf8_general_ci");
  6864. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  6865. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6866. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6867. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6868. entity.Property(e => e.Status).HasColumnType("int(11)");
  6869. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6870. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6871. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6872. entity.Property(e => e.ToRemark)
  6873. .HasColumnType("varchar(64)")
  6874. .HasCharSet("utf8")
  6875. .HasCollation("utf8_general_ci");
  6876. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6877. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6878. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6879. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6880. entity.Property(e => e.UpdateMan)
  6881. .HasColumnType("varchar(50)")
  6882. .HasCharSet("utf8")
  6883. .HasCollation("utf8_general_ci");
  6884. entity.Property(e => e.Version).HasColumnType("int(11)");
  6885. });
  6886. modelBuilder.Entity<StoreSwapSn>(entity =>
  6887. {
  6888. entity.Property(e => e.Id).HasColumnType("int(11)");
  6889. entity.Property(e => e.ActType).HasColumnType("int(11)");
  6890. entity.Property(e => e.ActTypeDesc)
  6891. .HasColumnType("varchar(64)")
  6892. .HasCharSet("utf8")
  6893. .HasCollation("utf8_general_ci");
  6894. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6895. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6896. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6897. entity.Property(e => e.CreateMan)
  6898. .HasColumnType("varchar(50)")
  6899. .HasCharSet("utf8")
  6900. .HasCollation("utf8_general_ci");
  6901. entity.Property(e => e.PosType)
  6902. .HasColumnType("varchar(32)")
  6903. .HasCharSet("utf8")
  6904. .HasCollation("utf8_general_ci");
  6905. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6906. entity.Property(e => e.Remark)
  6907. .HasColumnType("varchar(128)")
  6908. .HasCharSet("utf8")
  6909. .HasCollation("utf8_general_ci");
  6910. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  6911. entity.Property(e => e.SeoDescription)
  6912. .HasColumnType("varchar(500)")
  6913. .HasCharSet("utf8")
  6914. .HasCollation("utf8_general_ci");
  6915. entity.Property(e => e.SeoKeyword)
  6916. .HasColumnType("varchar(200)")
  6917. .HasCharSet("utf8")
  6918. .HasCollation("utf8_general_ci");
  6919. entity.Property(e => e.SeoTitle)
  6920. .HasColumnType("varchar(100)")
  6921. .HasCharSet("utf8")
  6922. .HasCollation("utf8_general_ci");
  6923. entity.Property(e => e.SnNo)
  6924. .HasColumnType("varchar(32)")
  6925. .HasCharSet("utf8")
  6926. .HasCollation("utf8_general_ci");
  6927. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  6928. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6929. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6930. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  6931. entity.Property(e => e.Status).HasColumnType("int(11)");
  6932. entity.Property(e => e.SwapApplyDate).HasColumnType("datetime");
  6933. entity.Property(e => e.SwapApplyOrderNo)
  6934. .HasColumnType("varchar(32)")
  6935. .HasCharSet("utf8")
  6936. .HasCollation("utf8_general_ci");
  6937. entity.Property(e => e.SwapExtProductTypes)
  6938. .HasColumnType("varchar(16)")
  6939. .HasCharSet("utf8")
  6940. .HasCollation("utf8_general_ci");
  6941. entity.Property(e => e.SwapSnNo)
  6942. .HasColumnType("varchar(32)")
  6943. .HasCharSet("utf8")
  6944. .HasCollation("utf8_general_ci");
  6945. entity.Property(e => e.SwapStatus).HasColumnType("int(11)");
  6946. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6947. entity.Property(e => e.UpdateMan)
  6948. .HasColumnType("varchar(50)")
  6949. .HasCharSet("utf8")
  6950. .HasCollation("utf8_general_ci");
  6951. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6952. entity.Property(e => e.Version).HasColumnType("int(11)");
  6953. });
  6954. modelBuilder.Entity<SysAdmin>(entity =>
  6955. {
  6956. entity.Property(e => e.Id).HasColumnType("int(11)");
  6957. entity.Property(e => e.AdminName)
  6958. .HasColumnType("varchar(50)")
  6959. .HasCharSet("utf8")
  6960. .HasCollation("utf8_general_ci");
  6961. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6962. entity.Property(e => e.CreateMan)
  6963. .HasColumnType("varchar(50)")
  6964. .HasCharSet("utf8")
  6965. .HasCollation("utf8_general_ci");
  6966. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  6967. entity.Property(e => e.Password)
  6968. .HasColumnType("varchar(32)")
  6969. .HasCharSet("utf8")
  6970. .HasCollation("utf8_general_ci");
  6971. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6972. entity.Property(e => e.RealName)
  6973. .HasColumnType("varchar(50)")
  6974. .HasCharSet("utf8")
  6975. .HasCollation("utf8_general_ci");
  6976. entity.Property(e => e.Role)
  6977. .HasColumnType("varchar(30)")
  6978. .HasCharSet("utf8")
  6979. .HasCollation("utf8_general_ci");
  6980. entity.Property(e => e.SeoDescription)
  6981. .HasColumnType("varchar(500)")
  6982. .HasCharSet("utf8")
  6983. .HasCollation("utf8_general_ci");
  6984. entity.Property(e => e.SeoKeyword)
  6985. .HasColumnType("varchar(200)")
  6986. .HasCharSet("utf8")
  6987. .HasCollation("utf8_general_ci");
  6988. entity.Property(e => e.SeoTitle)
  6989. .HasColumnType("varchar(100)")
  6990. .HasCharSet("utf8")
  6991. .HasCollation("utf8_general_ci");
  6992. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6993. entity.Property(e => e.Status).HasColumnType("int(11)");
  6994. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6995. entity.Property(e => e.UpdateMan)
  6996. .HasColumnType("varchar(50)")
  6997. .HasCharSet("utf8")
  6998. .HasCollation("utf8_general_ci");
  6999. entity.Property(e => e.Version).HasColumnType("int(11)");
  7000. });
  7001. modelBuilder.Entity<SysAdminRole>(entity =>
  7002. {
  7003. entity.Property(e => e.Id).HasColumnType("int(11)");
  7004. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7005. entity.Property(e => e.CreateMan)
  7006. .HasColumnType("varchar(50)")
  7007. .HasCharSet("utf8")
  7008. .HasCollation("utf8_general_ci");
  7009. entity.Property(e => e.Details)
  7010. .HasColumnType("longtext")
  7011. .HasCharSet("utf8")
  7012. .HasCollation("utf8_general_ci");
  7013. entity.Property(e => e.Name)
  7014. .HasColumnType("varchar(50)")
  7015. .HasCharSet("utf8")
  7016. .HasCollation("utf8_general_ci");
  7017. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7018. entity.Property(e => e.RightInfo)
  7019. .HasColumnType("longtext")
  7020. .HasCharSet("utf8")
  7021. .HasCollation("utf8_general_ci");
  7022. entity.Property(e => e.SeoDescription)
  7023. .HasColumnType("varchar(500)")
  7024. .HasCharSet("utf8")
  7025. .HasCollation("utf8_general_ci");
  7026. entity.Property(e => e.SeoKeyword)
  7027. .HasColumnType("varchar(200)")
  7028. .HasCharSet("utf8")
  7029. .HasCollation("utf8_general_ci");
  7030. entity.Property(e => e.SeoTitle)
  7031. .HasColumnType("varchar(100)")
  7032. .HasCharSet("utf8")
  7033. .HasCollation("utf8_general_ci");
  7034. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7035. entity.Property(e => e.Status).HasColumnType("int(11)");
  7036. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7037. entity.Property(e => e.UpdateMan)
  7038. .HasColumnType("varchar(50)")
  7039. .HasCharSet("utf8")
  7040. .HasCollation("utf8_general_ci");
  7041. entity.Property(e => e.Version).HasColumnType("int(11)");
  7042. });
  7043. modelBuilder.Entity<SysLog>(entity =>
  7044. {
  7045. entity.Property(e => e.Id).HasColumnType("int(11)");
  7046. entity.Property(e => e.Contents)
  7047. .HasColumnType("varchar(200)")
  7048. .HasCharSet("utf8")
  7049. .HasCollation("utf8_general_ci");
  7050. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7051. entity.Property(e => e.CreateMan)
  7052. .HasColumnType("varchar(50)")
  7053. .HasCharSet("utf8")
  7054. .HasCollation("utf8_general_ci");
  7055. });
  7056. modelBuilder.Entity<SysRechargeRecord>(entity =>
  7057. {
  7058. entity.Property(e => e.Id).HasColumnType("int(11)");
  7059. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  7060. entity.Property(e => e.BatchCode)
  7061. .HasColumnType("varchar(32)")
  7062. .HasCharSet("utf8")
  7063. .HasCollation("utf8_general_ci");
  7064. entity.Property(e => e.BizTime).HasColumnType("datetime");
  7065. entity.Property(e => e.BizType).HasColumnType("int(11)");
  7066. entity.Property(e => e.ClientIp)
  7067. .HasColumnType("varchar(15)")
  7068. .HasCharSet("utf8")
  7069. .HasCollation("utf8_general_ci");
  7070. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7071. entity.Property(e => e.CreateMan)
  7072. .HasColumnType("varchar(50)")
  7073. .HasCharSet("utf8")
  7074. .HasCollation("utf8_general_ci");
  7075. entity.Property(e => e.PartnerTradeNo)
  7076. .HasColumnType("varchar(32)")
  7077. .HasCharSet("utf8")
  7078. .HasCollation("utf8_general_ci");
  7079. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7080. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7081. entity.Property(e => e.RechargeRecNo)
  7082. .HasColumnType("varchar(32)")
  7083. .HasCharSet("utf8")
  7084. .HasCollation("utf8_general_ci");
  7085. entity.Property(e => e.SeoDescription)
  7086. .HasColumnType("varchar(500)")
  7087. .HasCharSet("utf8")
  7088. .HasCollation("utf8_general_ci");
  7089. entity.Property(e => e.SeoKeyword)
  7090. .HasColumnType("varchar(200)")
  7091. .HasCharSet("utf8")
  7092. .HasCollation("utf8_general_ci");
  7093. entity.Property(e => e.SeoTitle)
  7094. .HasColumnType("varchar(100)")
  7095. .HasCharSet("utf8")
  7096. .HasCollation("utf8_general_ci");
  7097. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7098. entity.Property(e => e.Status).HasColumnType("int(11)");
  7099. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  7100. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7101. entity.Property(e => e.UpdateMan)
  7102. .HasColumnType("varchar(50)")
  7103. .HasCharSet("utf8")
  7104. .HasCollation("utf8_general_ci");
  7105. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7106. entity.Property(e => e.Version).HasColumnType("int(11)");
  7107. });
  7108. modelBuilder.Entity<SystemSet>(entity =>
  7109. {
  7110. entity.Property(e => e.Id).HasColumnType("int(11)");
  7111. entity.Property(e => e.Address)
  7112. .HasColumnType("varchar(100)")
  7113. .HasCharSet("utf8")
  7114. .HasCollation("utf8_general_ci");
  7115. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7116. entity.Property(e => e.CreateMan)
  7117. .HasColumnType("varchar(50)")
  7118. .HasCharSet("utf8")
  7119. .HasCollation("utf8_general_ci");
  7120. entity.Property(e => e.IndexDescription)
  7121. .HasColumnType("longtext")
  7122. .HasCharSet("utf8")
  7123. .HasCollation("utf8_general_ci");
  7124. entity.Property(e => e.IndexKeyword)
  7125. .HasColumnType("varchar(200)")
  7126. .HasCharSet("utf8")
  7127. .HasCollation("utf8_general_ci");
  7128. entity.Property(e => e.Logo)
  7129. .HasColumnType("varchar(200)")
  7130. .HasCharSet("utf8")
  7131. .HasCollation("utf8_general_ci");
  7132. entity.Property(e => e.Phone)
  7133. .HasColumnType("varchar(100)")
  7134. .HasCharSet("utf8")
  7135. .HasCollation("utf8_general_ci");
  7136. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7137. entity.Property(e => e.RightInfo)
  7138. .HasColumnType("longtext")
  7139. .HasCharSet("utf8")
  7140. .HasCollation("utf8_general_ci");
  7141. entity.Property(e => e.SeoDescription)
  7142. .HasColumnType("varchar(500)")
  7143. .HasCharSet("utf8")
  7144. .HasCollation("utf8_general_ci");
  7145. entity.Property(e => e.SeoKeyword)
  7146. .HasColumnType("varchar(200)")
  7147. .HasCharSet("utf8")
  7148. .HasCollation("utf8_general_ci");
  7149. entity.Property(e => e.SeoTitle)
  7150. .HasColumnType("varchar(100)")
  7151. .HasCharSet("utf8")
  7152. .HasCollation("utf8_general_ci");
  7153. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7154. entity.Property(e => e.StartAdPhoto)
  7155. .HasColumnType("varchar(200)")
  7156. .HasCharSet("utf8")
  7157. .HasCollation("utf8_general_ci");
  7158. entity.Property(e => e.Status).HasColumnType("int(11)");
  7159. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7160. entity.Property(e => e.UpdateMan)
  7161. .HasColumnType("varchar(50)")
  7162. .HasCharSet("utf8")
  7163. .HasCollation("utf8_general_ci");
  7164. entity.Property(e => e.UploadAutoWater)
  7165. .HasColumnType("bit(1)")
  7166. .HasDefaultValueSql("b'0'");
  7167. entity.Property(e => e.UploadAutoZoom)
  7168. .HasColumnType("bit(1)")
  7169. .HasDefaultValueSql("b'0'");
  7170. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  7171. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  7172. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  7173. entity.Property(e => e.UploadExt)
  7174. .HasColumnType("varchar(100)")
  7175. .HasCharSet("utf8")
  7176. .HasCollation("utf8_general_ci");
  7177. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  7178. entity.Property(e => e.UploadOss)
  7179. .HasColumnType("bit(1)")
  7180. .HasDefaultValueSql("b'0'");
  7181. entity.Property(e => e.UploadWaterPath)
  7182. .HasColumnType("varchar(200)")
  7183. .HasCharSet("utf8")
  7184. .HasCollation("utf8_general_ci");
  7185. entity.Property(e => e.UploadWaterPosition)
  7186. .HasColumnType("varchar(15)")
  7187. .HasCharSet("utf8")
  7188. .HasCollation("utf8_general_ci");
  7189. entity.Property(e => e.Version).HasColumnType("int(11)");
  7190. entity.Property(e => e.WebName)
  7191. .HasColumnType("varchar(50)")
  7192. .HasCharSet("utf8")
  7193. .HasCollation("utf8_general_ci");
  7194. entity.Property(e => e.WebStatCode)
  7195. .HasColumnType("longtext")
  7196. .HasCharSet("utf8")
  7197. .HasCollation("utf8_general_ci");
  7198. entity.Property(e => e.WebUrl)
  7199. .HasColumnType("varchar(200)")
  7200. .HasCharSet("utf8")
  7201. .HasCollation("utf8_general_ci");
  7202. });
  7203. modelBuilder.Entity<TeamApply>(entity =>
  7204. {
  7205. entity.Property(e => e.Id).HasColumnType("int(11)");
  7206. entity.Property(e => e.Areas)
  7207. .HasColumnType("varchar(30)")
  7208. .HasCharSet("utf8")
  7209. .HasCollation("utf8_general_ci");
  7210. entity.Property(e => e.AuditRemark)
  7211. .HasColumnType("varchar(64)")
  7212. .HasCharSet("utf8")
  7213. .HasCollation("utf8_general_ci");
  7214. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7215. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7216. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7217. entity.Property(e => e.CreateMan)
  7218. .HasColumnType("varchar(50)")
  7219. .HasCharSet("utf8")
  7220. .HasCollation("utf8_general_ci");
  7221. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7222. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7223. entity.Property(e => e.EnterEndDate).HasColumnType("datetime");
  7224. entity.Property(e => e.EnterStartDate).HasColumnType("datetime");
  7225. entity.Property(e => e.ManagerName)
  7226. .HasColumnType("varchar(32)")
  7227. .HasCharSet("utf8")
  7228. .HasCollation("utf8_general_ci");
  7229. entity.Property(e => e.ManagerNo)
  7230. .HasColumnType("varchar(32)")
  7231. .HasCharSet("utf8")
  7232. .HasCollation("utf8_general_ci");
  7233. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7234. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7235. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7236. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7237. entity.Property(e => e.Remark)
  7238. .HasColumnType("varchar(64)")
  7239. .HasCharSet("utf8")
  7240. .HasCollation("utf8_general_ci");
  7241. entity.Property(e => e.SeoDescription)
  7242. .HasColumnType("varchar(500)")
  7243. .HasCharSet("utf8")
  7244. .HasCollation("utf8_general_ci");
  7245. entity.Property(e => e.SeoKeyword)
  7246. .HasColumnType("varchar(200)")
  7247. .HasCharSet("utf8")
  7248. .HasCollation("utf8_general_ci");
  7249. entity.Property(e => e.SeoTitle)
  7250. .HasColumnType("varchar(100)")
  7251. .HasCharSet("utf8")
  7252. .HasCollation("utf8_general_ci");
  7253. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7254. entity.Property(e => e.Status).HasColumnType("int(11)");
  7255. entity.Property(e => e.TeamName)
  7256. .HasColumnType("varchar(32)")
  7257. .HasCharSet("utf8")
  7258. .HasCollation("utf8_general_ci");
  7259. entity.Property(e => e.TeamNo)
  7260. .HasColumnType("varchar(32)")
  7261. .HasCharSet("utf8")
  7262. .HasCollation("utf8_general_ci");
  7263. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7264. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7265. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7266. entity.Property(e => e.UpdateMan)
  7267. .HasColumnType("varchar(50)")
  7268. .HasCharSet("utf8")
  7269. .HasCollation("utf8_general_ci");
  7270. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7271. entity.Property(e => e.Version).HasColumnType("int(11)");
  7272. entity.Property(e => e.WatchWord)
  7273. .HasColumnType("varchar(32)")
  7274. .HasCharSet("utf8")
  7275. .HasCollation("utf8_general_ci");
  7276. });
  7277. modelBuilder.Entity<TeamApplyForTeamName>(entity =>
  7278. {
  7279. entity.HasKey(e => e.TeamName)
  7280. .HasName("PRIMARY");
  7281. entity.Property(e => e.TeamName)
  7282. .HasColumnType("varchar(32)")
  7283. .HasCharSet("utf8")
  7284. .HasCollation("utf8_general_ci");
  7285. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7286. });
  7287. modelBuilder.Entity<TeamApplyForTeamNo>(entity =>
  7288. {
  7289. entity.HasKey(e => e.TeamNo)
  7290. .HasName("PRIMARY");
  7291. entity.Property(e => e.TeamNo)
  7292. .HasColumnType("varchar(32)")
  7293. .HasCharSet("utf8")
  7294. .HasCollation("utf8_general_ci");
  7295. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7296. });
  7297. modelBuilder.Entity<TeamBlackList>(entity =>
  7298. {
  7299. entity.Property(e => e.Id).HasColumnType("int(11)");
  7300. entity.Property(e => e.BlackStatus).HasColumnType("int(11)");
  7301. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7302. entity.Property(e => e.CreateMan)
  7303. .HasColumnType("varchar(50)")
  7304. .HasCharSet("utf8")
  7305. .HasCollation("utf8_general_ci");
  7306. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7307. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7308. entity.Property(e => e.ManagerName)
  7309. .HasColumnType("varchar(32)")
  7310. .HasCharSet("utf8")
  7311. .HasCollation("utf8_general_ci");
  7312. entity.Property(e => e.ManagerNo)
  7313. .HasColumnType("varchar(32)")
  7314. .HasCharSet("utf8")
  7315. .HasCollation("utf8_general_ci");
  7316. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7317. entity.Property(e => e.Remark)
  7318. .HasColumnType("varchar(64)")
  7319. .HasCharSet("utf8")
  7320. .HasCollation("utf8_general_ci");
  7321. entity.Property(e => e.SeoDescription)
  7322. .HasColumnType("varchar(500)")
  7323. .HasCharSet("utf8")
  7324. .HasCollation("utf8_general_ci");
  7325. entity.Property(e => e.SeoKeyword)
  7326. .HasColumnType("varchar(200)")
  7327. .HasCharSet("utf8")
  7328. .HasCollation("utf8_general_ci");
  7329. entity.Property(e => e.SeoTitle)
  7330. .HasColumnType("varchar(100)")
  7331. .HasCharSet("utf8")
  7332. .HasCollation("utf8_general_ci");
  7333. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7334. entity.Property(e => e.Status).HasColumnType("int(11)");
  7335. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7336. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7337. entity.Property(e => e.UpdateMan)
  7338. .HasColumnType("varchar(50)")
  7339. .HasCharSet("utf8")
  7340. .HasCollation("utf8_general_ci");
  7341. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7342. entity.Property(e => e.Version).HasColumnType("int(11)");
  7343. });
  7344. modelBuilder.Entity<TeamConfig>(entity =>
  7345. {
  7346. entity.Property(e => e.Id).HasColumnType("int(11)");
  7347. entity.Property(e => e.BlacklistCycle).HasColumnType("int(11)");
  7348. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7349. entity.Property(e => e.CreateMan)
  7350. .HasColumnType("varchar(50)")
  7351. .HasCharSet("utf8")
  7352. .HasCollation("utf8_general_ci");
  7353. entity.Property(e => e.EnterEndMin).HasColumnType("int(11)");
  7354. entity.Property(e => e.LimitBuddyNo)
  7355. .HasColumnType("varchar(128)")
  7356. .HasCharSet("utf8")
  7357. .HasCollation("utf8_general_ci");
  7358. entity.Property(e => e.MaxCycleNum).HasColumnType("int(11)");
  7359. entity.Property(e => e.MaxStartDayLimit).HasColumnType("int(11)");
  7360. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7361. entity.Property(e => e.MinCycleNum).HasColumnType("int(11)");
  7362. entity.Property(e => e.MinStartDayLimit).HasColumnType("int(11)");
  7363. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7364. entity.Property(e => e.OverlineStatus)
  7365. .HasColumnType("bit(1)")
  7366. .HasDefaultValueSql("b'0'");
  7367. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7368. entity.Property(e => e.Remark)
  7369. .HasColumnType("varchar(64)")
  7370. .HasCharSet("utf8")
  7371. .HasCollation("utf8_general_ci");
  7372. entity.Property(e => e.SeoDescription)
  7373. .HasColumnType("varchar(500)")
  7374. .HasCharSet("utf8")
  7375. .HasCollation("utf8_general_ci");
  7376. entity.Property(e => e.SeoKeyword)
  7377. .HasColumnType("varchar(200)")
  7378. .HasCharSet("utf8")
  7379. .HasCollation("utf8_general_ci");
  7380. entity.Property(e => e.SeoTitle)
  7381. .HasColumnType("varchar(100)")
  7382. .HasCharSet("utf8")
  7383. .HasCollation("utf8_general_ci");
  7384. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7385. entity.Property(e => e.Status).HasColumnType("int(11)");
  7386. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7387. entity.Property(e => e.UpdateMan)
  7388. .HasColumnType("varchar(50)")
  7389. .HasCharSet("utf8")
  7390. .HasCollation("utf8_general_ci");
  7391. entity.Property(e => e.Version).HasColumnType("int(11)");
  7392. });
  7393. modelBuilder.Entity<TeamDayTop>(entity =>
  7394. {
  7395. entity.Property(e => e.Id).HasColumnType("int(11)");
  7396. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7397. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7398. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7399. entity.Property(e => e.CreateMan)
  7400. .HasColumnType("varchar(50)")
  7401. .HasCharSet("utf8")
  7402. .HasCollation("utf8_general_ci");
  7403. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7404. entity.Property(e => e.Remark)
  7405. .HasColumnType("varchar(64)")
  7406. .HasCharSet("utf8")
  7407. .HasCollation("utf8_general_ci");
  7408. entity.Property(e => e.SeoDescription)
  7409. .HasColumnType("varchar(500)")
  7410. .HasCharSet("utf8")
  7411. .HasCollation("utf8_general_ci");
  7412. entity.Property(e => e.SeoKeyword)
  7413. .HasColumnType("varchar(200)")
  7414. .HasCharSet("utf8")
  7415. .HasCollation("utf8_general_ci");
  7416. entity.Property(e => e.SeoTitle)
  7417. .HasColumnType("varchar(100)")
  7418. .HasCharSet("utf8")
  7419. .HasCollation("utf8_general_ci");
  7420. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7421. entity.Property(e => e.StatDate)
  7422. .HasColumnType("varchar(8)")
  7423. .HasCharSet("utf8")
  7424. .HasCollation("utf8_general_ci");
  7425. entity.Property(e => e.StatMonth)
  7426. .HasColumnType("varchar(6)")
  7427. .HasCharSet("utf8")
  7428. .HasCollation("utf8_general_ci");
  7429. entity.Property(e => e.Status).HasColumnType("int(11)");
  7430. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7431. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7432. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7433. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7434. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7435. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7436. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7437. entity.Property(e => e.UpdateMan)
  7438. .HasColumnType("varchar(50)")
  7439. .HasCharSet("utf8")
  7440. .HasCollation("utf8_general_ci");
  7441. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7442. entity.Property(e => e.Version).HasColumnType("int(11)");
  7443. });
  7444. modelBuilder.Entity<TeamOfferApply>(entity =>
  7445. {
  7446. entity.Property(e => e.Id).HasColumnType("int(11)");
  7447. entity.Property(e => e.Areas)
  7448. .HasColumnType("varchar(30)")
  7449. .HasCharSet("utf8")
  7450. .HasCollation("utf8_general_ci");
  7451. entity.Property(e => e.AuditRemark)
  7452. .HasColumnType("varchar(64)")
  7453. .HasCharSet("utf8")
  7454. .HasCollation("utf8_general_ci");
  7455. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7456. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7457. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7458. entity.Property(e => e.CreateMan)
  7459. .HasColumnType("varchar(50)")
  7460. .HasCharSet("utf8")
  7461. .HasCollation("utf8_general_ci");
  7462. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7463. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7464. entity.Property(e => e.EnterDate).HasColumnType("datetime");
  7465. entity.Property(e => e.ManagerName)
  7466. .HasColumnType("varchar(32)")
  7467. .HasCharSet("utf8")
  7468. .HasCollation("utf8_general_ci");
  7469. entity.Property(e => e.ManagerNo)
  7470. .HasColumnType("varchar(32)")
  7471. .HasCharSet("utf8")
  7472. .HasCollation("utf8_general_ci");
  7473. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7474. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7475. entity.Property(e => e.Remark)
  7476. .HasColumnType("varchar(64)")
  7477. .HasCharSet("utf8")
  7478. .HasCollation("utf8_general_ci");
  7479. entity.Property(e => e.SeoDescription)
  7480. .HasColumnType("varchar(500)")
  7481. .HasCharSet("utf8")
  7482. .HasCollation("utf8_general_ci");
  7483. entity.Property(e => e.SeoKeyword)
  7484. .HasColumnType("varchar(200)")
  7485. .HasCharSet("utf8")
  7486. .HasCollation("utf8_general_ci");
  7487. entity.Property(e => e.SeoTitle)
  7488. .HasColumnType("varchar(100)")
  7489. .HasCharSet("utf8")
  7490. .HasCollation("utf8_general_ci");
  7491. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7492. entity.Property(e => e.Status).HasColumnType("int(11)");
  7493. entity.Property(e => e.TeamApplyStatus).HasColumnType("int(11)");
  7494. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7495. entity.Property(e => e.TeamLeader).HasColumnType("int(11)");
  7496. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7497. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7498. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7499. entity.Property(e => e.UpdateMan)
  7500. .HasColumnType("varchar(50)")
  7501. .HasCharSet("utf8")
  7502. .HasCollation("utf8_general_ci");
  7503. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7504. entity.Property(e => e.Version).HasColumnType("int(11)");
  7505. });
  7506. modelBuilder.Entity<TeamPersonDayTop>(entity =>
  7507. {
  7508. entity.Property(e => e.Id).HasColumnType("int(11)");
  7509. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7510. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7511. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7512. entity.Property(e => e.CreateMan)
  7513. .HasColumnType("varchar(50)")
  7514. .HasCharSet("utf8")
  7515. .HasCollation("utf8_general_ci");
  7516. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7517. entity.Property(e => e.Remark)
  7518. .HasColumnType("varchar(64)")
  7519. .HasCharSet("utf8")
  7520. .HasCollation("utf8_general_ci");
  7521. entity.Property(e => e.SeoDescription)
  7522. .HasColumnType("varchar(500)")
  7523. .HasCharSet("utf8")
  7524. .HasCollation("utf8_general_ci");
  7525. entity.Property(e => e.SeoKeyword)
  7526. .HasColumnType("varchar(200)")
  7527. .HasCharSet("utf8")
  7528. .HasCollation("utf8_general_ci");
  7529. entity.Property(e => e.SeoTitle)
  7530. .HasColumnType("varchar(100)")
  7531. .HasCharSet("utf8")
  7532. .HasCollation("utf8_general_ci");
  7533. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7534. entity.Property(e => e.StatDate)
  7535. .HasColumnType("varchar(8)")
  7536. .HasCharSet("utf8")
  7537. .HasCollation("utf8_general_ci");
  7538. entity.Property(e => e.StatMonth)
  7539. .HasColumnType("varchar(6)")
  7540. .HasCharSet("utf8")
  7541. .HasCollation("utf8_general_ci");
  7542. entity.Property(e => e.Status).HasColumnType("int(11)");
  7543. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7544. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7545. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7546. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7547. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7548. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7549. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7550. entity.Property(e => e.UpdateMan)
  7551. .HasColumnType("varchar(50)")
  7552. .HasCharSet("utf8")
  7553. .HasCollation("utf8_general_ci");
  7554. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7555. entity.Property(e => e.Version).HasColumnType("int(11)");
  7556. });
  7557. modelBuilder.Entity<TmpCert>(entity =>
  7558. {
  7559. entity.HasKey(e => e.MakerCode)
  7560. .HasName("PRIMARY");
  7561. entity.Property(e => e.MakerCode)
  7562. .HasColumnType("varchar(50)")
  7563. .HasCharSet("latin1")
  7564. .HasCollation("latin1_swedish_ci");
  7565. entity.Property(e => e.CertId)
  7566. .HasColumnType("varchar(50)")
  7567. .HasCharSet("latin1")
  7568. .HasCollation("latin1_swedish_ci");
  7569. });
  7570. modelBuilder.Entity<TradeDaySummary>(entity =>
  7571. {
  7572. entity.Property(e => e.Id).HasColumnType("int(11)");
  7573. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7574. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7575. entity.Property(e => e.CreateMan)
  7576. .HasColumnType("varchar(50)")
  7577. .HasCharSet("utf8")
  7578. .HasCollation("utf8_general_ci");
  7579. entity.Property(e => e.HelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7580. entity.Property(e => e.HelpDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7581. entity.Property(e => e.HelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7582. entity.Property(e => e.HelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7583. entity.Property(e => e.HelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7584. entity.Property(e => e.HelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7585. entity.Property(e => e.HelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7586. entity.Property(e => e.HelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7587. entity.Property(e => e.HelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7588. entity.Property(e => e.HelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7589. entity.Property(e => e.HelpNonDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7590. entity.Property(e => e.HelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7591. entity.Property(e => e.HelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7592. entity.Property(e => e.HelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7593. entity.Property(e => e.HelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7594. entity.Property(e => e.HelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7595. entity.Property(e => e.HelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7596. entity.Property(e => e.HelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7597. entity.Property(e => e.MgrName)
  7598. .HasColumnType("varchar(32)")
  7599. .HasCharSet("utf8")
  7600. .HasCollation("utf8_general_ci");
  7601. entity.Property(e => e.MgrNo)
  7602. .HasColumnType("varchar(16)")
  7603. .HasCharSet("utf8")
  7604. .HasCollation("utf8_general_ci");
  7605. entity.Property(e => e.NotHelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7606. entity.Property(e => e.NotHelpDirectDebitCapNum).HasColumnType("int(11)");
  7607. entity.Property(e => e.NotHelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7608. entity.Property(e => e.NotHelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7609. entity.Property(e => e.NotHelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7610. entity.Property(e => e.NotHelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7611. entity.Property(e => e.NotHelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7612. entity.Property(e => e.NotHelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7613. entity.Property(e => e.NotHelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7614. entity.Property(e => e.NotHelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7615. entity.Property(e => e.NotHelpNonDirectDebitCapNum).HasColumnType("int(11)");
  7616. entity.Property(e => e.NotHelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7617. entity.Property(e => e.NotHelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7618. entity.Property(e => e.NotHelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7619. entity.Property(e => e.NotHelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7620. entity.Property(e => e.NotHelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7621. entity.Property(e => e.NotHelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7622. entity.Property(e => e.NotHelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7623. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7624. entity.Property(e => e.SeoDescription)
  7625. .HasColumnType("varchar(500)")
  7626. .HasCharSet("utf8")
  7627. .HasCollation("utf8_general_ci");
  7628. entity.Property(e => e.SeoKeyword)
  7629. .HasColumnType("varchar(200)")
  7630. .HasCharSet("utf8")
  7631. .HasCollation("utf8_general_ci");
  7632. entity.Property(e => e.SeoTitle)
  7633. .HasColumnType("varchar(100)")
  7634. .HasCharSet("utf8")
  7635. .HasCollation("utf8_general_ci");
  7636. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7637. entity.Property(e => e.Status).HasColumnType("int(11)");
  7638. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7639. entity.Property(e => e.TradeDate)
  7640. .HasColumnType("varchar(8)")
  7641. .HasCharSet("utf8")
  7642. .HasCollation("utf8_general_ci");
  7643. entity.Property(e => e.TradeMonth)
  7644. .HasColumnType("varchar(6)")
  7645. .HasCharSet("utf8")
  7646. .HasCollation("utf8_general_ci");
  7647. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7648. entity.Property(e => e.UpdateMan)
  7649. .HasColumnType("varchar(50)")
  7650. .HasCharSet("utf8")
  7651. .HasCollation("utf8_general_ci");
  7652. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7653. entity.Property(e => e.Version).HasColumnType("int(11)");
  7654. });
  7655. modelBuilder.Entity<TradeRecord>(entity =>
  7656. {
  7657. entity.Property(e => e.Id).HasColumnType("int(11)");
  7658. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  7659. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7660. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  7661. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  7662. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7663. entity.Property(e => e.CreateMan)
  7664. .HasColumnType("varchar(50)")
  7665. .HasCharSet("utf8")
  7666. .HasCollation("utf8_general_ci");
  7667. entity.Property(e => e.DirectFlag)
  7668. .HasColumnType("bit(1)")
  7669. .HasDefaultValueSql("b'0'");
  7670. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  7671. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  7672. entity.Property(e => e.MerHelpFlag)
  7673. .HasColumnType("bit(1)")
  7674. .HasDefaultValueSql("b'0'");
  7675. entity.Property(e => e.MerNo)
  7676. .HasColumnType("varchar(32)")
  7677. .HasCharSet("utf8")
  7678. .HasCollation("utf8_general_ci");
  7679. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  7680. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7681. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  7682. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7683. entity.Property(e => e.RecordNo)
  7684. .HasColumnType("varchar(32)")
  7685. .HasCharSet("utf8")
  7686. .HasCollation("utf8_general_ci");
  7687. entity.Property(e => e.Remark)
  7688. .HasColumnType("varchar(64)")
  7689. .HasCharSet("utf8")
  7690. .HasCollation("utf8_general_ci");
  7691. entity.Property(e => e.SeoDescription)
  7692. .HasColumnType("varchar(500)")
  7693. .HasCharSet("utf8")
  7694. .HasCollation("utf8_general_ci");
  7695. entity.Property(e => e.SeoKeyword)
  7696. .HasColumnType("varchar(200)")
  7697. .HasCharSet("utf8")
  7698. .HasCollation("utf8_general_ci");
  7699. entity.Property(e => e.SeoTitle)
  7700. .HasColumnType("varchar(100)")
  7701. .HasCharSet("utf8")
  7702. .HasCollation("utf8_general_ci");
  7703. entity.Property(e => e.SnNo)
  7704. .HasColumnType("varchar(32)")
  7705. .HasCharSet("utf8")
  7706. .HasCollation("utf8_general_ci");
  7707. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7708. entity.Property(e => e.Status).HasColumnType("int(11)");
  7709. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7710. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  7711. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  7712. entity.Property(e => e.TradeSerialNo)
  7713. .HasColumnType("varchar(48)")
  7714. .HasCharSet("utf8")
  7715. .HasCollation("utf8_general_ci");
  7716. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7717. entity.Property(e => e.UpdateMan)
  7718. .HasColumnType("varchar(50)")
  7719. .HasCharSet("utf8")
  7720. .HasCollation("utf8_general_ci");
  7721. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7722. entity.Property(e => e.Version).HasColumnType("int(11)");
  7723. });
  7724. modelBuilder.Entity<UploadParams>(entity =>
  7725. {
  7726. entity.Property(e => e.Id).HasColumnType("int(11)");
  7727. entity.Property(e => e.ColumnEnName)
  7728. .HasColumnType("varchar(50)")
  7729. .HasCharSet("utf8")
  7730. .HasCollation("utf8_general_ci");
  7731. entity.Property(e => e.ColumnName)
  7732. .HasColumnType("varchar(50)")
  7733. .HasCharSet("utf8")
  7734. .HasCollation("utf8_general_ci");
  7735. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7736. entity.Property(e => e.CreateMan)
  7737. .HasColumnType("varchar(50)")
  7738. .HasCharSet("utf8")
  7739. .HasCollation("utf8_general_ci");
  7740. entity.Property(e => e.ParamString)
  7741. .HasColumnType("varchar(200)")
  7742. .HasCharSet("utf8")
  7743. .HasCollation("utf8_general_ci");
  7744. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7745. entity.Property(e => e.SeoDescription)
  7746. .HasColumnType("varchar(500)")
  7747. .HasCharSet("utf8")
  7748. .HasCollation("utf8_general_ci");
  7749. entity.Property(e => e.SeoKeyword)
  7750. .HasColumnType("varchar(200)")
  7751. .HasCharSet("utf8")
  7752. .HasCollation("utf8_general_ci");
  7753. entity.Property(e => e.SeoTitle)
  7754. .HasColumnType("varchar(100)")
  7755. .HasCharSet("utf8")
  7756. .HasCollation("utf8_general_ci");
  7757. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7758. entity.Property(e => e.Status).HasColumnType("int(11)");
  7759. entity.Property(e => e.TableEnName)
  7760. .HasColumnType("varchar(50)")
  7761. .HasCharSet("utf8")
  7762. .HasCollation("utf8_general_ci");
  7763. entity.Property(e => e.TableName)
  7764. .HasColumnType("varchar(50)")
  7765. .HasCharSet("utf8")
  7766. .HasCollation("utf8_general_ci");
  7767. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7768. entity.Property(e => e.UpdateMan)
  7769. .HasColumnType("varchar(50)")
  7770. .HasCharSet("utf8")
  7771. .HasCollation("utf8_general_ci");
  7772. entity.Property(e => e.Version).HasColumnType("int(11)");
  7773. });
  7774. modelBuilder.Entity<UserAccount>(entity =>
  7775. {
  7776. entity.Property(e => e.Id).HasColumnType("int(11)");
  7777. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  7778. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  7779. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7780. entity.Property(e => e.CreateMan)
  7781. .HasColumnType("varchar(50)")
  7782. .HasCharSet("utf8")
  7783. .HasCollation("utf8_general_ci");
  7784. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  7785. entity.Property(e => e.LockStatus).HasColumnType("int(11)");
  7786. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7787. entity.Property(e => e.SeoDescription)
  7788. .HasColumnType("varchar(500)")
  7789. .HasCharSet("utf8")
  7790. .HasCollation("utf8_general_ci");
  7791. entity.Property(e => e.SeoKeyword)
  7792. .HasColumnType("varchar(200)")
  7793. .HasCharSet("utf8")
  7794. .HasCollation("utf8_general_ci");
  7795. entity.Property(e => e.SeoTitle)
  7796. .HasColumnType("varchar(100)")
  7797. .HasCharSet("utf8")
  7798. .HasCollation("utf8_general_ci");
  7799. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7800. entity.Property(e => e.Status).HasColumnType("int(11)");
  7801. entity.Property(e => e.TeamTotalOverProfit).HasColumnType("decimal(18,2)");
  7802. entity.Property(e => e.TeamTotalProfit).HasColumnType("decimal(18,2)");
  7803. entity.Property(e => e.TeamTotalServiceProfit).HasColumnType("decimal(18,2)");
  7804. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  7805. entity.Property(e => e.TotalOverProfit).HasColumnType("decimal(18,2)");
  7806. entity.Property(e => e.TotalProfit).HasColumnType("decimal(18,2)");
  7807. entity.Property(e => e.TotalServiceProfit).HasColumnType("decimal(18,2)");
  7808. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7809. entity.Property(e => e.UpdateMan)
  7810. .HasColumnType("varchar(50)")
  7811. .HasCharSet("utf8")
  7812. .HasCollation("utf8_general_ci");
  7813. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7814. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  7815. entity.Property(e => e.UserType).HasColumnType("int(11)");
  7816. entity.Property(e => e.Version).HasColumnType("int(11)");
  7817. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  7818. });
  7819. modelBuilder.Entity<UserAccountRecord>(entity =>
  7820. {
  7821. entity.Property(e => e.Id).HasColumnType("int(11)");
  7822. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  7823. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  7824. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  7825. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  7826. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  7827. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  7828. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  7829. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  7830. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7831. entity.Property(e => e.CreateMan)
  7832. .HasColumnType("varchar(50)")
  7833. .HasCharSet("utf8")
  7834. .HasCollation("utf8_general_ci");
  7835. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7836. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7837. entity.Property(e => e.Remark)
  7838. .HasColumnType("varchar(64)")
  7839. .HasCharSet("utf8")
  7840. .HasCollation("utf8_general_ci");
  7841. entity.Property(e => e.SeoDescription)
  7842. .HasColumnType("varchar(500)")
  7843. .HasCharSet("utf8")
  7844. .HasCollation("utf8_general_ci");
  7845. entity.Property(e => e.SeoKeyword)
  7846. .HasColumnType("varchar(200)")
  7847. .HasCharSet("utf8")
  7848. .HasCollation("utf8_general_ci");
  7849. entity.Property(e => e.SeoTitle)
  7850. .HasColumnType("varchar(100)")
  7851. .HasCharSet("utf8")
  7852. .HasCollation("utf8_general_ci");
  7853. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7854. entity.Property(e => e.Status).HasColumnType("int(11)");
  7855. entity.Property(e => e.TransRecordNo)
  7856. .HasColumnType("varchar(32)")
  7857. .HasCharSet("utf8")
  7858. .HasCollation("utf8_general_ci");
  7859. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7860. entity.Property(e => e.UpdateMan)
  7861. .HasColumnType("varchar(50)")
  7862. .HasCharSet("utf8")
  7863. .HasCollation("utf8_general_ci");
  7864. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7865. entity.Property(e => e.Version).HasColumnType("int(11)");
  7866. });
  7867. modelBuilder.Entity<UserAddress>(entity =>
  7868. {
  7869. entity.Property(e => e.Id).HasColumnType("int(11)");
  7870. entity.Property(e => e.Address)
  7871. .HasColumnType("varchar(100)")
  7872. .HasCharSet("utf8")
  7873. .HasCollation("utf8_general_ci");
  7874. entity.Property(e => e.Areas)
  7875. .HasColumnType("varchar(30)")
  7876. .HasCharSet("utf8")
  7877. .HasCollation("utf8_general_ci");
  7878. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7879. entity.Property(e => e.CreateMan)
  7880. .HasColumnType("varchar(50)")
  7881. .HasCharSet("utf8")
  7882. .HasCollation("utf8_general_ci");
  7883. entity.Property(e => e.IsDefault)
  7884. .HasColumnType("bit(1)")
  7885. .HasDefaultValueSql("b'0'");
  7886. entity.Property(e => e.Mobile)
  7887. .HasColumnType("varchar(11)")
  7888. .HasCharSet("utf8")
  7889. .HasCollation("utf8_general_ci");
  7890. entity.Property(e => e.PostalCode)
  7891. .HasColumnType("varchar(6)")
  7892. .HasCharSet("utf8")
  7893. .HasCollation("utf8_general_ci");
  7894. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7895. entity.Property(e => e.RealName)
  7896. .HasColumnType("varchar(10)")
  7897. .HasCharSet("utf8")
  7898. .HasCollation("utf8_general_ci");
  7899. entity.Property(e => e.SeoDescription)
  7900. .HasColumnType("varchar(500)")
  7901. .HasCharSet("utf8")
  7902. .HasCollation("utf8_general_ci");
  7903. entity.Property(e => e.SeoKeyword)
  7904. .HasColumnType("varchar(200)")
  7905. .HasCharSet("utf8")
  7906. .HasCollation("utf8_general_ci");
  7907. entity.Property(e => e.SeoTitle)
  7908. .HasColumnType("varchar(100)")
  7909. .HasCharSet("utf8")
  7910. .HasCollation("utf8_general_ci");
  7911. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7912. entity.Property(e => e.Status).HasColumnType("int(11)");
  7913. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7914. entity.Property(e => e.UpdateMan)
  7915. .HasColumnType("varchar(50)")
  7916. .HasCharSet("utf8")
  7917. .HasCollation("utf8_general_ci");
  7918. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7919. entity.Property(e => e.Version).HasColumnType("int(11)");
  7920. });
  7921. modelBuilder.Entity<UserAuthRecord>(entity =>
  7922. {
  7923. entity.Property(e => e.Id).HasColumnType("int(11)");
  7924. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  7925. entity.Property(e => e.BankCardAccount)
  7926. .HasColumnType("varchar(32)")
  7927. .HasCharSet("utf8")
  7928. .HasCollation("utf8_general_ci");
  7929. entity.Property(e => e.BankMobile)
  7930. .HasColumnType("varchar(11)")
  7931. .HasCharSet("utf8")
  7932. .HasCollation("utf8_general_ci");
  7933. entity.Property(e => e.BankName)
  7934. .HasColumnType("varchar(64)")
  7935. .HasCharSet("utf8")
  7936. .HasCollation("utf8_general_ci");
  7937. entity.Property(e => e.ChannelCode)
  7938. .HasColumnType("varchar(16)")
  7939. .HasCharSet("utf8")
  7940. .HasCollation("utf8_general_ci");
  7941. entity.Property(e => e.ChannelName)
  7942. .HasColumnType("varchar(32)")
  7943. .HasCharSet("utf8")
  7944. .HasCollation("utf8_general_ci");
  7945. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7946. entity.Property(e => e.CreateMan)
  7947. .HasColumnType("varchar(50)")
  7948. .HasCharSet("utf8")
  7949. .HasCollation("utf8_general_ci");
  7950. entity.Property(e => e.IdcardNo)
  7951. .HasColumnType("varchar(18)")
  7952. .HasCharSet("utf8")
  7953. .HasCollation("utf8_general_ci");
  7954. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7955. entity.Property(e => e.RealName)
  7956. .HasColumnType("varchar(32)")
  7957. .HasCharSet("utf8")
  7958. .HasCollation("utf8_general_ci");
  7959. entity.Property(e => e.ReqData)
  7960. .HasColumnType("varchar(2048)")
  7961. .HasCharSet("utf8")
  7962. .HasCollation("utf8_general_ci");
  7963. entity.Property(e => e.ResData)
  7964. .HasColumnType("varchar(2048)")
  7965. .HasCharSet("utf8")
  7966. .HasCollation("utf8_general_ci");
  7967. entity.Property(e => e.ReturnCode)
  7968. .HasColumnType("varchar(32)")
  7969. .HasCharSet("utf8")
  7970. .HasCollation("utf8_general_ci");
  7971. entity.Property(e => e.ReturnMsg)
  7972. .HasColumnType("varchar(128)")
  7973. .HasCharSet("utf8")
  7974. .HasCollation("utf8_general_ci");
  7975. entity.Property(e => e.SeoDescription)
  7976. .HasColumnType("varchar(500)")
  7977. .HasCharSet("utf8")
  7978. .HasCollation("utf8_general_ci");
  7979. entity.Property(e => e.SeoKeyword)
  7980. .HasColumnType("varchar(200)")
  7981. .HasCharSet("utf8")
  7982. .HasCollation("utf8_general_ci");
  7983. entity.Property(e => e.SeoTitle)
  7984. .HasColumnType("varchar(100)")
  7985. .HasCharSet("utf8")
  7986. .HasCollation("utf8_general_ci");
  7987. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7988. entity.Property(e => e.Status).HasColumnType("int(11)");
  7989. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7990. entity.Property(e => e.UpdateMan)
  7991. .HasColumnType("varchar(50)")
  7992. .HasCharSet("utf8")
  7993. .HasCollation("utf8_general_ci");
  7994. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7995. entity.Property(e => e.Version).HasColumnType("int(11)");
  7996. });
  7997. modelBuilder.Entity<UserBack>(entity =>
  7998. {
  7999. entity.Property(e => e.Id).HasColumnType("int(11)");
  8000. entity.Property(e => e.BackKind).HasColumnType("int(11)");
  8001. entity.Property(e => e.BackStatus).HasColumnType("int(11)");
  8002. entity.Property(e => e.Content)
  8003. .HasColumnType("varchar(100)")
  8004. .HasCharSet("utf8")
  8005. .HasCollation("utf8_general_ci");
  8006. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8007. entity.Property(e => e.CreateMan)
  8008. .HasColumnType("varchar(50)")
  8009. .HasCharSet("utf8")
  8010. .HasCollation("utf8_general_ci");
  8011. entity.Property(e => e.IsPhoneCallBack)
  8012. .HasColumnType("bit(1)")
  8013. .HasDefaultValueSql("b'0'");
  8014. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8015. entity.Property(e => e.ReplyContent)
  8016. .HasColumnType("mediumtext")
  8017. .HasCharSet("utf8")
  8018. .HasCollation("utf8_general_ci");
  8019. entity.Property(e => e.SeoDescription)
  8020. .HasColumnType("varchar(500)")
  8021. .HasCharSet("utf8")
  8022. .HasCollation("utf8_general_ci");
  8023. entity.Property(e => e.SeoKeyword)
  8024. .HasColumnType("varchar(200)")
  8025. .HasCharSet("utf8")
  8026. .HasCollation("utf8_general_ci");
  8027. entity.Property(e => e.SeoTitle)
  8028. .HasColumnType("varchar(100)")
  8029. .HasCharSet("utf8")
  8030. .HasCollation("utf8_general_ci");
  8031. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8032. entity.Property(e => e.Status).HasColumnType("int(11)");
  8033. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8034. entity.Property(e => e.UpdateMan)
  8035. .HasColumnType("varchar(50)")
  8036. .HasCharSet("utf8")
  8037. .HasCollation("utf8_general_ci");
  8038. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8039. entity.Property(e => e.Version).HasColumnType("int(11)");
  8040. });
  8041. modelBuilder.Entity<UserBackKind>(entity =>
  8042. {
  8043. entity.Property(e => e.Id).HasColumnType("int(11)");
  8044. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8045. entity.Property(e => e.CreateMan)
  8046. .HasColumnType("varchar(50)")
  8047. .HasCharSet("utf8")
  8048. .HasCollation("utf8_general_ci");
  8049. entity.Property(e => e.Name)
  8050. .HasColumnType("varchar(50)")
  8051. .HasCharSet("utf8")
  8052. .HasCollation("utf8_general_ci");
  8053. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8054. entity.Property(e => e.SeoDescription)
  8055. .HasColumnType("varchar(500)")
  8056. .HasCharSet("utf8")
  8057. .HasCollation("utf8_general_ci");
  8058. entity.Property(e => e.SeoKeyword)
  8059. .HasColumnType("varchar(200)")
  8060. .HasCharSet("utf8")
  8061. .HasCollation("utf8_general_ci");
  8062. entity.Property(e => e.SeoTitle)
  8063. .HasColumnType("varchar(100)")
  8064. .HasCharSet("utf8")
  8065. .HasCollation("utf8_general_ci");
  8066. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8067. entity.Property(e => e.Status).HasColumnType("int(11)");
  8068. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8069. entity.Property(e => e.UpdateMan)
  8070. .HasColumnType("varchar(50)")
  8071. .HasCharSet("utf8")
  8072. .HasCollation("utf8_general_ci");
  8073. entity.Property(e => e.Version).HasColumnType("int(11)");
  8074. });
  8075. modelBuilder.Entity<UserBalanceTop>(entity =>
  8076. {
  8077. entity.Property(e => e.Id).HasColumnType("int(11)");
  8078. entity.Property(e => e.Balance).HasColumnType("decimal(18,2)");
  8079. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8080. entity.Property(e => e.CreateMan)
  8081. .HasColumnType("varchar(50)")
  8082. .HasCharSet("utf8")
  8083. .HasCollation("utf8_general_ci");
  8084. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8085. entity.Property(e => e.SeoDescription)
  8086. .HasColumnType("varchar(500)")
  8087. .HasCharSet("utf8")
  8088. .HasCollation("utf8_general_ci");
  8089. entity.Property(e => e.SeoKeyword)
  8090. .HasColumnType("varchar(200)")
  8091. .HasCharSet("utf8")
  8092. .HasCollation("utf8_general_ci");
  8093. entity.Property(e => e.SeoTitle)
  8094. .HasColumnType("varchar(100)")
  8095. .HasCharSet("utf8")
  8096. .HasCollation("utf8_general_ci");
  8097. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8098. entity.Property(e => e.StatDate)
  8099. .HasColumnType("varchar(8)")
  8100. .HasCharSet("utf8")
  8101. .HasCollation("utf8_general_ci");
  8102. entity.Property(e => e.StatMonth)
  8103. .HasColumnType("varchar(6)")
  8104. .HasCharSet("utf8")
  8105. .HasCollation("utf8_general_ci");
  8106. entity.Property(e => e.Status).HasColumnType("int(11)");
  8107. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8108. entity.Property(e => e.UpdateMan)
  8109. .HasColumnType("varchar(50)")
  8110. .HasCharSet("utf8")
  8111. .HasCollation("utf8_general_ci");
  8112. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8113. entity.Property(e => e.Version).HasColumnType("int(11)");
  8114. });
  8115. modelBuilder.Entity<UserCar>(entity =>
  8116. {
  8117. entity.Property(e => e.Id).HasColumnType("int(11)");
  8118. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  8119. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8120. entity.Property(e => e.CreateMan)
  8121. .HasColumnType("varchar(50)")
  8122. .HasCharSet("utf8")
  8123. .HasCollation("utf8_general_ci");
  8124. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8125. entity.Property(e => e.NormId).HasColumnType("int(11)");
  8126. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  8127. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8128. entity.Property(e => e.SeoDescription)
  8129. .HasColumnType("varchar(500)")
  8130. .HasCharSet("utf8")
  8131. .HasCollation("utf8_general_ci");
  8132. entity.Property(e => e.SeoKeyword)
  8133. .HasColumnType("varchar(200)")
  8134. .HasCharSet("utf8")
  8135. .HasCollation("utf8_general_ci");
  8136. entity.Property(e => e.SeoTitle)
  8137. .HasColumnType("varchar(100)")
  8138. .HasCharSet("utf8")
  8139. .HasCollation("utf8_general_ci");
  8140. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8141. entity.Property(e => e.Status).HasColumnType("int(11)");
  8142. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8143. entity.Property(e => e.UpdateMan)
  8144. .HasColumnType("varchar(50)")
  8145. .HasCharSet("utf8")
  8146. .HasCollation("utf8_general_ci");
  8147. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8148. entity.Property(e => e.Version).HasColumnType("int(11)");
  8149. });
  8150. modelBuilder.Entity<UserCardForWeChat>(entity =>
  8151. {
  8152. entity.Property(e => e.Id).HasColumnType("int(11)");
  8153. entity.Property(e => e.BrandName)
  8154. .HasColumnType("varchar(12)")
  8155. .HasCharSet("utf8")
  8156. .HasCollation("utf8_general_ci");
  8157. entity.Property(e => e.CardId)
  8158. .HasColumnType("varchar(50)")
  8159. .HasCharSet("utf8")
  8160. .HasCollation("utf8_general_ci");
  8161. entity.Property(e => e.CardType)
  8162. .HasColumnType("varchar(30)")
  8163. .HasCharSet("utf8")
  8164. .HasCollation("utf8_general_ci");
  8165. entity.Property(e => e.CodeType)
  8166. .HasColumnType("varchar(50)")
  8167. .HasCharSet("utf8")
  8168. .HasCollation("utf8_general_ci");
  8169. entity.Property(e => e.Color)
  8170. .HasColumnType("varchar(20)")
  8171. .HasCharSet("utf8")
  8172. .HasCollation("utf8_general_ci");
  8173. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8174. entity.Property(e => e.CreateMan)
  8175. .HasColumnType("varchar(50)")
  8176. .HasCharSet("utf8")
  8177. .HasCollation("utf8_general_ci");
  8178. entity.Property(e => e.DateType)
  8179. .HasColumnType("varchar(50)")
  8180. .HasCharSet("utf8")
  8181. .HasCollation("utf8_general_ci");
  8182. entity.Property(e => e.Description)
  8183. .HasColumnType("varchar(1024)")
  8184. .HasCharSet("utf8")
  8185. .HasCollation("utf8_general_ci");
  8186. entity.Property(e => e.EnterName)
  8187. .HasColumnType("varchar(15)")
  8188. .HasCharSet("utf8")
  8189. .HasCollation("utf8_general_ci");
  8190. entity.Property(e => e.EnterTips)
  8191. .HasColumnType("varchar(6)")
  8192. .HasCharSet("utf8")
  8193. .HasCollation("utf8_general_ci");
  8194. entity.Property(e => e.EnterUrl)
  8195. .HasColumnType("varchar(200)")
  8196. .HasCharSet("utf8")
  8197. .HasCollation("utf8_general_ci");
  8198. entity.Property(e => e.LogoUrl)
  8199. .HasColumnType("varchar(200)")
  8200. .HasCharSet("utf8")
  8201. .HasCollation("utf8_general_ci");
  8202. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8203. entity.Property(e => e.Notice)
  8204. .HasColumnType("varchar(16)")
  8205. .HasCharSet("utf8")
  8206. .HasCollation("utf8_general_ci");
  8207. entity.Property(e => e.Prerogative)
  8208. .HasColumnType("varchar(1024)")
  8209. .HasCharSet("utf8")
  8210. .HasCollation("utf8_general_ci");
  8211. entity.Property(e => e.Quantity).HasColumnType("int(11)");
  8212. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8213. entity.Property(e => e.SeoDescription)
  8214. .HasColumnType("varchar(500)")
  8215. .HasCharSet("utf8")
  8216. .HasCollation("utf8_general_ci");
  8217. entity.Property(e => e.SeoKeyword)
  8218. .HasColumnType("varchar(200)")
  8219. .HasCharSet("utf8")
  8220. .HasCollation("utf8_general_ci");
  8221. entity.Property(e => e.SeoTitle)
  8222. .HasColumnType("varchar(100)")
  8223. .HasCharSet("utf8")
  8224. .HasCollation("utf8_general_ci");
  8225. entity.Property(e => e.Sku)
  8226. .HasColumnType("mediumtext")
  8227. .HasCharSet("utf8")
  8228. .HasCollation("utf8_general_ci");
  8229. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8230. entity.Property(e => e.Status).HasColumnType("int(11)");
  8231. entity.Property(e => e.SupplyBalance)
  8232. .HasColumnType("bit(1)")
  8233. .HasDefaultValueSql("b'0'");
  8234. entity.Property(e => e.SupplyBonus)
  8235. .HasColumnType("bit(1)")
  8236. .HasDefaultValueSql("b'0'");
  8237. entity.Property(e => e.Title)
  8238. .HasColumnType("varchar(9)")
  8239. .HasCharSet("utf8")
  8240. .HasCollation("utf8_general_ci");
  8241. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8242. entity.Property(e => e.UpdateMan)
  8243. .HasColumnType("varchar(50)")
  8244. .HasCharSet("utf8")
  8245. .HasCollation("utf8_general_ci");
  8246. entity.Property(e => e.Version).HasColumnType("int(11)");
  8247. });
  8248. modelBuilder.Entity<UserCardRecord>(entity =>
  8249. {
  8250. entity.Property(e => e.Id).HasColumnType("int(11)");
  8251. entity.Property(e => e.CardId).HasColumnType("int(11)");
  8252. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  8253. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8254. entity.Property(e => e.CreateMan)
  8255. .HasColumnType("varchar(50)")
  8256. .HasCharSet("utf8")
  8257. .HasCollation("utf8_general_ci");
  8258. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8259. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8260. entity.Property(e => e.SeoDescription)
  8261. .HasColumnType("varchar(500)")
  8262. .HasCharSet("utf8")
  8263. .HasCollation("utf8_general_ci");
  8264. entity.Property(e => e.SeoKeyword)
  8265. .HasColumnType("varchar(200)")
  8266. .HasCharSet("utf8")
  8267. .HasCollation("utf8_general_ci");
  8268. entity.Property(e => e.SeoTitle)
  8269. .HasColumnType("varchar(100)")
  8270. .HasCharSet("utf8")
  8271. .HasCollation("utf8_general_ci");
  8272. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8273. entity.Property(e => e.Status).HasColumnType("int(11)");
  8274. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8275. entity.Property(e => e.UpdateMan)
  8276. .HasColumnType("varchar(50)")
  8277. .HasCharSet("utf8")
  8278. .HasCollation("utf8_general_ci");
  8279. entity.Property(e => e.Version).HasColumnType("int(11)");
  8280. });
  8281. modelBuilder.Entity<UserCashRecord>(entity =>
  8282. {
  8283. entity.Property(e => e.Id).HasColumnType("int(11)");
  8284. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  8285. entity.Property(e => e.CashOrderNo)
  8286. .HasColumnType("varchar(32)")
  8287. .HasCharSet("utf8")
  8288. .HasCollation("utf8_general_ci");
  8289. entity.Property(e => e.ChanelName)
  8290. .HasColumnType("varchar(32)")
  8291. .HasCharSet("utf8")
  8292. .HasCollation("utf8_general_ci");
  8293. entity.Property(e => e.ChannelCode)
  8294. .HasColumnType("varchar(16)")
  8295. .HasCharSet("utf8")
  8296. .HasCollation("utf8_general_ci");
  8297. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8298. entity.Property(e => e.CreateMan)
  8299. .HasColumnType("varchar(50)")
  8300. .HasCharSet("utf8")
  8301. .HasCollation("utf8_general_ci");
  8302. entity.Property(e => e.IdCardNo)
  8303. .HasColumnType("varchar(18)")
  8304. .HasCharSet("utf8")
  8305. .HasCollation("utf8_general_ci");
  8306. entity.Property(e => e.Ip)
  8307. .HasColumnType("varchar(15)")
  8308. .HasCharSet("utf8")
  8309. .HasCollation("utf8_general_ci");
  8310. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  8311. entity.Property(e => e.MediaSource)
  8312. .HasColumnType("varchar(16)")
  8313. .HasCharSet("utf8")
  8314. .HasCollation("utf8_general_ci");
  8315. entity.Property(e => e.PayTradeNo)
  8316. .HasColumnType("varchar(32)")
  8317. .HasCharSet("utf8")
  8318. .HasCollation("utf8_general_ci");
  8319. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  8320. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8321. entity.Property(e => e.Remark)
  8322. .HasColumnType("varchar(128)")
  8323. .HasCharSet("utf8")
  8324. .HasCollation("utf8_general_ci");
  8325. entity.Property(e => e.ReqData)
  8326. .HasColumnType("varchar(2048)")
  8327. .HasCharSet("utf8")
  8328. .HasCollation("utf8_general_ci");
  8329. entity.Property(e => e.ResData)
  8330. .HasColumnType("varchar(2048)")
  8331. .HasCharSet("utf8")
  8332. .HasCollation("utf8_general_ci");
  8333. entity.Property(e => e.ReturnCode)
  8334. .HasColumnType("varchar(32)")
  8335. .HasCharSet("utf8")
  8336. .HasCollation("utf8_general_ci");
  8337. entity.Property(e => e.ReturnMsg)
  8338. .HasColumnType("varchar(128)")
  8339. .HasCharSet("utf8")
  8340. .HasCollation("utf8_general_ci");
  8341. entity.Property(e => e.SeoDescription)
  8342. .HasColumnType("varchar(500)")
  8343. .HasCharSet("utf8")
  8344. .HasCollation("utf8_general_ci");
  8345. entity.Property(e => e.SeoKeyword)
  8346. .HasColumnType("varchar(200)")
  8347. .HasCharSet("utf8")
  8348. .HasCollation("utf8_general_ci");
  8349. entity.Property(e => e.SeoTitle)
  8350. .HasColumnType("varchar(100)")
  8351. .HasCharSet("utf8")
  8352. .HasCollation("utf8_general_ci");
  8353. entity.Property(e => e.SettleBankCardNo)
  8354. .HasColumnType("varchar(32)")
  8355. .HasCharSet("utf8")
  8356. .HasCollation("utf8_general_ci");
  8357. entity.Property(e => e.SettleBankName)
  8358. .HasColumnType("varchar(64)")
  8359. .HasCharSet("utf8")
  8360. .HasCollation("utf8_general_ci");
  8361. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8362. entity.Property(e => e.Status).HasColumnType("int(11)");
  8363. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8364. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  8365. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  8366. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8367. entity.Property(e => e.UpdateMan)
  8368. .HasColumnType("varchar(50)")
  8369. .HasCharSet("utf8")
  8370. .HasCollation("utf8_general_ci");
  8371. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8372. entity.Property(e => e.Version).HasColumnType("int(11)");
  8373. });
  8374. modelBuilder.Entity<UserCenterIconList>(entity =>
  8375. {
  8376. entity.Property(e => e.Id).HasColumnType("int(11)");
  8377. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8378. entity.Property(e => e.CreateMan)
  8379. .HasColumnType("varchar(50)")
  8380. .HasCharSet("utf8")
  8381. .HasCollation("utf8_general_ci");
  8382. entity.Property(e => e.Icon)
  8383. .HasColumnType("varchar(200)")
  8384. .HasCharSet("utf8")
  8385. .HasCollation("utf8_general_ci");
  8386. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8387. entity.Property(e => e.SeoDescription)
  8388. .HasColumnType("varchar(500)")
  8389. .HasCharSet("utf8")
  8390. .HasCollation("utf8_general_ci");
  8391. entity.Property(e => e.SeoKeyword)
  8392. .HasColumnType("varchar(200)")
  8393. .HasCharSet("utf8")
  8394. .HasCollation("utf8_general_ci");
  8395. entity.Property(e => e.SeoTitle)
  8396. .HasColumnType("varchar(100)")
  8397. .HasCharSet("utf8")
  8398. .HasCollation("utf8_general_ci");
  8399. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8400. entity.Property(e => e.Status).HasColumnType("int(11)");
  8401. entity.Property(e => e.Title)
  8402. .HasColumnType("varchar(50)")
  8403. .HasCharSet("utf8")
  8404. .HasCollation("utf8_general_ci");
  8405. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8406. entity.Property(e => e.UpdateMan)
  8407. .HasColumnType("varchar(50)")
  8408. .HasCharSet("utf8")
  8409. .HasCollation("utf8_general_ci");
  8410. entity.Property(e => e.Url)
  8411. .HasColumnType("varchar(50)")
  8412. .HasCharSet("utf8")
  8413. .HasCollation("utf8_general_ci");
  8414. entity.Property(e => e.Version).HasColumnType("int(11)");
  8415. });
  8416. modelBuilder.Entity<UserCollection>(entity =>
  8417. {
  8418. entity.Property(e => e.Id).HasColumnType("int(11)");
  8419. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8420. entity.Property(e => e.CreateMan)
  8421. .HasColumnType("varchar(50)")
  8422. .HasCharSet("utf8")
  8423. .HasCollation("utf8_general_ci");
  8424. entity.Property(e => e.DataId).HasColumnType("int(11)");
  8425. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8426. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8427. entity.Property(e => e.SeoDescription)
  8428. .HasColumnType("varchar(500)")
  8429. .HasCharSet("utf8")
  8430. .HasCollation("utf8_general_ci");
  8431. entity.Property(e => e.SeoKeyword)
  8432. .HasColumnType("varchar(200)")
  8433. .HasCharSet("utf8")
  8434. .HasCollation("utf8_general_ci");
  8435. entity.Property(e => e.SeoTitle)
  8436. .HasColumnType("varchar(100)")
  8437. .HasCharSet("utf8")
  8438. .HasCollation("utf8_general_ci");
  8439. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8440. entity.Property(e => e.Status).HasColumnType("int(11)");
  8441. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8442. entity.Property(e => e.UpdateMan)
  8443. .HasColumnType("varchar(50)")
  8444. .HasCharSet("utf8")
  8445. .HasCollation("utf8_general_ci");
  8446. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8447. entity.Property(e => e.Version).HasColumnType("int(11)");
  8448. });
  8449. modelBuilder.Entity<UserData>(entity =>
  8450. {
  8451. entity.HasKey(e => e.UserId)
  8452. .HasName("PRIMARY");
  8453. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8454. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  8455. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  8456. entity.Property(e => e.CollectionCount).HasColumnType("int(11)");
  8457. entity.Property(e => e.Coupons).HasColumnType("decimal(18,2)");
  8458. entity.Property(e => e.CurMoney).HasColumnType("decimal(18,2)");
  8459. entity.Property(e => e.FansCount).HasColumnType("int(11)");
  8460. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  8461. entity.Property(e => e.GrowthValue).HasColumnType("int(11)");
  8462. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  8463. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  8464. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  8465. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  8466. entity.Property(e => e.ToCommentOrderCount).HasColumnType("int(11)");
  8467. entity.Property(e => e.ToPayOrderCount).HasColumnType("int(11)");
  8468. entity.Property(e => e.ToReceiveOrderCount).HasColumnType("int(11)");
  8469. entity.Property(e => e.ToRefundOrderCount).HasColumnType("int(11)");
  8470. entity.Property(e => e.ToSendOrderCount).HasColumnType("int(11)");
  8471. entity.Property(e => e.TotalOrderMoney).HasColumnType("decimal(18,2)");
  8472. entity.Property(e => e.TotalUseIntegral).HasColumnType("decimal(18,2)");
  8473. });
  8474. modelBuilder.Entity<UserDetail>(entity =>
  8475. {
  8476. entity.Property(e => e.Id).HasColumnType("int(11)");
  8477. entity.Property(e => e.AddMan).HasColumnType("int(11)");
  8478. entity.Property(e => e.Birthday).HasColumnType("datetime");
  8479. entity.Property(e => e.CardAddAddress).HasColumnType("int(11)");
  8480. entity.Property(e => e.CardExpireDate).HasColumnType("datetime");
  8481. entity.Property(e => e.EduLevel).HasColumnType("int(11)");
  8482. entity.Property(e => e.Email)
  8483. .HasColumnType("varchar(50)")
  8484. .HasCharSet("utf8")
  8485. .HasCollation("utf8_general_ci");
  8486. entity.Property(e => e.FamilyIncome).HasColumnType("int(11)");
  8487. entity.Property(e => e.Interests)
  8488. .HasColumnType("varchar(200)")
  8489. .HasCharSet("utf8")
  8490. .HasCollation("utf8_general_ci");
  8491. entity.Property(e => e.Note)
  8492. .HasColumnType("longtext")
  8493. .HasCharSet("utf8")
  8494. .HasCollation("utf8_general_ci");
  8495. entity.Property(e => e.OfficePhone)
  8496. .HasColumnType("varchar(50)")
  8497. .HasCharSet("utf8")
  8498. .HasCollation("utf8_general_ci");
  8499. entity.Property(e => e.PostalCode)
  8500. .HasColumnType("varchar(6)")
  8501. .HasCharSet("utf8")
  8502. .HasCollation("utf8_general_ci");
  8503. entity.Property(e => e.PrivatePhone)
  8504. .HasColumnType("varchar(50)")
  8505. .HasCharSet("utf8")
  8506. .HasCollation("utf8_general_ci");
  8507. entity.Property(e => e.ToShopDate).HasColumnType("datetime");
  8508. entity.Property(e => e.TrafficTool).HasColumnType("int(11)");
  8509. entity.Property(e => e.UpdateMan).HasColumnType("int(11)");
  8510. entity.Property(e => e.UserJob).HasColumnType("int(11)");
  8511. });
  8512. modelBuilder.Entity<UserFamilyMember>(entity =>
  8513. {
  8514. entity.Property(e => e.Id).HasColumnType("int(11)");
  8515. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8516. entity.Property(e => e.CreateMan)
  8517. .HasColumnType("varchar(50)")
  8518. .HasCharSet("utf8")
  8519. .HasCollation("utf8_general_ci");
  8520. entity.Property(e => e.IdCardNo)
  8521. .HasColumnType("varchar(18)")
  8522. .HasCharSet("utf8")
  8523. .HasCollation("utf8_general_ci");
  8524. entity.Property(e => e.Job).HasColumnType("int(11)");
  8525. entity.Property(e => e.MemberKind).HasColumnType("int(11)");
  8526. entity.Property(e => e.Mobile)
  8527. .HasColumnType("varchar(11)")
  8528. .HasCharSet("utf8")
  8529. .HasCollation("utf8_general_ci");
  8530. entity.Property(e => e.Name)
  8531. .HasColumnType("varchar(20)")
  8532. .HasCharSet("utf8")
  8533. .HasCollation("utf8_general_ci");
  8534. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8535. entity.Property(e => e.SeoDescription)
  8536. .HasColumnType("varchar(500)")
  8537. .HasCharSet("utf8")
  8538. .HasCollation("utf8_general_ci");
  8539. entity.Property(e => e.SeoKeyword)
  8540. .HasColumnType("varchar(200)")
  8541. .HasCharSet("utf8")
  8542. .HasCollation("utf8_general_ci");
  8543. entity.Property(e => e.SeoTitle)
  8544. .HasColumnType("varchar(100)")
  8545. .HasCharSet("utf8")
  8546. .HasCollation("utf8_general_ci");
  8547. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8548. entity.Property(e => e.Status).HasColumnType("int(11)");
  8549. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8550. entity.Property(e => e.UpdateMan)
  8551. .HasColumnType("varchar(50)")
  8552. .HasCharSet("utf8")
  8553. .HasCollation("utf8_general_ci");
  8554. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8555. entity.Property(e => e.Version).HasColumnType("int(11)");
  8556. });
  8557. modelBuilder.Entity<UserForMakerCode>(entity =>
  8558. {
  8559. entity.HasKey(e => e.MakerCode)
  8560. .HasName("PRIMARY");
  8561. entity.Property(e => e.MakerCode)
  8562. .HasColumnType("varchar(30)")
  8563. .HasCharSet("utf8")
  8564. .HasCollation("utf8_general_ci");
  8565. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8566. });
  8567. modelBuilder.Entity<UserForMobile>(entity =>
  8568. {
  8569. entity.HasKey(e => e.Mobile)
  8570. .HasName("PRIMARY");
  8571. entity.Property(e => e.Mobile)
  8572. .HasColumnType("varchar(11)")
  8573. .HasCharSet("utf8")
  8574. .HasCollation("utf8_general_ci");
  8575. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8576. });
  8577. modelBuilder.Entity<UserForRealName>(entity =>
  8578. {
  8579. entity.HasKey(e => e.RealName)
  8580. .HasName("PRIMARY");
  8581. entity.Property(e => e.RealName)
  8582. .HasColumnType("varchar(30)")
  8583. .HasCharSet("utf8")
  8584. .HasCollation("utf8_general_ci");
  8585. entity.Property(e => e.UserId)
  8586. .HasColumnType("varchar(100)")
  8587. .HasCharSet("utf8")
  8588. .HasCollation("utf8_general_ci");
  8589. });
  8590. modelBuilder.Entity<UserFriend>(entity =>
  8591. {
  8592. entity.Property(e => e.Id).HasColumnType("int(11)");
  8593. entity.Property(e => e.FriendId).HasColumnType("int(11)");
  8594. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8595. });
  8596. modelBuilder.Entity<UserGroup>(entity =>
  8597. {
  8598. entity.Property(e => e.Id).HasColumnType("int(11)");
  8599. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8600. entity.Property(e => e.CreateMan)
  8601. .HasColumnType("varchar(50)")
  8602. .HasCharSet("utf8")
  8603. .HasCollation("utf8_general_ci");
  8604. entity.Property(e => e.Details)
  8605. .HasColumnType("varchar(200)")
  8606. .HasCharSet("utf8")
  8607. .HasCollation("utf8_general_ci");
  8608. entity.Property(e => e.Name)
  8609. .HasColumnType("varchar(20)")
  8610. .HasCharSet("utf8")
  8611. .HasCollation("utf8_general_ci");
  8612. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8613. entity.Property(e => e.SeoDescription)
  8614. .HasColumnType("varchar(500)")
  8615. .HasCharSet("utf8")
  8616. .HasCollation("utf8_general_ci");
  8617. entity.Property(e => e.SeoKeyword)
  8618. .HasColumnType("varchar(200)")
  8619. .HasCharSet("utf8")
  8620. .HasCollation("utf8_general_ci");
  8621. entity.Property(e => e.SeoTitle)
  8622. .HasColumnType("varchar(100)")
  8623. .HasCharSet("utf8")
  8624. .HasCollation("utf8_general_ci");
  8625. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8626. entity.Property(e => e.Status).HasColumnType("int(11)");
  8627. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8628. entity.Property(e => e.UpdateMan)
  8629. .HasColumnType("varchar(50)")
  8630. .HasCharSet("utf8")
  8631. .HasCollation("utf8_general_ci");
  8632. entity.Property(e => e.Version).HasColumnType("int(11)");
  8633. });
  8634. modelBuilder.Entity<UserLevelSet>(entity =>
  8635. {
  8636. entity.Property(e => e.Id).HasColumnType("int(11)");
  8637. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8638. entity.Property(e => e.CreateMan)
  8639. .HasColumnType("varchar(50)")
  8640. .HasCharSet("utf8")
  8641. .HasCollation("utf8_general_ci");
  8642. entity.Property(e => e.Details)
  8643. .HasColumnType("varchar(200)")
  8644. .HasCharSet("utf8")
  8645. .HasCollation("utf8_general_ci");
  8646. entity.Property(e => e.Name)
  8647. .HasColumnType("varchar(20)")
  8648. .HasCharSet("utf8")
  8649. .HasCollation("utf8_general_ci");
  8650. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8651. entity.Property(e => e.SeoDescription)
  8652. .HasColumnType("varchar(500)")
  8653. .HasCharSet("utf8")
  8654. .HasCollation("utf8_general_ci");
  8655. entity.Property(e => e.SeoKeyword)
  8656. .HasColumnType("varchar(200)")
  8657. .HasCharSet("utf8")
  8658. .HasCollation("utf8_general_ci");
  8659. entity.Property(e => e.SeoTitle)
  8660. .HasColumnType("varchar(100)")
  8661. .HasCharSet("utf8")
  8662. .HasCollation("utf8_general_ci");
  8663. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8664. entity.Property(e => e.Status).HasColumnType("int(11)");
  8665. entity.Property(e => e.UpLevelDays).HasColumnType("int(11)");
  8666. entity.Property(e => e.UpLevelGrowth).HasColumnType("int(11)");
  8667. entity.Property(e => e.UpLevelIntegral).HasColumnType("decimal(10,0)");
  8668. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8669. entity.Property(e => e.UpdateMan)
  8670. .HasColumnType("varchar(50)")
  8671. .HasCharSet("utf8")
  8672. .HasCollation("utf8_general_ci");
  8673. entity.Property(e => e.Version).HasColumnType("int(11)");
  8674. });
  8675. modelBuilder.Entity<UserLoginRecord>(entity =>
  8676. {
  8677. entity.Property(e => e.Id).HasColumnType("int(11)");
  8678. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8679. entity.Property(e => e.CreateMan)
  8680. .HasColumnType("varchar(50)")
  8681. .HasCharSet("utf8")
  8682. .HasCollation("utf8_general_ci");
  8683. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8684. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8685. entity.Property(e => e.SeoDescription)
  8686. .HasColumnType("varchar(500)")
  8687. .HasCharSet("utf8")
  8688. .HasCollation("utf8_general_ci");
  8689. entity.Property(e => e.SeoKeyword)
  8690. .HasColumnType("varchar(200)")
  8691. .HasCharSet("utf8")
  8692. .HasCollation("utf8_general_ci");
  8693. entity.Property(e => e.SeoTitle)
  8694. .HasColumnType("varchar(100)")
  8695. .HasCharSet("utf8")
  8696. .HasCollation("utf8_general_ci");
  8697. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8698. entity.Property(e => e.Status).HasColumnType("int(11)");
  8699. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8700. entity.Property(e => e.UpdateMan)
  8701. .HasColumnType("varchar(50)")
  8702. .HasCharSet("utf8")
  8703. .HasCollation("utf8_general_ci");
  8704. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8705. entity.Property(e => e.Version).HasColumnType("int(11)");
  8706. });
  8707. modelBuilder.Entity<UserMachineData>(entity =>
  8708. {
  8709. entity.HasKey(e => e.IdBrand)
  8710. .HasName("PRIMARY");
  8711. entity.Property(e => e.IdBrand)
  8712. .HasColumnType("varchar(50)")
  8713. .HasCharSet("utf8")
  8714. .HasCollation("utf8_general_ci");
  8715. entity.Property(e => e.ActProfit).HasColumnType("decimal(18,2)");
  8716. entity.Property(e => e.BindCount).HasColumnType("int(11)");
  8717. entity.Property(e => e.DividendsProfit).HasColumnType("decimal(18,2)");
  8718. entity.Property(e => e.FluxProfit).HasColumnType("decimal(18,2)");
  8719. entity.Property(e => e.OpenProfit).HasColumnType("decimal(18,2)");
  8720. entity.Property(e => e.OtherProfit).HasColumnType("decimal(18,2)");
  8721. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  8722. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  8723. entity.Property(e => e.UnBindCount).HasColumnType("int(11)");
  8724. });
  8725. modelBuilder.Entity<UserMallLargeSn>(entity =>
  8726. {
  8727. entity.Property(e => e.Id).HasColumnType("int(11)");
  8728. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8729. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8730. entity.Property(e => e.CreateMan)
  8731. .HasColumnType("varchar(50)")
  8732. .HasCharSet("utf8")
  8733. .HasCollation("utf8_general_ci");
  8734. entity.Property(e => e.OrderAmount).HasColumnType("decimal(18,2)");
  8735. entity.Property(e => e.OrderNo)
  8736. .HasColumnType("varchar(32)")
  8737. .HasCharSet("utf8")
  8738. .HasCollation("utf8_general_ci");
  8739. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  8740. entity.Property(e => e.ProductName)
  8741. .HasColumnType("varchar(32)")
  8742. .HasCharSet("utf8")
  8743. .HasCollation("utf8_general_ci");
  8744. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8745. entity.Property(e => e.Remark)
  8746. .HasColumnType("varchar(64)")
  8747. .HasCharSet("utf8")
  8748. .HasCollation("utf8_general_ci");
  8749. entity.Property(e => e.RuleOrderAmt).HasColumnType("decimal(18,2)");
  8750. entity.Property(e => e.SeoDescription)
  8751. .HasColumnType("varchar(500)")
  8752. .HasCharSet("utf8")
  8753. .HasCollation("utf8_general_ci");
  8754. entity.Property(e => e.SeoKeyword)
  8755. .HasColumnType("varchar(200)")
  8756. .HasCharSet("utf8")
  8757. .HasCollation("utf8_general_ci");
  8758. entity.Property(e => e.SeoTitle)
  8759. .HasColumnType("varchar(100)")
  8760. .HasCharSet("utf8")
  8761. .HasCollation("utf8_general_ci");
  8762. entity.Property(e => e.SnNo)
  8763. .HasColumnType("varchar(32)")
  8764. .HasCharSet("utf8")
  8765. .HasCollation("utf8_general_ci");
  8766. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8767. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  8768. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8769. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8770. entity.Property(e => e.Status).HasColumnType("int(11)");
  8771. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  8772. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8773. entity.Property(e => e.UpdateMan)
  8774. .HasColumnType("varchar(50)")
  8775. .HasCharSet("utf8")
  8776. .HasCollation("utf8_general_ci");
  8777. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8778. entity.Property(e => e.Version).HasColumnType("int(11)");
  8779. });
  8780. modelBuilder.Entity<UserOfflineSignInRecords>(entity =>
  8781. {
  8782. entity.Property(e => e.Id).HasColumnType("int(11)");
  8783. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8784. entity.Property(e => e.CreateMan)
  8785. .HasColumnType("varchar(50)")
  8786. .HasCharSet("utf8")
  8787. .HasCollation("utf8_general_ci");
  8788. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8789. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8790. entity.Property(e => e.SeoDescription)
  8791. .HasColumnType("varchar(500)")
  8792. .HasCharSet("utf8")
  8793. .HasCollation("utf8_general_ci");
  8794. entity.Property(e => e.SeoKeyword)
  8795. .HasColumnType("varchar(200)")
  8796. .HasCharSet("utf8")
  8797. .HasCollation("utf8_general_ci");
  8798. entity.Property(e => e.SeoTitle)
  8799. .HasColumnType("varchar(100)")
  8800. .HasCharSet("utf8")
  8801. .HasCollation("utf8_general_ci");
  8802. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8803. entity.Property(e => e.Status).HasColumnType("int(11)");
  8804. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8805. entity.Property(e => e.UpdateMan)
  8806. .HasColumnType("varchar(50)")
  8807. .HasCharSet("utf8")
  8808. .HasCollation("utf8_general_ci");
  8809. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8810. entity.Property(e => e.Version).HasColumnType("int(11)");
  8811. });
  8812. modelBuilder.Entity<UserProfit>(entity =>
  8813. {
  8814. entity.Property(e => e.Id).HasColumnType("int(11)");
  8815. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8816. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8817. entity.Property(e => e.CardType)
  8818. .HasColumnType("varchar(10)")
  8819. .HasCharSet("utf8")
  8820. .HasCollation("utf8_general_ci");
  8821. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8822. entity.Property(e => e.CreateMan)
  8823. .HasColumnType("varchar(50)")
  8824. .HasCharSet("utf8")
  8825. .HasCollation("utf8_general_ci");
  8826. entity.Property(e => e.HelpAddOrSubRate).HasColumnType("decimal(18,2)");
  8827. entity.Property(e => e.HelpProfitPercent).HasColumnType("decimal(18,2)");
  8828. entity.Property(e => e.HelpProfitRate).HasColumnType("decimal(18,2)");
  8829. entity.Property(e => e.HelpProfitRateBase).HasColumnType("decimal(18,2)");
  8830. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8831. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8832. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8833. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8834. entity.Property(e => e.Remark)
  8835. .HasColumnType("varchar(64)")
  8836. .HasCharSet("utf8")
  8837. .HasCollation("utf8_general_ci");
  8838. entity.Property(e => e.SeoDescription)
  8839. .HasColumnType("varchar(500)")
  8840. .HasCharSet("utf8")
  8841. .HasCollation("utf8_general_ci");
  8842. entity.Property(e => e.SeoKeyword)
  8843. .HasColumnType("varchar(200)")
  8844. .HasCharSet("utf8")
  8845. .HasCollation("utf8_general_ci");
  8846. entity.Property(e => e.SeoTitle)
  8847. .HasColumnType("varchar(100)")
  8848. .HasCharSet("utf8")
  8849. .HasCollation("utf8_general_ci");
  8850. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8851. entity.Property(e => e.Status).HasColumnType("int(11)");
  8852. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8853. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8854. entity.Property(e => e.UpdateMan)
  8855. .HasColumnType("varchar(50)")
  8856. .HasCharSet("utf8")
  8857. .HasCollation("utf8_general_ci");
  8858. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8859. entity.Property(e => e.Version).HasColumnType("int(11)");
  8860. });
  8861. modelBuilder.Entity<UserProfitSet>(entity =>
  8862. {
  8863. entity.Property(e => e.Id).HasColumnType("int(11)");
  8864. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8865. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8866. entity.Property(e => e.CardType).HasColumnType("int(11)");
  8867. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8868. entity.Property(e => e.CreateMan)
  8869. .HasColumnType("varchar(50)")
  8870. .HasCharSet("utf8")
  8871. .HasCollation("utf8_general_ci");
  8872. entity.Property(e => e.HelpFlag).HasColumnType("int(11)");
  8873. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8874. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8875. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8876. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8877. entity.Property(e => e.Remark)
  8878. .HasColumnType("varchar(64)")
  8879. .HasCharSet("utf8")
  8880. .HasCollation("utf8_general_ci");
  8881. entity.Property(e => e.SeoDescription)
  8882. .HasColumnType("varchar(500)")
  8883. .HasCharSet("utf8")
  8884. .HasCollation("utf8_general_ci");
  8885. entity.Property(e => e.SeoKeyword)
  8886. .HasColumnType("varchar(200)")
  8887. .HasCharSet("utf8")
  8888. .HasCollation("utf8_general_ci");
  8889. entity.Property(e => e.SeoTitle)
  8890. .HasColumnType("varchar(100)")
  8891. .HasCharSet("utf8")
  8892. .HasCollation("utf8_general_ci");
  8893. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8894. entity.Property(e => e.Status).HasColumnType("int(11)");
  8895. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8896. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8897. entity.Property(e => e.UpdateMan)
  8898. .HasColumnType("varchar(50)")
  8899. .HasCharSet("utf8")
  8900. .HasCollation("utf8_general_ci");
  8901. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8902. entity.Property(e => e.Version).HasColumnType("int(11)");
  8903. });
  8904. modelBuilder.Entity<UserProfitSubsidySummary>(entity =>
  8905. {
  8906. entity.Property(e => e.Id).HasColumnType("int(11)");
  8907. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8908. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  8909. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8910. entity.Property(e => e.CreateMan)
  8911. .HasColumnType("varchar(50)")
  8912. .HasCharSet("utf8")
  8913. .HasCollation("utf8_general_ci");
  8914. entity.Property(e => e.MgrName)
  8915. .HasColumnType("varchar(32)")
  8916. .HasCharSet("utf8")
  8917. .HasCollation("utf8_general_ci");
  8918. entity.Property(e => e.MgrNo)
  8919. .HasColumnType("varchar(16)")
  8920. .HasCharSet("utf8")
  8921. .HasCollation("utf8_general_ci");
  8922. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8923. entity.Property(e => e.SeoDescription)
  8924. .HasColumnType("varchar(500)")
  8925. .HasCharSet("utf8")
  8926. .HasCollation("utf8_general_ci");
  8927. entity.Property(e => e.SeoKeyword)
  8928. .HasColumnType("varchar(200)")
  8929. .HasCharSet("utf8")
  8930. .HasCollation("utf8_general_ci");
  8931. entity.Property(e => e.SeoTitle)
  8932. .HasColumnType("varchar(100)")
  8933. .HasCharSet("utf8")
  8934. .HasCollation("utf8_general_ci");
  8935. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8936. entity.Property(e => e.Status).HasColumnType("int(11)");
  8937. entity.Property(e => e.SubsidyDirectProfit).HasColumnType("decimal(18,2)");
  8938. entity.Property(e => e.SubsidyJuniorProfit).HasColumnType("decimal(18,2)");
  8939. entity.Property(e => e.SubsidyTotalProfit).HasColumnType("decimal(18,2)");
  8940. entity.Property(e => e.TradeMonth)
  8941. .HasColumnType("varchar(6)")
  8942. .HasCharSet("utf8")
  8943. .HasCollation("utf8_general_ci");
  8944. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8945. entity.Property(e => e.UpdateMan)
  8946. .HasColumnType("varchar(50)")
  8947. .HasCharSet("utf8")
  8948. .HasCollation("utf8_general_ci");
  8949. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8950. entity.Property(e => e.Version).HasColumnType("int(11)");
  8951. });
  8952. modelBuilder.Entity<UserRank>(entity =>
  8953. {
  8954. entity.Property(e => e.Id).HasColumnType("int(11)");
  8955. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8956. entity.Property(e => e.CreateMan)
  8957. .HasColumnType("varchar(50)")
  8958. .HasCharSet("utf8")
  8959. .HasCollation("utf8_general_ci");
  8960. entity.Property(e => e.ExceedVal).HasColumnType("int(11)");
  8961. entity.Property(e => e.NextRank).HasColumnType("int(11)");
  8962. entity.Property(e => e.OperateDate).HasColumnType("datetime");
  8963. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8964. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8965. entity.Property(e => e.SeoDescription)
  8966. .HasColumnType("varchar(500)")
  8967. .HasCharSet("utf8")
  8968. .HasCollation("utf8_general_ci");
  8969. entity.Property(e => e.SeoKeyword)
  8970. .HasColumnType("varchar(200)")
  8971. .HasCharSet("utf8")
  8972. .HasCollation("utf8_general_ci");
  8973. entity.Property(e => e.SeoTitle)
  8974. .HasColumnType("varchar(100)")
  8975. .HasCharSet("utf8")
  8976. .HasCollation("utf8_general_ci");
  8977. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8978. entity.Property(e => e.StatMonth).HasColumnType("int(11)");
  8979. entity.Property(e => e.StatYear).HasColumnType("int(11)");
  8980. entity.Property(e => e.Status).HasColumnType("int(11)");
  8981. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  8982. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8983. entity.Property(e => e.UpdateMan)
  8984. .HasColumnType("varchar(50)")
  8985. .HasCharSet("utf8")
  8986. .HasCollation("utf8_general_ci");
  8987. entity.Property(e => e.UpgradeFlag)
  8988. .HasColumnType("bit(1)")
  8989. .HasDefaultValueSql("b'0'");
  8990. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8991. entity.Property(e => e.Version).HasColumnType("int(11)");
  8992. entity.Property(e => e.WhiteRank).HasColumnType("int(11)");
  8993. });
  8994. modelBuilder.Entity<UserRankWhite>(entity =>
  8995. {
  8996. entity.Property(e => e.Id).HasColumnType("int(11)");
  8997. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8998. entity.Property(e => e.CreateMan)
  8999. .HasColumnType("varchar(50)")
  9000. .HasCharSet("utf8")
  9001. .HasCollation("utf8_general_ci");
  9002. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9003. entity.Property(e => e.Rank).HasColumnType("int(11)");
  9004. entity.Property(e => e.SeoDescription)
  9005. .HasColumnType("varchar(500)")
  9006. .HasCharSet("utf8")
  9007. .HasCollation("utf8_general_ci");
  9008. entity.Property(e => e.SeoKeyword)
  9009. .HasColumnType("varchar(200)")
  9010. .HasCharSet("utf8")
  9011. .HasCollation("utf8_general_ci");
  9012. entity.Property(e => e.SeoTitle)
  9013. .HasColumnType("varchar(100)")
  9014. .HasCharSet("utf8")
  9015. .HasCollation("utf8_general_ci");
  9016. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9017. entity.Property(e => e.Status).HasColumnType("int(11)");
  9018. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9019. entity.Property(e => e.UpdateMan)
  9020. .HasColumnType("varchar(50)")
  9021. .HasCharSet("utf8")
  9022. .HasCollation("utf8_general_ci");
  9023. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9024. entity.Property(e => e.Version).HasColumnType("int(11)");
  9025. });
  9026. modelBuilder.Entity<UserRebateDetail>(entity =>
  9027. {
  9028. entity.Property(e => e.Id).HasColumnType("int(11)");
  9029. entity.Property(e => e.ChannelMerNo)
  9030. .HasColumnType("varchar(32)")
  9031. .HasCharSet("utf8")
  9032. .HasCollation("utf8_general_ci");
  9033. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9034. entity.Property(e => e.CreateMan)
  9035. .HasColumnType("varchar(50)")
  9036. .HasCharSet("utf8")
  9037. .HasCollation("utf8_general_ci");
  9038. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  9039. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9040. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  9041. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  9042. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  9043. entity.Property(e => e.MgrName)
  9044. .HasColumnType("varchar(32)")
  9045. .HasCharSet("utf8")
  9046. .HasCollation("utf8_general_ci");
  9047. entity.Property(e => e.MgrNo)
  9048. .HasColumnType("varchar(16)")
  9049. .HasCharSet("utf8")
  9050. .HasCollation("utf8_general_ci");
  9051. entity.Property(e => e.ProductName)
  9052. .HasColumnType("varchar(32)")
  9053. .HasCharSet("utf8")
  9054. .HasCollation("utf8_general_ci");
  9055. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  9056. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9057. entity.Property(e => e.RebateMonthCount).HasColumnType("int(11)");
  9058. entity.Property(e => e.RebateRewardNo)
  9059. .HasColumnType("varchar(32)")
  9060. .HasCharSet("utf8")
  9061. .HasCollation("utf8_general_ci");
  9062. entity.Property(e => e.RebateType).HasColumnType("int(11)");
  9063. entity.Property(e => e.Remark)
  9064. .HasColumnType("varchar(64)")
  9065. .HasCharSet("utf8")
  9066. .HasCollation("utf8_general_ci");
  9067. entity.Property(e => e.SeoDescription)
  9068. .HasColumnType("varchar(500)")
  9069. .HasCharSet("utf8")
  9070. .HasCollation("utf8_general_ci");
  9071. entity.Property(e => e.SeoKeyword)
  9072. .HasColumnType("varchar(200)")
  9073. .HasCharSet("utf8")
  9074. .HasCollation("utf8_general_ci");
  9075. entity.Property(e => e.SeoTitle)
  9076. .HasColumnType("varchar(100)")
  9077. .HasCharSet("utf8")
  9078. .HasCollation("utf8_general_ci");
  9079. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9080. entity.Property(e => e.Status).HasColumnType("int(11)");
  9081. entity.Property(e => e.TradeDate)
  9082. .HasColumnType("varchar(8)")
  9083. .HasCharSet("utf8")
  9084. .HasCollation("utf8_general_ci");
  9085. entity.Property(e => e.TradeMonth)
  9086. .HasColumnType("varchar(6)")
  9087. .HasCharSet("utf8")
  9088. .HasCollation("utf8_general_ci");
  9089. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9090. entity.Property(e => e.UpdateMan)
  9091. .HasColumnType("varchar(50)")
  9092. .HasCharSet("utf8")
  9093. .HasCollation("utf8_general_ci");
  9094. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9095. entity.Property(e => e.Version).HasColumnType("int(11)");
  9096. });
  9097. modelBuilder.Entity<UserSnActInfo>(entity =>
  9098. {
  9099. entity.Property(e => e.Id).HasColumnType("int(11)");
  9100. entity.Property(e => e.ActUserId).HasColumnType("int(11)");
  9101. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9102. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9103. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9104. entity.Property(e => e.CreateMan)
  9105. .HasColumnType("varchar(50)")
  9106. .HasCharSet("utf8")
  9107. .HasCollation("utf8_general_ci");
  9108. entity.Property(e => e.EffectEndActDate)
  9109. .HasColumnType("varchar(8)")
  9110. .HasCharSet("utf8")
  9111. .HasCollation("utf8_general_ci");
  9112. entity.Property(e => e.EffectEndCycleDate)
  9113. .HasColumnType("varchar(8)")
  9114. .HasCharSet("utf8")
  9115. .HasCollation("utf8_general_ci");
  9116. entity.Property(e => e.EffectStartActDate)
  9117. .HasColumnType("varchar(8)")
  9118. .HasCharSet("utf8")
  9119. .HasCollation("utf8_general_ci");
  9120. entity.Property(e => e.EffectStartCycleDate)
  9121. .HasColumnType("varchar(8)")
  9122. .HasCharSet("utf8")
  9123. .HasCollation("utf8_general_ci");
  9124. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9125. entity.Property(e => e.Remark)
  9126. .HasColumnType("varchar(128)")
  9127. .HasCharSet("utf8")
  9128. .HasCollation("utf8_general_ci");
  9129. entity.Property(e => e.SeoDescription)
  9130. .HasColumnType("varchar(500)")
  9131. .HasCharSet("utf8")
  9132. .HasCollation("utf8_general_ci");
  9133. entity.Property(e => e.SeoKeyword)
  9134. .HasColumnType("varchar(200)")
  9135. .HasCharSet("utf8")
  9136. .HasCollation("utf8_general_ci");
  9137. entity.Property(e => e.SeoTitle)
  9138. .HasColumnType("varchar(100)")
  9139. .HasCharSet("utf8")
  9140. .HasCollation("utf8_general_ci");
  9141. entity.Property(e => e.SnNo)
  9142. .HasColumnType("varchar(32)")
  9143. .HasCharSet("utf8")
  9144. .HasCollation("utf8_general_ci");
  9145. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  9146. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9147. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9148. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9149. entity.Property(e => e.SourceShipDate).HasColumnType("datetime");
  9150. entity.Property(e => e.SourceSnNo)
  9151. .HasColumnType("varchar(32)")
  9152. .HasCharSet("utf8")
  9153. .HasCollation("utf8_general_ci");
  9154. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9155. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9156. entity.Property(e => e.StandardDate)
  9157. .HasColumnType("varchar(8)")
  9158. .HasCharSet("utf8")
  9159. .HasCollation("utf8_general_ci");
  9160. entity.Property(e => e.Status).HasColumnType("int(11)");
  9161. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9162. entity.Property(e => e.UpdateMan)
  9163. .HasColumnType("varchar(50)")
  9164. .HasCharSet("utf8")
  9165. .HasCollation("utf8_general_ci");
  9166. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9167. entity.Property(e => e.Version).HasColumnType("int(11)");
  9168. });
  9169. modelBuilder.Entity<UserSnDelayChange>(entity =>
  9170. {
  9171. entity.Property(e => e.Id).HasColumnType("int(11)");
  9172. entity.Property(e => e.ActivityRuleId).HasColumnType("int(11)");
  9173. entity.Property(e => e.AfterEndCycleDate)
  9174. .HasColumnType("varchar(8)")
  9175. .HasCharSet("utf8")
  9176. .HasCollation("utf8_general_ci");
  9177. entity.Property(e => e.BeforeEndCycleDate)
  9178. .HasColumnType("varchar(8)")
  9179. .HasCharSet("utf8")
  9180. .HasCollation("utf8_general_ci");
  9181. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9182. entity.Property(e => e.ChangeRecordNo)
  9183. .HasColumnType("varchar(32)")
  9184. .HasCharSet("utf8")
  9185. .HasCollation("utf8_general_ci");
  9186. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9187. entity.Property(e => e.CreateMan)
  9188. .HasColumnType("varchar(50)")
  9189. .HasCharSet("utf8")
  9190. .HasCollation("utf8_general_ci");
  9191. entity.Property(e => e.InitCycleDate)
  9192. .HasColumnType("varchar(8)")
  9193. .HasCharSet("utf8")
  9194. .HasCollation("utf8_general_ci");
  9195. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9196. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  9197. entity.Property(e => e.Remark)
  9198. .HasColumnType("varchar(128)")
  9199. .HasCharSet("utf8")
  9200. .HasCollation("utf8_general_ci");
  9201. entity.Property(e => e.SeoDescription)
  9202. .HasColumnType("varchar(500)")
  9203. .HasCharSet("utf8")
  9204. .HasCollation("utf8_general_ci");
  9205. entity.Property(e => e.SeoKeyword)
  9206. .HasColumnType("varchar(200)")
  9207. .HasCharSet("utf8")
  9208. .HasCollation("utf8_general_ci");
  9209. entity.Property(e => e.SeoTitle)
  9210. .HasColumnType("varchar(100)")
  9211. .HasCharSet("utf8")
  9212. .HasCollation("utf8_general_ci");
  9213. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  9214. entity.Property(e => e.SnNo)
  9215. .HasColumnType("varchar(32)")
  9216. .HasCharSet("utf8")
  9217. .HasCollation("utf8_general_ci");
  9218. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9219. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9220. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9221. entity.Property(e => e.SourceSnNo)
  9222. .HasColumnType("varchar(32)")
  9223. .HasCharSet("utf8")
  9224. .HasCollation("utf8_general_ci");
  9225. entity.Property(e => e.SourceSnShipDate).HasColumnType("datetime");
  9226. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9227. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9228. entity.Property(e => e.Status).HasColumnType("int(11)");
  9229. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9230. entity.Property(e => e.UpdateMan)
  9231. .HasColumnType("varchar(50)")
  9232. .HasCharSet("utf8")
  9233. .HasCollation("utf8_general_ci");
  9234. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9235. entity.Property(e => e.Version).HasColumnType("int(11)");
  9236. });
  9237. modelBuilder.Entity<UserStoreChange>(entity =>
  9238. {
  9239. entity.Property(e => e.Id).HasColumnType("int(11)");
  9240. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  9241. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9242. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  9243. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  9244. entity.Property(e => e.BizBatchNo)
  9245. .HasColumnType("varchar(32)")
  9246. .HasCharSet("utf8")
  9247. .HasCollation("utf8_general_ci");
  9248. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9249. entity.Property(e => e.BrandType)
  9250. .HasColumnType("varchar(10)")
  9251. .HasCharSet("utf8")
  9252. .HasCollation("utf8_general_ci");
  9253. entity.Property(e => e.ChangeRecordNo)
  9254. .HasColumnType("varchar(32)")
  9255. .HasCharSet("utf8")
  9256. .HasCollation("utf8_general_ci");
  9257. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9258. entity.Property(e => e.CreateMan)
  9259. .HasColumnType("varchar(50)")
  9260. .HasCharSet("utf8")
  9261. .HasCollation("utf8_general_ci");
  9262. entity.Property(e => e.DeviceModel)
  9263. .HasColumnType("varchar(32)")
  9264. .HasCharSet("utf8")
  9265. .HasCollation("utf8_general_ci");
  9266. entity.Property(e => e.DeviceType)
  9267. .HasColumnType("varchar(32)")
  9268. .HasCharSet("utf8")
  9269. .HasCollation("utf8_general_ci");
  9270. entity.Property(e => e.DeviceVendor)
  9271. .HasColumnType("varchar(32)")
  9272. .HasCharSet("utf8")
  9273. .HasCollation("utf8_general_ci");
  9274. entity.Property(e => e.FromDate).HasColumnType("datetime");
  9275. entity.Property(e => e.FromRemark)
  9276. .HasColumnType("varchar(64)")
  9277. .HasCharSet("utf8")
  9278. .HasCollation("utf8_general_ci");
  9279. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  9280. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9281. entity.Property(e => e.SeoDescription)
  9282. .HasColumnType("varchar(500)")
  9283. .HasCharSet("utf8")
  9284. .HasCollation("utf8_general_ci");
  9285. entity.Property(e => e.SeoKeyword)
  9286. .HasColumnType("varchar(200)")
  9287. .HasCharSet("utf8")
  9288. .HasCollation("utf8_general_ci");
  9289. entity.Property(e => e.SeoTitle)
  9290. .HasColumnType("varchar(100)")
  9291. .HasCharSet("utf8")
  9292. .HasCollation("utf8_general_ci");
  9293. entity.Property(e => e.SnNo)
  9294. .HasColumnType("varchar(32)")
  9295. .HasCharSet("utf8")
  9296. .HasCollation("utf8_general_ci");
  9297. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  9298. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9299. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9300. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9301. entity.Property(e => e.Status).HasColumnType("int(11)");
  9302. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  9303. entity.Property(e => e.ToDate).HasColumnType("datetime");
  9304. entity.Property(e => e.ToRemark)
  9305. .HasColumnType("varchar(64)")
  9306. .HasCharSet("utf8")
  9307. .HasCollation("utf8_general_ci");
  9308. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  9309. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  9310. entity.Property(e => e.TransType).HasColumnType("int(11)");
  9311. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9312. entity.Property(e => e.UpdateMan)
  9313. .HasColumnType("varchar(50)")
  9314. .HasCharSet("utf8")
  9315. .HasCollation("utf8_general_ci");
  9316. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9317. entity.Property(e => e.Version).HasColumnType("int(11)");
  9318. });
  9319. modelBuilder.Entity<UserSwapDetail>(entity =>
  9320. {
  9321. entity.Property(e => e.Id).HasColumnType("int(11)");
  9322. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9323. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9324. entity.Property(e => e.CreateMan)
  9325. .HasColumnType("varchar(50)")
  9326. .HasCharSet("utf8")
  9327. .HasCollation("utf8_general_ci");
  9328. entity.Property(e => e.DirectSnTradeAmt).HasColumnType("decimal(18,2)");
  9329. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9330. entity.Property(e => e.RecordNo)
  9331. .HasColumnType("varchar(32)")
  9332. .HasCharSet("utf8")
  9333. .HasCollation("utf8_general_ci");
  9334. entity.Property(e => e.Remark)
  9335. .HasColumnType("varchar(64)")
  9336. .HasCharSet("utf8")
  9337. .HasCollation("utf8_general_ci");
  9338. entity.Property(e => e.RiskResult).HasColumnType("int(11)");
  9339. entity.Property(e => e.SeoDescription)
  9340. .HasColumnType("varchar(500)")
  9341. .HasCharSet("utf8")
  9342. .HasCollation("utf8_general_ci");
  9343. entity.Property(e => e.SeoKeyword)
  9344. .HasColumnType("varchar(200)")
  9345. .HasCharSet("utf8")
  9346. .HasCollation("utf8_general_ci");
  9347. entity.Property(e => e.SeoTitle)
  9348. .HasColumnType("varchar(100)")
  9349. .HasCharSet("utf8")
  9350. .HasCollation("utf8_general_ci");
  9351. entity.Property(e => e.SnNo)
  9352. .HasColumnType("varchar(32)")
  9353. .HasCharSet("utf8")
  9354. .HasCollation("utf8_general_ci");
  9355. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9356. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9357. entity.Property(e => e.SourceSnNo)
  9358. .HasColumnType("varchar(32)")
  9359. .HasCharSet("utf8")
  9360. .HasCollation("utf8_general_ci");
  9361. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9362. entity.Property(e => e.Status).HasColumnType("int(11)");
  9363. entity.Property(e => e.SwapExtProductTypes)
  9364. .HasColumnType("varchar(16)")
  9365. .HasCharSet("utf8")
  9366. .HasCollation("utf8_general_ci");
  9367. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9368. entity.Property(e => e.TradeDate)
  9369. .HasColumnType("varchar(8)")
  9370. .HasCharSet("utf8")
  9371. .HasCollation("utf8_general_ci");
  9372. entity.Property(e => e.TradeMonth)
  9373. .HasColumnType("varchar(6)")
  9374. .HasCharSet("utf8")
  9375. .HasCollation("utf8_general_ci");
  9376. entity.Property(e => e.UpSourceSnNo)
  9377. .HasColumnType("varchar(32)")
  9378. .HasCharSet("utf8")
  9379. .HasCollation("utf8_general_ci");
  9380. entity.Property(e => e.UpSourceSnType).HasColumnType("int(11)");
  9381. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9382. entity.Property(e => e.UpdateMan)
  9383. .HasColumnType("varchar(50)")
  9384. .HasCharSet("utf8")
  9385. .HasCollation("utf8_general_ci");
  9386. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9387. entity.Property(e => e.Version).HasColumnType("int(11)");
  9388. });
  9389. modelBuilder.Entity<UserSwapSummary>(entity =>
  9390. {
  9391. entity.Property(e => e.Id).HasColumnType("int(11)");
  9392. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9393. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9394. entity.Property(e => e.CreateMan)
  9395. .HasColumnType("varchar(50)")
  9396. .HasCharSet("utf8")
  9397. .HasCollation("utf8_general_ci");
  9398. entity.Property(e => e.DirAvgTradeAmt).HasColumnType("decimal(18,2)");
  9399. entity.Property(e => e.DirectActMerCount).HasColumnType("int(11)");
  9400. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9401. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9402. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  9403. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  9404. entity.Property(e => e.SeoDescription)
  9405. .HasColumnType("varchar(500)")
  9406. .HasCharSet("utf8")
  9407. .HasCollation("utf8_general_ci");
  9408. entity.Property(e => e.SeoKeyword)
  9409. .HasColumnType("varchar(200)")
  9410. .HasCharSet("utf8")
  9411. .HasCollation("utf8_general_ci");
  9412. entity.Property(e => e.SeoTitle)
  9413. .HasColumnType("varchar(100)")
  9414. .HasCharSet("utf8")
  9415. .HasCollation("utf8_general_ci");
  9416. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9417. entity.Property(e => e.Status).HasColumnType("int(11)");
  9418. entity.Property(e => e.SwapExtProductTypes)
  9419. .HasColumnType("varchar(16)")
  9420. .HasCharSet("utf8")
  9421. .HasCollation("utf8_general_ci");
  9422. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9423. entity.Property(e => e.TradeMonth)
  9424. .HasColumnType("varchar(6)")
  9425. .HasCharSet("utf8")
  9426. .HasCollation("utf8_general_ci");
  9427. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9428. entity.Property(e => e.UpdateMan)
  9429. .HasColumnType("varchar(50)")
  9430. .HasCharSet("utf8")
  9431. .HasCollation("utf8_general_ci");
  9432. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9433. entity.Property(e => e.Version).HasColumnType("int(11)");
  9434. });
  9435. modelBuilder.Entity<UserSwapWhite>(entity =>
  9436. {
  9437. entity.Property(e => e.Id).HasColumnType("int(11)");
  9438. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9439. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9440. entity.Property(e => e.CreateMan)
  9441. .HasColumnType("varchar(50)")
  9442. .HasCharSet("utf8")
  9443. .HasCollation("utf8_general_ci");
  9444. entity.Property(e => e.EndEffectTime).HasColumnType("datetime");
  9445. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9446. entity.Property(e => e.Remark)
  9447. .HasColumnType("varchar(64)")
  9448. .HasCharSet("utf8")
  9449. .HasCollation("utf8_general_ci");
  9450. entity.Property(e => e.RiskType).HasColumnType("int(11)");
  9451. entity.Property(e => e.SeoDescription)
  9452. .HasColumnType("varchar(500)")
  9453. .HasCharSet("utf8")
  9454. .HasCollation("utf8_general_ci");
  9455. entity.Property(e => e.SeoKeyword)
  9456. .HasColumnType("varchar(200)")
  9457. .HasCharSet("utf8")
  9458. .HasCollation("utf8_general_ci");
  9459. entity.Property(e => e.SeoTitle)
  9460. .HasColumnType("varchar(100)")
  9461. .HasCharSet("utf8")
  9462. .HasCollation("utf8_general_ci");
  9463. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9464. entity.Property(e => e.StartEffectTime).HasColumnType("datetime");
  9465. entity.Property(e => e.Status).HasColumnType("int(11)");
  9466. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9467. entity.Property(e => e.UpdateMan)
  9468. .HasColumnType("varchar(50)")
  9469. .HasCharSet("utf8")
  9470. .HasCollation("utf8_general_ci");
  9471. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9472. entity.Property(e => e.Version).HasColumnType("int(11)");
  9473. });
  9474. modelBuilder.Entity<UserTradeDaySummary>(entity =>
  9475. {
  9476. entity.Property(e => e.Id).HasColumnType("int(11)");
  9477. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9478. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9479. entity.Property(e => e.CreateMan)
  9480. .HasColumnType("varchar(50)")
  9481. .HasCharSet("utf8")
  9482. .HasCollation("utf8_general_ci");
  9483. entity.Property(e => e.DirectDebitCapNum).HasColumnType("int(11)");
  9484. entity.Property(e => e.DirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9485. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9486. entity.Property(e => e.NonDirectDebitCapNum).HasColumnType("int(11)");
  9487. entity.Property(e => e.NonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9488. entity.Property(e => e.NonDirectTradeAmt).HasColumnType("decimal(18,2)");
  9489. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9490. entity.Property(e => e.Remark)
  9491. .HasColumnType("varchar(64)")
  9492. .HasCharSet("utf8")
  9493. .HasCollation("utf8_general_ci");
  9494. entity.Property(e => e.SeoDescription)
  9495. .HasColumnType("varchar(500)")
  9496. .HasCharSet("utf8")
  9497. .HasCollation("utf8_general_ci");
  9498. entity.Property(e => e.SeoKeyword)
  9499. .HasColumnType("varchar(200)")
  9500. .HasCharSet("utf8")
  9501. .HasCollation("utf8_general_ci");
  9502. entity.Property(e => e.SeoTitle)
  9503. .HasColumnType("varchar(100)")
  9504. .HasCharSet("utf8")
  9505. .HasCollation("utf8_general_ci");
  9506. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9507. entity.Property(e => e.Status).HasColumnType("int(11)");
  9508. entity.Property(e => e.TradeDate)
  9509. .HasColumnType("varchar(8)")
  9510. .HasCharSet("utf8")
  9511. .HasCollation("utf8_general_ci");
  9512. entity.Property(e => e.TradeMonth)
  9513. .HasColumnType("varchar(6)")
  9514. .HasCharSet("utf8")
  9515. .HasCollation("utf8_general_ci");
  9516. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9517. entity.Property(e => e.UpdateMan)
  9518. .HasColumnType("varchar(50)")
  9519. .HasCharSet("utf8")
  9520. .HasCollation("utf8_general_ci");
  9521. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9522. entity.Property(e => e.Version).HasColumnType("int(11)");
  9523. });
  9524. modelBuilder.Entity<UserTradeMonthSummary>(entity =>
  9525. {
  9526. entity.Property(e => e.Id).HasColumnType("int(11)");
  9527. entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
  9528. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9529. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9530. entity.Property(e => e.CreateMan)
  9531. .HasColumnType("varchar(50)")
  9532. .HasCharSet("utf8")
  9533. .HasCollation("utf8_general_ci");
  9534. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9535. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  9536. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  9537. entity.Property(e => e.DebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  9538. entity.Property(e => e.MallPosOrderStatus).HasColumnType("int(11)");
  9539. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9540. entity.Property(e => e.Remark)
  9541. .HasColumnType("varchar(64)")
  9542. .HasCharSet("utf8")
  9543. .HasCollation("utf8_general_ci");
  9544. entity.Property(e => e.SeoDescription)
  9545. .HasColumnType("varchar(500)")
  9546. .HasCharSet("utf8")
  9547. .HasCollation("utf8_general_ci");
  9548. entity.Property(e => e.SeoKeyword)
  9549. .HasColumnType("varchar(200)")
  9550. .HasCharSet("utf8")
  9551. .HasCollation("utf8_general_ci");
  9552. entity.Property(e => e.SeoTitle)
  9553. .HasColumnType("varchar(100)")
  9554. .HasCharSet("utf8")
  9555. .HasCollation("utf8_general_ci");
  9556. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9557. entity.Property(e => e.StatType).HasColumnType("int(11)");
  9558. entity.Property(e => e.Status).HasColumnType("int(11)");
  9559. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9560. entity.Property(e => e.TradeMonth)
  9561. .HasColumnType("varchar(6)")
  9562. .HasCharSet("utf8")
  9563. .HasCollation("utf8_general_ci");
  9564. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9565. entity.Property(e => e.UpdateMan)
  9566. .HasColumnType("varchar(50)")
  9567. .HasCharSet("utf8")
  9568. .HasCollation("utf8_general_ci");
  9569. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9570. entity.Property(e => e.Version).HasColumnType("int(11)");
  9571. });
  9572. modelBuilder.Entity<Users>(entity =>
  9573. {
  9574. entity.Property(e => e.Id).HasColumnType("int(11)");
  9575. entity.Property(e => e.AccessToken)
  9576. .HasColumnType("varchar(64)")
  9577. .HasCharSet("utf8")
  9578. .HasCollation("utf8_general_ci");
  9579. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  9580. entity.Property(e => e.Address)
  9581. .HasColumnType("varchar(50)")
  9582. .HasCharSet("utf8")
  9583. .HasCollation("utf8_general_ci");
  9584. entity.Property(e => e.AgentAreas)
  9585. .HasColumnType("varchar(50)")
  9586. .HasCharSet("utf8")
  9587. .HasCollation("utf8_general_ci");
  9588. entity.Property(e => e.AgentLevel).HasColumnType("int(11)");
  9589. entity.Property(e => e.AlipayUserId)
  9590. .HasColumnType("varchar(50)")
  9591. .HasCharSet("utf8")
  9592. .HasCollation("utf8_general_ci");
  9593. entity.Property(e => e.Areas)
  9594. .HasColumnType("varchar(30)")
  9595. .HasCharSet("utf8")
  9596. .HasCollation("utf8_general_ci");
  9597. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  9598. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  9599. entity.Property(e => e.AuthFlag)
  9600. .HasColumnType("bit(1)")
  9601. .HasDefaultValueSql("b'0'");
  9602. entity.Property(e => e.BankCardPositiveImage)
  9603. .HasColumnType("varchar(200)")
  9604. .HasCharSet("utf8")
  9605. .HasCollation("utf8_general_ci");
  9606. entity.Property(e => e.CarIds)
  9607. .HasColumnType("varchar(100)")
  9608. .HasCharSet("utf8")
  9609. .HasCollation("utf8_general_ci");
  9610. entity.Property(e => e.CardNo)
  9611. .HasColumnType("varchar(30)")
  9612. .HasCharSet("utf8")
  9613. .HasCollation("utf8_general_ci");
  9614. entity.Property(e => e.CardRecCode)
  9615. .HasColumnType("varchar(200)")
  9616. .HasCharSet("utf8")
  9617. .HasCollation("utf8_general_ci");
  9618. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  9619. entity.Property(e => e.CertFrontImage)
  9620. .HasColumnType("varchar(200)")
  9621. .HasCharSet("utf8")
  9622. .HasCollation("utf8_general_ci");
  9623. entity.Property(e => e.CertId)
  9624. .HasColumnType("varchar(18)")
  9625. .HasCharSet("utf8")
  9626. .HasCollation("utf8_general_ci");
  9627. entity.Property(e => e.CertReverseImage)
  9628. .HasColumnType("varchar(200)")
  9629. .HasCharSet("utf8")
  9630. .HasCollation("utf8_general_ci");
  9631. entity.Property(e => e.CertValidEndDate).HasColumnType("datetime");
  9632. entity.Property(e => e.CertValidStartDate).HasColumnType("datetime");
  9633. entity.Property(e => e.CitySetDate).HasColumnType("datetime");
  9634. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9635. entity.Property(e => e.CreateMan)
  9636. .HasColumnType("varchar(50)")
  9637. .HasCharSet("utf8")
  9638. .HasCollation("utf8_general_ci");
  9639. entity.Property(e => e.DeviceId)
  9640. .HasColumnType("varchar(128)")
  9641. .HasCharSet("utf8")
  9642. .HasCollation("utf8_general_ci");
  9643. entity.Property(e => e.DeviceToken)
  9644. .HasColumnType("varchar(64)")
  9645. .HasCharSet("utf8")
  9646. .HasCollation("utf8_general_ci");
  9647. entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
  9648. entity.Property(e => e.GroupId)
  9649. .HasColumnType("varchar(200)")
  9650. .HasCharSet("utf8")
  9651. .HasCollation("utf8_general_ci");
  9652. entity.Property(e => e.HandCertImage)
  9653. .HasColumnType("varchar(200)")
  9654. .HasCharSet("utf8")
  9655. .HasCollation("utf8_general_ci");
  9656. entity.Property(e => e.HandPwd)
  9657. .HasColumnType("varchar(32)")
  9658. .HasCharSet("utf8")
  9659. .HasCollation("utf8_general_ci");
  9660. entity.Property(e => e.HeadPhoto)
  9661. .HasColumnType("varchar(2000)")
  9662. .HasCharSet("utf8")
  9663. .HasCollation("utf8_general_ci");
  9664. entity.Property(e => e.IdCardEndNo)
  9665. .HasColumnType("varchar(4)")
  9666. .HasCharSet("utf8")
  9667. .HasCollation("utf8_general_ci");
  9668. entity.Property(e => e.IsNewUser)
  9669. .HasColumnType("bit(1)")
  9670. .HasDefaultValueSql("b'0'");
  9671. entity.Property(e => e.LockStatus)
  9672. .HasColumnType("bit(1)")
  9673. .HasDefaultValueSql("b'0'");
  9674. entity.Property(e => e.LoginPwd)
  9675. .HasColumnType("varchar(32)")
  9676. .HasCharSet("utf8")
  9677. .HasCollation("utf8_general_ci");
  9678. entity.Property(e => e.LoginStatus).HasColumnType("int(11)");
  9679. entity.Property(e => e.MakerCode)
  9680. .HasColumnType("varchar(32)")
  9681. .HasCharSet("utf8")
  9682. .HasCollation("utf8_general_ci");
  9683. entity.Property(e => e.MerchantDate).HasColumnType("datetime");
  9684. entity.Property(e => e.MerchantType).HasColumnType("int(11)");
  9685. entity.Property(e => e.Mobile)
  9686. .HasColumnType("varchar(11)")
  9687. .HasCharSet("utf8")
  9688. .HasCollation("utf8_general_ci");
  9689. entity.Property(e => e.NickName)
  9690. .HasColumnType("varchar(300)")
  9691. .HasCharSet("utf8")
  9692. .HasCollation("utf8_general_ci");
  9693. entity.Property(e => e.OpenId)
  9694. .HasColumnType("varchar(50)")
  9695. .HasCharSet("utf8")
  9696. .HasCollation("utf8_general_ci");
  9697. entity.Property(e => e.ParentNav)
  9698. .HasColumnType("longtext")
  9699. .HasCharSet("utf8")
  9700. .HasCollation("utf8_general_ci");
  9701. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  9702. entity.Property(e => e.PayPwd)
  9703. .HasColumnType("varchar(32)")
  9704. .HasCharSet("utf8")
  9705. .HasCollation("utf8_general_ci");
  9706. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  9707. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9708. entity.Property(e => e.RealName)
  9709. .HasColumnType("varchar(30)")
  9710. .HasCharSet("utf8")
  9711. .HasCollation("utf8_general_ci");
  9712. entity.Property(e => e.ReferenceCode)
  9713. .HasColumnType("varchar(200)")
  9714. .HasCharSet("utf8")
  9715. .HasCollation("utf8_general_ci");
  9716. entity.Property(e => e.ReferenceQrCode)
  9717. .HasColumnType("varchar(200)")
  9718. .HasCharSet("utf8")
  9719. .HasCollation("utf8_general_ci");
  9720. entity.Property(e => e.ReferralUserId).HasColumnType("int(11)");
  9721. entity.Property(e => e.Remark)
  9722. .HasColumnType("mediumtext")
  9723. .HasCharSet("utf8")
  9724. .HasCollation("utf8_general_ci");
  9725. entity.Property(e => e.RiskFlag)
  9726. .HasColumnType("bit(1)")
  9727. .HasDefaultValueSql("b'0'");
  9728. entity.Property(e => e.RiskRemark)
  9729. .HasColumnType("varchar(64)")
  9730. .HasCharSet("utf8")
  9731. .HasCollation("utf8_general_ci");
  9732. entity.Property(e => e.RreezeRemark)
  9733. .HasColumnType("varchar(64)")
  9734. .HasCharSet("utf8")
  9735. .HasCollation("utf8_general_ci");
  9736. entity.Property(e => e.SeoDescription)
  9737. .HasColumnType("varchar(500)")
  9738. .HasCharSet("utf8")
  9739. .HasCollation("utf8_general_ci");
  9740. entity.Property(e => e.SeoKeyword)
  9741. .HasColumnType("varchar(200)")
  9742. .HasCharSet("utf8")
  9743. .HasCollation("utf8_general_ci");
  9744. entity.Property(e => e.SeoTitle)
  9745. .HasColumnType("varchar(100)")
  9746. .HasCharSet("utf8")
  9747. .HasCollation("utf8_general_ci");
  9748. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  9749. entity.Property(e => e.SettleBankCardName)
  9750. .HasColumnType("varchar(20)")
  9751. .HasCharSet("utf8")
  9752. .HasCollation("utf8_general_ci");
  9753. entity.Property(e => e.SettleBankCardNo)
  9754. .HasColumnType("varchar(32)")
  9755. .HasCharSet("utf8")
  9756. .HasCollation("utf8_general_ci");
  9757. entity.Property(e => e.SettleBankName)
  9758. .HasColumnType("varchar(32)")
  9759. .HasCharSet("utf8")
  9760. .HasCollation("utf8_general_ci");
  9761. entity.Property(e => e.SettleRemark)
  9762. .HasColumnType("varchar(64)")
  9763. .HasCharSet("utf8")
  9764. .HasCollation("utf8_general_ci");
  9765. entity.Property(e => e.Sex).HasColumnType("int(11)");
  9766. entity.Property(e => e.SignImgUrl)
  9767. .HasColumnType("varchar(200)")
  9768. .HasCharSet("utf8")
  9769. .HasCollation("utf8_general_ci");
  9770. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9771. entity.Property(e => e.Status).HasColumnType("int(11)");
  9772. entity.Property(e => e.Tags)
  9773. .HasColumnType("varchar(200)")
  9774. .HasCharSet("utf8")
  9775. .HasCollation("utf8_general_ci");
  9776. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9777. entity.Property(e => e.UpdateMan)
  9778. .HasColumnType("varchar(50)")
  9779. .HasCharSet("utf8")
  9780. .HasCollation("utf8_general_ci");
  9781. entity.Property(e => e.UserLevel).HasColumnType("int(11)");
  9782. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  9783. entity.Property(e => e.UserType).HasColumnType("int(11)");
  9784. entity.Property(e => e.Version).HasColumnType("int(11)");
  9785. });
  9786. OnModelCreatingPartial(modelBuilder);
  9787. }
  9788. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  9789. }
  9790. }