WebCMSEntities.cs 506 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253
  1. using System;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata;
  4. namespace MySystem.PxcModels
  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<MachineForQrCode> MachineForQrCode { get; set; }
  50. public virtual DbSet<MachineForSnNo> MachineForSnNo { get; set; }
  51. public virtual DbSet<MachineRenew> MachineRenew { get; set; }
  52. public virtual DbSet<MachineReturn> MachineReturn { get; set; }
  53. public virtual DbSet<MenuRight> MenuRight { get; set; }
  54. public virtual DbSet<MerchantAddInfo> MerchantAddInfo { get; set; }
  55. public virtual DbSet<MerchantAdmin> MerchantAdmin { get; set; }
  56. public virtual DbSet<MerchantAuth> MerchantAuth { get; set; }
  57. public virtual DbSet<MerchantClass> MerchantClass { get; set; }
  58. public virtual DbSet<MerchantCol> MerchantCol { get; set; }
  59. public virtual DbSet<MerchantComment> MerchantComment { get; set; }
  60. public virtual DbSet<MerchantForCode> MerchantForCode { get; set; }
  61. public virtual DbSet<MerchantForMobile> MerchantForMobile { get; set; }
  62. public virtual DbSet<MerchantForName> MerchantForName { get; set; }
  63. public virtual DbSet<MerchantInfo> MerchantInfo { get; set; }
  64. public virtual DbSet<MerchantParamSet> MerchantParamSet { get; set; }
  65. public virtual DbSet<MerchantQrCode> MerchantQrCode { get; set; }
  66. public virtual DbSet<MerchantRebateDetail> MerchantRebateDetail { get; set; }
  67. public virtual DbSet<Merchants> Merchants { get; set; }
  68. public virtual DbSet<MobileCodeCheck> MobileCodeCheck { get; set; }
  69. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  70. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  71. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  72. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  73. public virtual DbSet<MsgPush> MsgPush { get; set; }
  74. public virtual DbSet<MsgSms> MsgSms { get; set; }
  75. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  76. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  77. public virtual DbSet<OpenBankCityTable> OpenBankCityTable { get; set; }
  78. public virtual DbSet<OpenBankTable> OpenBankTable { get; set; }
  79. public virtual DbSet<OpenReward> OpenReward { get; set; }
  80. public virtual DbSet<OpenRewardDetail> OpenRewardDetail { get; set; }
  81. public virtual DbSet<OpenSnSnapshot> OpenSnSnapshot { get; set; }
  82. public virtual DbSet<OperateLog> OperateLog { get; set; }
  83. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  84. public virtual DbSet<OrderForNo> OrderForNo { get; set; }
  85. public virtual DbSet<OrderProduct> OrderProduct { get; set; }
  86. public virtual DbSet<OrderRefund> OrderRefund { get; set; }
  87. public virtual DbSet<OrderRefundReason> OrderRefundReason { get; set; }
  88. public virtual DbSet<Orders> Orders { get; set; }
  89. public virtual DbSet<PageInfo> PageInfo { get; set; }
  90. public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
  91. public virtual DbSet<PosMachines> PosMachines { get; set; }
  92. public virtual DbSet<ProductComment> ProductComment { get; set; }
  93. public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
  94. public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
  95. public virtual DbSet<ProductFareTemp> ProductFareTemp { get; set; }
  96. public virtual DbSet<ProductKeys> ProductKeys { get; set; }
  97. public virtual DbSet<ProductNorm> ProductNorm { get; set; }
  98. public virtual DbSet<ProductNormItem> ProductNormItem { get; set; }
  99. public virtual DbSet<ProductNormTemp> ProductNormTemp { get; set; }
  100. public virtual DbSet<Products> Products { get; set; }
  101. public virtual DbSet<ProfitObjectActivations> ProfitObjectActivations { get; set; }
  102. public virtual DbSet<ProfitObjectContinueFloors> ProfitObjectContinueFloors { get; set; }
  103. public virtual DbSet<ProfitObjectFloors> ProfitObjectFloors { get; set; }
  104. public virtual DbSet<ProfitObjectLevelKinds> ProfitObjectLevelKinds { get; set; }
  105. public virtual DbSet<ProfitObjectLevels> ProfitObjectLevels { get; set; }
  106. public virtual DbSet<ProfitObjects> ProfitObjects { get; set; }
  107. public virtual DbSet<ProfitObjectsActiveCheck> ProfitObjectsActiveCheck { get; set; }
  108. public virtual DbSet<ProfitObjectsActiveParams> ProfitObjectsActiveParams { get; set; }
  109. public virtual DbSet<ProfitObjectsActives> ProfitObjectsActives { get; set; }
  110. public virtual DbSet<ProfitObjectsActivesForId> ProfitObjectsActivesForId { get; set; }
  111. public virtual DbSet<ProfitObjectsRule> ProfitObjectsRule { get; set; }
  112. public virtual DbSet<ProfitObjectsRuleDetails> ProfitObjectsRuleDetails { get; set; }
  113. public virtual DbSet<ProfitReceiveRecord> ProfitReceiveRecord { get; set; }
  114. public virtual DbSet<ProfitReceives> ProfitReceives { get; set; }
  115. public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
  116. public virtual DbSet<ProfitRewardRecord> ProfitRewardRecord { get; set; }
  117. public virtual DbSet<ProfitSubsidyDetail> ProfitSubsidyDetail { get; set; }
  118. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  119. public virtual DbSet<PullNewAct> PullNewAct { get; set; }
  120. public virtual DbSet<PullNewDetail> PullNewDetail { get; set; }
  121. public virtual DbSet<PullnewSummary> PullnewSummary { get; set; }
  122. public virtual DbSet<RightDic> RightDic { get; set; }
  123. public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
  124. public virtual DbSet<StoreBalance> StoreBalance { get; set; }
  125. public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
  126. public virtual DbSet<StoreForCode> StoreForCode { get; set; }
  127. public virtual DbSet<StoreForName> StoreForName { get; set; }
  128. public virtual DbSet<StoreHouse> StoreHouse { get; set; }
  129. public virtual DbSet<StoreMallOrderSummary> StoreMallOrderSummary { get; set; }
  130. public virtual DbSet<StoreSnActivateSummary> StoreSnActivateSummary { get; set; }
  131. public virtual DbSet<StoreStockChange> StoreStockChange { get; set; }
  132. public virtual DbSet<StoreSwapSn> StoreSwapSn { get; set; }
  133. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  134. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  135. public virtual DbSet<SysLog> SysLog { get; set; }
  136. public virtual DbSet<SysRechargeRecord> SysRechargeRecord { get; set; }
  137. public virtual DbSet<SystemSet> SystemSet { get; set; }
  138. public virtual DbSet<TeamApply> TeamApply { get; set; }
  139. public virtual DbSet<TeamApplyForTeamName> TeamApplyForTeamName { get; set; }
  140. public virtual DbSet<TeamApplyForTeamNo> TeamApplyForTeamNo { get; set; }
  141. public virtual DbSet<TeamBlackList> TeamBlackList { get; set; }
  142. public virtual DbSet<TeamConfig> TeamConfig { get; set; }
  143. public virtual DbSet<TeamDayTop> TeamDayTop { get; set; }
  144. public virtual DbSet<TeamOfferApply> TeamOfferApply { get; set; }
  145. public virtual DbSet<TeamPersonDayTop> TeamPersonDayTop { get; set; }
  146. public virtual DbSet<TradeDaySummary> TradeDaySummary { get; set; }
  147. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  148. public virtual DbSet<UploadParams> UploadParams { get; set; }
  149. public virtual DbSet<UserAccount> UserAccount { get; set; }
  150. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  151. public virtual DbSet<UserAddress> UserAddress { get; set; }
  152. public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
  153. public virtual DbSet<UserBack> UserBack { get; set; }
  154. public virtual DbSet<UserBackKind> UserBackKind { get; set; }
  155. public virtual DbSet<UserBalanceTop> UserBalanceTop { get; set; }
  156. public virtual DbSet<UserCar> UserCar { get; set; }
  157. public virtual DbSet<UserCardForWeChat> UserCardForWeChat { get; set; }
  158. public virtual DbSet<UserCardRecord> UserCardRecord { get; set; }
  159. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  160. public virtual DbSet<UserCenterIconList> UserCenterIconList { get; set; }
  161. public virtual DbSet<UserCollection> UserCollection { get; set; }
  162. public virtual DbSet<UserData> UserData { get; set; }
  163. public virtual DbSet<UserDetail> UserDetail { get; set; }
  164. public virtual DbSet<UserFamilyMember> UserFamilyMember { get; set; }
  165. public virtual DbSet<UserForMakerCode> UserForMakerCode { get; set; }
  166. public virtual DbSet<UserForMobile> UserForMobile { get; set; }
  167. public virtual DbSet<UserForRealName> UserForRealName { get; set; }
  168. public virtual DbSet<UserFriend> UserFriend { get; set; }
  169. public virtual DbSet<UserGroup> UserGroup { get; set; }
  170. public virtual DbSet<UserLevelSet> UserLevelSet { get; set; }
  171. public virtual DbSet<UserLoginRecord> UserLoginRecord { get; set; }
  172. public virtual DbSet<UserMachineData> UserMachineData { get; set; }
  173. public virtual DbSet<UserMallLargeSn> UserMallLargeSn { get; set; }
  174. public virtual DbSet<UserOfflineSignInRecords> UserOfflineSignInRecords { get; set; }
  175. public virtual DbSet<UserProfit> UserProfit { get; set; }
  176. public virtual DbSet<UserProfitSet> UserProfitSet { get; set; }
  177. public virtual DbSet<UserProfitSubsidySummary> UserProfitSubsidySummary { get; set; }
  178. public virtual DbSet<UserRank> UserRank { get; set; }
  179. public virtual DbSet<UserRankWhite> UserRankWhite { get; set; }
  180. public virtual DbSet<UserRebateDetail> UserRebateDetail { get; set; }
  181. public virtual DbSet<UserSnActInfo> UserSnActInfo { get; set; }
  182. public virtual DbSet<UserSnDelayChange> UserSnDelayChange { get; set; }
  183. public virtual DbSet<UserStoreChange> UserStoreChange { get; set; }
  184. public virtual DbSet<UserSwapDetail> UserSwapDetail { get; set; }
  185. public virtual DbSet<UserSwapSummary> UserSwapSummary { get; set; }
  186. public virtual DbSet<UserSwapWhite> UserSwapWhite { get; set; }
  187. public virtual DbSet<UserTradeDaySummary> UserTradeDaySummary { get; set; }
  188. public virtual DbSet<UserTradeMonthSummary> UserTradeMonthSummary { get; set; }
  189. public virtual DbSet<Users> Users { get; set; }
  190. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  191. {
  192. if (!optionsBuilder.IsConfigured)
  193. {
  194. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["Pxc1SqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  195. }
  196. }
  197. protected override void OnModelCreating(ModelBuilder modelBuilder)
  198. {
  199. modelBuilder.Entity<ActiveReward>(entity =>
  200. {
  201. entity.Property(e => e.Id).HasColumnType("int(11)");
  202. entity.Property(e => e.ActDate).HasColumnType("datetime");
  203. entity.Property(e => e.ActType).HasColumnType("int(11)");
  204. entity.Property(e => e.ActTypeDesc)
  205. .HasColumnType("varchar(64)")
  206. .HasCharSet("utf8")
  207. .HasCollation("utf8_general_ci");
  208. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  209. entity.Property(e => e.City)
  210. .HasColumnType("varchar(32)")
  211. .HasCharSet("utf8")
  212. .HasCollation("utf8_general_ci");
  213. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  214. entity.Property(e => e.CreateMan)
  215. .HasColumnType("varchar(50)")
  216. .HasCharSet("utf8")
  217. .HasCollation("utf8_general_ci");
  218. entity.Property(e => e.DirectBuddyNo).HasColumnType("int(11)");
  219. entity.Property(e => e.DivideAmount).HasColumnType("decimal(18,2)");
  220. entity.Property(e => e.KqMerNo)
  221. .HasColumnType("varchar(32)")
  222. .HasCharSet("utf8")
  223. .HasCollation("utf8_general_ci");
  224. entity.Property(e => e.KqSnNo)
  225. .HasColumnType("varchar(32)")
  226. .HasCharSet("utf8")
  227. .HasCollation("utf8_general_ci");
  228. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  229. entity.Property(e => e.MerUserNav)
  230. .HasColumnType("varchar(200)")
  231. .HasCharSet("utf8")
  232. .HasCollation("utf8_general_ci");
  233. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  234. entity.Property(e => e.ParentParentUserId).HasColumnType("int(11)");
  235. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  236. entity.Property(e => e.Province)
  237. .HasColumnType("varchar(32)")
  238. .HasCharSet("utf8")
  239. .HasCollation("utf8_general_ci");
  240. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  241. entity.Property(e => e.Remark)
  242. .HasColumnType("varchar(64)")
  243. .HasCharSet("utf8")
  244. .HasCollation("utf8_general_ci");
  245. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  246. entity.Property(e => e.RewardRef).HasColumnType("int(11)");
  247. entity.Property(e => e.RewardSourceUserId).HasColumnType("int(11)");
  248. entity.Property(e => e.RewardTips)
  249. .HasColumnType("varchar(16)")
  250. .HasCharSet("utf8")
  251. .HasCollation("utf8_general_ci");
  252. entity.Property(e => e.RuleRewardAmount).HasColumnType("decimal(18,2)");
  253. entity.Property(e => e.SeoDescription)
  254. .HasColumnType("varchar(500)")
  255. .HasCharSet("utf8")
  256. .HasCollation("utf8_general_ci");
  257. entity.Property(e => e.SeoKeyword)
  258. .HasColumnType("varchar(200)")
  259. .HasCharSet("utf8")
  260. .HasCollation("utf8_general_ci");
  261. entity.Property(e => e.SeoTitle)
  262. .HasColumnType("varchar(100)")
  263. .HasCharSet("utf8")
  264. .HasCollation("utf8_general_ci");
  265. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  266. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  267. entity.Property(e => e.SnType).HasColumnType("int(11)");
  268. entity.Property(e => e.Sort).HasColumnType("int(11)");
  269. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  270. entity.Property(e => e.Status).HasColumnType("int(11)");
  271. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  272. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  273. entity.Property(e => e.UpdateMan)
  274. .HasColumnType("varchar(50)")
  275. .HasCharSet("utf8")
  276. .HasCollation("utf8_general_ci");
  277. entity.Property(e => e.UserId).HasColumnType("int(11)");
  278. entity.Property(e => e.UserNav)
  279. .HasColumnType("varchar(200)")
  280. .HasCharSet("utf8")
  281. .HasCollation("utf8_general_ci");
  282. entity.Property(e => e.Version).HasColumnType("int(11)");
  283. });
  284. modelBuilder.Entity<ActivityEnrolRecord>(entity =>
  285. {
  286. entity.Property(e => e.Id).HasColumnType("int(11)");
  287. entity.Property(e => e.ActId).HasColumnType("int(11)");
  288. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  289. entity.Property(e => e.CreateMan)
  290. .HasColumnType("varchar(50)")
  291. .HasCharSet("utf8")
  292. .HasCollation("utf8_general_ci");
  293. entity.Property(e => e.EffectEndTime)
  294. .HasColumnType("varchar(8)")
  295. .HasCharSet("utf8")
  296. .HasCollation("utf8_general_ci");
  297. entity.Property(e => e.EffectStartTime)
  298. .HasColumnType("varchar(8)")
  299. .HasCharSet("utf8")
  300. .HasCollation("utf8_general_ci");
  301. entity.Property(e => e.EnrolMonth)
  302. .HasColumnType("varchar(80)")
  303. .HasCharSet("utf8")
  304. .HasCollation("utf8_general_ci");
  305. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  306. entity.Property(e => e.SeoDescription)
  307. .HasColumnType("varchar(500)")
  308. .HasCharSet("utf8")
  309. .HasCollation("utf8_general_ci");
  310. entity.Property(e => e.SeoKeyword)
  311. .HasColumnType("varchar(200)")
  312. .HasCharSet("utf8")
  313. .HasCollation("utf8_general_ci");
  314. entity.Property(e => e.SeoTitle)
  315. .HasColumnType("varchar(100)")
  316. .HasCharSet("utf8")
  317. .HasCollation("utf8_general_ci");
  318. entity.Property(e => e.Sort).HasColumnType("int(11)");
  319. entity.Property(e => e.Status).HasColumnType("int(11)");
  320. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  321. entity.Property(e => e.UpdateMan)
  322. .HasColumnType("varchar(50)")
  323. .HasCharSet("utf8")
  324. .HasCollation("utf8_general_ci");
  325. entity.Property(e => e.UserId).HasColumnType("int(11)");
  326. entity.Property(e => e.Version).HasColumnType("int(11)");
  327. });
  328. modelBuilder.Entity<ActivityInfo>(entity =>
  329. {
  330. entity.Property(e => e.Id).HasColumnType("int(11)");
  331. entity.Property(e => e.ActBanner)
  332. .HasColumnType("varchar(200)")
  333. .HasCharSet("utf8")
  334. .HasCollation("utf8_general_ci");
  335. entity.Property(e => e.ActCode)
  336. .HasColumnType("varchar(32)")
  337. .HasCharSet("utf8")
  338. .HasCollation("utf8_general_ci");
  339. entity.Property(e => e.ActContent)
  340. .HasColumnType("longtext")
  341. .HasCharSet("utf8")
  342. .HasCollation("utf8_general_ci");
  343. entity.Property(e => e.ActName)
  344. .HasColumnType("varchar(128)")
  345. .HasCharSet("utf8")
  346. .HasCollation("utf8_general_ci");
  347. entity.Property(e => e.ActReferUrl)
  348. .HasColumnType("varchar(255)")
  349. .HasCharSet("utf8")
  350. .HasCollation("utf8_general_ci");
  351. entity.Property(e => e.ActType).HasColumnType("int(11)");
  352. entity.Property(e => e.BrandId)
  353. .HasColumnType("varchar(100)")
  354. .HasCharSet("utf8")
  355. .HasCollation("utf8_general_ci");
  356. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  357. entity.Property(e => e.CreateMan)
  358. .HasColumnType("varchar(50)")
  359. .HasCharSet("utf8")
  360. .HasCollation("utf8_general_ci");
  361. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  362. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  363. entity.Property(e => e.EnrolEndDate).HasColumnType("datetime");
  364. entity.Property(e => e.EnrolEndTime)
  365. .HasColumnType("varchar(8)")
  366. .HasCharSet("utf8")
  367. .HasCollation("utf8_general_ci");
  368. entity.Property(e => e.EnrolStartDate).HasColumnType("datetime");
  369. entity.Property(e => e.EnrolStartTime)
  370. .HasColumnType("varchar(8)")
  371. .HasCharSet("utf8")
  372. .HasCollation("utf8_general_ci");
  373. entity.Property(e => e.IsTop).HasColumnType("int(11)");
  374. entity.Property(e => e.LimitTopBuddy)
  375. .HasColumnType("varchar(255)")
  376. .HasCharSet("utf8")
  377. .HasCollation("utf8_general_ci");
  378. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  379. entity.Property(e => e.Remark)
  380. .HasColumnType("varchar(128)")
  381. .HasCharSet("utf8")
  382. .HasCollation("utf8_general_ci");
  383. entity.Property(e => e.SeoDescription)
  384. .HasColumnType("varchar(500)")
  385. .HasCharSet("utf8")
  386. .HasCollation("utf8_general_ci");
  387. entity.Property(e => e.SeoKeyword)
  388. .HasColumnType("varchar(200)")
  389. .HasCharSet("utf8")
  390. .HasCollation("utf8_general_ci");
  391. entity.Property(e => e.SeoTitle)
  392. .HasColumnType("varchar(100)")
  393. .HasCharSet("utf8")
  394. .HasCollation("utf8_general_ci");
  395. entity.Property(e => e.Sort).HasColumnType("int(11)");
  396. entity.Property(e => e.Status).HasColumnType("int(11)");
  397. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  398. entity.Property(e => e.UpdateMan)
  399. .HasColumnType("varchar(50)")
  400. .HasCharSet("utf8")
  401. .HasCollation("utf8_general_ci");
  402. entity.Property(e => e.Version).HasColumnType("int(11)");
  403. });
  404. modelBuilder.Entity<ActivityPrizeDetail>(entity =>
  405. {
  406. entity.Property(e => e.Id).HasColumnType("int(11)");
  407. entity.Property(e => e.ActRewardAmt).HasColumnType("decimal(18,2)");
  408. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  409. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  410. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  411. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  412. entity.Property(e => e.CreateMan)
  413. .HasColumnType("varchar(50)")
  414. .HasCharSet("utf8")
  415. .HasCollation("utf8_general_ci");
  416. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  417. entity.Property(e => e.OtherProdCreditTradeAmt).HasColumnType("decimal(18,2)");
  418. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  419. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  420. entity.Property(e => e.SeoDescription)
  421. .HasColumnType("varchar(500)")
  422. .HasCharSet("utf8")
  423. .HasCollation("utf8_general_ci");
  424. entity.Property(e => e.SeoKeyword)
  425. .HasColumnType("varchar(200)")
  426. .HasCharSet("utf8")
  427. .HasCollation("utf8_general_ci");
  428. entity.Property(e => e.SeoTitle)
  429. .HasColumnType("varchar(100)")
  430. .HasCharSet("utf8")
  431. .HasCollation("utf8_general_ci");
  432. entity.Property(e => e.Sort).HasColumnType("int(11)");
  433. entity.Property(e => e.Status).HasColumnType("int(11)");
  434. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  435. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  436. entity.Property(e => e.TradeMonth)
  437. .HasColumnType("varchar(6)")
  438. .HasCharSet("utf8")
  439. .HasCollation("utf8_general_ci");
  440. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  441. entity.Property(e => e.UpdateMan)
  442. .HasColumnType("varchar(50)")
  443. .HasCharSet("utf8")
  444. .HasCollation("utf8_general_ci");
  445. entity.Property(e => e.UserId).HasColumnType("int(11)");
  446. entity.Property(e => e.Version).HasColumnType("int(11)");
  447. });
  448. modelBuilder.Entity<Advertisment>(entity =>
  449. {
  450. entity.Property(e => e.Id).HasColumnType("int(11)");
  451. entity.Property(e => e.ColId)
  452. .HasColumnType("varchar(30)")
  453. .HasCharSet("utf8")
  454. .HasCollation("utf8_general_ci");
  455. entity.Property(e => e.Contents)
  456. .HasColumnType("longtext")
  457. .HasCharSet("utf8")
  458. .HasCollation("utf8_general_ci");
  459. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  460. entity.Property(e => e.CreateMan)
  461. .HasColumnType("varchar(50)")
  462. .HasCharSet("utf8")
  463. .HasCollation("utf8_general_ci");
  464. entity.Property(e => e.PicPath)
  465. .HasColumnType("varchar(200)")
  466. .HasCharSet("utf8")
  467. .HasCollation("utf8_general_ci");
  468. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  469. entity.Property(e => e.SeoDescription)
  470. .HasColumnType("varchar(500)")
  471. .HasCharSet("utf8")
  472. .HasCollation("utf8_general_ci");
  473. entity.Property(e => e.SeoKeyword)
  474. .HasColumnType("varchar(200)")
  475. .HasCharSet("utf8")
  476. .HasCollation("utf8_general_ci");
  477. entity.Property(e => e.SeoTitle)
  478. .HasColumnType("varchar(100)")
  479. .HasCharSet("utf8")
  480. .HasCollation("utf8_general_ci");
  481. entity.Property(e => e.Sort).HasColumnType("int(11)");
  482. entity.Property(e => e.Status).HasColumnType("int(11)");
  483. entity.Property(e => e.Title)
  484. .HasColumnType("varchar(50)")
  485. .HasCharSet("utf8")
  486. .HasCollation("utf8_general_ci");
  487. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  488. entity.Property(e => e.UpdateMan)
  489. .HasColumnType("varchar(50)")
  490. .HasCharSet("utf8")
  491. .HasCollation("utf8_general_ci");
  492. entity.Property(e => e.Url)
  493. .HasColumnType("longtext")
  494. .HasCharSet("utf8")
  495. .HasCollation("utf8_general_ci");
  496. entity.Property(e => e.Version).HasColumnType("int(11)");
  497. });
  498. modelBuilder.Entity<AgentLevelSet>(entity =>
  499. {
  500. entity.Property(e => e.Id).HasColumnType("int(11)");
  501. entity.Property(e => e.AreasProfitPercent).HasColumnType("decimal(18,2)");
  502. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  503. entity.Property(e => e.CreateMan)
  504. .HasColumnType("varchar(50)")
  505. .HasCharSet("utf8")
  506. .HasCollation("utf8_general_ci");
  507. entity.Property(e => e.LevelDiff)
  508. .HasColumnType("bit(1)")
  509. .HasDefaultValueSql("b'0'");
  510. entity.Property(e => e.Name)
  511. .HasColumnType("varchar(50)")
  512. .HasCharSet("utf8")
  513. .HasCollation("utf8_general_ci");
  514. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  515. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  516. entity.Property(e => e.SeoDescription)
  517. .HasColumnType("varchar(500)")
  518. .HasCharSet("utf8")
  519. .HasCollation("utf8_general_ci");
  520. entity.Property(e => e.SeoKeyword)
  521. .HasColumnType("varchar(200)")
  522. .HasCharSet("utf8")
  523. .HasCollation("utf8_general_ci");
  524. entity.Property(e => e.SeoTitle)
  525. .HasColumnType("varchar(100)")
  526. .HasCharSet("utf8")
  527. .HasCollation("utf8_general_ci");
  528. entity.Property(e => e.Sort).HasColumnType("int(11)");
  529. entity.Property(e => e.Status).HasColumnType("int(11)");
  530. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  531. entity.Property(e => e.UpdateMan)
  532. .HasColumnType("varchar(50)")
  533. .HasCharSet("utf8")
  534. .HasCollation("utf8_general_ci");
  535. entity.Property(e => e.Version).HasColumnType("int(11)");
  536. });
  537. modelBuilder.Entity<AppBottomNavs>(entity =>
  538. {
  539. entity.Property(e => e.Id).HasColumnType("int(11)");
  540. entity.Property(e => e.BgColor)
  541. .HasColumnType("varchar(6)")
  542. .HasCharSet("utf8")
  543. .HasCollation("utf8_general_ci");
  544. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  545. entity.Property(e => e.CreateMan)
  546. .HasColumnType("varchar(50)")
  547. .HasCharSet("utf8")
  548. .HasCollation("utf8_general_ci");
  549. entity.Property(e => e.NoPageHint)
  550. .HasColumnType("varchar(50)")
  551. .HasCharSet("utf8")
  552. .HasCollation("utf8_general_ci");
  553. entity.Property(e => e.NormalIcon)
  554. .HasColumnType("varchar(200)")
  555. .HasCharSet("utf8")
  556. .HasCollation("utf8_general_ci");
  557. entity.Property(e => e.NormalTextColor)
  558. .HasColumnType("varchar(6)")
  559. .HasCharSet("utf8")
  560. .HasCollation("utf8_general_ci");
  561. entity.Property(e => e.PageName)
  562. .HasColumnType("varchar(50)")
  563. .HasCharSet("utf8")
  564. .HasCollation("utf8_general_ci");
  565. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  566. entity.Property(e => e.SelectIcon)
  567. .HasColumnType("varchar(200)")
  568. .HasCharSet("utf8")
  569. .HasCollation("utf8_general_ci");
  570. entity.Property(e => e.SelectTextColor)
  571. .HasColumnType("varchar(6)")
  572. .HasCharSet("utf8")
  573. .HasCollation("utf8_general_ci");
  574. entity.Property(e => e.SeoDescription)
  575. .HasColumnType("varchar(500)")
  576. .HasCharSet("utf8")
  577. .HasCollation("utf8_general_ci");
  578. entity.Property(e => e.SeoKeyword)
  579. .HasColumnType("varchar(200)")
  580. .HasCharSet("utf8")
  581. .HasCollation("utf8_general_ci");
  582. entity.Property(e => e.SeoTitle)
  583. .HasColumnType("varchar(100)")
  584. .HasCharSet("utf8")
  585. .HasCollation("utf8_general_ci");
  586. entity.Property(e => e.Sort).HasColumnType("int(11)");
  587. entity.Property(e => e.Status).HasColumnType("int(11)");
  588. entity.Property(e => e.Title)
  589. .HasColumnType("varchar(10)")
  590. .HasCharSet("utf8")
  591. .HasCollation("utf8_general_ci");
  592. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  593. entity.Property(e => e.UpdateMan)
  594. .HasColumnType("varchar(50)")
  595. .HasCharSet("utf8")
  596. .HasCollation("utf8_general_ci");
  597. entity.Property(e => e.Version).HasColumnType("int(11)");
  598. });
  599. modelBuilder.Entity<AppVersion>(entity =>
  600. {
  601. entity.Property(e => e.Id).HasColumnType("int(11)");
  602. entity.Property(e => e.CancelText)
  603. .HasColumnType("varchar(10)")
  604. .HasCharSet("utf8")
  605. .HasCollation("utf8_general_ci");
  606. entity.Property(e => e.ConfirmText)
  607. .HasColumnType("varchar(10)")
  608. .HasCharSet("utf8")
  609. .HasCollation("utf8_general_ci");
  610. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  611. entity.Property(e => e.CreateMan)
  612. .HasColumnType("varchar(50)")
  613. .HasCharSet("utf8")
  614. .HasCollation("utf8_general_ci");
  615. entity.Property(e => e.DownloadUrl)
  616. .HasColumnType("varchar(500)")
  617. .HasCharSet("utf8")
  618. .HasCollation("utf8_general_ci");
  619. entity.Property(e => e.Info)
  620. .HasColumnType("varchar(200)")
  621. .HasCharSet("utf8")
  622. .HasCollation("utf8_general_ci");
  623. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  624. entity.Property(e => e.SeoDescription)
  625. .HasColumnType("varchar(500)")
  626. .HasCharSet("utf8")
  627. .HasCollation("utf8_general_ci");
  628. entity.Property(e => e.SeoKeyword)
  629. .HasColumnType("varchar(200)")
  630. .HasCharSet("utf8")
  631. .HasCollation("utf8_general_ci");
  632. entity.Property(e => e.SeoTitle)
  633. .HasColumnType("varchar(100)")
  634. .HasCharSet("utf8")
  635. .HasCollation("utf8_general_ci");
  636. entity.Property(e => e.Sort).HasColumnType("int(11)");
  637. entity.Property(e => e.Status).HasColumnType("int(11)");
  638. entity.Property(e => e.TerminalKind)
  639. .HasColumnType("varchar(10)")
  640. .HasCharSet("utf8")
  641. .HasCollation("utf8_general_ci");
  642. entity.Property(e => e.Title)
  643. .HasColumnType("varchar(50)")
  644. .HasCharSet("utf8")
  645. .HasCollation("utf8_general_ci");
  646. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  647. entity.Property(e => e.UpdateMan)
  648. .HasColumnType("varchar(50)")
  649. .HasCharSet("utf8")
  650. .HasCollation("utf8_general_ci");
  651. entity.Property(e => e.Version).HasColumnType("int(11)");
  652. entity.Property(e => e.VersionNum)
  653. .HasColumnType("varchar(20)")
  654. .HasCharSet("utf8")
  655. .HasCollation("utf8_general_ci");
  656. });
  657. modelBuilder.Entity<AppVideo>(entity =>
  658. {
  659. entity.Property(e => e.Id).HasColumnType("int(11)");
  660. entity.Property(e => e.BannerPic)
  661. .HasColumnType("varchar(200)")
  662. .HasCharSet("utf8")
  663. .HasCollation("utf8_general_ci");
  664. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  665. entity.Property(e => e.CreateMan)
  666. .HasColumnType("varchar(50)")
  667. .HasCharSet("utf8")
  668. .HasCollation("utf8_general_ci");
  669. entity.Property(e => e.Name)
  670. .HasColumnType("varchar(50)")
  671. .HasCharSet("utf8")
  672. .HasCollation("utf8_general_ci");
  673. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  674. entity.Property(e => e.Remark)
  675. .HasColumnType("varchar(200)")
  676. .HasCharSet("utf8")
  677. .HasCollation("utf8_general_ci");
  678. entity.Property(e => e.SeoDescription)
  679. .HasColumnType("varchar(500)")
  680. .HasCharSet("utf8")
  681. .HasCollation("utf8_general_ci");
  682. entity.Property(e => e.SeoKeyword)
  683. .HasColumnType("varchar(200)")
  684. .HasCharSet("utf8")
  685. .HasCollation("utf8_general_ci");
  686. entity.Property(e => e.SeoTitle)
  687. .HasColumnType("varchar(100)")
  688. .HasCharSet("utf8")
  689. .HasCollation("utf8_general_ci");
  690. entity.Property(e => e.Sort).HasColumnType("int(11)");
  691. entity.Property(e => e.Status).HasColumnType("int(11)");
  692. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  693. entity.Property(e => e.UpdateMan)
  694. .HasColumnType("varchar(50)")
  695. .HasCharSet("utf8")
  696. .HasCollation("utf8_general_ci");
  697. entity.Property(e => e.Version).HasColumnType("int(11)");
  698. });
  699. modelBuilder.Entity<AppVideoList>(entity =>
  700. {
  701. entity.Property(e => e.Id).HasColumnType("int(11)");
  702. entity.Property(e => e.BgPic)
  703. .HasColumnType("varchar(200)")
  704. .HasCharSet("utf8")
  705. .HasCollation("utf8_general_ci");
  706. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  707. entity.Property(e => e.CreateMan)
  708. .HasColumnType("varchar(50)")
  709. .HasCharSet("utf8")
  710. .HasCollation("utf8_general_ci");
  711. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  712. entity.Property(e => e.Remark)
  713. .HasColumnType("varchar(200)")
  714. .HasCharSet("utf8")
  715. .HasCollation("utf8_general_ci");
  716. entity.Property(e => e.SeoDescription)
  717. .HasColumnType("varchar(500)")
  718. .HasCharSet("utf8")
  719. .HasCollation("utf8_general_ci");
  720. entity.Property(e => e.SeoKeyword)
  721. .HasColumnType("varchar(200)")
  722. .HasCharSet("utf8")
  723. .HasCollation("utf8_general_ci");
  724. entity.Property(e => e.SeoTitle)
  725. .HasColumnType("varchar(100)")
  726. .HasCharSet("utf8")
  727. .HasCollation("utf8_general_ci");
  728. entity.Property(e => e.Sort).HasColumnType("int(11)");
  729. entity.Property(e => e.Status).HasColumnType("int(11)");
  730. entity.Property(e => e.Title)
  731. .HasColumnType("varchar(50)")
  732. .HasCharSet("utf8")
  733. .HasCollation("utf8_general_ci");
  734. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  735. entity.Property(e => e.UpdateMan)
  736. .HasColumnType("varchar(50)")
  737. .HasCharSet("utf8")
  738. .HasCollation("utf8_general_ci");
  739. entity.Property(e => e.Version).HasColumnType("int(11)");
  740. entity.Property(e => e.VideoId).HasColumnType("int(11)");
  741. entity.Property(e => e.VideoUrl)
  742. .HasColumnType("varchar(500)")
  743. .HasCharSet("utf8")
  744. .HasCollation("utf8_general_ci");
  745. });
  746. modelBuilder.Entity<BankInfo>(entity =>
  747. {
  748. entity.Property(e => e.Id).HasColumnType("int(11)");
  749. entity.Property(e => e.BankCode)
  750. .HasColumnType("varchar(16)")
  751. .HasCharSet("utf8")
  752. .HasCollation("utf8_general_ci");
  753. entity.Property(e => e.BankName)
  754. .HasColumnType("varchar(100)")
  755. .HasCharSet("utf8")
  756. .HasCollation("utf8_general_ci");
  757. entity.Property(e => e.BankNameAbbr)
  758. .HasColumnType("varchar(60)")
  759. .HasCharSet("utf8")
  760. .HasCollation("utf8_general_ci");
  761. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  762. entity.Property(e => e.CreateMan)
  763. .HasColumnType("varchar(50)")
  764. .HasCharSet("utf8")
  765. .HasCollation("utf8_general_ci");
  766. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  767. entity.Property(e => e.SeoDescription)
  768. .HasColumnType("varchar(500)")
  769. .HasCharSet("utf8")
  770. .HasCollation("utf8_general_ci");
  771. entity.Property(e => e.SeoKeyword)
  772. .HasColumnType("varchar(200)")
  773. .HasCharSet("utf8")
  774. .HasCollation("utf8_general_ci");
  775. entity.Property(e => e.SeoTitle)
  776. .HasColumnType("varchar(100)")
  777. .HasCharSet("utf8")
  778. .HasCollation("utf8_general_ci");
  779. entity.Property(e => e.Sort).HasColumnType("int(11)");
  780. entity.Property(e => e.Status).HasColumnType("int(11)");
  781. entity.Property(e => e.UnitedBankName)
  782. .HasColumnType("varchar(100)")
  783. .HasCharSet("utf8")
  784. .HasCollation("utf8_general_ci");
  785. entity.Property(e => e.UnitedBankNo)
  786. .HasColumnType("varchar(16)")
  787. .HasCharSet("utf8")
  788. .HasCollation("utf8_general_ci");
  789. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  790. entity.Property(e => e.UpdateMan)
  791. .HasColumnType("varchar(50)")
  792. .HasCharSet("utf8")
  793. .HasCollation("utf8_general_ci");
  794. entity.Property(e => e.Version).HasColumnType("int(11)");
  795. });
  796. modelBuilder.Entity<Col>(entity =>
  797. {
  798. entity.Property(e => e.Id).HasColumnType("int(11)");
  799. entity.Property(e => e.ClassName)
  800. .HasColumnType("varchar(50)")
  801. .HasCharSet("utf8")
  802. .HasCollation("utf8_general_ci");
  803. entity.Property(e => e.ColDetail)
  804. .HasColumnType("varchar(50)")
  805. .HasCharSet("utf8")
  806. .HasCollation("utf8_general_ci");
  807. entity.Property(e => e.ColEnName)
  808. .HasColumnType("varchar(50)")
  809. .HasCharSet("utf8")
  810. .HasCollation("utf8_general_ci");
  811. entity.Property(e => e.ColEnNav)
  812. .HasColumnType("varchar(200)")
  813. .HasCharSet("utf8")
  814. .HasCollation("utf8_general_ci");
  815. entity.Property(e => e.ColId)
  816. .HasColumnType("varchar(30)")
  817. .HasCharSet("utf8")
  818. .HasCollation("utf8_general_ci");
  819. entity.Property(e => e.ColName)
  820. .HasColumnType("varchar(50)")
  821. .HasCharSet("utf8")
  822. .HasCollation("utf8_general_ci");
  823. entity.Property(e => e.ColPicPath)
  824. .HasColumnType("varchar(200)")
  825. .HasCharSet("utf8")
  826. .HasCollation("utf8_general_ci");
  827. entity.Property(e => e.Contents)
  828. .HasColumnType("longtext")
  829. .HasCharSet("utf8")
  830. .HasCollation("utf8_general_ci");
  831. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  832. entity.Property(e => e.CreateMan)
  833. .HasColumnType("varchar(50)")
  834. .HasCharSet("utf8")
  835. .HasCollation("utf8_general_ci");
  836. entity.Property(e => e.DetailTemp)
  837. .HasColumnType("varchar(100)")
  838. .HasCharSet("utf8")
  839. .HasCollation("utf8_general_ci");
  840. entity.Property(e => e.DetailTempM)
  841. .HasColumnType("varchar(100)")
  842. .HasCharSet("utf8")
  843. .HasCollation("utf8_general_ci");
  844. entity.Property(e => e.ListPageCount).HasColumnType("int(11)");
  845. entity.Property(e => e.ListTemp)
  846. .HasColumnType("varchar(100)")
  847. .HasCharSet("utf8")
  848. .HasCollation("utf8_general_ci");
  849. entity.Property(e => e.ListTempM)
  850. .HasColumnType("varchar(100)")
  851. .HasCharSet("utf8")
  852. .HasCollation("utf8_general_ci");
  853. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  854. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  855. entity.Property(e => e.Recommend)
  856. .HasColumnType("bit(1)")
  857. .HasDefaultValueSql("b'0'");
  858. entity.Property(e => e.SeoDescription)
  859. .HasColumnType("varchar(500)")
  860. .HasCharSet("utf8")
  861. .HasCollation("utf8_general_ci");
  862. entity.Property(e => e.SeoKeyword)
  863. .HasColumnType("varchar(200)")
  864. .HasCharSet("utf8")
  865. .HasCollation("utf8_general_ci");
  866. entity.Property(e => e.SeoTitle)
  867. .HasColumnType("varchar(100)")
  868. .HasCharSet("utf8")
  869. .HasCollation("utf8_general_ci");
  870. entity.Property(e => e.Sort).HasColumnType("int(11)");
  871. entity.Property(e => e.Status).HasColumnType("int(11)");
  872. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  873. entity.Property(e => e.UpdateMan)
  874. .HasColumnType("varchar(50)")
  875. .HasCharSet("utf8")
  876. .HasCollation("utf8_general_ci");
  877. entity.Property(e => e.Url)
  878. .HasColumnType("longtext")
  879. .HasCharSet("utf8")
  880. .HasCollation("utf8_general_ci");
  881. entity.Property(e => e.Version).HasColumnType("int(11)");
  882. });
  883. modelBuilder.Entity<ConsumerOpenIds>(entity =>
  884. {
  885. entity.HasKey(e => e.OpenId)
  886. .HasName("PRIMARY");
  887. entity.Property(e => e.OpenId)
  888. .HasColumnType("varchar(50)")
  889. .HasCharSet("utf8")
  890. .HasCollation("utf8_general_ci");
  891. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  892. });
  893. modelBuilder.Entity<ConsumerOrderForNo>(entity =>
  894. {
  895. entity.HasKey(e => e.OrderNo)
  896. .HasName("PRIMARY");
  897. entity.Property(e => e.OrderNo)
  898. .HasColumnType("varchar(50)")
  899. .HasCharSet("utf8")
  900. .HasCollation("utf8_general_ci");
  901. entity.Property(e => e.OrderIds).HasColumnType("int(11)");
  902. });
  903. modelBuilder.Entity<ConsumerOrders>(entity =>
  904. {
  905. entity.Property(e => e.Id).HasColumnType("int(11)");
  906. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  907. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  908. entity.Property(e => e.CreateMan)
  909. .HasColumnType("varchar(50)")
  910. .HasCharSet("utf8")
  911. .HasCollation("utf8_general_ci");
  912. entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
  913. entity.Property(e => e.IsAct)
  914. .HasColumnType("bit(1)")
  915. .HasDefaultValueSql("b'0'");
  916. entity.Property(e => e.MaxDivi).HasColumnType("decimal(18,2)");
  917. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  918. entity.Property(e => e.OrderNo)
  919. .HasColumnType("varchar(30)")
  920. .HasCharSet("utf8")
  921. .HasCollation("utf8_general_ci");
  922. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  923. entity.Property(e => e.PayMoney).HasColumnType("decimal(18,2)");
  924. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  925. entity.Property(e => e.ReturnMoney).HasColumnType("decimal(18,2)");
  926. entity.Property(e => e.SeoDescription)
  927. .HasColumnType("varchar(500)")
  928. .HasCharSet("utf8")
  929. .HasCollation("utf8_general_ci");
  930. entity.Property(e => e.SeoKeyword)
  931. .HasColumnType("varchar(200)")
  932. .HasCharSet("utf8")
  933. .HasCollation("utf8_general_ci");
  934. entity.Property(e => e.SeoTitle)
  935. .HasColumnType("varchar(100)")
  936. .HasCharSet("utf8")
  937. .HasCollation("utf8_general_ci");
  938. entity.Property(e => e.SnNo)
  939. .HasColumnType("varchar(50)")
  940. .HasCharSet("utf8")
  941. .HasCollation("utf8_general_ci");
  942. entity.Property(e => e.Sort).HasColumnType("int(11)");
  943. entity.Property(e => e.Status).HasColumnType("int(11)");
  944. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  945. entity.Property(e => e.UpdateMan)
  946. .HasColumnType("varchar(50)")
  947. .HasCharSet("utf8")
  948. .HasCollation("utf8_general_ci");
  949. entity.Property(e => e.Version).HasColumnType("int(11)");
  950. });
  951. modelBuilder.Entity<ConsumerProfit>(entity =>
  952. {
  953. entity.Property(e => e.Id).HasColumnType("int(11)");
  954. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  955. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  956. entity.Property(e => e.CreateMan)
  957. .HasColumnType("varchar(50)")
  958. .HasCharSet("utf8")
  959. .HasCollation("utf8_general_ci");
  960. entity.Property(e => e.GetMoney).HasColumnType("decimal(18,2)");
  961. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  962. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  963. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  964. entity.Property(e => e.SeoDescription)
  965. .HasColumnType("varchar(500)")
  966. .HasCharSet("utf8")
  967. .HasCollation("utf8_general_ci");
  968. entity.Property(e => e.SeoKeyword)
  969. .HasColumnType("varchar(200)")
  970. .HasCharSet("utf8")
  971. .HasCollation("utf8_general_ci");
  972. entity.Property(e => e.SeoTitle)
  973. .HasColumnType("varchar(100)")
  974. .HasCharSet("utf8")
  975. .HasCollation("utf8_general_ci");
  976. entity.Property(e => e.Sort).HasColumnType("int(11)");
  977. entity.Property(e => e.Status).HasColumnType("int(11)");
  978. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  979. entity.Property(e => e.UpdateMan)
  980. .HasColumnType("varchar(50)")
  981. .HasCharSet("utf8")
  982. .HasCollation("utf8_general_ci");
  983. entity.Property(e => e.Version).HasColumnType("int(11)");
  984. });
  985. modelBuilder.Entity<Consumers>(entity =>
  986. {
  987. entity.Property(e => e.Id).HasColumnType("int(11)");
  988. entity.Property(e => e.AlipayFlag)
  989. .HasColumnType("bit(1)")
  990. .HasDefaultValueSql("b'0'");
  991. entity.Property(e => e.AlipayUserId)
  992. .HasColumnType("varchar(50)")
  993. .HasCharSet("utf8")
  994. .HasCollation("utf8_general_ci");
  995. entity.Property(e => e.CardFlag)
  996. .HasColumnType("bit(1)")
  997. .HasDefaultValueSql("b'0'");
  998. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  999. entity.Property(e => e.CreateMan)
  1000. .HasColumnType("varchar(50)")
  1001. .HasCharSet("utf8")
  1002. .HasCollation("utf8_general_ci");
  1003. entity.Property(e => e.CurIntgegral).HasColumnType("int(11)");
  1004. entity.Property(e => e.HeadPhoto)
  1005. .HasColumnType("varchar(2000)")
  1006. .HasCharSet("utf8")
  1007. .HasCollation("utf8_general_ci");
  1008. entity.Property(e => e.LastConsumDate).HasColumnType("datetime");
  1009. entity.Property(e => e.Mobile)
  1010. .HasColumnType("varchar(11)")
  1011. .HasCharSet("utf8")
  1012. .HasCollation("utf8_general_ci");
  1013. entity.Property(e => e.NickName)
  1014. .HasColumnType("varchar(50)")
  1015. .HasCharSet("utf8")
  1016. .HasCollation("utf8_general_ci");
  1017. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1018. entity.Property(e => e.SeoDescription)
  1019. .HasColumnType("varchar(500)")
  1020. .HasCharSet("utf8")
  1021. .HasCollation("utf8_general_ci");
  1022. entity.Property(e => e.SeoKeyword)
  1023. .HasColumnType("varchar(200)")
  1024. .HasCharSet("utf8")
  1025. .HasCollation("utf8_general_ci");
  1026. entity.Property(e => e.SeoTitle)
  1027. .HasColumnType("varchar(100)")
  1028. .HasCharSet("utf8")
  1029. .HasCollation("utf8_general_ci");
  1030. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1031. entity.Property(e => e.Status).HasColumnType("int(11)");
  1032. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1033. entity.Property(e => e.TotalConsumCount).HasColumnType("int(11)");
  1034. entity.Property(e => e.TotalDividend).HasColumnType("decimal(18,2)");
  1035. entity.Property(e => e.TotalIntegral).HasColumnType("int(11)");
  1036. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1037. entity.Property(e => e.UpdateMan)
  1038. .HasColumnType("varchar(50)")
  1039. .HasCharSet("utf8")
  1040. .HasCollation("utf8_general_ci");
  1041. entity.Property(e => e.Version).HasColumnType("int(11)");
  1042. entity.Property(e => e.WeChatPayFlag)
  1043. .HasColumnType("bit(1)")
  1044. .HasDefaultValueSql("b'0'");
  1045. entity.Property(e => e.WechatOpenId)
  1046. .HasColumnType("varchar(50)")
  1047. .HasCharSet("utf8")
  1048. .HasCollation("utf8_general_ci");
  1049. entity.Property(e => e.WechatUnionid)
  1050. .HasColumnType("varchar(50)")
  1051. .HasCharSet("utf8")
  1052. .HasCollation("utf8_general_ci");
  1053. });
  1054. modelBuilder.Entity<CouponAssignRecords>(entity =>
  1055. {
  1056. entity.Property(e => e.Id).HasColumnType("int(11)");
  1057. entity.Property(e => e.Areas)
  1058. .HasColumnType("varchar(50)")
  1059. .HasCharSet("utf8")
  1060. .HasCollation("utf8_general_ci");
  1061. entity.Property(e => e.CouponIds)
  1062. .HasColumnType("varchar(200)")
  1063. .HasCharSet("utf8")
  1064. .HasCollation("utf8_general_ci");
  1065. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1066. entity.Property(e => e.CreateMan)
  1067. .HasColumnType("varchar(50)")
  1068. .HasCharSet("utf8")
  1069. .HasCollation("utf8_general_ci");
  1070. entity.Property(e => e.CurMoneyMax).HasColumnType("decimal(18,2)");
  1071. entity.Property(e => e.CurMoneyMin).HasColumnType("decimal(18,2)");
  1072. entity.Property(e => e.Mobile)
  1073. .HasColumnType("varchar(11)")
  1074. .HasCharSet("utf8")
  1075. .HasCollation("utf8_general_ci");
  1076. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1077. entity.Property(e => e.SeoDescription)
  1078. .HasColumnType("varchar(500)")
  1079. .HasCharSet("utf8")
  1080. .HasCollation("utf8_general_ci");
  1081. entity.Property(e => e.SeoKeyword)
  1082. .HasColumnType("varchar(200)")
  1083. .HasCharSet("utf8")
  1084. .HasCollation("utf8_general_ci");
  1085. entity.Property(e => e.SeoTitle)
  1086. .HasColumnType("varchar(100)")
  1087. .HasCharSet("utf8")
  1088. .HasCollation("utf8_general_ci");
  1089. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1090. entity.Property(e => e.Status).HasColumnType("int(11)");
  1091. entity.Property(e => e.TotalOrderMoneyMax).HasColumnType("decimal(18,2)");
  1092. entity.Property(e => e.TotalOrderMoneyMin).HasColumnType("decimal(18,2)");
  1093. entity.Property(e => e.TotalUseIntegralMax).HasColumnType("decimal(18,2)");
  1094. entity.Property(e => e.TotalUseIntegralMin).HasColumnType("decimal(18,2)");
  1095. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1096. entity.Property(e => e.UpdateMan)
  1097. .HasColumnType("varchar(50)")
  1098. .HasCharSet("utf8")
  1099. .HasCollation("utf8_general_ci");
  1100. entity.Property(e => e.UserGroupId)
  1101. .HasColumnType("varchar(50)")
  1102. .HasCharSet("utf8")
  1103. .HasCollation("utf8_general_ci");
  1104. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1105. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1106. entity.Property(e => e.Version).HasColumnType("int(11)");
  1107. });
  1108. modelBuilder.Entity<Coupons>(entity =>
  1109. {
  1110. entity.Property(e => e.Id).HasColumnType("int(11)");
  1111. entity.Property(e => e.AndPromotion)
  1112. .HasColumnType("bit(1)")
  1113. .HasDefaultValueSql("b'0'");
  1114. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1115. entity.Property(e => e.CreateMan)
  1116. .HasColumnType("varchar(50)")
  1117. .HasCharSet("utf8")
  1118. .HasCollation("utf8_general_ci");
  1119. entity.Property(e => e.ExpireEndDate).HasColumnType("datetime");
  1120. entity.Property(e => e.ExpireStartDate).HasColumnType("datetime");
  1121. entity.Property(e => e.Explanation)
  1122. .HasColumnType("varchar(200)")
  1123. .HasCharSet("utf8")
  1124. .HasCollation("utf8_general_ci");
  1125. entity.Property(e => e.FullReduceData).HasColumnType("decimal(18,2)");
  1126. entity.Property(e => e.FullReduceMoney).HasColumnType("decimal(18,2)");
  1127. entity.Property(e => e.IsNewUser)
  1128. .HasColumnType("bit(1)")
  1129. .HasDefaultValueSql("b'0'");
  1130. entity.Property(e => e.IsPublic)
  1131. .HasColumnType("bit(1)")
  1132. .HasDefaultValueSql("b'0'");
  1133. entity.Property(e => e.IsReUse)
  1134. .HasColumnType("bit(1)")
  1135. .HasDefaultValueSql("b'0'");
  1136. entity.Property(e => e.IsRepeat)
  1137. .HasColumnType("bit(1)")
  1138. .HasDefaultValueSql("b'0'");
  1139. entity.Property(e => e.IsSuperpose)
  1140. .HasColumnType("bit(1)")
  1141. .HasDefaultValueSql("b'0'");
  1142. entity.Property(e => e.Kind).HasColumnType("int(11)");
  1143. entity.Property(e => e.MerchantId)
  1144. .HasColumnType("varchar(200)")
  1145. .HasCharSet("utf8")
  1146. .HasCollation("utf8_general_ci");
  1147. entity.Property(e => e.Name)
  1148. .HasColumnType("varchar(50)")
  1149. .HasCharSet("utf8")
  1150. .HasCollation("utf8_general_ci");
  1151. entity.Property(e => e.ProductColId)
  1152. .HasColumnType("varchar(200)")
  1153. .HasCharSet("utf8")
  1154. .HasCollation("utf8_general_ci");
  1155. entity.Property(e => e.ProductId)
  1156. .HasColumnType("varchar(500)")
  1157. .HasCharSet("utf8")
  1158. .HasCollation("utf8_general_ci");
  1159. entity.Property(e => e.PublicEndDate).HasColumnType("datetime");
  1160. entity.Property(e => e.PublicMax).HasColumnType("int(11)");
  1161. entity.Property(e => e.PublicMaxByDay).HasColumnType("int(11)");
  1162. entity.Property(e => e.PublicStartDate).HasColumnType("datetime");
  1163. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1164. entity.Property(e => e.RepeatCondition)
  1165. .HasColumnType("varchar(50)")
  1166. .HasCharSet("utf8")
  1167. .HasCollation("utf8_general_ci");
  1168. entity.Property(e => e.RepeatType).HasColumnType("int(11)");
  1169. entity.Property(e => e.SeoDescription)
  1170. .HasColumnType("varchar(500)")
  1171. .HasCharSet("utf8")
  1172. .HasCollation("utf8_general_ci");
  1173. entity.Property(e => e.SeoKeyword)
  1174. .HasColumnType("varchar(200)")
  1175. .HasCharSet("utf8")
  1176. .HasCollation("utf8_general_ci");
  1177. entity.Property(e => e.SeoTitle)
  1178. .HasColumnType("varchar(100)")
  1179. .HasCharSet("utf8")
  1180. .HasCollation("utf8_general_ci");
  1181. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1182. entity.Property(e => e.Status).HasColumnType("int(11)");
  1183. entity.Property(e => e.Stock).HasColumnType("decimal(18,2)");
  1184. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1185. entity.Property(e => e.UpdateMan)
  1186. .HasColumnType("varchar(50)")
  1187. .HasCharSet("utf8")
  1188. .HasCollation("utf8_general_ci");
  1189. entity.Property(e => e.UseEndDate).HasColumnType("datetime");
  1190. entity.Property(e => e.UseStartDate).HasColumnType("datetime");
  1191. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1192. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1193. entity.Property(e => e.Version).HasColumnType("int(11)");
  1194. });
  1195. modelBuilder.Entity<CouponsForUser>(entity =>
  1196. {
  1197. entity.Property(e => e.Id).HasColumnType("int(11)");
  1198. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  1199. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1200. entity.Property(e => e.CreateMan)
  1201. .HasColumnType("varchar(50)")
  1202. .HasCharSet("utf8")
  1203. .HasCollation("utf8_general_ci");
  1204. entity.Property(e => e.IsLock)
  1205. .HasColumnType("bit(1)")
  1206. .HasDefaultValueSql("b'0'");
  1207. entity.Property(e => e.IsUse)
  1208. .HasColumnType("bit(1)")
  1209. .HasDefaultValueSql("b'0'");
  1210. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1211. entity.Property(e => e.SeoDescription)
  1212. .HasColumnType("varchar(500)")
  1213. .HasCharSet("utf8")
  1214. .HasCollation("utf8_general_ci");
  1215. entity.Property(e => e.SeoKeyword)
  1216. .HasColumnType("varchar(200)")
  1217. .HasCharSet("utf8")
  1218. .HasCollation("utf8_general_ci");
  1219. entity.Property(e => e.SeoTitle)
  1220. .HasColumnType("varchar(100)")
  1221. .HasCharSet("utf8")
  1222. .HasCollation("utf8_general_ci");
  1223. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1224. entity.Property(e => e.Status).HasColumnType("int(11)");
  1225. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1226. entity.Property(e => e.UpdateMan)
  1227. .HasColumnType("varchar(50)")
  1228. .HasCharSet("utf8")
  1229. .HasCollation("utf8_general_ci");
  1230. entity.Property(e => e.UseDate).HasColumnType("datetime");
  1231. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1232. entity.Property(e => e.Version).HasColumnType("int(11)");
  1233. });
  1234. modelBuilder.Entity<CustomTagSet>(entity =>
  1235. {
  1236. entity.Property(e => e.Id).HasColumnType("int(11)");
  1237. entity.Property(e => e.Contents)
  1238. .HasColumnType("varchar(500)")
  1239. .HasCharSet("utf8")
  1240. .HasCollation("utf8_general_ci");
  1241. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1242. entity.Property(e => e.CreateMan)
  1243. .HasColumnType("varchar(50)")
  1244. .HasCharSet("utf8")
  1245. .HasCollation("utf8_general_ci");
  1246. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1247. entity.Property(e => e.SeoDescription)
  1248. .HasColumnType("varchar(500)")
  1249. .HasCharSet("utf8")
  1250. .HasCollation("utf8_general_ci");
  1251. entity.Property(e => e.SeoKeyword)
  1252. .HasColumnType("varchar(200)")
  1253. .HasCharSet("utf8")
  1254. .HasCollation("utf8_general_ci");
  1255. entity.Property(e => e.SeoTitle)
  1256. .HasColumnType("varchar(100)")
  1257. .HasCharSet("utf8")
  1258. .HasCollation("utf8_general_ci");
  1259. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1260. entity.Property(e => e.Status).HasColumnType("int(11)");
  1261. entity.Property(e => e.Tags)
  1262. .HasColumnType("varchar(50)")
  1263. .HasCharSet("utf8")
  1264. .HasCollation("utf8_general_ci");
  1265. entity.Property(e => e.Title)
  1266. .HasColumnType("varchar(50)")
  1267. .HasCharSet("utf8")
  1268. .HasCollation("utf8_general_ci");
  1269. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1270. entity.Property(e => e.UpdateMan)
  1271. .HasColumnType("varchar(50)")
  1272. .HasCharSet("utf8")
  1273. .HasCollation("utf8_general_ci");
  1274. entity.Property(e => e.Version).HasColumnType("int(11)");
  1275. });
  1276. modelBuilder.Entity<ErpCompanys>(entity =>
  1277. {
  1278. entity.Property(e => e.Id).HasColumnType("int(11)");
  1279. entity.Property(e => e.Code)
  1280. .HasColumnType("varchar(50)")
  1281. .HasCharSet("utf8")
  1282. .HasCollation("utf8_general_ci");
  1283. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1284. entity.Property(e => e.CreateMan)
  1285. .HasColumnType("varchar(50)")
  1286. .HasCharSet("utf8")
  1287. .HasCollation("utf8_general_ci");
  1288. entity.Property(e => e.Name)
  1289. .HasColumnType("varchar(50)")
  1290. .HasCharSet("utf8")
  1291. .HasCollation("utf8_general_ci");
  1292. entity.Property(e => e.Phone)
  1293. .HasColumnType("varchar(30)")
  1294. .HasCharSet("utf8")
  1295. .HasCollation("utf8_general_ci");
  1296. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1297. entity.Property(e => e.SeoDescription)
  1298. .HasColumnType("varchar(500)")
  1299. .HasCharSet("utf8")
  1300. .HasCollation("utf8_general_ci");
  1301. entity.Property(e => e.SeoKeyword)
  1302. .HasColumnType("varchar(200)")
  1303. .HasCharSet("utf8")
  1304. .HasCollation("utf8_general_ci");
  1305. entity.Property(e => e.SeoTitle)
  1306. .HasColumnType("varchar(100)")
  1307. .HasCharSet("utf8")
  1308. .HasCollation("utf8_general_ci");
  1309. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1310. entity.Property(e => e.Status).HasColumnType("int(11)");
  1311. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1312. entity.Property(e => e.UpdateMan)
  1313. .HasColumnType("varchar(50)")
  1314. .HasCharSet("utf8")
  1315. .HasCollation("utf8_general_ci");
  1316. entity.Property(e => e.Version).HasColumnType("int(11)");
  1317. });
  1318. modelBuilder.Entity<FileUpdateInfo>(entity =>
  1319. {
  1320. entity.Property(e => e.Id).HasColumnType("int(11)");
  1321. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1322. entity.Property(e => e.CreateMan)
  1323. .HasColumnType("varchar(50)")
  1324. .HasCharSet("utf8")
  1325. .HasCollation("utf8_general_ci");
  1326. entity.Property(e => e.FileName)
  1327. .HasColumnType("varchar(50)")
  1328. .HasCharSet("utf8")
  1329. .HasCollation("utf8_general_ci");
  1330. entity.Property(e => e.Path)
  1331. .HasColumnType("varchar(200)")
  1332. .HasCharSet("utf8")
  1333. .HasCollation("utf8_general_ci");
  1334. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1335. entity.Property(e => e.SeoDescription)
  1336. .HasColumnType("varchar(500)")
  1337. .HasCharSet("utf8")
  1338. .HasCollation("utf8_general_ci");
  1339. entity.Property(e => e.SeoKeyword)
  1340. .HasColumnType("varchar(200)")
  1341. .HasCharSet("utf8")
  1342. .HasCollation("utf8_general_ci");
  1343. entity.Property(e => e.SeoTitle)
  1344. .HasColumnType("varchar(100)")
  1345. .HasCharSet("utf8")
  1346. .HasCollation("utf8_general_ci");
  1347. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1348. entity.Property(e => e.Status).HasColumnType("int(11)");
  1349. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1350. entity.Property(e => e.UpdateMan)
  1351. .HasColumnType("varchar(50)")
  1352. .HasCharSet("utf8")
  1353. .HasCollation("utf8_general_ci");
  1354. entity.Property(e => e.Version).HasColumnType("int(11)");
  1355. entity.Property(e => e.VersionNum).HasColumnType("int(11)");
  1356. });
  1357. modelBuilder.Entity<FluxProfitDetail>(entity =>
  1358. {
  1359. entity.Property(e => e.Id).HasColumnType("int(11)");
  1360. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1361. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1362. entity.Property(e => e.CreateMan)
  1363. .HasColumnType("varchar(50)")
  1364. .HasCharSet("utf8")
  1365. .HasCollation("utf8_general_ci");
  1366. entity.Property(e => e.FluxEndDate)
  1367. .HasColumnType("varchar(8)")
  1368. .HasCharSet("utf8")
  1369. .HasCollation("utf8_general_ci");
  1370. entity.Property(e => e.FluxFeeAmt).HasColumnType("decimal(18,2)");
  1371. entity.Property(e => e.FluxOrderNo)
  1372. .HasColumnType("varchar(64)")
  1373. .HasCharSet("utf8")
  1374. .HasCollation("utf8_general_ci");
  1375. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1376. entity.Property(e => e.FluxStartDate)
  1377. .HasColumnType("varchar(8)")
  1378. .HasCharSet("utf8")
  1379. .HasCollation("utf8_general_ci");
  1380. entity.Property(e => e.MerNo)
  1381. .HasColumnType("varchar(32)")
  1382. .HasCharSet("utf8")
  1383. .HasCollation("utf8_general_ci");
  1384. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1385. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1386. entity.Property(e => e.MerchantUserId).HasColumnType("int(11)");
  1387. entity.Property(e => e.PosType)
  1388. .HasColumnType("varchar(32)")
  1389. .HasCharSet("utf8")
  1390. .HasCollation("utf8_general_ci");
  1391. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  1392. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1393. entity.Property(e => e.RecordNo)
  1394. .HasColumnType("varchar(32)")
  1395. .HasCharSet("utf8")
  1396. .HasCollation("utf8_general_ci");
  1397. entity.Property(e => e.Remark)
  1398. .HasColumnType("varchar(128)")
  1399. .HasCharSet("utf8")
  1400. .HasCollation("utf8_general_ci");
  1401. entity.Property(e => e.SeoDescription)
  1402. .HasColumnType("varchar(500)")
  1403. .HasCharSet("utf8")
  1404. .HasCollation("utf8_general_ci");
  1405. entity.Property(e => e.SeoKeyword)
  1406. .HasColumnType("varchar(200)")
  1407. .HasCharSet("utf8")
  1408. .HasCollation("utf8_general_ci");
  1409. entity.Property(e => e.SeoTitle)
  1410. .HasColumnType("varchar(100)")
  1411. .HasCharSet("utf8")
  1412. .HasCollation("utf8_general_ci");
  1413. entity.Property(e => e.SnNo)
  1414. .HasColumnType("varchar(32)")
  1415. .HasCharSet("utf8")
  1416. .HasCollation("utf8_general_ci");
  1417. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1418. entity.Property(e => e.Status).HasColumnType("int(11)");
  1419. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1420. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  1421. entity.Property(e => e.TradeDate)
  1422. .HasColumnType("varchar(8)")
  1423. .HasCharSet("utf8")
  1424. .HasCollation("utf8_general_ci");
  1425. entity.Property(e => e.TradeMonth)
  1426. .HasColumnType("varchar(6)")
  1427. .HasCharSet("utf8")
  1428. .HasCollation("utf8_general_ci");
  1429. entity.Property(e => e.TradeOrderNo)
  1430. .HasColumnType("varchar(64)")
  1431. .HasCharSet("utf8")
  1432. .HasCollation("utf8_general_ci");
  1433. entity.Property(e => e.TradeTime)
  1434. .HasColumnType("varchar(6)")
  1435. .HasCharSet("utf8")
  1436. .HasCollation("utf8_general_ci");
  1437. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1438. entity.Property(e => e.UpdateMan)
  1439. .HasColumnType("varchar(50)")
  1440. .HasCharSet("utf8")
  1441. .HasCollation("utf8_general_ci");
  1442. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1443. entity.Property(e => e.Version).HasColumnType("int(11)");
  1444. });
  1445. modelBuilder.Entity<FluxProfitSummary>(entity =>
  1446. {
  1447. entity.Property(e => e.Id).HasColumnType("int(11)");
  1448. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1449. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  1450. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1451. entity.Property(e => e.CreateMan)
  1452. .HasColumnType("varchar(50)")
  1453. .HasCharSet("utf8")
  1454. .HasCollation("utf8_general_ci");
  1455. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1456. entity.Property(e => e.FluxTradeNum).HasColumnType("int(11)");
  1457. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1458. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1459. entity.Property(e => e.Remark)
  1460. .HasColumnType("varchar(64)")
  1461. .HasCharSet("utf8")
  1462. .HasCollation("utf8_general_ci");
  1463. entity.Property(e => e.SeoDescription)
  1464. .HasColumnType("varchar(500)")
  1465. .HasCharSet("utf8")
  1466. .HasCollation("utf8_general_ci");
  1467. entity.Property(e => e.SeoKeyword)
  1468. .HasColumnType("varchar(200)")
  1469. .HasCharSet("utf8")
  1470. .HasCollation("utf8_general_ci");
  1471. entity.Property(e => e.SeoTitle)
  1472. .HasColumnType("varchar(100)")
  1473. .HasCharSet("utf8")
  1474. .HasCollation("utf8_general_ci");
  1475. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1476. entity.Property(e => e.Status).HasColumnType("int(11)");
  1477. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1478. entity.Property(e => e.TradeMonth)
  1479. .HasColumnType("varchar(6)")
  1480. .HasCharSet("utf8")
  1481. .HasCollation("utf8_general_ci");
  1482. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1483. entity.Property(e => e.UpdateMan)
  1484. .HasColumnType("varchar(50)")
  1485. .HasCharSet("utf8")
  1486. .HasCollation("utf8_general_ci");
  1487. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1488. entity.Property(e => e.Version).HasColumnType("int(11)");
  1489. });
  1490. modelBuilder.Entity<IndexIconList>(entity =>
  1491. {
  1492. entity.Property(e => e.Id).HasColumnType("int(11)");
  1493. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1494. entity.Property(e => e.CreateMan)
  1495. .HasColumnType("varchar(50)")
  1496. .HasCharSet("utf8")
  1497. .HasCollation("utf8_general_ci");
  1498. entity.Property(e => e.Icon)
  1499. .HasColumnType("varchar(200)")
  1500. .HasCharSet("utf8")
  1501. .HasCollation("utf8_general_ci");
  1502. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1503. entity.Property(e => e.SeoDescription)
  1504. .HasColumnType("varchar(500)")
  1505. .HasCharSet("utf8")
  1506. .HasCollation("utf8_general_ci");
  1507. entity.Property(e => e.SeoKeyword)
  1508. .HasColumnType("varchar(200)")
  1509. .HasCharSet("utf8")
  1510. .HasCollation("utf8_general_ci");
  1511. entity.Property(e => e.SeoTitle)
  1512. .HasColumnType("varchar(100)")
  1513. .HasCharSet("utf8")
  1514. .HasCollation("utf8_general_ci");
  1515. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1516. entity.Property(e => e.Status).HasColumnType("int(11)");
  1517. entity.Property(e => e.Title)
  1518. .HasColumnType("varchar(50)")
  1519. .HasCharSet("utf8")
  1520. .HasCollation("utf8_general_ci");
  1521. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1522. entity.Property(e => e.UpdateMan)
  1523. .HasColumnType("varchar(50)")
  1524. .HasCharSet("utf8")
  1525. .HasCollation("utf8_general_ci");
  1526. entity.Property(e => e.Url)
  1527. .HasColumnType("varchar(50)")
  1528. .HasCharSet("utf8")
  1529. .HasCollation("utf8_general_ci");
  1530. entity.Property(e => e.Version).HasColumnType("int(11)");
  1531. });
  1532. modelBuilder.Entity<KqProductBrand>(entity =>
  1533. {
  1534. entity.Property(e => e.Id).HasColumnType("int(11)");
  1535. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1536. entity.Property(e => e.CreateMan)
  1537. .HasColumnType("varchar(50)")
  1538. .HasCharSet("utf8")
  1539. .HasCollation("utf8_general_ci");
  1540. entity.Property(e => e.Name)
  1541. .HasColumnType("varchar(50)")
  1542. .HasCharSet("utf8")
  1543. .HasCollation("utf8_general_ci");
  1544. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  1545. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1546. entity.Property(e => e.SeoDescription)
  1547. .HasColumnType("varchar(500)")
  1548. .HasCharSet("utf8")
  1549. .HasCollation("utf8_general_ci");
  1550. entity.Property(e => e.SeoKeyword)
  1551. .HasColumnType("varchar(200)")
  1552. .HasCharSet("utf8")
  1553. .HasCollation("utf8_general_ci");
  1554. entity.Property(e => e.SeoTitle)
  1555. .HasColumnType("varchar(100)")
  1556. .HasCharSet("utf8")
  1557. .HasCollation("utf8_general_ci");
  1558. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1559. entity.Property(e => e.Status).HasColumnType("int(11)");
  1560. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1561. entity.Property(e => e.UpdateMan)
  1562. .HasColumnType("varchar(50)")
  1563. .HasCharSet("utf8")
  1564. .HasCollation("utf8_general_ci");
  1565. entity.Property(e => e.Version).HasColumnType("int(11)");
  1566. });
  1567. modelBuilder.Entity<KqProductOrgs>(entity =>
  1568. {
  1569. entity.Property(e => e.Id).HasColumnType("int(11)");
  1570. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1571. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1572. entity.Property(e => e.CreateMan)
  1573. .HasColumnType("varchar(50)")
  1574. .HasCharSet("utf8")
  1575. .HasCollation("utf8_general_ci");
  1576. entity.Property(e => e.Name)
  1577. .HasColumnType("varchar(50)")
  1578. .HasCharSet("utf8")
  1579. .HasCollation("utf8_general_ci");
  1580. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1581. entity.Property(e => e.SeoDescription)
  1582. .HasColumnType("varchar(500)")
  1583. .HasCharSet("utf8")
  1584. .HasCollation("utf8_general_ci");
  1585. entity.Property(e => e.SeoKeyword)
  1586. .HasColumnType("varchar(200)")
  1587. .HasCharSet("utf8")
  1588. .HasCollation("utf8_general_ci");
  1589. entity.Property(e => e.SeoTitle)
  1590. .HasColumnType("varchar(100)")
  1591. .HasCharSet("utf8")
  1592. .HasCollation("utf8_general_ci");
  1593. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1594. entity.Property(e => e.Status).HasColumnType("int(11)");
  1595. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1596. entity.Property(e => e.UpdateMan)
  1597. .HasColumnType("varchar(50)")
  1598. .HasCharSet("utf8")
  1599. .HasCollation("utf8_general_ci");
  1600. entity.Property(e => e.Version).HasColumnType("int(11)");
  1601. });
  1602. modelBuilder.Entity<KqProductRuleSet>(entity =>
  1603. {
  1604. entity.Property(e => e.Id).HasColumnType("int(11)");
  1605. entity.Property(e => e.ActDeposit).HasColumnType("decimal(18,2)");
  1606. entity.Property(e => e.ActEndDate).HasColumnType("datetime");
  1607. entity.Property(e => e.ActFirst).HasColumnType("decimal(18,2)");
  1608. entity.Property(e => e.ActFirstDeposit).HasColumnType("decimal(18,2)");
  1609. entity.Property(e => e.ActPosCount).HasColumnType("int(11)");
  1610. entity.Property(e => e.ActPrize).HasColumnType("decimal(18,2)");
  1611. entity.Property(e => e.ActStartDate).HasColumnType("datetime");
  1612. entity.Property(e => e.ActiveCount).HasColumnType("int(11)");
  1613. entity.Property(e => e.ActivePrice).HasColumnType("decimal(18,2)");
  1614. entity.Property(e => e.BigExtendCycleDays).HasColumnType("int(11)");
  1615. entity.Property(e => e.BigTotalAmount).HasColumnType("decimal(18,2)");
  1616. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1617. entity.Property(e => e.CreateMan)
  1618. .HasColumnType("varchar(50)")
  1619. .HasCharSet("utf8")
  1620. .HasCollation("utf8_general_ci");
  1621. entity.Property(e => e.CycleEndDate).HasColumnType("datetime");
  1622. entity.Property(e => e.CycleIsOther)
  1623. .HasColumnType("bit(1)")
  1624. .HasDefaultValueSql("b'0'");
  1625. entity.Property(e => e.CyclePosDays).HasColumnType("int(11)");
  1626. entity.Property(e => e.CycleStartDate).HasColumnType("datetime");
  1627. entity.Property(e => e.Deposit).HasColumnType("decimal(18,2)");
  1628. entity.Property(e => e.FeeBindDays).HasColumnType("int(11)");
  1629. entity.Property(e => e.FeeFixed).HasColumnType("decimal(18,2)");
  1630. entity.Property(e => e.FeeOfDays).HasColumnType("datetime");
  1631. entity.Property(e => e.FeeRate).HasColumnType("decimal(18,2)");
  1632. entity.Property(e => e.FlowCardDirectProfit).HasColumnType("decimal(18,2)");
  1633. entity.Property(e => e.FlowCardEndDate).HasColumnType("datetime");
  1634. entity.Property(e => e.FlowCardFee).HasColumnType("decimal(18,2)");
  1635. entity.Property(e => e.FlowCardFreeDays).HasColumnType("int(11)");
  1636. entity.Property(e => e.FlowCardStartDate).HasColumnType("datetime");
  1637. entity.Property(e => e.HelpEndDate).HasColumnType("datetime");
  1638. entity.Property(e => e.HelpFee).HasColumnType("decimal(18,2)");
  1639. entity.Property(e => e.HelpMonths).HasColumnType("int(11)");
  1640. entity.Property(e => e.HelpStartDate).HasColumnType("datetime");
  1641. entity.Property(e => e.HelpSteadyFee).HasColumnType("decimal(18,2)");
  1642. entity.Property(e => e.MerStaEndDate).HasColumnType("datetime");
  1643. entity.Property(e => e.MerStaMonths).HasColumnType("int(11)");
  1644. entity.Property(e => e.MerStaProfit).HasColumnType("decimal(18,2)");
  1645. entity.Property(e => e.MerStaStartDate).HasColumnType("datetime");
  1646. entity.Property(e => e.MerStaTradeForMonth).HasColumnType("decimal(18,2)");
  1647. entity.Property(e => e.OpenEndDate).HasColumnType("datetime");
  1648. entity.Property(e => e.OpenStaDays).HasColumnType("int(11)");
  1649. entity.Property(e => e.OpenStaPrize).HasColumnType("decimal(18,2)");
  1650. entity.Property(e => e.OpenStaPrize2).HasColumnType("decimal(18,2)");
  1651. entity.Property(e => e.OpenStaTrade).HasColumnType("decimal(18,2)");
  1652. entity.Property(e => e.OpenStartDate).HasColumnType("datetime");
  1653. entity.Property(e => e.OrgId).HasColumnType("int(11)");
  1654. entity.Property(e => e.PullNewEndDate).HasColumnType("datetime");
  1655. entity.Property(e => e.PullNewExtendDays).HasColumnType("int(11)");
  1656. entity.Property(e => e.PullNewStartDate).HasColumnType("datetime");
  1657. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1658. entity.Property(e => e.SeoDescription)
  1659. .HasColumnType("varchar(500)")
  1660. .HasCharSet("utf8")
  1661. .HasCollation("utf8_general_ci");
  1662. entity.Property(e => e.SeoKeyword)
  1663. .HasColumnType("varchar(200)")
  1664. .HasCharSet("utf8")
  1665. .HasCollation("utf8_general_ci");
  1666. entity.Property(e => e.SeoTitle)
  1667. .HasColumnType("varchar(100)")
  1668. .HasCharSet("utf8")
  1669. .HasCollation("utf8_general_ci");
  1670. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1671. entity.Property(e => e.Status).HasColumnType("int(11)");
  1672. entity.Property(e => e.SubsidyEndDate).HasColumnType("datetime");
  1673. entity.Property(e => e.SubsidyStartDate).HasColumnType("datetime");
  1674. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1675. entity.Property(e => e.UpdateMan)
  1676. .HasColumnType("varchar(50)")
  1677. .HasCharSet("utf8")
  1678. .HasCollation("utf8_general_ci");
  1679. entity.Property(e => e.Version).HasColumnType("int(11)");
  1680. });
  1681. modelBuilder.Entity<KqProducts>(entity =>
  1682. {
  1683. entity.Property(e => e.Id).HasColumnType("int(11)");
  1684. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1685. entity.Property(e => e.CreateMan)
  1686. .HasColumnType("varchar(50)")
  1687. .HasCharSet("utf8")
  1688. .HasCollation("utf8_general_ci");
  1689. entity.Property(e => e.Name)
  1690. .HasColumnType("varchar(50)")
  1691. .HasCharSet("utf8")
  1692. .HasCollation("utf8_general_ci");
  1693. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1694. entity.Property(e => e.SeoDescription)
  1695. .HasColumnType("varchar(500)")
  1696. .HasCharSet("utf8")
  1697. .HasCollation("utf8_general_ci");
  1698. entity.Property(e => e.SeoKeyword)
  1699. .HasColumnType("varchar(200)")
  1700. .HasCharSet("utf8")
  1701. .HasCollation("utf8_general_ci");
  1702. entity.Property(e => e.SeoTitle)
  1703. .HasColumnType("varchar(100)")
  1704. .HasCharSet("utf8")
  1705. .HasCollation("utf8_general_ci");
  1706. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1707. entity.Property(e => e.Status).HasColumnType("int(11)");
  1708. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1709. entity.Property(e => e.UpdateMan)
  1710. .HasColumnType("varchar(50)")
  1711. .HasCharSet("utf8")
  1712. .HasCollation("utf8_general_ci");
  1713. entity.Property(e => e.Version).HasColumnType("int(11)");
  1714. });
  1715. modelBuilder.Entity<MachineApply>(entity =>
  1716. {
  1717. entity.Property(e => e.Id).HasColumnType("int(11)");
  1718. entity.Property(e => e.Address)
  1719. .HasColumnType("varchar(50)")
  1720. .HasCharSet("utf8")
  1721. .HasCollation("utf8_general_ci");
  1722. entity.Property(e => e.ApplyDeviceName)
  1723. .HasColumnType("varchar(32)")
  1724. .HasCharSet("utf8")
  1725. .HasCollation("utf8_general_ci");
  1726. entity.Property(e => e.ApplyDeviceNum).HasColumnType("int(11)");
  1727. entity.Property(e => e.ApplyNo)
  1728. .HasColumnType("varchar(32)")
  1729. .HasCharSet("utf8")
  1730. .HasCollation("utf8_general_ci");
  1731. entity.Property(e => e.ApplyTime).HasColumnType("datetime");
  1732. entity.Property(e => e.Areas)
  1733. .HasColumnType("varchar(30)")
  1734. .HasCharSet("utf8")
  1735. .HasCollation("utf8_general_ci");
  1736. entity.Property(e => e.AuditBy)
  1737. .HasColumnType("varchar(32)")
  1738. .HasCharSet("utf8")
  1739. .HasCollation("utf8_general_ci");
  1740. entity.Property(e => e.AuditRemark)
  1741. .HasColumnType("varchar(128)")
  1742. .HasCharSet("utf8")
  1743. .HasCollation("utf8_general_ci");
  1744. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1745. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1746. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1747. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1748. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1749. entity.Property(e => e.CreateMan)
  1750. .HasColumnType("varchar(50)")
  1751. .HasCharSet("utf8")
  1752. .HasCollation("utf8_general_ci");
  1753. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  1754. entity.Property(e => e.ExpressName)
  1755. .HasColumnType("varchar(32)")
  1756. .HasCharSet("utf8")
  1757. .HasCollation("utf8_general_ci");
  1758. entity.Property(e => e.ExpressNo)
  1759. .HasColumnType("varchar(32)")
  1760. .HasCharSet("utf8")
  1761. .HasCollation("utf8_general_ci");
  1762. entity.Property(e => e.Mobile)
  1763. .HasColumnType("varchar(11)")
  1764. .HasCharSet("utf8")
  1765. .HasCollation("utf8_general_ci");
  1766. entity.Property(e => e.OrderExpand)
  1767. .HasColumnType("mediumtext")
  1768. .HasCharSet("utf8")
  1769. .HasCollation("utf8_general_ci");
  1770. entity.Property(e => e.ProductName)
  1771. .HasColumnType("varchar(32)")
  1772. .HasCharSet("utf8")
  1773. .HasCollation("utf8_general_ci");
  1774. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1775. entity.Property(e => e.RealName)
  1776. .HasColumnType("varchar(30)")
  1777. .HasCharSet("utf8")
  1778. .HasCollation("utf8_general_ci");
  1779. entity.Property(e => e.Remark)
  1780. .HasColumnType("varchar(64)")
  1781. .HasCharSet("utf8")
  1782. .HasCollation("utf8_general_ci");
  1783. entity.Property(e => e.ReturnOrderNo)
  1784. .HasColumnType("varchar(32)")
  1785. .HasCharSet("utf8")
  1786. .HasCollation("utf8_general_ci");
  1787. entity.Property(e => e.ReturnStatus).HasColumnType("int(11)");
  1788. entity.Property(e => e.SendDate).HasColumnType("datetime");
  1789. entity.Property(e => e.SendSn)
  1790. .HasColumnType("varchar(32)")
  1791. .HasCharSet("utf8")
  1792. .HasCollation("utf8_general_ci");
  1793. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  1794. entity.Property(e => e.SeoDescription)
  1795. .HasColumnType("varchar(500)")
  1796. .HasCharSet("utf8")
  1797. .HasCollation("utf8_general_ci");
  1798. entity.Property(e => e.SeoKeyword)
  1799. .HasColumnType("varchar(200)")
  1800. .HasCharSet("utf8")
  1801. .HasCollation("utf8_general_ci");
  1802. entity.Property(e => e.SeoTitle)
  1803. .HasColumnType("varchar(100)")
  1804. .HasCharSet("utf8")
  1805. .HasCollation("utf8_general_ci");
  1806. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1807. entity.Property(e => e.Status).HasColumnType("int(11)");
  1808. entity.Property(e => e.StoreAddress)
  1809. .HasColumnType("varchar(50)")
  1810. .HasCharSet("utf8")
  1811. .HasCollation("utf8_general_ci");
  1812. entity.Property(e => e.StoreAreas)
  1813. .HasColumnType("varchar(30)")
  1814. .HasCharSet("utf8")
  1815. .HasCollation("utf8_general_ci");
  1816. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1817. entity.Property(e => e.StoreManager)
  1818. .HasColumnType("varchar(32)")
  1819. .HasCharSet("utf8")
  1820. .HasCollation("utf8_general_ci");
  1821. entity.Property(e => e.StoreManagerMobile)
  1822. .HasColumnType("varchar(11)")
  1823. .HasCharSet("utf8")
  1824. .HasCollation("utf8_general_ci");
  1825. entity.Property(e => e.StoreName)
  1826. .HasColumnType("varchar(32)")
  1827. .HasCharSet("utf8")
  1828. .HasCollation("utf8_general_ci");
  1829. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  1830. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  1831. entity.Property(e => e.SwapActProName)
  1832. .HasColumnType("varchar(32)")
  1833. .HasCharSet("utf8")
  1834. .HasCollation("utf8_general_ci");
  1835. entity.Property(e => e.SwapActProType).HasColumnType("int(11)");
  1836. entity.Property(e => e.SwapSnExpand)
  1837. .HasColumnType("mediumtext")
  1838. .HasCharSet("utf8")
  1839. .HasCollation("utf8_general_ci");
  1840. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1841. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1842. entity.Property(e => e.UpdateMan)
  1843. .HasColumnType("varchar(50)")
  1844. .HasCharSet("utf8")
  1845. .HasCollation("utf8_general_ci");
  1846. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1847. entity.Property(e => e.Version).HasColumnType("int(11)");
  1848. });
  1849. modelBuilder.Entity<MachineApplyDetail>(entity =>
  1850. {
  1851. entity.Property(e => e.Id).HasColumnType("int(11)");
  1852. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  1853. entity.Property(e => e.ApplyNo)
  1854. .HasColumnType("varchar(32)")
  1855. .HasCharSet("utf8")
  1856. .HasCollation("utf8_general_ci");
  1857. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1858. entity.Property(e => e.CreateMan)
  1859. .HasColumnType("varchar(50)")
  1860. .HasCharSet("utf8")
  1861. .HasCollation("utf8_general_ci");
  1862. entity.Property(e => e.DeviceDesc)
  1863. .HasColumnType("varchar(32)")
  1864. .HasCharSet("utf8")
  1865. .HasCollation("utf8_general_ci");
  1866. entity.Property(e => e.DeviceModel)
  1867. .HasColumnType("varchar(32)")
  1868. .HasCharSet("utf8")
  1869. .HasCollation("utf8_general_ci");
  1870. entity.Property(e => e.DeviceSnNo)
  1871. .HasColumnType("varchar(32)")
  1872. .HasCharSet("utf8")
  1873. .HasCollation("utf8_general_ci");
  1874. entity.Property(e => e.DeviceStatus).HasColumnType("int(11)");
  1875. entity.Property(e => e.DeviceVendor)
  1876. .HasColumnType("varchar(32)")
  1877. .HasCharSet("utf8")
  1878. .HasCollation("utf8_general_ci");
  1879. entity.Property(e => e.ProductName)
  1880. .HasColumnType("varchar(32)")
  1881. .HasCharSet("utf8")
  1882. .HasCollation("utf8_general_ci");
  1883. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  1884. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1885. entity.Property(e => e.Remark)
  1886. .HasColumnType("varchar(64)")
  1887. .HasCharSet("utf8")
  1888. .HasCollation("utf8_general_ci");
  1889. entity.Property(e => e.SeoDescription)
  1890. .HasColumnType("varchar(500)")
  1891. .HasCharSet("utf8")
  1892. .HasCollation("utf8_general_ci");
  1893. entity.Property(e => e.SeoKeyword)
  1894. .HasColumnType("varchar(200)")
  1895. .HasCharSet("utf8")
  1896. .HasCollation("utf8_general_ci");
  1897. entity.Property(e => e.SeoTitle)
  1898. .HasColumnType("varchar(100)")
  1899. .HasCharSet("utf8")
  1900. .HasCollation("utf8_general_ci");
  1901. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1902. entity.Property(e => e.SourceSnNo)
  1903. .HasColumnType("varchar(32)")
  1904. .HasCharSet("utf8")
  1905. .HasCollation("utf8_general_ci");
  1906. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  1907. entity.Property(e => e.Status).HasColumnType("int(11)");
  1908. entity.Property(e => e.UpSrcProName)
  1909. .HasColumnType("varchar(32)")
  1910. .HasCharSet("utf8")
  1911. .HasCollation("utf8_general_ci");
  1912. entity.Property(e => e.UpSrcProType).HasColumnType("int(11)");
  1913. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1914. entity.Property(e => e.UpdateMan)
  1915. .HasColumnType("varchar(50)")
  1916. .HasCharSet("utf8")
  1917. .HasCollation("utf8_general_ci");
  1918. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1919. entity.Property(e => e.Version).HasColumnType("int(11)");
  1920. });
  1921. modelBuilder.Entity<MachineChange>(entity =>
  1922. {
  1923. entity.Property(e => e.Id).HasColumnType("int(11)");
  1924. entity.Property(e => e.AuditBy)
  1925. .HasColumnType("varchar(32)")
  1926. .HasCharSet("utf8")
  1927. .HasCollation("utf8_general_ci");
  1928. entity.Property(e => e.AuditRemark)
  1929. .HasColumnType("varchar(128)")
  1930. .HasCharSet("utf8")
  1931. .HasCollation("utf8_general_ci");
  1932. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1933. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1934. entity.Property(e => e.BackProductName)
  1935. .HasColumnType("varchar(32)")
  1936. .HasCharSet("utf8")
  1937. .HasCollation("utf8_general_ci");
  1938. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  1939. entity.Property(e => e.BackStoreId).HasColumnType("int(11)");
  1940. entity.Property(e => e.BackStoreName)
  1941. .HasColumnType("varchar(32)")
  1942. .HasCharSet("utf8")
  1943. .HasCollation("utf8_general_ci");
  1944. entity.Property(e => e.BackStoreUserId).HasColumnType("int(11)");
  1945. entity.Property(e => e.ChangeDeviceName)
  1946. .HasColumnType("varchar(32)")
  1947. .HasCharSet("utf8")
  1948. .HasCollation("utf8_general_ci");
  1949. entity.Property(e => e.ChangeDeviceNum).HasColumnType("int(11)");
  1950. entity.Property(e => e.ChangeNo)
  1951. .HasColumnType("varchar(32)")
  1952. .HasCharSet("utf8")
  1953. .HasCollation("utf8_general_ci");
  1954. entity.Property(e => e.ChangeSnExpand)
  1955. .HasColumnType("mediumtext")
  1956. .HasCharSet("utf8")
  1957. .HasCollation("utf8_general_ci");
  1958. entity.Property(e => e.ChangeTime).HasColumnType("datetime");
  1959. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1960. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1961. entity.Property(e => e.CreateMan)
  1962. .HasColumnType("varchar(50)")
  1963. .HasCharSet("utf8")
  1964. .HasCollation("utf8_general_ci");
  1965. entity.Property(e => e.OrderExpand)
  1966. .HasColumnType("mediumtext")
  1967. .HasCharSet("utf8")
  1968. .HasCollation("utf8_general_ci");
  1969. entity.Property(e => e.OutProductName)
  1970. .HasColumnType("varchar(32)")
  1971. .HasCharSet("utf8")
  1972. .HasCollation("utf8_general_ci");
  1973. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  1974. entity.Property(e => e.OutStoreAddress)
  1975. .HasColumnType("varchar(128)")
  1976. .HasCharSet("utf8")
  1977. .HasCollation("utf8_general_ci");
  1978. entity.Property(e => e.OutStoreAreas)
  1979. .HasColumnType("varchar(30)")
  1980. .HasCharSet("utf8")
  1981. .HasCollation("utf8_general_ci");
  1982. entity.Property(e => e.OutStoreId).HasColumnType("int(11)");
  1983. entity.Property(e => e.OutStoreManager)
  1984. .HasColumnType("varchar(32)")
  1985. .HasCharSet("utf8")
  1986. .HasCollation("utf8_general_ci");
  1987. entity.Property(e => e.OutStoreManagerMobile)
  1988. .HasColumnType("varchar(11)")
  1989. .HasCharSet("utf8")
  1990. .HasCollation("utf8_general_ci");
  1991. entity.Property(e => e.OutStoreName)
  1992. .HasColumnType("varchar(32)")
  1993. .HasCharSet("utf8")
  1994. .HasCollation("utf8_general_ci");
  1995. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1996. entity.Property(e => e.Remark)
  1997. .HasColumnType("varchar(64)")
  1998. .HasCharSet("utf8")
  1999. .HasCollation("utf8_general_ci");
  2000. entity.Property(e => e.SeoDescription)
  2001. .HasColumnType("varchar(500)")
  2002. .HasCharSet("utf8")
  2003. .HasCollation("utf8_general_ci");
  2004. entity.Property(e => e.SeoKeyword)
  2005. .HasColumnType("varchar(200)")
  2006. .HasCharSet("utf8")
  2007. .HasCollation("utf8_general_ci");
  2008. entity.Property(e => e.SeoTitle)
  2009. .HasColumnType("varchar(100)")
  2010. .HasCharSet("utf8")
  2011. .HasCollation("utf8_general_ci");
  2012. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2013. entity.Property(e => e.Status).HasColumnType("int(11)");
  2014. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2015. entity.Property(e => e.UpdateMan)
  2016. .HasColumnType("varchar(50)")
  2017. .HasCharSet("utf8")
  2018. .HasCollation("utf8_general_ci");
  2019. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2020. entity.Property(e => e.Version).HasColumnType("int(11)");
  2021. });
  2022. modelBuilder.Entity<MachineChangeDetail>(entity =>
  2023. {
  2024. entity.Property(e => e.Id).HasColumnType("int(11)");
  2025. entity.Property(e => e.BackDeviceStatus).HasColumnType("int(11)");
  2026. entity.Property(e => e.BackProductName)
  2027. .HasColumnType("varchar(32)")
  2028. .HasCharSet("utf8")
  2029. .HasCollation("utf8_general_ci");
  2030. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2031. entity.Property(e => e.BackSnNo)
  2032. .HasColumnType("varchar(32)")
  2033. .HasCharSet("utf8")
  2034. .HasCollation("utf8_general_ci");
  2035. entity.Property(e => e.BackSnType).HasColumnType("int(11)");
  2036. entity.Property(e => e.ChangeId).HasColumnType("int(11)");
  2037. entity.Property(e => e.ChangeNo)
  2038. .HasColumnType("varchar(32)")
  2039. .HasCharSet("utf8")
  2040. .HasCollation("utf8_general_ci");
  2041. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2042. entity.Property(e => e.CreateMan)
  2043. .HasColumnType("varchar(50)")
  2044. .HasCharSet("utf8")
  2045. .HasCollation("utf8_general_ci");
  2046. entity.Property(e => e.OutProductName)
  2047. .HasColumnType("varchar(32)")
  2048. .HasCharSet("utf8")
  2049. .HasCollation("utf8_general_ci");
  2050. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2051. entity.Property(e => e.OutSnNo)
  2052. .HasColumnType("varchar(32)")
  2053. .HasCharSet("utf8")
  2054. .HasCollation("utf8_general_ci");
  2055. entity.Property(e => e.OutSnType).HasColumnType("int(11)");
  2056. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2057. entity.Property(e => e.Remark)
  2058. .HasColumnType("varchar(64)")
  2059. .HasCharSet("utf8")
  2060. .HasCollation("utf8_general_ci");
  2061. entity.Property(e => e.SeoDescription)
  2062. .HasColumnType("varchar(500)")
  2063. .HasCharSet("utf8")
  2064. .HasCollation("utf8_general_ci");
  2065. entity.Property(e => e.SeoKeyword)
  2066. .HasColumnType("varchar(200)")
  2067. .HasCharSet("utf8")
  2068. .HasCollation("utf8_general_ci");
  2069. entity.Property(e => e.SeoTitle)
  2070. .HasColumnType("varchar(100)")
  2071. .HasCharSet("utf8")
  2072. .HasCollation("utf8_general_ci");
  2073. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2074. entity.Property(e => e.Status).HasColumnType("int(11)");
  2075. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2076. entity.Property(e => e.UpdateMan)
  2077. .HasColumnType("varchar(50)")
  2078. .HasCharSet("utf8")
  2079. .HasCollation("utf8_general_ci");
  2080. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2081. entity.Property(e => e.Version).HasColumnType("int(11)");
  2082. });
  2083. modelBuilder.Entity<MachineForQrCode>(entity =>
  2084. {
  2085. entity.HasKey(e => e.DataId)
  2086. .HasName("PRIMARY");
  2087. entity.Property(e => e.DataId)
  2088. .HasColumnType("varchar(20)")
  2089. .HasCharSet("utf8")
  2090. .HasCollation("utf8_general_ci");
  2091. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2092. entity.Property(e => e.MachineSnNo)
  2093. .HasColumnType("varchar(50)")
  2094. .HasCharSet("utf8")
  2095. .HasCollation("utf8_general_ci");
  2096. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2097. entity.Property(e => e.SnNo)
  2098. .HasColumnType("varchar(50)")
  2099. .HasCharSet("utf8")
  2100. .HasCollation("utf8_general_ci");
  2101. });
  2102. modelBuilder.Entity<MachineForSnNo>(entity =>
  2103. {
  2104. entity.HasKey(e => e.SnNo)
  2105. .HasName("PRIMARY");
  2106. entity.Property(e => e.SnNo)
  2107. .HasColumnType("varchar(50)")
  2108. .HasCharSet("utf8")
  2109. .HasCollation("utf8_general_ci");
  2110. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2111. });
  2112. modelBuilder.Entity<MachineRenew>(entity =>
  2113. {
  2114. entity.Property(e => e.Id).HasColumnType("int(11)");
  2115. entity.Property(e => e.ApplyDate)
  2116. .HasColumnType("varchar(8)")
  2117. .HasCharSet("utf8")
  2118. .HasCollation("utf8_general_ci");
  2119. entity.Property(e => e.ApplyNo)
  2120. .HasColumnType("varchar(32)")
  2121. .HasCharSet("utf8")
  2122. .HasCollation("utf8_general_ci");
  2123. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2124. entity.Property(e => e.AuditDesc)
  2125. .HasColumnType("varchar(256)")
  2126. .HasCharSet("utf8")
  2127. .HasCollation("utf8_general_ci");
  2128. entity.Property(e => e.AuditStatus)
  2129. .HasColumnName("audit_status")
  2130. .HasColumnType("int(11)");
  2131. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2132. entity.Property(e => e.CreateMan)
  2133. .HasColumnType("varchar(50)")
  2134. .HasCharSet("utf8")
  2135. .HasCollation("utf8_general_ci");
  2136. entity.Property(e => e.DamagedBrandId).HasColumnType("int(11)");
  2137. entity.Property(e => e.DamagedSnNo)
  2138. .HasColumnType("varchar(32)")
  2139. .HasCharSet("utf8")
  2140. .HasCollation("utf8_general_ci");
  2141. entity.Property(e => e.DamagedSnType).HasColumnType("int(11)");
  2142. entity.Property(e => e.DeliverBrandId).HasColumnType("int(11)");
  2143. entity.Property(e => e.DeliverSnNo)
  2144. .HasColumnType("varchar(32)")
  2145. .HasCharSet("utf8")
  2146. .HasCollation("utf8_general_ci");
  2147. entity.Property(e => e.DemandDesc)
  2148. .HasColumnType("varchar(256)")
  2149. .HasCharSet("utf8")
  2150. .HasCollation("utf8_general_ci");
  2151. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2152. entity.Property(e => e.ReplaceBrandId).HasColumnType("int(11)");
  2153. entity.Property(e => e.ReplaceSnNo)
  2154. .HasColumnType("varchar(32)")
  2155. .HasCharSet("utf8")
  2156. .HasCollation("utf8_general_ci");
  2157. entity.Property(e => e.ReplaceSnType).HasColumnType("int(11)");
  2158. entity.Property(e => e.SeoDescription)
  2159. .HasColumnType("varchar(500)")
  2160. .HasCharSet("utf8")
  2161. .HasCollation("utf8_general_ci");
  2162. entity.Property(e => e.SeoKeyword)
  2163. .HasColumnType("varchar(200)")
  2164. .HasCharSet("utf8")
  2165. .HasCollation("utf8_general_ci");
  2166. entity.Property(e => e.SeoTitle)
  2167. .HasColumnType("varchar(100)")
  2168. .HasCharSet("utf8")
  2169. .HasCollation("utf8_general_ci");
  2170. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2171. entity.Property(e => e.Status).HasColumnType("int(11)");
  2172. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2173. entity.Property(e => e.UpdateMan)
  2174. .HasColumnType("varchar(50)")
  2175. .HasCharSet("utf8")
  2176. .HasCollation("utf8_general_ci");
  2177. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2178. entity.Property(e => e.Version).HasColumnType("int(11)");
  2179. });
  2180. modelBuilder.Entity<MachineReturn>(entity =>
  2181. {
  2182. entity.Property(e => e.Id).HasColumnType("int(11)");
  2183. entity.Property(e => e.ApplyNo)
  2184. .HasColumnType("varchar(32)")
  2185. .HasCharSet("utf8")
  2186. .HasCollation("utf8_general_ci");
  2187. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2188. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2189. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2190. entity.Property(e => e.CreateMan)
  2191. .HasColumnType("varchar(50)")
  2192. .HasCharSet("utf8")
  2193. .HasCollation("utf8_general_ci");
  2194. entity.Property(e => e.DeviceDesc)
  2195. .HasColumnType("varchar(256)")
  2196. .HasCharSet("utf8")
  2197. .HasCollation("utf8_general_ci");
  2198. entity.Property(e => e.DeviceNum).HasColumnType("int(11)");
  2199. entity.Property(e => e.DeviceSnNos)
  2200. .HasColumnType("mediumtext")
  2201. .HasCharSet("utf8")
  2202. .HasCollation("utf8_general_ci");
  2203. entity.Property(e => e.Operator)
  2204. .HasColumnType("varchar(32)")
  2205. .HasCharSet("utf8")
  2206. .HasCollation("utf8_general_ci");
  2207. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2208. entity.Property(e => e.Remark)
  2209. .HasColumnType("varchar(64)")
  2210. .HasCharSet("utf8")
  2211. .HasCollation("utf8_general_ci");
  2212. entity.Property(e => e.SeoDescription)
  2213. .HasColumnType("varchar(500)")
  2214. .HasCharSet("utf8")
  2215. .HasCollation("utf8_general_ci");
  2216. entity.Property(e => e.SeoKeyword)
  2217. .HasColumnType("varchar(200)")
  2218. .HasCharSet("utf8")
  2219. .HasCollation("utf8_general_ci");
  2220. entity.Property(e => e.SeoTitle)
  2221. .HasColumnType("varchar(100)")
  2222. .HasCharSet("utf8")
  2223. .HasCollation("utf8_general_ci");
  2224. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2225. entity.Property(e => e.Status).HasColumnType("int(11)");
  2226. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  2227. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2228. entity.Property(e => e.UpdateMan)
  2229. .HasColumnType("varchar(50)")
  2230. .HasCharSet("utf8")
  2231. .HasCollation("utf8_general_ci");
  2232. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2233. entity.Property(e => e.Version).HasColumnType("int(11)");
  2234. });
  2235. modelBuilder.Entity<MenuRight>(entity =>
  2236. {
  2237. entity.HasKey(e => e.MenuId)
  2238. .HasName("PRIMARY");
  2239. entity.Property(e => e.MenuId)
  2240. .HasColumnType("varchar(50)")
  2241. .HasCharSet("utf8")
  2242. .HasCollation("utf8_general_ci");
  2243. entity.Property(e => e.Name)
  2244. .HasColumnType("varchar(50)")
  2245. .HasCharSet("utf8")
  2246. .HasCollation("utf8_general_ci");
  2247. });
  2248. modelBuilder.Entity<MerchantAddInfo>(entity =>
  2249. {
  2250. entity.Property(e => e.Id).HasColumnType("int(11)");
  2251. entity.Property(e => e.AccountBank)
  2252. .HasColumnType("varchar(30)")
  2253. .HasCharSet("utf8")
  2254. .HasCollation("utf8_general_ci");
  2255. entity.Property(e => e.AccountName)
  2256. .HasColumnType("varchar(50)")
  2257. .HasCharSet("utf8")
  2258. .HasCollation("utf8_general_ci");
  2259. entity.Property(e => e.AccountNumber)
  2260. .HasColumnType("varchar(50)")
  2261. .HasCharSet("utf8")
  2262. .HasCollation("utf8_general_ci");
  2263. entity.Property(e => e.ActivitiesId)
  2264. .HasColumnType("varchar(32)")
  2265. .HasCharSet("utf8")
  2266. .HasCollation("utf8_general_ci");
  2267. entity.Property(e => e.ActivitiesRate)
  2268. .HasColumnType("varchar(20)")
  2269. .HasCharSet("utf8")
  2270. .HasCollation("utf8_general_ci");
  2271. entity.Property(e => e.AppAppid)
  2272. .HasColumnType("varchar(50)")
  2273. .HasCharSet("utf8")
  2274. .HasCollation("utf8_general_ci");
  2275. entity.Property(e => e.AppPics)
  2276. .HasColumnType("varchar(200)")
  2277. .HasCharSet("utf8")
  2278. .HasCollation("utf8_general_ci");
  2279. entity.Property(e => e.AppSubAppid)
  2280. .HasColumnType("varchar(50)")
  2281. .HasCharSet("utf8")
  2282. .HasCollation("utf8_general_ci");
  2283. entity.Property(e => e.ApplymentId)
  2284. .HasColumnType("varchar(50)")
  2285. .HasCharSet("utf8")
  2286. .HasCollation("utf8_general_ci");
  2287. entity.Property(e => e.ApplymentState)
  2288. .HasColumnType("varchar(50)")
  2289. .HasCharSet("utf8")
  2290. .HasCollation("utf8_general_ci");
  2291. entity.Property(e => e.AuditDetail)
  2292. .HasColumnType("mediumtext")
  2293. .HasCharSet("utf8")
  2294. .HasCollation("utf8_general_ci");
  2295. entity.Property(e => e.BankAccountType)
  2296. .HasColumnType("varchar(50)")
  2297. .HasCharSet("utf8")
  2298. .HasCollation("utf8_general_ci");
  2299. entity.Property(e => e.BankAddressCode)
  2300. .HasColumnType("varchar(20)")
  2301. .HasCharSet("utf8")
  2302. .HasCollation("utf8_general_ci");
  2303. entity.Property(e => e.BankBranchId)
  2304. .HasColumnType("varchar(20)")
  2305. .HasCharSet("utf8")
  2306. .HasCollation("utf8_general_ci");
  2307. entity.Property(e => e.BankName)
  2308. .HasColumnType("varchar(50)")
  2309. .HasCharSet("utf8")
  2310. .HasCollation("utf8_general_ci");
  2311. entity.Property(e => e.BizAddressCode)
  2312. .HasColumnType("varchar(30)")
  2313. .HasCharSet("utf8")
  2314. .HasCollation("utf8_general_ci");
  2315. entity.Property(e => e.BizStoreAddress)
  2316. .HasColumnType("varchar(50)")
  2317. .HasCharSet("utf8")
  2318. .HasCollation("utf8_general_ci");
  2319. entity.Property(e => e.BizStoreName)
  2320. .HasColumnType("varchar(50)")
  2321. .HasCharSet("utf8")
  2322. .HasCollation("utf8_general_ci");
  2323. entity.Property(e => e.BizSubAppid)
  2324. .HasColumnType("varchar(32)")
  2325. .HasCharSet("utf8")
  2326. .HasCollation("utf8_general_ci");
  2327. entity.Property(e => e.BusinessCode)
  2328. .HasColumnType("varchar(50)")
  2329. .HasCharSet("utf8")
  2330. .HasCollation("utf8_general_ci");
  2331. entity.Property(e => e.CardPeriodBegin).HasColumnType("datetime");
  2332. entity.Property(e => e.CardPeriodEnd).HasColumnType("datetime");
  2333. entity.Property(e => e.CertCopy)
  2334. .HasColumnType("varchar(200)")
  2335. .HasCharSet("utf8")
  2336. .HasCollation("utf8_general_ci");
  2337. entity.Property(e => e.CertLegalPerson)
  2338. .HasColumnType("varchar(20)")
  2339. .HasCharSet("utf8")
  2340. .HasCollation("utf8_general_ci");
  2341. entity.Property(e => e.CertMerchantName)
  2342. .HasColumnType("varchar(30)")
  2343. .HasCharSet("utf8")
  2344. .HasCollation("utf8_general_ci");
  2345. entity.Property(e => e.CertNumber)
  2346. .HasColumnType("varchar(32)")
  2347. .HasCharSet("utf8")
  2348. .HasCollation("utf8_general_ci");
  2349. entity.Property(e => e.CertType)
  2350. .HasColumnType("varchar(30)")
  2351. .HasCharSet("utf8")
  2352. .HasCollation("utf8_general_ci");
  2353. entity.Property(e => e.CertificateLetterCopy)
  2354. .HasColumnType("varchar(200)")
  2355. .HasCharSet("utf8")
  2356. .HasCollation("utf8_general_ci");
  2357. entity.Property(e => e.CompanyAddress)
  2358. .HasColumnType("varchar(50)")
  2359. .HasCharSet("utf8")
  2360. .HasCollation("utf8_general_ci");
  2361. entity.Property(e => e.ContactEmail)
  2362. .HasColumnType("varchar(50)")
  2363. .HasCharSet("utf8")
  2364. .HasCollation("utf8_general_ci");
  2365. entity.Property(e => e.ContactIdNumber)
  2366. .HasColumnType("varchar(18)")
  2367. .HasCharSet("utf8")
  2368. .HasCollation("utf8_general_ci");
  2369. entity.Property(e => e.ContactName)
  2370. .HasColumnType("varchar(30)")
  2371. .HasCharSet("utf8")
  2372. .HasCollation("utf8_general_ci");
  2373. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2374. entity.Property(e => e.CreateMan)
  2375. .HasColumnType("varchar(50)")
  2376. .HasCharSet("utf8")
  2377. .HasCollation("utf8_general_ci");
  2378. entity.Property(e => e.IdCardCopy)
  2379. .HasColumnType("varchar(200)")
  2380. .HasCharSet("utf8")
  2381. .HasCollation("utf8_general_ci");
  2382. entity.Property(e => e.IdCardName)
  2383. .HasColumnType("varchar(20)")
  2384. .HasCharSet("utf8")
  2385. .HasCollation("utf8_general_ci");
  2386. entity.Property(e => e.IdCardNational)
  2387. .HasColumnType("varchar(200)")
  2388. .HasCharSet("utf8")
  2389. .HasCollation("utf8_general_ci");
  2390. entity.Property(e => e.IdCardNumber)
  2391. .HasColumnType("varchar(18)")
  2392. .HasCharSet("utf8")
  2393. .HasCollation("utf8_general_ci");
  2394. entity.Property(e => e.IdDocType)
  2395. .HasColumnType("varchar(50)")
  2396. .HasCharSet("utf8")
  2397. .HasCollation("utf8_general_ci");
  2398. entity.Property(e => e.IndoorPic)
  2399. .HasColumnType("varchar(200)")
  2400. .HasCharSet("utf8")
  2401. .HasCollation("utf8_general_ci");
  2402. entity.Property(e => e.LegalPerson)
  2403. .HasColumnType("varchar(20)")
  2404. .HasCharSet("utf8")
  2405. .HasCollation("utf8_general_ci");
  2406. entity.Property(e => e.LicenseCopy)
  2407. .HasColumnType("varchar(200)")
  2408. .HasCharSet("utf8")
  2409. .HasCollation("utf8_general_ci");
  2410. entity.Property(e => e.LicenseNumber)
  2411. .HasColumnType("varchar(32)")
  2412. .HasCharSet("utf8")
  2413. .HasCollation("utf8_general_ci");
  2414. entity.Property(e => e.MerchantShortname)
  2415. .HasColumnType("varchar(50)")
  2416. .HasCharSet("utf8")
  2417. .HasCollation("utf8_general_ci");
  2418. entity.Property(e => e.MiniProgramAppid)
  2419. .HasColumnType("varchar(50)")
  2420. .HasCharSet("utf8")
  2421. .HasCollation("utf8_general_ci");
  2422. entity.Property(e => e.MiniProgramPics)
  2423. .HasColumnType("varchar(200)")
  2424. .HasCharSet("utf8")
  2425. .HasCollation("utf8_general_ci");
  2426. entity.Property(e => e.MiniProgramSubAppid)
  2427. .HasColumnType("varchar(50)")
  2428. .HasCharSet("utf8")
  2429. .HasCollation("utf8_general_ci");
  2430. entity.Property(e => e.MobilePhone)
  2431. .HasColumnType("varchar(11)")
  2432. .HasCharSet("utf8")
  2433. .HasCollation("utf8_general_ci");
  2434. entity.Property(e => e.MpAppid)
  2435. .HasColumnType("varchar(50)")
  2436. .HasCharSet("utf8")
  2437. .HasCollation("utf8_general_ci");
  2438. entity.Property(e => e.MpPics)
  2439. .HasColumnType("varchar(200)")
  2440. .HasCharSet("utf8")
  2441. .HasCollation("utf8_general_ci");
  2442. entity.Property(e => e.MpSubAppid)
  2443. .HasColumnType("varchar(50)")
  2444. .HasCharSet("utf8")
  2445. .HasCollation("utf8_general_ci");
  2446. entity.Property(e => e.OpenId)
  2447. .HasColumnType("varchar(50)")
  2448. .HasCharSet("utf8")
  2449. .HasCollation("utf8_general_ci");
  2450. entity.Property(e => e.OrgPeriodBegin).HasColumnType("datetime");
  2451. entity.Property(e => e.OrgPeriodEnd).HasColumnType("datetime");
  2452. entity.Property(e => e.OrganizationCode)
  2453. .HasColumnType("varchar(32)")
  2454. .HasCharSet("utf8")
  2455. .HasCollation("utf8_general_ci");
  2456. entity.Property(e => e.OrganizationCopy)
  2457. .HasColumnType("varchar(200)")
  2458. .HasCharSet("utf8")
  2459. .HasCollation("utf8_general_ci");
  2460. entity.Property(e => e.Owner)
  2461. .HasColumnType("bit(1)")
  2462. .HasDefaultValueSql("b'0'");
  2463. entity.Property(e => e.PeriodBegin).HasColumnType("datetime");
  2464. entity.Property(e => e.PeriodEnd).HasColumnType("datetime");
  2465. entity.Property(e => e.QualificationType)
  2466. .HasColumnType("varchar(30)")
  2467. .HasCharSet("utf8")
  2468. .HasCollation("utf8_general_ci");
  2469. entity.Property(e => e.Qualifications)
  2470. .HasColumnType("varchar(200)")
  2471. .HasCharSet("utf8")
  2472. .HasCollation("utf8_general_ci");
  2473. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2474. entity.Property(e => e.SalesScenesType)
  2475. .HasColumnType("varchar(50)")
  2476. .HasCharSet("utf8")
  2477. .HasCollation("utf8_general_ci");
  2478. entity.Property(e => e.SeoDescription)
  2479. .HasColumnType("varchar(500)")
  2480. .HasCharSet("utf8")
  2481. .HasCollation("utf8_general_ci");
  2482. entity.Property(e => e.SeoKeyword)
  2483. .HasColumnType("varchar(200)")
  2484. .HasCharSet("utf8")
  2485. .HasCollation("utf8_general_ci");
  2486. entity.Property(e => e.SeoTitle)
  2487. .HasColumnType("varchar(100)")
  2488. .HasCharSet("utf8")
  2489. .HasCollation("utf8_general_ci");
  2490. entity.Property(e => e.ServicePhone)
  2491. .HasColumnType("varchar(30)")
  2492. .HasCharSet("utf8")
  2493. .HasCollation("utf8_general_ci");
  2494. entity.Property(e => e.SettlementId)
  2495. .HasColumnType("varchar(3)")
  2496. .HasCharSet("utf8")
  2497. .HasCollation("utf8_general_ci");
  2498. entity.Property(e => e.SignUrl)
  2499. .HasColumnType("varchar(1000)")
  2500. .HasCharSet("utf8")
  2501. .HasCollation("utf8_general_ci");
  2502. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2503. entity.Property(e => e.Status).HasColumnType("int(11)");
  2504. entity.Property(e => e.StoreEntrancePic)
  2505. .HasColumnType("varchar(200)")
  2506. .HasCharSet("utf8")
  2507. .HasCollation("utf8_general_ci");
  2508. entity.Property(e => e.SubCorpId)
  2509. .HasColumnType("varchar(50)")
  2510. .HasCharSet("utf8")
  2511. .HasCollation("utf8_general_ci");
  2512. entity.Property(e => e.SubMchid)
  2513. .HasColumnType("varchar(32)")
  2514. .HasCharSet("utf8")
  2515. .HasCollation("utf8_general_ci");
  2516. entity.Property(e => e.SubjectType)
  2517. .HasColumnType("varchar(50)")
  2518. .HasCharSet("utf8")
  2519. .HasCollation("utf8_general_ci");
  2520. entity.Property(e => e.UboInfoIdCardCopy)
  2521. .HasColumnType("varchar(200)")
  2522. .HasCharSet("utf8")
  2523. .HasCollation("utf8_general_ci");
  2524. entity.Property(e => e.UboInfoIdCardNational)
  2525. .HasColumnType("varchar(200)")
  2526. .HasCharSet("utf8")
  2527. .HasCollation("utf8_general_ci");
  2528. entity.Property(e => e.UboInfoIdDocCopy)
  2529. .HasColumnType("varchar(200)")
  2530. .HasCharSet("utf8")
  2531. .HasCollation("utf8_general_ci");
  2532. entity.Property(e => e.UboInfoIdNumber)
  2533. .HasColumnType("varchar(30)")
  2534. .HasCharSet("utf8")
  2535. .HasCollation("utf8_general_ci");
  2536. entity.Property(e => e.UboInfoIdPeriodBegin).HasColumnType("datetime");
  2537. entity.Property(e => e.UboInfoIdPeriodEnd).HasColumnType("datetime");
  2538. entity.Property(e => e.UboInfoIdType)
  2539. .HasColumnType("varchar(50)")
  2540. .HasCharSet("utf8")
  2541. .HasCollation("utf8_general_ci");
  2542. entity.Property(e => e.UboInfoName)
  2543. .HasColumnType("varchar(20)")
  2544. .HasCharSet("utf8")
  2545. .HasCollation("utf8_general_ci");
  2546. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2547. entity.Property(e => e.UpdateMan)
  2548. .HasColumnType("varchar(50)")
  2549. .HasCharSet("utf8")
  2550. .HasCollation("utf8_general_ci");
  2551. entity.Property(e => e.Version).HasColumnType("int(11)");
  2552. entity.Property(e => e.WebAppId)
  2553. .HasColumnType("varchar(50)")
  2554. .HasCharSet("utf8")
  2555. .HasCollation("utf8_general_ci");
  2556. entity.Property(e => e.WebAuthorisation)
  2557. .HasColumnType("varchar(200)")
  2558. .HasCharSet("utf8")
  2559. .HasCollation("utf8_general_ci");
  2560. entity.Property(e => e.WebDomain)
  2561. .HasColumnType("varchar(50)")
  2562. .HasCharSet("utf8")
  2563. .HasCollation("utf8_general_ci");
  2564. entity.Property(e => e.WeworkPics)
  2565. .HasColumnType("varchar(200)")
  2566. .HasCharSet("utf8")
  2567. .HasCollation("utf8_general_ci");
  2568. });
  2569. modelBuilder.Entity<MerchantAdmin>(entity =>
  2570. {
  2571. entity.Property(e => e.Id).HasColumnType("int(11)");
  2572. entity.Property(e => e.AdminName)
  2573. .HasColumnType("varchar(50)")
  2574. .HasCharSet("utf8")
  2575. .HasCollation("utf8_general_ci");
  2576. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2577. entity.Property(e => e.CreateMan)
  2578. .HasColumnType("varchar(50)")
  2579. .HasCharSet("utf8")
  2580. .HasCollation("utf8_general_ci");
  2581. entity.Property(e => e.Email)
  2582. .HasColumnType("varchar(50)")
  2583. .HasCharSet("utf8")
  2584. .HasCollation("utf8_general_ci");
  2585. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  2586. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2587. entity.Property(e => e.Mobile)
  2588. .HasColumnType("varchar(11)")
  2589. .HasCharSet("utf8")
  2590. .HasCollation("utf8_general_ci");
  2591. entity.Property(e => e.Note)
  2592. .HasColumnType("mediumtext")
  2593. .HasCharSet("utf8")
  2594. .HasCollation("utf8_general_ci");
  2595. entity.Property(e => e.Password)
  2596. .HasColumnType("varchar(32)")
  2597. .HasCharSet("utf8")
  2598. .HasCollation("utf8_general_ci");
  2599. entity.Property(e => e.Qq)
  2600. .HasColumnName("QQ")
  2601. .HasColumnType("varchar(20)")
  2602. .HasCharSet("utf8")
  2603. .HasCollation("utf8_general_ci");
  2604. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2605. entity.Property(e => e.RealName)
  2606. .HasColumnType("varchar(50)")
  2607. .HasCharSet("utf8")
  2608. .HasCollation("utf8_general_ci");
  2609. entity.Property(e => e.RightInfo)
  2610. .HasColumnType("varchar(500)")
  2611. .HasCharSet("utf8")
  2612. .HasCollation("utf8_general_ci");
  2613. entity.Property(e => e.SeoDescription)
  2614. .HasColumnType("varchar(500)")
  2615. .HasCharSet("utf8")
  2616. .HasCollation("utf8_general_ci");
  2617. entity.Property(e => e.SeoKeyword)
  2618. .HasColumnType("varchar(200)")
  2619. .HasCharSet("utf8")
  2620. .HasCollation("utf8_general_ci");
  2621. entity.Property(e => e.SeoTitle)
  2622. .HasColumnType("varchar(100)")
  2623. .HasCharSet("utf8")
  2624. .HasCollation("utf8_general_ci");
  2625. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2626. entity.Property(e => e.Status).HasColumnType("int(11)");
  2627. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2628. entity.Property(e => e.UpdateMan)
  2629. .HasColumnType("varchar(50)")
  2630. .HasCharSet("utf8")
  2631. .HasCollation("utf8_general_ci");
  2632. entity.Property(e => e.Version).HasColumnType("int(11)");
  2633. });
  2634. modelBuilder.Entity<MerchantAuth>(entity =>
  2635. {
  2636. entity.Property(e => e.Id).HasColumnType("int(11)");
  2637. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  2638. entity.Property(e => e.BankCardAccount)
  2639. .HasColumnType("varchar(32)")
  2640. .HasCharSet("utf8")
  2641. .HasCollation("utf8_general_ci");
  2642. entity.Property(e => e.BankMobile)
  2643. .HasColumnType("varchar(11)")
  2644. .HasCharSet("utf8")
  2645. .HasCollation("utf8_general_ci");
  2646. entity.Property(e => e.BankName)
  2647. .HasColumnType("varchar(64)")
  2648. .HasCharSet("utf8")
  2649. .HasCollation("utf8_general_ci");
  2650. entity.Property(e => e.ChannelCode)
  2651. .HasColumnType("varchar(16)")
  2652. .HasCharSet("utf8")
  2653. .HasCollation("utf8_general_ci");
  2654. entity.Property(e => e.ChannelName)
  2655. .HasColumnType("varchar(32)")
  2656. .HasCharSet("utf8")
  2657. .HasCollation("utf8_general_ci");
  2658. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2659. entity.Property(e => e.CreateMan)
  2660. .HasColumnType("varchar(50)")
  2661. .HasCharSet("utf8")
  2662. .HasCollation("utf8_general_ci");
  2663. entity.Property(e => e.IdCardNo)
  2664. .HasColumnType("varchar(18)")
  2665. .HasCharSet("utf8")
  2666. .HasCollation("utf8_general_ci");
  2667. entity.Property(e => e.MerNo)
  2668. .HasColumnType("varchar(20)")
  2669. .HasCharSet("utf8")
  2670. .HasCollation("utf8_general_ci");
  2671. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2672. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2673. entity.Property(e => e.RealName)
  2674. .HasColumnType("varchar(16)")
  2675. .HasCharSet("utf8")
  2676. .HasCollation("utf8_general_ci");
  2677. entity.Property(e => e.ReqData)
  2678. .HasColumnType("varchar(2000)")
  2679. .HasCharSet("utf8")
  2680. .HasCollation("utf8_general_ci");
  2681. entity.Property(e => e.RespData)
  2682. .HasColumnType("varchar(2000)")
  2683. .HasCharSet("utf8")
  2684. .HasCollation("utf8_general_ci");
  2685. entity.Property(e => e.ReturnCode)
  2686. .HasColumnType("varchar(30)")
  2687. .HasCharSet("utf8")
  2688. .HasCollation("utf8_general_ci");
  2689. entity.Property(e => e.ReturnMsg)
  2690. .HasColumnType("varchar(512)")
  2691. .HasCharSet("utf8")
  2692. .HasCollation("utf8_general_ci");
  2693. entity.Property(e => e.SeoDescription)
  2694. .HasColumnType("varchar(500)")
  2695. .HasCharSet("utf8")
  2696. .HasCollation("utf8_general_ci");
  2697. entity.Property(e => e.SeoKeyword)
  2698. .HasColumnType("varchar(200)")
  2699. .HasCharSet("utf8")
  2700. .HasCollation("utf8_general_ci");
  2701. entity.Property(e => e.SeoTitle)
  2702. .HasColumnType("varchar(100)")
  2703. .HasCharSet("utf8")
  2704. .HasCollation("utf8_general_ci");
  2705. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2706. entity.Property(e => e.Status).HasColumnType("int(11)");
  2707. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2708. entity.Property(e => e.UpdateMan)
  2709. .HasColumnType("varchar(50)")
  2710. .HasCharSet("utf8")
  2711. .HasCollation("utf8_general_ci");
  2712. entity.Property(e => e.Version).HasColumnType("int(11)");
  2713. });
  2714. modelBuilder.Entity<MerchantClass>(entity =>
  2715. {
  2716. entity.Property(e => e.Id).HasColumnType("int(11)");
  2717. entity.Property(e => e.ColName)
  2718. .HasColumnType("varchar(50)")
  2719. .HasCharSet("utf8")
  2720. .HasCollation("utf8_general_ci");
  2721. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2722. entity.Property(e => e.CreateMan)
  2723. .HasColumnType("varchar(50)")
  2724. .HasCharSet("utf8")
  2725. .HasCollation("utf8_general_ci");
  2726. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2727. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2728. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2729. entity.Property(e => e.SeoDescription)
  2730. .HasColumnType("varchar(500)")
  2731. .HasCharSet("utf8")
  2732. .HasCollation("utf8_general_ci");
  2733. entity.Property(e => e.SeoKeyword)
  2734. .HasColumnType("varchar(200)")
  2735. .HasCharSet("utf8")
  2736. .HasCollation("utf8_general_ci");
  2737. entity.Property(e => e.SeoTitle)
  2738. .HasColumnType("varchar(100)")
  2739. .HasCharSet("utf8")
  2740. .HasCollation("utf8_general_ci");
  2741. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2742. entity.Property(e => e.Status).HasColumnType("int(11)");
  2743. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2744. entity.Property(e => e.UpdateMan)
  2745. .HasColumnType("varchar(50)")
  2746. .HasCharSet("utf8")
  2747. .HasCollation("utf8_general_ci");
  2748. entity.Property(e => e.Version).HasColumnType("int(11)");
  2749. });
  2750. modelBuilder.Entity<MerchantCol>(entity =>
  2751. {
  2752. entity.Property(e => e.Id).HasColumnType("int(11)");
  2753. entity.Property(e => e.ColDetail)
  2754. .HasColumnType("varchar(50)")
  2755. .HasCharSet("utf8")
  2756. .HasCollation("utf8_general_ci");
  2757. entity.Property(e => e.ColEnName)
  2758. .HasColumnType("varchar(50)")
  2759. .HasCharSet("utf8")
  2760. .HasCollation("utf8_general_ci");
  2761. entity.Property(e => e.ColId)
  2762. .HasColumnType("varchar(30)")
  2763. .HasCharSet("utf8")
  2764. .HasCollation("utf8_general_ci");
  2765. entity.Property(e => e.ColName)
  2766. .HasColumnType("varchar(50)")
  2767. .HasCharSet("utf8")
  2768. .HasCollation("utf8_general_ci");
  2769. entity.Property(e => e.ColPicPath)
  2770. .HasColumnType("varchar(200)")
  2771. .HasCharSet("utf8")
  2772. .HasCollation("utf8_general_ci");
  2773. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2774. entity.Property(e => e.CreateMan)
  2775. .HasColumnType("varchar(50)")
  2776. .HasCharSet("utf8")
  2777. .HasCollation("utf8_general_ci");
  2778. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2779. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2780. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2781. entity.Property(e => e.Recommend)
  2782. .HasColumnType("bit(1)")
  2783. .HasDefaultValueSql("b'0'");
  2784. entity.Property(e => e.SeoDescription)
  2785. .HasColumnType("varchar(500)")
  2786. .HasCharSet("utf8")
  2787. .HasCollation("utf8_general_ci");
  2788. entity.Property(e => e.SeoKeyword)
  2789. .HasColumnType("varchar(200)")
  2790. .HasCharSet("utf8")
  2791. .HasCollation("utf8_general_ci");
  2792. entity.Property(e => e.SeoTitle)
  2793. .HasColumnType("varchar(100)")
  2794. .HasCharSet("utf8")
  2795. .HasCollation("utf8_general_ci");
  2796. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2797. entity.Property(e => e.Status).HasColumnType("int(11)");
  2798. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2799. entity.Property(e => e.UpdateMan)
  2800. .HasColumnType("varchar(50)")
  2801. .HasCharSet("utf8")
  2802. .HasCollation("utf8_general_ci");
  2803. entity.Property(e => e.Version).HasColumnType("int(11)");
  2804. });
  2805. modelBuilder.Entity<MerchantComment>(entity =>
  2806. {
  2807. entity.Property(e => e.Id).HasColumnType("int(11)");
  2808. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2809. entity.Property(e => e.CreateMan)
  2810. .HasColumnType("varchar(50)")
  2811. .HasCharSet("utf8")
  2812. .HasCollation("utf8_general_ci");
  2813. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2814. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  2815. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2816. entity.Property(e => e.SeoDescription)
  2817. .HasColumnType("varchar(500)")
  2818. .HasCharSet("utf8")
  2819. .HasCollation("utf8_general_ci");
  2820. entity.Property(e => e.SeoKeyword)
  2821. .HasColumnType("varchar(200)")
  2822. .HasCharSet("utf8")
  2823. .HasCollation("utf8_general_ci");
  2824. entity.Property(e => e.SeoTitle)
  2825. .HasColumnType("varchar(100)")
  2826. .HasCharSet("utf8")
  2827. .HasCollation("utf8_general_ci");
  2828. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2829. entity.Property(e => e.StarNum1).HasColumnType("int(11)");
  2830. entity.Property(e => e.StarNum2).HasColumnType("int(11)");
  2831. entity.Property(e => e.StarNum3).HasColumnType("int(11)");
  2832. entity.Property(e => e.Status).HasColumnType("int(11)");
  2833. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2834. entity.Property(e => e.UpdateMan)
  2835. .HasColumnType("varchar(50)")
  2836. .HasCharSet("utf8")
  2837. .HasCollation("utf8_general_ci");
  2838. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2839. entity.Property(e => e.Version).HasColumnType("int(11)");
  2840. });
  2841. modelBuilder.Entity<MerchantForCode>(entity =>
  2842. {
  2843. entity.HasKey(e => e.Code)
  2844. .HasName("PRIMARY");
  2845. entity.Property(e => e.Code)
  2846. .HasColumnType("varchar(30)")
  2847. .HasCharSet("utf8")
  2848. .HasCollation("utf8_general_ci");
  2849. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2850. });
  2851. modelBuilder.Entity<MerchantForMobile>(entity =>
  2852. {
  2853. entity.HasKey(e => e.Mobile)
  2854. .HasName("PRIMARY");
  2855. entity.Property(e => e.Mobile)
  2856. .HasColumnType("varchar(11)")
  2857. .HasCharSet("utf8")
  2858. .HasCollation("utf8_general_ci");
  2859. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2860. });
  2861. modelBuilder.Entity<MerchantForName>(entity =>
  2862. {
  2863. entity.HasKey(e => e.Name)
  2864. .HasName("PRIMARY");
  2865. entity.Property(e => e.Name)
  2866. .HasColumnType("varchar(30)")
  2867. .HasCharSet("utf8")
  2868. .HasCollation("utf8_general_ci");
  2869. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2870. });
  2871. modelBuilder.Entity<MerchantInfo>(entity =>
  2872. {
  2873. entity.Property(e => e.Id).HasColumnType("int(11)");
  2874. entity.Property(e => e.ActivationDate).HasColumnType("datetime");
  2875. entity.Property(e => e.ActivationStatus).HasColumnType("int(11)");
  2876. entity.Property(e => e.Address)
  2877. .HasColumnType("varchar(100)")
  2878. .HasCharSet("utf8")
  2879. .HasCollation("utf8_general_ci");
  2880. entity.Property(e => e.Areas)
  2881. .HasColumnType("varchar(50)")
  2882. .HasCharSet("utf8")
  2883. .HasCollation("utf8_general_ci");
  2884. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2885. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  2886. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2887. entity.Property(e => e.CreateMan)
  2888. .HasColumnType("varchar(50)")
  2889. .HasCharSet("utf8")
  2890. .HasCollation("utf8_general_ci");
  2891. entity.Property(e => e.IsAuth)
  2892. .HasColumnType("bit(1)")
  2893. .HasDefaultValueSql("b'0'");
  2894. entity.Property(e => e.LastAddConsumerDate).HasColumnType("datetime");
  2895. entity.Property(e => e.LastConsumeDate).HasColumnType("datetime");
  2896. entity.Property(e => e.LoginPwd)
  2897. .HasColumnType("varchar(32)")
  2898. .HasCharSet("utf8")
  2899. .HasCollation("utf8_general_ci");
  2900. entity.Property(e => e.Logo)
  2901. .HasColumnType("varchar(200)")
  2902. .HasCharSet("utf8")
  2903. .HasCollation("utf8_general_ci");
  2904. entity.Property(e => e.Mobile)
  2905. .HasColumnType("varchar(11)")
  2906. .HasCharSet("utf8")
  2907. .HasCollation("utf8_general_ci");
  2908. entity.Property(e => e.Name)
  2909. .HasColumnType("varchar(50)")
  2910. .HasCharSet("utf8")
  2911. .HasCollation("utf8_general_ci");
  2912. entity.Property(e => e.ParentUserNav)
  2913. .HasColumnType("varchar(500)")
  2914. .HasCharSet("utf8")
  2915. .HasCollation("utf8_general_ci");
  2916. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2917. entity.Property(e => e.SeoDescription)
  2918. .HasColumnType("varchar(500)")
  2919. .HasCharSet("utf8")
  2920. .HasCollation("utf8_general_ci");
  2921. entity.Property(e => e.SeoKeyword)
  2922. .HasColumnType("varchar(200)")
  2923. .HasCharSet("utf8")
  2924. .HasCollation("utf8_general_ci");
  2925. entity.Property(e => e.SeoTitle)
  2926. .HasColumnType("varchar(100)")
  2927. .HasCharSet("utf8")
  2928. .HasCollation("utf8_general_ci");
  2929. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2930. entity.Property(e => e.Status).HasColumnType("int(11)");
  2931. entity.Property(e => e.TotalActual).HasColumnType("decimal(18,2)");
  2932. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  2933. entity.Property(e => e.TotalConsumeCount).HasColumnType("int(11)");
  2934. entity.Property(e => e.TotalCustomer).HasColumnType("int(11)");
  2935. entity.Property(e => e.TotalOrder).HasColumnType("int(11)");
  2936. entity.Property(e => e.TotalUser).HasColumnType("int(11)");
  2937. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2938. entity.Property(e => e.UpdateMan)
  2939. .HasColumnType("varchar(50)")
  2940. .HasCharSet("utf8")
  2941. .HasCollation("utf8_general_ci");
  2942. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2943. entity.Property(e => e.Version).HasColumnType("int(11)");
  2944. });
  2945. modelBuilder.Entity<MerchantParamSet>(entity =>
  2946. {
  2947. entity.Property(e => e.Id).HasColumnType("int(11)");
  2948. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2949. entity.Property(e => e.CreateMan)
  2950. .HasColumnType("varchar(50)")
  2951. .HasCharSet("utf8")
  2952. .HasCollation("utf8_general_ci");
  2953. entity.Property(e => e.DiviPercent).HasColumnType("decimal(18,2)");
  2954. entity.Property(e => e.DiviPersons).HasColumnType("int(11)");
  2955. entity.Property(e => e.GetPercent).HasColumnType("decimal(18,2)");
  2956. entity.Property(e => e.IsAll).HasColumnType("int(11)");
  2957. entity.Property(e => e.MinPayMoney).HasColumnType("decimal(18,2)");
  2958. entity.Property(e => e.ProfitDays).HasColumnType("int(11)");
  2959. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2960. entity.Property(e => e.SeoDescription)
  2961. .HasColumnType("varchar(500)")
  2962. .HasCharSet("utf8")
  2963. .HasCollation("utf8_general_ci");
  2964. entity.Property(e => e.SeoKeyword)
  2965. .HasColumnType("varchar(200)")
  2966. .HasCharSet("utf8")
  2967. .HasCollation("utf8_general_ci");
  2968. entity.Property(e => e.SeoTitle)
  2969. .HasColumnType("varchar(100)")
  2970. .HasCharSet("utf8")
  2971. .HasCollation("utf8_general_ci");
  2972. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2973. entity.Property(e => e.Status).HasColumnType("int(11)");
  2974. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2975. entity.Property(e => e.UpdateMan)
  2976. .HasColumnType("varchar(50)")
  2977. .HasCharSet("utf8")
  2978. .HasCollation("utf8_general_ci");
  2979. entity.Property(e => e.Version).HasColumnType("int(11)");
  2980. });
  2981. modelBuilder.Entity<MerchantQrCode>(entity =>
  2982. {
  2983. entity.Property(e => e.Id).HasColumnType("int(11)");
  2984. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2985. entity.Property(e => e.CreateMan)
  2986. .HasColumnType("varchar(50)")
  2987. .HasCharSet("utf8")
  2988. .HasCollation("utf8_general_ci");
  2989. entity.Property(e => e.MachineId).HasColumnType("int(11)");
  2990. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2991. entity.Property(e => e.QrCodeContent)
  2992. .HasColumnType("varchar(500)")
  2993. .HasCharSet("utf8")
  2994. .HasCollation("utf8_general_ci");
  2995. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2996. entity.Property(e => e.SeoDescription)
  2997. .HasColumnType("varchar(500)")
  2998. .HasCharSet("utf8")
  2999. .HasCollation("utf8_general_ci");
  3000. entity.Property(e => e.SeoKeyword)
  3001. .HasColumnType("varchar(200)")
  3002. .HasCharSet("utf8")
  3003. .HasCollation("utf8_general_ci");
  3004. entity.Property(e => e.SeoTitle)
  3005. .HasColumnType("varchar(100)")
  3006. .HasCharSet("utf8")
  3007. .HasCollation("utf8_general_ci");
  3008. entity.Property(e => e.SnNo)
  3009. .HasColumnType("varchar(50)")
  3010. .HasCharSet("utf8")
  3011. .HasCollation("utf8_general_ci");
  3012. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3013. entity.Property(e => e.Status).HasColumnType("int(11)");
  3014. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3015. entity.Property(e => e.UpdateMan)
  3016. .HasColumnType("varchar(50)")
  3017. .HasCharSet("utf8")
  3018. .HasCollation("utf8_general_ci");
  3019. entity.Property(e => e.Version).HasColumnType("int(11)");
  3020. });
  3021. modelBuilder.Entity<MerchantRebateDetail>(entity =>
  3022. {
  3023. entity.Property(e => e.Id).HasColumnType("int(11)");
  3024. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3025. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3026. entity.Property(e => e.CreateMan)
  3027. .HasColumnType("varchar(50)")
  3028. .HasCharSet("utf8")
  3029. .HasCollation("utf8_general_ci");
  3030. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3031. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3032. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3033. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3034. entity.Property(e => e.MerNo)
  3035. .HasColumnType("varchar(32)")
  3036. .HasCharSet("utf8")
  3037. .HasCollation("utf8_general_ci");
  3038. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  3039. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  3040. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3041. entity.Property(e => e.MmpUserName)
  3042. .HasColumnType("varchar(32)")
  3043. .HasCharSet("utf8")
  3044. .HasCollation("utf8_general_ci");
  3045. entity.Property(e => e.MmpUserNo)
  3046. .HasColumnType("varchar(32)")
  3047. .HasCharSet("utf8")
  3048. .HasCollation("utf8_general_ci");
  3049. entity.Property(e => e.ProductName)
  3050. .HasColumnType("varchar(32)")
  3051. .HasCharSet("utf8")
  3052. .HasCollation("utf8_general_ci");
  3053. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3054. entity.Property(e => e.Remark)
  3055. .HasColumnType("varchar(64)")
  3056. .HasCharSet("utf8")
  3057. .HasCollation("utf8_general_ci");
  3058. entity.Property(e => e.RewardDesc)
  3059. .HasColumnType("varchar(128)")
  3060. .HasCharSet("utf8")
  3061. .HasCollation("utf8_general_ci");
  3062. entity.Property(e => e.SeoDescription)
  3063. .HasColumnType("varchar(500)")
  3064. .HasCharSet("utf8")
  3065. .HasCollation("utf8_general_ci");
  3066. entity.Property(e => e.SeoKeyword)
  3067. .HasColumnType("varchar(200)")
  3068. .HasCharSet("utf8")
  3069. .HasCollation("utf8_general_ci");
  3070. entity.Property(e => e.SeoTitle)
  3071. .HasColumnType("varchar(100)")
  3072. .HasCharSet("utf8")
  3073. .HasCollation("utf8_general_ci");
  3074. entity.Property(e => e.SnNo)
  3075. .HasColumnType("varchar(32)")
  3076. .HasCharSet("utf8")
  3077. .HasCollation("utf8_general_ci");
  3078. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3079. entity.Property(e => e.Status).HasColumnType("int(11)");
  3080. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  3081. entity.Property(e => e.TradeDate)
  3082. .HasColumnType("varchar(8)")
  3083. .HasCharSet("utf8")
  3084. .HasCollation("utf8_general_ci");
  3085. entity.Property(e => e.TradeMonth)
  3086. .HasColumnType("varchar(6)")
  3087. .HasCharSet("utf8")
  3088. .HasCollation("utf8_general_ci");
  3089. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3090. entity.Property(e => e.UpdateMan)
  3091. .HasColumnType("varchar(50)")
  3092. .HasCharSet("utf8")
  3093. .HasCollation("utf8_general_ci");
  3094. entity.Property(e => e.Version).HasColumnType("int(11)");
  3095. });
  3096. modelBuilder.Entity<Merchants>(entity =>
  3097. {
  3098. entity.Property(e => e.Id).HasColumnType("int(11)");
  3099. entity.Property(e => e.Address)
  3100. .HasColumnType("varchar(50)")
  3101. .HasCharSet("utf8")
  3102. .HasCollation("utf8_general_ci");
  3103. entity.Property(e => e.Areas)
  3104. .HasColumnType("varchar(30)")
  3105. .HasCharSet("utf8")
  3106. .HasCollation("utf8_general_ci");
  3107. entity.Property(e => e.BusinessLicense)
  3108. .HasColumnType("varchar(200)")
  3109. .HasCharSet("utf8")
  3110. .HasCollation("utf8_general_ci");
  3111. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  3112. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3113. entity.Property(e => e.CreateMan)
  3114. .HasColumnType("varchar(50)")
  3115. .HasCharSet("utf8")
  3116. .HasCollation("utf8_general_ci");
  3117. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  3118. entity.Property(e => e.IsAuth)
  3119. .HasColumnType("bit(1)")
  3120. .HasDefaultValueSql("b'0'");
  3121. entity.Property(e => e.IsRecommend)
  3122. .HasColumnType("bit(1)")
  3123. .HasDefaultValueSql("b'0'");
  3124. entity.Property(e => e.LoginPwd)
  3125. .HasColumnType("varchar(32)")
  3126. .HasCharSet("utf8")
  3127. .HasCollation("utf8_general_ci");
  3128. entity.Property(e => e.Logo)
  3129. .HasColumnType("varchar(200)")
  3130. .HasCharSet("utf8")
  3131. .HasCollation("utf8_general_ci");
  3132. entity.Property(e => e.Name)
  3133. .HasColumnType("varchar(50)")
  3134. .HasCharSet("utf8")
  3135. .HasCollation("utf8_general_ci");
  3136. entity.Property(e => e.PayPwd)
  3137. .HasColumnType("varchar(32)")
  3138. .HasCharSet("utf8")
  3139. .HasCollation("utf8_general_ci");
  3140. entity.Property(e => e.Phone)
  3141. .HasColumnType("varchar(30)")
  3142. .HasCharSet("utf8")
  3143. .HasCollation("utf8_general_ci");
  3144. entity.Property(e => e.Principal)
  3145. .HasColumnType("varchar(30)")
  3146. .HasCharSet("utf8")
  3147. .HasCollation("utf8_general_ci");
  3148. entity.Property(e => e.Province)
  3149. .HasColumnType("varchar(20)")
  3150. .HasCharSet("utf8")
  3151. .HasCollation("utf8_general_ci");
  3152. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3153. entity.Property(e => e.SeoDescription)
  3154. .HasColumnType("varchar(500)")
  3155. .HasCharSet("utf8")
  3156. .HasCollation("utf8_general_ci");
  3157. entity.Property(e => e.SeoKeyword)
  3158. .HasColumnType("varchar(200)")
  3159. .HasCharSet("utf8")
  3160. .HasCollation("utf8_general_ci");
  3161. entity.Property(e => e.SeoTitle)
  3162. .HasColumnType("varchar(100)")
  3163. .HasCharSet("utf8")
  3164. .HasCollation("utf8_general_ci");
  3165. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3166. entity.Property(e => e.StarNum1).HasColumnType("decimal(18,2)");
  3167. entity.Property(e => e.StarNum2).HasColumnType("decimal(18,2)");
  3168. entity.Property(e => e.StarNum3).HasColumnType("decimal(18,2)");
  3169. entity.Property(e => e.Status).HasColumnType("int(11)");
  3170. entity.Property(e => e.Title)
  3171. .HasColumnType("varchar(50)")
  3172. .HasCharSet("utf8")
  3173. .HasCollation("utf8_general_ci");
  3174. entity.Property(e => e.Title2)
  3175. .HasColumnType("varchar(50)")
  3176. .HasCharSet("utf8")
  3177. .HasCollation("utf8_general_ci");
  3178. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3179. entity.Property(e => e.UpdateMan)
  3180. .HasColumnType("varchar(50)")
  3181. .HasCharSet("utf8")
  3182. .HasCollation("utf8_general_ci");
  3183. entity.Property(e => e.UserName)
  3184. .HasColumnType("varchar(50)")
  3185. .HasCharSet("utf8")
  3186. .HasCollation("utf8_general_ci");
  3187. entity.Property(e => e.Version).HasColumnType("int(11)");
  3188. });
  3189. modelBuilder.Entity<MobileCodeCheck>(entity =>
  3190. {
  3191. entity.HasKey(e => e.Mobile)
  3192. .HasName("PRIMARY");
  3193. entity.Property(e => e.Mobile)
  3194. .HasColumnType("varchar(11)")
  3195. .HasCharSet("utf8")
  3196. .HasCollation("utf8_general_ci");
  3197. entity.Property(e => e.CheckCode)
  3198. .HasColumnType("varchar(6)")
  3199. .HasCharSet("utf8")
  3200. .HasCollation("utf8_general_ci");
  3201. entity.Property(e => e.CheckCodeTime).HasColumnType("datetime");
  3202. entity.Property(e => e.CheckNo)
  3203. .HasColumnType("varchar(6)")
  3204. .HasCharSet("utf8")
  3205. .HasCollation("utf8_general_ci");
  3206. });
  3207. modelBuilder.Entity<MsgBlackList>(entity =>
  3208. {
  3209. entity.Property(e => e.Id).HasColumnType("int(11)");
  3210. entity.Property(e => e.ColId)
  3211. .HasColumnType("varchar(30)")
  3212. .HasCharSet("utf8")
  3213. .HasCollation("utf8_general_ci");
  3214. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3215. entity.Property(e => e.CreateMan)
  3216. .HasColumnType("varchar(50)")
  3217. .HasCharSet("utf8")
  3218. .HasCollation("utf8_general_ci");
  3219. entity.Property(e => e.Extend)
  3220. .HasColumnType("varchar(2000)")
  3221. .HasCharSet("utf8")
  3222. .HasCollation("utf8_general_ci");
  3223. entity.Property(e => e.Ip)
  3224. .HasColumnType("varchar(64)")
  3225. .HasCharSet("utf8")
  3226. .HasCollation("utf8_general_ci");
  3227. entity.Property(e => e.Mobile)
  3228. .HasColumnType("varchar(11)")
  3229. .HasCharSet("utf8")
  3230. .HasCollation("utf8_general_ci");
  3231. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3232. entity.Property(e => e.Reason)
  3233. .HasColumnType("varchar(512)")
  3234. .HasCharSet("utf8")
  3235. .HasCollation("utf8_general_ci");
  3236. entity.Property(e => e.Remark)
  3237. .HasColumnType("varchar(64)")
  3238. .HasCharSet("utf8")
  3239. .HasCollation("utf8_general_ci");
  3240. entity.Property(e => e.SeoDescription)
  3241. .HasColumnType("varchar(500)")
  3242. .HasCharSet("utf8")
  3243. .HasCollation("utf8_general_ci");
  3244. entity.Property(e => e.SeoKeyword)
  3245. .HasColumnType("varchar(200)")
  3246. .HasCharSet("utf8")
  3247. .HasCollation("utf8_general_ci");
  3248. entity.Property(e => e.SeoTitle)
  3249. .HasColumnType("varchar(100)")
  3250. .HasCharSet("utf8")
  3251. .HasCollation("utf8_general_ci");
  3252. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3253. entity.Property(e => e.Status).HasColumnType("int(11)");
  3254. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3255. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3256. entity.Property(e => e.UpdateMan)
  3257. .HasColumnType("varchar(50)")
  3258. .HasCharSet("utf8")
  3259. .HasCollation("utf8_general_ci");
  3260. entity.Property(e => e.Version).HasColumnType("int(11)");
  3261. });
  3262. modelBuilder.Entity<MsgPersonal>(entity =>
  3263. {
  3264. entity.Property(e => e.Id).HasColumnType("int(11)");
  3265. entity.Property(e => e.BgPic)
  3266. .HasColumnType("varchar(200)")
  3267. .HasCharSet("utf8")
  3268. .HasCollation("utf8_general_ci");
  3269. entity.Property(e => e.Content)
  3270. .HasColumnType("longtext")
  3271. .HasCharSet("utf8")
  3272. .HasCollation("utf8_general_ci");
  3273. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3274. entity.Property(e => e.CreateMan)
  3275. .HasColumnType("varchar(50)")
  3276. .HasCharSet("utf8")
  3277. .HasCollation("utf8_general_ci");
  3278. entity.Property(e => e.ExtendColumn)
  3279. .HasColumnType("mediumtext")
  3280. .HasCharSet("utf8")
  3281. .HasCollation("utf8_general_ci");
  3282. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3283. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3284. entity.Property(e => e.PushParam)
  3285. .HasColumnType("varchar(255)")
  3286. .HasCharSet("utf8")
  3287. .HasCollation("utf8_general_ci");
  3288. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3289. entity.Property(e => e.ReadFlag)
  3290. .HasColumnType("bit(1)")
  3291. .HasDefaultValueSql("b'0'");
  3292. entity.Property(e => e.Remark)
  3293. .HasColumnType("varchar(255)")
  3294. .HasCharSet("utf8")
  3295. .HasCollation("utf8_general_ci");
  3296. entity.Property(e => e.SeoDescription)
  3297. .HasColumnType("varchar(500)")
  3298. .HasCharSet("utf8")
  3299. .HasCollation("utf8_general_ci");
  3300. entity.Property(e => e.SeoKeyword)
  3301. .HasColumnType("varchar(200)")
  3302. .HasCharSet("utf8")
  3303. .HasCollation("utf8_general_ci");
  3304. entity.Property(e => e.SeoTitle)
  3305. .HasColumnType("varchar(100)")
  3306. .HasCharSet("utf8")
  3307. .HasCollation("utf8_general_ci");
  3308. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3309. entity.Property(e => e.Status).HasColumnType("int(11)");
  3310. entity.Property(e => e.Summary)
  3311. .HasColumnType("varchar(500)")
  3312. .HasCharSet("utf8")
  3313. .HasCollation("utf8_general_ci");
  3314. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3315. entity.Property(e => e.Title)
  3316. .HasColumnType("varchar(50)")
  3317. .HasCharSet("utf8")
  3318. .HasCollation("utf8_general_ci");
  3319. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3320. entity.Property(e => e.UpdateMan)
  3321. .HasColumnType("varchar(50)")
  3322. .HasCharSet("utf8")
  3323. .HasCollation("utf8_general_ci");
  3324. entity.Property(e => e.Url)
  3325. .HasColumnType("varchar(500)")
  3326. .HasCharSet("utf8")
  3327. .HasCollation("utf8_general_ci");
  3328. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3329. entity.Property(e => e.Version).HasColumnType("int(11)");
  3330. });
  3331. modelBuilder.Entity<MsgPlacard>(entity =>
  3332. {
  3333. entity.Property(e => e.Id).HasColumnType("int(11)");
  3334. entity.Property(e => e.BgPic)
  3335. .HasColumnType("varchar(200)")
  3336. .HasCharSet("utf8")
  3337. .HasCollation("utf8_general_ci");
  3338. entity.Property(e => e.Content)
  3339. .HasColumnType("longtext")
  3340. .HasCharSet("utf8")
  3341. .HasCollation("utf8_general_ci");
  3342. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3343. entity.Property(e => e.CreateMan)
  3344. .HasColumnType("varchar(50)")
  3345. .HasCharSet("utf8")
  3346. .HasCollation("utf8_general_ci");
  3347. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  3348. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  3349. entity.Property(e => e.ExtendColumn)
  3350. .HasColumnType("mediumtext")
  3351. .HasCharSet("utf8")
  3352. .HasCollation("utf8_general_ci");
  3353. entity.Property(e => e.IsTop)
  3354. .HasColumnType("bit(1)")
  3355. .HasDefaultValueSql("b'0'");
  3356. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3357. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3358. entity.Property(e => e.PushParam)
  3359. .HasColumnType("varchar(255)")
  3360. .HasCharSet("utf8")
  3361. .HasCollation("utf8_general_ci");
  3362. entity.Property(e => e.PushTime).HasColumnType("datetime");
  3363. entity.Property(e => e.PushType).HasColumnType("int(11)");
  3364. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3365. entity.Property(e => e.Remark)
  3366. .HasColumnType("varchar(255)")
  3367. .HasCharSet("utf8")
  3368. .HasCollation("utf8_general_ci");
  3369. entity.Property(e => e.SeoDescription)
  3370. .HasColumnType("varchar(500)")
  3371. .HasCharSet("utf8")
  3372. .HasCollation("utf8_general_ci");
  3373. entity.Property(e => e.SeoKeyword)
  3374. .HasColumnType("varchar(200)")
  3375. .HasCharSet("utf8")
  3376. .HasCollation("utf8_general_ci");
  3377. entity.Property(e => e.SeoTitle)
  3378. .HasColumnType("varchar(100)")
  3379. .HasCharSet("utf8")
  3380. .HasCollation("utf8_general_ci");
  3381. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  3382. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3383. entity.Property(e => e.Status).HasColumnType("int(11)");
  3384. entity.Property(e => e.Summary)
  3385. .HasColumnType("varchar(500)")
  3386. .HasCharSet("utf8")
  3387. .HasCollation("utf8_general_ci");
  3388. entity.Property(e => e.Title)
  3389. .HasColumnType("varchar(50)")
  3390. .HasCharSet("utf8")
  3391. .HasCollation("utf8_general_ci");
  3392. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3393. entity.Property(e => e.UpdateMan)
  3394. .HasColumnType("varchar(50)")
  3395. .HasCharSet("utf8")
  3396. .HasCollation("utf8_general_ci");
  3397. entity.Property(e => e.Url)
  3398. .HasColumnType("varchar(500)")
  3399. .HasCharSet("utf8")
  3400. .HasCollation("utf8_general_ci");
  3401. entity.Property(e => e.Version).HasColumnType("int(11)");
  3402. });
  3403. modelBuilder.Entity<MsgPlacardRead>(entity =>
  3404. {
  3405. entity.Property(e => e.Id).HasColumnType("int(11)");
  3406. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3407. entity.Property(e => e.CreateMan)
  3408. .HasColumnType("varchar(50)")
  3409. .HasCharSet("utf8")
  3410. .HasCollation("utf8_general_ci");
  3411. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  3412. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3413. entity.Property(e => e.ReadFlag)
  3414. .HasColumnType("bit(1)")
  3415. .HasDefaultValueSql("b'0'");
  3416. entity.Property(e => e.Remark)
  3417. .HasColumnType("varchar(255)")
  3418. .HasCharSet("utf8")
  3419. .HasCollation("utf8_general_ci");
  3420. entity.Property(e => e.SeoDescription)
  3421. .HasColumnType("varchar(500)")
  3422. .HasCharSet("utf8")
  3423. .HasCollation("utf8_general_ci");
  3424. entity.Property(e => e.SeoKeyword)
  3425. .HasColumnType("varchar(200)")
  3426. .HasCharSet("utf8")
  3427. .HasCollation("utf8_general_ci");
  3428. entity.Property(e => e.SeoTitle)
  3429. .HasColumnType("varchar(100)")
  3430. .HasCharSet("utf8")
  3431. .HasCollation("utf8_general_ci");
  3432. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3433. entity.Property(e => e.Status).HasColumnType("int(11)");
  3434. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3435. entity.Property(e => e.UpdateMan)
  3436. .HasColumnType("varchar(50)")
  3437. .HasCharSet("utf8")
  3438. .HasCollation("utf8_general_ci");
  3439. entity.Property(e => e.UserId)
  3440. .HasColumnType("varchar(64)")
  3441. .HasCharSet("utf8")
  3442. .HasCollation("utf8_general_ci");
  3443. entity.Property(e => e.Version).HasColumnType("int(11)");
  3444. });
  3445. modelBuilder.Entity<MsgPush>(entity =>
  3446. {
  3447. entity.Property(e => e.Id).HasColumnType("int(11)");
  3448. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  3449. entity.Property(e => e.ClientType)
  3450. .HasColumnType("varchar(20)")
  3451. .HasCharSet("utf8")
  3452. .HasCollation("utf8_general_ci");
  3453. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3454. entity.Property(e => e.CreateMan)
  3455. .HasColumnType("varchar(50)")
  3456. .HasCharSet("utf8")
  3457. .HasCollation("utf8_general_ci");
  3458. entity.Property(e => e.Details)
  3459. .HasColumnType("varchar(200)")
  3460. .HasCharSet("utf8")
  3461. .HasCollation("utf8_general_ci");
  3462. entity.Property(e => e.Devices)
  3463. .HasColumnType("mediumtext")
  3464. .HasCharSet("utf8")
  3465. .HasCollation("utf8_general_ci");
  3466. entity.Property(e => e.IsSilent)
  3467. .HasColumnType("bit(1)")
  3468. .HasDefaultValueSql("b'0'");
  3469. entity.Property(e => e.MessageId)
  3470. .HasColumnType("varchar(50)")
  3471. .HasCharSet("utf8")
  3472. .HasCollation("utf8_general_ci");
  3473. entity.Property(e => e.Mobiles)
  3474. .HasColumnType("mediumtext")
  3475. .HasCharSet("utf8")
  3476. .HasCollation("utf8_general_ci");
  3477. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3478. entity.Property(e => e.SeoDescription)
  3479. .HasColumnType("varchar(500)")
  3480. .HasCharSet("utf8")
  3481. .HasCollation("utf8_general_ci");
  3482. entity.Property(e => e.SeoKeyword)
  3483. .HasColumnType("varchar(200)")
  3484. .HasCharSet("utf8")
  3485. .HasCollation("utf8_general_ci");
  3486. entity.Property(e => e.SeoTitle)
  3487. .HasColumnType("varchar(100)")
  3488. .HasCharSet("utf8")
  3489. .HasCollation("utf8_general_ci");
  3490. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3491. entity.Property(e => e.Status).HasColumnType("int(11)");
  3492. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3493. entity.Property(e => e.Title)
  3494. .HasColumnType("varchar(50)")
  3495. .HasCharSet("utf8")
  3496. .HasCollation("utf8_general_ci");
  3497. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3498. entity.Property(e => e.UpdateMan)
  3499. .HasColumnType("varchar(50)")
  3500. .HasCharSet("utf8")
  3501. .HasCollation("utf8_general_ci");
  3502. entity.Property(e => e.Url)
  3503. .HasColumnType("varchar(500)")
  3504. .HasCharSet("utf8")
  3505. .HasCollation("utf8_general_ci");
  3506. entity.Property(e => e.Version).HasColumnType("int(11)");
  3507. });
  3508. modelBuilder.Entity<MsgSms>(entity =>
  3509. {
  3510. entity.Property(e => e.Id).HasColumnType("int(11)");
  3511. entity.Property(e => e.Code).HasColumnType("int(11)");
  3512. entity.Property(e => e.ColId)
  3513. .HasColumnType("varchar(30)")
  3514. .HasCharSet("utf8")
  3515. .HasCollation("utf8_general_ci");
  3516. entity.Property(e => e.Content)
  3517. .HasColumnType("varchar(200)")
  3518. .HasCharSet("utf8")
  3519. .HasCollation("utf8_general_ci");
  3520. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3521. entity.Property(e => e.CreateMan)
  3522. .HasColumnType("varchar(50)")
  3523. .HasCharSet("utf8")
  3524. .HasCollation("utf8_general_ci");
  3525. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  3526. entity.Property(e => e.Ip)
  3527. .HasColumnType("varchar(15)")
  3528. .HasCharSet("utf8")
  3529. .HasCollation("utf8_general_ci");
  3530. entity.Property(e => e.Kind)
  3531. .HasColumnType("varchar(64)")
  3532. .HasCharSet("utf8")
  3533. .HasCollation("utf8_general_ci");
  3534. entity.Property(e => e.Mobile)
  3535. .HasColumnType("varchar(11)")
  3536. .HasCharSet("utf8")
  3537. .HasCollation("utf8_general_ci");
  3538. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3539. entity.Property(e => e.RespCode)
  3540. .HasColumnType("varchar(16)")
  3541. .HasCharSet("utf8")
  3542. .HasCollation("utf8_general_ci");
  3543. entity.Property(e => e.RespContent)
  3544. .HasColumnType("varchar(500)")
  3545. .HasCharSet("utf8")
  3546. .HasCollation("utf8_general_ci");
  3547. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  3548. entity.Property(e => e.SendTime).HasColumnType("datetime");
  3549. entity.Property(e => e.SendType).HasColumnType("int(11)");
  3550. entity.Property(e => e.SeoDescription)
  3551. .HasColumnType("varchar(500)")
  3552. .HasCharSet("utf8")
  3553. .HasCollation("utf8_general_ci");
  3554. entity.Property(e => e.SeoKeyword)
  3555. .HasColumnType("varchar(200)")
  3556. .HasCharSet("utf8")
  3557. .HasCollation("utf8_general_ci");
  3558. entity.Property(e => e.SeoTitle)
  3559. .HasColumnType("varchar(100)")
  3560. .HasCharSet("utf8")
  3561. .HasCollation("utf8_general_ci");
  3562. entity.Property(e => e.SignName)
  3563. .HasColumnType("varchar(10)")
  3564. .HasCharSet("utf8")
  3565. .HasCollation("utf8_general_ci");
  3566. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3567. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3568. entity.Property(e => e.Status).HasColumnType("int(11)");
  3569. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3570. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3571. entity.Property(e => e.UpdateMan)
  3572. .HasColumnType("varchar(50)")
  3573. .HasCharSet("utf8")
  3574. .HasCollation("utf8_general_ci");
  3575. entity.Property(e => e.VerifyCode)
  3576. .HasColumnType("varchar(6)")
  3577. .HasCharSet("utf8")
  3578. .HasCollation("utf8_general_ci");
  3579. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  3580. entity.Property(e => e.Version).HasColumnType("int(11)");
  3581. });
  3582. modelBuilder.Entity<MsgSmsSet>(entity =>
  3583. {
  3584. entity.Property(e => e.Id).HasColumnType("int(11)");
  3585. entity.Property(e => e.AuthPwd)
  3586. .HasColumnType("varchar(50)")
  3587. .HasCharSet("utf8")
  3588. .HasCollation("utf8_general_ci");
  3589. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3590. entity.Property(e => e.CreateMan)
  3591. .HasColumnType("varchar(50)")
  3592. .HasCharSet("utf8")
  3593. .HasCollation("utf8_general_ci");
  3594. entity.Property(e => e.Name)
  3595. .HasColumnType("varchar(50)")
  3596. .HasCharSet("utf8")
  3597. .HasCollation("utf8_general_ci");
  3598. entity.Property(e => e.Params)
  3599. .HasColumnType("varchar(200)")
  3600. .HasCharSet("utf8")
  3601. .HasCollation("utf8_general_ci");
  3602. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3603. entity.Property(e => e.ReqUrl)
  3604. .HasColumnType("varchar(200)")
  3605. .HasCharSet("utf8")
  3606. .HasCollation("utf8_general_ci");
  3607. entity.Property(e => e.SeoDescription)
  3608. .HasColumnType("varchar(500)")
  3609. .HasCharSet("utf8")
  3610. .HasCollation("utf8_general_ci");
  3611. entity.Property(e => e.SeoKeyword)
  3612. .HasColumnType("varchar(200)")
  3613. .HasCharSet("utf8")
  3614. .HasCollation("utf8_general_ci");
  3615. entity.Property(e => e.SeoTitle)
  3616. .HasColumnType("varchar(100)")
  3617. .HasCharSet("utf8")
  3618. .HasCollation("utf8_general_ci");
  3619. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3620. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3621. entity.Property(e => e.Status).HasColumnType("int(11)");
  3622. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3623. entity.Property(e => e.UpdateMan)
  3624. .HasColumnType("varchar(50)")
  3625. .HasCharSet("utf8")
  3626. .HasCollation("utf8_general_ci");
  3627. entity.Property(e => e.UserName)
  3628. .HasColumnType("varchar(50)")
  3629. .HasCharSet("utf8")
  3630. .HasCollation("utf8_general_ci");
  3631. entity.Property(e => e.Version).HasColumnType("int(11)");
  3632. });
  3633. modelBuilder.Entity<MsgTemplate>(entity =>
  3634. {
  3635. entity.Property(e => e.Id).HasColumnType("int(11)");
  3636. entity.Property(e => e.ColId)
  3637. .HasColumnType("varchar(30)")
  3638. .HasCharSet("utf8")
  3639. .HasCollation("utf8_general_ci");
  3640. entity.Property(e => e.Content)
  3641. .HasColumnType("varchar(200)")
  3642. .HasCharSet("utf8")
  3643. .HasCollation("utf8_general_ci");
  3644. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3645. entity.Property(e => e.CreateMan)
  3646. .HasColumnType("varchar(50)")
  3647. .HasCharSet("utf8")
  3648. .HasCollation("utf8_general_ci");
  3649. entity.Property(e => e.Extend)
  3650. .HasColumnType("varchar(2000)")
  3651. .HasCharSet("utf8")
  3652. .HasCollation("utf8_general_ci");
  3653. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3654. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3655. entity.Property(e => e.Remark)
  3656. .HasColumnType("varchar(64)")
  3657. .HasCharSet("utf8")
  3658. .HasCollation("utf8_general_ci");
  3659. entity.Property(e => e.SeoDescription)
  3660. .HasColumnType("varchar(500)")
  3661. .HasCharSet("utf8")
  3662. .HasCollation("utf8_general_ci");
  3663. entity.Property(e => e.SeoKeyword)
  3664. .HasColumnType("varchar(200)")
  3665. .HasCharSet("utf8")
  3666. .HasCollation("utf8_general_ci");
  3667. entity.Property(e => e.SeoTitle)
  3668. .HasColumnType("varchar(100)")
  3669. .HasCharSet("utf8")
  3670. .HasCollation("utf8_general_ci");
  3671. entity.Property(e => e.SignName)
  3672. .HasColumnType("varchar(10)")
  3673. .HasCharSet("utf8")
  3674. .HasCollation("utf8_general_ci");
  3675. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3676. entity.Property(e => e.Status).HasColumnType("int(11)");
  3677. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  3678. entity.Property(e => e.Title)
  3679. .HasColumnType("varchar(50)")
  3680. .HasCharSet("utf8")
  3681. .HasCollation("utf8_general_ci");
  3682. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3683. entity.Property(e => e.UpdateMan)
  3684. .HasColumnType("varchar(50)")
  3685. .HasCharSet("utf8")
  3686. .HasCollation("utf8_general_ci");
  3687. entity.Property(e => e.Version).HasColumnType("int(11)");
  3688. });
  3689. modelBuilder.Entity<OpenBankCityTable>(entity =>
  3690. {
  3691. entity.HasKey(e => e.CityName)
  3692. .HasName("PRIMARY");
  3693. entity.Property(e => e.CityName)
  3694. .HasColumnType("varchar(100)")
  3695. .HasCharSet("utf8")
  3696. .HasCollation("utf8_general_ci");
  3697. entity.Property(e => e.Code)
  3698. .HasColumnType("varchar(20)")
  3699. .HasCharSet("utf8")
  3700. .HasCollation("utf8_general_ci");
  3701. });
  3702. modelBuilder.Entity<OpenBankTable>(entity =>
  3703. {
  3704. entity.HasKey(e => e.BankName)
  3705. .HasName("PRIMARY");
  3706. entity.Property(e => e.BankName)
  3707. .HasColumnType("varchar(200)")
  3708. .HasCharSet("utf8")
  3709. .HasCollation("utf8_general_ci");
  3710. entity.Property(e => e.BankCode)
  3711. .HasColumnType("varchar(50)")
  3712. .HasCharSet("utf8")
  3713. .HasCollation("utf8_general_ci");
  3714. });
  3715. modelBuilder.Entity<OpenReward>(entity =>
  3716. {
  3717. entity.Property(e => e.Id).HasColumnType("int(11)");
  3718. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3719. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3720. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3721. entity.Property(e => e.CreateMan)
  3722. .HasColumnType("varchar(50)")
  3723. .HasCharSet("utf8")
  3724. .HasCollation("utf8_general_ci");
  3725. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3726. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3727. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3728. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3729. entity.Property(e => e.OpenRewardNo)
  3730. .HasColumnType("varchar(32)")
  3731. .HasCharSet("utf8")
  3732. .HasCollation("utf8_general_ci");
  3733. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3734. entity.Property(e => e.Remark)
  3735. .HasColumnType("varchar(128)")
  3736. .HasCharSet("utf8")
  3737. .HasCollation("utf8_general_ci");
  3738. entity.Property(e => e.RewardDesc)
  3739. .HasColumnType("varchar(128)")
  3740. .HasCharSet("utf8")
  3741. .HasCollation("utf8_general_ci");
  3742. entity.Property(e => e.RewardMerCount).HasColumnType("int(11)");
  3743. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3744. entity.Property(e => e.SeoDescription)
  3745. .HasColumnType("varchar(500)")
  3746. .HasCharSet("utf8")
  3747. .HasCollation("utf8_general_ci");
  3748. entity.Property(e => e.SeoKeyword)
  3749. .HasColumnType("varchar(200)")
  3750. .HasCharSet("utf8")
  3751. .HasCollation("utf8_general_ci");
  3752. entity.Property(e => e.SeoTitle)
  3753. .HasColumnType("varchar(100)")
  3754. .HasCharSet("utf8")
  3755. .HasCollation("utf8_general_ci");
  3756. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3757. entity.Property(e => e.Status).HasColumnType("int(11)");
  3758. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3759. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3760. entity.Property(e => e.TradeMonth)
  3761. .HasColumnType("varchar(6)")
  3762. .HasCharSet("utf8")
  3763. .HasCollation("utf8_general_ci");
  3764. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3765. entity.Property(e => e.UpdateMan)
  3766. .HasColumnType("varchar(50)")
  3767. .HasCharSet("utf8")
  3768. .HasCollation("utf8_general_ci");
  3769. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3770. entity.Property(e => e.Version).HasColumnType("int(11)");
  3771. });
  3772. modelBuilder.Entity<OpenRewardDetail>(entity =>
  3773. {
  3774. entity.Property(e => e.Id).HasColumnType("int(11)");
  3775. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3776. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3777. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3778. entity.Property(e => e.CreateMan)
  3779. .HasColumnType("varchar(50)")
  3780. .HasCharSet("utf8")
  3781. .HasCollation("utf8_general_ci");
  3782. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3783. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3784. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3785. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3786. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3787. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  3788. entity.Property(e => e.MerNo)
  3789. .HasColumnType("varchar(32)")
  3790. .HasCharSet("utf8")
  3791. .HasCollation("utf8_general_ci");
  3792. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3793. entity.Property(e => e.OpenDetailRec)
  3794. .HasColumnType("varchar(32)")
  3795. .HasCharSet("utf8")
  3796. .HasCollation("utf8_general_ci");
  3797. entity.Property(e => e.OpenRewardNo)
  3798. .HasColumnType("varchar(32)")
  3799. .HasCharSet("utf8")
  3800. .HasCollation("utf8_general_ci");
  3801. entity.Property(e => e.ProductName)
  3802. .HasColumnType("varchar(32)")
  3803. .HasCharSet("utf8")
  3804. .HasCollation("utf8_general_ci");
  3805. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3806. entity.Property(e => e.Remark)
  3807. .HasColumnType("varchar(128)")
  3808. .HasCharSet("utf8")
  3809. .HasCollation("utf8_general_ci");
  3810. entity.Property(e => e.RewardDesc)
  3811. .HasColumnType("varchar(128)")
  3812. .HasCharSet("utf8")
  3813. .HasCollation("utf8_general_ci");
  3814. entity.Property(e => e.RewardTips)
  3815. .HasColumnType("varchar(16)")
  3816. .HasCharSet("utf8")
  3817. .HasCollation("utf8_general_ci");
  3818. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3819. entity.Property(e => e.SeoDescription)
  3820. .HasColumnType("varchar(500)")
  3821. .HasCharSet("utf8")
  3822. .HasCollation("utf8_general_ci");
  3823. entity.Property(e => e.SeoKeyword)
  3824. .HasColumnType("varchar(200)")
  3825. .HasCharSet("utf8")
  3826. .HasCollation("utf8_general_ci");
  3827. entity.Property(e => e.SeoTitle)
  3828. .HasColumnType("varchar(100)")
  3829. .HasCharSet("utf8")
  3830. .HasCollation("utf8_general_ci");
  3831. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3832. entity.Property(e => e.SnNo)
  3833. .HasColumnType("varchar(32)")
  3834. .HasCharSet("utf8")
  3835. .HasCollation("utf8_general_ci");
  3836. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3837. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3838. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3839. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3840. entity.Property(e => e.Status).HasColumnType("int(11)");
  3841. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3842. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3843. entity.Property(e => e.TradeMonth)
  3844. .HasColumnType("varchar(6)")
  3845. .HasCharSet("utf8")
  3846. .HasCollation("utf8_general_ci");
  3847. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3848. entity.Property(e => e.UpdateMan)
  3849. .HasColumnType("varchar(50)")
  3850. .HasCharSet("utf8")
  3851. .HasCollation("utf8_general_ci");
  3852. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3853. entity.Property(e => e.Version).HasColumnType("int(11)");
  3854. });
  3855. modelBuilder.Entity<OpenSnSnapshot>(entity =>
  3856. {
  3857. entity.Property(e => e.Id).HasColumnType("int(11)");
  3858. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3859. entity.Property(e => e.BuySnNum).HasColumnType("int(11)");
  3860. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3861. entity.Property(e => e.CreateMan)
  3862. .HasColumnType("varchar(50)")
  3863. .HasCharSet("utf8")
  3864. .HasCollation("utf8_general_ci");
  3865. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3866. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3867. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3868. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3869. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3870. entity.Property(e => e.FailReason)
  3871. .HasColumnType("varchar(128)")
  3872. .HasCharSet("utf8")
  3873. .HasCollation("utf8_general_ci");
  3874. entity.Property(e => e.MerNo)
  3875. .HasColumnType("varchar(32)")
  3876. .HasCharSet("utf8")
  3877. .HasCollation("utf8_general_ci");
  3878. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  3879. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3880. entity.Property(e => e.OpenDetailRec)
  3881. .HasColumnType("varchar(32)")
  3882. .HasCharSet("utf8")
  3883. .HasCollation("utf8_general_ci");
  3884. entity.Property(e => e.OpenRewardNo)
  3885. .HasColumnType("varchar(32)")
  3886. .HasCharSet("utf8")
  3887. .HasCollation("utf8_general_ci");
  3888. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3889. entity.Property(e => e.Remark)
  3890. .HasColumnType("varchar(128)")
  3891. .HasCharSet("utf8")
  3892. .HasCollation("utf8_general_ci");
  3893. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  3894. entity.Property(e => e.RewardDesc)
  3895. .HasColumnType("varchar(128)")
  3896. .HasCharSet("utf8")
  3897. .HasCollation("utf8_general_ci");
  3898. entity.Property(e => e.RewardTips)
  3899. .HasColumnType("varchar(16)")
  3900. .HasCharSet("utf8")
  3901. .HasCollation("utf8_general_ci");
  3902. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3903. entity.Property(e => e.SeoDescription)
  3904. .HasColumnType("varchar(500)")
  3905. .HasCharSet("utf8")
  3906. .HasCollation("utf8_general_ci");
  3907. entity.Property(e => e.SeoKeyword)
  3908. .HasColumnType("varchar(200)")
  3909. .HasCharSet("utf8")
  3910. .HasCollation("utf8_general_ci");
  3911. entity.Property(e => e.SeoTitle)
  3912. .HasColumnType("varchar(100)")
  3913. .HasCharSet("utf8")
  3914. .HasCollation("utf8_general_ci");
  3915. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3916. entity.Property(e => e.SnNo)
  3917. .HasColumnType("varchar(32)")
  3918. .HasCharSet("utf8")
  3919. .HasCollation("utf8_general_ci");
  3920. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3921. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3922. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3923. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3924. entity.Property(e => e.Status).HasColumnType("int(11)");
  3925. entity.Property(e => e.StdBuySnNum).HasColumnType("int(11)");
  3926. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3927. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3928. entity.Property(e => e.TradeMonth)
  3929. .HasColumnType("varchar(6)")
  3930. .HasCharSet("utf8")
  3931. .HasCollation("utf8_general_ci");
  3932. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3933. entity.Property(e => e.UpdateMan)
  3934. .HasColumnType("varchar(50)")
  3935. .HasCharSet("utf8")
  3936. .HasCollation("utf8_general_ci");
  3937. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3938. entity.Property(e => e.UserNav)
  3939. .HasColumnType("varchar(300)")
  3940. .HasCharSet("utf8")
  3941. .HasCollation("utf8_general_ci");
  3942. entity.Property(e => e.Version).HasColumnType("int(11)");
  3943. });
  3944. modelBuilder.Entity<OperateLog>(entity =>
  3945. {
  3946. entity.Property(e => e.Id).HasColumnType("int(11)");
  3947. entity.Property(e => e.AfterOperate)
  3948. .HasColumnType("mediumtext")
  3949. .HasCharSet("utf8")
  3950. .HasCollation("utf8_general_ci");
  3951. entity.Property(e => e.BeforeOperate)
  3952. .HasColumnType("mediumtext")
  3953. .HasCharSet("utf8")
  3954. .HasCollation("utf8_general_ci");
  3955. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3956. entity.Property(e => e.CreateMan)
  3957. .HasColumnType("varchar(50)")
  3958. .HasCharSet("utf8")
  3959. .HasCollation("utf8_general_ci");
  3960. entity.Property(e => e.OpMode)
  3961. .HasColumnType("varchar(30)")
  3962. .HasCharSet("utf8")
  3963. .HasCollation("utf8_general_ci");
  3964. entity.Property(e => e.OperateMan)
  3965. .HasColumnType("varchar(50)")
  3966. .HasCharSet("utf8")
  3967. .HasCollation("utf8_general_ci");
  3968. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3969. entity.Property(e => e.SeoDescription)
  3970. .HasColumnType("varchar(500)")
  3971. .HasCharSet("utf8")
  3972. .HasCollation("utf8_general_ci");
  3973. entity.Property(e => e.SeoKeyword)
  3974. .HasColumnType("varchar(200)")
  3975. .HasCharSet("utf8")
  3976. .HasCollation("utf8_general_ci");
  3977. entity.Property(e => e.SeoTitle)
  3978. .HasColumnType("varchar(100)")
  3979. .HasCharSet("utf8")
  3980. .HasCollation("utf8_general_ci");
  3981. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3982. entity.Property(e => e.Status).HasColumnType("int(11)");
  3983. entity.Property(e => e.TableEnName)
  3984. .HasColumnType("varchar(50)")
  3985. .HasCharSet("utf8")
  3986. .HasCollation("utf8_general_ci");
  3987. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3988. entity.Property(e => e.UpdateMan)
  3989. .HasColumnType("varchar(50)")
  3990. .HasCharSet("utf8")
  3991. .HasCollation("utf8_general_ci");
  3992. entity.Property(e => e.Version).HasColumnType("int(11)");
  3993. });
  3994. modelBuilder.Entity<OperateRightList>(entity =>
  3995. {
  3996. entity.Property(e => e.Id).HasColumnType("int(11)");
  3997. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3998. entity.Property(e => e.CreateMan)
  3999. .HasColumnType("varchar(50)")
  4000. .HasCharSet("utf8")
  4001. .HasCollation("utf8_general_ci");
  4002. entity.Property(e => e.EnName)
  4003. .HasColumnType("varchar(50)")
  4004. .HasCharSet("utf8")
  4005. .HasCollation("utf8_general_ci");
  4006. entity.Property(e => e.Name)
  4007. .HasColumnType("varchar(50)")
  4008. .HasCharSet("utf8")
  4009. .HasCollation("utf8_general_ci");
  4010. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4011. entity.Property(e => e.SeoDescription)
  4012. .HasColumnType("varchar(500)")
  4013. .HasCharSet("utf8")
  4014. .HasCollation("utf8_general_ci");
  4015. entity.Property(e => e.SeoKeyword)
  4016. .HasColumnType("varchar(200)")
  4017. .HasCharSet("utf8")
  4018. .HasCollation("utf8_general_ci");
  4019. entity.Property(e => e.SeoTitle)
  4020. .HasColumnType("varchar(100)")
  4021. .HasCharSet("utf8")
  4022. .HasCollation("utf8_general_ci");
  4023. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4024. entity.Property(e => e.Status).HasColumnType("int(11)");
  4025. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4026. entity.Property(e => e.UpdateMan)
  4027. .HasColumnType("varchar(50)")
  4028. .HasCharSet("utf8")
  4029. .HasCollation("utf8_general_ci");
  4030. entity.Property(e => e.Version).HasColumnType("int(11)");
  4031. });
  4032. modelBuilder.Entity<OrderForNo>(entity =>
  4033. {
  4034. entity.HasKey(e => e.OrderNo)
  4035. .HasName("PRIMARY");
  4036. entity.Property(e => e.OrderNo)
  4037. .HasColumnType("varchar(50)")
  4038. .HasCharSet("utf8")
  4039. .HasCollation("utf8_general_ci");
  4040. entity.Property(e => e.OrderIds)
  4041. .HasColumnType("varchar(50)")
  4042. .HasCharSet("utf8")
  4043. .HasCollation("utf8_general_ci");
  4044. entity.Property(e => e.RspCode).HasColumnType("int(11)");
  4045. entity.Property(e => e.RspMsg)
  4046. .HasColumnType("varchar(500)")
  4047. .HasCharSet("utf8")
  4048. .HasCollation("utf8_general_ci");
  4049. });
  4050. modelBuilder.Entity<OrderProduct>(entity =>
  4051. {
  4052. entity.Property(e => e.Id).HasColumnType("int(11)");
  4053. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4054. entity.Property(e => e.CreateMan)
  4055. .HasColumnType("varchar(50)")
  4056. .HasCharSet("utf8")
  4057. .HasCollation("utf8_general_ci");
  4058. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4059. entity.Property(e => e.NormDetail)
  4060. .HasColumnType("varchar(200)")
  4061. .HasCharSet("utf8")
  4062. .HasCollation("utf8_general_ci");
  4063. entity.Property(e => e.NormId)
  4064. .HasColumnType("varchar(50)")
  4065. .HasCharSet("utf8")
  4066. .HasCollation("utf8_general_ci");
  4067. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4068. entity.Property(e => e.ProductCode)
  4069. .HasColumnType("varchar(30)")
  4070. .HasCharSet("utf8")
  4071. .HasCollation("utf8_general_ci");
  4072. entity.Property(e => e.ProductCount).HasColumnType("int(11)");
  4073. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4074. entity.Property(e => e.ProductIntegral).HasColumnType("decimal(18,2)");
  4075. entity.Property(e => e.ProductName)
  4076. .HasColumnType("varchar(100)")
  4077. .HasCharSet("utf8")
  4078. .HasCollation("utf8_general_ci");
  4079. entity.Property(e => e.ProductPhoto)
  4080. .HasColumnType("varchar(200)")
  4081. .HasCharSet("utf8")
  4082. .HasCollation("utf8_general_ci");
  4083. entity.Property(e => e.ProductPrice).HasColumnType("decimal(18,2)");
  4084. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4085. entity.Property(e => e.SeoDescription)
  4086. .HasColumnType("varchar(500)")
  4087. .HasCharSet("utf8")
  4088. .HasCollation("utf8_general_ci");
  4089. entity.Property(e => e.SeoKeyword)
  4090. .HasColumnType("varchar(200)")
  4091. .HasCharSet("utf8")
  4092. .HasCollation("utf8_general_ci");
  4093. entity.Property(e => e.SeoTitle)
  4094. .HasColumnType("varchar(100)")
  4095. .HasCharSet("utf8")
  4096. .HasCollation("utf8_general_ci");
  4097. entity.Property(e => e.SnNos)
  4098. .HasColumnType("mediumtext")
  4099. .HasCharSet("utf8")
  4100. .HasCollation("utf8_general_ci");
  4101. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4102. entity.Property(e => e.Status).HasColumnType("int(11)");
  4103. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4104. entity.Property(e => e.TotalIntegral).HasColumnType("decimal(18,2)");
  4105. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4106. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4107. entity.Property(e => e.UpdateMan)
  4108. .HasColumnType("varchar(50)")
  4109. .HasCharSet("utf8")
  4110. .HasCollation("utf8_general_ci");
  4111. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4112. entity.Property(e => e.Version).HasColumnType("int(11)");
  4113. });
  4114. modelBuilder.Entity<OrderRefund>(entity =>
  4115. {
  4116. entity.Property(e => e.Id).HasColumnType("int(11)");
  4117. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  4118. entity.Property(e => e.Contents)
  4119. .HasColumnType("longtext")
  4120. .HasCharSet("utf8")
  4121. .HasCollation("utf8_general_ci");
  4122. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4123. entity.Property(e => e.CreateMan)
  4124. .HasColumnType("varchar(50)")
  4125. .HasCharSet("utf8")
  4126. .HasCollation("utf8_general_ci");
  4127. entity.Property(e => e.ErpCode)
  4128. .HasColumnType("varchar(50)")
  4129. .HasCharSet("utf8")
  4130. .HasCollation("utf8_general_ci");
  4131. entity.Property(e => e.ErpCompany).HasColumnType("int(11)");
  4132. entity.Property(e => e.GoodStatus).HasColumnType("int(11)");
  4133. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4134. entity.Property(e => e.Mobile)
  4135. .HasColumnType("varchar(11)")
  4136. .HasCharSet("utf8")
  4137. .HasCollation("utf8_general_ci");
  4138. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4139. entity.Property(e => e.Photos)
  4140. .HasColumnType("varchar(500)")
  4141. .HasCharSet("utf8")
  4142. .HasCollation("utf8_general_ci");
  4143. entity.Property(e => e.ProductId)
  4144. .HasColumnType("varchar(50)")
  4145. .HasCharSet("utf8")
  4146. .HasCollation("utf8_general_ci");
  4147. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4148. entity.Property(e => e.Reason).HasColumnType("int(11)");
  4149. entity.Property(e => e.SeoDescription)
  4150. .HasColumnType("varchar(500)")
  4151. .HasCharSet("utf8")
  4152. .HasCollation("utf8_general_ci");
  4153. entity.Property(e => e.SeoKeyword)
  4154. .HasColumnType("varchar(200)")
  4155. .HasCharSet("utf8")
  4156. .HasCollation("utf8_general_ci");
  4157. entity.Property(e => e.SeoTitle)
  4158. .HasColumnType("varchar(100)")
  4159. .HasCharSet("utf8")
  4160. .HasCollation("utf8_general_ci");
  4161. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4162. entity.Property(e => e.Status).HasColumnType("int(11)");
  4163. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4164. entity.Property(e => e.UpdateMan)
  4165. .HasColumnType("varchar(50)")
  4166. .HasCharSet("utf8")
  4167. .HasCollation("utf8_general_ci");
  4168. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4169. entity.Property(e => e.Version).HasColumnType("int(11)");
  4170. });
  4171. modelBuilder.Entity<OrderRefundReason>(entity =>
  4172. {
  4173. entity.Property(e => e.Id).HasColumnType("int(11)");
  4174. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4175. entity.Property(e => e.CreateMan)
  4176. .HasColumnType("varchar(50)")
  4177. .HasCharSet("utf8")
  4178. .HasCollation("utf8_general_ci");
  4179. entity.Property(e => e.Name)
  4180. .HasColumnType("varchar(50)")
  4181. .HasCharSet("utf8")
  4182. .HasCollation("utf8_general_ci");
  4183. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4184. entity.Property(e => e.SeoDescription)
  4185. .HasColumnType("varchar(500)")
  4186. .HasCharSet("utf8")
  4187. .HasCollation("utf8_general_ci");
  4188. entity.Property(e => e.SeoKeyword)
  4189. .HasColumnType("varchar(200)")
  4190. .HasCharSet("utf8")
  4191. .HasCollation("utf8_general_ci");
  4192. entity.Property(e => e.SeoTitle)
  4193. .HasColumnType("varchar(100)")
  4194. .HasCharSet("utf8")
  4195. .HasCollation("utf8_general_ci");
  4196. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4197. entity.Property(e => e.Status).HasColumnType("int(11)");
  4198. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4199. entity.Property(e => e.UpdateMan)
  4200. .HasColumnType("varchar(50)")
  4201. .HasCharSet("utf8")
  4202. .HasCollation("utf8_general_ci");
  4203. entity.Property(e => e.Version).HasColumnType("int(11)");
  4204. });
  4205. modelBuilder.Entity<Orders>(entity =>
  4206. {
  4207. entity.Property(e => e.Id).HasColumnType("int(11)");
  4208. entity.Property(e => e.ActualPay).HasColumnType("decimal(18,2)");
  4209. entity.Property(e => e.Address)
  4210. .HasColumnType("varchar(50)")
  4211. .HasCharSet("utf8")
  4212. .HasCollation("utf8_general_ci");
  4213. entity.Property(e => e.Areas)
  4214. .HasColumnType("varchar(30)")
  4215. .HasCharSet("utf8")
  4216. .HasCollation("utf8_general_ci");
  4217. entity.Property(e => e.AutoConfirmDate).HasColumnType("datetime");
  4218. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4219. entity.Property(e => e.ChannelAmount).HasColumnType("decimal(18,2)");
  4220. entity.Property(e => e.ConfirmDate).HasColumnType("datetime");
  4221. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  4222. entity.Property(e => e.CouponMoney).HasColumnType("decimal(18,2)");
  4223. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4224. entity.Property(e => e.CreateMan)
  4225. .HasColumnType("varchar(50)")
  4226. .HasCharSet("utf8")
  4227. .HasCollation("utf8_general_ci");
  4228. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  4229. entity.Property(e => e.ErpCode)
  4230. .HasColumnType("varchar(50)")
  4231. .HasCharSet("utf8")
  4232. .HasCollation("utf8_general_ci");
  4233. entity.Property(e => e.ErpMode).HasColumnType("int(11)");
  4234. entity.Property(e => e.ErpName)
  4235. .HasColumnType("varchar(50)")
  4236. .HasCharSet("utf8")
  4237. .HasCollation("utf8_general_ci");
  4238. entity.Property(e => e.ErpPrice).HasColumnType("decimal(18,2)");
  4239. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4240. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4241. entity.Property(e => e.Mobile)
  4242. .HasColumnType("varchar(11)")
  4243. .HasCharSet("utf8")
  4244. .HasCollation("utf8_general_ci");
  4245. entity.Property(e => e.OrderNo)
  4246. .HasColumnType("varchar(30)")
  4247. .HasCharSet("utf8")
  4248. .HasCollation("utf8_general_ci");
  4249. entity.Property(e => e.PayDate).HasColumnType("datetime");
  4250. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  4251. entity.Property(e => e.PayStatus).HasColumnType("int(11)");
  4252. entity.Property(e => e.PostalCode)
  4253. .HasColumnType("varchar(6)")
  4254. .HasCharSet("utf8")
  4255. .HasCollation("utf8_general_ci");
  4256. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4257. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4258. entity.Property(e => e.RealName)
  4259. .HasColumnType("varchar(10)")
  4260. .HasCharSet("utf8")
  4261. .HasCollation("utf8_general_ci");
  4262. entity.Property(e => e.RefundActAmount).HasColumnType("decimal(18,2)");
  4263. entity.Property(e => e.RefundFeeAmount).HasColumnType("decimal(18,2)");
  4264. entity.Property(e => e.RefundReason)
  4265. .HasColumnType("varchar(64)")
  4266. .HasCharSet("utf8")
  4267. .HasCollation("utf8_general_ci");
  4268. entity.Property(e => e.RefundStatus).HasColumnType("int(11)");
  4269. entity.Property(e => e.Remark)
  4270. .HasColumnType("varchar(64)")
  4271. .HasCharSet("utf8")
  4272. .HasCollation("utf8_general_ci");
  4273. entity.Property(e => e.ReqData)
  4274. .HasColumnType("varchar(2048)")
  4275. .HasCharSet("utf8")
  4276. .HasCollation("utf8_general_ci");
  4277. entity.Property(e => e.ResData)
  4278. .HasColumnType("varchar(2048)")
  4279. .HasCharSet("utf8")
  4280. .HasCollation("utf8_general_ci");
  4281. entity.Property(e => e.ReturnCode)
  4282. .HasColumnType("varchar(32)")
  4283. .HasCharSet("utf8")
  4284. .HasCollation("utf8_general_ci");
  4285. entity.Property(e => e.ReturnMsg)
  4286. .HasColumnType("varchar(128)")
  4287. .HasCharSet("utf8")
  4288. .HasCollation("utf8_general_ci");
  4289. entity.Property(e => e.SendDate).HasColumnType("datetime");
  4290. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  4291. entity.Property(e => e.SeoDescription)
  4292. .HasColumnType("varchar(500)")
  4293. .HasCharSet("utf8")
  4294. .HasCollation("utf8_general_ci");
  4295. entity.Property(e => e.SeoKeyword)
  4296. .HasColumnType("varchar(200)")
  4297. .HasCharSet("utf8")
  4298. .HasCollation("utf8_general_ci");
  4299. entity.Property(e => e.SeoTitle)
  4300. .HasColumnType("varchar(100)")
  4301. .HasCharSet("utf8")
  4302. .HasCollation("utf8_general_ci");
  4303. entity.Property(e => e.SnNos)
  4304. .HasColumnType("mediumtext")
  4305. .HasCharSet("utf8")
  4306. .HasCollation("utf8_general_ci");
  4307. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4308. entity.Property(e => e.Status).HasColumnType("int(11)");
  4309. entity.Property(e => e.StoreContact)
  4310. .HasColumnType("varchar(30)")
  4311. .HasCharSet("utf8")
  4312. .HasCollation("utf8_general_ci");
  4313. entity.Property(e => e.StoreContactMobile)
  4314. .HasColumnType("varchar(11)")
  4315. .HasCharSet("utf8")
  4316. .HasCollation("utf8_general_ci");
  4317. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4318. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  4319. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  4320. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4321. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4322. entity.Property(e => e.TradeNo)
  4323. .HasColumnType("varchar(50)")
  4324. .HasCharSet("utf8")
  4325. .HasCollation("utf8_general_ci");
  4326. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4327. entity.Property(e => e.UpdateMan)
  4328. .HasColumnType("varchar(50)")
  4329. .HasCharSet("utf8")
  4330. .HasCollation("utf8_general_ci");
  4331. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4332. entity.Property(e => e.UserMessage)
  4333. .HasColumnType("varchar(50)")
  4334. .HasCharSet("utf8")
  4335. .HasCollation("utf8_general_ci");
  4336. entity.Property(e => e.Version).HasColumnType("int(11)");
  4337. });
  4338. modelBuilder.Entity<PageInfo>(entity =>
  4339. {
  4340. entity.Property(e => e.Id).HasColumnType("int(11)");
  4341. entity.Property(e => e.ColId)
  4342. .HasColumnType("varchar(30)")
  4343. .HasCharSet("utf8")
  4344. .HasCollation("utf8_general_ci");
  4345. entity.Property(e => e.Contents)
  4346. .HasColumnType("longtext")
  4347. .HasCharSet("utf8")
  4348. .HasCollation("utf8_general_ci");
  4349. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4350. entity.Property(e => e.CreateMan)
  4351. .HasColumnType("varchar(50)")
  4352. .HasCharSet("utf8")
  4353. .HasCollation("utf8_general_ci");
  4354. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4355. entity.Property(e => e.SeoDescription)
  4356. .HasColumnType("varchar(500)")
  4357. .HasCharSet("utf8")
  4358. .HasCollation("utf8_general_ci");
  4359. entity.Property(e => e.SeoKeyword)
  4360. .HasColumnType("varchar(200)")
  4361. .HasCharSet("utf8")
  4362. .HasCollation("utf8_general_ci");
  4363. entity.Property(e => e.SeoTitle)
  4364. .HasColumnType("varchar(100)")
  4365. .HasCharSet("utf8")
  4366. .HasCollation("utf8_general_ci");
  4367. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4368. entity.Property(e => e.Status).HasColumnType("int(11)");
  4369. entity.Property(e => e.Title)
  4370. .HasColumnType("varchar(200)")
  4371. .HasCharSet("utf8")
  4372. .HasCollation("utf8_general_ci");
  4373. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4374. entity.Property(e => e.UpdateMan)
  4375. .HasColumnType("varchar(50)")
  4376. .HasCharSet("utf8")
  4377. .HasCollation("utf8_general_ci");
  4378. entity.Property(e => e.Version).HasColumnType("int(11)");
  4379. });
  4380. modelBuilder.Entity<PageUpdateInfo>(entity =>
  4381. {
  4382. entity.Property(e => e.Id).HasColumnType("int(11)");
  4383. entity.Property(e => e.BgColor)
  4384. .HasColumnType("varchar(6)")
  4385. .HasCharSet("utf8")
  4386. .HasCollation("utf8_general_ci");
  4387. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4388. entity.Property(e => e.CreateMan)
  4389. .HasColumnType("varchar(50)")
  4390. .HasCharSet("utf8")
  4391. .HasCollation("utf8_general_ci");
  4392. entity.Property(e => e.GotoPages)
  4393. .HasColumnType("varchar(500)")
  4394. .HasCharSet("utf8")
  4395. .HasCollation("utf8_general_ci");
  4396. entity.Property(e => e.IsScrollBar)
  4397. .HasColumnType("bit(1)")
  4398. .HasDefaultValueSql("b'0'");
  4399. entity.Property(e => e.IsSkid)
  4400. .HasColumnType("bit(1)")
  4401. .HasDefaultValueSql("b'0'");
  4402. entity.Property(e => e.LeftAction1)
  4403. .HasColumnType("longtext")
  4404. .HasCharSet("utf8")
  4405. .HasCollation("utf8_general_ci");
  4406. entity.Property(e => e.LeftAction2)
  4407. .HasColumnType("longtext")
  4408. .HasCharSet("utf8")
  4409. .HasCollation("utf8_general_ci");
  4410. entity.Property(e => e.LeftBtn1)
  4411. .HasColumnType("varchar(100)")
  4412. .HasCharSet("utf8")
  4413. .HasCollation("utf8_general_ci");
  4414. entity.Property(e => e.LeftBtn2)
  4415. .HasColumnType("varchar(50)")
  4416. .HasCharSet("utf8")
  4417. .HasCollation("utf8_general_ci");
  4418. entity.Property(e => e.ModulePath)
  4419. .HasColumnType("varchar(200)")
  4420. .HasCharSet("utf8")
  4421. .HasCollation("utf8_general_ci");
  4422. entity.Property(e => e.ModuleVersion).HasColumnType("int(11)");
  4423. entity.Property(e => e.MustUpdate)
  4424. .HasColumnType("bit(1)")
  4425. .HasDefaultValueSql("b'0'");
  4426. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4427. entity.Property(e => e.RightAction1)
  4428. .HasColumnType("longtext")
  4429. .HasCharSet("utf8")
  4430. .HasCollation("utf8_general_ci");
  4431. entity.Property(e => e.RightAction2)
  4432. .HasColumnType("longtext")
  4433. .HasCharSet("utf8")
  4434. .HasCollation("utf8_general_ci");
  4435. entity.Property(e => e.RightBtn1)
  4436. .HasColumnType("varchar(50)")
  4437. .HasCharSet("utf8")
  4438. .HasCollation("utf8_general_ci");
  4439. entity.Property(e => e.RightBtn2)
  4440. .HasColumnType("varchar(50)")
  4441. .HasCharSet("utf8")
  4442. .HasCollation("utf8_general_ci");
  4443. entity.Property(e => e.SeoDescription)
  4444. .HasColumnType("varchar(500)")
  4445. .HasCharSet("utf8")
  4446. .HasCollation("utf8_general_ci");
  4447. entity.Property(e => e.SeoKeyword)
  4448. .HasColumnType("varchar(200)")
  4449. .HasCharSet("utf8")
  4450. .HasCollation("utf8_general_ci");
  4451. entity.Property(e => e.SeoTitle)
  4452. .HasColumnType("varchar(100)")
  4453. .HasCharSet("utf8")
  4454. .HasCollation("utf8_general_ci");
  4455. entity.Property(e => e.ShowTitle)
  4456. .HasColumnType("bit(1)")
  4457. .HasDefaultValueSql("b'0'");
  4458. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4459. entity.Property(e => e.Status).HasColumnType("int(11)");
  4460. entity.Property(e => e.StatusBarStyle)
  4461. .HasColumnType("varchar(10)")
  4462. .HasCharSet("utf8")
  4463. .HasCollation("utf8_general_ci");
  4464. entity.Property(e => e.TextColor)
  4465. .HasColumnType("varchar(6)")
  4466. .HasCharSet("utf8")
  4467. .HasCollation("utf8_general_ci");
  4468. entity.Property(e => e.Title)
  4469. .HasColumnType("varchar(50)")
  4470. .HasCharSet("utf8")
  4471. .HasCollation("utf8_general_ci");
  4472. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4473. entity.Property(e => e.UpdateMan)
  4474. .HasColumnType("varchar(50)")
  4475. .HasCharSet("utf8")
  4476. .HasCollation("utf8_general_ci");
  4477. entity.Property(e => e.Version).HasColumnType("int(11)");
  4478. });
  4479. modelBuilder.Entity<PosMachines>(entity =>
  4480. {
  4481. entity.Property(e => e.Id).HasColumnType("int(11)");
  4482. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4483. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4484. entity.Property(e => e.ActivityList)
  4485. .HasColumnType("varchar(200)")
  4486. .HasCharSet("utf8")
  4487. .HasCollation("utf8_general_ci");
  4488. entity.Property(e => e.BatchNo)
  4489. .HasColumnType("varchar(32)")
  4490. .HasCharSet("utf8")
  4491. .HasCollation("utf8_general_ci");
  4492. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4493. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4494. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4495. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4496. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4497. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4498. entity.Property(e => e.CreateMan)
  4499. .HasColumnType("varchar(50)")
  4500. .HasCharSet("utf8")
  4501. .HasCollation("utf8_general_ci");
  4502. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4503. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4504. entity.Property(e => e.Detail)
  4505. .HasColumnType("longtext")
  4506. .HasCharSet("utf8")
  4507. .HasCollation("utf8_general_ci");
  4508. entity.Property(e => e.DeviceKind)
  4509. .HasColumnType("varchar(32)")
  4510. .HasCharSet("utf8")
  4511. .HasCollation("utf8_general_ci");
  4512. entity.Property(e => e.DeviceName)
  4513. .HasColumnType("varchar(32)")
  4514. .HasCharSet("utf8")
  4515. .HasCollation("utf8_general_ci");
  4516. entity.Property(e => e.DeviceType)
  4517. .HasColumnType("varchar(20)")
  4518. .HasCharSet("utf8")
  4519. .HasCollation("utf8_general_ci");
  4520. entity.Property(e => e.IsPurchase)
  4521. .HasColumnType("bit(1)")
  4522. .HasDefaultValueSql("b'0'");
  4523. entity.Property(e => e.IsVip)
  4524. .HasColumnType("bit(1)")
  4525. .HasDefaultValueSql("b'0'");
  4526. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4527. entity.Property(e => e.PosSn)
  4528. .HasColumnType("varchar(50)")
  4529. .HasCharSet("utf8")
  4530. .HasCollation("utf8_general_ci");
  4531. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4532. entity.Property(e => e.PrizeParams)
  4533. .HasColumnType("varchar(200)")
  4534. .HasCharSet("utf8")
  4535. .HasCollation("utf8_general_ci");
  4536. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4537. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4538. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4539. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4540. entity.Property(e => e.SeoDescription)
  4541. .HasColumnType("varchar(500)")
  4542. .HasCharSet("utf8")
  4543. .HasCollation("utf8_general_ci");
  4544. entity.Property(e => e.SeoKeyword)
  4545. .HasColumnType("varchar(200)")
  4546. .HasCharSet("utf8")
  4547. .HasCollation("utf8_general_ci");
  4548. entity.Property(e => e.SeoTitle)
  4549. .HasColumnType("varchar(100)")
  4550. .HasCharSet("utf8")
  4551. .HasCollation("utf8_general_ci");
  4552. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4553. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4554. entity.Property(e => e.Status).HasColumnType("int(11)");
  4555. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4556. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4557. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4558. entity.Property(e => e.UpdateMan)
  4559. .HasColumnType("varchar(50)")
  4560. .HasCharSet("utf8")
  4561. .HasCollation("utf8_general_ci");
  4562. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4563. entity.Property(e => e.UserNav)
  4564. .HasColumnType("longtext")
  4565. .HasCharSet("utf8")
  4566. .HasCollation("utf8_general_ci");
  4567. entity.Property(e => e.Version).HasColumnType("int(11)");
  4568. });
  4569. modelBuilder.Entity<ProductComment>(entity =>
  4570. {
  4571. entity.Property(e => e.Id).HasColumnType("int(11)");
  4572. entity.Property(e => e.AgreeCount).HasColumnType("int(11)");
  4573. entity.Property(e => e.BackCount).HasColumnType("int(11)");
  4574. entity.Property(e => e.Contents)
  4575. .HasColumnType("varchar(200)")
  4576. .HasCharSet("utf8")
  4577. .HasCollation("utf8_general_ci");
  4578. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4579. entity.Property(e => e.CreateMan)
  4580. .HasColumnType("varchar(50)")
  4581. .HasCharSet("utf8")
  4582. .HasCollation("utf8_general_ci");
  4583. entity.Property(e => e.HasPhoto)
  4584. .HasColumnType("bit(1)")
  4585. .HasDefaultValueSql("b'0'");
  4586. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4587. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4588. entity.Property(e => e.PhotoList)
  4589. .HasColumnType("mediumtext")
  4590. .HasCharSet("utf8")
  4591. .HasCollation("utf8_general_ci");
  4592. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4593. entity.Property(e => e.ProductNormId).HasColumnType("int(11)");
  4594. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4595. entity.Property(e => e.SeoDescription)
  4596. .HasColumnType("varchar(500)")
  4597. .HasCharSet("utf8")
  4598. .HasCollation("utf8_general_ci");
  4599. entity.Property(e => e.SeoKeyword)
  4600. .HasColumnType("varchar(200)")
  4601. .HasCharSet("utf8")
  4602. .HasCollation("utf8_general_ci");
  4603. entity.Property(e => e.SeoTitle)
  4604. .HasColumnType("varchar(100)")
  4605. .HasCharSet("utf8")
  4606. .HasCollation("utf8_general_ci");
  4607. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4608. entity.Property(e => e.StarNum).HasColumnType("int(11)");
  4609. entity.Property(e => e.Status).HasColumnType("int(11)");
  4610. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4611. entity.Property(e => e.UpdateMan)
  4612. .HasColumnType("varchar(50)")
  4613. .HasCharSet("utf8")
  4614. .HasCollation("utf8_general_ci");
  4615. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4616. entity.Property(e => e.Version).HasColumnType("int(11)");
  4617. });
  4618. modelBuilder.Entity<ProductCommentAgree>(entity =>
  4619. {
  4620. entity.Property(e => e.Id).HasColumnType("int(11)");
  4621. entity.Property(e => e.ProductCommentId).HasColumnType("int(11)");
  4622. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4623. });
  4624. modelBuilder.Entity<ProductFareAreas>(entity =>
  4625. {
  4626. entity.Property(e => e.Id).HasColumnType("int(11)");
  4627. entity.Property(e => e.Areas)
  4628. .HasColumnType("longtext")
  4629. .HasCharSet("utf8")
  4630. .HasCollation("utf8_general_ci");
  4631. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4632. entity.Property(e => e.CreateMan)
  4633. .HasColumnType("varchar(50)")
  4634. .HasCharSet("utf8")
  4635. .HasCollation("utf8_general_ci");
  4636. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4637. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4638. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4639. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4640. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4641. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4642. entity.Property(e => e.SeoDescription)
  4643. .HasColumnType("varchar(500)")
  4644. .HasCharSet("utf8")
  4645. .HasCollation("utf8_general_ci");
  4646. entity.Property(e => e.SeoKeyword)
  4647. .HasColumnType("varchar(200)")
  4648. .HasCharSet("utf8")
  4649. .HasCollation("utf8_general_ci");
  4650. entity.Property(e => e.SeoTitle)
  4651. .HasColumnType("varchar(100)")
  4652. .HasCharSet("utf8")
  4653. .HasCollation("utf8_general_ci");
  4654. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4655. entity.Property(e => e.Status).HasColumnType("int(11)");
  4656. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  4657. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4658. entity.Property(e => e.UpdateMan)
  4659. .HasColumnType("varchar(50)")
  4660. .HasCharSet("utf8")
  4661. .HasCollation("utf8_general_ci");
  4662. entity.Property(e => e.Version).HasColumnType("int(11)");
  4663. });
  4664. modelBuilder.Entity<ProductFareTemp>(entity =>
  4665. {
  4666. entity.Property(e => e.Id).HasColumnType("int(11)");
  4667. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4668. entity.Property(e => e.CreateMan)
  4669. .HasColumnType("varchar(50)")
  4670. .HasCharSet("utf8")
  4671. .HasCollation("utf8_general_ci");
  4672. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4673. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4674. entity.Property(e => e.IsFree)
  4675. .HasColumnType("bit(1)")
  4676. .HasDefaultValueSql("b'0'");
  4677. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4678. entity.Property(e => e.MeterMode).HasColumnType("int(11)");
  4679. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4680. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4681. entity.Property(e => e.Name)
  4682. .HasColumnType("varchar(50)")
  4683. .HasCharSet("utf8")
  4684. .HasCollation("utf8_general_ci");
  4685. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4686. entity.Property(e => e.SendAddress)
  4687. .HasColumnType("varchar(50)")
  4688. .HasCharSet("utf8")
  4689. .HasCollation("utf8_general_ci");
  4690. entity.Property(e => e.SendAreas)
  4691. .HasColumnType("varchar(30)")
  4692. .HasCharSet("utf8")
  4693. .HasCollation("utf8_general_ci");
  4694. entity.Property(e => e.SendDate).HasColumnType("int(11)");
  4695. entity.Property(e => e.SeoDescription)
  4696. .HasColumnType("varchar(500)")
  4697. .HasCharSet("utf8")
  4698. .HasCollation("utf8_general_ci");
  4699. entity.Property(e => e.SeoKeyword)
  4700. .HasColumnType("varchar(200)")
  4701. .HasCharSet("utf8")
  4702. .HasCollation("utf8_general_ci");
  4703. entity.Property(e => e.SeoTitle)
  4704. .HasColumnType("varchar(100)")
  4705. .HasCharSet("utf8")
  4706. .HasCollation("utf8_general_ci");
  4707. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4708. entity.Property(e => e.Status).HasColumnType("int(11)");
  4709. entity.Property(e => e.TransportMode).HasColumnType("int(11)");
  4710. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4711. entity.Property(e => e.UpdateMan)
  4712. .HasColumnType("varchar(50)")
  4713. .HasCharSet("utf8")
  4714. .HasCollation("utf8_general_ci");
  4715. entity.Property(e => e.Version).HasColumnType("int(11)");
  4716. });
  4717. modelBuilder.Entity<ProductKeys>(entity =>
  4718. {
  4719. entity.HasKey(e => e.Name)
  4720. .HasName("PRIMARY");
  4721. entity.Property(e => e.Name)
  4722. .HasColumnType("varchar(10)")
  4723. .HasCharSet("utf8")
  4724. .HasCollation("utf8_general_ci");
  4725. entity.Property(e => e.ColIds)
  4726. .HasColumnType("longtext")
  4727. .HasCharSet("utf8")
  4728. .HasCollation("utf8_general_ci");
  4729. entity.Property(e => e.ProductIds)
  4730. .HasColumnType("longtext")
  4731. .HasCharSet("utf8")
  4732. .HasCollation("utf8_general_ci");
  4733. });
  4734. modelBuilder.Entity<ProductNorm>(entity =>
  4735. {
  4736. entity.Property(e => e.Id).HasColumnType("int(11)");
  4737. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4738. entity.Property(e => e.Code)
  4739. .HasColumnType("varchar(50)")
  4740. .HasCharSet("utf8")
  4741. .HasCollation("utf8_general_ci");
  4742. entity.Property(e => e.ColName)
  4743. .HasColumnType("varchar(50)")
  4744. .HasCharSet("utf8")
  4745. .HasCollation("utf8_general_ci");
  4746. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  4747. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4748. entity.Property(e => e.CreateMan)
  4749. .HasColumnType("varchar(50)")
  4750. .HasCharSet("utf8")
  4751. .HasCollation("utf8_general_ci");
  4752. entity.Property(e => e.IdList)
  4753. .HasColumnType("varchar(50)")
  4754. .HasCharSet("utf8")
  4755. .HasCollation("utf8_general_ci");
  4756. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4757. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  4758. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4759. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  4760. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4761. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4762. entity.Property(e => e.SeoDescription)
  4763. .HasColumnType("varchar(500)")
  4764. .HasCharSet("utf8")
  4765. .HasCollation("utf8_general_ci");
  4766. entity.Property(e => e.SeoKeyword)
  4767. .HasColumnType("varchar(200)")
  4768. .HasCharSet("utf8")
  4769. .HasCollation("utf8_general_ci");
  4770. entity.Property(e => e.SeoTitle)
  4771. .HasColumnType("varchar(100)")
  4772. .HasCharSet("utf8")
  4773. .HasCollation("utf8_general_ci");
  4774. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4775. entity.Property(e => e.Status).HasColumnType("int(11)");
  4776. entity.Property(e => e.Stock).HasColumnType("int(11)");
  4777. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4778. entity.Property(e => e.UpdateMan)
  4779. .HasColumnType("varchar(50)")
  4780. .HasCharSet("utf8")
  4781. .HasCollation("utf8_general_ci");
  4782. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  4783. entity.Property(e => e.UserPrice).HasColumnType("decimal(18,2)");
  4784. entity.Property(e => e.Version).HasColumnType("int(11)");
  4785. });
  4786. modelBuilder.Entity<ProductNormItem>(entity =>
  4787. {
  4788. entity.Property(e => e.Id).HasColumnType("int(11)");
  4789. entity.Property(e => e.ColName)
  4790. .HasColumnType("varchar(50)")
  4791. .HasCharSet("utf8")
  4792. .HasCollation("utf8_general_ci");
  4793. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4794. entity.Property(e => e.CreateMan)
  4795. .HasColumnType("varchar(50)")
  4796. .HasCharSet("utf8")
  4797. .HasCollation("utf8_general_ci");
  4798. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4799. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  4800. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4801. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4802. entity.Property(e => e.SeoDescription)
  4803. .HasColumnType("varchar(500)")
  4804. .HasCharSet("utf8")
  4805. .HasCollation("utf8_general_ci");
  4806. entity.Property(e => e.SeoKeyword)
  4807. .HasColumnType("varchar(200)")
  4808. .HasCharSet("utf8")
  4809. .HasCollation("utf8_general_ci");
  4810. entity.Property(e => e.SeoTitle)
  4811. .HasColumnType("varchar(100)")
  4812. .HasCharSet("utf8")
  4813. .HasCollation("utf8_general_ci");
  4814. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4815. entity.Property(e => e.Status).HasColumnType("int(11)");
  4816. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4817. entity.Property(e => e.UpdateMan)
  4818. .HasColumnType("varchar(50)")
  4819. .HasCharSet("utf8")
  4820. .HasCollation("utf8_general_ci");
  4821. entity.Property(e => e.Version).HasColumnType("int(11)");
  4822. });
  4823. modelBuilder.Entity<ProductNormTemp>(entity =>
  4824. {
  4825. entity.Property(e => e.Id).HasColumnType("int(11)");
  4826. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4827. entity.Property(e => e.CreateMan)
  4828. .HasColumnType("varchar(50)")
  4829. .HasCharSet("utf8")
  4830. .HasCollation("utf8_general_ci");
  4831. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4832. entity.Property(e => e.Name)
  4833. .HasColumnType("varchar(50)")
  4834. .HasCharSet("utf8")
  4835. .HasCollation("utf8_general_ci");
  4836. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4837. entity.Property(e => e.SeoDescription)
  4838. .HasColumnType("varchar(500)")
  4839. .HasCharSet("utf8")
  4840. .HasCollation("utf8_general_ci");
  4841. entity.Property(e => e.SeoKeyword)
  4842. .HasColumnType("varchar(200)")
  4843. .HasCharSet("utf8")
  4844. .HasCollation("utf8_general_ci");
  4845. entity.Property(e => e.SeoTitle)
  4846. .HasColumnType("varchar(100)")
  4847. .HasCharSet("utf8")
  4848. .HasCollation("utf8_general_ci");
  4849. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4850. entity.Property(e => e.Status).HasColumnType("int(11)");
  4851. entity.Property(e => e.TempJsonData)
  4852. .HasColumnType("longtext")
  4853. .HasCharSet("utf8")
  4854. .HasCollation("utf8_general_ci");
  4855. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4856. entity.Property(e => e.UpdateMan)
  4857. .HasColumnType("varchar(50)")
  4858. .HasCharSet("utf8")
  4859. .HasCollation("utf8_general_ci");
  4860. entity.Property(e => e.Version).HasColumnType("int(11)");
  4861. });
  4862. modelBuilder.Entity<Products>(entity =>
  4863. {
  4864. entity.Property(e => e.Id).HasColumnType("int(11)");
  4865. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4866. entity.Property(e => e.ColId)
  4867. .HasColumnType("varchar(30)")
  4868. .HasCharSet("utf8")
  4869. .HasCollation("utf8_general_ci");
  4870. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  4871. entity.Property(e => e.Contents)
  4872. .HasColumnType("longtext")
  4873. .HasCharSet("utf8")
  4874. .HasCollation("utf8_general_ci");
  4875. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  4876. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4877. entity.Property(e => e.CreateMan)
  4878. .HasColumnType("varchar(50)")
  4879. .HasCharSet("utf8")
  4880. .HasCollation("utf8_general_ci");
  4881. entity.Property(e => e.DetailPicPath)
  4882. .HasColumnType("varchar(500)")
  4883. .HasCharSet("utf8")
  4884. .HasCollation("utf8_general_ci");
  4885. entity.Property(e => e.Details)
  4886. .HasColumnType("longtext")
  4887. .HasCharSet("utf8")
  4888. .HasCollation("utf8_general_ci");
  4889. entity.Property(e => e.EndDate).HasColumnType("datetime");
  4890. entity.Property(e => e.FareTemplateId).HasColumnType("int(11)");
  4891. entity.Property(e => e.GoodPercent).HasColumnType("decimal(18,2)");
  4892. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4893. entity.Property(e => e.IsLimit)
  4894. .HasColumnType("bit(1)")
  4895. .HasDefaultValueSql("b'0'");
  4896. entity.Property(e => e.IsRecommend)
  4897. .HasColumnType("bit(1)")
  4898. .HasDefaultValueSql("b'0'");
  4899. entity.Property(e => e.IsRecommend2)
  4900. .HasColumnType("bit(1)")
  4901. .HasDefaultValueSql("b'0'");
  4902. entity.Property(e => e.IsRecommend3)
  4903. .HasColumnType("bit(1)")
  4904. .HasDefaultValueSql("b'0'");
  4905. entity.Property(e => e.KeyWord)
  4906. .HasColumnType("varchar(500)")
  4907. .HasCharSet("utf8")
  4908. .HasCollation("utf8_general_ci");
  4909. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  4910. entity.Property(e => e.LinkUrl)
  4911. .HasColumnType("varchar(500)")
  4912. .HasCharSet("utf8")
  4913. .HasCollation("utf8_general_ci");
  4914. entity.Property(e => e.ListPicPath)
  4915. .HasColumnType("varchar(200)")
  4916. .HasCharSet("utf8")
  4917. .HasCollation("utf8_general_ci");
  4918. entity.Property(e => e.MemberPrice).HasColumnType("decimal(18,2)");
  4919. entity.Property(e => e.MerchantClassId).HasColumnType("int(11)");
  4920. entity.Property(e => e.MerchantColId)
  4921. .HasColumnType("varchar(30)")
  4922. .HasCharSet("utf8")
  4923. .HasCollation("utf8_general_ci");
  4924. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4925. entity.Property(e => e.MonthSale).HasColumnType("int(11)");
  4926. entity.Property(e => e.NormIds)
  4927. .HasColumnType("varchar(100)")
  4928. .HasCharSet("utf8")
  4929. .HasCollation("utf8_general_ci");
  4930. entity.Property(e => e.NormJson)
  4931. .HasColumnType("longtext")
  4932. .HasCharSet("utf8")
  4933. .HasCollation("utf8_general_ci");
  4934. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  4935. entity.Property(e => e.ProductCode)
  4936. .HasColumnType("varchar(30)")
  4937. .HasCharSet("utf8")
  4938. .HasCollation("utf8_general_ci");
  4939. entity.Property(e => e.ProductName)
  4940. .HasColumnType("varchar(100)")
  4941. .HasCharSet("utf8")
  4942. .HasCollation("utf8_general_ci");
  4943. entity.Property(e => e.PublishDate).HasColumnType("datetime");
  4944. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4945. entity.Property(e => e.SeoDescription)
  4946. .HasColumnType("varchar(500)")
  4947. .HasCharSet("utf8")
  4948. .HasCollation("utf8_general_ci");
  4949. entity.Property(e => e.SeoKeyword)
  4950. .HasColumnType("varchar(200)")
  4951. .HasCharSet("utf8")
  4952. .HasCollation("utf8_general_ci");
  4953. entity.Property(e => e.SeoTitle)
  4954. .HasColumnType("varchar(100)")
  4955. .HasCharSet("utf8")
  4956. .HasCollation("utf8_general_ci");
  4957. entity.Property(e => e.ShareDetail)
  4958. .HasColumnType("varchar(200)")
  4959. .HasCharSet("utf8")
  4960. .HasCollation("utf8_general_ci");
  4961. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4962. entity.Property(e => e.SourcePrice).HasColumnType("decimal(18,2)");
  4963. entity.Property(e => e.StartDate).HasColumnType("datetime");
  4964. entity.Property(e => e.Status).HasColumnType("int(11)");
  4965. entity.Property(e => e.Stock).HasColumnType("int(11)");
  4966. entity.Property(e => e.Title)
  4967. .HasColumnType("varchar(50)")
  4968. .HasCharSet("utf8")
  4969. .HasCollation("utf8_general_ci");
  4970. entity.Property(e => e.Title2)
  4971. .HasColumnType("varchar(50)")
  4972. .HasCharSet("utf8")
  4973. .HasCollation("utf8_general_ci");
  4974. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4975. entity.Property(e => e.UpdateMan)
  4976. .HasColumnType("varchar(50)")
  4977. .HasCharSet("utf8")
  4978. .HasCollation("utf8_general_ci");
  4979. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  4980. entity.Property(e => e.Version).HasColumnType("int(11)");
  4981. });
  4982. modelBuilder.Entity<ProfitObjectActivations>(entity =>
  4983. {
  4984. entity.Property(e => e.Id).HasColumnType("int(11)");
  4985. entity.Property(e => e.Code)
  4986. .HasColumnType("varchar(32)")
  4987. .HasCharSet("utf8")
  4988. .HasCollation("utf8_general_ci");
  4989. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4990. entity.Property(e => e.CreateMan)
  4991. .HasColumnType("varchar(50)")
  4992. .HasCharSet("utf8")
  4993. .HasCollation("utf8_general_ci");
  4994. entity.Property(e => e.EndDate).HasColumnType("datetime");
  4995. entity.Property(e => e.ExpiredNumber).HasColumnType("decimal(18,6)");
  4996. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  4997. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  4998. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  4999. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5000. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5001. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5002. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5003. entity.Property(e => e.SeoDescription)
  5004. .HasColumnType("varchar(500)")
  5005. .HasCharSet("utf8")
  5006. .HasCollation("utf8_general_ci");
  5007. entity.Property(e => e.SeoKeyword)
  5008. .HasColumnType("varchar(200)")
  5009. .HasCharSet("utf8")
  5010. .HasCollation("utf8_general_ci");
  5011. entity.Property(e => e.SeoTitle)
  5012. .HasColumnType("varchar(100)")
  5013. .HasCharSet("utf8")
  5014. .HasCollation("utf8_general_ci");
  5015. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5016. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5017. entity.Property(e => e.Status).HasColumnType("int(11)");
  5018. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5019. entity.Property(e => e.UpdateMan)
  5020. .HasColumnType("varchar(50)")
  5021. .HasCharSet("utf8")
  5022. .HasCollation("utf8_general_ci");
  5023. entity.Property(e => e.Version).HasColumnType("int(11)");
  5024. });
  5025. modelBuilder.Entity<ProfitObjectContinueFloors>(entity =>
  5026. {
  5027. entity.Property(e => e.Id).HasColumnType("int(11)");
  5028. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5029. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5030. entity.Property(e => e.CreateMan)
  5031. .HasColumnType("varchar(50)")
  5032. .HasCharSet("utf8")
  5033. .HasCollation("utf8_general_ci");
  5034. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5035. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5036. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5037. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5038. entity.Property(e => e.SeoDescription)
  5039. .HasColumnType("varchar(500)")
  5040. .HasCharSet("utf8")
  5041. .HasCollation("utf8_general_ci");
  5042. entity.Property(e => e.SeoKeyword)
  5043. .HasColumnType("varchar(200)")
  5044. .HasCharSet("utf8")
  5045. .HasCollation("utf8_general_ci");
  5046. entity.Property(e => e.SeoTitle)
  5047. .HasColumnType("varchar(100)")
  5048. .HasCharSet("utf8")
  5049. .HasCollation("utf8_general_ci");
  5050. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5051. entity.Property(e => e.Status).HasColumnType("int(11)");
  5052. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5053. entity.Property(e => e.UpdateMan)
  5054. .HasColumnType("varchar(50)")
  5055. .HasCharSet("utf8")
  5056. .HasCollation("utf8_general_ci");
  5057. entity.Property(e => e.Version).HasColumnType("int(11)");
  5058. });
  5059. modelBuilder.Entity<ProfitObjectFloors>(entity =>
  5060. {
  5061. entity.Property(e => e.Id).HasColumnType("int(11)");
  5062. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5063. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5064. entity.Property(e => e.CreateMan)
  5065. .HasColumnType("varchar(50)")
  5066. .HasCharSet("utf8")
  5067. .HasCollation("utf8_general_ci");
  5068. entity.Property(e => e.FloorDiff)
  5069. .HasColumnType("bit(1)")
  5070. .HasDefaultValueSql("b'0'");
  5071. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5072. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5073. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5074. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5075. entity.Property(e => e.SeoDescription)
  5076. .HasColumnType("varchar(500)")
  5077. .HasCharSet("utf8")
  5078. .HasCollation("utf8_general_ci");
  5079. entity.Property(e => e.SeoKeyword)
  5080. .HasColumnType("varchar(200)")
  5081. .HasCharSet("utf8")
  5082. .HasCollation("utf8_general_ci");
  5083. entity.Property(e => e.SeoTitle)
  5084. .HasColumnType("varchar(100)")
  5085. .HasCharSet("utf8")
  5086. .HasCollation("utf8_general_ci");
  5087. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5088. entity.Property(e => e.Status).HasColumnType("int(11)");
  5089. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5090. entity.Property(e => e.UpdateMan)
  5091. .HasColumnType("varchar(50)")
  5092. .HasCharSet("utf8")
  5093. .HasCollation("utf8_general_ci");
  5094. entity.Property(e => e.Version).HasColumnType("int(11)");
  5095. });
  5096. modelBuilder.Entity<ProfitObjectLevelKinds>(entity =>
  5097. {
  5098. entity.Property(e => e.Id).HasColumnType("int(11)");
  5099. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5100. entity.Property(e => e.CreateMan)
  5101. .HasColumnType("varchar(50)")
  5102. .HasCharSet("utf8")
  5103. .HasCollation("utf8_general_ci");
  5104. entity.Property(e => e.Name)
  5105. .HasColumnType("varchar(50)")
  5106. .HasCharSet("utf8")
  5107. .HasCollation("utf8_general_ci");
  5108. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5109. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5110. entity.Property(e => e.SeoDescription)
  5111. .HasColumnType("varchar(500)")
  5112. .HasCharSet("utf8")
  5113. .HasCollation("utf8_general_ci");
  5114. entity.Property(e => e.SeoKeyword)
  5115. .HasColumnType("varchar(200)")
  5116. .HasCharSet("utf8")
  5117. .HasCollation("utf8_general_ci");
  5118. entity.Property(e => e.SeoTitle)
  5119. .HasColumnType("varchar(100)")
  5120. .HasCharSet("utf8")
  5121. .HasCollation("utf8_general_ci");
  5122. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5123. entity.Property(e => e.Status).HasColumnType("int(11)");
  5124. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5125. entity.Property(e => e.UpdateMan)
  5126. .HasColumnType("varchar(50)")
  5127. .HasCharSet("utf8")
  5128. .HasCollation("utf8_general_ci");
  5129. entity.Property(e => e.Version).HasColumnType("int(11)");
  5130. });
  5131. modelBuilder.Entity<ProfitObjectLevels>(entity =>
  5132. {
  5133. entity.Property(e => e.Id).HasColumnType("int(11)");
  5134. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5135. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5136. entity.Property(e => e.CreateMan)
  5137. .HasColumnType("varchar(50)")
  5138. .HasCharSet("utf8")
  5139. .HasCollation("utf8_general_ci");
  5140. entity.Property(e => e.DebitAddProfitVal).HasColumnType("decimal(18,2)");
  5141. entity.Property(e => e.DebitPercents).HasColumnType("decimal(18,2)");
  5142. entity.Property(e => e.KindId).HasColumnType("int(11)");
  5143. entity.Property(e => e.LevelDiff)
  5144. .HasColumnType("bit(1)")
  5145. .HasDefaultValueSql("b'0'");
  5146. entity.Property(e => e.LevelNumber).HasColumnType("int(11)");
  5147. entity.Property(e => e.Name)
  5148. .HasColumnType("varchar(50)")
  5149. .HasCharSet("utf8")
  5150. .HasCollation("utf8_general_ci");
  5151. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5152. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5153. entity.Property(e => e.SeoDescription)
  5154. .HasColumnType("varchar(500)")
  5155. .HasCharSet("utf8")
  5156. .HasCollation("utf8_general_ci");
  5157. entity.Property(e => e.SeoKeyword)
  5158. .HasColumnType("varchar(200)")
  5159. .HasCharSet("utf8")
  5160. .HasCollation("utf8_general_ci");
  5161. entity.Property(e => e.SeoTitle)
  5162. .HasColumnType("varchar(100)")
  5163. .HasCharSet("utf8")
  5164. .HasCollation("utf8_general_ci");
  5165. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5166. entity.Property(e => e.Status).HasColumnType("int(11)");
  5167. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5168. entity.Property(e => e.UpdateMan)
  5169. .HasColumnType("varchar(50)")
  5170. .HasCharSet("utf8")
  5171. .HasCollation("utf8_general_ci");
  5172. entity.Property(e => e.Version).HasColumnType("int(11)");
  5173. });
  5174. modelBuilder.Entity<ProfitObjects>(entity =>
  5175. {
  5176. entity.Property(e => e.Id).HasColumnType("int(11)");
  5177. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5178. entity.Property(e => e.CreateMan)
  5179. .HasColumnType("varchar(50)")
  5180. .HasCharSet("utf8")
  5181. .HasCollation("utf8_general_ci");
  5182. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5183. entity.Property(e => e.MaxFloor).HasColumnType("int(11)");
  5184. entity.Property(e => e.MaxLevel).HasColumnType("int(11)");
  5185. entity.Property(e => e.MaxLevelContinue)
  5186. .HasColumnType("bit(1)")
  5187. .HasDefaultValueSql("b'0'");
  5188. entity.Property(e => e.MinProfitVal).HasColumnType("decimal(18,5)");
  5189. entity.Property(e => e.Name)
  5190. .HasColumnType("varchar(50)")
  5191. .HasCharSet("utf8")
  5192. .HasCollation("utf8_general_ci");
  5193. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5194. entity.Property(e => e.SeoDescription)
  5195. .HasColumnType("varchar(500)")
  5196. .HasCharSet("utf8")
  5197. .HasCollation("utf8_general_ci");
  5198. entity.Property(e => e.SeoKeyword)
  5199. .HasColumnType("varchar(200)")
  5200. .HasCharSet("utf8")
  5201. .HasCollation("utf8_general_ci");
  5202. entity.Property(e => e.SeoTitle)
  5203. .HasColumnType("varchar(100)")
  5204. .HasCharSet("utf8")
  5205. .HasCollation("utf8_general_ci");
  5206. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5207. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5208. entity.Property(e => e.Status).HasColumnType("int(11)");
  5209. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5210. entity.Property(e => e.UpdateMan)
  5211. .HasColumnType("varchar(50)")
  5212. .HasCharSet("utf8")
  5213. .HasCollation("utf8_general_ci");
  5214. entity.Property(e => e.Version).HasColumnType("int(11)");
  5215. });
  5216. modelBuilder.Entity<ProfitObjectsActiveCheck>(entity =>
  5217. {
  5218. entity.HasKey(e => e.CheckData)
  5219. .HasName("PRIMARY");
  5220. entity.Property(e => e.CheckData)
  5221. .HasColumnType("varchar(100)")
  5222. .HasCharSet("utf8")
  5223. .HasCollation("utf8_general_ci");
  5224. });
  5225. modelBuilder.Entity<ProfitObjectsActiveParams>(entity =>
  5226. {
  5227. entity.Property(e => e.Id).HasColumnType("int(11)");
  5228. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5229. entity.Property(e => e.CreateMan)
  5230. .HasColumnType("varchar(50)")
  5231. .HasCharSet("utf8")
  5232. .HasCollation("utf8_general_ci");
  5233. entity.Property(e => e.Name)
  5234. .HasColumnType("varchar(50)")
  5235. .HasCharSet("utf8")
  5236. .HasCollation("utf8_general_ci");
  5237. entity.Property(e => e.ProfitObjectsActiveId).HasColumnType("int(11)");
  5238. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5239. entity.Property(e => e.Remark)
  5240. .HasColumnType("varchar(200)")
  5241. .HasCharSet("utf8")
  5242. .HasCollation("utf8_general_ci");
  5243. entity.Property(e => e.SeoDescription)
  5244. .HasColumnType("varchar(500)")
  5245. .HasCharSet("utf8")
  5246. .HasCollation("utf8_general_ci");
  5247. entity.Property(e => e.SeoKeyword)
  5248. .HasColumnType("varchar(200)")
  5249. .HasCharSet("utf8")
  5250. .HasCollation("utf8_general_ci");
  5251. entity.Property(e => e.SeoTitle)
  5252. .HasColumnType("varchar(100)")
  5253. .HasCharSet("utf8")
  5254. .HasCollation("utf8_general_ci");
  5255. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5256. entity.Property(e => e.Status).HasColumnType("int(11)");
  5257. entity.Property(e => e.TextValue)
  5258. .HasColumnType("varchar(20)")
  5259. .HasCharSet("utf8")
  5260. .HasCollation("utf8_general_ci");
  5261. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5262. entity.Property(e => e.UpdateMan)
  5263. .HasColumnType("varchar(50)")
  5264. .HasCharSet("utf8")
  5265. .HasCollation("utf8_general_ci");
  5266. entity.Property(e => e.Version).HasColumnType("int(11)");
  5267. });
  5268. modelBuilder.Entity<ProfitObjectsActives>(entity =>
  5269. {
  5270. entity.Property(e => e.Id).HasColumnType("int(11)");
  5271. entity.Property(e => e.CardType).HasColumnType("int(11)");
  5272. entity.Property(e => e.Code)
  5273. .HasColumnType("varchar(50)")
  5274. .HasCharSet("utf8")
  5275. .HasCollation("utf8_general_ci");
  5276. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5277. entity.Property(e => e.CreateMan)
  5278. .HasColumnType("varchar(50)")
  5279. .HasCharSet("utf8")
  5280. .HasCollation("utf8_general_ci");
  5281. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5282. entity.Property(e => e.FinishNumber).HasColumnType("decimal(18,6)");
  5283. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5284. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5285. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5286. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5287. entity.Property(e => e.Name)
  5288. .HasColumnType("varchar(50)")
  5289. .HasCharSet("utf8")
  5290. .HasCollation("utf8_general_ci");
  5291. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5292. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5293. entity.Property(e => e.ProfitNumber2).HasColumnType("decimal(18,2)");
  5294. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5295. entity.Property(e => e.SeoDescription)
  5296. .HasColumnType("varchar(500)")
  5297. .HasCharSet("utf8")
  5298. .HasCollation("utf8_general_ci");
  5299. entity.Property(e => e.SeoKeyword)
  5300. .HasColumnType("varchar(200)")
  5301. .HasCharSet("utf8")
  5302. .HasCollation("utf8_general_ci");
  5303. entity.Property(e => e.SeoTitle)
  5304. .HasColumnType("varchar(100)")
  5305. .HasCharSet("utf8")
  5306. .HasCollation("utf8_general_ci");
  5307. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5308. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5309. entity.Property(e => e.Status).HasColumnType("int(11)");
  5310. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5311. entity.Property(e => e.UpdateMan)
  5312. .HasColumnType("varchar(50)")
  5313. .HasCharSet("utf8")
  5314. .HasCollation("utf8_general_ci");
  5315. entity.Property(e => e.Version).HasColumnType("int(11)");
  5316. });
  5317. modelBuilder.Entity<ProfitObjectsActivesForId>(entity =>
  5318. {
  5319. entity.HasKey(e => e.Name)
  5320. .HasName("PRIMARY");
  5321. entity.Property(e => e.Name)
  5322. .HasColumnType("varchar(50)")
  5323. .HasCharSet("utf8")
  5324. .HasCollation("utf8_general_ci");
  5325. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  5326. });
  5327. modelBuilder.Entity<ProfitObjectsRule>(entity =>
  5328. {
  5329. entity.Property(e => e.Id).HasColumnType("int(11)");
  5330. entity.Property(e => e.Code)
  5331. .HasColumnType("varchar(50)")
  5332. .HasCharSet("utf8")
  5333. .HasCollation("utf8_general_ci");
  5334. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5335. entity.Property(e => e.CreateMan)
  5336. .HasColumnType("varchar(50)")
  5337. .HasCharSet("utf8")
  5338. .HasCollation("utf8_general_ci");
  5339. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5340. entity.Property(e => e.Name)
  5341. .HasColumnType("varchar(50)")
  5342. .HasCharSet("utf8")
  5343. .HasCollation("utf8_general_ci");
  5344. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5345. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5346. entity.Property(e => e.SeoDescription)
  5347. .HasColumnType("varchar(500)")
  5348. .HasCharSet("utf8")
  5349. .HasCollation("utf8_general_ci");
  5350. entity.Property(e => e.SeoKeyword)
  5351. .HasColumnType("varchar(200)")
  5352. .HasCharSet("utf8")
  5353. .HasCollation("utf8_general_ci");
  5354. entity.Property(e => e.SeoTitle)
  5355. .HasColumnType("varchar(100)")
  5356. .HasCharSet("utf8")
  5357. .HasCollation("utf8_general_ci");
  5358. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5359. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5360. entity.Property(e => e.Status).HasColumnType("int(11)");
  5361. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5362. entity.Property(e => e.UpdateMan)
  5363. .HasColumnType("varchar(50)")
  5364. .HasCharSet("utf8")
  5365. .HasCollation("utf8_general_ci");
  5366. entity.Property(e => e.Version).HasColumnType("int(11)");
  5367. });
  5368. modelBuilder.Entity<ProfitObjectsRuleDetails>(entity =>
  5369. {
  5370. entity.Property(e => e.Id).HasColumnType("int(11)");
  5371. entity.Property(e => e.Code)
  5372. .HasColumnType("varchar(50)")
  5373. .HasCharSet("utf8")
  5374. .HasCollation("utf8_general_ci");
  5375. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5376. entity.Property(e => e.CreateMan)
  5377. .HasColumnType("varchar(50)")
  5378. .HasCharSet("utf8")
  5379. .HasCollation("utf8_general_ci");
  5380. entity.Property(e => e.DataValue)
  5381. .HasColumnType("varchar(50)")
  5382. .HasCharSet("utf8")
  5383. .HasCollation("utf8_general_ci");
  5384. entity.Property(e => e.Name)
  5385. .HasColumnType("varchar(50)")
  5386. .HasCharSet("utf8")
  5387. .HasCollation("utf8_general_ci");
  5388. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5389. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  5390. entity.Property(e => e.SeoDescription)
  5391. .HasColumnType("varchar(500)")
  5392. .HasCharSet("utf8")
  5393. .HasCollation("utf8_general_ci");
  5394. entity.Property(e => e.SeoKeyword)
  5395. .HasColumnType("varchar(200)")
  5396. .HasCharSet("utf8")
  5397. .HasCollation("utf8_general_ci");
  5398. entity.Property(e => e.SeoTitle)
  5399. .HasColumnType("varchar(100)")
  5400. .HasCharSet("utf8")
  5401. .HasCollation("utf8_general_ci");
  5402. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5403. entity.Property(e => e.Status).HasColumnType("int(11)");
  5404. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5405. entity.Property(e => e.UpdateMan)
  5406. .HasColumnType("varchar(50)")
  5407. .HasCharSet("utf8")
  5408. .HasCollation("utf8_general_ci");
  5409. entity.Property(e => e.Version).HasColumnType("int(11)");
  5410. });
  5411. modelBuilder.Entity<ProfitReceiveRecord>(entity =>
  5412. {
  5413. entity.Property(e => e.Id).HasColumnType("int(11)");
  5414. entity.Property(e => e.Account)
  5415. .HasColumnType("varchar(32)")
  5416. .HasCharSet("utf8")
  5417. .HasCollation("utf8_general_ci");
  5418. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  5419. entity.Property(e => e.AppId)
  5420. .HasColumnType("varchar(32)")
  5421. .HasCharSet("utf8")
  5422. .HasCollation("utf8_general_ci");
  5423. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5424. entity.Property(e => e.CreateMan)
  5425. .HasColumnType("varchar(50)")
  5426. .HasCharSet("utf8")
  5427. .HasCollation("utf8_general_ci");
  5428. entity.Property(e => e.CustomRelation)
  5429. .HasColumnType("varchar(10)")
  5430. .HasCharSet("utf8")
  5431. .HasCollation("utf8_general_ci");
  5432. entity.Property(e => e.Description)
  5433. .HasColumnType("varchar(50)")
  5434. .HasCharSet("utf8")
  5435. .HasCollation("utf8_general_ci");
  5436. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5437. entity.Property(e => e.Name)
  5438. .HasColumnType("varchar(32)")
  5439. .HasCharSet("utf8")
  5440. .HasCollation("utf8_general_ci");
  5441. entity.Property(e => e.OrderId)
  5442. .HasColumnType("varchar(32)")
  5443. .HasCharSet("utf8")
  5444. .HasCollation("utf8_general_ci");
  5445. entity.Property(e => e.OutOrderNo)
  5446. .HasColumnType("varchar(32)")
  5447. .HasCharSet("utf8")
  5448. .HasCollation("utf8_general_ci");
  5449. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5450. entity.Property(e => e.RelationType)
  5451. .HasColumnType("varchar(30)")
  5452. .HasCharSet("utf8")
  5453. .HasCollation("utf8_general_ci");
  5454. entity.Property(e => e.SeoDescription)
  5455. .HasColumnType("varchar(500)")
  5456. .HasCharSet("utf8")
  5457. .HasCollation("utf8_general_ci");
  5458. entity.Property(e => e.SeoKeyword)
  5459. .HasColumnType("varchar(200)")
  5460. .HasCharSet("utf8")
  5461. .HasCollation("utf8_general_ci");
  5462. entity.Property(e => e.SeoTitle)
  5463. .HasColumnType("varchar(100)")
  5464. .HasCharSet("utf8")
  5465. .HasCollation("utf8_general_ci");
  5466. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5467. entity.Property(e => e.State)
  5468. .HasColumnType("varchar(20)")
  5469. .HasCharSet("utf8")
  5470. .HasCollation("utf8_general_ci");
  5471. entity.Property(e => e.Status).HasColumnType("int(11)");
  5472. entity.Property(e => e.SubAppId)
  5473. .HasColumnType("varchar(32)")
  5474. .HasCharSet("utf8")
  5475. .HasCollation("utf8_general_ci");
  5476. entity.Property(e => e.SubMchid)
  5477. .HasColumnType("varchar(32)")
  5478. .HasCharSet("utf8")
  5479. .HasCollation("utf8_general_ci");
  5480. entity.Property(e => e.TransactionId)
  5481. .HasColumnType("varchar(32)")
  5482. .HasCharSet("utf8")
  5483. .HasCollation("utf8_general_ci");
  5484. entity.Property(e => e.Type)
  5485. .HasColumnType("varchar(30)")
  5486. .HasCharSet("utf8")
  5487. .HasCollation("utf8_general_ci");
  5488. entity.Property(e => e.UnfreezeUnsplit)
  5489. .HasColumnType("bit(1)")
  5490. .HasDefaultValueSql("b'0'");
  5491. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5492. entity.Property(e => e.UpdateMan)
  5493. .HasColumnType("varchar(50)")
  5494. .HasCharSet("utf8")
  5495. .HasCollation("utf8_general_ci");
  5496. entity.Property(e => e.Version).HasColumnType("int(11)");
  5497. });
  5498. modelBuilder.Entity<ProfitReceives>(entity =>
  5499. {
  5500. entity.Property(e => e.Id).HasColumnType("int(11)");
  5501. entity.Property(e => e.Account)
  5502. .HasColumnType("varchar(32)")
  5503. .HasCharSet("utf8")
  5504. .HasCollation("utf8_general_ci");
  5505. entity.Property(e => e.AppId)
  5506. .HasColumnType("varchar(32)")
  5507. .HasCharSet("utf8")
  5508. .HasCollation("utf8_general_ci");
  5509. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5510. entity.Property(e => e.CreateMan)
  5511. .HasColumnType("varchar(50)")
  5512. .HasCharSet("utf8")
  5513. .HasCollation("utf8_general_ci");
  5514. entity.Property(e => e.CustomRelation)
  5515. .HasColumnType("varchar(10)")
  5516. .HasCharSet("utf8")
  5517. .HasCollation("utf8_general_ci");
  5518. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5519. entity.Property(e => e.Name)
  5520. .HasColumnType("varchar(32)")
  5521. .HasCharSet("utf8")
  5522. .HasCollation("utf8_general_ci");
  5523. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5524. entity.Property(e => e.RelationType)
  5525. .HasColumnType("varchar(30)")
  5526. .HasCharSet("utf8")
  5527. .HasCollation("utf8_general_ci");
  5528. entity.Property(e => e.SeoDescription)
  5529. .HasColumnType("varchar(500)")
  5530. .HasCharSet("utf8")
  5531. .HasCollation("utf8_general_ci");
  5532. entity.Property(e => e.SeoKeyword)
  5533. .HasColumnType("varchar(200)")
  5534. .HasCharSet("utf8")
  5535. .HasCollation("utf8_general_ci");
  5536. entity.Property(e => e.SeoTitle)
  5537. .HasColumnType("varchar(100)")
  5538. .HasCharSet("utf8")
  5539. .HasCollation("utf8_general_ci");
  5540. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5541. entity.Property(e => e.Status).HasColumnType("int(11)");
  5542. entity.Property(e => e.SubAppId)
  5543. .HasColumnType("varchar(32)")
  5544. .HasCharSet("utf8")
  5545. .HasCollation("utf8_general_ci");
  5546. entity.Property(e => e.SubMchid)
  5547. .HasColumnType("varchar(32)")
  5548. .HasCharSet("utf8")
  5549. .HasCollation("utf8_general_ci");
  5550. entity.Property(e => e.Type)
  5551. .HasColumnType("varchar(30)")
  5552. .HasCharSet("utf8")
  5553. .HasCollation("utf8_general_ci");
  5554. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5555. entity.Property(e => e.UpdateMan)
  5556. .HasColumnType("varchar(50)")
  5557. .HasCharSet("utf8")
  5558. .HasCollation("utf8_general_ci");
  5559. entity.Property(e => e.Version).HasColumnType("int(11)");
  5560. });
  5561. modelBuilder.Entity<ProfitRecord>(entity =>
  5562. {
  5563. entity.Property(e => e.Id).HasColumnType("int(11)");
  5564. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5565. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  5566. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  5567. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5568. entity.Property(e => e.CreateMan)
  5569. .HasColumnType("varchar(50)")
  5570. .HasCharSet("utf8")
  5571. .HasCollation("utf8_general_ci");
  5572. entity.Property(e => e.DirectFlag)
  5573. .HasColumnType("bit(1)")
  5574. .HasDefaultValueSql("b'0'");
  5575. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  5576. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  5577. entity.Property(e => e.MerHelpFlag)
  5578. .HasColumnType("bit(1)")
  5579. .HasDefaultValueSql("b'0'");
  5580. entity.Property(e => e.MerNo)
  5581. .HasColumnType("varchar(32)")
  5582. .HasCharSet("utf8")
  5583. .HasCollation("utf8_general_ci");
  5584. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5585. entity.Property(e => e.ParentNav)
  5586. .HasColumnType("varchar(1000)")
  5587. .HasCharSet("utf8")
  5588. .HasCollation("utf8_general_ci");
  5589. entity.Property(e => e.ProfitAmount).HasColumnType("decimal(18,2)");
  5590. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  5591. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5592. entity.Property(e => e.Remark)
  5593. .HasColumnType("varchar(64)")
  5594. .HasCharSet("utf8")
  5595. .HasCollation("utf8_general_ci");
  5596. entity.Property(e => e.SeoDescription)
  5597. .HasColumnType("varchar(500)")
  5598. .HasCharSet("utf8")
  5599. .HasCollation("utf8_general_ci");
  5600. entity.Property(e => e.SeoKeyword)
  5601. .HasColumnType("varchar(200)")
  5602. .HasCharSet("utf8")
  5603. .HasCollation("utf8_general_ci");
  5604. entity.Property(e => e.SeoTitle)
  5605. .HasColumnType("varchar(100)")
  5606. .HasCharSet("utf8")
  5607. .HasCollation("utf8_general_ci");
  5608. entity.Property(e => e.SnNo)
  5609. .HasColumnType("varchar(32)")
  5610. .HasCharSet("utf8")
  5611. .HasCollation("utf8_general_ci");
  5612. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5613. entity.Property(e => e.Status).HasColumnType("int(11)");
  5614. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  5615. entity.Property(e => e.TradeId).HasColumnType("int(11)");
  5616. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5617. entity.Property(e => e.UpdateMan)
  5618. .HasColumnType("varchar(50)")
  5619. .HasCharSet("utf8")
  5620. .HasCollation("utf8_general_ci");
  5621. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5622. entity.Property(e => e.Version).HasColumnType("int(11)");
  5623. });
  5624. modelBuilder.Entity<ProfitRewardRecord>(entity =>
  5625. {
  5626. entity.Property(e => e.Id).HasColumnType("int(11)");
  5627. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5628. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  5629. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5630. entity.Property(e => e.CreateMan)
  5631. .HasColumnType("varchar(50)")
  5632. .HasCharSet("utf8")
  5633. .HasCollation("utf8_general_ci");
  5634. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5635. entity.Property(e => e.CreditTradeProfit).HasColumnType("decimal(18,2)");
  5636. entity.Property(e => e.DebitCapSingleReward).HasColumnType("decimal(18,2)");
  5637. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  5638. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  5639. entity.Property(e => e.DebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5640. entity.Property(e => e.DebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5641. entity.Property(e => e.DebitTradeCapProfit).HasColumnType("decimal(18,2)");
  5642. entity.Property(e => e.HelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5643. entity.Property(e => e.HelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5644. entity.Property(e => e.HelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5645. entity.Property(e => e.HelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5646. entity.Property(e => e.HelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5647. entity.Property(e => e.HelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5648. entity.Property(e => e.HelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5649. entity.Property(e => e.HelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5650. entity.Property(e => e.HelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5651. entity.Property(e => e.HelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5652. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5653. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5654. entity.Property(e => e.NonQrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5655. entity.Property(e => e.NonQrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5656. entity.Property(e => e.NonQrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5657. entity.Property(e => e.NotHelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5658. entity.Property(e => e.NotHelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5659. entity.Property(e => e.NotHelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5660. entity.Property(e => e.NotHelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5661. entity.Property(e => e.NotHelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5662. entity.Property(e => e.NotHelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5663. entity.Property(e => e.NotHelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5664. entity.Property(e => e.NotHelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5665. entity.Property(e => e.NotHelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5666. entity.Property(e => e.NotHelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5667. entity.Property(e => e.OtherCreditTradeAmt).HasColumnType("decimal(18,2)");
  5668. entity.Property(e => e.OtherDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5669. entity.Property(e => e.OtherTradeAmt).HasColumnType("decimal(18,2)");
  5670. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  5671. entity.Property(e => e.QrCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5672. entity.Property(e => e.QrCreditProfitRate).HasColumnType("decimal(18,2)");
  5673. entity.Property(e => e.QrCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5674. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5675. entity.Property(e => e.QrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5676. entity.Property(e => e.QrDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5677. entity.Property(e => e.QrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5678. entity.Property(e => e.QrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5679. entity.Property(e => e.QrDebitProfitRate).HasColumnType("decimal(18,2)");
  5680. entity.Property(e => e.QrDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5681. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5682. entity.Property(e => e.RecordNo)
  5683. .HasColumnType("varchar(32)")
  5684. .HasCharSet("utf8")
  5685. .HasCollation("utf8_general_ci");
  5686. entity.Property(e => e.Remark)
  5687. .HasColumnType("varchar(64)")
  5688. .HasCharSet("utf8")
  5689. .HasCollation("utf8_general_ci");
  5690. entity.Property(e => e.SeoDescription)
  5691. .HasColumnType("varchar(500)")
  5692. .HasCharSet("utf8")
  5693. .HasCollation("utf8_general_ci");
  5694. entity.Property(e => e.SeoKeyword)
  5695. .HasColumnType("varchar(200)")
  5696. .HasCharSet("utf8")
  5697. .HasCollation("utf8_general_ci");
  5698. entity.Property(e => e.SeoTitle)
  5699. .HasColumnType("varchar(100)")
  5700. .HasCharSet("utf8")
  5701. .HasCollation("utf8_general_ci");
  5702. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5703. entity.Property(e => e.Status).HasColumnType("int(11)");
  5704. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  5705. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  5706. entity.Property(e => e.TradeMonth)
  5707. .HasColumnType("varchar(6)")
  5708. .HasCharSet("utf8")
  5709. .HasCollation("utf8_general_ci");
  5710. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  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.UserId).HasColumnType("int(11)");
  5717. entity.Property(e => e.Version).HasColumnType("int(11)");
  5718. });
  5719. modelBuilder.Entity<ProfitSubsidyDetail>(entity =>
  5720. {
  5721. entity.Property(e => e.Id).HasColumnType("int(11)");
  5722. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  5723. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5724. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5725. entity.Property(e => e.CreateMan)
  5726. .HasColumnType("varchar(50)")
  5727. .HasCharSet("utf8")
  5728. .HasCollation("utf8_general_ci");
  5729. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  5730. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5731. entity.Property(e => e.MerHelpFlag)
  5732. .HasColumnType("bit(1)")
  5733. .HasDefaultValueSql("b'0'");
  5734. entity.Property(e => e.MerNo)
  5735. .HasColumnType("varchar(32)")
  5736. .HasCharSet("utf8")
  5737. .HasCollation("utf8_general_ci");
  5738. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  5739. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  5740. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5741. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5742. entity.Property(e => e.ProductName)
  5743. .HasColumnType("varchar(16)")
  5744. .HasCharSet("utf8")
  5745. .HasCollation("utf8_general_ci");
  5746. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5747. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5748. entity.Property(e => e.RecordNo)
  5749. .HasColumnType("varchar(32)")
  5750. .HasCharSet("utf8")
  5751. .HasCollation("utf8_general_ci");
  5752. entity.Property(e => e.Remark)
  5753. .HasColumnType("varchar(64)")
  5754. .HasCharSet("utf8")
  5755. .HasCollation("utf8_general_ci");
  5756. entity.Property(e => e.SeoDescription)
  5757. .HasColumnType("varchar(500)")
  5758. .HasCharSet("utf8")
  5759. .HasCollation("utf8_general_ci");
  5760. entity.Property(e => e.SeoKeyword)
  5761. .HasColumnType("varchar(200)")
  5762. .HasCharSet("utf8")
  5763. .HasCollation("utf8_general_ci");
  5764. entity.Property(e => e.SeoTitle)
  5765. .HasColumnType("varchar(100)")
  5766. .HasCharSet("utf8")
  5767. .HasCollation("utf8_general_ci");
  5768. entity.Property(e => e.SnNo)
  5769. .HasColumnType("varchar(32)")
  5770. .HasCharSet("utf8")
  5771. .HasCollation("utf8_general_ci");
  5772. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5773. entity.Property(e => e.Status).HasColumnType("int(11)");
  5774. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  5775. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  5776. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  5777. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  5778. entity.Property(e => e.TradeMonth)
  5779. .HasColumnType("varchar(6)")
  5780. .HasCharSet("utf8")
  5781. .HasCollation("utf8_general_ci");
  5782. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5783. entity.Property(e => e.UpdateMan)
  5784. .HasColumnType("varchar(50)")
  5785. .HasCharSet("utf8")
  5786. .HasCollation("utf8_general_ci");
  5787. entity.Property(e => e.Version).HasColumnType("int(11)");
  5788. });
  5789. modelBuilder.Entity<PublicAccountSet>(entity =>
  5790. {
  5791. entity.Property(e => e.Id).HasColumnType("int(11)");
  5792. entity.Property(e => e.AlipayAppId)
  5793. .HasColumnType("varchar(50)")
  5794. .HasCharSet("utf8")
  5795. .HasCollation("utf8_general_ci");
  5796. entity.Property(e => e.AlipayPartnerId)
  5797. .HasColumnType("varchar(50)")
  5798. .HasCharSet("utf8")
  5799. .HasCollation("utf8_general_ci");
  5800. entity.Property(e => e.AlipayPrivateKey)
  5801. .HasColumnType("mediumtext")
  5802. .HasCharSet("utf8")
  5803. .HasCollation("utf8_general_ci");
  5804. entity.Property(e => e.AlipayPublicKey)
  5805. .HasColumnType("mediumtext")
  5806. .HasCharSet("utf8")
  5807. .HasCollation("utf8_general_ci");
  5808. entity.Property(e => e.AliyunAccessKeyId)
  5809. .HasColumnType("varchar(50)")
  5810. .HasCharSet("utf8")
  5811. .HasCollation("utf8_general_ci");
  5812. entity.Property(e => e.AliyunAccessKeySecret)
  5813. .HasColumnType("varchar(50)")
  5814. .HasCharSet("utf8")
  5815. .HasCollation("utf8_general_ci");
  5816. entity.Property(e => e.AliyunAndroidActivity)
  5817. .HasColumnType("varchar(100)")
  5818. .HasCharSet("utf8")
  5819. .HasCollation("utf8_general_ci");
  5820. entity.Property(e => e.AliyunAndroidNotifyTitle)
  5821. .HasColumnType("varchar(20)")
  5822. .HasCharSet("utf8")
  5823. .HasCollation("utf8_general_ci");
  5824. entity.Property(e => e.AliyunPushAndroidAppId)
  5825. .HasColumnType("varchar(50)")
  5826. .HasCharSet("utf8")
  5827. .HasCollation("utf8_general_ci");
  5828. entity.Property(e => e.AliyunPushAndroidAppSecret)
  5829. .HasColumnType("varchar(50)")
  5830. .HasCharSet("utf8")
  5831. .HasCollation("utf8_general_ci");
  5832. entity.Property(e => e.AliyunPushIosAppId)
  5833. .HasColumnType("varchar(500)")
  5834. .HasCharSet("utf8")
  5835. .HasCollation("utf8_general_ci");
  5836. entity.Property(e => e.AliyunPushIosAppSecret)
  5837. .HasColumnType("varchar(50)")
  5838. .HasCharSet("utf8")
  5839. .HasCollation("utf8_general_ci");
  5840. entity.Property(e => e.AliyunRegionId)
  5841. .HasColumnType("varchar(30)")
  5842. .HasCharSet("utf8")
  5843. .HasCollation("utf8_general_ci");
  5844. entity.Property(e => e.ErpApiUrl)
  5845. .HasColumnType("varchar(200)")
  5846. .HasCharSet("utf8")
  5847. .HasCollation("utf8_general_ci");
  5848. entity.Property(e => e.ErpAppCode)
  5849. .HasColumnType("varchar(100)")
  5850. .HasCharSet("utf8")
  5851. .HasCollation("utf8_general_ci");
  5852. entity.Property(e => e.MeiQiaAppKey)
  5853. .HasColumnType("varchar(50)")
  5854. .HasCharSet("utf8")
  5855. .HasCollation("utf8_general_ci");
  5856. entity.Property(e => e.MobAppKey)
  5857. .HasColumnType("varchar(50)")
  5858. .HasCharSet("utf8")
  5859. .HasCollation("utf8_general_ci");
  5860. entity.Property(e => e.MobAppSecret)
  5861. .HasColumnType("varchar(50)")
  5862. .HasCharSet("utf8")
  5863. .HasCollation("utf8_general_ci");
  5864. entity.Property(e => e.QqAndroidAppId)
  5865. .HasColumnType("varchar(50)")
  5866. .HasCharSet("utf8")
  5867. .HasCollation("utf8_general_ci");
  5868. entity.Property(e => e.QqAndroidAppKey)
  5869. .HasColumnType("varchar(50)")
  5870. .HasCharSet("utf8")
  5871. .HasCollation("utf8_general_ci");
  5872. entity.Property(e => e.QqIosAppId)
  5873. .HasColumnType("varchar(50)")
  5874. .HasCharSet("utf8")
  5875. .HasCollation("utf8_general_ci");
  5876. entity.Property(e => e.QqIosAppKey)
  5877. .HasColumnType("varchar(50)")
  5878. .HasCharSet("utf8")
  5879. .HasCollation("utf8_general_ci");
  5880. entity.Property(e => e.ServerIp)
  5881. .HasColumnType("varchar(15)")
  5882. .HasCharSet("utf8")
  5883. .HasCollation("utf8_general_ci");
  5884. entity.Property(e => e.SmsApiDefaultTemplate)
  5885. .HasColumnType("varchar(200)")
  5886. .HasCharSet("utf8")
  5887. .HasCollation("utf8_general_ci");
  5888. entity.Property(e => e.SmsApiPwd)
  5889. .HasColumnType("varchar(50)")
  5890. .HasCharSet("utf8")
  5891. .HasCollation("utf8_general_ci");
  5892. entity.Property(e => e.SmsApiSign)
  5893. .HasColumnType("varchar(10)")
  5894. .HasCharSet("utf8")
  5895. .HasCollation("utf8_general_ci");
  5896. entity.Property(e => e.SmsApiUserId)
  5897. .HasColumnType("varchar(50)")
  5898. .HasCharSet("utf8")
  5899. .HasCollation("utf8_general_ci");
  5900. entity.Property(e => e.WeChatAppId)
  5901. .HasColumnType("varchar(50)")
  5902. .HasCharSet("utf8")
  5903. .HasCollation("utf8_general_ci");
  5904. entity.Property(e => e.WeChatAppSecret)
  5905. .HasColumnType("varchar(50)")
  5906. .HasCharSet("utf8")
  5907. .HasCollation("utf8_general_ci");
  5908. entity.Property(e => e.WeChatMchId)
  5909. .HasColumnType("varchar(20)")
  5910. .HasCharSet("utf8")
  5911. .HasCollation("utf8_general_ci");
  5912. entity.Property(e => e.WeChatMiniAppId)
  5913. .HasColumnType("varchar(50)")
  5914. .HasCharSet("utf8")
  5915. .HasCollation("utf8_general_ci");
  5916. entity.Property(e => e.WeChatMiniAppSecret)
  5917. .HasColumnType("varchar(50)")
  5918. .HasCharSet("utf8")
  5919. .HasCollation("utf8_general_ci");
  5920. entity.Property(e => e.WeChatOpenAppId)
  5921. .HasColumnType("varchar(50)")
  5922. .HasCharSet("utf8")
  5923. .HasCollation("utf8_general_ci");
  5924. entity.Property(e => e.WeChatOpenAppSecret)
  5925. .HasColumnType("varchar(50)")
  5926. .HasCharSet("utf8")
  5927. .HasCollation("utf8_general_ci");
  5928. entity.Property(e => e.WeChatPayKey)
  5929. .HasColumnType("varchar(50)")
  5930. .HasCharSet("utf8")
  5931. .HasCollation("utf8_general_ci");
  5932. });
  5933. modelBuilder.Entity<PullNewAct>(entity =>
  5934. {
  5935. entity.Property(e => e.Id).HasColumnType("int(11)");
  5936. entity.Property(e => e.ActEffectEndDate).HasColumnType("datetime");
  5937. entity.Property(e => e.ActEffectStartDate).HasColumnType("datetime");
  5938. entity.Property(e => e.ActStdCond)
  5939. .HasColumnType("varchar(32)")
  5940. .HasCharSet("utf8")
  5941. .HasCollation("utf8_general_ci");
  5942. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5943. entity.Property(e => e.CreateMan)
  5944. .HasColumnType("varchar(50)")
  5945. .HasCharSet("utf8")
  5946. .HasCollation("utf8_general_ci");
  5947. entity.Property(e => e.ProductName)
  5948. .HasColumnType("varchar(32)")
  5949. .HasCharSet("utf8")
  5950. .HasCollation("utf8_general_ci");
  5951. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  5952. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5953. entity.Property(e => e.Remark)
  5954. .HasColumnType("varchar(128)")
  5955. .HasCharSet("utf8")
  5956. .HasCollation("utf8_general_ci");
  5957. entity.Property(e => e.SeoDescription)
  5958. .HasColumnType("varchar(500)")
  5959. .HasCharSet("utf8")
  5960. .HasCollation("utf8_general_ci");
  5961. entity.Property(e => e.SeoKeyword)
  5962. .HasColumnType("varchar(200)")
  5963. .HasCharSet("utf8")
  5964. .HasCollation("utf8_general_ci");
  5965. entity.Property(e => e.SeoTitle)
  5966. .HasColumnType("varchar(100)")
  5967. .HasCharSet("utf8")
  5968. .HasCollation("utf8_general_ci");
  5969. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  5970. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5971. entity.Property(e => e.Status).HasColumnType("int(11)");
  5972. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5973. entity.Property(e => e.UpdateMan)
  5974. .HasColumnType("varchar(50)")
  5975. .HasCharSet("utf8")
  5976. .HasCollation("utf8_general_ci");
  5977. entity.Property(e => e.Version).HasColumnType("int(11)");
  5978. });
  5979. modelBuilder.Entity<PullNewDetail>(entity =>
  5980. {
  5981. entity.Property(e => e.Id).HasColumnType("int(11)");
  5982. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  5983. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5984. entity.Property(e => e.CreateMan)
  5985. .HasColumnType("varchar(50)")
  5986. .HasCharSet("utf8")
  5987. .HasCollation("utf8_general_ci");
  5988. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5989. entity.Property(e => e.RecMallBrandId).HasColumnType("int(11)");
  5990. entity.Property(e => e.RecMallOrder)
  5991. .HasColumnType("varchar(32)")
  5992. .HasCharSet("utf8")
  5993. .HasCollation("utf8_general_ci");
  5994. entity.Property(e => e.RecMallOrderTime).HasColumnType("datetime");
  5995. entity.Property(e => e.RecMallProductName)
  5996. .HasColumnType("varchar(32)")
  5997. .HasCharSet("utf8")
  5998. .HasCollation("utf8_general_ci");
  5999. entity.Property(e => e.RecMallProductNum).HasColumnType("int(11)");
  6000. entity.Property(e => e.RecMallSendTime).HasColumnType("datetime");
  6001. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  6002. entity.Property(e => e.RecUserType).HasColumnType("int(11)");
  6003. entity.Property(e => e.RegDate).HasColumnType("datetime");
  6004. entity.Property(e => e.Remark)
  6005. .HasColumnType("varchar(64)")
  6006. .HasCharSet("utf8")
  6007. .HasCollation("utf8_general_ci");
  6008. entity.Property(e => e.RewardStatus).HasColumnType("int(11)");
  6009. entity.Property(e => e.SeoDescription)
  6010. .HasColumnType("varchar(500)")
  6011. .HasCharSet("utf8")
  6012. .HasCollation("utf8_general_ci");
  6013. entity.Property(e => e.SeoKeyword)
  6014. .HasColumnType("varchar(200)")
  6015. .HasCharSet("utf8")
  6016. .HasCollation("utf8_general_ci");
  6017. entity.Property(e => e.SeoTitle)
  6018. .HasColumnType("varchar(100)")
  6019. .HasCharSet("utf8")
  6020. .HasCollation("utf8_general_ci");
  6021. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6022. entity.Property(e => e.StatDate)
  6023. .HasColumnType("varchar(8)")
  6024. .HasCharSet("utf8")
  6025. .HasCollation("utf8_general_ci");
  6026. entity.Property(e => e.StatMonth)
  6027. .HasColumnType("varchar(6)")
  6028. .HasCharSet("utf8")
  6029. .HasCollation("utf8_general_ci");
  6030. entity.Property(e => e.StatType).HasColumnType("int(11)");
  6031. entity.Property(e => e.Status).HasColumnType("int(11)");
  6032. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6033. entity.Property(e => e.UpdateMan)
  6034. .HasColumnType("varchar(50)")
  6035. .HasCharSet("utf8")
  6036. .HasCollation("utf8_general_ci");
  6037. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6038. entity.Property(e => e.Version).HasColumnType("int(11)");
  6039. });
  6040. modelBuilder.Entity<PullnewSummary>(entity =>
  6041. {
  6042. entity.Property(e => e.Id).HasColumnType("int(11)");
  6043. entity.Property(e => e.BizSnDelayDay).HasColumnType("int(11)");
  6044. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6045. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6046. entity.Property(e => e.CreateMan)
  6047. .HasColumnType("varchar(50)")
  6048. .HasCharSet("utf8")
  6049. .HasCollation("utf8_general_ci");
  6050. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6051. entity.Property(e => e.RecUserAuthNum).HasColumnType("int(11)");
  6052. entity.Property(e => e.RecUserDeliveryStdNum).HasColumnType("int(11)");
  6053. entity.Property(e => e.Remark)
  6054. .HasColumnType("varchar(64)")
  6055. .HasCharSet("utf8")
  6056. .HasCollation("utf8_general_ci");
  6057. entity.Property(e => e.RuleSnDelayDay).HasColumnType("int(11)");
  6058. entity.Property(e => e.SeoDescription)
  6059. .HasColumnType("varchar(500)")
  6060. .HasCharSet("utf8")
  6061. .HasCollation("utf8_general_ci");
  6062. entity.Property(e => e.SeoKeyword)
  6063. .HasColumnType("varchar(200)")
  6064. .HasCharSet("utf8")
  6065. .HasCollation("utf8_general_ci");
  6066. entity.Property(e => e.SeoTitle)
  6067. .HasColumnType("varchar(100)")
  6068. .HasCharSet("utf8")
  6069. .HasCollation("utf8_general_ci");
  6070. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6071. entity.Property(e => e.StatDate)
  6072. .HasColumnType("varchar(8)")
  6073. .HasCharSet("utf8")
  6074. .HasCollation("utf8_general_ci");
  6075. entity.Property(e => e.StatMonth)
  6076. .HasColumnType("varchar(6)")
  6077. .HasCharSet("utf8")
  6078. .HasCollation("utf8_general_ci");
  6079. entity.Property(e => e.Status).HasColumnType("int(11)");
  6080. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6081. entity.Property(e => e.UpdateMan)
  6082. .HasColumnType("varchar(50)")
  6083. .HasCharSet("utf8")
  6084. .HasCollation("utf8_general_ci");
  6085. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6086. entity.Property(e => e.Version).HasColumnType("int(11)");
  6087. });
  6088. modelBuilder.Entity<RightDic>(entity =>
  6089. {
  6090. entity.Property(e => e.Id)
  6091. .HasColumnName("ID")
  6092. .HasColumnType("varchar(50)")
  6093. .HasCharSet("utf8")
  6094. .HasCollation("utf8_general_ci");
  6095. entity.Property(e => e.Icon)
  6096. .HasColumnType("varchar(50)")
  6097. .HasCharSet("utf8")
  6098. .HasCollation("utf8_general_ci");
  6099. entity.Property(e => e.MainDataList)
  6100. .HasColumnType("bit(1)")
  6101. .HasDefaultValueSql("b'0'");
  6102. entity.Property(e => e.MainMenu)
  6103. .HasColumnType("bit(1)")
  6104. .HasDefaultValueSql("b'0'");
  6105. entity.Property(e => e.MainStat)
  6106. .HasColumnType("bit(1)")
  6107. .HasDefaultValueSql("b'0'");
  6108. entity.Property(e => e.Name)
  6109. .HasColumnType("varchar(50)")
  6110. .HasCharSet("utf8")
  6111. .HasCollation("utf8_general_ci");
  6112. entity.Property(e => e.OtherRight)
  6113. .HasColumnType("varchar(500)")
  6114. .HasCharSet("utf8")
  6115. .HasCollation("utf8_general_ci");
  6116. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  6117. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6118. entity.Property(e => e.Url)
  6119. .HasColumnType("varchar(200)")
  6120. .HasCharSet("utf8")
  6121. .HasCollation("utf8_general_ci");
  6122. });
  6123. modelBuilder.Entity<ServiceCenter>(entity =>
  6124. {
  6125. entity.Property(e => e.Id).HasColumnType("int(11)");
  6126. entity.Property(e => e.CategoryId).HasColumnType("int(11)");
  6127. entity.Property(e => e.Content)
  6128. .HasColumnType("longtext")
  6129. .HasCharSet("utf8")
  6130. .HasCollation("utf8_general_ci");
  6131. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6132. entity.Property(e => e.CreateMan)
  6133. .HasColumnType("varchar(50)")
  6134. .HasCharSet("utf8")
  6135. .HasCollation("utf8_general_ci");
  6136. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6137. entity.Property(e => e.SeoDescription)
  6138. .HasColumnType("varchar(500)")
  6139. .HasCharSet("utf8")
  6140. .HasCollation("utf8_general_ci");
  6141. entity.Property(e => e.SeoKeyword)
  6142. .HasColumnType("varchar(200)")
  6143. .HasCharSet("utf8")
  6144. .HasCollation("utf8_general_ci");
  6145. entity.Property(e => e.SeoTitle)
  6146. .HasColumnType("varchar(100)")
  6147. .HasCharSet("utf8")
  6148. .HasCollation("utf8_general_ci");
  6149. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6150. entity.Property(e => e.Status).HasColumnType("int(11)");
  6151. entity.Property(e => e.SubTitle)
  6152. .HasColumnType("varchar(50)")
  6153. .HasCharSet("utf8")
  6154. .HasCollation("utf8_general_ci");
  6155. entity.Property(e => e.Title)
  6156. .HasColumnType("varchar(50)")
  6157. .HasCharSet("utf8")
  6158. .HasCollation("utf8_general_ci");
  6159. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6160. entity.Property(e => e.UpdateMan)
  6161. .HasColumnType("varchar(50)")
  6162. .HasCharSet("utf8")
  6163. .HasCollation("utf8_general_ci");
  6164. entity.Property(e => e.Version).HasColumnType("int(11)");
  6165. });
  6166. modelBuilder.Entity<StoreBalance>(entity =>
  6167. {
  6168. entity.Property(e => e.Id).HasColumnType("int(11)");
  6169. entity.Property(e => e.AfterLaveNum).HasColumnType("int(11)");
  6170. entity.Property(e => e.AfterOutNum).HasColumnType("int(11)");
  6171. entity.Property(e => e.AfterTotalNum).HasColumnType("int(11)");
  6172. entity.Property(e => e.BeforeLaveNum).HasColumnType("int(11)");
  6173. entity.Property(e => e.BeforeOutNum).HasColumnType("int(11)");
  6174. entity.Property(e => e.BeforeTotalNum).HasColumnType("int(11)");
  6175. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6176. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6177. entity.Property(e => e.CreateMan)
  6178. .HasColumnType("varchar(50)")
  6179. .HasCharSet("utf8")
  6180. .HasCollation("utf8_general_ci");
  6181. entity.Property(e => e.OpStoreNum).HasColumnType("int(11)");
  6182. entity.Property(e => e.OpSymbol)
  6183. .HasColumnType("varchar(1)")
  6184. .HasCharSet("utf8")
  6185. .HasCollation("utf8_general_ci");
  6186. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6187. entity.Property(e => e.SeoDescription)
  6188. .HasColumnType("varchar(500)")
  6189. .HasCharSet("utf8")
  6190. .HasCollation("utf8_general_ci");
  6191. entity.Property(e => e.SeoKeyword)
  6192. .HasColumnType("varchar(200)")
  6193. .HasCharSet("utf8")
  6194. .HasCollation("utf8_general_ci");
  6195. entity.Property(e => e.SeoTitle)
  6196. .HasColumnType("varchar(100)")
  6197. .HasCharSet("utf8")
  6198. .HasCollation("utf8_general_ci");
  6199. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6200. entity.Property(e => e.Status).HasColumnType("int(11)");
  6201. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6202. entity.Property(e => e.TransRecordNo)
  6203. .HasColumnType("varchar(32)")
  6204. .HasCharSet("utf8")
  6205. .HasCollation("utf8_general_ci");
  6206. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6207. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6208. entity.Property(e => e.UpdateMan)
  6209. .HasColumnType("varchar(50)")
  6210. .HasCharSet("utf8")
  6211. .HasCollation("utf8_general_ci");
  6212. entity.Property(e => e.Version).HasColumnType("int(11)");
  6213. });
  6214. modelBuilder.Entity<StoreChangeHistory>(entity =>
  6215. {
  6216. entity.Property(e => e.Id).HasColumnType("int(11)");
  6217. entity.Property(e => e.BizBatchNo)
  6218. .HasColumnType("varchar(32)")
  6219. .HasCharSet("utf8")
  6220. .HasCollation("utf8_general_ci");
  6221. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6222. entity.Property(e => e.ChangeRecordNo)
  6223. .HasColumnType("varchar(32)")
  6224. .HasCharSet("utf8")
  6225. .HasCollation("utf8_general_ci");
  6226. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6227. entity.Property(e => e.CreateMan)
  6228. .HasColumnType("varchar(50)")
  6229. .HasCharSet("utf8")
  6230. .HasCollation("utf8_general_ci");
  6231. entity.Property(e => e.DeviceModel)
  6232. .HasColumnType("varchar(32)")
  6233. .HasCharSet("utf8")
  6234. .HasCollation("utf8_general_ci");
  6235. entity.Property(e => e.DeviceType)
  6236. .HasColumnType("varchar(32)")
  6237. .HasCharSet("utf8")
  6238. .HasCollation("utf8_general_ci");
  6239. entity.Property(e => e.DeviceVendor)
  6240. .HasColumnType("varchar(32)")
  6241. .HasCharSet("utf8")
  6242. .HasCollation("utf8_general_ci");
  6243. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6244. entity.Property(e => e.FromRemark)
  6245. .HasColumnType("varchar(64)")
  6246. .HasCharSet("utf8")
  6247. .HasCollation("utf8_general_ci");
  6248. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6249. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6250. entity.Property(e => e.SeoDescription)
  6251. .HasColumnType("varchar(500)")
  6252. .HasCharSet("utf8")
  6253. .HasCollation("utf8_general_ci");
  6254. entity.Property(e => e.SeoKeyword)
  6255. .HasColumnType("varchar(200)")
  6256. .HasCharSet("utf8")
  6257. .HasCollation("utf8_general_ci");
  6258. entity.Property(e => e.SeoTitle)
  6259. .HasColumnType("varchar(100)")
  6260. .HasCharSet("utf8")
  6261. .HasCollation("utf8_general_ci");
  6262. entity.Property(e => e.SnNo)
  6263. .HasColumnType("varchar(32)")
  6264. .HasCharSet("utf8")
  6265. .HasCollation("utf8_general_ci");
  6266. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6267. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6268. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6269. entity.Property(e => e.Status).HasColumnType("int(11)");
  6270. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6271. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6272. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6273. entity.Property(e => e.ToRemark)
  6274. .HasColumnType("varchar(64)")
  6275. .HasCharSet("utf8")
  6276. .HasCollation("utf8_general_ci");
  6277. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6278. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6279. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6280. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6281. entity.Property(e => e.UpdateMan)
  6282. .HasColumnType("varchar(50)")
  6283. .HasCharSet("utf8")
  6284. .HasCollation("utf8_general_ci");
  6285. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6286. entity.Property(e => e.Version).HasColumnType("int(11)");
  6287. });
  6288. modelBuilder.Entity<StoreForCode>(entity =>
  6289. {
  6290. entity.HasKey(e => e.Code)
  6291. .HasName("PRIMARY");
  6292. entity.Property(e => e.Code)
  6293. .HasColumnType("varchar(30)")
  6294. .HasCharSet("utf8")
  6295. .HasCollation("utf8_general_ci");
  6296. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6297. });
  6298. modelBuilder.Entity<StoreForName>(entity =>
  6299. {
  6300. entity.HasKey(e => e.Name)
  6301. .HasName("PRIMARY");
  6302. entity.Property(e => e.Name)
  6303. .HasColumnType("varchar(30)")
  6304. .HasCharSet("utf8")
  6305. .HasCollation("utf8_general_ci");
  6306. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6307. });
  6308. modelBuilder.Entity<StoreHouse>(entity =>
  6309. {
  6310. entity.Property(e => e.Id).HasColumnType("int(11)");
  6311. entity.Property(e => e.Address)
  6312. .HasColumnType("varchar(128)")
  6313. .HasCharSet("utf8")
  6314. .HasCollation("utf8_general_ci");
  6315. entity.Property(e => e.Areas)
  6316. .HasColumnType("varchar(30)")
  6317. .HasCharSet("utf8")
  6318. .HasCollation("utf8_general_ci");
  6319. entity.Property(e => e.BrandId)
  6320. .HasColumnType("varchar(30)")
  6321. .HasCharSet("utf8")
  6322. .HasCollation("utf8_general_ci");
  6323. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6324. entity.Property(e => e.CreateMan)
  6325. .HasColumnType("varchar(50)")
  6326. .HasCharSet("utf8")
  6327. .HasCollation("utf8_general_ci");
  6328. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  6329. entity.Property(e => e.LimitTopUserId)
  6330. .HasColumnType("varchar(100)")
  6331. .HasCharSet("utf8")
  6332. .HasCollation("utf8_general_ci");
  6333. entity.Property(e => e.ManageMobile)
  6334. .HasColumnType("varchar(11)")
  6335. .HasCharSet("utf8")
  6336. .HasCollation("utf8_general_ci");
  6337. entity.Property(e => e.ManageUserId).HasColumnType("int(11)");
  6338. entity.Property(e => e.ManagerEmail)
  6339. .HasColumnType("varchar(32)")
  6340. .HasCharSet("utf8")
  6341. .HasCollation("utf8_general_ci");
  6342. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  6343. entity.Property(e => e.ParentNav)
  6344. .HasColumnType("longtext")
  6345. .HasCharSet("utf8")
  6346. .HasCollation("utf8_general_ci");
  6347. entity.Property(e => e.ParentStoreId).HasColumnType("int(11)");
  6348. entity.Property(e => e.ProductName)
  6349. .HasColumnType("varchar(32)")
  6350. .HasCharSet("utf8")
  6351. .HasCollation("utf8_general_ci");
  6352. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6353. entity.Property(e => e.Remark)
  6354. .HasColumnType("varchar(128)")
  6355. .HasCharSet("utf8")
  6356. .HasCollation("utf8_general_ci");
  6357. entity.Property(e => e.SeoDescription)
  6358. .HasColumnType("varchar(500)")
  6359. .HasCharSet("utf8")
  6360. .HasCollation("utf8_general_ci");
  6361. entity.Property(e => e.SeoKeyword)
  6362. .HasColumnType("varchar(200)")
  6363. .HasCharSet("utf8")
  6364. .HasCollation("utf8_general_ci");
  6365. entity.Property(e => e.SeoTitle)
  6366. .HasColumnType("varchar(100)")
  6367. .HasCharSet("utf8")
  6368. .HasCollation("utf8_general_ci");
  6369. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6370. entity.Property(e => e.Status).HasColumnType("int(11)");
  6371. entity.Property(e => e.StoreKind).HasColumnType("int(11)");
  6372. entity.Property(e => e.StoreName)
  6373. .HasColumnType("varchar(32)")
  6374. .HasCharSet("utf8")
  6375. .HasCollation("utf8_general_ci");
  6376. entity.Property(e => e.StoreNo)
  6377. .HasColumnType("varchar(16)")
  6378. .HasCharSet("utf8")
  6379. .HasCollation("utf8_general_ci");
  6380. entity.Property(e => e.StoreStatus).HasColumnType("int(11)");
  6381. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  6382. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  6383. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6384. entity.Property(e => e.UpdateMan)
  6385. .HasColumnType("varchar(50)")
  6386. .HasCharSet("utf8")
  6387. .HasCollation("utf8_general_ci");
  6388. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6389. entity.Property(e => e.Version).HasColumnType("int(11)");
  6390. });
  6391. modelBuilder.Entity<StoreMallOrderSummary>(entity =>
  6392. {
  6393. entity.Property(e => e.Id).HasColumnType("int(11)");
  6394. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6395. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6396. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6397. entity.Property(e => e.CreateMan)
  6398. .HasColumnType("varchar(50)")
  6399. .HasCharSet("utf8")
  6400. .HasCollation("utf8_general_ci");
  6401. entity.Property(e => e.OrderAmt).HasColumnType("int(11)");
  6402. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  6403. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6404. entity.Property(e => e.RefundAmt).HasColumnType("decimal(18,2)");
  6405. entity.Property(e => e.RefundOrderNum).HasColumnType("int(11)");
  6406. entity.Property(e => e.Remark)
  6407. .HasColumnType("varchar(64)")
  6408. .HasCharSet("utf8")
  6409. .HasCollation("utf8_general_ci");
  6410. entity.Property(e => e.SeoDescription)
  6411. .HasColumnType("varchar(500)")
  6412. .HasCharSet("utf8")
  6413. .HasCollation("utf8_general_ci");
  6414. entity.Property(e => e.SeoKeyword)
  6415. .HasColumnType("varchar(200)")
  6416. .HasCharSet("utf8")
  6417. .HasCollation("utf8_general_ci");
  6418. entity.Property(e => e.SeoTitle)
  6419. .HasColumnType("varchar(100)")
  6420. .HasCharSet("utf8")
  6421. .HasCollation("utf8_general_ci");
  6422. entity.Property(e => e.SettleAmt).HasColumnType("decimal(18,2)");
  6423. entity.Property(e => e.SettleStatus).HasColumnType("int(11)");
  6424. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6425. entity.Property(e => e.Status).HasColumnType("int(11)");
  6426. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6427. entity.Property(e => e.TradeMonth)
  6428. .HasColumnType("varchar(6)")
  6429. .HasCharSet("utf8")
  6430. .HasCollation("utf8_general_ci");
  6431. entity.Property(e => e.UnitPrice).HasColumnType("decimal(18,2)");
  6432. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6433. entity.Property(e => e.UpdateMan)
  6434. .HasColumnType("varchar(50)")
  6435. .HasCharSet("utf8")
  6436. .HasCollation("utf8_general_ci");
  6437. entity.Property(e => e.Version).HasColumnType("int(11)");
  6438. });
  6439. modelBuilder.Entity<StoreSnActivateSummary>(entity =>
  6440. {
  6441. entity.Property(e => e.Id).HasColumnType("int(11)");
  6442. entity.Property(e => e.ActivateNum).HasColumnType("int(11)");
  6443. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6444. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6445. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6446. entity.Property(e => e.CreateMan)
  6447. .HasColumnType("varchar(50)")
  6448. .HasCharSet("utf8")
  6449. .HasCollation("utf8_general_ci");
  6450. entity.Property(e => e.EffectActNum).HasColumnType("int(11)");
  6451. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6452. entity.Property(e => e.RejectActNum).HasColumnType("int(11)");
  6453. entity.Property(e => e.Remark)
  6454. .HasColumnType("varchar(64)")
  6455. .HasCharSet("utf8")
  6456. .HasCollation("utf8_general_ci");
  6457. entity.Property(e => e.SeoDescription)
  6458. .HasColumnType("varchar(500)")
  6459. .HasCharSet("utf8")
  6460. .HasCollation("utf8_general_ci");
  6461. entity.Property(e => e.SeoKeyword)
  6462. .HasColumnType("varchar(200)")
  6463. .HasCharSet("utf8")
  6464. .HasCollation("utf8_general_ci");
  6465. entity.Property(e => e.SeoTitle)
  6466. .HasColumnType("varchar(100)")
  6467. .HasCharSet("utf8")
  6468. .HasCollation("utf8_general_ci");
  6469. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6470. entity.Property(e => e.Status).HasColumnType("int(11)");
  6471. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6472. entity.Property(e => e.TradeDate)
  6473. .HasColumnType("varchar(8)")
  6474. .HasCharSet("utf8")
  6475. .HasCollation("utf8_general_ci");
  6476. entity.Property(e => e.TradeMonth)
  6477. .HasColumnType("varchar(6)")
  6478. .HasCharSet("utf8")
  6479. .HasCollation("utf8_general_ci");
  6480. entity.Property(e => e.TransferActNum).HasColumnType("int(11)");
  6481. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6482. entity.Property(e => e.UpdateMan)
  6483. .HasColumnType("varchar(50)")
  6484. .HasCharSet("utf8")
  6485. .HasCollation("utf8_general_ci");
  6486. entity.Property(e => e.UserApplyNum).HasColumnType("int(11)");
  6487. entity.Property(e => e.Version).HasColumnType("int(11)");
  6488. });
  6489. modelBuilder.Entity<StoreStockChange>(entity =>
  6490. {
  6491. entity.Property(e => e.Id).HasColumnType("int(11)");
  6492. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  6493. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  6494. entity.Property(e => e.BindMerchant).HasColumnType("int(11)");
  6495. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  6496. entity.Property(e => e.BizBatchNo)
  6497. .HasColumnType("varchar(32)")
  6498. .HasCharSet("utf8")
  6499. .HasCollation("utf8_general_ci");
  6500. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6501. entity.Property(e => e.BrandType)
  6502. .HasColumnType("varchar(10)")
  6503. .HasCharSet("utf8")
  6504. .HasCollation("utf8_general_ci");
  6505. entity.Property(e => e.ChangeNo)
  6506. .HasColumnType("varchar(32)")
  6507. .HasCharSet("utf8")
  6508. .HasCollation("utf8_general_ci");
  6509. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6510. entity.Property(e => e.CreateMan)
  6511. .HasColumnType("varchar(50)")
  6512. .HasCharSet("utf8")
  6513. .HasCollation("utf8_general_ci");
  6514. entity.Property(e => e.DeviceModel)
  6515. .HasColumnType("varchar(32)")
  6516. .HasCharSet("utf8")
  6517. .HasCollation("utf8_general_ci");
  6518. entity.Property(e => e.DeviceType)
  6519. .HasColumnType("varchar(32)")
  6520. .HasCharSet("utf8")
  6521. .HasCollation("utf8_general_ci");
  6522. entity.Property(e => e.DeviceVendor)
  6523. .HasColumnType("varchar(32)")
  6524. .HasCharSet("utf8")
  6525. .HasCollation("utf8_general_ci");
  6526. entity.Property(e => e.ExpressNo)
  6527. .HasColumnType("varchar(32)")
  6528. .HasCharSet("utf8")
  6529. .HasCollation("utf8_general_ci");
  6530. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6531. entity.Property(e => e.FromRemark)
  6532. .HasColumnType("varchar(64)")
  6533. .HasCharSet("utf8")
  6534. .HasCollation("utf8_general_ci");
  6535. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6536. entity.Property(e => e.ProductName)
  6537. .HasColumnType("varchar(32)")
  6538. .HasCharSet("utf8")
  6539. .HasCollation("utf8_general_ci");
  6540. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6541. entity.Property(e => e.SeoDescription)
  6542. .HasColumnType("varchar(500)")
  6543. .HasCharSet("utf8")
  6544. .HasCollation("utf8_general_ci");
  6545. entity.Property(e => e.SeoKeyword)
  6546. .HasColumnType("varchar(200)")
  6547. .HasCharSet("utf8")
  6548. .HasCollation("utf8_general_ci");
  6549. entity.Property(e => e.SeoTitle)
  6550. .HasColumnType("varchar(100)")
  6551. .HasCharSet("utf8")
  6552. .HasCollation("utf8_general_ci");
  6553. entity.Property(e => e.SnNo)
  6554. .HasColumnType("varchar(32)")
  6555. .HasCharSet("utf8")
  6556. .HasCollation("utf8_general_ci");
  6557. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  6558. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6559. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6560. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6561. entity.Property(e => e.Status).HasColumnType("int(11)");
  6562. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6563. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6564. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6565. entity.Property(e => e.ToRemark)
  6566. .HasColumnType("varchar(64)")
  6567. .HasCharSet("utf8")
  6568. .HasCollation("utf8_general_ci");
  6569. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6570. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6571. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6572. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6573. entity.Property(e => e.UpdateMan)
  6574. .HasColumnType("varchar(50)")
  6575. .HasCharSet("utf8")
  6576. .HasCollation("utf8_general_ci");
  6577. entity.Property(e => e.Version).HasColumnType("int(11)");
  6578. });
  6579. modelBuilder.Entity<StoreSwapSn>(entity =>
  6580. {
  6581. entity.Property(e => e.Id).HasColumnType("int(11)");
  6582. entity.Property(e => e.ActType).HasColumnType("int(11)");
  6583. entity.Property(e => e.ActTypeDesc)
  6584. .HasColumnType("varchar(64)")
  6585. .HasCharSet("utf8")
  6586. .HasCollation("utf8_general_ci");
  6587. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6588. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6589. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6590. entity.Property(e => e.CreateMan)
  6591. .HasColumnType("varchar(50)")
  6592. .HasCharSet("utf8")
  6593. .HasCollation("utf8_general_ci");
  6594. entity.Property(e => e.PosType)
  6595. .HasColumnType("varchar(32)")
  6596. .HasCharSet("utf8")
  6597. .HasCollation("utf8_general_ci");
  6598. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6599. entity.Property(e => e.Remark)
  6600. .HasColumnType("varchar(128)")
  6601. .HasCharSet("utf8")
  6602. .HasCollation("utf8_general_ci");
  6603. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  6604. entity.Property(e => e.SeoDescription)
  6605. .HasColumnType("varchar(500)")
  6606. .HasCharSet("utf8")
  6607. .HasCollation("utf8_general_ci");
  6608. entity.Property(e => e.SeoKeyword)
  6609. .HasColumnType("varchar(200)")
  6610. .HasCharSet("utf8")
  6611. .HasCollation("utf8_general_ci");
  6612. entity.Property(e => e.SeoTitle)
  6613. .HasColumnType("varchar(100)")
  6614. .HasCharSet("utf8")
  6615. .HasCollation("utf8_general_ci");
  6616. entity.Property(e => e.SnNo)
  6617. .HasColumnType("varchar(32)")
  6618. .HasCharSet("utf8")
  6619. .HasCollation("utf8_general_ci");
  6620. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  6621. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6622. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6623. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  6624. entity.Property(e => e.Status).HasColumnType("int(11)");
  6625. entity.Property(e => e.SwapApplyDate).HasColumnType("datetime");
  6626. entity.Property(e => e.SwapApplyOrderNo)
  6627. .HasColumnType("varchar(32)")
  6628. .HasCharSet("utf8")
  6629. .HasCollation("utf8_general_ci");
  6630. entity.Property(e => e.SwapExtProductTypes)
  6631. .HasColumnType("varchar(16)")
  6632. .HasCharSet("utf8")
  6633. .HasCollation("utf8_general_ci");
  6634. entity.Property(e => e.SwapSnNo)
  6635. .HasColumnType("varchar(32)")
  6636. .HasCharSet("utf8")
  6637. .HasCollation("utf8_general_ci");
  6638. entity.Property(e => e.SwapStatus).HasColumnType("int(11)");
  6639. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6640. entity.Property(e => e.UpdateMan)
  6641. .HasColumnType("varchar(50)")
  6642. .HasCharSet("utf8")
  6643. .HasCollation("utf8_general_ci");
  6644. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6645. entity.Property(e => e.Version).HasColumnType("int(11)");
  6646. });
  6647. modelBuilder.Entity<SysAdmin>(entity =>
  6648. {
  6649. entity.Property(e => e.Id).HasColumnType("int(11)");
  6650. entity.Property(e => e.AdminName)
  6651. .HasColumnType("varchar(50)")
  6652. .HasCharSet("utf8")
  6653. .HasCollation("utf8_general_ci");
  6654. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6655. entity.Property(e => e.CreateMan)
  6656. .HasColumnType("varchar(50)")
  6657. .HasCharSet("utf8")
  6658. .HasCollation("utf8_general_ci");
  6659. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  6660. entity.Property(e => e.Password)
  6661. .HasColumnType("varchar(32)")
  6662. .HasCharSet("utf8")
  6663. .HasCollation("utf8_general_ci");
  6664. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6665. entity.Property(e => e.RealName)
  6666. .HasColumnType("varchar(50)")
  6667. .HasCharSet("utf8")
  6668. .HasCollation("utf8_general_ci");
  6669. entity.Property(e => e.Role)
  6670. .HasColumnType("varchar(30)")
  6671. .HasCharSet("utf8")
  6672. .HasCollation("utf8_general_ci");
  6673. entity.Property(e => e.SeoDescription)
  6674. .HasColumnType("varchar(500)")
  6675. .HasCharSet("utf8")
  6676. .HasCollation("utf8_general_ci");
  6677. entity.Property(e => e.SeoKeyword)
  6678. .HasColumnType("varchar(200)")
  6679. .HasCharSet("utf8")
  6680. .HasCollation("utf8_general_ci");
  6681. entity.Property(e => e.SeoTitle)
  6682. .HasColumnType("varchar(100)")
  6683. .HasCharSet("utf8")
  6684. .HasCollation("utf8_general_ci");
  6685. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6686. entity.Property(e => e.Status).HasColumnType("int(11)");
  6687. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6688. entity.Property(e => e.UpdateMan)
  6689. .HasColumnType("varchar(50)")
  6690. .HasCharSet("utf8")
  6691. .HasCollation("utf8_general_ci");
  6692. entity.Property(e => e.Version).HasColumnType("int(11)");
  6693. });
  6694. modelBuilder.Entity<SysAdminRole>(entity =>
  6695. {
  6696. entity.Property(e => e.Id).HasColumnType("int(11)");
  6697. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6698. entity.Property(e => e.CreateMan)
  6699. .HasColumnType("varchar(50)")
  6700. .HasCharSet("utf8")
  6701. .HasCollation("utf8_general_ci");
  6702. entity.Property(e => e.Details)
  6703. .HasColumnType("longtext")
  6704. .HasCharSet("utf8")
  6705. .HasCollation("utf8_general_ci");
  6706. entity.Property(e => e.Name)
  6707. .HasColumnType("varchar(50)")
  6708. .HasCharSet("utf8")
  6709. .HasCollation("utf8_general_ci");
  6710. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6711. entity.Property(e => e.RightInfo)
  6712. .HasColumnType("longtext")
  6713. .HasCharSet("utf8")
  6714. .HasCollation("utf8_general_ci");
  6715. entity.Property(e => e.SeoDescription)
  6716. .HasColumnType("varchar(500)")
  6717. .HasCharSet("utf8")
  6718. .HasCollation("utf8_general_ci");
  6719. entity.Property(e => e.SeoKeyword)
  6720. .HasColumnType("varchar(200)")
  6721. .HasCharSet("utf8")
  6722. .HasCollation("utf8_general_ci");
  6723. entity.Property(e => e.SeoTitle)
  6724. .HasColumnType("varchar(100)")
  6725. .HasCharSet("utf8")
  6726. .HasCollation("utf8_general_ci");
  6727. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6728. entity.Property(e => e.Status).HasColumnType("int(11)");
  6729. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6730. entity.Property(e => e.UpdateMan)
  6731. .HasColumnType("varchar(50)")
  6732. .HasCharSet("utf8")
  6733. .HasCollation("utf8_general_ci");
  6734. entity.Property(e => e.Version).HasColumnType("int(11)");
  6735. });
  6736. modelBuilder.Entity<SysLog>(entity =>
  6737. {
  6738. entity.Property(e => e.Id).HasColumnType("int(11)");
  6739. entity.Property(e => e.Contents)
  6740. .HasColumnType("varchar(200)")
  6741. .HasCharSet("utf8")
  6742. .HasCollation("utf8_general_ci");
  6743. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6744. entity.Property(e => e.CreateMan)
  6745. .HasColumnType("varchar(50)")
  6746. .HasCharSet("utf8")
  6747. .HasCollation("utf8_general_ci");
  6748. });
  6749. modelBuilder.Entity<SysRechargeRecord>(entity =>
  6750. {
  6751. entity.Property(e => e.Id).HasColumnType("int(11)");
  6752. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  6753. entity.Property(e => e.BatchCode)
  6754. .HasColumnType("varchar(32)")
  6755. .HasCharSet("utf8")
  6756. .HasCollation("utf8_general_ci");
  6757. entity.Property(e => e.BizTime).HasColumnType("datetime");
  6758. entity.Property(e => e.BizType).HasColumnType("int(11)");
  6759. entity.Property(e => e.ClientIp)
  6760. .HasColumnType("varchar(15)")
  6761. .HasCharSet("utf8")
  6762. .HasCollation("utf8_general_ci");
  6763. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6764. entity.Property(e => e.CreateMan)
  6765. .HasColumnType("varchar(50)")
  6766. .HasCharSet("utf8")
  6767. .HasCollation("utf8_general_ci");
  6768. entity.Property(e => e.PartnerTradeNo)
  6769. .HasColumnType("varchar(32)")
  6770. .HasCharSet("utf8")
  6771. .HasCollation("utf8_general_ci");
  6772. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6773. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6774. entity.Property(e => e.RechargeRecNo)
  6775. .HasColumnType("varchar(32)")
  6776. .HasCharSet("utf8")
  6777. .HasCollation("utf8_general_ci");
  6778. entity.Property(e => e.SeoDescription)
  6779. .HasColumnType("varchar(500)")
  6780. .HasCharSet("utf8")
  6781. .HasCollation("utf8_general_ci");
  6782. entity.Property(e => e.SeoKeyword)
  6783. .HasColumnType("varchar(200)")
  6784. .HasCharSet("utf8")
  6785. .HasCollation("utf8_general_ci");
  6786. entity.Property(e => e.SeoTitle)
  6787. .HasColumnType("varchar(100)")
  6788. .HasCharSet("utf8")
  6789. .HasCollation("utf8_general_ci");
  6790. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6791. entity.Property(e => e.Status).HasColumnType("int(11)");
  6792. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  6793. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6794. entity.Property(e => e.UpdateMan)
  6795. .HasColumnType("varchar(50)")
  6796. .HasCharSet("utf8")
  6797. .HasCollation("utf8_general_ci");
  6798. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6799. entity.Property(e => e.Version).HasColumnType("int(11)");
  6800. });
  6801. modelBuilder.Entity<SystemSet>(entity =>
  6802. {
  6803. entity.Property(e => e.Id).HasColumnType("int(11)");
  6804. entity.Property(e => e.Address)
  6805. .HasColumnType("varchar(100)")
  6806. .HasCharSet("utf8")
  6807. .HasCollation("utf8_general_ci");
  6808. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6809. entity.Property(e => e.CreateMan)
  6810. .HasColumnType("varchar(50)")
  6811. .HasCharSet("utf8")
  6812. .HasCollation("utf8_general_ci");
  6813. entity.Property(e => e.IndexDescription)
  6814. .HasColumnType("longtext")
  6815. .HasCharSet("utf8")
  6816. .HasCollation("utf8_general_ci");
  6817. entity.Property(e => e.IndexKeyword)
  6818. .HasColumnType("varchar(200)")
  6819. .HasCharSet("utf8")
  6820. .HasCollation("utf8_general_ci");
  6821. entity.Property(e => e.Logo)
  6822. .HasColumnType("varchar(200)")
  6823. .HasCharSet("utf8")
  6824. .HasCollation("utf8_general_ci");
  6825. entity.Property(e => e.Phone)
  6826. .HasColumnType("varchar(100)")
  6827. .HasCharSet("utf8")
  6828. .HasCollation("utf8_general_ci");
  6829. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6830. entity.Property(e => e.RightInfo)
  6831. .HasColumnType("longtext")
  6832. .HasCharSet("utf8")
  6833. .HasCollation("utf8_general_ci");
  6834. entity.Property(e => e.SeoDescription)
  6835. .HasColumnType("varchar(500)")
  6836. .HasCharSet("utf8")
  6837. .HasCollation("utf8_general_ci");
  6838. entity.Property(e => e.SeoKeyword)
  6839. .HasColumnType("varchar(200)")
  6840. .HasCharSet("utf8")
  6841. .HasCollation("utf8_general_ci");
  6842. entity.Property(e => e.SeoTitle)
  6843. .HasColumnType("varchar(100)")
  6844. .HasCharSet("utf8")
  6845. .HasCollation("utf8_general_ci");
  6846. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6847. entity.Property(e => e.StartAdPhoto)
  6848. .HasColumnType("varchar(200)")
  6849. .HasCharSet("utf8")
  6850. .HasCollation("utf8_general_ci");
  6851. entity.Property(e => e.Status).HasColumnType("int(11)");
  6852. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6853. entity.Property(e => e.UpdateMan)
  6854. .HasColumnType("varchar(50)")
  6855. .HasCharSet("utf8")
  6856. .HasCollation("utf8_general_ci");
  6857. entity.Property(e => e.UploadAutoWater)
  6858. .HasColumnType("bit(1)")
  6859. .HasDefaultValueSql("b'0'");
  6860. entity.Property(e => e.UploadAutoZoom)
  6861. .HasColumnType("bit(1)")
  6862. .HasDefaultValueSql("b'0'");
  6863. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  6864. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  6865. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  6866. entity.Property(e => e.UploadExt)
  6867. .HasColumnType("varchar(100)")
  6868. .HasCharSet("utf8")
  6869. .HasCollation("utf8_general_ci");
  6870. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  6871. entity.Property(e => e.UploadOss)
  6872. .HasColumnType("bit(1)")
  6873. .HasDefaultValueSql("b'0'");
  6874. entity.Property(e => e.UploadWaterPath)
  6875. .HasColumnType("varchar(200)")
  6876. .HasCharSet("utf8")
  6877. .HasCollation("utf8_general_ci");
  6878. entity.Property(e => e.UploadWaterPosition)
  6879. .HasColumnType("varchar(15)")
  6880. .HasCharSet("utf8")
  6881. .HasCollation("utf8_general_ci");
  6882. entity.Property(e => e.Version).HasColumnType("int(11)");
  6883. entity.Property(e => e.WebName)
  6884. .HasColumnType("varchar(50)")
  6885. .HasCharSet("utf8")
  6886. .HasCollation("utf8_general_ci");
  6887. entity.Property(e => e.WebStatCode)
  6888. .HasColumnType("longtext")
  6889. .HasCharSet("utf8")
  6890. .HasCollation("utf8_general_ci");
  6891. entity.Property(e => e.WebUrl)
  6892. .HasColumnType("varchar(200)")
  6893. .HasCharSet("utf8")
  6894. .HasCollation("utf8_general_ci");
  6895. });
  6896. modelBuilder.Entity<TeamApply>(entity =>
  6897. {
  6898. entity.Property(e => e.Id).HasColumnType("int(11)");
  6899. entity.Property(e => e.Areas)
  6900. .HasColumnType("varchar(30)")
  6901. .HasCharSet("utf8")
  6902. .HasCollation("utf8_general_ci");
  6903. entity.Property(e => e.AuditRemark)
  6904. .HasColumnType("varchar(64)")
  6905. .HasCharSet("utf8")
  6906. .HasCollation("utf8_general_ci");
  6907. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  6908. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  6909. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6910. entity.Property(e => e.CreateMan)
  6911. .HasColumnType("varchar(50)")
  6912. .HasCharSet("utf8")
  6913. .HasCollation("utf8_general_ci");
  6914. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  6915. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  6916. entity.Property(e => e.EnterEndDate).HasColumnType("datetime");
  6917. entity.Property(e => e.EnterStartDate).HasColumnType("datetime");
  6918. entity.Property(e => e.ManagerName)
  6919. .HasColumnType("varchar(32)")
  6920. .HasCharSet("utf8")
  6921. .HasCollation("utf8_general_ci");
  6922. entity.Property(e => e.ManagerNo)
  6923. .HasColumnType("varchar(32)")
  6924. .HasCharSet("utf8")
  6925. .HasCollation("utf8_general_ci");
  6926. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  6927. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  6928. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  6929. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6930. entity.Property(e => e.Remark)
  6931. .HasColumnType("varchar(64)")
  6932. .HasCharSet("utf8")
  6933. .HasCollation("utf8_general_ci");
  6934. entity.Property(e => e.SeoDescription)
  6935. .HasColumnType("varchar(500)")
  6936. .HasCharSet("utf8")
  6937. .HasCollation("utf8_general_ci");
  6938. entity.Property(e => e.SeoKeyword)
  6939. .HasColumnType("varchar(200)")
  6940. .HasCharSet("utf8")
  6941. .HasCollation("utf8_general_ci");
  6942. entity.Property(e => e.SeoTitle)
  6943. .HasColumnType("varchar(100)")
  6944. .HasCharSet("utf8")
  6945. .HasCollation("utf8_general_ci");
  6946. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6947. entity.Property(e => e.Status).HasColumnType("int(11)");
  6948. entity.Property(e => e.TeamName)
  6949. .HasColumnType("varchar(32)")
  6950. .HasCharSet("utf8")
  6951. .HasCollation("utf8_general_ci");
  6952. entity.Property(e => e.TeamNo)
  6953. .HasColumnType("varchar(32)")
  6954. .HasCharSet("utf8")
  6955. .HasCollation("utf8_general_ci");
  6956. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  6957. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  6958. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6959. entity.Property(e => e.UpdateMan)
  6960. .HasColumnType("varchar(50)")
  6961. .HasCharSet("utf8")
  6962. .HasCollation("utf8_general_ci");
  6963. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6964. entity.Property(e => e.Version).HasColumnType("int(11)");
  6965. entity.Property(e => e.WatchWord)
  6966. .HasColumnType("varchar(32)")
  6967. .HasCharSet("utf8")
  6968. .HasCollation("utf8_general_ci");
  6969. });
  6970. modelBuilder.Entity<TeamApplyForTeamName>(entity =>
  6971. {
  6972. entity.HasKey(e => e.TeamName)
  6973. .HasName("PRIMARY");
  6974. entity.Property(e => e.TeamName)
  6975. .HasColumnType("varchar(32)")
  6976. .HasCharSet("utf8")
  6977. .HasCollation("utf8_general_ci");
  6978. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  6979. });
  6980. modelBuilder.Entity<TeamApplyForTeamNo>(entity =>
  6981. {
  6982. entity.HasKey(e => e.TeamNo)
  6983. .HasName("PRIMARY");
  6984. entity.Property(e => e.TeamNo)
  6985. .HasColumnType("varchar(32)")
  6986. .HasCharSet("utf8")
  6987. .HasCollation("utf8_general_ci");
  6988. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  6989. });
  6990. modelBuilder.Entity<TeamBlackList>(entity =>
  6991. {
  6992. entity.Property(e => e.Id).HasColumnType("int(11)");
  6993. entity.Property(e => e.BlackStatus).HasColumnType("int(11)");
  6994. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6995. entity.Property(e => e.CreateMan)
  6996. .HasColumnType("varchar(50)")
  6997. .HasCharSet("utf8")
  6998. .HasCollation("utf8_general_ci");
  6999. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7000. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7001. entity.Property(e => e.ManagerName)
  7002. .HasColumnType("varchar(32)")
  7003. .HasCharSet("utf8")
  7004. .HasCollation("utf8_general_ci");
  7005. entity.Property(e => e.ManagerNo)
  7006. .HasColumnType("varchar(32)")
  7007. .HasCharSet("utf8")
  7008. .HasCollation("utf8_general_ci");
  7009. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7010. entity.Property(e => e.Remark)
  7011. .HasColumnType("varchar(64)")
  7012. .HasCharSet("utf8")
  7013. .HasCollation("utf8_general_ci");
  7014. entity.Property(e => e.SeoDescription)
  7015. .HasColumnType("varchar(500)")
  7016. .HasCharSet("utf8")
  7017. .HasCollation("utf8_general_ci");
  7018. entity.Property(e => e.SeoKeyword)
  7019. .HasColumnType("varchar(200)")
  7020. .HasCharSet("utf8")
  7021. .HasCollation("utf8_general_ci");
  7022. entity.Property(e => e.SeoTitle)
  7023. .HasColumnType("varchar(100)")
  7024. .HasCharSet("utf8")
  7025. .HasCollation("utf8_general_ci");
  7026. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7027. entity.Property(e => e.Status).HasColumnType("int(11)");
  7028. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7029. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7030. entity.Property(e => e.UpdateMan)
  7031. .HasColumnType("varchar(50)")
  7032. .HasCharSet("utf8")
  7033. .HasCollation("utf8_general_ci");
  7034. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7035. entity.Property(e => e.Version).HasColumnType("int(11)");
  7036. });
  7037. modelBuilder.Entity<TeamConfig>(entity =>
  7038. {
  7039. entity.Property(e => e.Id).HasColumnType("int(11)");
  7040. entity.Property(e => e.BlacklistCycle).HasColumnType("int(11)");
  7041. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7042. entity.Property(e => e.CreateMan)
  7043. .HasColumnType("varchar(50)")
  7044. .HasCharSet("utf8")
  7045. .HasCollation("utf8_general_ci");
  7046. entity.Property(e => e.EnterEndMin).HasColumnType("int(11)");
  7047. entity.Property(e => e.LimitBuddyNo)
  7048. .HasColumnType("varchar(128)")
  7049. .HasCharSet("utf8")
  7050. .HasCollation("utf8_general_ci");
  7051. entity.Property(e => e.MaxCycleNum).HasColumnType("int(11)");
  7052. entity.Property(e => e.MaxStartDayLimit).HasColumnType("int(11)");
  7053. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7054. entity.Property(e => e.MinCycleNum).HasColumnType("int(11)");
  7055. entity.Property(e => e.MinStartDayLimit).HasColumnType("int(11)");
  7056. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7057. entity.Property(e => e.OverlineStatus)
  7058. .HasColumnType("bit(1)")
  7059. .HasDefaultValueSql("b'0'");
  7060. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7061. entity.Property(e => e.Remark)
  7062. .HasColumnType("varchar(64)")
  7063. .HasCharSet("utf8")
  7064. .HasCollation("utf8_general_ci");
  7065. entity.Property(e => e.SeoDescription)
  7066. .HasColumnType("varchar(500)")
  7067. .HasCharSet("utf8")
  7068. .HasCollation("utf8_general_ci");
  7069. entity.Property(e => e.SeoKeyword)
  7070. .HasColumnType("varchar(200)")
  7071. .HasCharSet("utf8")
  7072. .HasCollation("utf8_general_ci");
  7073. entity.Property(e => e.SeoTitle)
  7074. .HasColumnType("varchar(100)")
  7075. .HasCharSet("utf8")
  7076. .HasCollation("utf8_general_ci");
  7077. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7078. entity.Property(e => e.Status).HasColumnType("int(11)");
  7079. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7080. entity.Property(e => e.UpdateMan)
  7081. .HasColumnType("varchar(50)")
  7082. .HasCharSet("utf8")
  7083. .HasCollation("utf8_general_ci");
  7084. entity.Property(e => e.Version).HasColumnType("int(11)");
  7085. });
  7086. modelBuilder.Entity<TeamDayTop>(entity =>
  7087. {
  7088. entity.Property(e => e.Id).HasColumnType("int(11)");
  7089. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7090. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7091. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7092. entity.Property(e => e.CreateMan)
  7093. .HasColumnType("varchar(50)")
  7094. .HasCharSet("utf8")
  7095. .HasCollation("utf8_general_ci");
  7096. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7097. entity.Property(e => e.Remark)
  7098. .HasColumnType("varchar(64)")
  7099. .HasCharSet("utf8")
  7100. .HasCollation("utf8_general_ci");
  7101. entity.Property(e => e.SeoDescription)
  7102. .HasColumnType("varchar(500)")
  7103. .HasCharSet("utf8")
  7104. .HasCollation("utf8_general_ci");
  7105. entity.Property(e => e.SeoKeyword)
  7106. .HasColumnType("varchar(200)")
  7107. .HasCharSet("utf8")
  7108. .HasCollation("utf8_general_ci");
  7109. entity.Property(e => e.SeoTitle)
  7110. .HasColumnType("varchar(100)")
  7111. .HasCharSet("utf8")
  7112. .HasCollation("utf8_general_ci");
  7113. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7114. entity.Property(e => e.StatDate)
  7115. .HasColumnType("varchar(8)")
  7116. .HasCharSet("utf8")
  7117. .HasCollation("utf8_general_ci");
  7118. entity.Property(e => e.StatMonth)
  7119. .HasColumnType("varchar(6)")
  7120. .HasCharSet("utf8")
  7121. .HasCollation("utf8_general_ci");
  7122. entity.Property(e => e.Status).HasColumnType("int(11)");
  7123. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7124. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7125. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7126. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7127. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7128. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7129. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7130. entity.Property(e => e.UpdateMan)
  7131. .HasColumnType("varchar(50)")
  7132. .HasCharSet("utf8")
  7133. .HasCollation("utf8_general_ci");
  7134. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7135. entity.Property(e => e.Version).HasColumnType("int(11)");
  7136. });
  7137. modelBuilder.Entity<TeamOfferApply>(entity =>
  7138. {
  7139. entity.Property(e => e.Id).HasColumnType("int(11)");
  7140. entity.Property(e => e.Areas)
  7141. .HasColumnType("varchar(30)")
  7142. .HasCharSet("utf8")
  7143. .HasCollation("utf8_general_ci");
  7144. entity.Property(e => e.AuditRemark)
  7145. .HasColumnType("varchar(64)")
  7146. .HasCharSet("utf8")
  7147. .HasCollation("utf8_general_ci");
  7148. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7149. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7150. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7151. entity.Property(e => e.CreateMan)
  7152. .HasColumnType("varchar(50)")
  7153. .HasCharSet("utf8")
  7154. .HasCollation("utf8_general_ci");
  7155. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7156. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7157. entity.Property(e => e.EnterDate).HasColumnType("datetime");
  7158. entity.Property(e => e.ManagerName)
  7159. .HasColumnType("varchar(32)")
  7160. .HasCharSet("utf8")
  7161. .HasCollation("utf8_general_ci");
  7162. entity.Property(e => e.ManagerNo)
  7163. .HasColumnType("varchar(32)")
  7164. .HasCharSet("utf8")
  7165. .HasCollation("utf8_general_ci");
  7166. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7167. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7168. entity.Property(e => e.Remark)
  7169. .HasColumnType("varchar(64)")
  7170. .HasCharSet("utf8")
  7171. .HasCollation("utf8_general_ci");
  7172. entity.Property(e => e.SeoDescription)
  7173. .HasColumnType("varchar(500)")
  7174. .HasCharSet("utf8")
  7175. .HasCollation("utf8_general_ci");
  7176. entity.Property(e => e.SeoKeyword)
  7177. .HasColumnType("varchar(200)")
  7178. .HasCharSet("utf8")
  7179. .HasCollation("utf8_general_ci");
  7180. entity.Property(e => e.SeoTitle)
  7181. .HasColumnType("varchar(100)")
  7182. .HasCharSet("utf8")
  7183. .HasCollation("utf8_general_ci");
  7184. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7185. entity.Property(e => e.Status).HasColumnType("int(11)");
  7186. entity.Property(e => e.TeamApplyStatus).HasColumnType("int(11)");
  7187. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7188. entity.Property(e => e.TeamLeader).HasColumnType("int(11)");
  7189. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7190. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7191. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7192. entity.Property(e => e.UpdateMan)
  7193. .HasColumnType("varchar(50)")
  7194. .HasCharSet("utf8")
  7195. .HasCollation("utf8_general_ci");
  7196. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7197. entity.Property(e => e.Version).HasColumnType("int(11)");
  7198. });
  7199. modelBuilder.Entity<TeamPersonDayTop>(entity =>
  7200. {
  7201. entity.Property(e => e.Id).HasColumnType("int(11)");
  7202. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7203. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7204. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7205. entity.Property(e => e.CreateMan)
  7206. .HasColumnType("varchar(50)")
  7207. .HasCharSet("utf8")
  7208. .HasCollation("utf8_general_ci");
  7209. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7210. entity.Property(e => e.Remark)
  7211. .HasColumnType("varchar(64)")
  7212. .HasCharSet("utf8")
  7213. .HasCollation("utf8_general_ci");
  7214. entity.Property(e => e.SeoDescription)
  7215. .HasColumnType("varchar(500)")
  7216. .HasCharSet("utf8")
  7217. .HasCollation("utf8_general_ci");
  7218. entity.Property(e => e.SeoKeyword)
  7219. .HasColumnType("varchar(200)")
  7220. .HasCharSet("utf8")
  7221. .HasCollation("utf8_general_ci");
  7222. entity.Property(e => e.SeoTitle)
  7223. .HasColumnType("varchar(100)")
  7224. .HasCharSet("utf8")
  7225. .HasCollation("utf8_general_ci");
  7226. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7227. entity.Property(e => e.StatDate)
  7228. .HasColumnType("varchar(8)")
  7229. .HasCharSet("utf8")
  7230. .HasCollation("utf8_general_ci");
  7231. entity.Property(e => e.StatMonth)
  7232. .HasColumnType("varchar(6)")
  7233. .HasCharSet("utf8")
  7234. .HasCollation("utf8_general_ci");
  7235. entity.Property(e => e.Status).HasColumnType("int(11)");
  7236. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7237. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7238. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7239. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7240. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7241. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7242. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7243. entity.Property(e => e.UpdateMan)
  7244. .HasColumnType("varchar(50)")
  7245. .HasCharSet("utf8")
  7246. .HasCollation("utf8_general_ci");
  7247. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7248. entity.Property(e => e.Version).HasColumnType("int(11)");
  7249. });
  7250. modelBuilder.Entity<TradeDaySummary>(entity =>
  7251. {
  7252. entity.Property(e => e.Id).HasColumnType("int(11)");
  7253. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7254. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7255. entity.Property(e => e.CreateMan)
  7256. .HasColumnType("varchar(50)")
  7257. .HasCharSet("utf8")
  7258. .HasCollation("utf8_general_ci");
  7259. entity.Property(e => e.HelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7260. entity.Property(e => e.HelpDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7261. entity.Property(e => e.HelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7262. entity.Property(e => e.HelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7263. entity.Property(e => e.HelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7264. entity.Property(e => e.HelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7265. entity.Property(e => e.HelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7266. entity.Property(e => e.HelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7267. entity.Property(e => e.HelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7268. entity.Property(e => e.HelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7269. entity.Property(e => e.HelpNonDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7270. entity.Property(e => e.HelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7271. entity.Property(e => e.HelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7272. entity.Property(e => e.HelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7273. entity.Property(e => e.HelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7274. entity.Property(e => e.HelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7275. entity.Property(e => e.HelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7276. entity.Property(e => e.HelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7277. entity.Property(e => e.MgrName)
  7278. .HasColumnType("varchar(32)")
  7279. .HasCharSet("utf8")
  7280. .HasCollation("utf8_general_ci");
  7281. entity.Property(e => e.MgrNo)
  7282. .HasColumnType("varchar(16)")
  7283. .HasCharSet("utf8")
  7284. .HasCollation("utf8_general_ci");
  7285. entity.Property(e => e.NotHelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7286. entity.Property(e => e.NotHelpDirectDebitCapNum).HasColumnType("int(11)");
  7287. entity.Property(e => e.NotHelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7288. entity.Property(e => e.NotHelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7289. entity.Property(e => e.NotHelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7290. entity.Property(e => e.NotHelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7291. entity.Property(e => e.NotHelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7292. entity.Property(e => e.NotHelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7293. entity.Property(e => e.NotHelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7294. entity.Property(e => e.NotHelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7295. entity.Property(e => e.NotHelpNonDirectDebitCapNum).HasColumnType("int(11)");
  7296. entity.Property(e => e.NotHelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7297. entity.Property(e => e.NotHelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7298. entity.Property(e => e.NotHelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7299. entity.Property(e => e.NotHelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7300. entity.Property(e => e.NotHelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7301. entity.Property(e => e.NotHelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7302. entity.Property(e => e.NotHelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7303. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7304. entity.Property(e => e.SeoDescription)
  7305. .HasColumnType("varchar(500)")
  7306. .HasCharSet("utf8")
  7307. .HasCollation("utf8_general_ci");
  7308. entity.Property(e => e.SeoKeyword)
  7309. .HasColumnType("varchar(200)")
  7310. .HasCharSet("utf8")
  7311. .HasCollation("utf8_general_ci");
  7312. entity.Property(e => e.SeoTitle)
  7313. .HasColumnType("varchar(100)")
  7314. .HasCharSet("utf8")
  7315. .HasCollation("utf8_general_ci");
  7316. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7317. entity.Property(e => e.Status).HasColumnType("int(11)");
  7318. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7319. entity.Property(e => e.TradeDate)
  7320. .HasColumnType("varchar(8)")
  7321. .HasCharSet("utf8")
  7322. .HasCollation("utf8_general_ci");
  7323. entity.Property(e => e.TradeMonth)
  7324. .HasColumnType("varchar(6)")
  7325. .HasCharSet("utf8")
  7326. .HasCollation("utf8_general_ci");
  7327. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7328. entity.Property(e => e.UpdateMan)
  7329. .HasColumnType("varchar(50)")
  7330. .HasCharSet("utf8")
  7331. .HasCollation("utf8_general_ci");
  7332. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7333. entity.Property(e => e.Version).HasColumnType("int(11)");
  7334. });
  7335. modelBuilder.Entity<TradeRecord>(entity =>
  7336. {
  7337. entity.Property(e => e.Id).HasColumnType("int(11)");
  7338. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  7339. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7340. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  7341. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  7342. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7343. entity.Property(e => e.CreateMan)
  7344. .HasColumnType("varchar(50)")
  7345. .HasCharSet("utf8")
  7346. .HasCollation("utf8_general_ci");
  7347. entity.Property(e => e.DirectFlag)
  7348. .HasColumnType("bit(1)")
  7349. .HasDefaultValueSql("b'0'");
  7350. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  7351. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  7352. entity.Property(e => e.MerHelpFlag)
  7353. .HasColumnType("bit(1)")
  7354. .HasDefaultValueSql("b'0'");
  7355. entity.Property(e => e.MerNo)
  7356. .HasColumnType("varchar(32)")
  7357. .HasCharSet("utf8")
  7358. .HasCollation("utf8_general_ci");
  7359. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  7360. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7361. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  7362. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7363. entity.Property(e => e.RecordNo)
  7364. .HasColumnType("varchar(32)")
  7365. .HasCharSet("utf8")
  7366. .HasCollation("utf8_general_ci");
  7367. entity.Property(e => e.Remark)
  7368. .HasColumnType("varchar(64)")
  7369. .HasCharSet("utf8")
  7370. .HasCollation("utf8_general_ci");
  7371. entity.Property(e => e.SeoDescription)
  7372. .HasColumnType("varchar(500)")
  7373. .HasCharSet("utf8")
  7374. .HasCollation("utf8_general_ci");
  7375. entity.Property(e => e.SeoKeyword)
  7376. .HasColumnType("varchar(200)")
  7377. .HasCharSet("utf8")
  7378. .HasCollation("utf8_general_ci");
  7379. entity.Property(e => e.SeoTitle)
  7380. .HasColumnType("varchar(100)")
  7381. .HasCharSet("utf8")
  7382. .HasCollation("utf8_general_ci");
  7383. entity.Property(e => e.SnNo)
  7384. .HasColumnType("varchar(32)")
  7385. .HasCharSet("utf8")
  7386. .HasCollation("utf8_general_ci");
  7387. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7388. entity.Property(e => e.Status).HasColumnType("int(11)");
  7389. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7390. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  7391. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  7392. entity.Property(e => e.TradeSerialNo)
  7393. .HasColumnType("varchar(48)")
  7394. .HasCharSet("utf8")
  7395. .HasCollation("utf8_general_ci");
  7396. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7397. entity.Property(e => e.UpdateMan)
  7398. .HasColumnType("varchar(50)")
  7399. .HasCharSet("utf8")
  7400. .HasCollation("utf8_general_ci");
  7401. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7402. entity.Property(e => e.Version).HasColumnType("int(11)");
  7403. });
  7404. modelBuilder.Entity<UploadParams>(entity =>
  7405. {
  7406. entity.Property(e => e.Id).HasColumnType("int(11)");
  7407. entity.Property(e => e.ColumnEnName)
  7408. .HasColumnType("varchar(50)")
  7409. .HasCharSet("utf8")
  7410. .HasCollation("utf8_general_ci");
  7411. entity.Property(e => e.ColumnName)
  7412. .HasColumnType("varchar(50)")
  7413. .HasCharSet("utf8")
  7414. .HasCollation("utf8_general_ci");
  7415. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7416. entity.Property(e => e.CreateMan)
  7417. .HasColumnType("varchar(50)")
  7418. .HasCharSet("utf8")
  7419. .HasCollation("utf8_general_ci");
  7420. entity.Property(e => e.ParamString)
  7421. .HasColumnType("varchar(200)")
  7422. .HasCharSet("utf8")
  7423. .HasCollation("utf8_general_ci");
  7424. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7425. entity.Property(e => e.SeoDescription)
  7426. .HasColumnType("varchar(500)")
  7427. .HasCharSet("utf8")
  7428. .HasCollation("utf8_general_ci");
  7429. entity.Property(e => e.SeoKeyword)
  7430. .HasColumnType("varchar(200)")
  7431. .HasCharSet("utf8")
  7432. .HasCollation("utf8_general_ci");
  7433. entity.Property(e => e.SeoTitle)
  7434. .HasColumnType("varchar(100)")
  7435. .HasCharSet("utf8")
  7436. .HasCollation("utf8_general_ci");
  7437. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7438. entity.Property(e => e.Status).HasColumnType("int(11)");
  7439. entity.Property(e => e.TableEnName)
  7440. .HasColumnType("varchar(50)")
  7441. .HasCharSet("utf8")
  7442. .HasCollation("utf8_general_ci");
  7443. entity.Property(e => e.TableName)
  7444. .HasColumnType("varchar(50)")
  7445. .HasCharSet("utf8")
  7446. .HasCollation("utf8_general_ci");
  7447. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7448. entity.Property(e => e.UpdateMan)
  7449. .HasColumnType("varchar(50)")
  7450. .HasCharSet("utf8")
  7451. .HasCollation("utf8_general_ci");
  7452. entity.Property(e => e.Version).HasColumnType("int(11)");
  7453. });
  7454. modelBuilder.Entity<UserAccount>(entity =>
  7455. {
  7456. entity.Property(e => e.Id).HasColumnType("int(11)");
  7457. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  7458. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  7459. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7460. entity.Property(e => e.CreateMan)
  7461. .HasColumnType("varchar(50)")
  7462. .HasCharSet("utf8")
  7463. .HasCollation("utf8_general_ci");
  7464. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  7465. entity.Property(e => e.LockStatus).HasColumnType("int(11)");
  7466. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7467. entity.Property(e => e.SeoDescription)
  7468. .HasColumnType("varchar(500)")
  7469. .HasCharSet("utf8")
  7470. .HasCollation("utf8_general_ci");
  7471. entity.Property(e => e.SeoKeyword)
  7472. .HasColumnType("varchar(200)")
  7473. .HasCharSet("utf8")
  7474. .HasCollation("utf8_general_ci");
  7475. entity.Property(e => e.SeoTitle)
  7476. .HasColumnType("varchar(100)")
  7477. .HasCharSet("utf8")
  7478. .HasCollation("utf8_general_ci");
  7479. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7480. entity.Property(e => e.Status).HasColumnType("int(11)");
  7481. entity.Property(e => e.TeamTotalOverProfit).HasColumnType("decimal(18,2)");
  7482. entity.Property(e => e.TeamTotalProfit).HasColumnType("decimal(18,2)");
  7483. entity.Property(e => e.TeamTotalServiceProfit).HasColumnType("decimal(18,2)");
  7484. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  7485. entity.Property(e => e.TotalOverProfit).HasColumnType("decimal(18,2)");
  7486. entity.Property(e => e.TotalProfit).HasColumnType("decimal(18,2)");
  7487. entity.Property(e => e.TotalServiceProfit).HasColumnType("decimal(18,2)");
  7488. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7489. entity.Property(e => e.UpdateMan)
  7490. .HasColumnType("varchar(50)")
  7491. .HasCharSet("utf8")
  7492. .HasCollation("utf8_general_ci");
  7493. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7494. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  7495. entity.Property(e => e.UserType).HasColumnType("int(11)");
  7496. entity.Property(e => e.Version).HasColumnType("int(11)");
  7497. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  7498. });
  7499. modelBuilder.Entity<UserAccountRecord>(entity =>
  7500. {
  7501. entity.Property(e => e.Id).HasColumnType("int(11)");
  7502. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  7503. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  7504. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  7505. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  7506. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  7507. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  7508. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  7509. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  7510. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7511. entity.Property(e => e.CreateMan)
  7512. .HasColumnType("varchar(50)")
  7513. .HasCharSet("utf8")
  7514. .HasCollation("utf8_general_ci");
  7515. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  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.Status).HasColumnType("int(11)");
  7535. entity.Property(e => e.TransRecordNo)
  7536. .HasColumnType("varchar(32)")
  7537. .HasCharSet("utf8")
  7538. .HasCollation("utf8_general_ci");
  7539. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7540. entity.Property(e => e.UpdateMan)
  7541. .HasColumnType("varchar(50)")
  7542. .HasCharSet("utf8")
  7543. .HasCollation("utf8_general_ci");
  7544. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7545. entity.Property(e => e.Version).HasColumnType("int(11)");
  7546. });
  7547. modelBuilder.Entity<UserAddress>(entity =>
  7548. {
  7549. entity.Property(e => e.Id).HasColumnType("int(11)");
  7550. entity.Property(e => e.Address)
  7551. .HasColumnType("varchar(100)")
  7552. .HasCharSet("utf8")
  7553. .HasCollation("utf8_general_ci");
  7554. entity.Property(e => e.Areas)
  7555. .HasColumnType("varchar(30)")
  7556. .HasCharSet("utf8")
  7557. .HasCollation("utf8_general_ci");
  7558. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7559. entity.Property(e => e.CreateMan)
  7560. .HasColumnType("varchar(50)")
  7561. .HasCharSet("utf8")
  7562. .HasCollation("utf8_general_ci");
  7563. entity.Property(e => e.IsDefault)
  7564. .HasColumnType("bit(1)")
  7565. .HasDefaultValueSql("b'0'");
  7566. entity.Property(e => e.Mobile)
  7567. .HasColumnType("varchar(11)")
  7568. .HasCharSet("utf8")
  7569. .HasCollation("utf8_general_ci");
  7570. entity.Property(e => e.PostalCode)
  7571. .HasColumnType("varchar(6)")
  7572. .HasCharSet("utf8")
  7573. .HasCollation("utf8_general_ci");
  7574. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7575. entity.Property(e => e.RealName)
  7576. .HasColumnType("varchar(10)")
  7577. .HasCharSet("utf8")
  7578. .HasCollation("utf8_general_ci");
  7579. entity.Property(e => e.SeoDescription)
  7580. .HasColumnType("varchar(500)")
  7581. .HasCharSet("utf8")
  7582. .HasCollation("utf8_general_ci");
  7583. entity.Property(e => e.SeoKeyword)
  7584. .HasColumnType("varchar(200)")
  7585. .HasCharSet("utf8")
  7586. .HasCollation("utf8_general_ci");
  7587. entity.Property(e => e.SeoTitle)
  7588. .HasColumnType("varchar(100)")
  7589. .HasCharSet("utf8")
  7590. .HasCollation("utf8_general_ci");
  7591. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7592. entity.Property(e => e.Status).HasColumnType("int(11)");
  7593. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7594. entity.Property(e => e.UpdateMan)
  7595. .HasColumnType("varchar(50)")
  7596. .HasCharSet("utf8")
  7597. .HasCollation("utf8_general_ci");
  7598. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7599. entity.Property(e => e.Version).HasColumnType("int(11)");
  7600. });
  7601. modelBuilder.Entity<UserAuthRecord>(entity =>
  7602. {
  7603. entity.Property(e => e.Id).HasColumnType("int(11)");
  7604. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  7605. entity.Property(e => e.BankCardAccount)
  7606. .HasColumnType("varchar(32)")
  7607. .HasCharSet("utf8")
  7608. .HasCollation("utf8_general_ci");
  7609. entity.Property(e => e.BankMobile)
  7610. .HasColumnType("varchar(11)")
  7611. .HasCharSet("utf8")
  7612. .HasCollation("utf8_general_ci");
  7613. entity.Property(e => e.BankName)
  7614. .HasColumnType("varchar(64)")
  7615. .HasCharSet("utf8")
  7616. .HasCollation("utf8_general_ci");
  7617. entity.Property(e => e.ChannelCode)
  7618. .HasColumnType("varchar(16)")
  7619. .HasCharSet("utf8")
  7620. .HasCollation("utf8_general_ci");
  7621. entity.Property(e => e.ChannelName)
  7622. .HasColumnType("varchar(32)")
  7623. .HasCharSet("utf8")
  7624. .HasCollation("utf8_general_ci");
  7625. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7626. entity.Property(e => e.CreateMan)
  7627. .HasColumnType("varchar(50)")
  7628. .HasCharSet("utf8")
  7629. .HasCollation("utf8_general_ci");
  7630. entity.Property(e => e.IdcardNo)
  7631. .HasColumnType("varchar(18)")
  7632. .HasCharSet("utf8")
  7633. .HasCollation("utf8_general_ci");
  7634. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7635. entity.Property(e => e.RealName)
  7636. .HasColumnType("varchar(32)")
  7637. .HasCharSet("utf8")
  7638. .HasCollation("utf8_general_ci");
  7639. entity.Property(e => e.ReqData)
  7640. .HasColumnType("varchar(2048)")
  7641. .HasCharSet("utf8")
  7642. .HasCollation("utf8_general_ci");
  7643. entity.Property(e => e.ResData)
  7644. .HasColumnType("varchar(2048)")
  7645. .HasCharSet("utf8")
  7646. .HasCollation("utf8_general_ci");
  7647. entity.Property(e => e.ReturnCode)
  7648. .HasColumnType("varchar(32)")
  7649. .HasCharSet("utf8")
  7650. .HasCollation("utf8_general_ci");
  7651. entity.Property(e => e.ReturnMsg)
  7652. .HasColumnType("varchar(128)")
  7653. .HasCharSet("utf8")
  7654. .HasCollation("utf8_general_ci");
  7655. entity.Property(e => e.SeoDescription)
  7656. .HasColumnType("varchar(500)")
  7657. .HasCharSet("utf8")
  7658. .HasCollation("utf8_general_ci");
  7659. entity.Property(e => e.SeoKeyword)
  7660. .HasColumnType("varchar(200)")
  7661. .HasCharSet("utf8")
  7662. .HasCollation("utf8_general_ci");
  7663. entity.Property(e => e.SeoTitle)
  7664. .HasColumnType("varchar(100)")
  7665. .HasCharSet("utf8")
  7666. .HasCollation("utf8_general_ci");
  7667. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7668. entity.Property(e => e.Status).HasColumnType("int(11)");
  7669. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7670. entity.Property(e => e.UpdateMan)
  7671. .HasColumnType("varchar(50)")
  7672. .HasCharSet("utf8")
  7673. .HasCollation("utf8_general_ci");
  7674. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7675. entity.Property(e => e.Version).HasColumnType("int(11)");
  7676. });
  7677. modelBuilder.Entity<UserBack>(entity =>
  7678. {
  7679. entity.Property(e => e.Id).HasColumnType("int(11)");
  7680. entity.Property(e => e.BackKind).HasColumnType("int(11)");
  7681. entity.Property(e => e.BackStatus).HasColumnType("int(11)");
  7682. entity.Property(e => e.Content)
  7683. .HasColumnType("varchar(100)")
  7684. .HasCharSet("utf8")
  7685. .HasCollation("utf8_general_ci");
  7686. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7687. entity.Property(e => e.CreateMan)
  7688. .HasColumnType("varchar(50)")
  7689. .HasCharSet("utf8")
  7690. .HasCollation("utf8_general_ci");
  7691. entity.Property(e => e.IsPhoneCallBack)
  7692. .HasColumnType("bit(1)")
  7693. .HasDefaultValueSql("b'0'");
  7694. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7695. entity.Property(e => e.ReplyContent)
  7696. .HasColumnType("mediumtext")
  7697. .HasCharSet("utf8")
  7698. .HasCollation("utf8_general_ci");
  7699. entity.Property(e => e.SeoDescription)
  7700. .HasColumnType("varchar(500)")
  7701. .HasCharSet("utf8")
  7702. .HasCollation("utf8_general_ci");
  7703. entity.Property(e => e.SeoKeyword)
  7704. .HasColumnType("varchar(200)")
  7705. .HasCharSet("utf8")
  7706. .HasCollation("utf8_general_ci");
  7707. entity.Property(e => e.SeoTitle)
  7708. .HasColumnType("varchar(100)")
  7709. .HasCharSet("utf8")
  7710. .HasCollation("utf8_general_ci");
  7711. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7712. entity.Property(e => e.Status).HasColumnType("int(11)");
  7713. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7714. entity.Property(e => e.UpdateMan)
  7715. .HasColumnType("varchar(50)")
  7716. .HasCharSet("utf8")
  7717. .HasCollation("utf8_general_ci");
  7718. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7719. entity.Property(e => e.Version).HasColumnType("int(11)");
  7720. });
  7721. modelBuilder.Entity<UserBackKind>(entity =>
  7722. {
  7723. entity.Property(e => e.Id).HasColumnType("int(11)");
  7724. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7725. entity.Property(e => e.CreateMan)
  7726. .HasColumnType("varchar(50)")
  7727. .HasCharSet("utf8")
  7728. .HasCollation("utf8_general_ci");
  7729. entity.Property(e => e.Name)
  7730. .HasColumnType("varchar(50)")
  7731. .HasCharSet("utf8")
  7732. .HasCollation("utf8_general_ci");
  7733. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7734. entity.Property(e => e.SeoDescription)
  7735. .HasColumnType("varchar(500)")
  7736. .HasCharSet("utf8")
  7737. .HasCollation("utf8_general_ci");
  7738. entity.Property(e => e.SeoKeyword)
  7739. .HasColumnType("varchar(200)")
  7740. .HasCharSet("utf8")
  7741. .HasCollation("utf8_general_ci");
  7742. entity.Property(e => e.SeoTitle)
  7743. .HasColumnType("varchar(100)")
  7744. .HasCharSet("utf8")
  7745. .HasCollation("utf8_general_ci");
  7746. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7747. entity.Property(e => e.Status).HasColumnType("int(11)");
  7748. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7749. entity.Property(e => e.UpdateMan)
  7750. .HasColumnType("varchar(50)")
  7751. .HasCharSet("utf8")
  7752. .HasCollation("utf8_general_ci");
  7753. entity.Property(e => e.Version).HasColumnType("int(11)");
  7754. });
  7755. modelBuilder.Entity<UserBalanceTop>(entity =>
  7756. {
  7757. entity.Property(e => e.Id).HasColumnType("int(11)");
  7758. entity.Property(e => e.Balance).HasColumnType("decimal(18,2)");
  7759. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7760. entity.Property(e => e.CreateMan)
  7761. .HasColumnType("varchar(50)")
  7762. .HasCharSet("utf8")
  7763. .HasCollation("utf8_general_ci");
  7764. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7765. entity.Property(e => e.SeoDescription)
  7766. .HasColumnType("varchar(500)")
  7767. .HasCharSet("utf8")
  7768. .HasCollation("utf8_general_ci");
  7769. entity.Property(e => e.SeoKeyword)
  7770. .HasColumnType("varchar(200)")
  7771. .HasCharSet("utf8")
  7772. .HasCollation("utf8_general_ci");
  7773. entity.Property(e => e.SeoTitle)
  7774. .HasColumnType("varchar(100)")
  7775. .HasCharSet("utf8")
  7776. .HasCollation("utf8_general_ci");
  7777. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7778. entity.Property(e => e.StatDate)
  7779. .HasColumnType("varchar(8)")
  7780. .HasCharSet("utf8")
  7781. .HasCollation("utf8_general_ci");
  7782. entity.Property(e => e.StatMonth)
  7783. .HasColumnType("varchar(6)")
  7784. .HasCharSet("utf8")
  7785. .HasCollation("utf8_general_ci");
  7786. entity.Property(e => e.Status).HasColumnType("int(11)");
  7787. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7788. entity.Property(e => e.UpdateMan)
  7789. .HasColumnType("varchar(50)")
  7790. .HasCharSet("utf8")
  7791. .HasCollation("utf8_general_ci");
  7792. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7793. entity.Property(e => e.Version).HasColumnType("int(11)");
  7794. });
  7795. modelBuilder.Entity<UserCar>(entity =>
  7796. {
  7797. entity.Property(e => e.Id).HasColumnType("int(11)");
  7798. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  7799. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7800. entity.Property(e => e.CreateMan)
  7801. .HasColumnType("varchar(50)")
  7802. .HasCharSet("utf8")
  7803. .HasCollation("utf8_general_ci");
  7804. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7805. entity.Property(e => e.NormId).HasColumnType("int(11)");
  7806. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  7807. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7808. entity.Property(e => e.SeoDescription)
  7809. .HasColumnType("varchar(500)")
  7810. .HasCharSet("utf8")
  7811. .HasCollation("utf8_general_ci");
  7812. entity.Property(e => e.SeoKeyword)
  7813. .HasColumnType("varchar(200)")
  7814. .HasCharSet("utf8")
  7815. .HasCollation("utf8_general_ci");
  7816. entity.Property(e => e.SeoTitle)
  7817. .HasColumnType("varchar(100)")
  7818. .HasCharSet("utf8")
  7819. .HasCollation("utf8_general_ci");
  7820. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7821. entity.Property(e => e.Status).HasColumnType("int(11)");
  7822. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7823. entity.Property(e => e.UpdateMan)
  7824. .HasColumnType("varchar(50)")
  7825. .HasCharSet("utf8")
  7826. .HasCollation("utf8_general_ci");
  7827. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7828. entity.Property(e => e.Version).HasColumnType("int(11)");
  7829. });
  7830. modelBuilder.Entity<UserCardForWeChat>(entity =>
  7831. {
  7832. entity.Property(e => e.Id).HasColumnType("int(11)");
  7833. entity.Property(e => e.BrandName)
  7834. .HasColumnType("varchar(12)")
  7835. .HasCharSet("utf8")
  7836. .HasCollation("utf8_general_ci");
  7837. entity.Property(e => e.CardId)
  7838. .HasColumnType("varchar(50)")
  7839. .HasCharSet("utf8")
  7840. .HasCollation("utf8_general_ci");
  7841. entity.Property(e => e.CardType)
  7842. .HasColumnType("varchar(30)")
  7843. .HasCharSet("utf8")
  7844. .HasCollation("utf8_general_ci");
  7845. entity.Property(e => e.CodeType)
  7846. .HasColumnType("varchar(50)")
  7847. .HasCharSet("utf8")
  7848. .HasCollation("utf8_general_ci");
  7849. entity.Property(e => e.Color)
  7850. .HasColumnType("varchar(20)")
  7851. .HasCharSet("utf8")
  7852. .HasCollation("utf8_general_ci");
  7853. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7854. entity.Property(e => e.CreateMan)
  7855. .HasColumnType("varchar(50)")
  7856. .HasCharSet("utf8")
  7857. .HasCollation("utf8_general_ci");
  7858. entity.Property(e => e.DateType)
  7859. .HasColumnType("varchar(50)")
  7860. .HasCharSet("utf8")
  7861. .HasCollation("utf8_general_ci");
  7862. entity.Property(e => e.Description)
  7863. .HasColumnType("varchar(1024)")
  7864. .HasCharSet("utf8")
  7865. .HasCollation("utf8_general_ci");
  7866. entity.Property(e => e.EnterName)
  7867. .HasColumnType("varchar(15)")
  7868. .HasCharSet("utf8")
  7869. .HasCollation("utf8_general_ci");
  7870. entity.Property(e => e.EnterTips)
  7871. .HasColumnType("varchar(6)")
  7872. .HasCharSet("utf8")
  7873. .HasCollation("utf8_general_ci");
  7874. entity.Property(e => e.EnterUrl)
  7875. .HasColumnType("varchar(200)")
  7876. .HasCharSet("utf8")
  7877. .HasCollation("utf8_general_ci");
  7878. entity.Property(e => e.LogoUrl)
  7879. .HasColumnType("varchar(200)")
  7880. .HasCharSet("utf8")
  7881. .HasCollation("utf8_general_ci");
  7882. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7883. entity.Property(e => e.Notice)
  7884. .HasColumnType("varchar(16)")
  7885. .HasCharSet("utf8")
  7886. .HasCollation("utf8_general_ci");
  7887. entity.Property(e => e.Prerogative)
  7888. .HasColumnType("varchar(1024)")
  7889. .HasCharSet("utf8")
  7890. .HasCollation("utf8_general_ci");
  7891. entity.Property(e => e.Quantity).HasColumnType("int(11)");
  7892. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7893. entity.Property(e => e.SeoDescription)
  7894. .HasColumnType("varchar(500)")
  7895. .HasCharSet("utf8")
  7896. .HasCollation("utf8_general_ci");
  7897. entity.Property(e => e.SeoKeyword)
  7898. .HasColumnType("varchar(200)")
  7899. .HasCharSet("utf8")
  7900. .HasCollation("utf8_general_ci");
  7901. entity.Property(e => e.SeoTitle)
  7902. .HasColumnType("varchar(100)")
  7903. .HasCharSet("utf8")
  7904. .HasCollation("utf8_general_ci");
  7905. entity.Property(e => e.Sku)
  7906. .HasColumnType("mediumtext")
  7907. .HasCharSet("utf8")
  7908. .HasCollation("utf8_general_ci");
  7909. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7910. entity.Property(e => e.Status).HasColumnType("int(11)");
  7911. entity.Property(e => e.SupplyBalance)
  7912. .HasColumnType("bit(1)")
  7913. .HasDefaultValueSql("b'0'");
  7914. entity.Property(e => e.SupplyBonus)
  7915. .HasColumnType("bit(1)")
  7916. .HasDefaultValueSql("b'0'");
  7917. entity.Property(e => e.Title)
  7918. .HasColumnType("varchar(9)")
  7919. .HasCharSet("utf8")
  7920. .HasCollation("utf8_general_ci");
  7921. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7922. entity.Property(e => e.UpdateMan)
  7923. .HasColumnType("varchar(50)")
  7924. .HasCharSet("utf8")
  7925. .HasCollation("utf8_general_ci");
  7926. entity.Property(e => e.Version).HasColumnType("int(11)");
  7927. });
  7928. modelBuilder.Entity<UserCardRecord>(entity =>
  7929. {
  7930. entity.Property(e => e.Id).HasColumnType("int(11)");
  7931. entity.Property(e => e.CardId).HasColumnType("int(11)");
  7932. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  7933. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7934. entity.Property(e => e.CreateMan)
  7935. .HasColumnType("varchar(50)")
  7936. .HasCharSet("utf8")
  7937. .HasCollation("utf8_general_ci");
  7938. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7939. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7940. entity.Property(e => e.SeoDescription)
  7941. .HasColumnType("varchar(500)")
  7942. .HasCharSet("utf8")
  7943. .HasCollation("utf8_general_ci");
  7944. entity.Property(e => e.SeoKeyword)
  7945. .HasColumnType("varchar(200)")
  7946. .HasCharSet("utf8")
  7947. .HasCollation("utf8_general_ci");
  7948. entity.Property(e => e.SeoTitle)
  7949. .HasColumnType("varchar(100)")
  7950. .HasCharSet("utf8")
  7951. .HasCollation("utf8_general_ci");
  7952. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7953. entity.Property(e => e.Status).HasColumnType("int(11)");
  7954. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7955. entity.Property(e => e.UpdateMan)
  7956. .HasColumnType("varchar(50)")
  7957. .HasCharSet("utf8")
  7958. .HasCollation("utf8_general_ci");
  7959. entity.Property(e => e.Version).HasColumnType("int(11)");
  7960. });
  7961. modelBuilder.Entity<UserCashRecord>(entity =>
  7962. {
  7963. entity.Property(e => e.Id).HasColumnType("int(11)");
  7964. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  7965. entity.Property(e => e.CashOrderNo)
  7966. .HasColumnType("varchar(32)")
  7967. .HasCharSet("utf8")
  7968. .HasCollation("utf8_general_ci");
  7969. entity.Property(e => e.ChanelName)
  7970. .HasColumnType("varchar(32)")
  7971. .HasCharSet("utf8")
  7972. .HasCollation("utf8_general_ci");
  7973. entity.Property(e => e.ChannelCode)
  7974. .HasColumnType("varchar(16)")
  7975. .HasCharSet("utf8")
  7976. .HasCollation("utf8_general_ci");
  7977. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7978. entity.Property(e => e.CreateMan)
  7979. .HasColumnType("varchar(50)")
  7980. .HasCharSet("utf8")
  7981. .HasCollation("utf8_general_ci");
  7982. entity.Property(e => e.IdCardNo)
  7983. .HasColumnType("varchar(18)")
  7984. .HasCharSet("utf8")
  7985. .HasCollation("utf8_general_ci");
  7986. entity.Property(e => e.Ip)
  7987. .HasColumnType("varchar(15)")
  7988. .HasCharSet("utf8")
  7989. .HasCollation("utf8_general_ci");
  7990. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  7991. entity.Property(e => e.MediaSource)
  7992. .HasColumnType("varchar(16)")
  7993. .HasCharSet("utf8")
  7994. .HasCollation("utf8_general_ci");
  7995. entity.Property(e => e.PayTradeNo)
  7996. .HasColumnType("varchar(32)")
  7997. .HasCharSet("utf8")
  7998. .HasCollation("utf8_general_ci");
  7999. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  8000. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8001. entity.Property(e => e.Remark)
  8002. .HasColumnType("varchar(128)")
  8003. .HasCharSet("utf8")
  8004. .HasCollation("utf8_general_ci");
  8005. entity.Property(e => e.ReqData)
  8006. .HasColumnType("varchar(2048)")
  8007. .HasCharSet("utf8")
  8008. .HasCollation("utf8_general_ci");
  8009. entity.Property(e => e.ResData)
  8010. .HasColumnType("varchar(2048)")
  8011. .HasCharSet("utf8")
  8012. .HasCollation("utf8_general_ci");
  8013. entity.Property(e => e.ReturnCode)
  8014. .HasColumnType("varchar(32)")
  8015. .HasCharSet("utf8")
  8016. .HasCollation("utf8_general_ci");
  8017. entity.Property(e => e.ReturnMsg)
  8018. .HasColumnType("varchar(128)")
  8019. .HasCharSet("utf8")
  8020. .HasCollation("utf8_general_ci");
  8021. entity.Property(e => e.SeoDescription)
  8022. .HasColumnType("varchar(500)")
  8023. .HasCharSet("utf8")
  8024. .HasCollation("utf8_general_ci");
  8025. entity.Property(e => e.SeoKeyword)
  8026. .HasColumnType("varchar(200)")
  8027. .HasCharSet("utf8")
  8028. .HasCollation("utf8_general_ci");
  8029. entity.Property(e => e.SeoTitle)
  8030. .HasColumnType("varchar(100)")
  8031. .HasCharSet("utf8")
  8032. .HasCollation("utf8_general_ci");
  8033. entity.Property(e => e.SettleBankCardNo)
  8034. .HasColumnType("varchar(32)")
  8035. .HasCharSet("utf8")
  8036. .HasCollation("utf8_general_ci");
  8037. entity.Property(e => e.SettleBankName)
  8038. .HasColumnType("varchar(64)")
  8039. .HasCharSet("utf8")
  8040. .HasCollation("utf8_general_ci");
  8041. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8042. entity.Property(e => e.Status).HasColumnType("int(11)");
  8043. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8044. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  8045. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  8046. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8047. entity.Property(e => e.UpdateMan)
  8048. .HasColumnType("varchar(50)")
  8049. .HasCharSet("utf8")
  8050. .HasCollation("utf8_general_ci");
  8051. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8052. entity.Property(e => e.Version).HasColumnType("int(11)");
  8053. });
  8054. modelBuilder.Entity<UserCenterIconList>(entity =>
  8055. {
  8056. entity.Property(e => e.Id).HasColumnType("int(11)");
  8057. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8058. entity.Property(e => e.CreateMan)
  8059. .HasColumnType("varchar(50)")
  8060. .HasCharSet("utf8")
  8061. .HasCollation("utf8_general_ci");
  8062. entity.Property(e => e.Icon)
  8063. .HasColumnType("varchar(200)")
  8064. .HasCharSet("utf8")
  8065. .HasCollation("utf8_general_ci");
  8066. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8067. entity.Property(e => e.SeoDescription)
  8068. .HasColumnType("varchar(500)")
  8069. .HasCharSet("utf8")
  8070. .HasCollation("utf8_general_ci");
  8071. entity.Property(e => e.SeoKeyword)
  8072. .HasColumnType("varchar(200)")
  8073. .HasCharSet("utf8")
  8074. .HasCollation("utf8_general_ci");
  8075. entity.Property(e => e.SeoTitle)
  8076. .HasColumnType("varchar(100)")
  8077. .HasCharSet("utf8")
  8078. .HasCollation("utf8_general_ci");
  8079. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8080. entity.Property(e => e.Status).HasColumnType("int(11)");
  8081. entity.Property(e => e.Title)
  8082. .HasColumnType("varchar(50)")
  8083. .HasCharSet("utf8")
  8084. .HasCollation("utf8_general_ci");
  8085. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8086. entity.Property(e => e.UpdateMan)
  8087. .HasColumnType("varchar(50)")
  8088. .HasCharSet("utf8")
  8089. .HasCollation("utf8_general_ci");
  8090. entity.Property(e => e.Url)
  8091. .HasColumnType("varchar(50)")
  8092. .HasCharSet("utf8")
  8093. .HasCollation("utf8_general_ci");
  8094. entity.Property(e => e.Version).HasColumnType("int(11)");
  8095. });
  8096. modelBuilder.Entity<UserCollection>(entity =>
  8097. {
  8098. entity.Property(e => e.Id).HasColumnType("int(11)");
  8099. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8100. entity.Property(e => e.CreateMan)
  8101. .HasColumnType("varchar(50)")
  8102. .HasCharSet("utf8")
  8103. .HasCollation("utf8_general_ci");
  8104. entity.Property(e => e.DataId).HasColumnType("int(11)");
  8105. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8106. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8107. entity.Property(e => e.SeoDescription)
  8108. .HasColumnType("varchar(500)")
  8109. .HasCharSet("utf8")
  8110. .HasCollation("utf8_general_ci");
  8111. entity.Property(e => e.SeoKeyword)
  8112. .HasColumnType("varchar(200)")
  8113. .HasCharSet("utf8")
  8114. .HasCollation("utf8_general_ci");
  8115. entity.Property(e => e.SeoTitle)
  8116. .HasColumnType("varchar(100)")
  8117. .HasCharSet("utf8")
  8118. .HasCollation("utf8_general_ci");
  8119. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8120. entity.Property(e => e.Status).HasColumnType("int(11)");
  8121. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8122. entity.Property(e => e.UpdateMan)
  8123. .HasColumnType("varchar(50)")
  8124. .HasCharSet("utf8")
  8125. .HasCollation("utf8_general_ci");
  8126. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8127. entity.Property(e => e.Version).HasColumnType("int(11)");
  8128. });
  8129. modelBuilder.Entity<UserData>(entity =>
  8130. {
  8131. entity.HasKey(e => e.UserId)
  8132. .HasName("PRIMARY");
  8133. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8134. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  8135. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  8136. entity.Property(e => e.CollectionCount).HasColumnType("int(11)");
  8137. entity.Property(e => e.Coupons).HasColumnType("decimal(18,2)");
  8138. entity.Property(e => e.CurMoney).HasColumnType("decimal(18,2)");
  8139. entity.Property(e => e.FansCount).HasColumnType("int(11)");
  8140. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  8141. entity.Property(e => e.GrowthValue).HasColumnType("int(11)");
  8142. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  8143. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  8144. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  8145. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  8146. entity.Property(e => e.ToCommentOrderCount).HasColumnType("int(11)");
  8147. entity.Property(e => e.ToPayOrderCount).HasColumnType("int(11)");
  8148. entity.Property(e => e.ToReceiveOrderCount).HasColumnType("int(11)");
  8149. entity.Property(e => e.ToRefundOrderCount).HasColumnType("int(11)");
  8150. entity.Property(e => e.ToSendOrderCount).HasColumnType("int(11)");
  8151. entity.Property(e => e.TotalOrderMoney).HasColumnType("decimal(18,2)");
  8152. entity.Property(e => e.TotalUseIntegral).HasColumnType("decimal(18,2)");
  8153. });
  8154. modelBuilder.Entity<UserDetail>(entity =>
  8155. {
  8156. entity.Property(e => e.Id).HasColumnType("int(11)");
  8157. entity.Property(e => e.AddMan).HasColumnType("int(11)");
  8158. entity.Property(e => e.Birthday).HasColumnType("datetime");
  8159. entity.Property(e => e.CardAddAddress).HasColumnType("int(11)");
  8160. entity.Property(e => e.CardExpireDate).HasColumnType("datetime");
  8161. entity.Property(e => e.EduLevel).HasColumnType("int(11)");
  8162. entity.Property(e => e.Email)
  8163. .HasColumnType("varchar(50)")
  8164. .HasCharSet("utf8")
  8165. .HasCollation("utf8_general_ci");
  8166. entity.Property(e => e.FamilyIncome).HasColumnType("int(11)");
  8167. entity.Property(e => e.Interests)
  8168. .HasColumnType("varchar(200)")
  8169. .HasCharSet("utf8")
  8170. .HasCollation("utf8_general_ci");
  8171. entity.Property(e => e.Note)
  8172. .HasColumnType("longtext")
  8173. .HasCharSet("utf8")
  8174. .HasCollation("utf8_general_ci");
  8175. entity.Property(e => e.OfficePhone)
  8176. .HasColumnType("varchar(50)")
  8177. .HasCharSet("utf8")
  8178. .HasCollation("utf8_general_ci");
  8179. entity.Property(e => e.PostalCode)
  8180. .HasColumnType("varchar(6)")
  8181. .HasCharSet("utf8")
  8182. .HasCollation("utf8_general_ci");
  8183. entity.Property(e => e.PrivatePhone)
  8184. .HasColumnType("varchar(50)")
  8185. .HasCharSet("utf8")
  8186. .HasCollation("utf8_general_ci");
  8187. entity.Property(e => e.ToShopDate).HasColumnType("datetime");
  8188. entity.Property(e => e.TrafficTool).HasColumnType("int(11)");
  8189. entity.Property(e => e.UpdateMan).HasColumnType("int(11)");
  8190. entity.Property(e => e.UserJob).HasColumnType("int(11)");
  8191. });
  8192. modelBuilder.Entity<UserFamilyMember>(entity =>
  8193. {
  8194. entity.Property(e => e.Id).HasColumnType("int(11)");
  8195. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8196. entity.Property(e => e.CreateMan)
  8197. .HasColumnType("varchar(50)")
  8198. .HasCharSet("utf8")
  8199. .HasCollation("utf8_general_ci");
  8200. entity.Property(e => e.IdCardNo)
  8201. .HasColumnType("varchar(18)")
  8202. .HasCharSet("utf8")
  8203. .HasCollation("utf8_general_ci");
  8204. entity.Property(e => e.Job).HasColumnType("int(11)");
  8205. entity.Property(e => e.MemberKind).HasColumnType("int(11)");
  8206. entity.Property(e => e.Mobile)
  8207. .HasColumnType("varchar(11)")
  8208. .HasCharSet("utf8")
  8209. .HasCollation("utf8_general_ci");
  8210. entity.Property(e => e.Name)
  8211. .HasColumnType("varchar(20)")
  8212. .HasCharSet("utf8")
  8213. .HasCollation("utf8_general_ci");
  8214. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8215. entity.Property(e => e.SeoDescription)
  8216. .HasColumnType("varchar(500)")
  8217. .HasCharSet("utf8")
  8218. .HasCollation("utf8_general_ci");
  8219. entity.Property(e => e.SeoKeyword)
  8220. .HasColumnType("varchar(200)")
  8221. .HasCharSet("utf8")
  8222. .HasCollation("utf8_general_ci");
  8223. entity.Property(e => e.SeoTitle)
  8224. .HasColumnType("varchar(100)")
  8225. .HasCharSet("utf8")
  8226. .HasCollation("utf8_general_ci");
  8227. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8228. entity.Property(e => e.Status).HasColumnType("int(11)");
  8229. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8230. entity.Property(e => e.UpdateMan)
  8231. .HasColumnType("varchar(50)")
  8232. .HasCharSet("utf8")
  8233. .HasCollation("utf8_general_ci");
  8234. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8235. entity.Property(e => e.Version).HasColumnType("int(11)");
  8236. });
  8237. modelBuilder.Entity<UserForMakerCode>(entity =>
  8238. {
  8239. entity.HasKey(e => e.MakerCode)
  8240. .HasName("PRIMARY");
  8241. entity.Property(e => e.MakerCode)
  8242. .HasColumnType("varchar(30)")
  8243. .HasCharSet("utf8")
  8244. .HasCollation("utf8_general_ci");
  8245. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8246. });
  8247. modelBuilder.Entity<UserForMobile>(entity =>
  8248. {
  8249. entity.HasKey(e => e.Mobile)
  8250. .HasName("PRIMARY");
  8251. entity.Property(e => e.Mobile)
  8252. .HasColumnType("varchar(11)")
  8253. .HasCharSet("utf8")
  8254. .HasCollation("utf8_general_ci");
  8255. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8256. });
  8257. modelBuilder.Entity<UserForRealName>(entity =>
  8258. {
  8259. entity.HasKey(e => e.RealName)
  8260. .HasName("PRIMARY");
  8261. entity.Property(e => e.RealName)
  8262. .HasColumnType("varchar(30)")
  8263. .HasCharSet("utf8")
  8264. .HasCollation("utf8_general_ci");
  8265. entity.Property(e => e.UserId)
  8266. .HasColumnType("varchar(100)")
  8267. .HasCharSet("utf8")
  8268. .HasCollation("utf8_general_ci");
  8269. });
  8270. modelBuilder.Entity<UserFriend>(entity =>
  8271. {
  8272. entity.Property(e => e.Id).HasColumnType("int(11)");
  8273. entity.Property(e => e.FriendId).HasColumnType("int(11)");
  8274. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8275. });
  8276. modelBuilder.Entity<UserGroup>(entity =>
  8277. {
  8278. entity.Property(e => e.Id).HasColumnType("int(11)");
  8279. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8280. entity.Property(e => e.CreateMan)
  8281. .HasColumnType("varchar(50)")
  8282. .HasCharSet("utf8")
  8283. .HasCollation("utf8_general_ci");
  8284. entity.Property(e => e.Details)
  8285. .HasColumnType("varchar(200)")
  8286. .HasCharSet("utf8")
  8287. .HasCollation("utf8_general_ci");
  8288. entity.Property(e => e.Name)
  8289. .HasColumnType("varchar(20)")
  8290. .HasCharSet("utf8")
  8291. .HasCollation("utf8_general_ci");
  8292. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8293. entity.Property(e => e.SeoDescription)
  8294. .HasColumnType("varchar(500)")
  8295. .HasCharSet("utf8")
  8296. .HasCollation("utf8_general_ci");
  8297. entity.Property(e => e.SeoKeyword)
  8298. .HasColumnType("varchar(200)")
  8299. .HasCharSet("utf8")
  8300. .HasCollation("utf8_general_ci");
  8301. entity.Property(e => e.SeoTitle)
  8302. .HasColumnType("varchar(100)")
  8303. .HasCharSet("utf8")
  8304. .HasCollation("utf8_general_ci");
  8305. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8306. entity.Property(e => e.Status).HasColumnType("int(11)");
  8307. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8308. entity.Property(e => e.UpdateMan)
  8309. .HasColumnType("varchar(50)")
  8310. .HasCharSet("utf8")
  8311. .HasCollation("utf8_general_ci");
  8312. entity.Property(e => e.Version).HasColumnType("int(11)");
  8313. });
  8314. modelBuilder.Entity<UserLevelSet>(entity =>
  8315. {
  8316. entity.Property(e => e.Id).HasColumnType("int(11)");
  8317. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8318. entity.Property(e => e.CreateMan)
  8319. .HasColumnType("varchar(50)")
  8320. .HasCharSet("utf8")
  8321. .HasCollation("utf8_general_ci");
  8322. entity.Property(e => e.Details)
  8323. .HasColumnType("varchar(200)")
  8324. .HasCharSet("utf8")
  8325. .HasCollation("utf8_general_ci");
  8326. entity.Property(e => e.Name)
  8327. .HasColumnType("varchar(20)")
  8328. .HasCharSet("utf8")
  8329. .HasCollation("utf8_general_ci");
  8330. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8331. entity.Property(e => e.SeoDescription)
  8332. .HasColumnType("varchar(500)")
  8333. .HasCharSet("utf8")
  8334. .HasCollation("utf8_general_ci");
  8335. entity.Property(e => e.SeoKeyword)
  8336. .HasColumnType("varchar(200)")
  8337. .HasCharSet("utf8")
  8338. .HasCollation("utf8_general_ci");
  8339. entity.Property(e => e.SeoTitle)
  8340. .HasColumnType("varchar(100)")
  8341. .HasCharSet("utf8")
  8342. .HasCollation("utf8_general_ci");
  8343. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8344. entity.Property(e => e.Status).HasColumnType("int(11)");
  8345. entity.Property(e => e.UpLevelDays).HasColumnType("int(11)");
  8346. entity.Property(e => e.UpLevelGrowth).HasColumnType("int(11)");
  8347. entity.Property(e => e.UpLevelIntegral).HasColumnType("decimal(10,0)");
  8348. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8349. entity.Property(e => e.UpdateMan)
  8350. .HasColumnType("varchar(50)")
  8351. .HasCharSet("utf8")
  8352. .HasCollation("utf8_general_ci");
  8353. entity.Property(e => e.Version).HasColumnType("int(11)");
  8354. });
  8355. modelBuilder.Entity<UserLoginRecord>(entity =>
  8356. {
  8357. entity.Property(e => e.Id).HasColumnType("int(11)");
  8358. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8359. entity.Property(e => e.CreateMan)
  8360. .HasColumnType("varchar(50)")
  8361. .HasCharSet("utf8")
  8362. .HasCollation("utf8_general_ci");
  8363. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8364. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8365. entity.Property(e => e.SeoDescription)
  8366. .HasColumnType("varchar(500)")
  8367. .HasCharSet("utf8")
  8368. .HasCollation("utf8_general_ci");
  8369. entity.Property(e => e.SeoKeyword)
  8370. .HasColumnType("varchar(200)")
  8371. .HasCharSet("utf8")
  8372. .HasCollation("utf8_general_ci");
  8373. entity.Property(e => e.SeoTitle)
  8374. .HasColumnType("varchar(100)")
  8375. .HasCharSet("utf8")
  8376. .HasCollation("utf8_general_ci");
  8377. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8378. entity.Property(e => e.Status).HasColumnType("int(11)");
  8379. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8380. entity.Property(e => e.UpdateMan)
  8381. .HasColumnType("varchar(50)")
  8382. .HasCharSet("utf8")
  8383. .HasCollation("utf8_general_ci");
  8384. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8385. entity.Property(e => e.Version).HasColumnType("int(11)");
  8386. });
  8387. modelBuilder.Entity<UserMachineData>(entity =>
  8388. {
  8389. entity.HasKey(e => e.IdBrand)
  8390. .HasName("PRIMARY");
  8391. entity.Property(e => e.IdBrand)
  8392. .HasColumnType("varchar(50)")
  8393. .HasCharSet("utf8")
  8394. .HasCollation("utf8_general_ci");
  8395. entity.Property(e => e.ActProfit).HasColumnType("decimal(18,2)");
  8396. entity.Property(e => e.BindCount).HasColumnType("int(11)");
  8397. entity.Property(e => e.DividendsProfit).HasColumnType("decimal(18,2)");
  8398. entity.Property(e => e.FluxProfit).HasColumnType("decimal(18,2)");
  8399. entity.Property(e => e.OpenProfit).HasColumnType("decimal(18,2)");
  8400. entity.Property(e => e.OtherProfit).HasColumnType("decimal(18,2)");
  8401. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  8402. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  8403. entity.Property(e => e.UnBindCount).HasColumnType("int(11)");
  8404. });
  8405. modelBuilder.Entity<UserMallLargeSn>(entity =>
  8406. {
  8407. entity.Property(e => e.Id).HasColumnType("int(11)");
  8408. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8409. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8410. entity.Property(e => e.CreateMan)
  8411. .HasColumnType("varchar(50)")
  8412. .HasCharSet("utf8")
  8413. .HasCollation("utf8_general_ci");
  8414. entity.Property(e => e.OrderAmount).HasColumnType("decimal(18,2)");
  8415. entity.Property(e => e.OrderNo)
  8416. .HasColumnType("varchar(32)")
  8417. .HasCharSet("utf8")
  8418. .HasCollation("utf8_general_ci");
  8419. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  8420. entity.Property(e => e.ProductName)
  8421. .HasColumnType("varchar(32)")
  8422. .HasCharSet("utf8")
  8423. .HasCollation("utf8_general_ci");
  8424. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8425. entity.Property(e => e.Remark)
  8426. .HasColumnType("varchar(64)")
  8427. .HasCharSet("utf8")
  8428. .HasCollation("utf8_general_ci");
  8429. entity.Property(e => e.RuleOrderAmt).HasColumnType("decimal(18,2)");
  8430. entity.Property(e => e.SeoDescription)
  8431. .HasColumnType("varchar(500)")
  8432. .HasCharSet("utf8")
  8433. .HasCollation("utf8_general_ci");
  8434. entity.Property(e => e.SeoKeyword)
  8435. .HasColumnType("varchar(200)")
  8436. .HasCharSet("utf8")
  8437. .HasCollation("utf8_general_ci");
  8438. entity.Property(e => e.SeoTitle)
  8439. .HasColumnType("varchar(100)")
  8440. .HasCharSet("utf8")
  8441. .HasCollation("utf8_general_ci");
  8442. entity.Property(e => e.SnNo)
  8443. .HasColumnType("varchar(32)")
  8444. .HasCharSet("utf8")
  8445. .HasCollation("utf8_general_ci");
  8446. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8447. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  8448. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8449. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8450. entity.Property(e => e.Status).HasColumnType("int(11)");
  8451. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  8452. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8453. entity.Property(e => e.UpdateMan)
  8454. .HasColumnType("varchar(50)")
  8455. .HasCharSet("utf8")
  8456. .HasCollation("utf8_general_ci");
  8457. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8458. entity.Property(e => e.Version).HasColumnType("int(11)");
  8459. });
  8460. modelBuilder.Entity<UserOfflineSignInRecords>(entity =>
  8461. {
  8462. entity.Property(e => e.Id).HasColumnType("int(11)");
  8463. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8464. entity.Property(e => e.CreateMan)
  8465. .HasColumnType("varchar(50)")
  8466. .HasCharSet("utf8")
  8467. .HasCollation("utf8_general_ci");
  8468. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8469. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8470. entity.Property(e => e.SeoDescription)
  8471. .HasColumnType("varchar(500)")
  8472. .HasCharSet("utf8")
  8473. .HasCollation("utf8_general_ci");
  8474. entity.Property(e => e.SeoKeyword)
  8475. .HasColumnType("varchar(200)")
  8476. .HasCharSet("utf8")
  8477. .HasCollation("utf8_general_ci");
  8478. entity.Property(e => e.SeoTitle)
  8479. .HasColumnType("varchar(100)")
  8480. .HasCharSet("utf8")
  8481. .HasCollation("utf8_general_ci");
  8482. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8483. entity.Property(e => e.Status).HasColumnType("int(11)");
  8484. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8485. entity.Property(e => e.UpdateMan)
  8486. .HasColumnType("varchar(50)")
  8487. .HasCharSet("utf8")
  8488. .HasCollation("utf8_general_ci");
  8489. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8490. entity.Property(e => e.Version).HasColumnType("int(11)");
  8491. });
  8492. modelBuilder.Entity<UserProfit>(entity =>
  8493. {
  8494. entity.Property(e => e.Id).HasColumnType("int(11)");
  8495. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8496. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8497. entity.Property(e => e.CardType)
  8498. .HasColumnType("varchar(10)")
  8499. .HasCharSet("utf8")
  8500. .HasCollation("utf8_general_ci");
  8501. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8502. entity.Property(e => e.CreateMan)
  8503. .HasColumnType("varchar(50)")
  8504. .HasCharSet("utf8")
  8505. .HasCollation("utf8_general_ci");
  8506. entity.Property(e => e.HelpAddOrSubRate).HasColumnType("decimal(18,2)");
  8507. entity.Property(e => e.HelpProfitPercent).HasColumnType("decimal(18,2)");
  8508. entity.Property(e => e.HelpProfitRate).HasColumnType("decimal(18,2)");
  8509. entity.Property(e => e.HelpProfitRateBase).HasColumnType("decimal(18,2)");
  8510. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8511. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8512. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8513. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8514. entity.Property(e => e.Remark)
  8515. .HasColumnType("varchar(64)")
  8516. .HasCharSet("utf8")
  8517. .HasCollation("utf8_general_ci");
  8518. entity.Property(e => e.SeoDescription)
  8519. .HasColumnType("varchar(500)")
  8520. .HasCharSet("utf8")
  8521. .HasCollation("utf8_general_ci");
  8522. entity.Property(e => e.SeoKeyword)
  8523. .HasColumnType("varchar(200)")
  8524. .HasCharSet("utf8")
  8525. .HasCollation("utf8_general_ci");
  8526. entity.Property(e => e.SeoTitle)
  8527. .HasColumnType("varchar(100)")
  8528. .HasCharSet("utf8")
  8529. .HasCollation("utf8_general_ci");
  8530. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8531. entity.Property(e => e.Status).HasColumnType("int(11)");
  8532. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8533. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8534. entity.Property(e => e.UpdateMan)
  8535. .HasColumnType("varchar(50)")
  8536. .HasCharSet("utf8")
  8537. .HasCollation("utf8_general_ci");
  8538. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8539. entity.Property(e => e.Version).HasColumnType("int(11)");
  8540. });
  8541. modelBuilder.Entity<UserProfitSet>(entity =>
  8542. {
  8543. entity.Property(e => e.Id).HasColumnType("int(11)");
  8544. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8545. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8546. entity.Property(e => e.CardType).HasColumnType("int(11)");
  8547. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8548. entity.Property(e => e.CreateMan)
  8549. .HasColumnType("varchar(50)")
  8550. .HasCharSet("utf8")
  8551. .HasCollation("utf8_general_ci");
  8552. entity.Property(e => e.HelpFlag).HasColumnType("int(11)");
  8553. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8554. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8555. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8556. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8557. entity.Property(e => e.Remark)
  8558. .HasColumnType("varchar(64)")
  8559. .HasCharSet("utf8")
  8560. .HasCollation("utf8_general_ci");
  8561. entity.Property(e => e.SeoDescription)
  8562. .HasColumnType("varchar(500)")
  8563. .HasCharSet("utf8")
  8564. .HasCollation("utf8_general_ci");
  8565. entity.Property(e => e.SeoKeyword)
  8566. .HasColumnType("varchar(200)")
  8567. .HasCharSet("utf8")
  8568. .HasCollation("utf8_general_ci");
  8569. entity.Property(e => e.SeoTitle)
  8570. .HasColumnType("varchar(100)")
  8571. .HasCharSet("utf8")
  8572. .HasCollation("utf8_general_ci");
  8573. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8574. entity.Property(e => e.Status).HasColumnType("int(11)");
  8575. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8576. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8577. entity.Property(e => e.UpdateMan)
  8578. .HasColumnType("varchar(50)")
  8579. .HasCharSet("utf8")
  8580. .HasCollation("utf8_general_ci");
  8581. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8582. entity.Property(e => e.Version).HasColumnType("int(11)");
  8583. });
  8584. modelBuilder.Entity<UserProfitSubsidySummary>(entity =>
  8585. {
  8586. entity.Property(e => e.Id).HasColumnType("int(11)");
  8587. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8588. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  8589. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8590. entity.Property(e => e.CreateMan)
  8591. .HasColumnType("varchar(50)")
  8592. .HasCharSet("utf8")
  8593. .HasCollation("utf8_general_ci");
  8594. entity.Property(e => e.MgrName)
  8595. .HasColumnType("varchar(32)")
  8596. .HasCharSet("utf8")
  8597. .HasCollation("utf8_general_ci");
  8598. entity.Property(e => e.MgrNo)
  8599. .HasColumnType("varchar(16)")
  8600. .HasCharSet("utf8")
  8601. .HasCollation("utf8_general_ci");
  8602. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8603. entity.Property(e => e.SeoDescription)
  8604. .HasColumnType("varchar(500)")
  8605. .HasCharSet("utf8")
  8606. .HasCollation("utf8_general_ci");
  8607. entity.Property(e => e.SeoKeyword)
  8608. .HasColumnType("varchar(200)")
  8609. .HasCharSet("utf8")
  8610. .HasCollation("utf8_general_ci");
  8611. entity.Property(e => e.SeoTitle)
  8612. .HasColumnType("varchar(100)")
  8613. .HasCharSet("utf8")
  8614. .HasCollation("utf8_general_ci");
  8615. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8616. entity.Property(e => e.Status).HasColumnType("int(11)");
  8617. entity.Property(e => e.SubsidyDirectProfit).HasColumnType("decimal(18,2)");
  8618. entity.Property(e => e.SubsidyJuniorProfit).HasColumnType("decimal(18,2)");
  8619. entity.Property(e => e.SubsidyTotalProfit).HasColumnType("decimal(18,2)");
  8620. entity.Property(e => e.TradeMonth)
  8621. .HasColumnType("varchar(6)")
  8622. .HasCharSet("utf8")
  8623. .HasCollation("utf8_general_ci");
  8624. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8625. entity.Property(e => e.UpdateMan)
  8626. .HasColumnType("varchar(50)")
  8627. .HasCharSet("utf8")
  8628. .HasCollation("utf8_general_ci");
  8629. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8630. entity.Property(e => e.Version).HasColumnType("int(11)");
  8631. });
  8632. modelBuilder.Entity<UserRank>(entity =>
  8633. {
  8634. entity.Property(e => e.Id).HasColumnType("int(11)");
  8635. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8636. entity.Property(e => e.CreateMan)
  8637. .HasColumnType("varchar(50)")
  8638. .HasCharSet("utf8")
  8639. .HasCollation("utf8_general_ci");
  8640. entity.Property(e => e.ExceedVal).HasColumnType("int(11)");
  8641. entity.Property(e => e.NextRank).HasColumnType("int(11)");
  8642. entity.Property(e => e.OperateDate).HasColumnType("datetime");
  8643. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8644. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8645. entity.Property(e => e.SeoDescription)
  8646. .HasColumnType("varchar(500)")
  8647. .HasCharSet("utf8")
  8648. .HasCollation("utf8_general_ci");
  8649. entity.Property(e => e.SeoKeyword)
  8650. .HasColumnType("varchar(200)")
  8651. .HasCharSet("utf8")
  8652. .HasCollation("utf8_general_ci");
  8653. entity.Property(e => e.SeoTitle)
  8654. .HasColumnType("varchar(100)")
  8655. .HasCharSet("utf8")
  8656. .HasCollation("utf8_general_ci");
  8657. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8658. entity.Property(e => e.StatMonth).HasColumnType("int(11)");
  8659. entity.Property(e => e.StatYear).HasColumnType("int(11)");
  8660. entity.Property(e => e.Status).HasColumnType("int(11)");
  8661. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  8662. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8663. entity.Property(e => e.UpdateMan)
  8664. .HasColumnType("varchar(50)")
  8665. .HasCharSet("utf8")
  8666. .HasCollation("utf8_general_ci");
  8667. entity.Property(e => e.UpgradeFlag)
  8668. .HasColumnType("bit(1)")
  8669. .HasDefaultValueSql("b'0'");
  8670. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8671. entity.Property(e => e.Version).HasColumnType("int(11)");
  8672. entity.Property(e => e.WhiteRank).HasColumnType("int(11)");
  8673. });
  8674. modelBuilder.Entity<UserRankWhite>(entity =>
  8675. {
  8676. entity.Property(e => e.Id).HasColumnType("int(11)");
  8677. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8678. entity.Property(e => e.CreateMan)
  8679. .HasColumnType("varchar(50)")
  8680. .HasCharSet("utf8")
  8681. .HasCollation("utf8_general_ci");
  8682. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8683. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8684. entity.Property(e => e.SeoDescription)
  8685. .HasColumnType("varchar(500)")
  8686. .HasCharSet("utf8")
  8687. .HasCollation("utf8_general_ci");
  8688. entity.Property(e => e.SeoKeyword)
  8689. .HasColumnType("varchar(200)")
  8690. .HasCharSet("utf8")
  8691. .HasCollation("utf8_general_ci");
  8692. entity.Property(e => e.SeoTitle)
  8693. .HasColumnType("varchar(100)")
  8694. .HasCharSet("utf8")
  8695. .HasCollation("utf8_general_ci");
  8696. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8697. entity.Property(e => e.Status).HasColumnType("int(11)");
  8698. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8699. entity.Property(e => e.UpdateMan)
  8700. .HasColumnType("varchar(50)")
  8701. .HasCharSet("utf8")
  8702. .HasCollation("utf8_general_ci");
  8703. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8704. entity.Property(e => e.Version).HasColumnType("int(11)");
  8705. });
  8706. modelBuilder.Entity<UserRebateDetail>(entity =>
  8707. {
  8708. entity.Property(e => e.Id).HasColumnType("int(11)");
  8709. entity.Property(e => e.ChannelMerNo)
  8710. .HasColumnType("varchar(32)")
  8711. .HasCharSet("utf8")
  8712. .HasCollation("utf8_general_ci");
  8713. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8714. entity.Property(e => e.CreateMan)
  8715. .HasColumnType("varchar(50)")
  8716. .HasCharSet("utf8")
  8717. .HasCollation("utf8_general_ci");
  8718. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  8719. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  8720. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  8721. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  8722. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8723. entity.Property(e => e.MgrName)
  8724. .HasColumnType("varchar(32)")
  8725. .HasCharSet("utf8")
  8726. .HasCollation("utf8_general_ci");
  8727. entity.Property(e => e.MgrNo)
  8728. .HasColumnType("varchar(16)")
  8729. .HasCharSet("utf8")
  8730. .HasCollation("utf8_general_ci");
  8731. entity.Property(e => e.ProductName)
  8732. .HasColumnType("varchar(32)")
  8733. .HasCharSet("utf8")
  8734. .HasCollation("utf8_general_ci");
  8735. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  8736. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8737. entity.Property(e => e.RebateMonthCount).HasColumnType("int(11)");
  8738. entity.Property(e => e.RebateRewardNo)
  8739. .HasColumnType("varchar(32)")
  8740. .HasCharSet("utf8")
  8741. .HasCollation("utf8_general_ci");
  8742. entity.Property(e => e.RebateType).HasColumnType("int(11)");
  8743. entity.Property(e => e.Remark)
  8744. .HasColumnType("varchar(64)")
  8745. .HasCharSet("utf8")
  8746. .HasCollation("utf8_general_ci");
  8747. entity.Property(e => e.SeoDescription)
  8748. .HasColumnType("varchar(500)")
  8749. .HasCharSet("utf8")
  8750. .HasCollation("utf8_general_ci");
  8751. entity.Property(e => e.SeoKeyword)
  8752. .HasColumnType("varchar(200)")
  8753. .HasCharSet("utf8")
  8754. .HasCollation("utf8_general_ci");
  8755. entity.Property(e => e.SeoTitle)
  8756. .HasColumnType("varchar(100)")
  8757. .HasCharSet("utf8")
  8758. .HasCollation("utf8_general_ci");
  8759. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8760. entity.Property(e => e.Status).HasColumnType("int(11)");
  8761. entity.Property(e => e.TradeDate)
  8762. .HasColumnType("varchar(8)")
  8763. .HasCharSet("utf8")
  8764. .HasCollation("utf8_general_ci");
  8765. entity.Property(e => e.TradeMonth)
  8766. .HasColumnType("varchar(6)")
  8767. .HasCharSet("utf8")
  8768. .HasCollation("utf8_general_ci");
  8769. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8770. entity.Property(e => e.UpdateMan)
  8771. .HasColumnType("varchar(50)")
  8772. .HasCharSet("utf8")
  8773. .HasCollation("utf8_general_ci");
  8774. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8775. entity.Property(e => e.Version).HasColumnType("int(11)");
  8776. });
  8777. modelBuilder.Entity<UserSnActInfo>(entity =>
  8778. {
  8779. entity.Property(e => e.Id).HasColumnType("int(11)");
  8780. entity.Property(e => e.ActUserId).HasColumnType("int(11)");
  8781. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  8782. entity.Property(e => e.BrandId).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.EffectEndActDate)
  8789. .HasColumnType("varchar(8)")
  8790. .HasCharSet("utf8")
  8791. .HasCollation("utf8_general_ci");
  8792. entity.Property(e => e.EffectEndCycleDate)
  8793. .HasColumnType("varchar(8)")
  8794. .HasCharSet("utf8")
  8795. .HasCollation("utf8_general_ci");
  8796. entity.Property(e => e.EffectStartActDate)
  8797. .HasColumnType("varchar(8)")
  8798. .HasCharSet("utf8")
  8799. .HasCollation("utf8_general_ci");
  8800. entity.Property(e => e.EffectStartCycleDate)
  8801. .HasColumnType("varchar(8)")
  8802. .HasCharSet("utf8")
  8803. .HasCollation("utf8_general_ci");
  8804. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8805. entity.Property(e => e.Remark)
  8806. .HasColumnType("varchar(128)")
  8807. .HasCharSet("utf8")
  8808. .HasCollation("utf8_general_ci");
  8809. entity.Property(e => e.SeoDescription)
  8810. .HasColumnType("varchar(500)")
  8811. .HasCharSet("utf8")
  8812. .HasCollation("utf8_general_ci");
  8813. entity.Property(e => e.SeoKeyword)
  8814. .HasColumnType("varchar(200)")
  8815. .HasCharSet("utf8")
  8816. .HasCollation("utf8_general_ci");
  8817. entity.Property(e => e.SeoTitle)
  8818. .HasColumnType("varchar(100)")
  8819. .HasCharSet("utf8")
  8820. .HasCollation("utf8_general_ci");
  8821. entity.Property(e => e.SnNo)
  8822. .HasColumnType("varchar(32)")
  8823. .HasCharSet("utf8")
  8824. .HasCollation("utf8_general_ci");
  8825. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8826. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  8827. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8828. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8829. entity.Property(e => e.SourceShipDate).HasColumnType("datetime");
  8830. entity.Property(e => e.SourceSnNo)
  8831. .HasColumnType("varchar(32)")
  8832. .HasCharSet("utf8")
  8833. .HasCollation("utf8_general_ci");
  8834. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  8835. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  8836. entity.Property(e => e.StandardDate)
  8837. .HasColumnType("varchar(8)")
  8838. .HasCharSet("utf8")
  8839. .HasCollation("utf8_general_ci");
  8840. entity.Property(e => e.Status).HasColumnType("int(11)");
  8841. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8842. entity.Property(e => e.UpdateMan)
  8843. .HasColumnType("varchar(50)")
  8844. .HasCharSet("utf8")
  8845. .HasCollation("utf8_general_ci");
  8846. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8847. entity.Property(e => e.Version).HasColumnType("int(11)");
  8848. });
  8849. modelBuilder.Entity<UserSnDelayChange>(entity =>
  8850. {
  8851. entity.Property(e => e.Id).HasColumnType("int(11)");
  8852. entity.Property(e => e.ActivityRuleId).HasColumnType("int(11)");
  8853. entity.Property(e => e.AfterEndCycleDate)
  8854. .HasColumnType("varchar(8)")
  8855. .HasCharSet("utf8")
  8856. .HasCollation("utf8_general_ci");
  8857. entity.Property(e => e.BeforeEndCycleDate)
  8858. .HasColumnType("varchar(8)")
  8859. .HasCharSet("utf8")
  8860. .HasCollation("utf8_general_ci");
  8861. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8862. entity.Property(e => e.ChangeRecordNo)
  8863. .HasColumnType("varchar(32)")
  8864. .HasCharSet("utf8")
  8865. .HasCollation("utf8_general_ci");
  8866. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8867. entity.Property(e => e.CreateMan)
  8868. .HasColumnType("varchar(50)")
  8869. .HasCharSet("utf8")
  8870. .HasCollation("utf8_general_ci");
  8871. entity.Property(e => e.InitCycleDate)
  8872. .HasColumnType("varchar(8)")
  8873. .HasCharSet("utf8")
  8874. .HasCollation("utf8_general_ci");
  8875. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8876. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  8877. entity.Property(e => e.Remark)
  8878. .HasColumnType("varchar(128)")
  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.SnDelayDay).HasColumnType("int(11)");
  8894. entity.Property(e => e.SnNo)
  8895. .HasColumnType("varchar(32)")
  8896. .HasCharSet("utf8")
  8897. .HasCollation("utf8_general_ci");
  8898. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  8899. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8900. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8901. entity.Property(e => e.SourceSnNo)
  8902. .HasColumnType("varchar(32)")
  8903. .HasCharSet("utf8")
  8904. .HasCollation("utf8_general_ci");
  8905. entity.Property(e => e.SourceSnShipDate).HasColumnType("datetime");
  8906. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  8907. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  8908. entity.Property(e => e.Status).HasColumnType("int(11)");
  8909. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8910. entity.Property(e => e.UpdateMan)
  8911. .HasColumnType("varchar(50)")
  8912. .HasCharSet("utf8")
  8913. .HasCollation("utf8_general_ci");
  8914. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8915. entity.Property(e => e.Version).HasColumnType("int(11)");
  8916. });
  8917. modelBuilder.Entity<UserStoreChange>(entity =>
  8918. {
  8919. entity.Property(e => e.Id).HasColumnType("int(11)");
  8920. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  8921. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  8922. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  8923. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  8924. entity.Property(e => e.BizBatchNo)
  8925. .HasColumnType("varchar(32)")
  8926. .HasCharSet("utf8")
  8927. .HasCollation("utf8_general_ci");
  8928. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8929. entity.Property(e => e.BrandType)
  8930. .HasColumnType("varchar(10)")
  8931. .HasCharSet("utf8")
  8932. .HasCollation("utf8_general_ci");
  8933. entity.Property(e => e.ChangeRecordNo)
  8934. .HasColumnType("varchar(32)")
  8935. .HasCharSet("utf8")
  8936. .HasCollation("utf8_general_ci");
  8937. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8938. entity.Property(e => e.CreateMan)
  8939. .HasColumnType("varchar(50)")
  8940. .HasCharSet("utf8")
  8941. .HasCollation("utf8_general_ci");
  8942. entity.Property(e => e.DeviceModel)
  8943. .HasColumnType("varchar(32)")
  8944. .HasCharSet("utf8")
  8945. .HasCollation("utf8_general_ci");
  8946. entity.Property(e => e.DeviceType)
  8947. .HasColumnType("varchar(32)")
  8948. .HasCharSet("utf8")
  8949. .HasCollation("utf8_general_ci");
  8950. entity.Property(e => e.DeviceVendor)
  8951. .HasColumnType("varchar(32)")
  8952. .HasCharSet("utf8")
  8953. .HasCollation("utf8_general_ci");
  8954. entity.Property(e => e.FromDate).HasColumnType("datetime");
  8955. entity.Property(e => e.FromRemark)
  8956. .HasColumnType("varchar(64)")
  8957. .HasCharSet("utf8")
  8958. .HasCollation("utf8_general_ci");
  8959. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  8960. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8961. entity.Property(e => e.SeoDescription)
  8962. .HasColumnType("varchar(500)")
  8963. .HasCharSet("utf8")
  8964. .HasCollation("utf8_general_ci");
  8965. entity.Property(e => e.SeoKeyword)
  8966. .HasColumnType("varchar(200)")
  8967. .HasCharSet("utf8")
  8968. .HasCollation("utf8_general_ci");
  8969. entity.Property(e => e.SeoTitle)
  8970. .HasColumnType("varchar(100)")
  8971. .HasCharSet("utf8")
  8972. .HasCollation("utf8_general_ci");
  8973. entity.Property(e => e.SnNo)
  8974. .HasColumnType("varchar(32)")
  8975. .HasCharSet("utf8")
  8976. .HasCollation("utf8_general_ci");
  8977. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  8978. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8979. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8980. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  8981. entity.Property(e => e.Status).HasColumnType("int(11)");
  8982. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  8983. entity.Property(e => e.ToDate).HasColumnType("datetime");
  8984. entity.Property(e => e.ToRemark)
  8985. .HasColumnType("varchar(64)")
  8986. .HasCharSet("utf8")
  8987. .HasCollation("utf8_general_ci");
  8988. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  8989. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  8990. entity.Property(e => e.TransType).HasColumnType("int(11)");
  8991. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8992. entity.Property(e => e.UpdateMan)
  8993. .HasColumnType("varchar(50)")
  8994. .HasCharSet("utf8")
  8995. .HasCollation("utf8_general_ci");
  8996. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8997. entity.Property(e => e.Version).HasColumnType("int(11)");
  8998. });
  8999. modelBuilder.Entity<UserSwapDetail>(entity =>
  9000. {
  9001. entity.Property(e => e.Id).HasColumnType("int(11)");
  9002. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9003. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9004. entity.Property(e => e.CreateMan)
  9005. .HasColumnType("varchar(50)")
  9006. .HasCharSet("utf8")
  9007. .HasCollation("utf8_general_ci");
  9008. entity.Property(e => e.DirectSnTradeAmt).HasColumnType("decimal(18,2)");
  9009. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9010. entity.Property(e => e.RecordNo)
  9011. .HasColumnType("varchar(32)")
  9012. .HasCharSet("utf8")
  9013. .HasCollation("utf8_general_ci");
  9014. entity.Property(e => e.Remark)
  9015. .HasColumnType("varchar(64)")
  9016. .HasCharSet("utf8")
  9017. .HasCollation("utf8_general_ci");
  9018. entity.Property(e => e.RiskResult).HasColumnType("int(11)");
  9019. entity.Property(e => e.SeoDescription)
  9020. .HasColumnType("varchar(500)")
  9021. .HasCharSet("utf8")
  9022. .HasCollation("utf8_general_ci");
  9023. entity.Property(e => e.SeoKeyword)
  9024. .HasColumnType("varchar(200)")
  9025. .HasCharSet("utf8")
  9026. .HasCollation("utf8_general_ci");
  9027. entity.Property(e => e.SeoTitle)
  9028. .HasColumnType("varchar(100)")
  9029. .HasCharSet("utf8")
  9030. .HasCollation("utf8_general_ci");
  9031. entity.Property(e => e.SnNo)
  9032. .HasColumnType("varchar(32)")
  9033. .HasCharSet("utf8")
  9034. .HasCollation("utf8_general_ci");
  9035. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9036. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9037. entity.Property(e => e.SourceSnNo)
  9038. .HasColumnType("varchar(32)")
  9039. .HasCharSet("utf8")
  9040. .HasCollation("utf8_general_ci");
  9041. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9042. entity.Property(e => e.Status).HasColumnType("int(11)");
  9043. entity.Property(e => e.SwapExtProductTypes)
  9044. .HasColumnType("varchar(16)")
  9045. .HasCharSet("utf8")
  9046. .HasCollation("utf8_general_ci");
  9047. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9048. entity.Property(e => e.TradeDate)
  9049. .HasColumnType("varchar(8)")
  9050. .HasCharSet("utf8")
  9051. .HasCollation("utf8_general_ci");
  9052. entity.Property(e => e.TradeMonth)
  9053. .HasColumnType("varchar(6)")
  9054. .HasCharSet("utf8")
  9055. .HasCollation("utf8_general_ci");
  9056. entity.Property(e => e.UpSourceSnNo)
  9057. .HasColumnType("varchar(32)")
  9058. .HasCharSet("utf8")
  9059. .HasCollation("utf8_general_ci");
  9060. entity.Property(e => e.UpSourceSnType).HasColumnType("int(11)");
  9061. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9062. entity.Property(e => e.UpdateMan)
  9063. .HasColumnType("varchar(50)")
  9064. .HasCharSet("utf8")
  9065. .HasCollation("utf8_general_ci");
  9066. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9067. entity.Property(e => e.Version).HasColumnType("int(11)");
  9068. });
  9069. modelBuilder.Entity<UserSwapSummary>(entity =>
  9070. {
  9071. entity.Property(e => e.Id).HasColumnType("int(11)");
  9072. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9073. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9074. entity.Property(e => e.CreateMan)
  9075. .HasColumnType("varchar(50)")
  9076. .HasCharSet("utf8")
  9077. .HasCollation("utf8_general_ci");
  9078. entity.Property(e => e.DirAvgTradeAmt).HasColumnType("decimal(18,2)");
  9079. entity.Property(e => e.DirectActMerCount).HasColumnType("int(11)");
  9080. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9081. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9082. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  9083. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  9084. entity.Property(e => e.SeoDescription)
  9085. .HasColumnType("varchar(500)")
  9086. .HasCharSet("utf8")
  9087. .HasCollation("utf8_general_ci");
  9088. entity.Property(e => e.SeoKeyword)
  9089. .HasColumnType("varchar(200)")
  9090. .HasCharSet("utf8")
  9091. .HasCollation("utf8_general_ci");
  9092. entity.Property(e => e.SeoTitle)
  9093. .HasColumnType("varchar(100)")
  9094. .HasCharSet("utf8")
  9095. .HasCollation("utf8_general_ci");
  9096. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9097. entity.Property(e => e.Status).HasColumnType("int(11)");
  9098. entity.Property(e => e.SwapExtProductTypes)
  9099. .HasColumnType("varchar(16)")
  9100. .HasCharSet("utf8")
  9101. .HasCollation("utf8_general_ci");
  9102. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9103. entity.Property(e => e.TradeMonth)
  9104. .HasColumnType("varchar(6)")
  9105. .HasCharSet("utf8")
  9106. .HasCollation("utf8_general_ci");
  9107. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9108. entity.Property(e => e.UpdateMan)
  9109. .HasColumnType("varchar(50)")
  9110. .HasCharSet("utf8")
  9111. .HasCollation("utf8_general_ci");
  9112. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9113. entity.Property(e => e.Version).HasColumnType("int(11)");
  9114. });
  9115. modelBuilder.Entity<UserSwapWhite>(entity =>
  9116. {
  9117. entity.Property(e => e.Id).HasColumnType("int(11)");
  9118. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9119. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9120. entity.Property(e => e.CreateMan)
  9121. .HasColumnType("varchar(50)")
  9122. .HasCharSet("utf8")
  9123. .HasCollation("utf8_general_ci");
  9124. entity.Property(e => e.EndEffectTime).HasColumnType("datetime");
  9125. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9126. entity.Property(e => e.Remark)
  9127. .HasColumnType("varchar(64)")
  9128. .HasCharSet("utf8")
  9129. .HasCollation("utf8_general_ci");
  9130. entity.Property(e => e.RiskType).HasColumnType("int(11)");
  9131. entity.Property(e => e.SeoDescription)
  9132. .HasColumnType("varchar(500)")
  9133. .HasCharSet("utf8")
  9134. .HasCollation("utf8_general_ci");
  9135. entity.Property(e => e.SeoKeyword)
  9136. .HasColumnType("varchar(200)")
  9137. .HasCharSet("utf8")
  9138. .HasCollation("utf8_general_ci");
  9139. entity.Property(e => e.SeoTitle)
  9140. .HasColumnType("varchar(100)")
  9141. .HasCharSet("utf8")
  9142. .HasCollation("utf8_general_ci");
  9143. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9144. entity.Property(e => e.StartEffectTime).HasColumnType("datetime");
  9145. entity.Property(e => e.Status).HasColumnType("int(11)");
  9146. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9147. entity.Property(e => e.UpdateMan)
  9148. .HasColumnType("varchar(50)")
  9149. .HasCharSet("utf8")
  9150. .HasCollation("utf8_general_ci");
  9151. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9152. entity.Property(e => e.Version).HasColumnType("int(11)");
  9153. });
  9154. modelBuilder.Entity<UserTradeDaySummary>(entity =>
  9155. {
  9156. entity.Property(e => e.Id).HasColumnType("int(11)");
  9157. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9158. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9159. entity.Property(e => e.CreateMan)
  9160. .HasColumnType("varchar(50)")
  9161. .HasCharSet("utf8")
  9162. .HasCollation("utf8_general_ci");
  9163. entity.Property(e => e.DirectDebitCapNum).HasColumnType("int(11)");
  9164. entity.Property(e => e.DirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9165. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9166. entity.Property(e => e.NonDirectDebitCapNum).HasColumnType("int(11)");
  9167. entity.Property(e => e.NonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9168. entity.Property(e => e.NonDirectTradeAmt).HasColumnType("decimal(18,2)");
  9169. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9170. entity.Property(e => e.Remark)
  9171. .HasColumnType("varchar(64)")
  9172. .HasCharSet("utf8")
  9173. .HasCollation("utf8_general_ci");
  9174. entity.Property(e => e.SeoDescription)
  9175. .HasColumnType("varchar(500)")
  9176. .HasCharSet("utf8")
  9177. .HasCollation("utf8_general_ci");
  9178. entity.Property(e => e.SeoKeyword)
  9179. .HasColumnType("varchar(200)")
  9180. .HasCharSet("utf8")
  9181. .HasCollation("utf8_general_ci");
  9182. entity.Property(e => e.SeoTitle)
  9183. .HasColumnType("varchar(100)")
  9184. .HasCharSet("utf8")
  9185. .HasCollation("utf8_general_ci");
  9186. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9187. entity.Property(e => e.Status).HasColumnType("int(11)");
  9188. entity.Property(e => e.TradeDate)
  9189. .HasColumnType("varchar(8)")
  9190. .HasCharSet("utf8")
  9191. .HasCollation("utf8_general_ci");
  9192. entity.Property(e => e.TradeMonth)
  9193. .HasColumnType("varchar(6)")
  9194. .HasCharSet("utf8")
  9195. .HasCollation("utf8_general_ci");
  9196. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9197. entity.Property(e => e.UpdateMan)
  9198. .HasColumnType("varchar(50)")
  9199. .HasCharSet("utf8")
  9200. .HasCollation("utf8_general_ci");
  9201. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9202. entity.Property(e => e.Version).HasColumnType("int(11)");
  9203. });
  9204. modelBuilder.Entity<UserTradeMonthSummary>(entity =>
  9205. {
  9206. entity.Property(e => e.Id).HasColumnType("int(11)");
  9207. entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
  9208. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9209. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9210. entity.Property(e => e.CreateMan)
  9211. .HasColumnType("varchar(50)")
  9212. .HasCharSet("utf8")
  9213. .HasCollation("utf8_general_ci");
  9214. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9215. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  9216. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  9217. entity.Property(e => e.DebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  9218. entity.Property(e => e.MallPosOrderStatus).HasColumnType("int(11)");
  9219. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9220. entity.Property(e => e.Remark)
  9221. .HasColumnType("varchar(64)")
  9222. .HasCharSet("utf8")
  9223. .HasCollation("utf8_general_ci");
  9224. entity.Property(e => e.SeoDescription)
  9225. .HasColumnType("varchar(500)")
  9226. .HasCharSet("utf8")
  9227. .HasCollation("utf8_general_ci");
  9228. entity.Property(e => e.SeoKeyword)
  9229. .HasColumnType("varchar(200)")
  9230. .HasCharSet("utf8")
  9231. .HasCollation("utf8_general_ci");
  9232. entity.Property(e => e.SeoTitle)
  9233. .HasColumnType("varchar(100)")
  9234. .HasCharSet("utf8")
  9235. .HasCollation("utf8_general_ci");
  9236. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9237. entity.Property(e => e.StatType).HasColumnType("int(11)");
  9238. entity.Property(e => e.Status).HasColumnType("int(11)");
  9239. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9240. entity.Property(e => e.TradeMonth)
  9241. .HasColumnType("varchar(6)")
  9242. .HasCharSet("utf8")
  9243. .HasCollation("utf8_general_ci");
  9244. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9245. entity.Property(e => e.UpdateMan)
  9246. .HasColumnType("varchar(50)")
  9247. .HasCharSet("utf8")
  9248. .HasCollation("utf8_general_ci");
  9249. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9250. entity.Property(e => e.Version).HasColumnType("int(11)");
  9251. });
  9252. modelBuilder.Entity<Users>(entity =>
  9253. {
  9254. entity.Property(e => e.Id).HasColumnType("int(11)");
  9255. entity.Property(e => e.AccessToken)
  9256. .HasColumnType("varchar(64)")
  9257. .HasCharSet("utf8")
  9258. .HasCollation("utf8_general_ci");
  9259. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  9260. entity.Property(e => e.Address)
  9261. .HasColumnType("varchar(50)")
  9262. .HasCharSet("utf8")
  9263. .HasCollation("utf8_general_ci");
  9264. entity.Property(e => e.AgentAreas)
  9265. .HasColumnType("varchar(50)")
  9266. .HasCharSet("utf8")
  9267. .HasCollation("utf8_general_ci");
  9268. entity.Property(e => e.AgentLevel).HasColumnType("int(11)");
  9269. entity.Property(e => e.AlipayUserId)
  9270. .HasColumnType("varchar(50)")
  9271. .HasCharSet("utf8")
  9272. .HasCollation("utf8_general_ci");
  9273. entity.Property(e => e.Areas)
  9274. .HasColumnType("varchar(30)")
  9275. .HasCharSet("utf8")
  9276. .HasCollation("utf8_general_ci");
  9277. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  9278. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  9279. entity.Property(e => e.AuthFlag)
  9280. .HasColumnType("bit(1)")
  9281. .HasDefaultValueSql("b'0'");
  9282. entity.Property(e => e.BankCardPositiveImage)
  9283. .HasColumnType("varchar(200)")
  9284. .HasCharSet("utf8")
  9285. .HasCollation("utf8_general_ci");
  9286. entity.Property(e => e.CarIds)
  9287. .HasColumnType("varchar(100)")
  9288. .HasCharSet("utf8")
  9289. .HasCollation("utf8_general_ci");
  9290. entity.Property(e => e.CardNo)
  9291. .HasColumnType("varchar(30)")
  9292. .HasCharSet("utf8")
  9293. .HasCollation("utf8_general_ci");
  9294. entity.Property(e => e.CardRecCode)
  9295. .HasColumnType("varchar(200)")
  9296. .HasCharSet("utf8")
  9297. .HasCollation("utf8_general_ci");
  9298. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  9299. entity.Property(e => e.CertFrontImage)
  9300. .HasColumnType("varchar(200)")
  9301. .HasCharSet("utf8")
  9302. .HasCollation("utf8_general_ci");
  9303. entity.Property(e => e.CertId)
  9304. .HasColumnType("varchar(18)")
  9305. .HasCharSet("utf8")
  9306. .HasCollation("utf8_general_ci");
  9307. entity.Property(e => e.CertReverseImage)
  9308. .HasColumnType("varchar(200)")
  9309. .HasCharSet("utf8")
  9310. .HasCollation("utf8_general_ci");
  9311. entity.Property(e => e.CertValidEndDate).HasColumnType("datetime");
  9312. entity.Property(e => e.CertValidStartDate).HasColumnType("datetime");
  9313. entity.Property(e => e.CitySetDate).HasColumnType("datetime");
  9314. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9315. entity.Property(e => e.CreateMan)
  9316. .HasColumnType("varchar(50)")
  9317. .HasCharSet("utf8")
  9318. .HasCollation("utf8_general_ci");
  9319. entity.Property(e => e.DeviceId)
  9320. .HasColumnType("varchar(128)")
  9321. .HasCharSet("utf8")
  9322. .HasCollation("utf8_general_ci");
  9323. entity.Property(e => e.DeviceToken)
  9324. .HasColumnType("varchar(64)")
  9325. .HasCharSet("utf8")
  9326. .HasCollation("utf8_general_ci");
  9327. entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
  9328. entity.Property(e => e.GroupId)
  9329. .HasColumnType("varchar(200)")
  9330. .HasCharSet("utf8")
  9331. .HasCollation("utf8_general_ci");
  9332. entity.Property(e => e.HandCertImage)
  9333. .HasColumnType("varchar(200)")
  9334. .HasCharSet("utf8")
  9335. .HasCollation("utf8_general_ci");
  9336. entity.Property(e => e.HandPwd)
  9337. .HasColumnType("varchar(32)")
  9338. .HasCharSet("utf8")
  9339. .HasCollation("utf8_general_ci");
  9340. entity.Property(e => e.HeadPhoto)
  9341. .HasColumnType("varchar(2000)")
  9342. .HasCharSet("utf8")
  9343. .HasCollation("utf8_general_ci");
  9344. entity.Property(e => e.IdCardEndNo)
  9345. .HasColumnType("varchar(4)")
  9346. .HasCharSet("utf8")
  9347. .HasCollation("utf8_general_ci");
  9348. entity.Property(e => e.IsNewUser)
  9349. .HasColumnType("bit(1)")
  9350. .HasDefaultValueSql("b'0'");
  9351. entity.Property(e => e.LockStatus)
  9352. .HasColumnType("bit(1)")
  9353. .HasDefaultValueSql("b'0'");
  9354. entity.Property(e => e.LoginPwd)
  9355. .HasColumnType("varchar(32)")
  9356. .HasCharSet("utf8")
  9357. .HasCollation("utf8_general_ci");
  9358. entity.Property(e => e.LoginStatus).HasColumnType("int(11)");
  9359. entity.Property(e => e.MakerCode)
  9360. .HasColumnType("varchar(32)")
  9361. .HasCharSet("utf8")
  9362. .HasCollation("utf8_general_ci");
  9363. entity.Property(e => e.MerchantDate).HasColumnType("datetime");
  9364. entity.Property(e => e.MerchantType).HasColumnType("int(11)");
  9365. entity.Property(e => e.Mobile)
  9366. .HasColumnType("varchar(11)")
  9367. .HasCharSet("utf8")
  9368. .HasCollation("utf8_general_ci");
  9369. entity.Property(e => e.NickName)
  9370. .HasColumnType("varchar(300)")
  9371. .HasCharSet("utf8")
  9372. .HasCollation("utf8_general_ci");
  9373. entity.Property(e => e.OpenId)
  9374. .HasColumnType("varchar(50)")
  9375. .HasCharSet("utf8")
  9376. .HasCollation("utf8_general_ci");
  9377. entity.Property(e => e.ParentNav)
  9378. .HasColumnType("longtext")
  9379. .HasCharSet("utf8")
  9380. .HasCollation("utf8_general_ci");
  9381. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  9382. entity.Property(e => e.PayPwd)
  9383. .HasColumnType("varchar(32)")
  9384. .HasCharSet("utf8")
  9385. .HasCollation("utf8_general_ci");
  9386. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  9387. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9388. entity.Property(e => e.RealName)
  9389. .HasColumnType("varchar(30)")
  9390. .HasCharSet("utf8")
  9391. .HasCollation("utf8_general_ci");
  9392. entity.Property(e => e.ReferenceCode)
  9393. .HasColumnType("varchar(200)")
  9394. .HasCharSet("utf8")
  9395. .HasCollation("utf8_general_ci");
  9396. entity.Property(e => e.ReferenceQrCode)
  9397. .HasColumnType("varchar(200)")
  9398. .HasCharSet("utf8")
  9399. .HasCollation("utf8_general_ci");
  9400. entity.Property(e => e.ReferralUserId).HasColumnType("int(11)");
  9401. entity.Property(e => e.Remark)
  9402. .HasColumnType("mediumtext")
  9403. .HasCharSet("utf8")
  9404. .HasCollation("utf8_general_ci");
  9405. entity.Property(e => e.RiskFlag)
  9406. .HasColumnType("bit(1)")
  9407. .HasDefaultValueSql("b'0'");
  9408. entity.Property(e => e.RiskRemark)
  9409. .HasColumnType("varchar(64)")
  9410. .HasCharSet("utf8")
  9411. .HasCollation("utf8_general_ci");
  9412. entity.Property(e => e.RreezeRemark)
  9413. .HasColumnType("varchar(64)")
  9414. .HasCharSet("utf8")
  9415. .HasCollation("utf8_general_ci");
  9416. entity.Property(e => e.SeoDescription)
  9417. .HasColumnType("varchar(500)")
  9418. .HasCharSet("utf8")
  9419. .HasCollation("utf8_general_ci");
  9420. entity.Property(e => e.SeoKeyword)
  9421. .HasColumnType("varchar(200)")
  9422. .HasCharSet("utf8")
  9423. .HasCollation("utf8_general_ci");
  9424. entity.Property(e => e.SeoTitle)
  9425. .HasColumnType("varchar(100)")
  9426. .HasCharSet("utf8")
  9427. .HasCollation("utf8_general_ci");
  9428. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  9429. entity.Property(e => e.SettleBankCardName)
  9430. .HasColumnType("varchar(20)")
  9431. .HasCharSet("utf8")
  9432. .HasCollation("utf8_general_ci");
  9433. entity.Property(e => e.SettleBankCardNo)
  9434. .HasColumnType("varchar(32)")
  9435. .HasCharSet("utf8")
  9436. .HasCollation("utf8_general_ci");
  9437. entity.Property(e => e.SettleBankName)
  9438. .HasColumnType("varchar(32)")
  9439. .HasCharSet("utf8")
  9440. .HasCollation("utf8_general_ci");
  9441. entity.Property(e => e.SettleRemark)
  9442. .HasColumnType("varchar(64)")
  9443. .HasCharSet("utf8")
  9444. .HasCollation("utf8_general_ci");
  9445. entity.Property(e => e.Sex).HasColumnType("int(11)");
  9446. entity.Property(e => e.SignImgUrl)
  9447. .HasColumnType("varchar(200)")
  9448. .HasCharSet("utf8")
  9449. .HasCollation("utf8_general_ci");
  9450. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9451. entity.Property(e => e.Status).HasColumnType("int(11)");
  9452. entity.Property(e => e.Tags)
  9453. .HasColumnType("varchar(200)")
  9454. .HasCharSet("utf8")
  9455. .HasCollation("utf8_general_ci");
  9456. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9457. entity.Property(e => e.UpdateMan)
  9458. .HasColumnType("varchar(50)")
  9459. .HasCharSet("utf8")
  9460. .HasCollation("utf8_general_ci");
  9461. entity.Property(e => e.UserLevel).HasColumnType("int(11)");
  9462. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  9463. entity.Property(e => e.UserType).HasColumnType("int(11)");
  9464. entity.Property(e => e.Version).HasColumnType("int(11)");
  9465. });
  9466. OnModelCreatingPartial(modelBuilder);
  9467. }
  9468. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  9469. }
  9470. }