WebCMSEntities.cs 565 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798
  1. using System;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata;
  4. namespace MySystem.Models
  5. {
  6. public partial class WebCMSEntities : DbContext
  7. {
  8. public WebCMSEntities()
  9. {
  10. }
  11. public WebCMSEntities(DbContextOptions<WebCMSEntities> options)
  12. : base(options)
  13. {
  14. }
  15. public virtual DbSet<ActiveReward> ActiveReward { get; set; }
  16. public virtual DbSet<ActivityEnrolRecord> ActivityEnrolRecord { get; set; }
  17. public virtual DbSet<ActivityInfo> ActivityInfo { get; set; }
  18. public virtual DbSet<ActivityPrizeDetail> ActivityPrizeDetail { get; set; }
  19. public virtual DbSet<ActivityRedPackageJoins> ActivityRedPackageJoins { get; set; }
  20. public virtual DbSet<ActivityRedPackageStock> ActivityRedPackageStock { get; set; }
  21. public virtual DbSet<ActivityRedPackageTop10> ActivityRedPackageTop10 { get; set; }
  22. public virtual DbSet<Advertisment> Advertisment { get; set; }
  23. public virtual DbSet<AgentLevelSet> AgentLevelSet { get; set; }
  24. public virtual DbSet<AppBottomNavs> AppBottomNavs { get; set; }
  25. public virtual DbSet<AppVersion> AppVersion { get; set; }
  26. public virtual DbSet<AppVideo> AppVideo { get; set; }
  27. public virtual DbSet<AppVideoList> AppVideoList { get; set; }
  28. public virtual DbSet<BankInfo> BankInfo { get; set; }
  29. public virtual DbSet<Col> Col { get; set; }
  30. public virtual DbSet<ConsumerOpenIds> ConsumerOpenIds { get; set; }
  31. public virtual DbSet<ConsumerOrderForNo> ConsumerOrderForNo { get; set; }
  32. public virtual DbSet<ConsumerOrders> ConsumerOrders { get; set; }
  33. public virtual DbSet<ConsumerProfit> ConsumerProfit { get; set; }
  34. public virtual DbSet<Consumers> Consumers { get; set; }
  35. public virtual DbSet<CouponAssignRecords> CouponAssignRecords { get; set; }
  36. public virtual DbSet<Coupons> Coupons { get; set; }
  37. public virtual DbSet<CouponsForUser> CouponsForUser { get; set; }
  38. public virtual DbSet<CustomTagSet> CustomTagSet { get; set; }
  39. public virtual DbSet<ErpCompanys> ErpCompanys { get; set; }
  40. public virtual DbSet<FileUpdateInfo> FileUpdateInfo { get; set; }
  41. public virtual DbSet<FluxProfitDetail> FluxProfitDetail { get; set; }
  42. public virtual DbSet<FluxProfitSummary> FluxProfitSummary { get; set; }
  43. public virtual DbSet<IndexIconList> IndexIconList { get; set; }
  44. public virtual DbSet<KqProductBrand> KqProductBrand { get; set; }
  45. public virtual DbSet<KqProductOrgs> KqProductOrgs { get; set; }
  46. public virtual DbSet<KqProductRuleSet> KqProductRuleSet { get; set; }
  47. public virtual DbSet<KqProducts> KqProducts { get; set; }
  48. public virtual DbSet<LeaderReserveRecord> LeaderReserveRecord { get; set; }
  49. public virtual DbSet<MachineApply> MachineApply { get; set; }
  50. public virtual DbSet<MachineApplyDetail> MachineApplyDetail { get; set; }
  51. public virtual DbSet<MachineChange> MachineChange { get; set; }
  52. public virtual DbSet<MachineChangeDetail> MachineChangeDetail { get; set; }
  53. public virtual DbSet<MachineForMerNo> MachineForMerNo { get; set; }
  54. public virtual DbSet<MachineForQrCode> MachineForQrCode { get; set; }
  55. public virtual DbSet<MachineForSnNo> MachineForSnNo { get; set; }
  56. public virtual DbSet<MachineRenew> MachineRenew { get; set; }
  57. public virtual DbSet<MachineReturn> MachineReturn { get; set; }
  58. public virtual DbSet<MachineUnBind> MachineUnBind { get; set; }
  59. public virtual DbSet<MenuRight> MenuRight { get; set; }
  60. public virtual DbSet<MerchantAddInfo> MerchantAddInfo { get; set; }
  61. public virtual DbSet<MerchantAdmin> MerchantAdmin { get; set; }
  62. public virtual DbSet<MerchantAuth> MerchantAuth { get; set; }
  63. public virtual DbSet<MerchantClass> MerchantClass { get; set; }
  64. public virtual DbSet<MerchantCol> MerchantCol { get; set; }
  65. public virtual DbSet<MerchantComment> MerchantComment { get; set; }
  66. public virtual DbSet<MerchantDepositReturns> MerchantDepositReturns { get; set; }
  67. public virtual DbSet<MerchantForCode> MerchantForCode { get; set; }
  68. public virtual DbSet<MerchantForMobile> MerchantForMobile { get; set; }
  69. public virtual DbSet<MerchantForName> MerchantForName { get; set; }
  70. public virtual DbSet<MerchantInfo> MerchantInfo { get; set; }
  71. public virtual DbSet<MerchantParamSet> MerchantParamSet { get; set; }
  72. public virtual DbSet<MerchantQrCode> MerchantQrCode { get; set; }
  73. public virtual DbSet<MerchantRebateDetail> MerchantRebateDetail { get; set; }
  74. public virtual DbSet<Merchants> Merchants { get; set; }
  75. public virtual DbSet<MobileCodeCheck> MobileCodeCheck { get; set; }
  76. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  77. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  78. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  79. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  80. public virtual DbSet<MsgPush> MsgPush { get; set; }
  81. public virtual DbSet<MsgSms> MsgSms { get; set; }
  82. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  83. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  84. public virtual DbSet<OpenBankCityTable> OpenBankCityTable { get; set; }
  85. public virtual DbSet<OpenBankTable> OpenBankTable { get; set; }
  86. public virtual DbSet<OpenReward> OpenReward { get; set; }
  87. public virtual DbSet<OpenRewardDetail> OpenRewardDetail { get; set; }
  88. public virtual DbSet<OpenSnSnapshot> OpenSnSnapshot { get; set; }
  89. public virtual DbSet<OperateLog> OperateLog { get; set; }
  90. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  91. public virtual DbSet<OrderForNo> OrderForNo { get; set; }
  92. public virtual DbSet<OrderProduct> OrderProduct { get; set; }
  93. public virtual DbSet<OrderRefund> OrderRefund { get; set; }
  94. public virtual DbSet<OrderRefundReason> OrderRefundReason { get; set; }
  95. public virtual DbSet<Orders> Orders { get; set; }
  96. public virtual DbSet<PageInfo> PageInfo { get; set; }
  97. public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
  98. public virtual DbSet<PosCouponForUser> PosCouponForUser { get; set; }
  99. public virtual DbSet<PosCouponOrders> PosCouponOrders { get; set; }
  100. public virtual DbSet<PosCouponRecord> PosCouponRecord { get; set; }
  101. public virtual DbSet<PosCoupons> PosCoupons { get; set; }
  102. public virtual DbSet<PosMachines> PosMachines { get; set; }
  103. public virtual DbSet<PosMachinesTwo> PosMachinesTwo { get; set; }
  104. public virtual DbSet<PosMerchantInfo> PosMerchantInfo { get; set; }
  105. public virtual DbSet<PosMerchantOtherInfo> PosMerchantOtherInfo { get; set; }
  106. public virtual DbSet<PosMerchantTradeSummay> PosMerchantTradeSummay { get; set; }
  107. public virtual DbSet<PreSendStockDetail> PreSendStockDetail { get; set; }
  108. public virtual DbSet<ProductComment> ProductComment { get; set; }
  109. public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
  110. public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
  111. public virtual DbSet<ProductFareTemp> ProductFareTemp { get; set; }
  112. public virtual DbSet<ProductKeys> ProductKeys { get; set; }
  113. public virtual DbSet<ProductNorm> ProductNorm { get; set; }
  114. public virtual DbSet<ProductNormItem> ProductNormItem { get; set; }
  115. public virtual DbSet<ProductNormTemp> ProductNormTemp { get; set; }
  116. public virtual DbSet<Products> Products { get; set; }
  117. public virtual DbSet<ProfitObjectActivations> ProfitObjectActivations { get; set; }
  118. public virtual DbSet<ProfitObjectContinueFloors> ProfitObjectContinueFloors { get; set; }
  119. public virtual DbSet<ProfitObjectFloors> ProfitObjectFloors { get; set; }
  120. public virtual DbSet<ProfitObjectLevelKinds> ProfitObjectLevelKinds { get; set; }
  121. public virtual DbSet<ProfitObjectLevels> ProfitObjectLevels { get; set; }
  122. public virtual DbSet<ProfitObjects> ProfitObjects { get; set; }
  123. public virtual DbSet<ProfitObjectsActiveCheck> ProfitObjectsActiveCheck { get; set; }
  124. public virtual DbSet<ProfitObjectsActiveParams> ProfitObjectsActiveParams { get; set; }
  125. public virtual DbSet<ProfitObjectsActives> ProfitObjectsActives { get; set; }
  126. public virtual DbSet<ProfitObjectsActivesForId> ProfitObjectsActivesForId { get; set; }
  127. public virtual DbSet<ProfitObjectsRule> ProfitObjectsRule { get; set; }
  128. public virtual DbSet<ProfitObjectsRuleDetails> ProfitObjectsRuleDetails { get; set; }
  129. public virtual DbSet<ProfitReceiveRecord> ProfitReceiveRecord { get; set; }
  130. public virtual DbSet<ProfitReceives> ProfitReceives { get; set; }
  131. public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
  132. public virtual DbSet<ProfitRewardRecord> ProfitRewardRecord { get; set; }
  133. public virtual DbSet<ProfitSubsidyDetail> ProfitSubsidyDetail { get; set; }
  134. public virtual DbSet<ProfitSubsidyDetail04> ProfitSubsidyDetail04 { get; set; }
  135. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  136. public virtual DbSet<PullNewAct> PullNewAct { get; set; }
  137. public virtual DbSet<PullNewDetail> PullNewDetail { get; set; }
  138. public virtual DbSet<PullnewSummary> PullnewSummary { get; set; }
  139. public virtual DbSet<RecommendDirectUser> RecommendDirectUser { get; set; }
  140. public virtual DbSet<RecommendTradeSummary> RecommendTradeSummary { get; set; }
  141. public virtual DbSet<RightDic> RightDic { get; set; }
  142. public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
  143. public virtual DbSet<SetMerchantTypeRecord> SetMerchantTypeRecord { get; set; }
  144. public virtual DbSet<SmallStoreHouse> SmallStoreHouse { get; set; }
  145. public virtual DbSet<SpOrderNos> SpOrderNos { get; set; }
  146. public virtual DbSet<StoreBalance> StoreBalance { get; set; }
  147. public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
  148. public virtual DbSet<StoreForCode> StoreForCode { get; set; }
  149. public virtual DbSet<StoreForName> StoreForName { get; set; }
  150. public virtual DbSet<StoreHouse> StoreHouse { get; set; }
  151. public virtual DbSet<StoreHouseAmountRecord> StoreHouseAmountRecord { get; set; }
  152. public virtual DbSet<StoreMachineApply> StoreMachineApply { get; set; }
  153. public virtual DbSet<StoreMallOrderSummary> StoreMallOrderSummary { get; set; }
  154. public virtual DbSet<StoreSnActivateSummary> StoreSnActivateSummary { get; set; }
  155. public virtual DbSet<StoreStockChange> StoreStockChange { get; set; }
  156. public virtual DbSet<StoreSwapSn> StoreSwapSn { get; set; }
  157. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  158. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  159. public virtual DbSet<SysLog> SysLog { get; set; }
  160. public virtual DbSet<SysRechargeRecord> SysRechargeRecord { get; set; }
  161. public virtual DbSet<SystemSet> SystemSet { get; set; }
  162. public virtual DbSet<TeamApply> TeamApply { get; set; }
  163. public virtual DbSet<TeamApplyForTeamName> TeamApplyForTeamName { get; set; }
  164. public virtual DbSet<TeamApplyForTeamNo> TeamApplyForTeamNo { get; set; }
  165. public virtual DbSet<TeamBlackList> TeamBlackList { get; set; }
  166. public virtual DbSet<TeamConfig> TeamConfig { get; set; }
  167. public virtual DbSet<TeamDayTop> TeamDayTop { get; set; }
  168. public virtual DbSet<TeamOfferApply> TeamOfferApply { get; set; }
  169. public virtual DbSet<TeamPersonDayTop> TeamPersonDayTop { get; set; }
  170. public virtual DbSet<TmpCert> TmpCert { get; set; }
  171. public virtual DbSet<TmpTradeNo> TmpTradeNo { get; set; }
  172. public virtual DbSet<TradeDaySummary> TradeDaySummary { get; set; }
  173. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  174. public virtual DbSet<TradeRecordTest> TradeRecordTest { get; set; }
  175. public virtual DbSet<UploadParams> UploadParams { get; set; }
  176. public virtual DbSet<UserAccount> UserAccount { get; set; }
  177. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  178. public virtual DbSet<UserAddress> UserAddress { get; set; }
  179. public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
  180. public virtual DbSet<UserBack> UserBack { get; set; }
  181. public virtual DbSet<UserBackKind> UserBackKind { get; set; }
  182. public virtual DbSet<UserBalanceTop> UserBalanceTop { get; set; }
  183. public virtual DbSet<UserCar> UserCar { get; set; }
  184. public virtual DbSet<UserCardForWeChat> UserCardForWeChat { get; set; }
  185. public virtual DbSet<UserCardRecord> UserCardRecord { get; set; }
  186. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  187. public virtual DbSet<UserCenterIconList> UserCenterIconList { get; set; }
  188. public virtual DbSet<UserCollection> UserCollection { get; set; }
  189. public virtual DbSet<UserData> UserData { get; set; }
  190. public virtual DbSet<UserDetail> UserDetail { get; set; }
  191. public virtual DbSet<UserFamilyMember> UserFamilyMember { get; set; }
  192. public virtual DbSet<UserForMakerCode> UserForMakerCode { get; set; }
  193. public virtual DbSet<UserForMobile> UserForMobile { get; set; }
  194. public virtual DbSet<UserForRealName> UserForRealName { get; set; }
  195. public virtual DbSet<UserFriend> UserFriend { get; set; }
  196. public virtual DbSet<UserGroup> UserGroup { get; set; }
  197. public virtual DbSet<UserLevelSet> UserLevelSet { get; set; }
  198. public virtual DbSet<UserLoginRecord> UserLoginRecord { get; set; }
  199. public virtual DbSet<UserMachineData> UserMachineData { get; set; }
  200. public virtual DbSet<UserMallLargeSn> UserMallLargeSn { get; set; }
  201. public virtual DbSet<UserOfflineSignInRecords> UserOfflineSignInRecords { get; set; }
  202. public virtual DbSet<UserProfit> UserProfit { get; set; }
  203. public virtual DbSet<UserProfitSet> UserProfitSet { get; set; }
  204. public virtual DbSet<UserProfitSubsidySummary> UserProfitSubsidySummary { get; set; }
  205. public virtual DbSet<UserRank> UserRank { get; set; }
  206. public virtual DbSet<UserRankWhite> UserRankWhite { get; set; }
  207. public virtual DbSet<UserRebateDetail> UserRebateDetail { get; set; }
  208. public virtual DbSet<UserSnActInfo> UserSnActInfo { get; set; }
  209. public virtual DbSet<UserSnDelayChange> UserSnDelayChange { get; set; }
  210. public virtual DbSet<UserStoreChange> UserStoreChange { get; set; }
  211. public virtual DbSet<UserSwapDetail> UserSwapDetail { get; set; }
  212. public virtual DbSet<UserSwapSummary> UserSwapSummary { get; set; }
  213. public virtual DbSet<UserSwapWhite> UserSwapWhite { get; set; }
  214. public virtual DbSet<UserTradeDaySummary> UserTradeDaySummary { get; set; }
  215. public virtual DbSet<UserTradeMonthSummary> UserTradeMonthSummary { get; set; }
  216. public virtual DbSet<Users> Users { get; set; }
  217. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  218. {
  219. if (!optionsBuilder.IsConfigured)
  220. {
  221. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  222. }
  223. }
  224. protected override void OnModelCreating(ModelBuilder modelBuilder)
  225. {
  226. modelBuilder.Entity<ActiveReward>(entity =>
  227. {
  228. entity.Property(e => e.Id).HasColumnType("int(11)");
  229. entity.Property(e => e.ActDate).HasColumnType("datetime");
  230. entity.Property(e => e.ActType).HasColumnType("int(11)");
  231. entity.Property(e => e.ActTypeDesc)
  232. .HasColumnType("varchar(64)")
  233. .HasCharSet("utf8")
  234. .HasCollation("utf8_general_ci");
  235. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  236. entity.Property(e => e.City)
  237. .HasColumnType("varchar(32)")
  238. .HasCharSet("utf8")
  239. .HasCollation("utf8_general_ci");
  240. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  241. entity.Property(e => e.CreateMan)
  242. .HasColumnType("varchar(50)")
  243. .HasCharSet("utf8")
  244. .HasCollation("utf8_general_ci");
  245. entity.Property(e => e.DirectBuddyNo).HasColumnType("int(11)");
  246. entity.Property(e => e.DivideAmount).HasColumnType("decimal(18,2)");
  247. entity.Property(e => e.KqMerNo)
  248. .HasColumnType("varchar(32)")
  249. .HasCharSet("utf8")
  250. .HasCollation("utf8_general_ci");
  251. entity.Property(e => e.KqSnNo)
  252. .HasColumnType("varchar(32)")
  253. .HasCharSet("utf8")
  254. .HasCollation("utf8_general_ci");
  255. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  256. entity.Property(e => e.MerUserNav)
  257. .HasColumnType("varchar(200)")
  258. .HasCharSet("utf8")
  259. .HasCollation("utf8_general_ci");
  260. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  261. entity.Property(e => e.ParentParentUserId).HasColumnType("int(11)");
  262. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  263. entity.Property(e => e.Province)
  264. .HasColumnType("varchar(32)")
  265. .HasCharSet("utf8")
  266. .HasCollation("utf8_general_ci");
  267. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  268. entity.Property(e => e.Remark)
  269. .HasColumnType("varchar(64)")
  270. .HasCharSet("utf8")
  271. .HasCollation("utf8_general_ci");
  272. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  273. entity.Property(e => e.RewardRef).HasColumnType("int(11)");
  274. entity.Property(e => e.RewardSourceUserId).HasColumnType("int(11)");
  275. entity.Property(e => e.RewardTips)
  276. .HasColumnType("varchar(16)")
  277. .HasCharSet("utf8")
  278. .HasCollation("utf8_general_ci");
  279. entity.Property(e => e.RuleRewardAmount).HasColumnType("decimal(18,2)");
  280. entity.Property(e => e.SeoDescription)
  281. .HasColumnType("varchar(500)")
  282. .HasCharSet("utf8")
  283. .HasCollation("utf8_general_ci");
  284. entity.Property(e => e.SeoKeyword)
  285. .HasColumnType("varchar(200)")
  286. .HasCharSet("utf8")
  287. .HasCollation("utf8_general_ci");
  288. entity.Property(e => e.SeoTitle)
  289. .HasColumnType("varchar(100)")
  290. .HasCharSet("utf8")
  291. .HasCollation("utf8_general_ci");
  292. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  293. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  294. entity.Property(e => e.SnType).HasColumnType("int(11)");
  295. entity.Property(e => e.Sort).HasColumnType("int(11)");
  296. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  297. entity.Property(e => e.Status).HasColumnType("int(11)");
  298. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  299. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  300. entity.Property(e => e.UpdateMan)
  301. .HasColumnType("varchar(50)")
  302. .HasCharSet("utf8")
  303. .HasCollation("utf8_general_ci");
  304. entity.Property(e => e.UserId).HasColumnType("int(11)");
  305. entity.Property(e => e.UserNav)
  306. .HasColumnType("varchar(200)")
  307. .HasCharSet("utf8")
  308. .HasCollation("utf8_general_ci");
  309. entity.Property(e => e.Version).HasColumnType("int(11)");
  310. });
  311. modelBuilder.Entity<ActivityEnrolRecord>(entity =>
  312. {
  313. entity.Property(e => e.Id).HasColumnType("int(11)");
  314. entity.Property(e => e.ActId).HasColumnType("int(11)");
  315. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  316. entity.Property(e => e.CreateMan)
  317. .HasColumnType("varchar(50)")
  318. .HasCharSet("utf8")
  319. .HasCollation("utf8_general_ci");
  320. entity.Property(e => e.EffectEndTime)
  321. .HasColumnType("varchar(8)")
  322. .HasCharSet("utf8")
  323. .HasCollation("utf8_general_ci");
  324. entity.Property(e => e.EffectStartTime)
  325. .HasColumnType("varchar(8)")
  326. .HasCharSet("utf8")
  327. .HasCollation("utf8_general_ci");
  328. entity.Property(e => e.EnrolMonth)
  329. .HasColumnType("varchar(80)")
  330. .HasCharSet("utf8")
  331. .HasCollation("utf8_general_ci");
  332. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  333. entity.Property(e => e.SeoDescription)
  334. .HasColumnType("varchar(500)")
  335. .HasCharSet("utf8")
  336. .HasCollation("utf8_general_ci");
  337. entity.Property(e => e.SeoKeyword)
  338. .HasColumnType("varchar(200)")
  339. .HasCharSet("utf8")
  340. .HasCollation("utf8_general_ci");
  341. entity.Property(e => e.SeoTitle)
  342. .HasColumnType("varchar(100)")
  343. .HasCharSet("utf8")
  344. .HasCollation("utf8_general_ci");
  345. entity.Property(e => e.Sort).HasColumnType("int(11)");
  346. entity.Property(e => e.Status).HasColumnType("int(11)");
  347. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  348. entity.Property(e => e.UpdateMan)
  349. .HasColumnType("varchar(50)")
  350. .HasCharSet("utf8")
  351. .HasCollation("utf8_general_ci");
  352. entity.Property(e => e.UserId).HasColumnType("int(11)");
  353. entity.Property(e => e.Version).HasColumnType("int(11)");
  354. });
  355. modelBuilder.Entity<ActivityInfo>(entity =>
  356. {
  357. entity.Property(e => e.Id).HasColumnType("int(11)");
  358. entity.Property(e => e.ActBanner)
  359. .HasColumnType("varchar(200)")
  360. .HasCharSet("utf8")
  361. .HasCollation("utf8_general_ci");
  362. entity.Property(e => e.ActCode)
  363. .HasColumnType("varchar(32)")
  364. .HasCharSet("utf8")
  365. .HasCollation("utf8_general_ci");
  366. entity.Property(e => e.ActContent)
  367. .HasColumnType("longtext")
  368. .HasCharSet("utf8")
  369. .HasCollation("utf8_general_ci");
  370. entity.Property(e => e.ActName)
  371. .HasColumnType("varchar(128)")
  372. .HasCharSet("utf8")
  373. .HasCollation("utf8_general_ci");
  374. entity.Property(e => e.ActReferUrl)
  375. .HasColumnType("varchar(255)")
  376. .HasCharSet("utf8")
  377. .HasCollation("utf8_general_ci");
  378. entity.Property(e => e.ActType).HasColumnType("int(11)");
  379. entity.Property(e => e.BrandId)
  380. .HasColumnType("varchar(100)")
  381. .HasCharSet("utf8")
  382. .HasCollation("utf8_general_ci");
  383. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  384. entity.Property(e => e.CreateMan)
  385. .HasColumnType("varchar(50)")
  386. .HasCharSet("utf8")
  387. .HasCollation("utf8_general_ci");
  388. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  389. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  390. entity.Property(e => e.EnrolEndDate).HasColumnType("datetime");
  391. entity.Property(e => e.EnrolEndTime)
  392. .HasColumnType("varchar(8)")
  393. .HasCharSet("utf8")
  394. .HasCollation("utf8_general_ci");
  395. entity.Property(e => e.EnrolStartDate).HasColumnType("datetime");
  396. entity.Property(e => e.EnrolStartTime)
  397. .HasColumnType("varchar(8)")
  398. .HasCharSet("utf8")
  399. .HasCollation("utf8_general_ci");
  400. entity.Property(e => e.IsTop).HasColumnType("int(11)");
  401. entity.Property(e => e.LimitTopBuddy)
  402. .HasColumnType("varchar(255)")
  403. .HasCharSet("utf8")
  404. .HasCollation("utf8_general_ci");
  405. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  406. entity.Property(e => e.Remark)
  407. .HasColumnType("varchar(128)")
  408. .HasCharSet("utf8")
  409. .HasCollation("utf8_general_ci");
  410. entity.Property(e => e.SeoDescription)
  411. .HasColumnType("varchar(500)")
  412. .HasCharSet("utf8")
  413. .HasCollation("utf8_general_ci");
  414. entity.Property(e => e.SeoKeyword)
  415. .HasColumnType("varchar(200)")
  416. .HasCharSet("utf8")
  417. .HasCollation("utf8_general_ci");
  418. entity.Property(e => e.SeoTitle)
  419. .HasColumnType("varchar(100)")
  420. .HasCharSet("utf8")
  421. .HasCollation("utf8_general_ci");
  422. entity.Property(e => e.Sort).HasColumnType("int(11)");
  423. entity.Property(e => e.Status).HasColumnType("int(11)");
  424. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  425. entity.Property(e => e.UpdateMan)
  426. .HasColumnType("varchar(50)")
  427. .HasCharSet("utf8")
  428. .HasCollation("utf8_general_ci");
  429. entity.Property(e => e.Version).HasColumnType("int(11)");
  430. });
  431. modelBuilder.Entity<ActivityPrizeDetail>(entity =>
  432. {
  433. entity.Property(e => e.Id).HasColumnType("int(11)");
  434. entity.Property(e => e.ActRewardAmt).HasColumnType("decimal(18,2)");
  435. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  436. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  437. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  438. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  439. entity.Property(e => e.CreateMan)
  440. .HasColumnType("varchar(50)")
  441. .HasCharSet("utf8")
  442. .HasCollation("utf8_general_ci");
  443. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  444. entity.Property(e => e.OtherProdCreditTradeAmt).HasColumnType("decimal(18,2)");
  445. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  446. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  447. entity.Property(e => e.SeoDescription)
  448. .HasColumnType("varchar(500)")
  449. .HasCharSet("utf8")
  450. .HasCollation("utf8_general_ci");
  451. entity.Property(e => e.SeoKeyword)
  452. .HasColumnType("varchar(200)")
  453. .HasCharSet("utf8")
  454. .HasCollation("utf8_general_ci");
  455. entity.Property(e => e.SeoTitle)
  456. .HasColumnType("varchar(100)")
  457. .HasCharSet("utf8")
  458. .HasCollation("utf8_general_ci");
  459. entity.Property(e => e.Sort).HasColumnType("int(11)");
  460. entity.Property(e => e.Status).HasColumnType("int(11)");
  461. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  462. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  463. entity.Property(e => e.TradeMonth)
  464. .HasColumnType("varchar(6)")
  465. .HasCharSet("utf8")
  466. .HasCollation("utf8_general_ci");
  467. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  468. entity.Property(e => e.UpdateMan)
  469. .HasColumnType("varchar(50)")
  470. .HasCharSet("utf8")
  471. .HasCollation("utf8_general_ci");
  472. entity.Property(e => e.UserId).HasColumnType("int(11)");
  473. entity.Property(e => e.Version).HasColumnType("int(11)");
  474. });
  475. modelBuilder.Entity<ActivityRedPackageJoins>(entity =>
  476. {
  477. entity.Property(e => e.Id).HasColumnType("int(11)");
  478. entity.Property(e => e.ActivityDate)
  479. .HasColumnType("varchar(8)")
  480. .HasCharSet("utf8")
  481. .HasCollation("utf8_general_ci");
  482. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  483. entity.Property(e => e.CreateMan)
  484. .HasColumnType("varchar(50)")
  485. .HasCharSet("utf8")
  486. .HasCollation("utf8_general_ci");
  487. entity.Property(e => e.PrizeAmt).HasColumnType("decimal(18,2)");
  488. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  489. entity.Property(e => e.SeoDescription)
  490. .HasColumnType("varchar(500)")
  491. .HasCharSet("utf8")
  492. .HasCollation("utf8_general_ci");
  493. entity.Property(e => e.SeoKeyword)
  494. .HasColumnType("varchar(200)")
  495. .HasCharSet("utf8")
  496. .HasCollation("utf8_general_ci");
  497. entity.Property(e => e.SeoTitle)
  498. .HasColumnType("varchar(100)")
  499. .HasCharSet("utf8")
  500. .HasCollation("utf8_general_ci");
  501. entity.Property(e => e.Sort).HasColumnType("int(11)");
  502. entity.Property(e => e.Status).HasColumnType("int(11)");
  503. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  504. entity.Property(e => e.UpdateMan)
  505. .HasColumnType("varchar(50)")
  506. .HasCharSet("utf8")
  507. .HasCollation("utf8_general_ci");
  508. entity.Property(e => e.UserId).HasColumnType("int(11)");
  509. entity.Property(e => e.Version).HasColumnType("int(11)");
  510. });
  511. modelBuilder.Entity<ActivityRedPackageStock>(entity =>
  512. {
  513. entity.Property(e => e.Id).HasColumnType("int(11)");
  514. entity.Property(e => e.ActivityDate)
  515. .HasColumnType("varchar(8)")
  516. .HasCharSet("utf8")
  517. .HasCollation("utf8_general_ci");
  518. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  519. entity.Property(e => e.CreateMan)
  520. .HasColumnType("varchar(50)")
  521. .HasCharSet("utf8")
  522. .HasCollation("utf8_general_ci");
  523. entity.Property(e => e.PrizeAmt).HasColumnType("decimal(18,2)");
  524. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  525. entity.Property(e => e.SeoDescription)
  526. .HasColumnType("varchar(500)")
  527. .HasCharSet("utf8")
  528. .HasCollation("utf8_general_ci");
  529. entity.Property(e => e.SeoKeyword)
  530. .HasColumnType("varchar(200)")
  531. .HasCharSet("utf8")
  532. .HasCollation("utf8_general_ci");
  533. entity.Property(e => e.SeoTitle)
  534. .HasColumnType("varchar(100)")
  535. .HasCharSet("utf8")
  536. .HasCollation("utf8_general_ci");
  537. entity.Property(e => e.Sort).HasColumnType("int(11)");
  538. entity.Property(e => e.Status).HasColumnType("int(11)");
  539. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  540. entity.Property(e => e.UpdateMan)
  541. .HasColumnType("varchar(50)")
  542. .HasCharSet("utf8")
  543. .HasCollation("utf8_general_ci");
  544. entity.Property(e => e.UserId).HasColumnType("int(11)");
  545. entity.Property(e => e.Version).HasColumnType("int(11)");
  546. });
  547. modelBuilder.Entity<ActivityRedPackageTop10>(entity =>
  548. {
  549. entity.Property(e => e.Id).HasColumnType("int(11)");
  550. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  551. entity.Property(e => e.CreateMan)
  552. .HasColumnType("varchar(50)")
  553. .HasCharSet("utf8")
  554. .HasCollation("utf8_general_ci");
  555. entity.Property(e => e.Kind).HasColumnType("int(11)");
  556. entity.Property(e => e.PrizeAmt).HasColumnType("decimal(18,2)");
  557. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  558. entity.Property(e => e.SeoDescription)
  559. .HasColumnType("varchar(500)")
  560. .HasCharSet("utf8")
  561. .HasCollation("utf8_general_ci");
  562. entity.Property(e => e.SeoKeyword)
  563. .HasColumnType("varchar(200)")
  564. .HasCharSet("utf8")
  565. .HasCollation("utf8_general_ci");
  566. entity.Property(e => e.SeoTitle)
  567. .HasColumnType("varchar(100)")
  568. .HasCharSet("utf8")
  569. .HasCollation("utf8_general_ci");
  570. entity.Property(e => e.Sort).HasColumnType("int(11)");
  571. entity.Property(e => e.Status).HasColumnType("int(11)");
  572. entity.Property(e => e.TimeNum).HasColumnType("int(11)");
  573. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  574. entity.Property(e => e.UpdateMan)
  575. .HasColumnType("varchar(50)")
  576. .HasCharSet("utf8")
  577. .HasCollation("utf8_general_ci");
  578. entity.Property(e => e.UserId).HasColumnType("int(11)");
  579. entity.Property(e => e.Version).HasColumnType("int(11)");
  580. });
  581. modelBuilder.Entity<Advertisment>(entity =>
  582. {
  583. entity.Property(e => e.Id).HasColumnType("int(11)");
  584. entity.Property(e => e.ColId)
  585. .HasColumnType("varchar(30)")
  586. .HasCharSet("utf8")
  587. .HasCollation("utf8_general_ci");
  588. entity.Property(e => e.Contents)
  589. .HasColumnType("longtext")
  590. .HasCharSet("utf8")
  591. .HasCollation("utf8_general_ci");
  592. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  593. entity.Property(e => e.CreateMan)
  594. .HasColumnType("varchar(50)")
  595. .HasCharSet("utf8")
  596. .HasCollation("utf8_general_ci");
  597. entity.Property(e => e.PicPath)
  598. .HasColumnType("varchar(200)")
  599. .HasCharSet("utf8")
  600. .HasCollation("utf8_general_ci");
  601. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  602. entity.Property(e => e.SeoDescription)
  603. .HasColumnType("varchar(500)")
  604. .HasCharSet("utf8")
  605. .HasCollation("utf8_general_ci");
  606. entity.Property(e => e.SeoKeyword)
  607. .HasColumnType("varchar(200)")
  608. .HasCharSet("utf8")
  609. .HasCollation("utf8_general_ci");
  610. entity.Property(e => e.SeoTitle)
  611. .HasColumnType("varchar(100)")
  612. .HasCharSet("utf8")
  613. .HasCollation("utf8_general_ci");
  614. entity.Property(e => e.Sort).HasColumnType("int(11)");
  615. entity.Property(e => e.Status).HasColumnType("int(11)");
  616. entity.Property(e => e.Title)
  617. .HasColumnType("varchar(50)")
  618. .HasCharSet("utf8")
  619. .HasCollation("utf8_general_ci");
  620. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  621. entity.Property(e => e.UpdateMan)
  622. .HasColumnType("varchar(50)")
  623. .HasCharSet("utf8")
  624. .HasCollation("utf8_general_ci");
  625. entity.Property(e => e.Url)
  626. .HasColumnType("longtext")
  627. .HasCharSet("utf8")
  628. .HasCollation("utf8_general_ci");
  629. entity.Property(e => e.Version).HasColumnType("int(11)");
  630. });
  631. modelBuilder.Entity<AgentLevelSet>(entity =>
  632. {
  633. entity.Property(e => e.Id).HasColumnType("int(11)");
  634. entity.Property(e => e.AreasProfitPercent).HasColumnType("decimal(18,2)");
  635. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  636. entity.Property(e => e.CreateMan)
  637. .HasColumnType("varchar(50)")
  638. .HasCharSet("utf8")
  639. .HasCollation("utf8_general_ci");
  640. entity.Property(e => e.LevelDiff)
  641. .HasColumnType("bit(1)")
  642. .HasDefaultValueSql("b'0'");
  643. entity.Property(e => e.Name)
  644. .HasColumnType("varchar(50)")
  645. .HasCharSet("utf8")
  646. .HasCollation("utf8_general_ci");
  647. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  648. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  649. entity.Property(e => e.SeoDescription)
  650. .HasColumnType("varchar(500)")
  651. .HasCharSet("utf8")
  652. .HasCollation("utf8_general_ci");
  653. entity.Property(e => e.SeoKeyword)
  654. .HasColumnType("varchar(200)")
  655. .HasCharSet("utf8")
  656. .HasCollation("utf8_general_ci");
  657. entity.Property(e => e.SeoTitle)
  658. .HasColumnType("varchar(100)")
  659. .HasCharSet("utf8")
  660. .HasCollation("utf8_general_ci");
  661. entity.Property(e => e.Sort).HasColumnType("int(11)");
  662. entity.Property(e => e.Status).HasColumnType("int(11)");
  663. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  664. entity.Property(e => e.UpdateMan)
  665. .HasColumnType("varchar(50)")
  666. .HasCharSet("utf8")
  667. .HasCollation("utf8_general_ci");
  668. entity.Property(e => e.Version).HasColumnType("int(11)");
  669. });
  670. modelBuilder.Entity<AppBottomNavs>(entity =>
  671. {
  672. entity.Property(e => e.Id).HasColumnType("int(11)");
  673. entity.Property(e => e.BgColor)
  674. .HasColumnType("varchar(6)")
  675. .HasCharSet("utf8")
  676. .HasCollation("utf8_general_ci");
  677. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  678. entity.Property(e => e.CreateMan)
  679. .HasColumnType("varchar(50)")
  680. .HasCharSet("utf8")
  681. .HasCollation("utf8_general_ci");
  682. entity.Property(e => e.NoPageHint)
  683. .HasColumnType("varchar(50)")
  684. .HasCharSet("utf8")
  685. .HasCollation("utf8_general_ci");
  686. entity.Property(e => e.NormalIcon)
  687. .HasColumnType("varchar(200)")
  688. .HasCharSet("utf8")
  689. .HasCollation("utf8_general_ci");
  690. entity.Property(e => e.NormalTextColor)
  691. .HasColumnType("varchar(6)")
  692. .HasCharSet("utf8")
  693. .HasCollation("utf8_general_ci");
  694. entity.Property(e => e.PageName)
  695. .HasColumnType("varchar(50)")
  696. .HasCharSet("utf8")
  697. .HasCollation("utf8_general_ci");
  698. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  699. entity.Property(e => e.SelectIcon)
  700. .HasColumnType("varchar(200)")
  701. .HasCharSet("utf8")
  702. .HasCollation("utf8_general_ci");
  703. entity.Property(e => e.SelectTextColor)
  704. .HasColumnType("varchar(6)")
  705. .HasCharSet("utf8")
  706. .HasCollation("utf8_general_ci");
  707. entity.Property(e => e.SeoDescription)
  708. .HasColumnType("varchar(500)")
  709. .HasCharSet("utf8")
  710. .HasCollation("utf8_general_ci");
  711. entity.Property(e => e.SeoKeyword)
  712. .HasColumnType("varchar(200)")
  713. .HasCharSet("utf8")
  714. .HasCollation("utf8_general_ci");
  715. entity.Property(e => e.SeoTitle)
  716. .HasColumnType("varchar(100)")
  717. .HasCharSet("utf8")
  718. .HasCollation("utf8_general_ci");
  719. entity.Property(e => e.Sort).HasColumnType("int(11)");
  720. entity.Property(e => e.Status).HasColumnType("int(11)");
  721. entity.Property(e => e.Title)
  722. .HasColumnType("varchar(10)")
  723. .HasCharSet("utf8")
  724. .HasCollation("utf8_general_ci");
  725. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  726. entity.Property(e => e.UpdateMan)
  727. .HasColumnType("varchar(50)")
  728. .HasCharSet("utf8")
  729. .HasCollation("utf8_general_ci");
  730. entity.Property(e => e.Version).HasColumnType("int(11)");
  731. });
  732. modelBuilder.Entity<AppVersion>(entity =>
  733. {
  734. entity.Property(e => e.Id).HasColumnType("int(11)");
  735. entity.Property(e => e.CancelText)
  736. .HasColumnType("varchar(10)")
  737. .HasCharSet("utf8")
  738. .HasCollation("utf8_general_ci");
  739. entity.Property(e => e.ConfirmText)
  740. .HasColumnType("varchar(10)")
  741. .HasCharSet("utf8")
  742. .HasCollation("utf8_general_ci");
  743. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  744. entity.Property(e => e.CreateMan)
  745. .HasColumnType("varchar(50)")
  746. .HasCharSet("utf8")
  747. .HasCollation("utf8_general_ci");
  748. entity.Property(e => e.DownloadUrl)
  749. .HasColumnType("varchar(500)")
  750. .HasCharSet("utf8")
  751. .HasCollation("utf8_general_ci");
  752. entity.Property(e => e.Info)
  753. .HasColumnType("varchar(200)")
  754. .HasCharSet("utf8")
  755. .HasCollation("utf8_general_ci");
  756. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  757. entity.Property(e => e.SeoDescription)
  758. .HasColumnType("varchar(500)")
  759. .HasCharSet("utf8")
  760. .HasCollation("utf8_general_ci");
  761. entity.Property(e => e.SeoKeyword)
  762. .HasColumnType("varchar(200)")
  763. .HasCharSet("utf8")
  764. .HasCollation("utf8_general_ci");
  765. entity.Property(e => e.SeoTitle)
  766. .HasColumnType("varchar(100)")
  767. .HasCharSet("utf8")
  768. .HasCollation("utf8_general_ci");
  769. entity.Property(e => e.Sort).HasColumnType("int(11)");
  770. entity.Property(e => e.Status).HasColumnType("int(11)");
  771. entity.Property(e => e.TerminalKind)
  772. .HasColumnType("varchar(10)")
  773. .HasCharSet("utf8")
  774. .HasCollation("utf8_general_ci");
  775. entity.Property(e => e.Title)
  776. .HasColumnType("varchar(50)")
  777. .HasCharSet("utf8")
  778. .HasCollation("utf8_general_ci");
  779. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  780. entity.Property(e => e.UpdateMan)
  781. .HasColumnType("varchar(50)")
  782. .HasCharSet("utf8")
  783. .HasCollation("utf8_general_ci");
  784. entity.Property(e => e.Version).HasColumnType("int(11)");
  785. entity.Property(e => e.VersionNum)
  786. .HasColumnType("varchar(20)")
  787. .HasCharSet("utf8")
  788. .HasCollation("utf8_general_ci");
  789. });
  790. modelBuilder.Entity<AppVideo>(entity =>
  791. {
  792. entity.Property(e => e.Id).HasColumnType("int(11)");
  793. entity.Property(e => e.BannerPic)
  794. .HasColumnType("varchar(200)")
  795. .HasCharSet("utf8")
  796. .HasCollation("utf8_general_ci");
  797. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  798. entity.Property(e => e.CreateMan)
  799. .HasColumnType("varchar(50)")
  800. .HasCharSet("utf8")
  801. .HasCollation("utf8_general_ci");
  802. entity.Property(e => e.Name)
  803. .HasColumnType("varchar(50)")
  804. .HasCharSet("utf8")
  805. .HasCollation("utf8_general_ci");
  806. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  807. entity.Property(e => e.Remark)
  808. .HasColumnType("varchar(200)")
  809. .HasCharSet("utf8")
  810. .HasCollation("utf8_general_ci");
  811. entity.Property(e => e.SeoDescription)
  812. .HasColumnType("varchar(500)")
  813. .HasCharSet("utf8")
  814. .HasCollation("utf8_general_ci");
  815. entity.Property(e => e.SeoKeyword)
  816. .HasColumnType("varchar(200)")
  817. .HasCharSet("utf8")
  818. .HasCollation("utf8_general_ci");
  819. entity.Property(e => e.SeoTitle)
  820. .HasColumnType("varchar(100)")
  821. .HasCharSet("utf8")
  822. .HasCollation("utf8_general_ci");
  823. entity.Property(e => e.Sort).HasColumnType("int(11)");
  824. entity.Property(e => e.Status).HasColumnType("int(11)");
  825. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  826. entity.Property(e => e.UpdateMan)
  827. .HasColumnType("varchar(50)")
  828. .HasCharSet("utf8")
  829. .HasCollation("utf8_general_ci");
  830. entity.Property(e => e.Version).HasColumnType("int(11)");
  831. });
  832. modelBuilder.Entity<AppVideoList>(entity =>
  833. {
  834. entity.Property(e => e.Id).HasColumnType("int(11)");
  835. entity.Property(e => e.BgPic)
  836. .HasColumnType("varchar(200)")
  837. .HasCharSet("utf8")
  838. .HasCollation("utf8_general_ci");
  839. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  840. entity.Property(e => e.CreateMan)
  841. .HasColumnType("varchar(50)")
  842. .HasCharSet("utf8")
  843. .HasCollation("utf8_general_ci");
  844. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  845. entity.Property(e => e.Remark)
  846. .HasColumnType("varchar(200)")
  847. .HasCharSet("utf8")
  848. .HasCollation("utf8_general_ci");
  849. entity.Property(e => e.SeoDescription)
  850. .HasColumnType("varchar(500)")
  851. .HasCharSet("utf8")
  852. .HasCollation("utf8_general_ci");
  853. entity.Property(e => e.SeoKeyword)
  854. .HasColumnType("varchar(200)")
  855. .HasCharSet("utf8")
  856. .HasCollation("utf8_general_ci");
  857. entity.Property(e => e.SeoTitle)
  858. .HasColumnType("varchar(100)")
  859. .HasCharSet("utf8")
  860. .HasCollation("utf8_general_ci");
  861. entity.Property(e => e.Sort).HasColumnType("int(11)");
  862. entity.Property(e => e.Status).HasColumnType("int(11)");
  863. entity.Property(e => e.Title)
  864. .HasColumnType("varchar(50)")
  865. .HasCharSet("utf8")
  866. .HasCollation("utf8_general_ci");
  867. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  868. entity.Property(e => e.UpdateMan)
  869. .HasColumnType("varchar(50)")
  870. .HasCharSet("utf8")
  871. .HasCollation("utf8_general_ci");
  872. entity.Property(e => e.Version).HasColumnType("int(11)");
  873. entity.Property(e => e.VideoId).HasColumnType("int(11)");
  874. entity.Property(e => e.VideoUrl)
  875. .HasColumnType("varchar(500)")
  876. .HasCharSet("utf8")
  877. .HasCollation("utf8_general_ci");
  878. });
  879. modelBuilder.Entity<BankInfo>(entity =>
  880. {
  881. entity.Property(e => e.Id).HasColumnType("int(11)");
  882. entity.Property(e => e.BankCode)
  883. .HasColumnType("varchar(16)")
  884. .HasCharSet("utf8")
  885. .HasCollation("utf8_general_ci");
  886. entity.Property(e => e.BankName)
  887. .HasColumnType("varchar(100)")
  888. .HasCharSet("utf8")
  889. .HasCollation("utf8_general_ci");
  890. entity.Property(e => e.BankNameAbbr)
  891. .HasColumnType("varchar(60)")
  892. .HasCharSet("utf8")
  893. .HasCollation("utf8_general_ci");
  894. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  895. entity.Property(e => e.CreateMan)
  896. .HasColumnType("varchar(50)")
  897. .HasCharSet("utf8")
  898. .HasCollation("utf8_general_ci");
  899. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  900. entity.Property(e => e.SeoDescription)
  901. .HasColumnType("varchar(500)")
  902. .HasCharSet("utf8")
  903. .HasCollation("utf8_general_ci");
  904. entity.Property(e => e.SeoKeyword)
  905. .HasColumnType("varchar(200)")
  906. .HasCharSet("utf8")
  907. .HasCollation("utf8_general_ci");
  908. entity.Property(e => e.SeoTitle)
  909. .HasColumnType("varchar(100)")
  910. .HasCharSet("utf8")
  911. .HasCollation("utf8_general_ci");
  912. entity.Property(e => e.Sort).HasColumnType("int(11)");
  913. entity.Property(e => e.Status).HasColumnType("int(11)");
  914. entity.Property(e => e.UnitedBankName)
  915. .HasColumnType("varchar(100)")
  916. .HasCharSet("utf8")
  917. .HasCollation("utf8_general_ci");
  918. entity.Property(e => e.UnitedBankNo)
  919. .HasColumnType("varchar(16)")
  920. .HasCharSet("utf8")
  921. .HasCollation("utf8_general_ci");
  922. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  923. entity.Property(e => e.UpdateMan)
  924. .HasColumnType("varchar(50)")
  925. .HasCharSet("utf8")
  926. .HasCollation("utf8_general_ci");
  927. entity.Property(e => e.Version).HasColumnType("int(11)");
  928. });
  929. modelBuilder.Entity<Col>(entity =>
  930. {
  931. entity.Property(e => e.Id).HasColumnType("int(11)");
  932. entity.Property(e => e.ClassName)
  933. .HasColumnType("varchar(50)")
  934. .HasCharSet("utf8")
  935. .HasCollation("utf8_general_ci");
  936. entity.Property(e => e.ColDetail)
  937. .HasColumnType("varchar(50)")
  938. .HasCharSet("utf8")
  939. .HasCollation("utf8_general_ci");
  940. entity.Property(e => e.ColEnName)
  941. .HasColumnType("varchar(50)")
  942. .HasCharSet("utf8")
  943. .HasCollation("utf8_general_ci");
  944. entity.Property(e => e.ColEnNav)
  945. .HasColumnType("varchar(200)")
  946. .HasCharSet("utf8")
  947. .HasCollation("utf8_general_ci");
  948. entity.Property(e => e.ColId)
  949. .HasColumnType("varchar(30)")
  950. .HasCharSet("utf8")
  951. .HasCollation("utf8_general_ci");
  952. entity.Property(e => e.ColName)
  953. .HasColumnType("varchar(50)")
  954. .HasCharSet("utf8")
  955. .HasCollation("utf8_general_ci");
  956. entity.Property(e => e.ColPicPath)
  957. .HasColumnType("varchar(200)")
  958. .HasCharSet("utf8")
  959. .HasCollation("utf8_general_ci");
  960. entity.Property(e => e.Contents)
  961. .HasColumnType("longtext")
  962. .HasCharSet("utf8")
  963. .HasCollation("utf8_general_ci");
  964. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  965. entity.Property(e => e.CreateMan)
  966. .HasColumnType("varchar(50)")
  967. .HasCharSet("utf8")
  968. .HasCollation("utf8_general_ci");
  969. entity.Property(e => e.DetailTemp)
  970. .HasColumnType("varchar(100)")
  971. .HasCharSet("utf8")
  972. .HasCollation("utf8_general_ci");
  973. entity.Property(e => e.DetailTempM)
  974. .HasColumnType("varchar(100)")
  975. .HasCharSet("utf8")
  976. .HasCollation("utf8_general_ci");
  977. entity.Property(e => e.ListPageCount).HasColumnType("int(11)");
  978. entity.Property(e => e.ListTemp)
  979. .HasColumnType("varchar(100)")
  980. .HasCharSet("utf8")
  981. .HasCollation("utf8_general_ci");
  982. entity.Property(e => e.ListTempM)
  983. .HasColumnType("varchar(100)")
  984. .HasCharSet("utf8")
  985. .HasCollation("utf8_general_ci");
  986. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  987. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  988. entity.Property(e => e.Recommend)
  989. .HasColumnType("bit(1)")
  990. .HasDefaultValueSql("b'0'");
  991. entity.Property(e => e.SeoDescription)
  992. .HasColumnType("varchar(500)")
  993. .HasCharSet("utf8")
  994. .HasCollation("utf8_general_ci");
  995. entity.Property(e => e.SeoKeyword)
  996. .HasColumnType("varchar(200)")
  997. .HasCharSet("utf8")
  998. .HasCollation("utf8_general_ci");
  999. entity.Property(e => e.SeoTitle)
  1000. .HasColumnType("varchar(100)")
  1001. .HasCharSet("utf8")
  1002. .HasCollation("utf8_general_ci");
  1003. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1004. entity.Property(e => e.Status).HasColumnType("int(11)");
  1005. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1006. entity.Property(e => e.UpdateMan)
  1007. .HasColumnType("varchar(50)")
  1008. .HasCharSet("utf8")
  1009. .HasCollation("utf8_general_ci");
  1010. entity.Property(e => e.Url)
  1011. .HasColumnType("longtext")
  1012. .HasCharSet("utf8")
  1013. .HasCollation("utf8_general_ci");
  1014. entity.Property(e => e.Version).HasColumnType("int(11)");
  1015. });
  1016. modelBuilder.Entity<ConsumerOpenIds>(entity =>
  1017. {
  1018. entity.HasKey(e => e.OpenId)
  1019. .HasName("PRIMARY");
  1020. entity.Property(e => e.OpenId)
  1021. .HasColumnType("varchar(50)")
  1022. .HasCharSet("utf8")
  1023. .HasCollation("utf8_general_ci");
  1024. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  1025. });
  1026. modelBuilder.Entity<ConsumerOrderForNo>(entity =>
  1027. {
  1028. entity.HasKey(e => e.OrderNo)
  1029. .HasName("PRIMARY");
  1030. entity.Property(e => e.OrderNo)
  1031. .HasColumnType("varchar(50)")
  1032. .HasCharSet("utf8")
  1033. .HasCollation("utf8_general_ci");
  1034. entity.Property(e => e.OrderIds).HasColumnType("int(11)");
  1035. });
  1036. modelBuilder.Entity<ConsumerOrders>(entity =>
  1037. {
  1038. entity.Property(e => e.Id).HasColumnType("int(11)");
  1039. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  1040. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1041. entity.Property(e => e.CreateMan)
  1042. .HasColumnType("varchar(50)")
  1043. .HasCharSet("utf8")
  1044. .HasCollation("utf8_general_ci");
  1045. entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
  1046. entity.Property(e => e.IsAct)
  1047. .HasColumnType("bit(1)")
  1048. .HasDefaultValueSql("b'0'");
  1049. entity.Property(e => e.MaxDivi).HasColumnType("decimal(18,2)");
  1050. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1051. entity.Property(e => e.OrderNo)
  1052. .HasColumnType("varchar(30)")
  1053. .HasCharSet("utf8")
  1054. .HasCollation("utf8_general_ci");
  1055. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  1056. entity.Property(e => e.PayMoney).HasColumnType("decimal(18,2)");
  1057. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1058. entity.Property(e => e.ReturnMoney).HasColumnType("decimal(18,2)");
  1059. entity.Property(e => e.SeoDescription)
  1060. .HasColumnType("varchar(500)")
  1061. .HasCharSet("utf8")
  1062. .HasCollation("utf8_general_ci");
  1063. entity.Property(e => e.SeoKeyword)
  1064. .HasColumnType("varchar(200)")
  1065. .HasCharSet("utf8")
  1066. .HasCollation("utf8_general_ci");
  1067. entity.Property(e => e.SeoTitle)
  1068. .HasColumnType("varchar(100)")
  1069. .HasCharSet("utf8")
  1070. .HasCollation("utf8_general_ci");
  1071. entity.Property(e => e.SnNo)
  1072. .HasColumnType("varchar(50)")
  1073. .HasCharSet("utf8")
  1074. .HasCollation("utf8_general_ci");
  1075. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1076. entity.Property(e => e.Status).HasColumnType("int(11)");
  1077. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1078. entity.Property(e => e.UpdateMan)
  1079. .HasColumnType("varchar(50)")
  1080. .HasCharSet("utf8")
  1081. .HasCollation("utf8_general_ci");
  1082. entity.Property(e => e.Version).HasColumnType("int(11)");
  1083. });
  1084. modelBuilder.Entity<ConsumerProfit>(entity =>
  1085. {
  1086. entity.Property(e => e.Id).HasColumnType("int(11)");
  1087. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  1088. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1089. entity.Property(e => e.CreateMan)
  1090. .HasColumnType("varchar(50)")
  1091. .HasCharSet("utf8")
  1092. .HasCollation("utf8_general_ci");
  1093. entity.Property(e => e.GetMoney).HasColumnType("decimal(18,2)");
  1094. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1095. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  1096. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1097. entity.Property(e => e.SeoDescription)
  1098. .HasColumnType("varchar(500)")
  1099. .HasCharSet("utf8")
  1100. .HasCollation("utf8_general_ci");
  1101. entity.Property(e => e.SeoKeyword)
  1102. .HasColumnType("varchar(200)")
  1103. .HasCharSet("utf8")
  1104. .HasCollation("utf8_general_ci");
  1105. entity.Property(e => e.SeoTitle)
  1106. .HasColumnType("varchar(100)")
  1107. .HasCharSet("utf8")
  1108. .HasCollation("utf8_general_ci");
  1109. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1110. entity.Property(e => e.Status).HasColumnType("int(11)");
  1111. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1112. entity.Property(e => e.UpdateMan)
  1113. .HasColumnType("varchar(50)")
  1114. .HasCharSet("utf8")
  1115. .HasCollation("utf8_general_ci");
  1116. entity.Property(e => e.Version).HasColumnType("int(11)");
  1117. });
  1118. modelBuilder.Entity<Consumers>(entity =>
  1119. {
  1120. entity.Property(e => e.Id).HasColumnType("int(11)");
  1121. entity.Property(e => e.AlipayFlag)
  1122. .HasColumnType("bit(1)")
  1123. .HasDefaultValueSql("b'0'");
  1124. entity.Property(e => e.AlipayUserId)
  1125. .HasColumnType("varchar(50)")
  1126. .HasCharSet("utf8")
  1127. .HasCollation("utf8_general_ci");
  1128. entity.Property(e => e.CardFlag)
  1129. .HasColumnType("bit(1)")
  1130. .HasDefaultValueSql("b'0'");
  1131. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1132. entity.Property(e => e.CreateMan)
  1133. .HasColumnType("varchar(50)")
  1134. .HasCharSet("utf8")
  1135. .HasCollation("utf8_general_ci");
  1136. entity.Property(e => e.CurIntgegral).HasColumnType("int(11)");
  1137. entity.Property(e => e.HeadPhoto)
  1138. .HasColumnType("varchar(2000)")
  1139. .HasCharSet("utf8")
  1140. .HasCollation("utf8_general_ci");
  1141. entity.Property(e => e.LastConsumDate).HasColumnType("datetime");
  1142. entity.Property(e => e.Mobile)
  1143. .HasColumnType("varchar(11)")
  1144. .HasCharSet("utf8")
  1145. .HasCollation("utf8_general_ci");
  1146. entity.Property(e => e.NickName)
  1147. .HasColumnType("varchar(50)")
  1148. .HasCharSet("utf8")
  1149. .HasCollation("utf8_general_ci");
  1150. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1151. entity.Property(e => e.SeoDescription)
  1152. .HasColumnType("varchar(500)")
  1153. .HasCharSet("utf8")
  1154. .HasCollation("utf8_general_ci");
  1155. entity.Property(e => e.SeoKeyword)
  1156. .HasColumnType("varchar(200)")
  1157. .HasCharSet("utf8")
  1158. .HasCollation("utf8_general_ci");
  1159. entity.Property(e => e.SeoTitle)
  1160. .HasColumnType("varchar(100)")
  1161. .HasCharSet("utf8")
  1162. .HasCollation("utf8_general_ci");
  1163. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1164. entity.Property(e => e.Status).HasColumnType("int(11)");
  1165. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1166. entity.Property(e => e.TotalConsumCount).HasColumnType("int(11)");
  1167. entity.Property(e => e.TotalDividend).HasColumnType("decimal(18,2)");
  1168. entity.Property(e => e.TotalIntegral).HasColumnType("int(11)");
  1169. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1170. entity.Property(e => e.UpdateMan)
  1171. .HasColumnType("varchar(50)")
  1172. .HasCharSet("utf8")
  1173. .HasCollation("utf8_general_ci");
  1174. entity.Property(e => e.Version).HasColumnType("int(11)");
  1175. entity.Property(e => e.WeChatPayFlag)
  1176. .HasColumnType("bit(1)")
  1177. .HasDefaultValueSql("b'0'");
  1178. entity.Property(e => e.WechatOpenId)
  1179. .HasColumnType("varchar(50)")
  1180. .HasCharSet("utf8")
  1181. .HasCollation("utf8_general_ci");
  1182. entity.Property(e => e.WechatUnionid)
  1183. .HasColumnType("varchar(50)")
  1184. .HasCharSet("utf8")
  1185. .HasCollation("utf8_general_ci");
  1186. });
  1187. modelBuilder.Entity<CouponAssignRecords>(entity =>
  1188. {
  1189. entity.Property(e => e.Id).HasColumnType("int(11)");
  1190. entity.Property(e => e.Areas)
  1191. .HasColumnType("varchar(50)")
  1192. .HasCharSet("utf8")
  1193. .HasCollation("utf8_general_ci");
  1194. entity.Property(e => e.CouponIds)
  1195. .HasColumnType("varchar(200)")
  1196. .HasCharSet("utf8")
  1197. .HasCollation("utf8_general_ci");
  1198. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1199. entity.Property(e => e.CreateMan)
  1200. .HasColumnType("varchar(50)")
  1201. .HasCharSet("utf8")
  1202. .HasCollation("utf8_general_ci");
  1203. entity.Property(e => e.CurMoneyMax).HasColumnType("decimal(18,2)");
  1204. entity.Property(e => e.CurMoneyMin).HasColumnType("decimal(18,2)");
  1205. entity.Property(e => e.Mobile)
  1206. .HasColumnType("varchar(11)")
  1207. .HasCharSet("utf8")
  1208. .HasCollation("utf8_general_ci");
  1209. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1210. entity.Property(e => e.SeoDescription)
  1211. .HasColumnType("varchar(500)")
  1212. .HasCharSet("utf8")
  1213. .HasCollation("utf8_general_ci");
  1214. entity.Property(e => e.SeoKeyword)
  1215. .HasColumnType("varchar(200)")
  1216. .HasCharSet("utf8")
  1217. .HasCollation("utf8_general_ci");
  1218. entity.Property(e => e.SeoTitle)
  1219. .HasColumnType("varchar(100)")
  1220. .HasCharSet("utf8")
  1221. .HasCollation("utf8_general_ci");
  1222. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1223. entity.Property(e => e.Status).HasColumnType("int(11)");
  1224. entity.Property(e => e.TotalOrderMoneyMax).HasColumnType("decimal(18,2)");
  1225. entity.Property(e => e.TotalOrderMoneyMin).HasColumnType("decimal(18,2)");
  1226. entity.Property(e => e.TotalUseIntegralMax).HasColumnType("decimal(18,2)");
  1227. entity.Property(e => e.TotalUseIntegralMin).HasColumnType("decimal(18,2)");
  1228. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1229. entity.Property(e => e.UpdateMan)
  1230. .HasColumnType("varchar(50)")
  1231. .HasCharSet("utf8")
  1232. .HasCollation("utf8_general_ci");
  1233. entity.Property(e => e.UserGroupId)
  1234. .HasColumnType("varchar(50)")
  1235. .HasCharSet("utf8")
  1236. .HasCollation("utf8_general_ci");
  1237. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1238. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1239. entity.Property(e => e.Version).HasColumnType("int(11)");
  1240. });
  1241. modelBuilder.Entity<Coupons>(entity =>
  1242. {
  1243. entity.Property(e => e.Id).HasColumnType("int(11)");
  1244. entity.Property(e => e.AndPromotion)
  1245. .HasColumnType("bit(1)")
  1246. .HasDefaultValueSql("b'0'");
  1247. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1248. entity.Property(e => e.CreateMan)
  1249. .HasColumnType("varchar(50)")
  1250. .HasCharSet("utf8")
  1251. .HasCollation("utf8_general_ci");
  1252. entity.Property(e => e.ExpireEndDate).HasColumnType("datetime");
  1253. entity.Property(e => e.ExpireStartDate).HasColumnType("datetime");
  1254. entity.Property(e => e.Explanation)
  1255. .HasColumnType("varchar(200)")
  1256. .HasCharSet("utf8")
  1257. .HasCollation("utf8_general_ci");
  1258. entity.Property(e => e.FullReduceData).HasColumnType("decimal(18,2)");
  1259. entity.Property(e => e.FullReduceMoney).HasColumnType("decimal(18,2)");
  1260. entity.Property(e => e.IsNewUser)
  1261. .HasColumnType("bit(1)")
  1262. .HasDefaultValueSql("b'0'");
  1263. entity.Property(e => e.IsPublic)
  1264. .HasColumnType("bit(1)")
  1265. .HasDefaultValueSql("b'0'");
  1266. entity.Property(e => e.IsReUse)
  1267. .HasColumnType("bit(1)")
  1268. .HasDefaultValueSql("b'0'");
  1269. entity.Property(e => e.IsRepeat)
  1270. .HasColumnType("bit(1)")
  1271. .HasDefaultValueSql("b'0'");
  1272. entity.Property(e => e.IsSuperpose)
  1273. .HasColumnType("bit(1)")
  1274. .HasDefaultValueSql("b'0'");
  1275. entity.Property(e => e.Kind).HasColumnType("int(11)");
  1276. entity.Property(e => e.MerchantId)
  1277. .HasColumnType("varchar(200)")
  1278. .HasCharSet("utf8")
  1279. .HasCollation("utf8_general_ci");
  1280. entity.Property(e => e.Name)
  1281. .HasColumnType("varchar(50)")
  1282. .HasCharSet("utf8")
  1283. .HasCollation("utf8_general_ci");
  1284. entity.Property(e => e.ProductColId)
  1285. .HasColumnType("varchar(200)")
  1286. .HasCharSet("utf8")
  1287. .HasCollation("utf8_general_ci");
  1288. entity.Property(e => e.ProductId)
  1289. .HasColumnType("varchar(500)")
  1290. .HasCharSet("utf8")
  1291. .HasCollation("utf8_general_ci");
  1292. entity.Property(e => e.PublicEndDate).HasColumnType("datetime");
  1293. entity.Property(e => e.PublicMax).HasColumnType("int(11)");
  1294. entity.Property(e => e.PublicMaxByDay).HasColumnType("int(11)");
  1295. entity.Property(e => e.PublicStartDate).HasColumnType("datetime");
  1296. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1297. entity.Property(e => e.RepeatCondition)
  1298. .HasColumnType("varchar(50)")
  1299. .HasCharSet("utf8")
  1300. .HasCollation("utf8_general_ci");
  1301. entity.Property(e => e.RepeatType).HasColumnType("int(11)");
  1302. entity.Property(e => e.SeoDescription)
  1303. .HasColumnType("varchar(500)")
  1304. .HasCharSet("utf8")
  1305. .HasCollation("utf8_general_ci");
  1306. entity.Property(e => e.SeoKeyword)
  1307. .HasColumnType("varchar(200)")
  1308. .HasCharSet("utf8")
  1309. .HasCollation("utf8_general_ci");
  1310. entity.Property(e => e.SeoTitle)
  1311. .HasColumnType("varchar(100)")
  1312. .HasCharSet("utf8")
  1313. .HasCollation("utf8_general_ci");
  1314. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1315. entity.Property(e => e.Status).HasColumnType("int(11)");
  1316. entity.Property(e => e.Stock).HasColumnType("decimal(18,2)");
  1317. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1318. entity.Property(e => e.UpdateMan)
  1319. .HasColumnType("varchar(50)")
  1320. .HasCharSet("utf8")
  1321. .HasCollation("utf8_general_ci");
  1322. entity.Property(e => e.UseEndDate).HasColumnType("datetime");
  1323. entity.Property(e => e.UseStartDate).HasColumnType("datetime");
  1324. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1325. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1326. entity.Property(e => e.Version).HasColumnType("int(11)");
  1327. });
  1328. modelBuilder.Entity<CouponsForUser>(entity =>
  1329. {
  1330. entity.Property(e => e.Id).HasColumnType("int(11)");
  1331. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  1332. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1333. entity.Property(e => e.CreateMan)
  1334. .HasColumnType("varchar(50)")
  1335. .HasCharSet("utf8")
  1336. .HasCollation("utf8_general_ci");
  1337. entity.Property(e => e.IsLock)
  1338. .HasColumnType("bit(1)")
  1339. .HasDefaultValueSql("b'0'");
  1340. entity.Property(e => e.IsUse)
  1341. .HasColumnType("bit(1)")
  1342. .HasDefaultValueSql("b'0'");
  1343. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1344. entity.Property(e => e.SeoDescription)
  1345. .HasColumnType("varchar(500)")
  1346. .HasCharSet("utf8")
  1347. .HasCollation("utf8_general_ci");
  1348. entity.Property(e => e.SeoKeyword)
  1349. .HasColumnType("varchar(200)")
  1350. .HasCharSet("utf8")
  1351. .HasCollation("utf8_general_ci");
  1352. entity.Property(e => e.SeoTitle)
  1353. .HasColumnType("varchar(100)")
  1354. .HasCharSet("utf8")
  1355. .HasCollation("utf8_general_ci");
  1356. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1357. entity.Property(e => e.Status).HasColumnType("int(11)");
  1358. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1359. entity.Property(e => e.UpdateMan)
  1360. .HasColumnType("varchar(50)")
  1361. .HasCharSet("utf8")
  1362. .HasCollation("utf8_general_ci");
  1363. entity.Property(e => e.UseDate).HasColumnType("datetime");
  1364. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1365. entity.Property(e => e.Version).HasColumnType("int(11)");
  1366. });
  1367. modelBuilder.Entity<CustomTagSet>(entity =>
  1368. {
  1369. entity.Property(e => e.Id).HasColumnType("int(11)");
  1370. entity.Property(e => e.Contents)
  1371. .HasColumnType("varchar(500)")
  1372. .HasCharSet("utf8")
  1373. .HasCollation("utf8_general_ci");
  1374. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1375. entity.Property(e => e.CreateMan)
  1376. .HasColumnType("varchar(50)")
  1377. .HasCharSet("utf8")
  1378. .HasCollation("utf8_general_ci");
  1379. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1380. entity.Property(e => e.SeoDescription)
  1381. .HasColumnType("varchar(500)")
  1382. .HasCharSet("utf8")
  1383. .HasCollation("utf8_general_ci");
  1384. entity.Property(e => e.SeoKeyword)
  1385. .HasColumnType("varchar(200)")
  1386. .HasCharSet("utf8")
  1387. .HasCollation("utf8_general_ci");
  1388. entity.Property(e => e.SeoTitle)
  1389. .HasColumnType("varchar(100)")
  1390. .HasCharSet("utf8")
  1391. .HasCollation("utf8_general_ci");
  1392. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1393. entity.Property(e => e.Status).HasColumnType("int(11)");
  1394. entity.Property(e => e.Tags)
  1395. .HasColumnType("varchar(50)")
  1396. .HasCharSet("utf8")
  1397. .HasCollation("utf8_general_ci");
  1398. entity.Property(e => e.Title)
  1399. .HasColumnType("varchar(50)")
  1400. .HasCharSet("utf8")
  1401. .HasCollation("utf8_general_ci");
  1402. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1403. entity.Property(e => e.UpdateMan)
  1404. .HasColumnType("varchar(50)")
  1405. .HasCharSet("utf8")
  1406. .HasCollation("utf8_general_ci");
  1407. entity.Property(e => e.Version).HasColumnType("int(11)");
  1408. });
  1409. modelBuilder.Entity<ErpCompanys>(entity =>
  1410. {
  1411. entity.Property(e => e.Id).HasColumnType("int(11)");
  1412. entity.Property(e => e.Code)
  1413. .HasColumnType("varchar(50)")
  1414. .HasCharSet("utf8")
  1415. .HasCollation("utf8_general_ci");
  1416. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1417. entity.Property(e => e.CreateMan)
  1418. .HasColumnType("varchar(50)")
  1419. .HasCharSet("utf8")
  1420. .HasCollation("utf8_general_ci");
  1421. entity.Property(e => e.Name)
  1422. .HasColumnType("varchar(50)")
  1423. .HasCharSet("utf8")
  1424. .HasCollation("utf8_general_ci");
  1425. entity.Property(e => e.Phone)
  1426. .HasColumnType("varchar(30)")
  1427. .HasCharSet("utf8")
  1428. .HasCollation("utf8_general_ci");
  1429. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1430. entity.Property(e => e.SeoDescription)
  1431. .HasColumnType("varchar(500)")
  1432. .HasCharSet("utf8")
  1433. .HasCollation("utf8_general_ci");
  1434. entity.Property(e => e.SeoKeyword)
  1435. .HasColumnType("varchar(200)")
  1436. .HasCharSet("utf8")
  1437. .HasCollation("utf8_general_ci");
  1438. entity.Property(e => e.SeoTitle)
  1439. .HasColumnType("varchar(100)")
  1440. .HasCharSet("utf8")
  1441. .HasCollation("utf8_general_ci");
  1442. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1443. entity.Property(e => e.Status).HasColumnType("int(11)");
  1444. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1445. entity.Property(e => e.UpdateMan)
  1446. .HasColumnType("varchar(50)")
  1447. .HasCharSet("utf8")
  1448. .HasCollation("utf8_general_ci");
  1449. entity.Property(e => e.Version).HasColumnType("int(11)");
  1450. });
  1451. modelBuilder.Entity<FileUpdateInfo>(entity =>
  1452. {
  1453. entity.Property(e => e.Id).HasColumnType("int(11)");
  1454. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1455. entity.Property(e => e.CreateMan)
  1456. .HasColumnType("varchar(50)")
  1457. .HasCharSet("utf8")
  1458. .HasCollation("utf8_general_ci");
  1459. entity.Property(e => e.FileName)
  1460. .HasColumnType("varchar(50)")
  1461. .HasCharSet("utf8")
  1462. .HasCollation("utf8_general_ci");
  1463. entity.Property(e => e.Path)
  1464. .HasColumnType("varchar(200)")
  1465. .HasCharSet("utf8")
  1466. .HasCollation("utf8_general_ci");
  1467. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1468. entity.Property(e => e.SeoDescription)
  1469. .HasColumnType("varchar(500)")
  1470. .HasCharSet("utf8")
  1471. .HasCollation("utf8_general_ci");
  1472. entity.Property(e => e.SeoKeyword)
  1473. .HasColumnType("varchar(200)")
  1474. .HasCharSet("utf8")
  1475. .HasCollation("utf8_general_ci");
  1476. entity.Property(e => e.SeoTitle)
  1477. .HasColumnType("varchar(100)")
  1478. .HasCharSet("utf8")
  1479. .HasCollation("utf8_general_ci");
  1480. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1481. entity.Property(e => e.Status).HasColumnType("int(11)");
  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.Version).HasColumnType("int(11)");
  1488. entity.Property(e => e.VersionNum).HasColumnType("int(11)");
  1489. });
  1490. modelBuilder.Entity<FluxProfitDetail>(entity =>
  1491. {
  1492. entity.Property(e => e.Id).HasColumnType("int(11)");
  1493. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1494. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1495. entity.Property(e => e.CreateMan)
  1496. .HasColumnType("varchar(50)")
  1497. .HasCharSet("utf8")
  1498. .HasCollation("utf8_general_ci");
  1499. entity.Property(e => e.FluxEndDate)
  1500. .HasColumnType("varchar(8)")
  1501. .HasCharSet("utf8")
  1502. .HasCollation("utf8_general_ci");
  1503. entity.Property(e => e.FluxFeeAmt).HasColumnType("decimal(18,2)");
  1504. entity.Property(e => e.FluxOrderNo)
  1505. .HasColumnType("varchar(64)")
  1506. .HasCharSet("utf8")
  1507. .HasCollation("utf8_general_ci");
  1508. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1509. entity.Property(e => e.FluxStartDate)
  1510. .HasColumnType("varchar(8)")
  1511. .HasCharSet("utf8")
  1512. .HasCollation("utf8_general_ci");
  1513. entity.Property(e => e.MerNo)
  1514. .HasColumnType("varchar(32)")
  1515. .HasCharSet("utf8")
  1516. .HasCollation("utf8_general_ci");
  1517. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1518. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1519. entity.Property(e => e.MerchantUserId).HasColumnType("int(11)");
  1520. entity.Property(e => e.PosType)
  1521. .HasColumnType("varchar(32)")
  1522. .HasCharSet("utf8")
  1523. .HasCollation("utf8_general_ci");
  1524. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  1525. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1526. entity.Property(e => e.RecordNo)
  1527. .HasColumnType("varchar(32)")
  1528. .HasCharSet("utf8")
  1529. .HasCollation("utf8_general_ci");
  1530. entity.Property(e => e.Remark)
  1531. .HasColumnType("varchar(128)")
  1532. .HasCharSet("utf8")
  1533. .HasCollation("utf8_general_ci");
  1534. entity.Property(e => e.SeoDescription)
  1535. .HasColumnType("varchar(500)")
  1536. .HasCharSet("utf8")
  1537. .HasCollation("utf8_general_ci");
  1538. entity.Property(e => e.SeoKeyword)
  1539. .HasColumnType("varchar(200)")
  1540. .HasCharSet("utf8")
  1541. .HasCollation("utf8_general_ci");
  1542. entity.Property(e => e.SeoTitle)
  1543. .HasColumnType("varchar(100)")
  1544. .HasCharSet("utf8")
  1545. .HasCollation("utf8_general_ci");
  1546. entity.Property(e => e.SnNo)
  1547. .HasColumnType("varchar(32)")
  1548. .HasCharSet("utf8")
  1549. .HasCollation("utf8_general_ci");
  1550. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1551. entity.Property(e => e.Status).HasColumnType("int(11)");
  1552. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1553. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  1554. entity.Property(e => e.TradeDate)
  1555. .HasColumnType("varchar(8)")
  1556. .HasCharSet("utf8")
  1557. .HasCollation("utf8_general_ci");
  1558. entity.Property(e => e.TradeMonth)
  1559. .HasColumnType("varchar(6)")
  1560. .HasCharSet("utf8")
  1561. .HasCollation("utf8_general_ci");
  1562. entity.Property(e => e.TradeOrderNo)
  1563. .HasColumnType("varchar(64)")
  1564. .HasCharSet("utf8")
  1565. .HasCollation("utf8_general_ci");
  1566. entity.Property(e => e.TradeTime)
  1567. .HasColumnType("varchar(6)")
  1568. .HasCharSet("utf8")
  1569. .HasCollation("utf8_general_ci");
  1570. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1571. entity.Property(e => e.UpdateMan)
  1572. .HasColumnType("varchar(50)")
  1573. .HasCharSet("utf8")
  1574. .HasCollation("utf8_general_ci");
  1575. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1576. entity.Property(e => e.Version).HasColumnType("int(11)");
  1577. });
  1578. modelBuilder.Entity<FluxProfitSummary>(entity =>
  1579. {
  1580. entity.Property(e => e.Id).HasColumnType("int(11)");
  1581. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1582. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  1583. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1584. entity.Property(e => e.CreateMan)
  1585. .HasColumnType("varchar(50)")
  1586. .HasCharSet("utf8")
  1587. .HasCollation("utf8_general_ci");
  1588. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1589. entity.Property(e => e.FluxTradeNum).HasColumnType("int(11)");
  1590. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1591. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1592. entity.Property(e => e.Remark)
  1593. .HasColumnType("varchar(64)")
  1594. .HasCharSet("utf8")
  1595. .HasCollation("utf8_general_ci");
  1596. entity.Property(e => e.SeoDescription)
  1597. .HasColumnType("varchar(500)")
  1598. .HasCharSet("utf8")
  1599. .HasCollation("utf8_general_ci");
  1600. entity.Property(e => e.SeoKeyword)
  1601. .HasColumnType("varchar(200)")
  1602. .HasCharSet("utf8")
  1603. .HasCollation("utf8_general_ci");
  1604. entity.Property(e => e.SeoTitle)
  1605. .HasColumnType("varchar(100)")
  1606. .HasCharSet("utf8")
  1607. .HasCollation("utf8_general_ci");
  1608. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1609. entity.Property(e => e.Status).HasColumnType("int(11)");
  1610. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1611. entity.Property(e => e.TradeMonth)
  1612. .HasColumnType("varchar(6)")
  1613. .HasCharSet("utf8")
  1614. .HasCollation("utf8_general_ci");
  1615. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1616. entity.Property(e => e.UpdateMan)
  1617. .HasColumnType("varchar(50)")
  1618. .HasCharSet("utf8")
  1619. .HasCollation("utf8_general_ci");
  1620. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1621. entity.Property(e => e.Version).HasColumnType("int(11)");
  1622. });
  1623. modelBuilder.Entity<IndexIconList>(entity =>
  1624. {
  1625. entity.Property(e => e.Id).HasColumnType("int(11)");
  1626. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1627. entity.Property(e => e.CreateMan)
  1628. .HasColumnType("varchar(50)")
  1629. .HasCharSet("utf8")
  1630. .HasCollation("utf8_general_ci");
  1631. entity.Property(e => e.Icon)
  1632. .HasColumnType("varchar(200)")
  1633. .HasCharSet("utf8")
  1634. .HasCollation("utf8_general_ci");
  1635. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1636. entity.Property(e => e.SeoDescription)
  1637. .HasColumnType("varchar(500)")
  1638. .HasCharSet("utf8")
  1639. .HasCollation("utf8_general_ci");
  1640. entity.Property(e => e.SeoKeyword)
  1641. .HasColumnType("varchar(200)")
  1642. .HasCharSet("utf8")
  1643. .HasCollation("utf8_general_ci");
  1644. entity.Property(e => e.SeoTitle)
  1645. .HasColumnType("varchar(100)")
  1646. .HasCharSet("utf8")
  1647. .HasCollation("utf8_general_ci");
  1648. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1649. entity.Property(e => e.Status).HasColumnType("int(11)");
  1650. entity.Property(e => e.Title)
  1651. .HasColumnType("varchar(50)")
  1652. .HasCharSet("utf8")
  1653. .HasCollation("utf8_general_ci");
  1654. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1655. entity.Property(e => e.UpdateMan)
  1656. .HasColumnType("varchar(50)")
  1657. .HasCharSet("utf8")
  1658. .HasCollation("utf8_general_ci");
  1659. entity.Property(e => e.Url)
  1660. .HasColumnType("varchar(50)")
  1661. .HasCharSet("utf8")
  1662. .HasCollation("utf8_general_ci");
  1663. entity.Property(e => e.Version).HasColumnType("int(11)");
  1664. });
  1665. modelBuilder.Entity<KqProductBrand>(entity =>
  1666. {
  1667. entity.Property(e => e.Id).HasColumnType("int(11)");
  1668. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1669. entity.Property(e => e.CreateMan)
  1670. .HasColumnType("varchar(50)")
  1671. .HasCharSet("utf8")
  1672. .HasCollation("utf8_general_ci");
  1673. entity.Property(e => e.Name)
  1674. .HasColumnType("varchar(50)")
  1675. .HasCharSet("utf8")
  1676. .HasCollation("utf8_general_ci");
  1677. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  1678. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1679. entity.Property(e => e.SeoDescription)
  1680. .HasColumnType("varchar(500)")
  1681. .HasCharSet("utf8")
  1682. .HasCollation("utf8_general_ci");
  1683. entity.Property(e => e.SeoKeyword)
  1684. .HasColumnType("varchar(200)")
  1685. .HasCharSet("utf8")
  1686. .HasCollation("utf8_general_ci");
  1687. entity.Property(e => e.SeoTitle)
  1688. .HasColumnType("varchar(100)")
  1689. .HasCharSet("utf8")
  1690. .HasCollation("utf8_general_ci");
  1691. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1692. entity.Property(e => e.Status).HasColumnType("int(11)");
  1693. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1694. entity.Property(e => e.UpdateMan)
  1695. .HasColumnType("varchar(50)")
  1696. .HasCharSet("utf8")
  1697. .HasCollation("utf8_general_ci");
  1698. entity.Property(e => e.Version).HasColumnType("int(11)");
  1699. });
  1700. modelBuilder.Entity<KqProductOrgs>(entity =>
  1701. {
  1702. entity.Property(e => e.Id).HasColumnType("int(11)");
  1703. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1704. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1705. entity.Property(e => e.CreateMan)
  1706. .HasColumnType("varchar(50)")
  1707. .HasCharSet("utf8")
  1708. .HasCollation("utf8_general_ci");
  1709. entity.Property(e => e.Name)
  1710. .HasColumnType("varchar(50)")
  1711. .HasCharSet("utf8")
  1712. .HasCollation("utf8_general_ci");
  1713. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1714. entity.Property(e => e.SeoDescription)
  1715. .HasColumnType("varchar(500)")
  1716. .HasCharSet("utf8")
  1717. .HasCollation("utf8_general_ci");
  1718. entity.Property(e => e.SeoKeyword)
  1719. .HasColumnType("varchar(200)")
  1720. .HasCharSet("utf8")
  1721. .HasCollation("utf8_general_ci");
  1722. entity.Property(e => e.SeoTitle)
  1723. .HasColumnType("varchar(100)")
  1724. .HasCharSet("utf8")
  1725. .HasCollation("utf8_general_ci");
  1726. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1727. entity.Property(e => e.Status).HasColumnType("int(11)");
  1728. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1729. entity.Property(e => e.UpdateMan)
  1730. .HasColumnType("varchar(50)")
  1731. .HasCharSet("utf8")
  1732. .HasCollation("utf8_general_ci");
  1733. entity.Property(e => e.Version).HasColumnType("int(11)");
  1734. });
  1735. modelBuilder.Entity<KqProductRuleSet>(entity =>
  1736. {
  1737. entity.Property(e => e.Id).HasColumnType("int(11)");
  1738. entity.Property(e => e.ActDeposit).HasColumnType("decimal(18,2)");
  1739. entity.Property(e => e.ActEndDate).HasColumnType("datetime");
  1740. entity.Property(e => e.ActFirst).HasColumnType("decimal(18,2)");
  1741. entity.Property(e => e.ActFirstDeposit).HasColumnType("decimal(18,2)");
  1742. entity.Property(e => e.ActPosCount).HasColumnType("int(11)");
  1743. entity.Property(e => e.ActPrize).HasColumnType("decimal(18,2)");
  1744. entity.Property(e => e.ActStartDate).HasColumnType("datetime");
  1745. entity.Property(e => e.ActiveCount).HasColumnType("int(11)");
  1746. entity.Property(e => e.ActivePrice).HasColumnType("decimal(18,2)");
  1747. entity.Property(e => e.BigExtendCycleDays).HasColumnType("int(11)");
  1748. entity.Property(e => e.BigTotalAmount).HasColumnType("decimal(18,2)");
  1749. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1750. entity.Property(e => e.CreateMan)
  1751. .HasColumnType("varchar(50)")
  1752. .HasCharSet("utf8")
  1753. .HasCollation("utf8_general_ci");
  1754. entity.Property(e => e.CycleEndDate).HasColumnType("datetime");
  1755. entity.Property(e => e.CycleIsOther)
  1756. .HasColumnType("bit(1)")
  1757. .HasDefaultValueSql("b'0'");
  1758. entity.Property(e => e.CyclePosDays).HasColumnType("int(11)");
  1759. entity.Property(e => e.CycleStartDate).HasColumnType("datetime");
  1760. entity.Property(e => e.Deposit).HasColumnType("decimal(18,2)");
  1761. entity.Property(e => e.FeeBindDays).HasColumnType("int(11)");
  1762. entity.Property(e => e.FeeFixed).HasColumnType("decimal(18,2)");
  1763. entity.Property(e => e.FeeOfDays).HasColumnType("datetime");
  1764. entity.Property(e => e.FeeRate).HasColumnType("decimal(18,2)");
  1765. entity.Property(e => e.FlowCardDirectProfit).HasColumnType("decimal(18,2)");
  1766. entity.Property(e => e.FlowCardEndDate).HasColumnType("datetime");
  1767. entity.Property(e => e.FlowCardFee).HasColumnType("decimal(18,2)");
  1768. entity.Property(e => e.FlowCardFreeDays).HasColumnType("int(11)");
  1769. entity.Property(e => e.FlowCardStartDate).HasColumnType("datetime");
  1770. entity.Property(e => e.HelpEndDate).HasColumnType("datetime");
  1771. entity.Property(e => e.HelpFee).HasColumnType("decimal(18,2)");
  1772. entity.Property(e => e.HelpMonths).HasColumnType("int(11)");
  1773. entity.Property(e => e.HelpStartDate).HasColumnType("datetime");
  1774. entity.Property(e => e.HelpSteadyFee).HasColumnType("decimal(18,2)");
  1775. entity.Property(e => e.MerStaEndDate).HasColumnType("datetime");
  1776. entity.Property(e => e.MerStaMonths).HasColumnType("int(11)");
  1777. entity.Property(e => e.MerStaProfit).HasColumnType("decimal(18,2)");
  1778. entity.Property(e => e.MerStaStartDate).HasColumnType("datetime");
  1779. entity.Property(e => e.MerStaTradeForMonth).HasColumnType("decimal(18,2)");
  1780. entity.Property(e => e.OpenEndDate).HasColumnType("datetime");
  1781. entity.Property(e => e.OpenStaDays).HasColumnType("int(11)");
  1782. entity.Property(e => e.OpenStaPrize).HasColumnType("decimal(18,2)");
  1783. entity.Property(e => e.OpenStaPrize2).HasColumnType("decimal(18,2)");
  1784. entity.Property(e => e.OpenStaTrade).HasColumnType("decimal(18,2)");
  1785. entity.Property(e => e.OpenStartDate).HasColumnType("datetime");
  1786. entity.Property(e => e.OrgId).HasColumnType("int(11)");
  1787. entity.Property(e => e.PullNewEndDate).HasColumnType("datetime");
  1788. entity.Property(e => e.PullNewExtendDays).HasColumnType("int(11)");
  1789. entity.Property(e => e.PullNewStartDate).HasColumnType("datetime");
  1790. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1791. entity.Property(e => e.SeoDescription)
  1792. .HasColumnType("varchar(500)")
  1793. .HasCharSet("utf8")
  1794. .HasCollation("utf8_general_ci");
  1795. entity.Property(e => e.SeoKeyword)
  1796. .HasColumnType("varchar(200)")
  1797. .HasCharSet("utf8")
  1798. .HasCollation("utf8_general_ci");
  1799. entity.Property(e => e.SeoTitle)
  1800. .HasColumnType("varchar(100)")
  1801. .HasCharSet("utf8")
  1802. .HasCollation("utf8_general_ci");
  1803. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1804. entity.Property(e => e.Status).HasColumnType("int(11)");
  1805. entity.Property(e => e.SubsidyEndDate).HasColumnType("datetime");
  1806. entity.Property(e => e.SubsidyStartDate).HasColumnType("datetime");
  1807. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1808. entity.Property(e => e.UpdateMan)
  1809. .HasColumnType("varchar(50)")
  1810. .HasCharSet("utf8")
  1811. .HasCollation("utf8_general_ci");
  1812. entity.Property(e => e.Version).HasColumnType("int(11)");
  1813. });
  1814. modelBuilder.Entity<KqProducts>(entity =>
  1815. {
  1816. entity.Property(e => e.Id).HasColumnType("int(11)");
  1817. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1818. entity.Property(e => e.CreateMan)
  1819. .HasColumnType("varchar(50)")
  1820. .HasCharSet("utf8")
  1821. .HasCollation("utf8_general_ci");
  1822. entity.Property(e => e.Name)
  1823. .HasColumnType("varchar(50)")
  1824. .HasCharSet("utf8")
  1825. .HasCollation("utf8_general_ci");
  1826. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1827. entity.Property(e => e.SeoDescription)
  1828. .HasColumnType("varchar(500)")
  1829. .HasCharSet("utf8")
  1830. .HasCollation("utf8_general_ci");
  1831. entity.Property(e => e.SeoKeyword)
  1832. .HasColumnType("varchar(200)")
  1833. .HasCharSet("utf8")
  1834. .HasCollation("utf8_general_ci");
  1835. entity.Property(e => e.SeoTitle)
  1836. .HasColumnType("varchar(100)")
  1837. .HasCharSet("utf8")
  1838. .HasCollation("utf8_general_ci");
  1839. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1840. entity.Property(e => e.Status).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.Version).HasColumnType("int(11)");
  1847. });
  1848. modelBuilder.Entity<LeaderReserveRecord>(entity =>
  1849. {
  1850. entity.Property(e => e.Id).HasColumnType("int(11)");
  1851. entity.Property(e => e.AfterAmt).HasColumnType("decimal(18,2)");
  1852. entity.Property(e => e.BeforeAmt).HasColumnType("decimal(18,2)");
  1853. entity.Property(e => e.ChangeAmt).HasColumnType("decimal(18,2)");
  1854. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  1855. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1856. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  1857. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1858. entity.Property(e => e.Remark)
  1859. .HasColumnType("varchar(200)")
  1860. .HasCharSet("utf8")
  1861. .HasCollation("utf8_general_ci");
  1862. entity.Property(e => e.SeoDescription)
  1863. .HasColumnType("varchar(500)")
  1864. .HasCharSet("utf8")
  1865. .HasCollation("utf8_general_ci");
  1866. entity.Property(e => e.SeoKeyword)
  1867. .HasColumnType("varchar(200)")
  1868. .HasCharSet("utf8")
  1869. .HasCollation("utf8_general_ci");
  1870. entity.Property(e => e.SeoTitle)
  1871. .HasColumnType("varchar(100)")
  1872. .HasCharSet("utf8")
  1873. .HasCollation("utf8_general_ci");
  1874. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1875. entity.Property(e => e.SourceUserId).HasColumnType("int(11)");
  1876. entity.Property(e => e.Status).HasColumnType("int(11)");
  1877. entity.Property(e => e.TradeDate)
  1878. .HasColumnType("varchar(8)")
  1879. .HasCharSet("utf8")
  1880. .HasCollation("utf8_general_ci");
  1881. entity.Property(e => e.TradeMonth)
  1882. .HasColumnType("varchar(6)")
  1883. .HasCharSet("utf8")
  1884. .HasCollation("utf8_general_ci");
  1885. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1886. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1887. });
  1888. modelBuilder.Entity<MachineApply>(entity =>
  1889. {
  1890. entity.Property(e => e.Id).HasColumnType("int(11)");
  1891. entity.Property(e => e.Address)
  1892. .HasColumnType("varchar(50)")
  1893. .HasCharSet("utf8")
  1894. .HasCollation("utf8_general_ci");
  1895. entity.Property(e => e.ApplyDeviceName)
  1896. .HasColumnType("varchar(32)")
  1897. .HasCharSet("utf8")
  1898. .HasCollation("utf8_general_ci");
  1899. entity.Property(e => e.ApplyDeviceNum).HasColumnType("int(11)");
  1900. entity.Property(e => e.ApplyNo)
  1901. .HasColumnType("varchar(32)")
  1902. .HasCharSet("utf8")
  1903. .HasCollation("utf8_general_ci");
  1904. entity.Property(e => e.ApplyTime).HasColumnType("datetime");
  1905. entity.Property(e => e.Areas)
  1906. .HasColumnType("varchar(30)")
  1907. .HasCharSet("utf8")
  1908. .HasCollation("utf8_general_ci");
  1909. entity.Property(e => e.AuditBy)
  1910. .HasColumnType("varchar(32)")
  1911. .HasCharSet("utf8")
  1912. .HasCollation("utf8_general_ci");
  1913. entity.Property(e => e.AuditRemark)
  1914. .HasColumnType("varchar(128)")
  1915. .HasCharSet("utf8")
  1916. .HasCollation("utf8_general_ci");
  1917. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1918. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1919. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1920. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1921. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1922. entity.Property(e => e.CreateMan)
  1923. .HasColumnType("varchar(50)")
  1924. .HasCharSet("utf8")
  1925. .HasCollation("utf8_general_ci");
  1926. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  1927. entity.Property(e => e.ExpressName)
  1928. .HasColumnType("varchar(32)")
  1929. .HasCharSet("utf8")
  1930. .HasCollation("utf8_general_ci");
  1931. entity.Property(e => e.ExpressNo)
  1932. .HasColumnType("varchar(32)")
  1933. .HasCharSet("utf8")
  1934. .HasCollation("utf8_general_ci");
  1935. entity.Property(e => e.Mobile)
  1936. .HasColumnType("varchar(11)")
  1937. .HasCharSet("utf8")
  1938. .HasCollation("utf8_general_ci");
  1939. entity.Property(e => e.OrderExpand)
  1940. .HasColumnType("mediumtext")
  1941. .HasCharSet("utf8")
  1942. .HasCollation("utf8_general_ci");
  1943. entity.Property(e => e.ProductName)
  1944. .HasColumnType("varchar(32)")
  1945. .HasCharSet("utf8")
  1946. .HasCollation("utf8_general_ci");
  1947. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1948. entity.Property(e => e.RealName)
  1949. .HasColumnType("varchar(30)")
  1950. .HasCharSet("utf8")
  1951. .HasCollation("utf8_general_ci");
  1952. entity.Property(e => e.Remark)
  1953. .HasColumnType("varchar(64)")
  1954. .HasCharSet("utf8")
  1955. .HasCollation("utf8_general_ci");
  1956. entity.Property(e => e.ReturnOrderNo)
  1957. .HasColumnType("varchar(32)")
  1958. .HasCharSet("utf8")
  1959. .HasCollation("utf8_general_ci");
  1960. entity.Property(e => e.ReturnStatus).HasColumnType("int(11)");
  1961. entity.Property(e => e.SendDate).HasColumnType("datetime");
  1962. entity.Property(e => e.SendSn)
  1963. .HasColumnType("varchar(32)")
  1964. .HasCharSet("utf8")
  1965. .HasCollation("utf8_general_ci");
  1966. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  1967. entity.Property(e => e.SeoDescription)
  1968. .HasColumnType("varchar(500)")
  1969. .HasCharSet("utf8")
  1970. .HasCollation("utf8_general_ci");
  1971. entity.Property(e => e.SeoKeyword)
  1972. .HasColumnType("varchar(200)")
  1973. .HasCharSet("utf8")
  1974. .HasCollation("utf8_general_ci");
  1975. entity.Property(e => e.SeoTitle)
  1976. .HasColumnType("varchar(100)")
  1977. .HasCharSet("utf8")
  1978. .HasCollation("utf8_general_ci");
  1979. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1980. entity.Property(e => e.Status).HasColumnType("int(11)");
  1981. entity.Property(e => e.StoreAddress)
  1982. .HasColumnType("varchar(50)")
  1983. .HasCharSet("utf8")
  1984. .HasCollation("utf8_general_ci");
  1985. entity.Property(e => e.StoreAreas)
  1986. .HasColumnType("varchar(30)")
  1987. .HasCharSet("utf8")
  1988. .HasCollation("utf8_general_ci");
  1989. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1990. entity.Property(e => e.StoreManager)
  1991. .HasColumnType("varchar(32)")
  1992. .HasCharSet("utf8")
  1993. .HasCollation("utf8_general_ci");
  1994. entity.Property(e => e.StoreManagerMobile)
  1995. .HasColumnType("varchar(11)")
  1996. .HasCharSet("utf8")
  1997. .HasCollation("utf8_general_ci");
  1998. entity.Property(e => e.StoreName)
  1999. .HasColumnType("varchar(32)")
  2000. .HasCharSet("utf8")
  2001. .HasCollation("utf8_general_ci");
  2002. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  2003. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  2004. entity.Property(e => e.SwapActProName)
  2005. .HasColumnType("varchar(32)")
  2006. .HasCharSet("utf8")
  2007. .HasCollation("utf8_general_ci");
  2008. entity.Property(e => e.SwapActProType).HasColumnType("int(11)");
  2009. entity.Property(e => e.SwapSnExpand)
  2010. .HasColumnType("mediumtext")
  2011. .HasCharSet("utf8")
  2012. .HasCollation("utf8_general_ci");
  2013. entity.Property(e => e.TopUserId).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<MachineApplyDetail>(entity =>
  2023. {
  2024. entity.Property(e => e.Id).HasColumnType("int(11)");
  2025. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  2026. entity.Property(e => e.ApplyNo)
  2027. .HasColumnType("varchar(32)")
  2028. .HasCharSet("utf8")
  2029. .HasCollation("utf8_general_ci");
  2030. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2031. entity.Property(e => e.CreateMan)
  2032. .HasColumnType("varchar(50)")
  2033. .HasCharSet("utf8")
  2034. .HasCollation("utf8_general_ci");
  2035. entity.Property(e => e.DeviceDesc)
  2036. .HasColumnType("varchar(32)")
  2037. .HasCharSet("utf8")
  2038. .HasCollation("utf8_general_ci");
  2039. entity.Property(e => e.DeviceModel)
  2040. .HasColumnType("varchar(32)")
  2041. .HasCharSet("utf8")
  2042. .HasCollation("utf8_general_ci");
  2043. entity.Property(e => e.DeviceSnNo)
  2044. .HasColumnType("varchar(32)")
  2045. .HasCharSet("utf8")
  2046. .HasCollation("utf8_general_ci");
  2047. entity.Property(e => e.DeviceStatus).HasColumnType("int(11)");
  2048. entity.Property(e => e.DeviceVendor)
  2049. .HasColumnType("varchar(32)")
  2050. .HasCharSet("utf8")
  2051. .HasCollation("utf8_general_ci");
  2052. entity.Property(e => e.ProductName)
  2053. .HasColumnType("varchar(32)")
  2054. .HasCharSet("utf8")
  2055. .HasCollation("utf8_general_ci");
  2056. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  2057. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2058. entity.Property(e => e.Remark)
  2059. .HasColumnType("varchar(64)")
  2060. .HasCharSet("utf8")
  2061. .HasCollation("utf8_general_ci");
  2062. entity.Property(e => e.SeoDescription)
  2063. .HasColumnType("varchar(500)")
  2064. .HasCharSet("utf8")
  2065. .HasCollation("utf8_general_ci");
  2066. entity.Property(e => e.SeoKeyword)
  2067. .HasColumnType("varchar(200)")
  2068. .HasCharSet("utf8")
  2069. .HasCollation("utf8_general_ci");
  2070. entity.Property(e => e.SeoTitle)
  2071. .HasColumnType("varchar(100)")
  2072. .HasCharSet("utf8")
  2073. .HasCollation("utf8_general_ci");
  2074. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2075. entity.Property(e => e.SourceSnNo)
  2076. .HasColumnType("varchar(32)")
  2077. .HasCharSet("utf8")
  2078. .HasCollation("utf8_general_ci");
  2079. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  2080. entity.Property(e => e.Status).HasColumnType("int(11)");
  2081. entity.Property(e => e.UpSrcProName)
  2082. .HasColumnType("varchar(32)")
  2083. .HasCharSet("utf8")
  2084. .HasCollation("utf8_general_ci");
  2085. entity.Property(e => e.UpSrcProType).HasColumnType("int(11)");
  2086. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2087. entity.Property(e => e.UpdateMan)
  2088. .HasColumnType("varchar(50)")
  2089. .HasCharSet("utf8")
  2090. .HasCollation("utf8_general_ci");
  2091. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2092. entity.Property(e => e.Version).HasColumnType("int(11)");
  2093. });
  2094. modelBuilder.Entity<MachineChange>(entity =>
  2095. {
  2096. entity.Property(e => e.Id).HasColumnType("int(11)");
  2097. entity.Property(e => e.AuditBy)
  2098. .HasColumnType("varchar(32)")
  2099. .HasCharSet("utf8")
  2100. .HasCollation("utf8_general_ci");
  2101. entity.Property(e => e.AuditRemark)
  2102. .HasColumnType("varchar(128)")
  2103. .HasCharSet("utf8")
  2104. .HasCollation("utf8_general_ci");
  2105. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  2106. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  2107. entity.Property(e => e.BackProductName)
  2108. .HasColumnType("varchar(32)")
  2109. .HasCharSet("utf8")
  2110. .HasCollation("utf8_general_ci");
  2111. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2112. entity.Property(e => e.BackStoreId).HasColumnType("int(11)");
  2113. entity.Property(e => e.BackStoreName)
  2114. .HasColumnType("varchar(32)")
  2115. .HasCharSet("utf8")
  2116. .HasCollation("utf8_general_ci");
  2117. entity.Property(e => e.BackStoreUserId).HasColumnType("int(11)");
  2118. entity.Property(e => e.ChangeDeviceName)
  2119. .HasColumnType("varchar(32)")
  2120. .HasCharSet("utf8")
  2121. .HasCollation("utf8_general_ci");
  2122. entity.Property(e => e.ChangeDeviceNum).HasColumnType("int(11)");
  2123. entity.Property(e => e.ChangeNo)
  2124. .HasColumnType("varchar(32)")
  2125. .HasCharSet("utf8")
  2126. .HasCollation("utf8_general_ci");
  2127. entity.Property(e => e.ChangeSnExpand)
  2128. .HasColumnType("mediumtext")
  2129. .HasCharSet("utf8")
  2130. .HasCollation("utf8_general_ci");
  2131. entity.Property(e => e.ChangeTime).HasColumnType("datetime");
  2132. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  2133. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2134. entity.Property(e => e.CreateMan)
  2135. .HasColumnType("varchar(50)")
  2136. .HasCharSet("utf8")
  2137. .HasCollation("utf8_general_ci");
  2138. entity.Property(e => e.OrderExpand)
  2139. .HasColumnType("mediumtext")
  2140. .HasCharSet("utf8")
  2141. .HasCollation("utf8_general_ci");
  2142. entity.Property(e => e.OutProductName)
  2143. .HasColumnType("varchar(32)")
  2144. .HasCharSet("utf8")
  2145. .HasCollation("utf8_general_ci");
  2146. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2147. entity.Property(e => e.OutStoreAddress)
  2148. .HasColumnType("varchar(128)")
  2149. .HasCharSet("utf8")
  2150. .HasCollation("utf8_general_ci");
  2151. entity.Property(e => e.OutStoreAreas)
  2152. .HasColumnType("varchar(30)")
  2153. .HasCharSet("utf8")
  2154. .HasCollation("utf8_general_ci");
  2155. entity.Property(e => e.OutStoreId).HasColumnType("int(11)");
  2156. entity.Property(e => e.OutStoreManager)
  2157. .HasColumnType("varchar(32)")
  2158. .HasCharSet("utf8")
  2159. .HasCollation("utf8_general_ci");
  2160. entity.Property(e => e.OutStoreManagerMobile)
  2161. .HasColumnType("varchar(11)")
  2162. .HasCharSet("utf8")
  2163. .HasCollation("utf8_general_ci");
  2164. entity.Property(e => e.OutStoreName)
  2165. .HasColumnType("varchar(32)")
  2166. .HasCharSet("utf8")
  2167. .HasCollation("utf8_general_ci");
  2168. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2169. entity.Property(e => e.Remark)
  2170. .HasColumnType("varchar(64)")
  2171. .HasCharSet("utf8")
  2172. .HasCollation("utf8_general_ci");
  2173. entity.Property(e => e.SeoDescription)
  2174. .HasColumnType("varchar(500)")
  2175. .HasCharSet("utf8")
  2176. .HasCollation("utf8_general_ci");
  2177. entity.Property(e => e.SeoKeyword)
  2178. .HasColumnType("varchar(200)")
  2179. .HasCharSet("utf8")
  2180. .HasCollation("utf8_general_ci");
  2181. entity.Property(e => e.SeoTitle)
  2182. .HasColumnType("varchar(100)")
  2183. .HasCharSet("utf8")
  2184. .HasCollation("utf8_general_ci");
  2185. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2186. entity.Property(e => e.Status).HasColumnType("int(11)");
  2187. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2188. entity.Property(e => e.UpdateMan)
  2189. .HasColumnType("varchar(50)")
  2190. .HasCharSet("utf8")
  2191. .HasCollation("utf8_general_ci");
  2192. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2193. entity.Property(e => e.Version).HasColumnType("int(11)");
  2194. });
  2195. modelBuilder.Entity<MachineChangeDetail>(entity =>
  2196. {
  2197. entity.Property(e => e.Id).HasColumnType("int(11)");
  2198. entity.Property(e => e.BackDeviceStatus).HasColumnType("int(11)");
  2199. entity.Property(e => e.BackProductName)
  2200. .HasColumnType("varchar(32)")
  2201. .HasCharSet("utf8")
  2202. .HasCollation("utf8_general_ci");
  2203. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2204. entity.Property(e => e.BackSnNo)
  2205. .HasColumnType("varchar(32)")
  2206. .HasCharSet("utf8")
  2207. .HasCollation("utf8_general_ci");
  2208. entity.Property(e => e.BackSnType).HasColumnType("int(11)");
  2209. entity.Property(e => e.ChangeId).HasColumnType("int(11)");
  2210. entity.Property(e => e.ChangeNo)
  2211. .HasColumnType("varchar(32)")
  2212. .HasCharSet("utf8")
  2213. .HasCollation("utf8_general_ci");
  2214. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2215. entity.Property(e => e.CreateMan)
  2216. .HasColumnType("varchar(50)")
  2217. .HasCharSet("utf8")
  2218. .HasCollation("utf8_general_ci");
  2219. entity.Property(e => e.OutProductName)
  2220. .HasColumnType("varchar(32)")
  2221. .HasCharSet("utf8")
  2222. .HasCollation("utf8_general_ci");
  2223. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2224. entity.Property(e => e.OutSnNo)
  2225. .HasColumnType("varchar(32)")
  2226. .HasCharSet("utf8")
  2227. .HasCollation("utf8_general_ci");
  2228. entity.Property(e => e.OutSnType).HasColumnType("int(11)");
  2229. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2230. entity.Property(e => e.Remark)
  2231. .HasColumnType("varchar(64)")
  2232. .HasCharSet("utf8")
  2233. .HasCollation("utf8_general_ci");
  2234. entity.Property(e => e.SeoDescription)
  2235. .HasColumnType("varchar(500)")
  2236. .HasCharSet("utf8")
  2237. .HasCollation("utf8_general_ci");
  2238. entity.Property(e => e.SeoKeyword)
  2239. .HasColumnType("varchar(200)")
  2240. .HasCharSet("utf8")
  2241. .HasCollation("utf8_general_ci");
  2242. entity.Property(e => e.SeoTitle)
  2243. .HasColumnType("varchar(100)")
  2244. .HasCharSet("utf8")
  2245. .HasCollation("utf8_general_ci");
  2246. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2247. entity.Property(e => e.Status).HasColumnType("int(11)");
  2248. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2249. entity.Property(e => e.UpdateMan)
  2250. .HasColumnType("varchar(50)")
  2251. .HasCharSet("utf8")
  2252. .HasCollation("utf8_general_ci");
  2253. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2254. entity.Property(e => e.Version).HasColumnType("int(11)");
  2255. });
  2256. modelBuilder.Entity<MachineForMerNo>(entity =>
  2257. {
  2258. entity.HasKey(e => e.MerNo)
  2259. .HasName("PRIMARY");
  2260. entity.Property(e => e.MerNo)
  2261. .HasColumnType("varchar(50)")
  2262. .HasCharSet("utf8")
  2263. .HasCollation("utf8_general_ci");
  2264. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2265. });
  2266. modelBuilder.Entity<MachineForQrCode>(entity =>
  2267. {
  2268. entity.HasKey(e => e.DataId)
  2269. .HasName("PRIMARY");
  2270. entity.Property(e => e.DataId)
  2271. .HasColumnType("varchar(20)")
  2272. .HasCharSet("utf8")
  2273. .HasCollation("utf8_general_ci");
  2274. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2275. entity.Property(e => e.MachineSnNo)
  2276. .HasColumnType("varchar(50)")
  2277. .HasCharSet("utf8")
  2278. .HasCollation("utf8_general_ci");
  2279. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2280. entity.Property(e => e.SnNo)
  2281. .HasColumnType("varchar(50)")
  2282. .HasCharSet("utf8")
  2283. .HasCollation("utf8_general_ci");
  2284. });
  2285. modelBuilder.Entity<MachineForSnNo>(entity =>
  2286. {
  2287. entity.HasKey(e => e.SnNo)
  2288. .HasName("PRIMARY");
  2289. entity.Property(e => e.SnNo)
  2290. .HasColumnType("varchar(50)")
  2291. .HasCharSet("utf8")
  2292. .HasCollation("utf8_general_ci");
  2293. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2294. });
  2295. modelBuilder.Entity<MachineRenew>(entity =>
  2296. {
  2297. entity.Property(e => e.Id).HasColumnType("int(11)");
  2298. entity.Property(e => e.ApplyDate)
  2299. .HasColumnType("varchar(8)")
  2300. .HasCharSet("utf8")
  2301. .HasCollation("utf8_general_ci");
  2302. entity.Property(e => e.ApplyNo)
  2303. .HasColumnType("varchar(32)")
  2304. .HasCharSet("utf8")
  2305. .HasCollation("utf8_general_ci");
  2306. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2307. entity.Property(e => e.AuditDesc)
  2308. .HasColumnType("varchar(256)")
  2309. .HasCharSet("utf8")
  2310. .HasCollation("utf8_general_ci");
  2311. entity.Property(e => e.AuditStatus)
  2312. .HasColumnName("audit_status")
  2313. .HasColumnType("int(11)");
  2314. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2315. entity.Property(e => e.CreateMan)
  2316. .HasColumnType("varchar(50)")
  2317. .HasCharSet("utf8")
  2318. .HasCollation("utf8_general_ci");
  2319. entity.Property(e => e.DamagedBrandId).HasColumnType("int(11)");
  2320. entity.Property(e => e.DamagedSnNo)
  2321. .HasColumnType("varchar(32)")
  2322. .HasCharSet("utf8")
  2323. .HasCollation("utf8_general_ci");
  2324. entity.Property(e => e.DamagedSnType).HasColumnType("int(11)");
  2325. entity.Property(e => e.DeliverBrandId).HasColumnType("int(11)");
  2326. entity.Property(e => e.DeliverSnNo)
  2327. .HasColumnType("varchar(32)")
  2328. .HasCharSet("utf8")
  2329. .HasCollation("utf8_general_ci");
  2330. entity.Property(e => e.DemandDesc)
  2331. .HasColumnType("varchar(256)")
  2332. .HasCharSet("utf8")
  2333. .HasCollation("utf8_general_ci");
  2334. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2335. entity.Property(e => e.ReplaceBrandId).HasColumnType("int(11)");
  2336. entity.Property(e => e.ReplaceSnNo)
  2337. .HasColumnType("varchar(32)")
  2338. .HasCharSet("utf8")
  2339. .HasCollation("utf8_general_ci");
  2340. entity.Property(e => e.ReplaceSnType).HasColumnType("int(11)");
  2341. entity.Property(e => e.SeoDescription)
  2342. .HasColumnType("varchar(500)")
  2343. .HasCharSet("utf8")
  2344. .HasCollation("utf8_general_ci");
  2345. entity.Property(e => e.SeoKeyword)
  2346. .HasColumnType("varchar(200)")
  2347. .HasCharSet("utf8")
  2348. .HasCollation("utf8_general_ci");
  2349. entity.Property(e => e.SeoTitle)
  2350. .HasColumnType("varchar(100)")
  2351. .HasCharSet("utf8")
  2352. .HasCollation("utf8_general_ci");
  2353. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2354. entity.Property(e => e.Status).HasColumnType("int(11)");
  2355. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2356. entity.Property(e => e.UpdateMan)
  2357. .HasColumnType("varchar(50)")
  2358. .HasCharSet("utf8")
  2359. .HasCollation("utf8_general_ci");
  2360. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2361. entity.Property(e => e.Version).HasColumnType("int(11)");
  2362. });
  2363. modelBuilder.Entity<MachineReturn>(entity =>
  2364. {
  2365. entity.Property(e => e.Id).HasColumnType("int(11)");
  2366. entity.Property(e => e.ApplyNo)
  2367. .HasColumnType("varchar(32)")
  2368. .HasCharSet("utf8")
  2369. .HasCollation("utf8_general_ci");
  2370. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2371. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2372. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2373. entity.Property(e => e.CreateMan)
  2374. .HasColumnType("varchar(50)")
  2375. .HasCharSet("utf8")
  2376. .HasCollation("utf8_general_ci");
  2377. entity.Property(e => e.DeviceDesc)
  2378. .HasColumnType("varchar(256)")
  2379. .HasCharSet("utf8")
  2380. .HasCollation("utf8_general_ci");
  2381. entity.Property(e => e.DeviceNum).HasColumnType("int(11)");
  2382. entity.Property(e => e.DeviceSnNos)
  2383. .HasColumnType("mediumtext")
  2384. .HasCharSet("utf8")
  2385. .HasCollation("utf8_general_ci");
  2386. entity.Property(e => e.Operator)
  2387. .HasColumnType("varchar(32)")
  2388. .HasCharSet("utf8")
  2389. .HasCollation("utf8_general_ci");
  2390. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2391. entity.Property(e => e.Remark)
  2392. .HasColumnType("varchar(64)")
  2393. .HasCharSet("utf8")
  2394. .HasCollation("utf8_general_ci");
  2395. entity.Property(e => e.SeoDescription)
  2396. .HasColumnType("varchar(500)")
  2397. .HasCharSet("utf8")
  2398. .HasCollation("utf8_general_ci");
  2399. entity.Property(e => e.SeoKeyword)
  2400. .HasColumnType("varchar(200)")
  2401. .HasCharSet("utf8")
  2402. .HasCollation("utf8_general_ci");
  2403. entity.Property(e => e.SeoTitle)
  2404. .HasColumnType("varchar(100)")
  2405. .HasCharSet("utf8")
  2406. .HasCollation("utf8_general_ci");
  2407. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2408. entity.Property(e => e.Status).HasColumnType("int(11)");
  2409. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  2410. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2411. entity.Property(e => e.UpdateMan)
  2412. .HasColumnType("varchar(50)")
  2413. .HasCharSet("utf8")
  2414. .HasCollation("utf8_general_ci");
  2415. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2416. entity.Property(e => e.Version).HasColumnType("int(11)");
  2417. });
  2418. modelBuilder.Entity<MachineUnBind>(entity =>
  2419. {
  2420. entity.Property(e => e.Id).HasColumnType("int(11)");
  2421. entity.Property(e => e.ApplyNo)
  2422. .HasColumnType("varchar(32)")
  2423. .HasCharSet("utf8")
  2424. .HasCollation("utf8_general_ci");
  2425. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2426. entity.Property(e => e.AuditDesc)
  2427. .HasColumnType("varchar(256)")
  2428. .HasCharSet("utf8")
  2429. .HasCollation("utf8_general_ci");
  2430. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2431. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2432. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2433. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2434. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2435. entity.Property(e => e.SeoDescription)
  2436. .HasColumnType("varchar(500)")
  2437. .HasCharSet("utf8")
  2438. .HasCollation("utf8_general_ci");
  2439. entity.Property(e => e.SeoKeyword)
  2440. .HasColumnType("varchar(200)")
  2441. .HasCharSet("utf8")
  2442. .HasCollation("utf8_general_ci");
  2443. entity.Property(e => e.SeoTitle)
  2444. .HasColumnType("varchar(100)")
  2445. .HasCharSet("utf8")
  2446. .HasCollation("utf8_general_ci");
  2447. entity.Property(e => e.SnNo)
  2448. .HasColumnType("varchar(32)")
  2449. .HasCharSet("utf8")
  2450. .HasCollation("utf8_general_ci");
  2451. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2452. entity.Property(e => e.Status).HasColumnType("int(11)");
  2453. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2454. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2455. });
  2456. modelBuilder.Entity<MenuRight>(entity =>
  2457. {
  2458. entity.HasKey(e => e.MenuId)
  2459. .HasName("PRIMARY");
  2460. entity.Property(e => e.MenuId)
  2461. .HasColumnType("varchar(50)")
  2462. .HasCharSet("utf8")
  2463. .HasCollation("utf8_general_ci");
  2464. entity.Property(e => e.Name)
  2465. .HasColumnType("varchar(50)")
  2466. .HasCharSet("utf8")
  2467. .HasCollation("utf8_general_ci");
  2468. });
  2469. modelBuilder.Entity<MerchantAddInfo>(entity =>
  2470. {
  2471. entity.Property(e => e.Id).HasColumnType("int(11)");
  2472. entity.Property(e => e.AccountBank)
  2473. .HasColumnType("varchar(30)")
  2474. .HasCharSet("utf8")
  2475. .HasCollation("utf8_general_ci");
  2476. entity.Property(e => e.AccountName)
  2477. .HasColumnType("varchar(50)")
  2478. .HasCharSet("utf8")
  2479. .HasCollation("utf8_general_ci");
  2480. entity.Property(e => e.AccountNumber)
  2481. .HasColumnType("varchar(50)")
  2482. .HasCharSet("utf8")
  2483. .HasCollation("utf8_general_ci");
  2484. entity.Property(e => e.ActivitiesId)
  2485. .HasColumnType("varchar(32)")
  2486. .HasCharSet("utf8")
  2487. .HasCollation("utf8_general_ci");
  2488. entity.Property(e => e.ActivitiesRate)
  2489. .HasColumnType("varchar(20)")
  2490. .HasCharSet("utf8")
  2491. .HasCollation("utf8_general_ci");
  2492. entity.Property(e => e.AppAppid)
  2493. .HasColumnType("varchar(50)")
  2494. .HasCharSet("utf8")
  2495. .HasCollation("utf8_general_ci");
  2496. entity.Property(e => e.AppPics)
  2497. .HasColumnType("varchar(200)")
  2498. .HasCharSet("utf8")
  2499. .HasCollation("utf8_general_ci");
  2500. entity.Property(e => e.AppSubAppid)
  2501. .HasColumnType("varchar(50)")
  2502. .HasCharSet("utf8")
  2503. .HasCollation("utf8_general_ci");
  2504. entity.Property(e => e.ApplymentId)
  2505. .HasColumnType("varchar(50)")
  2506. .HasCharSet("utf8")
  2507. .HasCollation("utf8_general_ci");
  2508. entity.Property(e => e.ApplymentState)
  2509. .HasColumnType("varchar(50)")
  2510. .HasCharSet("utf8")
  2511. .HasCollation("utf8_general_ci");
  2512. entity.Property(e => e.AuditDetail)
  2513. .HasColumnType("mediumtext")
  2514. .HasCharSet("utf8")
  2515. .HasCollation("utf8_general_ci");
  2516. entity.Property(e => e.BankAccountType)
  2517. .HasColumnType("varchar(50)")
  2518. .HasCharSet("utf8")
  2519. .HasCollation("utf8_general_ci");
  2520. entity.Property(e => e.BankAddressCode)
  2521. .HasColumnType("varchar(20)")
  2522. .HasCharSet("utf8")
  2523. .HasCollation("utf8_general_ci");
  2524. entity.Property(e => e.BankBranchId)
  2525. .HasColumnType("varchar(20)")
  2526. .HasCharSet("utf8")
  2527. .HasCollation("utf8_general_ci");
  2528. entity.Property(e => e.BankName)
  2529. .HasColumnType("varchar(50)")
  2530. .HasCharSet("utf8")
  2531. .HasCollation("utf8_general_ci");
  2532. entity.Property(e => e.BizAddressCode)
  2533. .HasColumnType("varchar(30)")
  2534. .HasCharSet("utf8")
  2535. .HasCollation("utf8_general_ci");
  2536. entity.Property(e => e.BizStoreAddress)
  2537. .HasColumnType("varchar(50)")
  2538. .HasCharSet("utf8")
  2539. .HasCollation("utf8_general_ci");
  2540. entity.Property(e => e.BizStoreName)
  2541. .HasColumnType("varchar(50)")
  2542. .HasCharSet("utf8")
  2543. .HasCollation("utf8_general_ci");
  2544. entity.Property(e => e.BizSubAppid)
  2545. .HasColumnType("varchar(32)")
  2546. .HasCharSet("utf8")
  2547. .HasCollation("utf8_general_ci");
  2548. entity.Property(e => e.BusinessCode)
  2549. .HasColumnType("varchar(50)")
  2550. .HasCharSet("utf8")
  2551. .HasCollation("utf8_general_ci");
  2552. entity.Property(e => e.CardPeriodBegin).HasColumnType("datetime");
  2553. entity.Property(e => e.CardPeriodEnd).HasColumnType("datetime");
  2554. entity.Property(e => e.CertCopy)
  2555. .HasColumnType("varchar(200)")
  2556. .HasCharSet("utf8")
  2557. .HasCollation("utf8_general_ci");
  2558. entity.Property(e => e.CertLegalPerson)
  2559. .HasColumnType("varchar(20)")
  2560. .HasCharSet("utf8")
  2561. .HasCollation("utf8_general_ci");
  2562. entity.Property(e => e.CertMerchantName)
  2563. .HasColumnType("varchar(30)")
  2564. .HasCharSet("utf8")
  2565. .HasCollation("utf8_general_ci");
  2566. entity.Property(e => e.CertNumber)
  2567. .HasColumnType("varchar(32)")
  2568. .HasCharSet("utf8")
  2569. .HasCollation("utf8_general_ci");
  2570. entity.Property(e => e.CertType)
  2571. .HasColumnType("varchar(30)")
  2572. .HasCharSet("utf8")
  2573. .HasCollation("utf8_general_ci");
  2574. entity.Property(e => e.CertificateLetterCopy)
  2575. .HasColumnType("varchar(200)")
  2576. .HasCharSet("utf8")
  2577. .HasCollation("utf8_general_ci");
  2578. entity.Property(e => e.CompanyAddress)
  2579. .HasColumnType("varchar(50)")
  2580. .HasCharSet("utf8")
  2581. .HasCollation("utf8_general_ci");
  2582. entity.Property(e => e.ContactEmail)
  2583. .HasColumnType("varchar(50)")
  2584. .HasCharSet("utf8")
  2585. .HasCollation("utf8_general_ci");
  2586. entity.Property(e => e.ContactIdNumber)
  2587. .HasColumnType("varchar(18)")
  2588. .HasCharSet("utf8")
  2589. .HasCollation("utf8_general_ci");
  2590. entity.Property(e => e.ContactName)
  2591. .HasColumnType("varchar(30)")
  2592. .HasCharSet("utf8")
  2593. .HasCollation("utf8_general_ci");
  2594. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2595. entity.Property(e => e.CreateMan)
  2596. .HasColumnType("varchar(50)")
  2597. .HasCharSet("utf8")
  2598. .HasCollation("utf8_general_ci");
  2599. entity.Property(e => e.IdCardCopy)
  2600. .HasColumnType("varchar(200)")
  2601. .HasCharSet("utf8")
  2602. .HasCollation("utf8_general_ci");
  2603. entity.Property(e => e.IdCardName)
  2604. .HasColumnType("varchar(20)")
  2605. .HasCharSet("utf8")
  2606. .HasCollation("utf8_general_ci");
  2607. entity.Property(e => e.IdCardNational)
  2608. .HasColumnType("varchar(200)")
  2609. .HasCharSet("utf8")
  2610. .HasCollation("utf8_general_ci");
  2611. entity.Property(e => e.IdCardNumber)
  2612. .HasColumnType("varchar(18)")
  2613. .HasCharSet("utf8")
  2614. .HasCollation("utf8_general_ci");
  2615. entity.Property(e => e.IdDocType)
  2616. .HasColumnType("varchar(50)")
  2617. .HasCharSet("utf8")
  2618. .HasCollation("utf8_general_ci");
  2619. entity.Property(e => e.IndoorPic)
  2620. .HasColumnType("varchar(200)")
  2621. .HasCharSet("utf8")
  2622. .HasCollation("utf8_general_ci");
  2623. entity.Property(e => e.LegalPerson)
  2624. .HasColumnType("varchar(20)")
  2625. .HasCharSet("utf8")
  2626. .HasCollation("utf8_general_ci");
  2627. entity.Property(e => e.LicenseCopy)
  2628. .HasColumnType("varchar(200)")
  2629. .HasCharSet("utf8")
  2630. .HasCollation("utf8_general_ci");
  2631. entity.Property(e => e.LicenseNumber)
  2632. .HasColumnType("varchar(32)")
  2633. .HasCharSet("utf8")
  2634. .HasCollation("utf8_general_ci");
  2635. entity.Property(e => e.MerchantShortname)
  2636. .HasColumnType("varchar(50)")
  2637. .HasCharSet("utf8")
  2638. .HasCollation("utf8_general_ci");
  2639. entity.Property(e => e.MiniProgramAppid)
  2640. .HasColumnType("varchar(50)")
  2641. .HasCharSet("utf8")
  2642. .HasCollation("utf8_general_ci");
  2643. entity.Property(e => e.MiniProgramPics)
  2644. .HasColumnType("varchar(200)")
  2645. .HasCharSet("utf8")
  2646. .HasCollation("utf8_general_ci");
  2647. entity.Property(e => e.MiniProgramSubAppid)
  2648. .HasColumnType("varchar(50)")
  2649. .HasCharSet("utf8")
  2650. .HasCollation("utf8_general_ci");
  2651. entity.Property(e => e.MobilePhone)
  2652. .HasColumnType("varchar(11)")
  2653. .HasCharSet("utf8")
  2654. .HasCollation("utf8_general_ci");
  2655. entity.Property(e => e.MpAppid)
  2656. .HasColumnType("varchar(50)")
  2657. .HasCharSet("utf8")
  2658. .HasCollation("utf8_general_ci");
  2659. entity.Property(e => e.MpPics)
  2660. .HasColumnType("varchar(200)")
  2661. .HasCharSet("utf8")
  2662. .HasCollation("utf8_general_ci");
  2663. entity.Property(e => e.MpSubAppid)
  2664. .HasColumnType("varchar(50)")
  2665. .HasCharSet("utf8")
  2666. .HasCollation("utf8_general_ci");
  2667. entity.Property(e => e.OpenId)
  2668. .HasColumnType("varchar(50)")
  2669. .HasCharSet("utf8")
  2670. .HasCollation("utf8_general_ci");
  2671. entity.Property(e => e.OrgPeriodBegin).HasColumnType("datetime");
  2672. entity.Property(e => e.OrgPeriodEnd).HasColumnType("datetime");
  2673. entity.Property(e => e.OrganizationCode)
  2674. .HasColumnType("varchar(32)")
  2675. .HasCharSet("utf8")
  2676. .HasCollation("utf8_general_ci");
  2677. entity.Property(e => e.OrganizationCopy)
  2678. .HasColumnType("varchar(200)")
  2679. .HasCharSet("utf8")
  2680. .HasCollation("utf8_general_ci");
  2681. entity.Property(e => e.Owner)
  2682. .HasColumnType("bit(1)")
  2683. .HasDefaultValueSql("b'0'");
  2684. entity.Property(e => e.PeriodBegin).HasColumnType("datetime");
  2685. entity.Property(e => e.PeriodEnd).HasColumnType("datetime");
  2686. entity.Property(e => e.QualificationType)
  2687. .HasColumnType("varchar(30)")
  2688. .HasCharSet("utf8")
  2689. .HasCollation("utf8_general_ci");
  2690. entity.Property(e => e.Qualifications)
  2691. .HasColumnType("varchar(200)")
  2692. .HasCharSet("utf8")
  2693. .HasCollation("utf8_general_ci");
  2694. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2695. entity.Property(e => e.SalesScenesType)
  2696. .HasColumnType("varchar(50)")
  2697. .HasCharSet("utf8")
  2698. .HasCollation("utf8_general_ci");
  2699. entity.Property(e => e.SeoDescription)
  2700. .HasColumnType("varchar(500)")
  2701. .HasCharSet("utf8")
  2702. .HasCollation("utf8_general_ci");
  2703. entity.Property(e => e.SeoKeyword)
  2704. .HasColumnType("varchar(200)")
  2705. .HasCharSet("utf8")
  2706. .HasCollation("utf8_general_ci");
  2707. entity.Property(e => e.SeoTitle)
  2708. .HasColumnType("varchar(100)")
  2709. .HasCharSet("utf8")
  2710. .HasCollation("utf8_general_ci");
  2711. entity.Property(e => e.ServicePhone)
  2712. .HasColumnType("varchar(30)")
  2713. .HasCharSet("utf8")
  2714. .HasCollation("utf8_general_ci");
  2715. entity.Property(e => e.SettlementId)
  2716. .HasColumnType("varchar(3)")
  2717. .HasCharSet("utf8")
  2718. .HasCollation("utf8_general_ci");
  2719. entity.Property(e => e.SignUrl)
  2720. .HasColumnType("varchar(1000)")
  2721. .HasCharSet("utf8")
  2722. .HasCollation("utf8_general_ci");
  2723. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2724. entity.Property(e => e.Status).HasColumnType("int(11)");
  2725. entity.Property(e => e.StoreEntrancePic)
  2726. .HasColumnType("varchar(200)")
  2727. .HasCharSet("utf8")
  2728. .HasCollation("utf8_general_ci");
  2729. entity.Property(e => e.SubCorpId)
  2730. .HasColumnType("varchar(50)")
  2731. .HasCharSet("utf8")
  2732. .HasCollation("utf8_general_ci");
  2733. entity.Property(e => e.SubMchid)
  2734. .HasColumnType("varchar(32)")
  2735. .HasCharSet("utf8")
  2736. .HasCollation("utf8_general_ci");
  2737. entity.Property(e => e.SubjectType)
  2738. .HasColumnType("varchar(50)")
  2739. .HasCharSet("utf8")
  2740. .HasCollation("utf8_general_ci");
  2741. entity.Property(e => e.UboInfoIdCardCopy)
  2742. .HasColumnType("varchar(200)")
  2743. .HasCharSet("utf8")
  2744. .HasCollation("utf8_general_ci");
  2745. entity.Property(e => e.UboInfoIdCardNational)
  2746. .HasColumnType("varchar(200)")
  2747. .HasCharSet("utf8")
  2748. .HasCollation("utf8_general_ci");
  2749. entity.Property(e => e.UboInfoIdDocCopy)
  2750. .HasColumnType("varchar(200)")
  2751. .HasCharSet("utf8")
  2752. .HasCollation("utf8_general_ci");
  2753. entity.Property(e => e.UboInfoIdNumber)
  2754. .HasColumnType("varchar(30)")
  2755. .HasCharSet("utf8")
  2756. .HasCollation("utf8_general_ci");
  2757. entity.Property(e => e.UboInfoIdPeriodBegin).HasColumnType("datetime");
  2758. entity.Property(e => e.UboInfoIdPeriodEnd).HasColumnType("datetime");
  2759. entity.Property(e => e.UboInfoIdType)
  2760. .HasColumnType("varchar(50)")
  2761. .HasCharSet("utf8")
  2762. .HasCollation("utf8_general_ci");
  2763. entity.Property(e => e.UboInfoName)
  2764. .HasColumnType("varchar(20)")
  2765. .HasCharSet("utf8")
  2766. .HasCollation("utf8_general_ci");
  2767. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2768. entity.Property(e => e.UpdateMan)
  2769. .HasColumnType("varchar(50)")
  2770. .HasCharSet("utf8")
  2771. .HasCollation("utf8_general_ci");
  2772. entity.Property(e => e.Version).HasColumnType("int(11)");
  2773. entity.Property(e => e.WebAppId)
  2774. .HasColumnType("varchar(50)")
  2775. .HasCharSet("utf8")
  2776. .HasCollation("utf8_general_ci");
  2777. entity.Property(e => e.WebAuthorisation)
  2778. .HasColumnType("varchar(200)")
  2779. .HasCharSet("utf8")
  2780. .HasCollation("utf8_general_ci");
  2781. entity.Property(e => e.WebDomain)
  2782. .HasColumnType("varchar(50)")
  2783. .HasCharSet("utf8")
  2784. .HasCollation("utf8_general_ci");
  2785. entity.Property(e => e.WeworkPics)
  2786. .HasColumnType("varchar(200)")
  2787. .HasCharSet("utf8")
  2788. .HasCollation("utf8_general_ci");
  2789. });
  2790. modelBuilder.Entity<MerchantAdmin>(entity =>
  2791. {
  2792. entity.Property(e => e.Id).HasColumnType("int(11)");
  2793. entity.Property(e => e.AdminName)
  2794. .HasColumnType("varchar(50)")
  2795. .HasCharSet("utf8")
  2796. .HasCollation("utf8_general_ci");
  2797. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2798. entity.Property(e => e.CreateMan)
  2799. .HasColumnType("varchar(50)")
  2800. .HasCharSet("utf8")
  2801. .HasCollation("utf8_general_ci");
  2802. entity.Property(e => e.Email)
  2803. .HasColumnType("varchar(50)")
  2804. .HasCharSet("utf8")
  2805. .HasCollation("utf8_general_ci");
  2806. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  2807. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2808. entity.Property(e => e.Mobile)
  2809. .HasColumnType("varchar(11)")
  2810. .HasCharSet("utf8")
  2811. .HasCollation("utf8_general_ci");
  2812. entity.Property(e => e.Note)
  2813. .HasColumnType("mediumtext")
  2814. .HasCharSet("utf8")
  2815. .HasCollation("utf8_general_ci");
  2816. entity.Property(e => e.Password)
  2817. .HasColumnType("varchar(32)")
  2818. .HasCharSet("utf8")
  2819. .HasCollation("utf8_general_ci");
  2820. entity.Property(e => e.Qq)
  2821. .HasColumnName("QQ")
  2822. .HasColumnType("varchar(20)")
  2823. .HasCharSet("utf8")
  2824. .HasCollation("utf8_general_ci");
  2825. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2826. entity.Property(e => e.RealName)
  2827. .HasColumnType("varchar(50)")
  2828. .HasCharSet("utf8")
  2829. .HasCollation("utf8_general_ci");
  2830. entity.Property(e => e.RightInfo)
  2831. .HasColumnType("varchar(500)")
  2832. .HasCharSet("utf8")
  2833. .HasCollation("utf8_general_ci");
  2834. entity.Property(e => e.SeoDescription)
  2835. .HasColumnType("varchar(500)")
  2836. .HasCharSet("utf8")
  2837. .HasCollation("utf8_general_ci");
  2838. entity.Property(e => e.SeoKeyword)
  2839. .HasColumnType("varchar(200)")
  2840. .HasCharSet("utf8")
  2841. .HasCollation("utf8_general_ci");
  2842. entity.Property(e => e.SeoTitle)
  2843. .HasColumnType("varchar(100)")
  2844. .HasCharSet("utf8")
  2845. .HasCollation("utf8_general_ci");
  2846. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2847. entity.Property(e => e.Status).HasColumnType("int(11)");
  2848. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2849. entity.Property(e => e.UpdateMan)
  2850. .HasColumnType("varchar(50)")
  2851. .HasCharSet("utf8")
  2852. .HasCollation("utf8_general_ci");
  2853. entity.Property(e => e.Version).HasColumnType("int(11)");
  2854. });
  2855. modelBuilder.Entity<MerchantAuth>(entity =>
  2856. {
  2857. entity.Property(e => e.Id).HasColumnType("int(11)");
  2858. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  2859. entity.Property(e => e.BankCardAccount)
  2860. .HasColumnType("varchar(32)")
  2861. .HasCharSet("utf8")
  2862. .HasCollation("utf8_general_ci");
  2863. entity.Property(e => e.BankMobile)
  2864. .HasColumnType("varchar(11)")
  2865. .HasCharSet("utf8")
  2866. .HasCollation("utf8_general_ci");
  2867. entity.Property(e => e.BankName)
  2868. .HasColumnType("varchar(64)")
  2869. .HasCharSet("utf8")
  2870. .HasCollation("utf8_general_ci");
  2871. entity.Property(e => e.ChannelCode)
  2872. .HasColumnType("varchar(16)")
  2873. .HasCharSet("utf8")
  2874. .HasCollation("utf8_general_ci");
  2875. entity.Property(e => e.ChannelName)
  2876. .HasColumnType("varchar(32)")
  2877. .HasCharSet("utf8")
  2878. .HasCollation("utf8_general_ci");
  2879. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2880. entity.Property(e => e.CreateMan)
  2881. .HasColumnType("varchar(50)")
  2882. .HasCharSet("utf8")
  2883. .HasCollation("utf8_general_ci");
  2884. entity.Property(e => e.IdCardNo)
  2885. .HasColumnType("varchar(18)")
  2886. .HasCharSet("utf8")
  2887. .HasCollation("utf8_general_ci");
  2888. entity.Property(e => e.MerNo)
  2889. .HasColumnType("varchar(20)")
  2890. .HasCharSet("utf8")
  2891. .HasCollation("utf8_general_ci");
  2892. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2893. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2894. entity.Property(e => e.RealName)
  2895. .HasColumnType("varchar(16)")
  2896. .HasCharSet("utf8")
  2897. .HasCollation("utf8_general_ci");
  2898. entity.Property(e => e.ReqData)
  2899. .HasColumnType("varchar(2000)")
  2900. .HasCharSet("utf8")
  2901. .HasCollation("utf8_general_ci");
  2902. entity.Property(e => e.RespData)
  2903. .HasColumnType("varchar(2000)")
  2904. .HasCharSet("utf8")
  2905. .HasCollation("utf8_general_ci");
  2906. entity.Property(e => e.ReturnCode)
  2907. .HasColumnType("varchar(30)")
  2908. .HasCharSet("utf8")
  2909. .HasCollation("utf8_general_ci");
  2910. entity.Property(e => e.ReturnMsg)
  2911. .HasColumnType("varchar(512)")
  2912. .HasCharSet("utf8")
  2913. .HasCollation("utf8_general_ci");
  2914. entity.Property(e => e.SeoDescription)
  2915. .HasColumnType("varchar(500)")
  2916. .HasCharSet("utf8")
  2917. .HasCollation("utf8_general_ci");
  2918. entity.Property(e => e.SeoKeyword)
  2919. .HasColumnType("varchar(200)")
  2920. .HasCharSet("utf8")
  2921. .HasCollation("utf8_general_ci");
  2922. entity.Property(e => e.SeoTitle)
  2923. .HasColumnType("varchar(100)")
  2924. .HasCharSet("utf8")
  2925. .HasCollation("utf8_general_ci");
  2926. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2927. entity.Property(e => e.Status).HasColumnType("int(11)");
  2928. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2929. entity.Property(e => e.UpdateMan)
  2930. .HasColumnType("varchar(50)")
  2931. .HasCharSet("utf8")
  2932. .HasCollation("utf8_general_ci");
  2933. entity.Property(e => e.Version).HasColumnType("int(11)");
  2934. });
  2935. modelBuilder.Entity<MerchantClass>(entity =>
  2936. {
  2937. entity.Property(e => e.Id).HasColumnType("int(11)");
  2938. entity.Property(e => e.ColName)
  2939. .HasColumnType("varchar(50)")
  2940. .HasCharSet("utf8")
  2941. .HasCollation("utf8_general_ci");
  2942. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2943. entity.Property(e => e.CreateMan)
  2944. .HasColumnType("varchar(50)")
  2945. .HasCharSet("utf8")
  2946. .HasCollation("utf8_general_ci");
  2947. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2948. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2949. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2950. entity.Property(e => e.SeoDescription)
  2951. .HasColumnType("varchar(500)")
  2952. .HasCharSet("utf8")
  2953. .HasCollation("utf8_general_ci");
  2954. entity.Property(e => e.SeoKeyword)
  2955. .HasColumnType("varchar(200)")
  2956. .HasCharSet("utf8")
  2957. .HasCollation("utf8_general_ci");
  2958. entity.Property(e => e.SeoTitle)
  2959. .HasColumnType("varchar(100)")
  2960. .HasCharSet("utf8")
  2961. .HasCollation("utf8_general_ci");
  2962. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2963. entity.Property(e => e.Status).HasColumnType("int(11)");
  2964. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2965. entity.Property(e => e.UpdateMan)
  2966. .HasColumnType("varchar(50)")
  2967. .HasCharSet("utf8")
  2968. .HasCollation("utf8_general_ci");
  2969. entity.Property(e => e.Version).HasColumnType("int(11)");
  2970. });
  2971. modelBuilder.Entity<MerchantCol>(entity =>
  2972. {
  2973. entity.Property(e => e.Id).HasColumnType("int(11)");
  2974. entity.Property(e => e.ColDetail)
  2975. .HasColumnType("varchar(50)")
  2976. .HasCharSet("utf8")
  2977. .HasCollation("utf8_general_ci");
  2978. entity.Property(e => e.ColEnName)
  2979. .HasColumnType("varchar(50)")
  2980. .HasCharSet("utf8")
  2981. .HasCollation("utf8_general_ci");
  2982. entity.Property(e => e.ColId)
  2983. .HasColumnType("varchar(30)")
  2984. .HasCharSet("utf8")
  2985. .HasCollation("utf8_general_ci");
  2986. entity.Property(e => e.ColName)
  2987. .HasColumnType("varchar(50)")
  2988. .HasCharSet("utf8")
  2989. .HasCollation("utf8_general_ci");
  2990. entity.Property(e => e.ColPicPath)
  2991. .HasColumnType("varchar(200)")
  2992. .HasCharSet("utf8")
  2993. .HasCollation("utf8_general_ci");
  2994. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2995. entity.Property(e => e.CreateMan)
  2996. .HasColumnType("varchar(50)")
  2997. .HasCharSet("utf8")
  2998. .HasCollation("utf8_general_ci");
  2999. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3000. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  3001. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3002. entity.Property(e => e.Recommend)
  3003. .HasColumnType("bit(1)")
  3004. .HasDefaultValueSql("b'0'");
  3005. entity.Property(e => e.SeoDescription)
  3006. .HasColumnType("varchar(500)")
  3007. .HasCharSet("utf8")
  3008. .HasCollation("utf8_general_ci");
  3009. entity.Property(e => e.SeoKeyword)
  3010. .HasColumnType("varchar(200)")
  3011. .HasCharSet("utf8")
  3012. .HasCollation("utf8_general_ci");
  3013. entity.Property(e => e.SeoTitle)
  3014. .HasColumnType("varchar(100)")
  3015. .HasCharSet("utf8")
  3016. .HasCollation("utf8_general_ci");
  3017. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3018. entity.Property(e => e.Status).HasColumnType("int(11)");
  3019. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3020. entity.Property(e => e.UpdateMan)
  3021. .HasColumnType("varchar(50)")
  3022. .HasCharSet("utf8")
  3023. .HasCollation("utf8_general_ci");
  3024. entity.Property(e => e.Version).HasColumnType("int(11)");
  3025. });
  3026. modelBuilder.Entity<MerchantComment>(entity =>
  3027. {
  3028. entity.Property(e => e.Id).HasColumnType("int(11)");
  3029. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3030. entity.Property(e => e.CreateMan)
  3031. .HasColumnType("varchar(50)")
  3032. .HasCharSet("utf8")
  3033. .HasCollation("utf8_general_ci");
  3034. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3035. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  3036. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3037. entity.Property(e => e.SeoDescription)
  3038. .HasColumnType("varchar(500)")
  3039. .HasCharSet("utf8")
  3040. .HasCollation("utf8_general_ci");
  3041. entity.Property(e => e.SeoKeyword)
  3042. .HasColumnType("varchar(200)")
  3043. .HasCharSet("utf8")
  3044. .HasCollation("utf8_general_ci");
  3045. entity.Property(e => e.SeoTitle)
  3046. .HasColumnType("varchar(100)")
  3047. .HasCharSet("utf8")
  3048. .HasCollation("utf8_general_ci");
  3049. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3050. entity.Property(e => e.StarNum1).HasColumnType("int(11)");
  3051. entity.Property(e => e.StarNum2).HasColumnType("int(11)");
  3052. entity.Property(e => e.StarNum3).HasColumnType("int(11)");
  3053. entity.Property(e => e.Status).HasColumnType("int(11)");
  3054. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3055. entity.Property(e => e.UpdateMan)
  3056. .HasColumnType("varchar(50)")
  3057. .HasCharSet("utf8")
  3058. .HasCollation("utf8_general_ci");
  3059. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3060. entity.Property(e => e.Version).HasColumnType("int(11)");
  3061. });
  3062. modelBuilder.Entity<MerchantDepositReturns>(entity =>
  3063. {
  3064. entity.Property(e => e.Id).HasColumnType("int(11)");
  3065. entity.Property(e => e.AlipayAccountNo)
  3066. .HasColumnType("varchar(50)")
  3067. .HasCharSet("utf8")
  3068. .HasCollation("utf8_general_ci");
  3069. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3070. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3071. entity.Property(e => e.OperateMan)
  3072. .HasColumnType("varchar(50)")
  3073. .HasCharSet("utf8")
  3074. .HasCollation("utf8_general_ci");
  3075. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3076. entity.Property(e => e.ReturnAmount).HasColumnType("decimal(18,2)");
  3077. entity.Property(e => e.SeoDescription)
  3078. .HasColumnType("varchar(500)")
  3079. .HasCharSet("utf8")
  3080. .HasCollation("utf8_general_ci");
  3081. entity.Property(e => e.SeoKeyword)
  3082. .HasColumnType("varchar(200)")
  3083. .HasCharSet("utf8")
  3084. .HasCollation("utf8_general_ci");
  3085. entity.Property(e => e.SeoTitle)
  3086. .HasColumnType("varchar(100)")
  3087. .HasCharSet("utf8")
  3088. .HasCollation("utf8_general_ci");
  3089. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3090. entity.Property(e => e.Status).HasColumnType("int(11)");
  3091. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3092. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3093. });
  3094. modelBuilder.Entity<MerchantForCode>(entity =>
  3095. {
  3096. entity.HasKey(e => e.Code)
  3097. .HasName("PRIMARY");
  3098. entity.Property(e => e.Code)
  3099. .HasColumnType("varchar(30)")
  3100. .HasCharSet("utf8")
  3101. .HasCollation("utf8_general_ci");
  3102. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3103. });
  3104. modelBuilder.Entity<MerchantForMobile>(entity =>
  3105. {
  3106. entity.HasKey(e => e.Mobile)
  3107. .HasName("PRIMARY");
  3108. entity.Property(e => e.Mobile)
  3109. .HasColumnType("varchar(11)")
  3110. .HasCharSet("utf8")
  3111. .HasCollation("utf8_general_ci");
  3112. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3113. });
  3114. modelBuilder.Entity<MerchantForName>(entity =>
  3115. {
  3116. entity.HasKey(e => e.Name)
  3117. .HasName("PRIMARY");
  3118. entity.Property(e => e.Name)
  3119. .HasColumnType("varchar(30)")
  3120. .HasCharSet("utf8")
  3121. .HasCollation("utf8_general_ci");
  3122. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3123. });
  3124. modelBuilder.Entity<MerchantInfo>(entity =>
  3125. {
  3126. entity.Property(e => e.Id).HasColumnType("int(11)");
  3127. entity.Property(e => e.ActivationDate).HasColumnType("datetime");
  3128. entity.Property(e => e.ActivationStatus).HasColumnType("int(11)");
  3129. entity.Property(e => e.Address)
  3130. .HasColumnType("varchar(100)")
  3131. .HasCharSet("utf8")
  3132. .HasCollation("utf8_general_ci");
  3133. entity.Property(e => e.Areas)
  3134. .HasColumnType("varchar(50)")
  3135. .HasCharSet("utf8")
  3136. .HasCollation("utf8_general_ci");
  3137. entity.Property(e => e.BindDate).HasColumnType("datetime");
  3138. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  3139. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3140. entity.Property(e => e.CreateMan)
  3141. .HasColumnType("varchar(50)")
  3142. .HasCharSet("utf8")
  3143. .HasCollation("utf8_general_ci");
  3144. entity.Property(e => e.IsAuth)
  3145. .HasColumnType("bit(1)")
  3146. .HasDefaultValueSql("b'0'");
  3147. entity.Property(e => e.LastAddConsumerDate).HasColumnType("datetime");
  3148. entity.Property(e => e.LastConsumeDate).HasColumnType("datetime");
  3149. entity.Property(e => e.LoginPwd)
  3150. .HasColumnType("varchar(32)")
  3151. .HasCharSet("utf8")
  3152. .HasCollation("utf8_general_ci");
  3153. entity.Property(e => e.Logo)
  3154. .HasColumnType("varchar(200)")
  3155. .HasCharSet("utf8")
  3156. .HasCollation("utf8_general_ci");
  3157. entity.Property(e => e.Mobile)
  3158. .HasColumnType("varchar(11)")
  3159. .HasCharSet("utf8")
  3160. .HasCollation("utf8_general_ci");
  3161. entity.Property(e => e.Name)
  3162. .HasColumnType("varchar(50)")
  3163. .HasCharSet("utf8")
  3164. .HasCollation("utf8_general_ci");
  3165. entity.Property(e => e.ParentUserNav)
  3166. .HasColumnType("varchar(500)")
  3167. .HasCharSet("utf8")
  3168. .HasCollation("utf8_general_ci");
  3169. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3170. entity.Property(e => e.SeoDescription)
  3171. .HasColumnType("varchar(500)")
  3172. .HasCharSet("utf8")
  3173. .HasCollation("utf8_general_ci");
  3174. entity.Property(e => e.SeoKeyword)
  3175. .HasColumnType("varchar(200)")
  3176. .HasCharSet("utf8")
  3177. .HasCollation("utf8_general_ci");
  3178. entity.Property(e => e.SeoTitle)
  3179. .HasColumnType("varchar(100)")
  3180. .HasCharSet("utf8")
  3181. .HasCollation("utf8_general_ci");
  3182. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3183. entity.Property(e => e.Status).HasColumnType("int(11)");
  3184. entity.Property(e => e.TotalActual).HasColumnType("decimal(18,2)");
  3185. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  3186. entity.Property(e => e.TotalConsumeCount).HasColumnType("int(11)");
  3187. entity.Property(e => e.TotalCustomer).HasColumnType("int(11)");
  3188. entity.Property(e => e.TotalOrder).HasColumnType("int(11)");
  3189. entity.Property(e => e.TotalUser).HasColumnType("int(11)");
  3190. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3191. entity.Property(e => e.UpdateMan)
  3192. .HasColumnType("varchar(50)")
  3193. .HasCharSet("utf8")
  3194. .HasCollation("utf8_general_ci");
  3195. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3196. entity.Property(e => e.Version).HasColumnType("int(11)");
  3197. });
  3198. modelBuilder.Entity<MerchantParamSet>(entity =>
  3199. {
  3200. entity.Property(e => e.Id).HasColumnType("int(11)");
  3201. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3202. entity.Property(e => e.CreateMan)
  3203. .HasColumnType("varchar(50)")
  3204. .HasCharSet("utf8")
  3205. .HasCollation("utf8_general_ci");
  3206. entity.Property(e => e.DiviPercent).HasColumnType("decimal(18,2)");
  3207. entity.Property(e => e.DiviPersons).HasColumnType("int(11)");
  3208. entity.Property(e => e.GetPercent).HasColumnType("decimal(18,2)");
  3209. entity.Property(e => e.IsAll).HasColumnType("int(11)");
  3210. entity.Property(e => e.MinPayMoney).HasColumnType("decimal(18,2)");
  3211. entity.Property(e => e.ProfitDays).HasColumnType("int(11)");
  3212. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3213. entity.Property(e => e.SeoDescription)
  3214. .HasColumnType("varchar(500)")
  3215. .HasCharSet("utf8")
  3216. .HasCollation("utf8_general_ci");
  3217. entity.Property(e => e.SeoKeyword)
  3218. .HasColumnType("varchar(200)")
  3219. .HasCharSet("utf8")
  3220. .HasCollation("utf8_general_ci");
  3221. entity.Property(e => e.SeoTitle)
  3222. .HasColumnType("varchar(100)")
  3223. .HasCharSet("utf8")
  3224. .HasCollation("utf8_general_ci");
  3225. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3226. entity.Property(e => e.Status).HasColumnType("int(11)");
  3227. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3228. entity.Property(e => e.UpdateMan)
  3229. .HasColumnType("varchar(50)")
  3230. .HasCharSet("utf8")
  3231. .HasCollation("utf8_general_ci");
  3232. entity.Property(e => e.Version).HasColumnType("int(11)");
  3233. });
  3234. modelBuilder.Entity<MerchantQrCode>(entity =>
  3235. {
  3236. entity.Property(e => e.Id).HasColumnType("int(11)");
  3237. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3238. entity.Property(e => e.CreateMan)
  3239. .HasColumnType("varchar(50)")
  3240. .HasCharSet("utf8")
  3241. .HasCollation("utf8_general_ci");
  3242. entity.Property(e => e.MachineId).HasColumnType("int(11)");
  3243. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3244. entity.Property(e => e.QrCodeContent)
  3245. .HasColumnType("varchar(500)")
  3246. .HasCharSet("utf8")
  3247. .HasCollation("utf8_general_ci");
  3248. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3249. entity.Property(e => e.SeoDescription)
  3250. .HasColumnType("varchar(500)")
  3251. .HasCharSet("utf8")
  3252. .HasCollation("utf8_general_ci");
  3253. entity.Property(e => e.SeoKeyword)
  3254. .HasColumnType("varchar(200)")
  3255. .HasCharSet("utf8")
  3256. .HasCollation("utf8_general_ci");
  3257. entity.Property(e => e.SeoTitle)
  3258. .HasColumnType("varchar(100)")
  3259. .HasCharSet("utf8")
  3260. .HasCollation("utf8_general_ci");
  3261. entity.Property(e => e.SnNo)
  3262. .HasColumnType("varchar(50)")
  3263. .HasCharSet("utf8")
  3264. .HasCollation("utf8_general_ci");
  3265. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3266. entity.Property(e => e.Status).HasColumnType("int(11)");
  3267. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3268. entity.Property(e => e.UpdateMan)
  3269. .HasColumnType("varchar(50)")
  3270. .HasCharSet("utf8")
  3271. .HasCollation("utf8_general_ci");
  3272. entity.Property(e => e.Version).HasColumnType("int(11)");
  3273. });
  3274. modelBuilder.Entity<MerchantRebateDetail>(entity =>
  3275. {
  3276. entity.Property(e => e.Id).HasColumnType("int(11)");
  3277. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3278. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3279. entity.Property(e => e.CreateMan)
  3280. .HasColumnType("varchar(50)")
  3281. .HasCharSet("utf8")
  3282. .HasCollation("utf8_general_ci");
  3283. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3284. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3285. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3286. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3287. entity.Property(e => e.MerNo)
  3288. .HasColumnType("varchar(32)")
  3289. .HasCharSet("utf8")
  3290. .HasCollation("utf8_general_ci");
  3291. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  3292. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  3293. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3294. entity.Property(e => e.MmpUserName)
  3295. .HasColumnType("varchar(32)")
  3296. .HasCharSet("utf8")
  3297. .HasCollation("utf8_general_ci");
  3298. entity.Property(e => e.MmpUserNo)
  3299. .HasColumnType("varchar(32)")
  3300. .HasCharSet("utf8")
  3301. .HasCollation("utf8_general_ci");
  3302. entity.Property(e => e.ProductName)
  3303. .HasColumnType("varchar(32)")
  3304. .HasCharSet("utf8")
  3305. .HasCollation("utf8_general_ci");
  3306. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3307. entity.Property(e => e.Remark)
  3308. .HasColumnType("varchar(64)")
  3309. .HasCharSet("utf8")
  3310. .HasCollation("utf8_general_ci");
  3311. entity.Property(e => e.RewardDesc)
  3312. .HasColumnType("varchar(128)")
  3313. .HasCharSet("utf8")
  3314. .HasCollation("utf8_general_ci");
  3315. entity.Property(e => e.SeoDescription)
  3316. .HasColumnType("varchar(500)")
  3317. .HasCharSet("utf8")
  3318. .HasCollation("utf8_general_ci");
  3319. entity.Property(e => e.SeoKeyword)
  3320. .HasColumnType("varchar(200)")
  3321. .HasCharSet("utf8")
  3322. .HasCollation("utf8_general_ci");
  3323. entity.Property(e => e.SeoTitle)
  3324. .HasColumnType("varchar(100)")
  3325. .HasCharSet("utf8")
  3326. .HasCollation("utf8_general_ci");
  3327. entity.Property(e => e.SnNo)
  3328. .HasColumnType("varchar(32)")
  3329. .HasCharSet("utf8")
  3330. .HasCollation("utf8_general_ci");
  3331. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3332. entity.Property(e => e.Status).HasColumnType("int(11)");
  3333. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  3334. entity.Property(e => e.TradeDate)
  3335. .HasColumnType("varchar(8)")
  3336. .HasCharSet("utf8")
  3337. .HasCollation("utf8_general_ci");
  3338. entity.Property(e => e.TradeMonth)
  3339. .HasColumnType("varchar(6)")
  3340. .HasCharSet("utf8")
  3341. .HasCollation("utf8_general_ci");
  3342. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3343. entity.Property(e => e.UpdateMan)
  3344. .HasColumnType("varchar(50)")
  3345. .HasCharSet("utf8")
  3346. .HasCollation("utf8_general_ci");
  3347. entity.Property(e => e.Version).HasColumnType("int(11)");
  3348. });
  3349. modelBuilder.Entity<Merchants>(entity =>
  3350. {
  3351. entity.Property(e => e.Id).HasColumnType("int(11)");
  3352. entity.Property(e => e.Address)
  3353. .HasColumnType("varchar(50)")
  3354. .HasCharSet("utf8")
  3355. .HasCollation("utf8_general_ci");
  3356. entity.Property(e => e.Areas)
  3357. .HasColumnType("varchar(30)")
  3358. .HasCharSet("utf8")
  3359. .HasCollation("utf8_general_ci");
  3360. entity.Property(e => e.BusinessLicense)
  3361. .HasColumnType("varchar(200)")
  3362. .HasCharSet("utf8")
  3363. .HasCollation("utf8_general_ci");
  3364. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  3365. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3366. entity.Property(e => e.CreateMan)
  3367. .HasColumnType("varchar(50)")
  3368. .HasCharSet("utf8")
  3369. .HasCollation("utf8_general_ci");
  3370. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  3371. entity.Property(e => e.IsAuth)
  3372. .HasColumnType("bit(1)")
  3373. .HasDefaultValueSql("b'0'");
  3374. entity.Property(e => e.IsRecommend)
  3375. .HasColumnType("bit(1)")
  3376. .HasDefaultValueSql("b'0'");
  3377. entity.Property(e => e.LoginPwd)
  3378. .HasColumnType("varchar(32)")
  3379. .HasCharSet("utf8")
  3380. .HasCollation("utf8_general_ci");
  3381. entity.Property(e => e.Logo)
  3382. .HasColumnType("varchar(200)")
  3383. .HasCharSet("utf8")
  3384. .HasCollation("utf8_general_ci");
  3385. entity.Property(e => e.Name)
  3386. .HasColumnType("varchar(50)")
  3387. .HasCharSet("utf8")
  3388. .HasCollation("utf8_general_ci");
  3389. entity.Property(e => e.PayPwd)
  3390. .HasColumnType("varchar(32)")
  3391. .HasCharSet("utf8")
  3392. .HasCollation("utf8_general_ci");
  3393. entity.Property(e => e.Phone)
  3394. .HasColumnType("varchar(30)")
  3395. .HasCharSet("utf8")
  3396. .HasCollation("utf8_general_ci");
  3397. entity.Property(e => e.Principal)
  3398. .HasColumnType("varchar(30)")
  3399. .HasCharSet("utf8")
  3400. .HasCollation("utf8_general_ci");
  3401. entity.Property(e => e.Province)
  3402. .HasColumnType("varchar(20)")
  3403. .HasCharSet("utf8")
  3404. .HasCollation("utf8_general_ci");
  3405. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3406. entity.Property(e => e.SeoDescription)
  3407. .HasColumnType("varchar(500)")
  3408. .HasCharSet("utf8")
  3409. .HasCollation("utf8_general_ci");
  3410. entity.Property(e => e.SeoKeyword)
  3411. .HasColumnType("varchar(200)")
  3412. .HasCharSet("utf8")
  3413. .HasCollation("utf8_general_ci");
  3414. entity.Property(e => e.SeoTitle)
  3415. .HasColumnType("varchar(100)")
  3416. .HasCharSet("utf8")
  3417. .HasCollation("utf8_general_ci");
  3418. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3419. entity.Property(e => e.StarNum1).HasColumnType("decimal(18,2)");
  3420. entity.Property(e => e.StarNum2).HasColumnType("decimal(18,2)");
  3421. entity.Property(e => e.StarNum3).HasColumnType("decimal(18,2)");
  3422. entity.Property(e => e.Status).HasColumnType("int(11)");
  3423. entity.Property(e => e.Title)
  3424. .HasColumnType("varchar(50)")
  3425. .HasCharSet("utf8")
  3426. .HasCollation("utf8_general_ci");
  3427. entity.Property(e => e.Title2)
  3428. .HasColumnType("varchar(50)")
  3429. .HasCharSet("utf8")
  3430. .HasCollation("utf8_general_ci");
  3431. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3432. entity.Property(e => e.UpdateMan)
  3433. .HasColumnType("varchar(50)")
  3434. .HasCharSet("utf8")
  3435. .HasCollation("utf8_general_ci");
  3436. entity.Property(e => e.UserName)
  3437. .HasColumnType("varchar(50)")
  3438. .HasCharSet("utf8")
  3439. .HasCollation("utf8_general_ci");
  3440. entity.Property(e => e.Version).HasColumnType("int(11)");
  3441. });
  3442. modelBuilder.Entity<MobileCodeCheck>(entity =>
  3443. {
  3444. entity.HasKey(e => e.Mobile)
  3445. .HasName("PRIMARY");
  3446. entity.Property(e => e.Mobile)
  3447. .HasColumnType("varchar(11)")
  3448. .HasCharSet("utf8")
  3449. .HasCollation("utf8_general_ci");
  3450. entity.Property(e => e.CheckCode)
  3451. .HasColumnType("varchar(6)")
  3452. .HasCharSet("utf8")
  3453. .HasCollation("utf8_general_ci");
  3454. entity.Property(e => e.CheckCodeTime).HasColumnType("datetime");
  3455. entity.Property(e => e.CheckNo)
  3456. .HasColumnType("varchar(6)")
  3457. .HasCharSet("utf8")
  3458. .HasCollation("utf8_general_ci");
  3459. });
  3460. modelBuilder.Entity<MsgBlackList>(entity =>
  3461. {
  3462. entity.Property(e => e.Id).HasColumnType("int(11)");
  3463. entity.Property(e => e.ColId)
  3464. .HasColumnType("varchar(30)")
  3465. .HasCharSet("utf8")
  3466. .HasCollation("utf8_general_ci");
  3467. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3468. entity.Property(e => e.CreateMan)
  3469. .HasColumnType("varchar(50)")
  3470. .HasCharSet("utf8")
  3471. .HasCollation("utf8_general_ci");
  3472. entity.Property(e => e.Extend)
  3473. .HasColumnType("varchar(2000)")
  3474. .HasCharSet("utf8")
  3475. .HasCollation("utf8_general_ci");
  3476. entity.Property(e => e.Ip)
  3477. .HasColumnType("varchar(64)")
  3478. .HasCharSet("utf8")
  3479. .HasCollation("utf8_general_ci");
  3480. entity.Property(e => e.Mobile)
  3481. .HasColumnType("varchar(11)")
  3482. .HasCharSet("utf8")
  3483. .HasCollation("utf8_general_ci");
  3484. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3485. entity.Property(e => e.Reason)
  3486. .HasColumnType("varchar(512)")
  3487. .HasCharSet("utf8")
  3488. .HasCollation("utf8_general_ci");
  3489. entity.Property(e => e.Remark)
  3490. .HasColumnType("varchar(64)")
  3491. .HasCharSet("utf8")
  3492. .HasCollation("utf8_general_ci");
  3493. entity.Property(e => e.SeoDescription)
  3494. .HasColumnType("varchar(500)")
  3495. .HasCharSet("utf8")
  3496. .HasCollation("utf8_general_ci");
  3497. entity.Property(e => e.SeoKeyword)
  3498. .HasColumnType("varchar(200)")
  3499. .HasCharSet("utf8")
  3500. .HasCollation("utf8_general_ci");
  3501. entity.Property(e => e.SeoTitle)
  3502. .HasColumnType("varchar(100)")
  3503. .HasCharSet("utf8")
  3504. .HasCollation("utf8_general_ci");
  3505. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3506. entity.Property(e => e.Status).HasColumnType("int(11)");
  3507. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3508. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3509. entity.Property(e => e.UpdateMan)
  3510. .HasColumnType("varchar(50)")
  3511. .HasCharSet("utf8")
  3512. .HasCollation("utf8_general_ci");
  3513. entity.Property(e => e.Version).HasColumnType("int(11)");
  3514. });
  3515. modelBuilder.Entity<MsgPersonal>(entity =>
  3516. {
  3517. entity.Property(e => e.Id).HasColumnType("int(11)");
  3518. entity.Property(e => e.BgPic)
  3519. .HasColumnType("varchar(200)")
  3520. .HasCharSet("utf8")
  3521. .HasCollation("utf8_general_ci");
  3522. entity.Property(e => e.Content)
  3523. .HasColumnType("longtext")
  3524. .HasCharSet("utf8")
  3525. .HasCollation("utf8_general_ci");
  3526. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3527. entity.Property(e => e.CreateMan)
  3528. .HasColumnType("varchar(50)")
  3529. .HasCharSet("utf8")
  3530. .HasCollation("utf8_general_ci");
  3531. entity.Property(e => e.ExtendColumn)
  3532. .HasColumnType("mediumtext")
  3533. .HasCharSet("utf8")
  3534. .HasCollation("utf8_general_ci");
  3535. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3536. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3537. entity.Property(e => e.PushParam)
  3538. .HasColumnType("varchar(255)")
  3539. .HasCharSet("utf8")
  3540. .HasCollation("utf8_general_ci");
  3541. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3542. entity.Property(e => e.ReadFlag)
  3543. .HasColumnType("bit(1)")
  3544. .HasDefaultValueSql("b'0'");
  3545. entity.Property(e => e.Remark)
  3546. .HasColumnType("varchar(255)")
  3547. .HasCharSet("utf8")
  3548. .HasCollation("utf8_general_ci");
  3549. entity.Property(e => e.SeoDescription)
  3550. .HasColumnType("varchar(500)")
  3551. .HasCharSet("utf8")
  3552. .HasCollation("utf8_general_ci");
  3553. entity.Property(e => e.SeoKeyword)
  3554. .HasColumnType("varchar(200)")
  3555. .HasCharSet("utf8")
  3556. .HasCollation("utf8_general_ci");
  3557. entity.Property(e => e.SeoTitle)
  3558. .HasColumnType("varchar(100)")
  3559. .HasCharSet("utf8")
  3560. .HasCollation("utf8_general_ci");
  3561. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3562. entity.Property(e => e.Status).HasColumnType("int(11)");
  3563. entity.Property(e => e.Summary)
  3564. .HasColumnType("varchar(500)")
  3565. .HasCharSet("utf8")
  3566. .HasCollation("utf8_general_ci");
  3567. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3568. entity.Property(e => e.Title)
  3569. .HasColumnType("varchar(50)")
  3570. .HasCharSet("utf8")
  3571. .HasCollation("utf8_general_ci");
  3572. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3573. entity.Property(e => e.UpdateMan)
  3574. .HasColumnType("varchar(50)")
  3575. .HasCharSet("utf8")
  3576. .HasCollation("utf8_general_ci");
  3577. entity.Property(e => e.Url)
  3578. .HasColumnType("varchar(500)")
  3579. .HasCharSet("utf8")
  3580. .HasCollation("utf8_general_ci");
  3581. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3582. entity.Property(e => e.Version).HasColumnType("int(11)");
  3583. });
  3584. modelBuilder.Entity<MsgPlacard>(entity =>
  3585. {
  3586. entity.Property(e => e.Id).HasColumnType("int(11)");
  3587. entity.Property(e => e.BgPic)
  3588. .HasColumnType("varchar(200)")
  3589. .HasCharSet("utf8")
  3590. .HasCollation("utf8_general_ci");
  3591. entity.Property(e => e.Content)
  3592. .HasColumnType("longtext")
  3593. .HasCharSet("utf8")
  3594. .HasCollation("utf8_general_ci");
  3595. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3596. entity.Property(e => e.CreateMan)
  3597. .HasColumnType("varchar(50)")
  3598. .HasCharSet("utf8")
  3599. .HasCollation("utf8_general_ci");
  3600. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  3601. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  3602. entity.Property(e => e.ExtendColumn)
  3603. .HasColumnType("mediumtext")
  3604. .HasCharSet("utf8")
  3605. .HasCollation("utf8_general_ci");
  3606. entity.Property(e => e.IsTop)
  3607. .HasColumnType("bit(1)")
  3608. .HasDefaultValueSql("b'0'");
  3609. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3610. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3611. entity.Property(e => e.PushParam)
  3612. .HasColumnType("varchar(255)")
  3613. .HasCharSet("utf8")
  3614. .HasCollation("utf8_general_ci");
  3615. entity.Property(e => e.PushTime).HasColumnType("datetime");
  3616. entity.Property(e => e.PushType).HasColumnType("int(11)");
  3617. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3618. entity.Property(e => e.Remark)
  3619. .HasColumnType("varchar(255)")
  3620. .HasCharSet("utf8")
  3621. .HasCollation("utf8_general_ci");
  3622. entity.Property(e => e.SeoDescription)
  3623. .HasColumnType("varchar(500)")
  3624. .HasCharSet("utf8")
  3625. .HasCollation("utf8_general_ci");
  3626. entity.Property(e => e.SeoKeyword)
  3627. .HasColumnType("varchar(200)")
  3628. .HasCharSet("utf8")
  3629. .HasCollation("utf8_general_ci");
  3630. entity.Property(e => e.SeoTitle)
  3631. .HasColumnType("varchar(100)")
  3632. .HasCharSet("utf8")
  3633. .HasCollation("utf8_general_ci");
  3634. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  3635. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3636. entity.Property(e => e.Status).HasColumnType("int(11)");
  3637. entity.Property(e => e.Summary)
  3638. .HasColumnType("varchar(500)")
  3639. .HasCharSet("utf8")
  3640. .HasCollation("utf8_general_ci");
  3641. entity.Property(e => e.Title)
  3642. .HasColumnType("varchar(50)")
  3643. .HasCharSet("utf8")
  3644. .HasCollation("utf8_general_ci");
  3645. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3646. entity.Property(e => e.UpdateMan)
  3647. .HasColumnType("varchar(50)")
  3648. .HasCharSet("utf8")
  3649. .HasCollation("utf8_general_ci");
  3650. entity.Property(e => e.Url)
  3651. .HasColumnType("varchar(500)")
  3652. .HasCharSet("utf8")
  3653. .HasCollation("utf8_general_ci");
  3654. entity.Property(e => e.Version).HasColumnType("int(11)");
  3655. });
  3656. modelBuilder.Entity<MsgPlacardRead>(entity =>
  3657. {
  3658. entity.Property(e => e.Id).HasColumnType("int(11)");
  3659. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3660. entity.Property(e => e.CreateMan)
  3661. .HasColumnType("varchar(50)")
  3662. .HasCharSet("utf8")
  3663. .HasCollation("utf8_general_ci");
  3664. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  3665. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3666. entity.Property(e => e.ReadFlag)
  3667. .HasColumnType("bit(1)")
  3668. .HasDefaultValueSql("b'0'");
  3669. entity.Property(e => e.Remark)
  3670. .HasColumnType("varchar(255)")
  3671. .HasCharSet("utf8")
  3672. .HasCollation("utf8_general_ci");
  3673. entity.Property(e => e.SeoDescription)
  3674. .HasColumnType("varchar(500)")
  3675. .HasCharSet("utf8")
  3676. .HasCollation("utf8_general_ci");
  3677. entity.Property(e => e.SeoKeyword)
  3678. .HasColumnType("varchar(200)")
  3679. .HasCharSet("utf8")
  3680. .HasCollation("utf8_general_ci");
  3681. entity.Property(e => e.SeoTitle)
  3682. .HasColumnType("varchar(100)")
  3683. .HasCharSet("utf8")
  3684. .HasCollation("utf8_general_ci");
  3685. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3686. entity.Property(e => e.Status).HasColumnType("int(11)");
  3687. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3688. entity.Property(e => e.UpdateMan)
  3689. .HasColumnType("varchar(50)")
  3690. .HasCharSet("utf8")
  3691. .HasCollation("utf8_general_ci");
  3692. entity.Property(e => e.UserId)
  3693. .HasColumnType("varchar(64)")
  3694. .HasCharSet("utf8")
  3695. .HasCollation("utf8_general_ci");
  3696. entity.Property(e => e.Version).HasColumnType("int(11)");
  3697. });
  3698. modelBuilder.Entity<MsgPush>(entity =>
  3699. {
  3700. entity.Property(e => e.Id).HasColumnType("int(11)");
  3701. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  3702. entity.Property(e => e.ClientType)
  3703. .HasColumnType("varchar(20)")
  3704. .HasCharSet("utf8")
  3705. .HasCollation("utf8_general_ci");
  3706. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3707. entity.Property(e => e.CreateMan)
  3708. .HasColumnType("varchar(50)")
  3709. .HasCharSet("utf8")
  3710. .HasCollation("utf8_general_ci");
  3711. entity.Property(e => e.Details)
  3712. .HasColumnType("varchar(200)")
  3713. .HasCharSet("utf8")
  3714. .HasCollation("utf8_general_ci");
  3715. entity.Property(e => e.Devices)
  3716. .HasColumnType("mediumtext")
  3717. .HasCharSet("utf8")
  3718. .HasCollation("utf8_general_ci");
  3719. entity.Property(e => e.IsSilent)
  3720. .HasColumnType("bit(1)")
  3721. .HasDefaultValueSql("b'0'");
  3722. entity.Property(e => e.MessageId)
  3723. .HasColumnType("varchar(50)")
  3724. .HasCharSet("utf8")
  3725. .HasCollation("utf8_general_ci");
  3726. entity.Property(e => e.Mobiles)
  3727. .HasColumnType("mediumtext")
  3728. .HasCharSet("utf8")
  3729. .HasCollation("utf8_general_ci");
  3730. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3731. entity.Property(e => e.SeoDescription)
  3732. .HasColumnType("varchar(500)")
  3733. .HasCharSet("utf8")
  3734. .HasCollation("utf8_general_ci");
  3735. entity.Property(e => e.SeoKeyword)
  3736. .HasColumnType("varchar(200)")
  3737. .HasCharSet("utf8")
  3738. .HasCollation("utf8_general_ci");
  3739. entity.Property(e => e.SeoTitle)
  3740. .HasColumnType("varchar(100)")
  3741. .HasCharSet("utf8")
  3742. .HasCollation("utf8_general_ci");
  3743. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3744. entity.Property(e => e.Status).HasColumnType("int(11)");
  3745. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3746. entity.Property(e => e.Title)
  3747. .HasColumnType("varchar(50)")
  3748. .HasCharSet("utf8")
  3749. .HasCollation("utf8_general_ci");
  3750. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3751. entity.Property(e => e.UpdateMan)
  3752. .HasColumnType("varchar(50)")
  3753. .HasCharSet("utf8")
  3754. .HasCollation("utf8_general_ci");
  3755. entity.Property(e => e.Url)
  3756. .HasColumnType("varchar(500)")
  3757. .HasCharSet("utf8")
  3758. .HasCollation("utf8_general_ci");
  3759. entity.Property(e => e.Version).HasColumnType("int(11)");
  3760. });
  3761. modelBuilder.Entity<MsgSms>(entity =>
  3762. {
  3763. entity.Property(e => e.Id).HasColumnType("int(11)");
  3764. entity.Property(e => e.Code).HasColumnType("int(11)");
  3765. entity.Property(e => e.ColId)
  3766. .HasColumnType("varchar(30)")
  3767. .HasCharSet("utf8")
  3768. .HasCollation("utf8_general_ci");
  3769. entity.Property(e => e.Content)
  3770. .HasColumnType("varchar(200)")
  3771. .HasCharSet("utf8")
  3772. .HasCollation("utf8_general_ci");
  3773. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3774. entity.Property(e => e.CreateMan)
  3775. .HasColumnType("varchar(50)")
  3776. .HasCharSet("utf8")
  3777. .HasCollation("utf8_general_ci");
  3778. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  3779. entity.Property(e => e.Ip)
  3780. .HasColumnType("varchar(15)")
  3781. .HasCharSet("utf8")
  3782. .HasCollation("utf8_general_ci");
  3783. entity.Property(e => e.Kind)
  3784. .HasColumnType("varchar(64)")
  3785. .HasCharSet("utf8")
  3786. .HasCollation("utf8_general_ci");
  3787. entity.Property(e => e.Mobile)
  3788. .HasColumnType("varchar(11)")
  3789. .HasCharSet("utf8")
  3790. .HasCollation("utf8_general_ci");
  3791. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3792. entity.Property(e => e.RespCode)
  3793. .HasColumnType("varchar(16)")
  3794. .HasCharSet("utf8")
  3795. .HasCollation("utf8_general_ci");
  3796. entity.Property(e => e.RespContent)
  3797. .HasColumnType("varchar(500)")
  3798. .HasCharSet("utf8")
  3799. .HasCollation("utf8_general_ci");
  3800. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  3801. entity.Property(e => e.SendTime).HasColumnType("datetime");
  3802. entity.Property(e => e.SendType).HasColumnType("int(11)");
  3803. entity.Property(e => e.SeoDescription)
  3804. .HasColumnType("varchar(500)")
  3805. .HasCharSet("utf8")
  3806. .HasCollation("utf8_general_ci");
  3807. entity.Property(e => e.SeoKeyword)
  3808. .HasColumnType("varchar(200)")
  3809. .HasCharSet("utf8")
  3810. .HasCollation("utf8_general_ci");
  3811. entity.Property(e => e.SeoTitle)
  3812. .HasColumnType("varchar(100)")
  3813. .HasCharSet("utf8")
  3814. .HasCollation("utf8_general_ci");
  3815. entity.Property(e => e.SignName)
  3816. .HasColumnType("varchar(10)")
  3817. .HasCharSet("utf8")
  3818. .HasCollation("utf8_general_ci");
  3819. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3820. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3821. entity.Property(e => e.Status).HasColumnType("int(11)");
  3822. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3823. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3824. entity.Property(e => e.UpdateMan)
  3825. .HasColumnType("varchar(50)")
  3826. .HasCharSet("utf8")
  3827. .HasCollation("utf8_general_ci");
  3828. entity.Property(e => e.VerifyCode)
  3829. .HasColumnType("varchar(6)")
  3830. .HasCharSet("utf8")
  3831. .HasCollation("utf8_general_ci");
  3832. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  3833. entity.Property(e => e.Version).HasColumnType("int(11)");
  3834. });
  3835. modelBuilder.Entity<MsgSmsSet>(entity =>
  3836. {
  3837. entity.Property(e => e.Id).HasColumnType("int(11)");
  3838. entity.Property(e => e.AuthPwd)
  3839. .HasColumnType("varchar(50)")
  3840. .HasCharSet("utf8")
  3841. .HasCollation("utf8_general_ci");
  3842. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3843. entity.Property(e => e.CreateMan)
  3844. .HasColumnType("varchar(50)")
  3845. .HasCharSet("utf8")
  3846. .HasCollation("utf8_general_ci");
  3847. entity.Property(e => e.Name)
  3848. .HasColumnType("varchar(50)")
  3849. .HasCharSet("utf8")
  3850. .HasCollation("utf8_general_ci");
  3851. entity.Property(e => e.Params)
  3852. .HasColumnType("varchar(200)")
  3853. .HasCharSet("utf8")
  3854. .HasCollation("utf8_general_ci");
  3855. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3856. entity.Property(e => e.ReqUrl)
  3857. .HasColumnType("varchar(200)")
  3858. .HasCharSet("utf8")
  3859. .HasCollation("utf8_general_ci");
  3860. entity.Property(e => e.SeoDescription)
  3861. .HasColumnType("varchar(500)")
  3862. .HasCharSet("utf8")
  3863. .HasCollation("utf8_general_ci");
  3864. entity.Property(e => e.SeoKeyword)
  3865. .HasColumnType("varchar(200)")
  3866. .HasCharSet("utf8")
  3867. .HasCollation("utf8_general_ci");
  3868. entity.Property(e => e.SeoTitle)
  3869. .HasColumnType("varchar(100)")
  3870. .HasCharSet("utf8")
  3871. .HasCollation("utf8_general_ci");
  3872. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3873. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3874. entity.Property(e => e.Status).HasColumnType("int(11)");
  3875. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3876. entity.Property(e => e.UpdateMan)
  3877. .HasColumnType("varchar(50)")
  3878. .HasCharSet("utf8")
  3879. .HasCollation("utf8_general_ci");
  3880. entity.Property(e => e.UserName)
  3881. .HasColumnType("varchar(50)")
  3882. .HasCharSet("utf8")
  3883. .HasCollation("utf8_general_ci");
  3884. entity.Property(e => e.Version).HasColumnType("int(11)");
  3885. });
  3886. modelBuilder.Entity<MsgTemplate>(entity =>
  3887. {
  3888. entity.Property(e => e.Id).HasColumnType("int(11)");
  3889. entity.Property(e => e.ColId)
  3890. .HasColumnType("varchar(30)")
  3891. .HasCharSet("utf8")
  3892. .HasCollation("utf8_general_ci");
  3893. entity.Property(e => e.Content)
  3894. .HasColumnType("varchar(200)")
  3895. .HasCharSet("utf8")
  3896. .HasCollation("utf8_general_ci");
  3897. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3898. entity.Property(e => e.CreateMan)
  3899. .HasColumnType("varchar(50)")
  3900. .HasCharSet("utf8")
  3901. .HasCollation("utf8_general_ci");
  3902. entity.Property(e => e.Extend)
  3903. .HasColumnType("varchar(2000)")
  3904. .HasCharSet("utf8")
  3905. .HasCollation("utf8_general_ci");
  3906. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3907. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3908. entity.Property(e => e.Remark)
  3909. .HasColumnType("varchar(64)")
  3910. .HasCharSet("utf8")
  3911. .HasCollation("utf8_general_ci");
  3912. entity.Property(e => e.SeoDescription)
  3913. .HasColumnType("varchar(500)")
  3914. .HasCharSet("utf8")
  3915. .HasCollation("utf8_general_ci");
  3916. entity.Property(e => e.SeoKeyword)
  3917. .HasColumnType("varchar(200)")
  3918. .HasCharSet("utf8")
  3919. .HasCollation("utf8_general_ci");
  3920. entity.Property(e => e.SeoTitle)
  3921. .HasColumnType("varchar(100)")
  3922. .HasCharSet("utf8")
  3923. .HasCollation("utf8_general_ci");
  3924. entity.Property(e => e.SignName)
  3925. .HasColumnType("varchar(10)")
  3926. .HasCharSet("utf8")
  3927. .HasCollation("utf8_general_ci");
  3928. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3929. entity.Property(e => e.Status).HasColumnType("int(11)");
  3930. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  3931. entity.Property(e => e.Title)
  3932. .HasColumnType("varchar(50)")
  3933. .HasCharSet("utf8")
  3934. .HasCollation("utf8_general_ci");
  3935. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3936. entity.Property(e => e.UpdateMan)
  3937. .HasColumnType("varchar(50)")
  3938. .HasCharSet("utf8")
  3939. .HasCollation("utf8_general_ci");
  3940. entity.Property(e => e.Version).HasColumnType("int(11)");
  3941. });
  3942. modelBuilder.Entity<OpenBankCityTable>(entity =>
  3943. {
  3944. entity.HasKey(e => e.CityName)
  3945. .HasName("PRIMARY");
  3946. entity.Property(e => e.CityName)
  3947. .HasColumnType("varchar(100)")
  3948. .HasCharSet("utf8")
  3949. .HasCollation("utf8_general_ci");
  3950. entity.Property(e => e.Code)
  3951. .HasColumnType("varchar(20)")
  3952. .HasCharSet("utf8")
  3953. .HasCollation("utf8_general_ci");
  3954. });
  3955. modelBuilder.Entity<OpenBankTable>(entity =>
  3956. {
  3957. entity.HasKey(e => e.BankName)
  3958. .HasName("PRIMARY");
  3959. entity.Property(e => e.BankName)
  3960. .HasColumnType("varchar(200)")
  3961. .HasCharSet("utf8")
  3962. .HasCollation("utf8_general_ci");
  3963. entity.Property(e => e.BankCode)
  3964. .HasColumnType("varchar(50)")
  3965. .HasCharSet("utf8")
  3966. .HasCollation("utf8_general_ci");
  3967. });
  3968. modelBuilder.Entity<OpenReward>(entity =>
  3969. {
  3970. entity.Property(e => e.Id).HasColumnType("int(11)");
  3971. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3972. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3973. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3974. entity.Property(e => e.CreateMan)
  3975. .HasColumnType("varchar(50)")
  3976. .HasCharSet("utf8")
  3977. .HasCollation("utf8_general_ci");
  3978. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3979. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3980. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3981. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3982. entity.Property(e => e.OpenRewardNo)
  3983. .HasColumnType("varchar(32)")
  3984. .HasCharSet("utf8")
  3985. .HasCollation("utf8_general_ci");
  3986. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3987. entity.Property(e => e.Remark)
  3988. .HasColumnType("varchar(128)")
  3989. .HasCharSet("utf8")
  3990. .HasCollation("utf8_general_ci");
  3991. entity.Property(e => e.RewardDesc)
  3992. .HasColumnType("varchar(128)")
  3993. .HasCharSet("utf8")
  3994. .HasCollation("utf8_general_ci");
  3995. entity.Property(e => e.RewardMerCount).HasColumnType("int(11)");
  3996. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3997. entity.Property(e => e.SeoDescription)
  3998. .HasColumnType("varchar(500)")
  3999. .HasCharSet("utf8")
  4000. .HasCollation("utf8_general_ci");
  4001. entity.Property(e => e.SeoKeyword)
  4002. .HasColumnType("varchar(200)")
  4003. .HasCharSet("utf8")
  4004. .HasCollation("utf8_general_ci");
  4005. entity.Property(e => e.SeoTitle)
  4006. .HasColumnType("varchar(100)")
  4007. .HasCharSet("utf8")
  4008. .HasCollation("utf8_general_ci");
  4009. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4010. entity.Property(e => e.Status).HasColumnType("int(11)");
  4011. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4012. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  4013. entity.Property(e => e.TradeMonth)
  4014. .HasColumnType("varchar(6)")
  4015. .HasCharSet("utf8")
  4016. .HasCollation("utf8_general_ci");
  4017. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4018. entity.Property(e => e.UpdateMan)
  4019. .HasColumnType("varchar(50)")
  4020. .HasCharSet("utf8")
  4021. .HasCollation("utf8_general_ci");
  4022. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4023. entity.Property(e => e.Version).HasColumnType("int(11)");
  4024. });
  4025. modelBuilder.Entity<OpenRewardDetail>(entity =>
  4026. {
  4027. entity.Property(e => e.Id).HasColumnType("int(11)");
  4028. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4029. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  4030. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4031. entity.Property(e => e.CreateMan)
  4032. .HasColumnType("varchar(50)")
  4033. .HasCharSet("utf8")
  4034. .HasCollation("utf8_general_ci");
  4035. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  4036. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  4037. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  4038. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  4039. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  4040. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  4041. entity.Property(e => e.MerNo)
  4042. .HasColumnType("varchar(32)")
  4043. .HasCharSet("utf8")
  4044. .HasCollation("utf8_general_ci");
  4045. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4046. entity.Property(e => e.OpenDetailRec)
  4047. .HasColumnType("varchar(32)")
  4048. .HasCharSet("utf8")
  4049. .HasCollation("utf8_general_ci");
  4050. entity.Property(e => e.OpenRewardNo)
  4051. .HasColumnType("varchar(32)")
  4052. .HasCharSet("utf8")
  4053. .HasCollation("utf8_general_ci");
  4054. entity.Property(e => e.ProductName)
  4055. .HasColumnType("varchar(32)")
  4056. .HasCharSet("utf8")
  4057. .HasCollation("utf8_general_ci");
  4058. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4059. entity.Property(e => e.Remark)
  4060. .HasColumnType("varchar(128)")
  4061. .HasCharSet("utf8")
  4062. .HasCollation("utf8_general_ci");
  4063. entity.Property(e => e.RewardDesc)
  4064. .HasColumnType("varchar(128)")
  4065. .HasCharSet("utf8")
  4066. .HasCollation("utf8_general_ci");
  4067. entity.Property(e => e.RewardTips)
  4068. .HasColumnType("varchar(16)")
  4069. .HasCharSet("utf8")
  4070. .HasCollation("utf8_general_ci");
  4071. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  4072. entity.Property(e => e.SeoDescription)
  4073. .HasColumnType("varchar(500)")
  4074. .HasCharSet("utf8")
  4075. .HasCollation("utf8_general_ci");
  4076. entity.Property(e => e.SeoKeyword)
  4077. .HasColumnType("varchar(200)")
  4078. .HasCharSet("utf8")
  4079. .HasCollation("utf8_general_ci");
  4080. entity.Property(e => e.SeoTitle)
  4081. .HasColumnType("varchar(100)")
  4082. .HasCharSet("utf8")
  4083. .HasCollation("utf8_general_ci");
  4084. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  4085. entity.Property(e => e.SnNo)
  4086. .HasColumnType("varchar(32)")
  4087. .HasCharSet("utf8")
  4088. .HasCollation("utf8_general_ci");
  4089. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  4090. entity.Property(e => e.SnType).HasColumnType("int(11)");
  4091. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4092. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  4093. entity.Property(e => e.Status).HasColumnType("int(11)");
  4094. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4095. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  4096. entity.Property(e => e.TradeMonth)
  4097. .HasColumnType("varchar(6)")
  4098. .HasCharSet("utf8")
  4099. .HasCollation("utf8_general_ci");
  4100. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4101. entity.Property(e => e.UpdateMan)
  4102. .HasColumnType("varchar(50)")
  4103. .HasCharSet("utf8")
  4104. .HasCollation("utf8_general_ci");
  4105. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4106. entity.Property(e => e.Version).HasColumnType("int(11)");
  4107. });
  4108. modelBuilder.Entity<OpenSnSnapshot>(entity =>
  4109. {
  4110. entity.Property(e => e.Id).HasColumnType("int(11)");
  4111. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4112. entity.Property(e => e.BuySnNum).HasColumnType("int(11)");
  4113. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4114. entity.Property(e => e.CreateMan)
  4115. .HasColumnType("varchar(50)")
  4116. .HasCharSet("utf8")
  4117. .HasCollation("utf8_general_ci");
  4118. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  4119. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  4120. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  4121. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  4122. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  4123. entity.Property(e => e.FailReason)
  4124. .HasColumnType("varchar(128)")
  4125. .HasCharSet("utf8")
  4126. .HasCollation("utf8_general_ci");
  4127. entity.Property(e => e.MerNo)
  4128. .HasColumnType("varchar(32)")
  4129. .HasCharSet("utf8")
  4130. .HasCollation("utf8_general_ci");
  4131. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  4132. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4133. entity.Property(e => e.OpenDetailRec)
  4134. .HasColumnType("varchar(32)")
  4135. .HasCharSet("utf8")
  4136. .HasCollation("utf8_general_ci");
  4137. entity.Property(e => e.OpenRewardNo)
  4138. .HasColumnType("varchar(32)")
  4139. .HasCharSet("utf8")
  4140. .HasCollation("utf8_general_ci");
  4141. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4142. entity.Property(e => e.Remark)
  4143. .HasColumnType("varchar(128)")
  4144. .HasCharSet("utf8")
  4145. .HasCollation("utf8_general_ci");
  4146. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  4147. entity.Property(e => e.RewardDesc)
  4148. .HasColumnType("varchar(128)")
  4149. .HasCharSet("utf8")
  4150. .HasCollation("utf8_general_ci");
  4151. entity.Property(e => e.RewardTips)
  4152. .HasColumnType("varchar(16)")
  4153. .HasCharSet("utf8")
  4154. .HasCollation("utf8_general_ci");
  4155. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  4156. entity.Property(e => e.SeoDescription)
  4157. .HasColumnType("varchar(500)")
  4158. .HasCharSet("utf8")
  4159. .HasCollation("utf8_general_ci");
  4160. entity.Property(e => e.SeoKeyword)
  4161. .HasColumnType("varchar(200)")
  4162. .HasCharSet("utf8")
  4163. .HasCollation("utf8_general_ci");
  4164. entity.Property(e => e.SeoTitle)
  4165. .HasColumnType("varchar(100)")
  4166. .HasCharSet("utf8")
  4167. .HasCollation("utf8_general_ci");
  4168. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  4169. entity.Property(e => e.SnNo)
  4170. .HasColumnType("varchar(32)")
  4171. .HasCharSet("utf8")
  4172. .HasCollation("utf8_general_ci");
  4173. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  4174. entity.Property(e => e.SnType).HasColumnType("int(11)");
  4175. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4176. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  4177. entity.Property(e => e.Status).HasColumnType("int(11)");
  4178. entity.Property(e => e.StdBuySnNum).HasColumnType("int(11)");
  4179. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4180. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  4181. entity.Property(e => e.TradeMonth)
  4182. .HasColumnType("varchar(6)")
  4183. .HasCharSet("utf8")
  4184. .HasCollation("utf8_general_ci");
  4185. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4186. entity.Property(e => e.UpdateMan)
  4187. .HasColumnType("varchar(50)")
  4188. .HasCharSet("utf8")
  4189. .HasCollation("utf8_general_ci");
  4190. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4191. entity.Property(e => e.UserNav)
  4192. .HasColumnType("varchar(300)")
  4193. .HasCharSet("utf8")
  4194. .HasCollation("utf8_general_ci");
  4195. entity.Property(e => e.Version).HasColumnType("int(11)");
  4196. });
  4197. modelBuilder.Entity<OperateLog>(entity =>
  4198. {
  4199. entity.Property(e => e.Id).HasColumnType("int(11)");
  4200. entity.Property(e => e.AfterOperate)
  4201. .HasColumnType("mediumtext")
  4202. .HasCharSet("utf8")
  4203. .HasCollation("utf8_general_ci");
  4204. entity.Property(e => e.BeforeOperate)
  4205. .HasColumnType("mediumtext")
  4206. .HasCharSet("utf8")
  4207. .HasCollation("utf8_general_ci");
  4208. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4209. entity.Property(e => e.CreateMan)
  4210. .HasColumnType("varchar(50)")
  4211. .HasCharSet("utf8")
  4212. .HasCollation("utf8_general_ci");
  4213. entity.Property(e => e.OpMode)
  4214. .HasColumnType("varchar(30)")
  4215. .HasCharSet("utf8")
  4216. .HasCollation("utf8_general_ci");
  4217. entity.Property(e => e.OperateMan)
  4218. .HasColumnType("varchar(50)")
  4219. .HasCharSet("utf8")
  4220. .HasCollation("utf8_general_ci");
  4221. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4222. entity.Property(e => e.SeoDescription)
  4223. .HasColumnType("varchar(500)")
  4224. .HasCharSet("utf8")
  4225. .HasCollation("utf8_general_ci");
  4226. entity.Property(e => e.SeoKeyword)
  4227. .HasColumnType("varchar(200)")
  4228. .HasCharSet("utf8")
  4229. .HasCollation("utf8_general_ci");
  4230. entity.Property(e => e.SeoTitle)
  4231. .HasColumnType("varchar(100)")
  4232. .HasCharSet("utf8")
  4233. .HasCollation("utf8_general_ci");
  4234. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4235. entity.Property(e => e.Status).HasColumnType("int(11)");
  4236. entity.Property(e => e.TableEnName)
  4237. .HasColumnType("varchar(50)")
  4238. .HasCharSet("utf8")
  4239. .HasCollation("utf8_general_ci");
  4240. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4241. entity.Property(e => e.UpdateMan)
  4242. .HasColumnType("varchar(50)")
  4243. .HasCharSet("utf8")
  4244. .HasCollation("utf8_general_ci");
  4245. entity.Property(e => e.Version).HasColumnType("int(11)");
  4246. });
  4247. modelBuilder.Entity<OperateRightList>(entity =>
  4248. {
  4249. entity.Property(e => e.Id).HasColumnType("int(11)");
  4250. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4251. entity.Property(e => e.CreateMan)
  4252. .HasColumnType("varchar(50)")
  4253. .HasCharSet("utf8")
  4254. .HasCollation("utf8_general_ci");
  4255. entity.Property(e => e.EnName)
  4256. .HasColumnType("varchar(50)")
  4257. .HasCharSet("utf8")
  4258. .HasCollation("utf8_general_ci");
  4259. entity.Property(e => e.Name)
  4260. .HasColumnType("varchar(50)")
  4261. .HasCharSet("utf8")
  4262. .HasCollation("utf8_general_ci");
  4263. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4264. entity.Property(e => e.SeoDescription)
  4265. .HasColumnType("varchar(500)")
  4266. .HasCharSet("utf8")
  4267. .HasCollation("utf8_general_ci");
  4268. entity.Property(e => e.SeoKeyword)
  4269. .HasColumnType("varchar(200)")
  4270. .HasCharSet("utf8")
  4271. .HasCollation("utf8_general_ci");
  4272. entity.Property(e => e.SeoTitle)
  4273. .HasColumnType("varchar(100)")
  4274. .HasCharSet("utf8")
  4275. .HasCollation("utf8_general_ci");
  4276. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4277. entity.Property(e => e.Status).HasColumnType("int(11)");
  4278. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4279. entity.Property(e => e.UpdateMan)
  4280. .HasColumnType("varchar(50)")
  4281. .HasCharSet("utf8")
  4282. .HasCollation("utf8_general_ci");
  4283. entity.Property(e => e.Version).HasColumnType("int(11)");
  4284. });
  4285. modelBuilder.Entity<OrderForNo>(entity =>
  4286. {
  4287. entity.HasKey(e => e.OrderNo)
  4288. .HasName("PRIMARY");
  4289. entity.Property(e => e.OrderNo)
  4290. .HasColumnType("varchar(50)")
  4291. .HasCharSet("utf8")
  4292. .HasCollation("utf8_general_ci");
  4293. entity.Property(e => e.OrderIds)
  4294. .HasColumnType("varchar(50)")
  4295. .HasCharSet("utf8")
  4296. .HasCollation("utf8_general_ci");
  4297. entity.Property(e => e.RspCode).HasColumnType("int(11)");
  4298. entity.Property(e => e.RspMsg)
  4299. .HasColumnType("varchar(500)")
  4300. .HasCharSet("utf8")
  4301. .HasCollation("utf8_general_ci");
  4302. });
  4303. modelBuilder.Entity<OrderProduct>(entity =>
  4304. {
  4305. entity.Property(e => e.Id).HasColumnType("int(11)");
  4306. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4307. entity.Property(e => e.CreateMan)
  4308. .HasColumnType("varchar(50)")
  4309. .HasCharSet("utf8")
  4310. .HasCollation("utf8_general_ci");
  4311. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4312. entity.Property(e => e.NormDetail)
  4313. .HasColumnType("varchar(200)")
  4314. .HasCharSet("utf8")
  4315. .HasCollation("utf8_general_ci");
  4316. entity.Property(e => e.NormId)
  4317. .HasColumnType("varchar(50)")
  4318. .HasCharSet("utf8")
  4319. .HasCollation("utf8_general_ci");
  4320. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4321. entity.Property(e => e.ProductCode)
  4322. .HasColumnType("varchar(30)")
  4323. .HasCharSet("utf8")
  4324. .HasCollation("utf8_general_ci");
  4325. entity.Property(e => e.ProductCount).HasColumnType("int(11)");
  4326. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4327. entity.Property(e => e.ProductIntegral).HasColumnType("decimal(18,2)");
  4328. entity.Property(e => e.ProductName)
  4329. .HasColumnType("varchar(100)")
  4330. .HasCharSet("utf8")
  4331. .HasCollation("utf8_general_ci");
  4332. entity.Property(e => e.ProductPhoto)
  4333. .HasColumnType("varchar(200)")
  4334. .HasCharSet("utf8")
  4335. .HasCollation("utf8_general_ci");
  4336. entity.Property(e => e.ProductPrice).HasColumnType("decimal(18,2)");
  4337. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4338. entity.Property(e => e.SeoDescription)
  4339. .HasColumnType("varchar(500)")
  4340. .HasCharSet("utf8")
  4341. .HasCollation("utf8_general_ci");
  4342. entity.Property(e => e.SeoKeyword)
  4343. .HasColumnType("varchar(200)")
  4344. .HasCharSet("utf8")
  4345. .HasCollation("utf8_general_ci");
  4346. entity.Property(e => e.SeoTitle)
  4347. .HasColumnType("varchar(100)")
  4348. .HasCharSet("utf8")
  4349. .HasCollation("utf8_general_ci");
  4350. entity.Property(e => e.SnNos)
  4351. .HasColumnType("mediumtext")
  4352. .HasCharSet("utf8")
  4353. .HasCollation("utf8_general_ci");
  4354. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4355. entity.Property(e => e.Status).HasColumnType("int(11)");
  4356. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4357. entity.Property(e => e.TotalIntegral).HasColumnType("decimal(18,2)");
  4358. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4359. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4360. entity.Property(e => e.UpdateMan)
  4361. .HasColumnType("varchar(50)")
  4362. .HasCharSet("utf8")
  4363. .HasCollation("utf8_general_ci");
  4364. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4365. entity.Property(e => e.Version).HasColumnType("int(11)");
  4366. });
  4367. modelBuilder.Entity<OrderRefund>(entity =>
  4368. {
  4369. entity.Property(e => e.Id).HasColumnType("int(11)");
  4370. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  4371. entity.Property(e => e.Contents)
  4372. .HasColumnType("longtext")
  4373. .HasCharSet("utf8")
  4374. .HasCollation("utf8_general_ci");
  4375. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4376. entity.Property(e => e.CreateMan)
  4377. .HasColumnType("varchar(50)")
  4378. .HasCharSet("utf8")
  4379. .HasCollation("utf8_general_ci");
  4380. entity.Property(e => e.ErpCode)
  4381. .HasColumnType("varchar(50)")
  4382. .HasCharSet("utf8")
  4383. .HasCollation("utf8_general_ci");
  4384. entity.Property(e => e.ErpCompany).HasColumnType("int(11)");
  4385. entity.Property(e => e.GoodStatus).HasColumnType("int(11)");
  4386. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4387. entity.Property(e => e.Mobile)
  4388. .HasColumnType("varchar(11)")
  4389. .HasCharSet("utf8")
  4390. .HasCollation("utf8_general_ci");
  4391. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4392. entity.Property(e => e.Photos)
  4393. .HasColumnType("varchar(500)")
  4394. .HasCharSet("utf8")
  4395. .HasCollation("utf8_general_ci");
  4396. entity.Property(e => e.ProductId)
  4397. .HasColumnType("varchar(50)")
  4398. .HasCharSet("utf8")
  4399. .HasCollation("utf8_general_ci");
  4400. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4401. entity.Property(e => e.Reason).HasColumnType("int(11)");
  4402. entity.Property(e => e.SeoDescription)
  4403. .HasColumnType("varchar(500)")
  4404. .HasCharSet("utf8")
  4405. .HasCollation("utf8_general_ci");
  4406. entity.Property(e => e.SeoKeyword)
  4407. .HasColumnType("varchar(200)")
  4408. .HasCharSet("utf8")
  4409. .HasCollation("utf8_general_ci");
  4410. entity.Property(e => e.SeoTitle)
  4411. .HasColumnType("varchar(100)")
  4412. .HasCharSet("utf8")
  4413. .HasCollation("utf8_general_ci");
  4414. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4415. entity.Property(e => e.Status).HasColumnType("int(11)");
  4416. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4417. entity.Property(e => e.UpdateMan)
  4418. .HasColumnType("varchar(50)")
  4419. .HasCharSet("utf8")
  4420. .HasCollation("utf8_general_ci");
  4421. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4422. entity.Property(e => e.Version).HasColumnType("int(11)");
  4423. });
  4424. modelBuilder.Entity<OrderRefundReason>(entity =>
  4425. {
  4426. entity.Property(e => e.Id).HasColumnType("int(11)");
  4427. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4428. entity.Property(e => e.CreateMan)
  4429. .HasColumnType("varchar(50)")
  4430. .HasCharSet("utf8")
  4431. .HasCollation("utf8_general_ci");
  4432. entity.Property(e => e.Name)
  4433. .HasColumnType("varchar(50)")
  4434. .HasCharSet("utf8")
  4435. .HasCollation("utf8_general_ci");
  4436. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4437. entity.Property(e => e.SeoDescription)
  4438. .HasColumnType("varchar(500)")
  4439. .HasCharSet("utf8")
  4440. .HasCollation("utf8_general_ci");
  4441. entity.Property(e => e.SeoKeyword)
  4442. .HasColumnType("varchar(200)")
  4443. .HasCharSet("utf8")
  4444. .HasCollation("utf8_general_ci");
  4445. entity.Property(e => e.SeoTitle)
  4446. .HasColumnType("varchar(100)")
  4447. .HasCharSet("utf8")
  4448. .HasCollation("utf8_general_ci");
  4449. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4450. entity.Property(e => e.Status).HasColumnType("int(11)");
  4451. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4452. entity.Property(e => e.UpdateMan)
  4453. .HasColumnType("varchar(50)")
  4454. .HasCharSet("utf8")
  4455. .HasCollation("utf8_general_ci");
  4456. entity.Property(e => e.Version).HasColumnType("int(11)");
  4457. });
  4458. modelBuilder.Entity<Orders>(entity =>
  4459. {
  4460. entity.Property(e => e.Id).HasColumnType("int(11)");
  4461. entity.Property(e => e.ActualPay).HasColumnType("decimal(18,2)");
  4462. entity.Property(e => e.Address)
  4463. .HasColumnType("varchar(50)")
  4464. .HasCharSet("utf8")
  4465. .HasCollation("utf8_general_ci");
  4466. entity.Property(e => e.Areas)
  4467. .HasColumnType("varchar(30)")
  4468. .HasCharSet("utf8")
  4469. .HasCollation("utf8_general_ci");
  4470. entity.Property(e => e.AutoConfirmDate).HasColumnType("datetime");
  4471. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4472. entity.Property(e => e.ChannelAmount).HasColumnType("decimal(18,2)");
  4473. entity.Property(e => e.ConfirmDate).HasColumnType("datetime");
  4474. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  4475. entity.Property(e => e.CouponMoney).HasColumnType("decimal(18,2)");
  4476. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4477. entity.Property(e => e.CreateMan)
  4478. .HasColumnType("varchar(50)")
  4479. .HasCharSet("utf8")
  4480. .HasCollation("utf8_general_ci");
  4481. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  4482. entity.Property(e => e.ErpCode)
  4483. .HasColumnType("varchar(50)")
  4484. .HasCharSet("utf8")
  4485. .HasCollation("utf8_general_ci");
  4486. entity.Property(e => e.ErpMode).HasColumnType("int(11)");
  4487. entity.Property(e => e.ErpName)
  4488. .HasColumnType("varchar(50)")
  4489. .HasCharSet("utf8")
  4490. .HasCollation("utf8_general_ci");
  4491. entity.Property(e => e.ErpPrice).HasColumnType("decimal(18,2)");
  4492. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4493. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4494. entity.Property(e => e.Mobile)
  4495. .HasColumnType("varchar(11)")
  4496. .HasCharSet("utf8")
  4497. .HasCollation("utf8_general_ci");
  4498. entity.Property(e => e.OrderNo)
  4499. .HasColumnType("varchar(30)")
  4500. .HasCharSet("utf8")
  4501. .HasCollation("utf8_general_ci");
  4502. entity.Property(e => e.ParentOrderId).HasColumnType("int(11)");
  4503. entity.Property(e => e.PayDate).HasColumnType("datetime");
  4504. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  4505. entity.Property(e => e.PayStatus).HasColumnType("int(11)");
  4506. entity.Property(e => e.PostalCode)
  4507. .HasColumnType("varchar(6)")
  4508. .HasCharSet("utf8")
  4509. .HasCollation("utf8_general_ci");
  4510. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4511. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4512. entity.Property(e => e.RealName)
  4513. .HasColumnType("varchar(10)")
  4514. .HasCharSet("utf8")
  4515. .HasCollation("utf8_general_ci");
  4516. entity.Property(e => e.RefundActAmount).HasColumnType("decimal(18,2)");
  4517. entity.Property(e => e.RefundFeeAmount).HasColumnType("decimal(18,2)");
  4518. entity.Property(e => e.RefundReason)
  4519. .HasColumnType("varchar(64)")
  4520. .HasCharSet("utf8")
  4521. .HasCollation("utf8_general_ci");
  4522. entity.Property(e => e.RefundStatus).HasColumnType("int(11)");
  4523. entity.Property(e => e.Remark)
  4524. .HasColumnType("varchar(64)")
  4525. .HasCharSet("utf8")
  4526. .HasCollation("utf8_general_ci");
  4527. entity.Property(e => e.ReqData)
  4528. .HasColumnType("varchar(2048)")
  4529. .HasCharSet("utf8")
  4530. .HasCollation("utf8_general_ci");
  4531. entity.Property(e => e.ResData)
  4532. .HasColumnType("varchar(2048)")
  4533. .HasCharSet("utf8")
  4534. .HasCollation("utf8_general_ci");
  4535. entity.Property(e => e.ReturnCode)
  4536. .HasColumnType("varchar(32)")
  4537. .HasCharSet("utf8")
  4538. .HasCollation("utf8_general_ci");
  4539. entity.Property(e => e.ReturnMsg)
  4540. .HasColumnType("varchar(128)")
  4541. .HasCharSet("utf8")
  4542. .HasCollation("utf8_general_ci");
  4543. entity.Property(e => e.SendDate).HasColumnType("datetime");
  4544. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  4545. entity.Property(e => e.SeoDescription)
  4546. .HasColumnType("varchar(500)")
  4547. .HasCharSet("utf8")
  4548. .HasCollation("utf8_general_ci");
  4549. entity.Property(e => e.SeoKeyword)
  4550. .HasColumnType("varchar(200)")
  4551. .HasCharSet("utf8")
  4552. .HasCollation("utf8_general_ci");
  4553. entity.Property(e => e.SeoTitle)
  4554. .HasColumnType("varchar(100)")
  4555. .HasCharSet("utf8")
  4556. .HasCollation("utf8_general_ci");
  4557. entity.Property(e => e.SnNos)
  4558. .HasColumnType("mediumtext")
  4559. .HasCharSet("utf8")
  4560. .HasCollation("utf8_general_ci");
  4561. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4562. entity.Property(e => e.Status).HasColumnType("int(11)");
  4563. entity.Property(e => e.StoreContact)
  4564. .HasColumnType("varchar(30)")
  4565. .HasCharSet("utf8")
  4566. .HasCollation("utf8_general_ci");
  4567. entity.Property(e => e.StoreContactMobile)
  4568. .HasColumnType("varchar(11)")
  4569. .HasCharSet("utf8")
  4570. .HasCollation("utf8_general_ci");
  4571. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4572. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  4573. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  4574. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4575. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4576. entity.Property(e => e.TradeNo)
  4577. .HasColumnType("varchar(50)")
  4578. .HasCharSet("utf8")
  4579. .HasCollation("utf8_general_ci");
  4580. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4581. entity.Property(e => e.UpdateMan)
  4582. .HasColumnType("varchar(50)")
  4583. .HasCharSet("utf8")
  4584. .HasCollation("utf8_general_ci");
  4585. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4586. entity.Property(e => e.UserMessage)
  4587. .HasColumnType("varchar(50)")
  4588. .HasCharSet("utf8")
  4589. .HasCollation("utf8_general_ci");
  4590. entity.Property(e => e.Version).HasColumnType("int(11)");
  4591. });
  4592. modelBuilder.Entity<PageInfo>(entity =>
  4593. {
  4594. entity.Property(e => e.Id).HasColumnType("int(11)");
  4595. entity.Property(e => e.ColId)
  4596. .HasColumnType("varchar(30)")
  4597. .HasCharSet("utf8")
  4598. .HasCollation("utf8_general_ci");
  4599. entity.Property(e => e.Contents)
  4600. .HasColumnType("longtext")
  4601. .HasCharSet("utf8")
  4602. .HasCollation("utf8_general_ci");
  4603. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4604. entity.Property(e => e.CreateMan)
  4605. .HasColumnType("varchar(50)")
  4606. .HasCharSet("utf8")
  4607. .HasCollation("utf8_general_ci");
  4608. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4609. entity.Property(e => e.SeoDescription)
  4610. .HasColumnType("varchar(500)")
  4611. .HasCharSet("utf8")
  4612. .HasCollation("utf8_general_ci");
  4613. entity.Property(e => e.SeoKeyword)
  4614. .HasColumnType("varchar(200)")
  4615. .HasCharSet("utf8")
  4616. .HasCollation("utf8_general_ci");
  4617. entity.Property(e => e.SeoTitle)
  4618. .HasColumnType("varchar(100)")
  4619. .HasCharSet("utf8")
  4620. .HasCollation("utf8_general_ci");
  4621. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4622. entity.Property(e => e.Status).HasColumnType("int(11)");
  4623. entity.Property(e => e.Title)
  4624. .HasColumnType("varchar(200)")
  4625. .HasCharSet("utf8")
  4626. .HasCollation("utf8_general_ci");
  4627. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4628. entity.Property(e => e.UpdateMan)
  4629. .HasColumnType("varchar(50)")
  4630. .HasCharSet("utf8")
  4631. .HasCollation("utf8_general_ci");
  4632. entity.Property(e => e.Version).HasColumnType("int(11)");
  4633. });
  4634. modelBuilder.Entity<PageUpdateInfo>(entity =>
  4635. {
  4636. entity.Property(e => e.Id).HasColumnType("int(11)");
  4637. entity.Property(e => e.BgColor)
  4638. .HasColumnType("varchar(6)")
  4639. .HasCharSet("utf8")
  4640. .HasCollation("utf8_general_ci");
  4641. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4642. entity.Property(e => e.CreateMan)
  4643. .HasColumnType("varchar(50)")
  4644. .HasCharSet("utf8")
  4645. .HasCollation("utf8_general_ci");
  4646. entity.Property(e => e.GotoPages)
  4647. .HasColumnType("varchar(500)")
  4648. .HasCharSet("utf8")
  4649. .HasCollation("utf8_general_ci");
  4650. entity.Property(e => e.IsScrollBar)
  4651. .HasColumnType("bit(1)")
  4652. .HasDefaultValueSql("b'0'");
  4653. entity.Property(e => e.IsSkid)
  4654. .HasColumnType("bit(1)")
  4655. .HasDefaultValueSql("b'0'");
  4656. entity.Property(e => e.LeftAction1)
  4657. .HasColumnType("longtext")
  4658. .HasCharSet("utf8")
  4659. .HasCollation("utf8_general_ci");
  4660. entity.Property(e => e.LeftAction2)
  4661. .HasColumnType("longtext")
  4662. .HasCharSet("utf8")
  4663. .HasCollation("utf8_general_ci");
  4664. entity.Property(e => e.LeftBtn1)
  4665. .HasColumnType("varchar(100)")
  4666. .HasCharSet("utf8")
  4667. .HasCollation("utf8_general_ci");
  4668. entity.Property(e => e.LeftBtn2)
  4669. .HasColumnType("varchar(50)")
  4670. .HasCharSet("utf8")
  4671. .HasCollation("utf8_general_ci");
  4672. entity.Property(e => e.ModulePath)
  4673. .HasColumnType("varchar(200)")
  4674. .HasCharSet("utf8")
  4675. .HasCollation("utf8_general_ci");
  4676. entity.Property(e => e.ModuleVersion).HasColumnType("int(11)");
  4677. entity.Property(e => e.MustUpdate)
  4678. .HasColumnType("bit(1)")
  4679. .HasDefaultValueSql("b'0'");
  4680. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4681. entity.Property(e => e.RightAction1)
  4682. .HasColumnType("longtext")
  4683. .HasCharSet("utf8")
  4684. .HasCollation("utf8_general_ci");
  4685. entity.Property(e => e.RightAction2)
  4686. .HasColumnType("longtext")
  4687. .HasCharSet("utf8")
  4688. .HasCollation("utf8_general_ci");
  4689. entity.Property(e => e.RightBtn1)
  4690. .HasColumnType("varchar(50)")
  4691. .HasCharSet("utf8")
  4692. .HasCollation("utf8_general_ci");
  4693. entity.Property(e => e.RightBtn2)
  4694. .HasColumnType("varchar(50)")
  4695. .HasCharSet("utf8")
  4696. .HasCollation("utf8_general_ci");
  4697. entity.Property(e => e.SeoDescription)
  4698. .HasColumnType("varchar(500)")
  4699. .HasCharSet("utf8")
  4700. .HasCollation("utf8_general_ci");
  4701. entity.Property(e => e.SeoKeyword)
  4702. .HasColumnType("varchar(200)")
  4703. .HasCharSet("utf8")
  4704. .HasCollation("utf8_general_ci");
  4705. entity.Property(e => e.SeoTitle)
  4706. .HasColumnType("varchar(100)")
  4707. .HasCharSet("utf8")
  4708. .HasCollation("utf8_general_ci");
  4709. entity.Property(e => e.ShowTitle)
  4710. .HasColumnType("bit(1)")
  4711. .HasDefaultValueSql("b'0'");
  4712. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4713. entity.Property(e => e.Status).HasColumnType("int(11)");
  4714. entity.Property(e => e.StatusBarStyle)
  4715. .HasColumnType("varchar(10)")
  4716. .HasCharSet("utf8")
  4717. .HasCollation("utf8_general_ci");
  4718. entity.Property(e => e.TextColor)
  4719. .HasColumnType("varchar(6)")
  4720. .HasCharSet("utf8")
  4721. .HasCollation("utf8_general_ci");
  4722. entity.Property(e => e.Title)
  4723. .HasColumnType("varchar(50)")
  4724. .HasCharSet("utf8")
  4725. .HasCollation("utf8_general_ci");
  4726. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4727. entity.Property(e => e.UpdateMan)
  4728. .HasColumnType("varchar(50)")
  4729. .HasCharSet("utf8")
  4730. .HasCollation("utf8_general_ci");
  4731. entity.Property(e => e.Version).HasColumnType("int(11)");
  4732. });
  4733. modelBuilder.Entity<PosCouponForUser>(entity =>
  4734. {
  4735. entity.Property(e => e.Id).HasColumnType("int(11)");
  4736. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4737. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  4738. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4739. entity.Property(e => e.SeoDescription)
  4740. .HasColumnType("varchar(500)")
  4741. .HasCharSet("utf8")
  4742. .HasCollation("utf8_general_ci");
  4743. entity.Property(e => e.SeoKeyword)
  4744. .HasColumnType("varchar(200)")
  4745. .HasCharSet("utf8")
  4746. .HasCollation("utf8_general_ci");
  4747. entity.Property(e => e.SeoTitle)
  4748. .HasColumnType("varchar(100)")
  4749. .HasCharSet("utf8")
  4750. .HasCollation("utf8_general_ci");
  4751. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4752. entity.Property(e => e.Status).HasColumnType("int(11)");
  4753. entity.Property(e => e.StockNum).HasColumnType("int(11)");
  4754. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  4755. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4756. });
  4757. modelBuilder.Entity<PosCouponOrders>(entity =>
  4758. {
  4759. entity.Property(e => e.Id).HasColumnType("int(11)");
  4760. entity.Property(e => e.AfterOut).HasColumnType("int(11)");
  4761. entity.Property(e => e.AfterStock).HasColumnType("int(11)");
  4762. entity.Property(e => e.AfterTotal).HasColumnType("int(11)");
  4763. entity.Property(e => e.BeforeOut).HasColumnType("int(11)");
  4764. entity.Property(e => e.BeforeStock).HasColumnType("int(11)");
  4765. entity.Property(e => e.BeforeTotal).HasColumnType("int(11)");
  4766. entity.Property(e => e.ChangeCount).HasColumnType("int(11)");
  4767. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  4768. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4769. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  4770. entity.Property(e => e.OrderNo)
  4771. .HasColumnType("varchar(50)")
  4772. .HasCharSet("utf8")
  4773. .HasCollation("utf8_general_ci");
  4774. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4775. entity.Property(e => e.SeoDescription)
  4776. .HasColumnType("varchar(500)")
  4777. .HasCharSet("utf8")
  4778. .HasCollation("utf8_general_ci");
  4779. entity.Property(e => e.SeoKeyword)
  4780. .HasColumnType("varchar(200)")
  4781. .HasCharSet("utf8")
  4782. .HasCollation("utf8_general_ci");
  4783. entity.Property(e => e.SeoTitle)
  4784. .HasColumnType("varchar(100)")
  4785. .HasCharSet("utf8")
  4786. .HasCollation("utf8_general_ci");
  4787. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4788. entity.Property(e => e.Status).HasColumnType("int(11)");
  4789. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  4790. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4791. });
  4792. modelBuilder.Entity<PosCouponRecord>(entity =>
  4793. {
  4794. entity.Property(e => e.Id).HasColumnType("int(11)");
  4795. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  4796. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4797. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  4798. entity.Property(e => e.OrderNo)
  4799. .HasColumnType("varchar(50)")
  4800. .HasCharSet("utf8")
  4801. .HasCollation("utf8_general_ci");
  4802. entity.Property(e => e.PosCouponId).HasColumnType("int(11)");
  4803. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4804. entity.Property(e => e.SeoDescription)
  4805. .HasColumnType("varchar(500)")
  4806. .HasCharSet("utf8")
  4807. .HasCollation("utf8_general_ci");
  4808. entity.Property(e => e.SeoKeyword)
  4809. .HasColumnType("varchar(200)")
  4810. .HasCharSet("utf8")
  4811. .HasCollation("utf8_general_ci");
  4812. entity.Property(e => e.SeoTitle)
  4813. .HasColumnType("varchar(100)")
  4814. .HasCharSet("utf8")
  4815. .HasCollation("utf8_general_ci");
  4816. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4817. entity.Property(e => e.Status).HasColumnType("int(11)");
  4818. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  4819. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4820. });
  4821. modelBuilder.Entity<PosCoupons>(entity =>
  4822. {
  4823. entity.Property(e => e.Id).HasColumnType("int(11)");
  4824. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4825. entity.Property(e => e.ExchangeCode)
  4826. .HasColumnType("varchar(10)")
  4827. .HasCharSet("utf8")
  4828. .HasCollation("utf8_general_ci");
  4829. entity.Property(e => e.IsLock)
  4830. .HasColumnType("bit(1)")
  4831. .HasDefaultValueSql("b'0'");
  4832. entity.Property(e => e.IsUse)
  4833. .HasColumnType("bit(1)")
  4834. .HasDefaultValueSql("b'0'");
  4835. entity.Property(e => e.LeaderUserId).HasColumnType("int(11)");
  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.UpdateDate).HasColumnType("datetime");
  4852. entity.Property(e => e.UseDate).HasColumnType("datetime");
  4853. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4854. });
  4855. modelBuilder.Entity<PosMachines>(entity =>
  4856. {
  4857. entity.Property(e => e.Id).HasColumnType("int(11)");
  4858. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4859. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4860. entity.Property(e => e.ActivityList)
  4861. .HasColumnType("varchar(200)")
  4862. .HasCharSet("utf8")
  4863. .HasCollation("utf8_general_ci");
  4864. entity.Property(e => e.BatchNo)
  4865. .HasColumnType("varchar(32)")
  4866. .HasCharSet("utf8")
  4867. .HasCollation("utf8_general_ci");
  4868. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4869. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4870. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4871. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4872. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4873. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4874. entity.Property(e => e.CreateMan)
  4875. .HasColumnType("varchar(50)")
  4876. .HasCharSet("utf8")
  4877. .HasCollation("utf8_general_ci");
  4878. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4879. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4880. entity.Property(e => e.Detail)
  4881. .HasColumnType("longtext")
  4882. .HasCharSet("utf8")
  4883. .HasCollation("utf8_general_ci");
  4884. entity.Property(e => e.DeviceKind)
  4885. .HasColumnType("varchar(32)")
  4886. .HasCharSet("utf8")
  4887. .HasCollation("utf8_general_ci");
  4888. entity.Property(e => e.DeviceName)
  4889. .HasColumnType("varchar(32)")
  4890. .HasCharSet("utf8")
  4891. .HasCollation("utf8_general_ci");
  4892. entity.Property(e => e.DeviceType)
  4893. .HasColumnType("varchar(20)")
  4894. .HasCharSet("utf8")
  4895. .HasCollation("utf8_general_ci");
  4896. entity.Property(e => e.IsPurchase)
  4897. .HasColumnType("bit(1)")
  4898. .HasDefaultValueSql("b'0'");
  4899. entity.Property(e => e.IsVip)
  4900. .HasColumnType("bit(1)")
  4901. .HasDefaultValueSql("b'0'");
  4902. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4903. entity.Property(e => e.PosSn)
  4904. .HasColumnType("varchar(50)")
  4905. .HasCharSet("utf8")
  4906. .HasCollation("utf8_general_ci");
  4907. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4908. entity.Property(e => e.PrizeParams)
  4909. .HasColumnType("varchar(200)")
  4910. .HasCharSet("utf8")
  4911. .HasCollation("utf8_general_ci");
  4912. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4913. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4914. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4915. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4916. entity.Property(e => e.SeoDescription)
  4917. .HasColumnType("varchar(500)")
  4918. .HasCharSet("utf8")
  4919. .HasCollation("utf8_general_ci");
  4920. entity.Property(e => e.SeoKeyword)
  4921. .HasColumnType("varchar(200)")
  4922. .HasCharSet("utf8")
  4923. .HasCollation("utf8_general_ci");
  4924. entity.Property(e => e.SeoTitle)
  4925. .HasColumnType("varchar(100)")
  4926. .HasCharSet("utf8")
  4927. .HasCollation("utf8_general_ci");
  4928. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4929. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4930. entity.Property(e => e.Status).HasColumnType("int(11)");
  4931. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4932. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4933. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4934. entity.Property(e => e.UpdateMan)
  4935. .HasColumnType("varchar(50)")
  4936. .HasCharSet("utf8")
  4937. .HasCollation("utf8_general_ci");
  4938. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4939. entity.Property(e => e.UserNav)
  4940. .HasColumnType("longtext")
  4941. .HasCharSet("utf8")
  4942. .HasCollation("utf8_general_ci");
  4943. entity.Property(e => e.Version).HasColumnType("int(11)");
  4944. });
  4945. modelBuilder.Entity<PosMachinesTwo>(entity =>
  4946. {
  4947. entity.Property(e => e.Id).HasColumnType("int(11)");
  4948. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4949. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4950. entity.Property(e => e.ActivityList)
  4951. .HasColumnType("varchar(200)")
  4952. .HasCharSet("utf8")
  4953. .HasCollation("utf8_general_ci");
  4954. entity.Property(e => e.BatchNo)
  4955. .HasColumnType("varchar(32)")
  4956. .HasCharSet("utf8")
  4957. .HasCollation("utf8_general_ci");
  4958. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4959. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4960. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4961. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4962. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4963. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4964. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4965. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4966. entity.Property(e => e.Detail)
  4967. .HasColumnType("longtext")
  4968. .HasCharSet("utf8")
  4969. .HasCollation("utf8_general_ci");
  4970. entity.Property(e => e.DeviceKind)
  4971. .HasColumnType("varchar(32)")
  4972. .HasCharSet("utf8")
  4973. .HasCollation("utf8_general_ci");
  4974. entity.Property(e => e.DeviceName)
  4975. .HasColumnType("varchar(32)")
  4976. .HasCharSet("utf8")
  4977. .HasCollation("utf8_general_ci");
  4978. entity.Property(e => e.DeviceType)
  4979. .HasColumnType("varchar(20)")
  4980. .HasCharSet("utf8")
  4981. .HasCollation("utf8_general_ci");
  4982. entity.Property(e => e.IsFirst).HasColumnType("int(11)");
  4983. entity.Property(e => e.IsPurchase).HasColumnType("int(11)");
  4984. entity.Property(e => e.IsVip)
  4985. .HasColumnType("bit(1)")
  4986. .HasDefaultValueSql("b'0'");
  4987. entity.Property(e => e.LeaderUserId).HasColumnType("int(11)");
  4988. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4989. entity.Property(e => e.PosSn)
  4990. .HasColumnType("varchar(50)")
  4991. .HasCharSet("utf8")
  4992. .HasCollation("utf8_general_ci");
  4993. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4994. entity.Property(e => e.PreUserId).HasColumnType("int(11)");
  4995. entity.Property(e => e.PrizeParams)
  4996. .HasColumnType("varchar(200)")
  4997. .HasCharSet("utf8")
  4998. .HasCollation("utf8_general_ci");
  4999. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5000. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  5001. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  5002. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  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.SourceStoreId).HasColumnType("int(11)");
  5017. entity.Property(e => e.Status).HasColumnType("int(11)");
  5018. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  5019. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  5020. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5021. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5022. entity.Property(e => e.UserNav)
  5023. .HasColumnType("longtext")
  5024. .HasCharSet("utf8")
  5025. .HasCollation("utf8_general_ci");
  5026. });
  5027. modelBuilder.Entity<PosMerchantInfo>(entity =>
  5028. {
  5029. entity.Property(e => e.Id).HasColumnType("int(11)");
  5030. entity.Property(e => e.ActType).HasColumnType("int(11)");
  5031. entity.Property(e => e.ActTypeDesc)
  5032. .HasColumnType("varchar(64)")
  5033. .HasCharSet("utf8")
  5034. .HasCollation("utf8_general_ci");
  5035. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  5036. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5037. entity.Property(e => e.City)
  5038. .HasColumnType("varchar(32)")
  5039. .HasCharSet("utf8")
  5040. .HasCollation("utf8_general_ci");
  5041. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5042. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  5043. entity.Property(e => e.KqMerNo)
  5044. .HasColumnType("varchar(32)")
  5045. .HasCharSet("utf8")
  5046. .HasCollation("utf8_general_ci");
  5047. entity.Property(e => e.KqRegTime).HasColumnType("datetime");
  5048. entity.Property(e => e.KqSnNo)
  5049. .HasColumnType("varchar(32)")
  5050. .HasCharSet("utf8")
  5051. .HasCollation("utf8_general_ci");
  5052. entity.Property(e => e.MatchTime).HasColumnType("datetime");
  5053. entity.Property(e => e.MerIdcardNo)
  5054. .HasColumnType("varchar(18)")
  5055. .HasCharSet("utf8")
  5056. .HasCollation("utf8_general_ci");
  5057. entity.Property(e => e.MerRealName)
  5058. .HasColumnType("varchar(16)")
  5059. .HasCharSet("utf8")
  5060. .HasCollation("utf8_general_ci");
  5061. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  5062. entity.Property(e => e.MerStatus).HasColumnType("int(11)");
  5063. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  5064. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  5065. entity.Property(e => e.MerchantMobile)
  5066. .HasColumnType("varchar(11)")
  5067. .HasCharSet("utf8")
  5068. .HasCollation("utf8_general_ci");
  5069. entity.Property(e => e.MerchantName)
  5070. .HasColumnType("varchar(32)")
  5071. .HasCharSet("utf8")
  5072. .HasCollation("utf8_general_ci");
  5073. entity.Property(e => e.MerchantNo)
  5074. .HasColumnType("varchar(16)")
  5075. .HasCharSet("utf8")
  5076. .HasCollation("utf8_general_ci");
  5077. entity.Property(e => e.MgrName)
  5078. .HasColumnType("varchar(32)")
  5079. .HasCharSet("utf8")
  5080. .HasCollation("utf8_general_ci");
  5081. entity.Property(e => e.MgrNo)
  5082. .HasColumnType("varchar(16)")
  5083. .HasCharSet("utf8")
  5084. .HasCollation("utf8_general_ci");
  5085. entity.Property(e => e.Province)
  5086. .HasColumnType("varchar(32)")
  5087. .HasCharSet("utf8")
  5088. .HasCollation("utf8_general_ci");
  5089. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5090. entity.Property(e => e.RebateQual).HasColumnType("int(11)");
  5091. entity.Property(e => e.Remark)
  5092. .HasColumnType("varchar(64)")
  5093. .HasCharSet("utf8")
  5094. .HasCollation("utf8_general_ci");
  5095. entity.Property(e => e.SeoDescription)
  5096. .HasColumnType("varchar(500)")
  5097. .HasCharSet("utf8")
  5098. .HasCollation("utf8_general_ci");
  5099. entity.Property(e => e.SeoKeyword)
  5100. .HasColumnType("varchar(200)")
  5101. .HasCharSet("utf8")
  5102. .HasCollation("utf8_general_ci");
  5103. entity.Property(e => e.SeoTitle)
  5104. .HasColumnType("varchar(100)")
  5105. .HasCharSet("utf8")
  5106. .HasCollation("utf8_general_ci");
  5107. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  5108. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  5109. entity.Property(e => e.SnType).HasColumnType("int(11)");
  5110. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5111. entity.Property(e => e.Status).HasColumnType("int(11)");
  5112. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  5113. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5114. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5115. });
  5116. modelBuilder.Entity<PosMerchantOtherInfo>(entity =>
  5117. {
  5118. entity.HasKey(e => e.CertId)
  5119. .HasName("PRIMARY");
  5120. entity.Property(e => e.CertId)
  5121. .HasColumnType("varchar(18)")
  5122. .HasCharSet("utf8")
  5123. .HasCollation("utf8_general_ci");
  5124. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5125. entity.Property(e => e.MerNo)
  5126. .HasColumnType("varchar(50)")
  5127. .HasCharSet("utf8")
  5128. .HasCollation("utf8_general_ci");
  5129. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5130. entity.Property(e => e.PrizeFlag1).HasColumnType("int(11)");
  5131. entity.Property(e => e.PrizeFlag2).HasColumnType("int(11)");
  5132. entity.Property(e => e.PrizeFlag3).HasColumnType("int(11)");
  5133. entity.Property(e => e.PrizeFlag4).HasColumnType("int(11)");
  5134. entity.Property(e => e.RealName)
  5135. .HasColumnType("varchar(30)")
  5136. .HasCharSet("utf8")
  5137. .HasCollation("utf8_general_ci");
  5138. });
  5139. modelBuilder.Entity<PosMerchantTradeSummay>(entity =>
  5140. {
  5141. entity.Property(e => e.Id).HasColumnType("int(11)");
  5142. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5143. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5144. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5145. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5146. entity.Property(e => e.SeoDescription)
  5147. .HasColumnType("varchar(500)")
  5148. .HasCharSet("utf8")
  5149. .HasCollation("utf8_general_ci");
  5150. entity.Property(e => e.SeoKeyword)
  5151. .HasColumnType("varchar(200)")
  5152. .HasCharSet("utf8")
  5153. .HasCollation("utf8_general_ci");
  5154. entity.Property(e => e.SeoTitle)
  5155. .HasColumnType("varchar(100)")
  5156. .HasCharSet("utf8")
  5157. .HasCollation("utf8_general_ci");
  5158. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5159. entity.Property(e => e.Status).HasColumnType("int(11)");
  5160. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  5161. entity.Property(e => e.TradeDate)
  5162. .HasColumnType("varchar(8)")
  5163. .HasCharSet("utf8")
  5164. .HasCollation("utf8_general_ci");
  5165. entity.Property(e => e.TradeMonth)
  5166. .HasColumnType("varchar(6)")
  5167. .HasCharSet("utf8")
  5168. .HasCollation("utf8_general_ci");
  5169. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5170. });
  5171. modelBuilder.Entity<PreSendStockDetail>(entity =>
  5172. {
  5173. entity.Property(e => e.Id).HasColumnType("int(11)");
  5174. entity.Property(e => e.ApplyDate).HasColumnType("datetime");
  5175. entity.Property(e => e.ApplyFlag)
  5176. .HasColumnType("bit(1)")
  5177. .HasDefaultValueSql("b'0'");
  5178. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5179. entity.Property(e => e.CancelDate).HasColumnType("datetime");
  5180. entity.Property(e => e.CancelFlag)
  5181. .HasColumnType("bit(1)")
  5182. .HasDefaultValueSql("b'0'");
  5183. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5184. entity.Property(e => e.FromStoreId).HasColumnType("int(11)");
  5185. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  5186. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5187. entity.Property(e => e.SeoDescription)
  5188. .HasColumnType("varchar(500)")
  5189. .HasCharSet("utf8")
  5190. .HasCollation("utf8_general_ci");
  5191. entity.Property(e => e.SeoKeyword)
  5192. .HasColumnType("varchar(200)")
  5193. .HasCharSet("utf8")
  5194. .HasCollation("utf8_general_ci");
  5195. entity.Property(e => e.SeoTitle)
  5196. .HasColumnType("varchar(100)")
  5197. .HasCharSet("utf8")
  5198. .HasCollation("utf8_general_ci");
  5199. entity.Property(e => e.SnId).HasColumnType("int(11)");
  5200. entity.Property(e => e.SnNo)
  5201. .HasColumnType("varchar(32)")
  5202. .HasCharSet("utf8")
  5203. .HasCollation("utf8_general_ci");
  5204. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5205. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  5206. entity.Property(e => e.Status).HasColumnType("int(11)");
  5207. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  5208. entity.Property(e => e.ToRemark)
  5209. .HasColumnType("varchar(64)")
  5210. .HasCharSet("utf8")
  5211. .HasCollation("utf8_general_ci");
  5212. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  5213. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  5214. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5215. });
  5216. modelBuilder.Entity<ProductComment>(entity =>
  5217. {
  5218. entity.Property(e => e.Id).HasColumnType("int(11)");
  5219. entity.Property(e => e.AgreeCount).HasColumnType("int(11)");
  5220. entity.Property(e => e.BackCount).HasColumnType("int(11)");
  5221. entity.Property(e => e.Contents)
  5222. .HasColumnType("varchar(200)")
  5223. .HasCharSet("utf8")
  5224. .HasCollation("utf8_general_ci");
  5225. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5226. entity.Property(e => e.CreateMan)
  5227. .HasColumnType("varchar(50)")
  5228. .HasCharSet("utf8")
  5229. .HasCollation("utf8_general_ci");
  5230. entity.Property(e => e.HasPhoto)
  5231. .HasColumnType("bit(1)")
  5232. .HasDefaultValueSql("b'0'");
  5233. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5234. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  5235. entity.Property(e => e.PhotoList)
  5236. .HasColumnType("mediumtext")
  5237. .HasCharSet("utf8")
  5238. .HasCollation("utf8_general_ci");
  5239. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5240. entity.Property(e => e.ProductNormId).HasColumnType("int(11)");
  5241. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5242. entity.Property(e => e.SeoDescription)
  5243. .HasColumnType("varchar(500)")
  5244. .HasCharSet("utf8")
  5245. .HasCollation("utf8_general_ci");
  5246. entity.Property(e => e.SeoKeyword)
  5247. .HasColumnType("varchar(200)")
  5248. .HasCharSet("utf8")
  5249. .HasCollation("utf8_general_ci");
  5250. entity.Property(e => e.SeoTitle)
  5251. .HasColumnType("varchar(100)")
  5252. .HasCharSet("utf8")
  5253. .HasCollation("utf8_general_ci");
  5254. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5255. entity.Property(e => e.StarNum).HasColumnType("int(11)");
  5256. entity.Property(e => e.Status).HasColumnType("int(11)");
  5257. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5258. entity.Property(e => e.UpdateMan)
  5259. .HasColumnType("varchar(50)")
  5260. .HasCharSet("utf8")
  5261. .HasCollation("utf8_general_ci");
  5262. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5263. entity.Property(e => e.Version).HasColumnType("int(11)");
  5264. });
  5265. modelBuilder.Entity<ProductCommentAgree>(entity =>
  5266. {
  5267. entity.Property(e => e.Id).HasColumnType("int(11)");
  5268. entity.Property(e => e.ProductCommentId).HasColumnType("int(11)");
  5269. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5270. });
  5271. modelBuilder.Entity<ProductFareAreas>(entity =>
  5272. {
  5273. entity.Property(e => e.Id).HasColumnType("int(11)");
  5274. entity.Property(e => e.Areas)
  5275. .HasColumnType("longtext")
  5276. .HasCharSet("utf8")
  5277. .HasCollation("utf8_general_ci");
  5278. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5279. entity.Property(e => e.CreateMan)
  5280. .HasColumnType("varchar(50)")
  5281. .HasCharSet("utf8")
  5282. .HasCollation("utf8_general_ci");
  5283. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  5284. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  5285. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5286. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  5287. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  5288. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5289. entity.Property(e => e.SeoDescription)
  5290. .HasColumnType("varchar(500)")
  5291. .HasCharSet("utf8")
  5292. .HasCollation("utf8_general_ci");
  5293. entity.Property(e => e.SeoKeyword)
  5294. .HasColumnType("varchar(200)")
  5295. .HasCharSet("utf8")
  5296. .HasCollation("utf8_general_ci");
  5297. entity.Property(e => e.SeoTitle)
  5298. .HasColumnType("varchar(100)")
  5299. .HasCharSet("utf8")
  5300. .HasCollation("utf8_general_ci");
  5301. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5302. entity.Property(e => e.Status).HasColumnType("int(11)");
  5303. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  5304. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5305. entity.Property(e => e.UpdateMan)
  5306. .HasColumnType("varchar(50)")
  5307. .HasCharSet("utf8")
  5308. .HasCollation("utf8_general_ci");
  5309. entity.Property(e => e.Version).HasColumnType("int(11)");
  5310. });
  5311. modelBuilder.Entity<ProductFareTemp>(entity =>
  5312. {
  5313. entity.Property(e => e.Id).HasColumnType("int(11)");
  5314. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5315. entity.Property(e => e.CreateMan)
  5316. .HasColumnType("varchar(50)")
  5317. .HasCharSet("utf8")
  5318. .HasCollation("utf8_general_ci");
  5319. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  5320. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  5321. entity.Property(e => e.IsFree)
  5322. .HasColumnType("bit(1)")
  5323. .HasDefaultValueSql("b'0'");
  5324. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5325. entity.Property(e => e.MeterMode).HasColumnType("int(11)");
  5326. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  5327. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  5328. entity.Property(e => e.Name)
  5329. .HasColumnType("varchar(50)")
  5330. .HasCharSet("utf8")
  5331. .HasCollation("utf8_general_ci");
  5332. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5333. entity.Property(e => e.SendAddress)
  5334. .HasColumnType("varchar(50)")
  5335. .HasCharSet("utf8")
  5336. .HasCollation("utf8_general_ci");
  5337. entity.Property(e => e.SendAreas)
  5338. .HasColumnType("varchar(30)")
  5339. .HasCharSet("utf8")
  5340. .HasCollation("utf8_general_ci");
  5341. entity.Property(e => e.SendDate).HasColumnType("int(11)");
  5342. entity.Property(e => e.SeoDescription)
  5343. .HasColumnType("varchar(500)")
  5344. .HasCharSet("utf8")
  5345. .HasCollation("utf8_general_ci");
  5346. entity.Property(e => e.SeoKeyword)
  5347. .HasColumnType("varchar(200)")
  5348. .HasCharSet("utf8")
  5349. .HasCollation("utf8_general_ci");
  5350. entity.Property(e => e.SeoTitle)
  5351. .HasColumnType("varchar(100)")
  5352. .HasCharSet("utf8")
  5353. .HasCollation("utf8_general_ci");
  5354. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5355. entity.Property(e => e.Status).HasColumnType("int(11)");
  5356. entity.Property(e => e.TransportMode).HasColumnType("int(11)");
  5357. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5358. entity.Property(e => e.UpdateMan)
  5359. .HasColumnType("varchar(50)")
  5360. .HasCharSet("utf8")
  5361. .HasCollation("utf8_general_ci");
  5362. entity.Property(e => e.Version).HasColumnType("int(11)");
  5363. });
  5364. modelBuilder.Entity<ProductKeys>(entity =>
  5365. {
  5366. entity.HasKey(e => e.Name)
  5367. .HasName("PRIMARY");
  5368. entity.Property(e => e.Name)
  5369. .HasColumnType("varchar(10)")
  5370. .HasCharSet("utf8")
  5371. .HasCollation("utf8_general_ci");
  5372. entity.Property(e => e.ColIds)
  5373. .HasColumnType("longtext")
  5374. .HasCharSet("utf8")
  5375. .HasCollation("utf8_general_ci");
  5376. entity.Property(e => e.ProductIds)
  5377. .HasColumnType("longtext")
  5378. .HasCharSet("utf8")
  5379. .HasCollation("utf8_general_ci");
  5380. });
  5381. modelBuilder.Entity<ProductNorm>(entity =>
  5382. {
  5383. entity.Property(e => e.Id).HasColumnType("int(11)");
  5384. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5385. entity.Property(e => e.Code)
  5386. .HasColumnType("varchar(50)")
  5387. .HasCharSet("utf8")
  5388. .HasCollation("utf8_general_ci");
  5389. entity.Property(e => e.ColName)
  5390. .HasColumnType("varchar(50)")
  5391. .HasCharSet("utf8")
  5392. .HasCollation("utf8_general_ci");
  5393. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5394. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5395. entity.Property(e => e.CreateMan)
  5396. .HasColumnType("varchar(50)")
  5397. .HasCharSet("utf8")
  5398. .HasCollation("utf8_general_ci");
  5399. entity.Property(e => e.IdList)
  5400. .HasColumnType("varchar(50)")
  5401. .HasCharSet("utf8")
  5402. .HasCollation("utf8_general_ci");
  5403. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5404. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5405. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5406. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5407. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5408. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5409. entity.Property(e => e.SeoDescription)
  5410. .HasColumnType("varchar(500)")
  5411. .HasCharSet("utf8")
  5412. .HasCollation("utf8_general_ci");
  5413. entity.Property(e => e.SeoKeyword)
  5414. .HasColumnType("varchar(200)")
  5415. .HasCharSet("utf8")
  5416. .HasCollation("utf8_general_ci");
  5417. entity.Property(e => e.SeoTitle)
  5418. .HasColumnType("varchar(100)")
  5419. .HasCharSet("utf8")
  5420. .HasCollation("utf8_general_ci");
  5421. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5422. entity.Property(e => e.Status).HasColumnType("int(11)");
  5423. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5424. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5425. entity.Property(e => e.UpdateMan)
  5426. .HasColumnType("varchar(50)")
  5427. .HasCharSet("utf8")
  5428. .HasCollation("utf8_general_ci");
  5429. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5430. entity.Property(e => e.UserPrice).HasColumnType("decimal(18,2)");
  5431. entity.Property(e => e.Version).HasColumnType("int(11)");
  5432. });
  5433. modelBuilder.Entity<ProductNormItem>(entity =>
  5434. {
  5435. entity.Property(e => e.Id).HasColumnType("int(11)");
  5436. entity.Property(e => e.ColName)
  5437. .HasColumnType("varchar(50)")
  5438. .HasCharSet("utf8")
  5439. .HasCollation("utf8_general_ci");
  5440. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5441. entity.Property(e => e.CreateMan)
  5442. .HasColumnType("varchar(50)")
  5443. .HasCharSet("utf8")
  5444. .HasCollation("utf8_general_ci");
  5445. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5446. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  5447. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5448. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5449. entity.Property(e => e.SeoDescription)
  5450. .HasColumnType("varchar(500)")
  5451. .HasCharSet("utf8")
  5452. .HasCollation("utf8_general_ci");
  5453. entity.Property(e => e.SeoKeyword)
  5454. .HasColumnType("varchar(200)")
  5455. .HasCharSet("utf8")
  5456. .HasCollation("utf8_general_ci");
  5457. entity.Property(e => e.SeoTitle)
  5458. .HasColumnType("varchar(100)")
  5459. .HasCharSet("utf8")
  5460. .HasCollation("utf8_general_ci");
  5461. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5462. entity.Property(e => e.Status).HasColumnType("int(11)");
  5463. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5464. entity.Property(e => e.UpdateMan)
  5465. .HasColumnType("varchar(50)")
  5466. .HasCharSet("utf8")
  5467. .HasCollation("utf8_general_ci");
  5468. entity.Property(e => e.Version).HasColumnType("int(11)");
  5469. });
  5470. modelBuilder.Entity<ProductNormTemp>(entity =>
  5471. {
  5472. entity.Property(e => e.Id).HasColumnType("int(11)");
  5473. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5474. entity.Property(e => e.CreateMan)
  5475. .HasColumnType("varchar(50)")
  5476. .HasCharSet("utf8")
  5477. .HasCollation("utf8_general_ci");
  5478. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5479. entity.Property(e => e.Name)
  5480. .HasColumnType("varchar(50)")
  5481. .HasCharSet("utf8")
  5482. .HasCollation("utf8_general_ci");
  5483. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5484. entity.Property(e => e.SeoDescription)
  5485. .HasColumnType("varchar(500)")
  5486. .HasCharSet("utf8")
  5487. .HasCollation("utf8_general_ci");
  5488. entity.Property(e => e.SeoKeyword)
  5489. .HasColumnType("varchar(200)")
  5490. .HasCharSet("utf8")
  5491. .HasCollation("utf8_general_ci");
  5492. entity.Property(e => e.SeoTitle)
  5493. .HasColumnType("varchar(100)")
  5494. .HasCharSet("utf8")
  5495. .HasCollation("utf8_general_ci");
  5496. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5497. entity.Property(e => e.Status).HasColumnType("int(11)");
  5498. entity.Property(e => e.TempJsonData)
  5499. .HasColumnType("longtext")
  5500. .HasCharSet("utf8")
  5501. .HasCollation("utf8_general_ci");
  5502. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5503. entity.Property(e => e.UpdateMan)
  5504. .HasColumnType("varchar(50)")
  5505. .HasCharSet("utf8")
  5506. .HasCollation("utf8_general_ci");
  5507. entity.Property(e => e.Version).HasColumnType("int(11)");
  5508. });
  5509. modelBuilder.Entity<Products>(entity =>
  5510. {
  5511. entity.Property(e => e.Id).HasColumnType("int(11)");
  5512. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5513. entity.Property(e => e.ColId)
  5514. .HasColumnType("varchar(30)")
  5515. .HasCharSet("utf8")
  5516. .HasCollation("utf8_general_ci");
  5517. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  5518. entity.Property(e => e.Contents)
  5519. .HasColumnType("longtext")
  5520. .HasCharSet("utf8")
  5521. .HasCollation("utf8_general_ci");
  5522. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5523. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5524. entity.Property(e => e.CreateMan)
  5525. .HasColumnType("varchar(50)")
  5526. .HasCharSet("utf8")
  5527. .HasCollation("utf8_general_ci");
  5528. entity.Property(e => e.DetailPicPath)
  5529. .HasColumnType("varchar(500)")
  5530. .HasCharSet("utf8")
  5531. .HasCollation("utf8_general_ci");
  5532. entity.Property(e => e.Details)
  5533. .HasColumnType("longtext")
  5534. .HasCharSet("utf8")
  5535. .HasCollation("utf8_general_ci");
  5536. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5537. entity.Property(e => e.FareTemplateId).HasColumnType("int(11)");
  5538. entity.Property(e => e.GoodPercent).HasColumnType("decimal(18,2)");
  5539. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5540. entity.Property(e => e.IsLimit)
  5541. .HasColumnType("bit(1)")
  5542. .HasDefaultValueSql("b'0'");
  5543. entity.Property(e => e.IsRecommend)
  5544. .HasColumnType("bit(1)")
  5545. .HasDefaultValueSql("b'0'");
  5546. entity.Property(e => e.IsRecommend2)
  5547. .HasColumnType("bit(1)")
  5548. .HasDefaultValueSql("b'0'");
  5549. entity.Property(e => e.IsRecommend3)
  5550. .HasColumnType("bit(1)")
  5551. .HasDefaultValueSql("b'0'");
  5552. entity.Property(e => e.KeyWord)
  5553. .HasColumnType("varchar(500)")
  5554. .HasCharSet("utf8")
  5555. .HasCollation("utf8_general_ci");
  5556. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5557. entity.Property(e => e.LinkUrl)
  5558. .HasColumnType("varchar(500)")
  5559. .HasCharSet("utf8")
  5560. .HasCollation("utf8_general_ci");
  5561. entity.Property(e => e.ListPicPath)
  5562. .HasColumnType("varchar(200)")
  5563. .HasCharSet("utf8")
  5564. .HasCollation("utf8_general_ci");
  5565. entity.Property(e => e.MemberPrice).HasColumnType("decimal(18,2)");
  5566. entity.Property(e => e.MerchantClassId).HasColumnType("int(11)");
  5567. entity.Property(e => e.MerchantColId)
  5568. .HasColumnType("varchar(30)")
  5569. .HasCharSet("utf8")
  5570. .HasCollation("utf8_general_ci");
  5571. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5572. entity.Property(e => e.MonthSale).HasColumnType("int(11)");
  5573. entity.Property(e => e.NormIds)
  5574. .HasColumnType("varchar(100)")
  5575. .HasCharSet("utf8")
  5576. .HasCollation("utf8_general_ci");
  5577. entity.Property(e => e.NormJson)
  5578. .HasColumnType("longtext")
  5579. .HasCharSet("utf8")
  5580. .HasCollation("utf8_general_ci");
  5581. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5582. entity.Property(e => e.ProductCode)
  5583. .HasColumnType("varchar(30)")
  5584. .HasCharSet("utf8")
  5585. .HasCollation("utf8_general_ci");
  5586. entity.Property(e => e.ProductName)
  5587. .HasColumnType("varchar(100)")
  5588. .HasCharSet("utf8")
  5589. .HasCollation("utf8_general_ci");
  5590. entity.Property(e => e.PublishDate).HasColumnType("datetime");
  5591. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5592. entity.Property(e => e.SeoDescription)
  5593. .HasColumnType("varchar(500)")
  5594. .HasCharSet("utf8")
  5595. .HasCollation("utf8_general_ci");
  5596. entity.Property(e => e.SeoKeyword)
  5597. .HasColumnType("varchar(200)")
  5598. .HasCharSet("utf8")
  5599. .HasCollation("utf8_general_ci");
  5600. entity.Property(e => e.SeoTitle)
  5601. .HasColumnType("varchar(100)")
  5602. .HasCharSet("utf8")
  5603. .HasCollation("utf8_general_ci");
  5604. entity.Property(e => e.ShareDetail)
  5605. .HasColumnType("varchar(200)")
  5606. .HasCharSet("utf8")
  5607. .HasCollation("utf8_general_ci");
  5608. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5609. entity.Property(e => e.SourcePrice).HasColumnType("decimal(18,2)");
  5610. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5611. entity.Property(e => e.Status).HasColumnType("int(11)");
  5612. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5613. entity.Property(e => e.Title)
  5614. .HasColumnType("varchar(50)")
  5615. .HasCharSet("utf8")
  5616. .HasCollation("utf8_general_ci");
  5617. entity.Property(e => e.Title2)
  5618. .HasColumnType("varchar(50)")
  5619. .HasCharSet("utf8")
  5620. .HasCollation("utf8_general_ci");
  5621. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5622. entity.Property(e => e.UpdateMan)
  5623. .HasColumnType("varchar(50)")
  5624. .HasCharSet("utf8")
  5625. .HasCollation("utf8_general_ci");
  5626. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5627. entity.Property(e => e.Version).HasColumnType("int(11)");
  5628. });
  5629. modelBuilder.Entity<ProfitObjectActivations>(entity =>
  5630. {
  5631. entity.Property(e => e.Id).HasColumnType("int(11)");
  5632. entity.Property(e => e.Code)
  5633. .HasColumnType("varchar(32)")
  5634. .HasCharSet("utf8")
  5635. .HasCollation("utf8_general_ci");
  5636. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5637. entity.Property(e => e.CreateMan)
  5638. .HasColumnType("varchar(50)")
  5639. .HasCharSet("utf8")
  5640. .HasCollation("utf8_general_ci");
  5641. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5642. entity.Property(e => e.ExpiredNumber).HasColumnType("decimal(18,6)");
  5643. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5644. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5645. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5646. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5647. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5648. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5649. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5650. entity.Property(e => e.SeoDescription)
  5651. .HasColumnType("varchar(500)")
  5652. .HasCharSet("utf8")
  5653. .HasCollation("utf8_general_ci");
  5654. entity.Property(e => e.SeoKeyword)
  5655. .HasColumnType("varchar(200)")
  5656. .HasCharSet("utf8")
  5657. .HasCollation("utf8_general_ci");
  5658. entity.Property(e => e.SeoTitle)
  5659. .HasColumnType("varchar(100)")
  5660. .HasCharSet("utf8")
  5661. .HasCollation("utf8_general_ci");
  5662. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5663. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5664. entity.Property(e => e.Status).HasColumnType("int(11)");
  5665. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5666. entity.Property(e => e.UpdateMan)
  5667. .HasColumnType("varchar(50)")
  5668. .HasCharSet("utf8")
  5669. .HasCollation("utf8_general_ci");
  5670. entity.Property(e => e.Version).HasColumnType("int(11)");
  5671. });
  5672. modelBuilder.Entity<ProfitObjectContinueFloors>(entity =>
  5673. {
  5674. entity.Property(e => e.Id).HasColumnType("int(11)");
  5675. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5676. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5677. entity.Property(e => e.CreateMan)
  5678. .HasColumnType("varchar(50)")
  5679. .HasCharSet("utf8")
  5680. .HasCollation("utf8_general_ci");
  5681. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5682. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5683. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5684. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5685. entity.Property(e => e.SeoDescription)
  5686. .HasColumnType("varchar(500)")
  5687. .HasCharSet("utf8")
  5688. .HasCollation("utf8_general_ci");
  5689. entity.Property(e => e.SeoKeyword)
  5690. .HasColumnType("varchar(200)")
  5691. .HasCharSet("utf8")
  5692. .HasCollation("utf8_general_ci");
  5693. entity.Property(e => e.SeoTitle)
  5694. .HasColumnType("varchar(100)")
  5695. .HasCharSet("utf8")
  5696. .HasCollation("utf8_general_ci");
  5697. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5698. entity.Property(e => e.Status).HasColumnType("int(11)");
  5699. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5700. entity.Property(e => e.UpdateMan)
  5701. .HasColumnType("varchar(50)")
  5702. .HasCharSet("utf8")
  5703. .HasCollation("utf8_general_ci");
  5704. entity.Property(e => e.Version).HasColumnType("int(11)");
  5705. });
  5706. modelBuilder.Entity<ProfitObjectFloors>(entity =>
  5707. {
  5708. entity.Property(e => e.Id).HasColumnType("int(11)");
  5709. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5710. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5711. entity.Property(e => e.CreateMan)
  5712. .HasColumnType("varchar(50)")
  5713. .HasCharSet("utf8")
  5714. .HasCollation("utf8_general_ci");
  5715. entity.Property(e => e.FloorDiff)
  5716. .HasColumnType("bit(1)")
  5717. .HasDefaultValueSql("b'0'");
  5718. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5719. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5720. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5721. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5722. entity.Property(e => e.SeoDescription)
  5723. .HasColumnType("varchar(500)")
  5724. .HasCharSet("utf8")
  5725. .HasCollation("utf8_general_ci");
  5726. entity.Property(e => e.SeoKeyword)
  5727. .HasColumnType("varchar(200)")
  5728. .HasCharSet("utf8")
  5729. .HasCollation("utf8_general_ci");
  5730. entity.Property(e => e.SeoTitle)
  5731. .HasColumnType("varchar(100)")
  5732. .HasCharSet("utf8")
  5733. .HasCollation("utf8_general_ci");
  5734. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5735. entity.Property(e => e.Status).HasColumnType("int(11)");
  5736. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5737. entity.Property(e => e.UpdateMan)
  5738. .HasColumnType("varchar(50)")
  5739. .HasCharSet("utf8")
  5740. .HasCollation("utf8_general_ci");
  5741. entity.Property(e => e.Version).HasColumnType("int(11)");
  5742. });
  5743. modelBuilder.Entity<ProfitObjectLevelKinds>(entity =>
  5744. {
  5745. entity.Property(e => e.Id).HasColumnType("int(11)");
  5746. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  5747. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5748. entity.Property(e => e.CreateMan)
  5749. .HasColumnType("varchar(50)")
  5750. .HasCharSet("utf8")
  5751. .HasCollation("utf8_general_ci");
  5752. entity.Property(e => e.IsHelp)
  5753. .HasColumnType("bit(1)")
  5754. .HasDefaultValueSql("b'0'");
  5755. entity.Property(e => e.Name)
  5756. .HasColumnType("varchar(50)")
  5757. .HasCharSet("utf8")
  5758. .HasCollation("utf8_general_ci");
  5759. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5760. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5761. entity.Property(e => e.SeoDescription)
  5762. .HasColumnType("varchar(500)")
  5763. .HasCharSet("utf8")
  5764. .HasCollation("utf8_general_ci");
  5765. entity.Property(e => e.SeoKeyword)
  5766. .HasColumnType("varchar(200)")
  5767. .HasCharSet("utf8")
  5768. .HasCollation("utf8_general_ci");
  5769. entity.Property(e => e.SeoTitle)
  5770. .HasColumnType("varchar(100)")
  5771. .HasCharSet("utf8")
  5772. .HasCollation("utf8_general_ci");
  5773. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5774. entity.Property(e => e.Status).HasColumnType("int(11)");
  5775. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5776. entity.Property(e => e.UpdateMan)
  5777. .HasColumnType("varchar(50)")
  5778. .HasCharSet("utf8")
  5779. .HasCollation("utf8_general_ci");
  5780. entity.Property(e => e.Version).HasColumnType("int(11)");
  5781. });
  5782. modelBuilder.Entity<ProfitObjectLevels>(entity =>
  5783. {
  5784. entity.Property(e => e.Id).HasColumnType("int(11)");
  5785. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5786. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5787. entity.Property(e => e.CreateMan)
  5788. .HasColumnType("varchar(50)")
  5789. .HasCharSet("utf8")
  5790. .HasCollation("utf8_general_ci");
  5791. entity.Property(e => e.DebitAddProfitVal).HasColumnType("decimal(18,2)");
  5792. entity.Property(e => e.DebitPercents).HasColumnType("decimal(18,2)");
  5793. entity.Property(e => e.KindId).HasColumnType("int(11)");
  5794. entity.Property(e => e.LevelDiff)
  5795. .HasColumnType("bit(1)")
  5796. .HasDefaultValueSql("b'0'");
  5797. entity.Property(e => e.LevelNumber).HasColumnType("int(11)");
  5798. entity.Property(e => e.Name)
  5799. .HasColumnType("varchar(50)")
  5800. .HasCharSet("utf8")
  5801. .HasCollation("utf8_general_ci");
  5802. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5803. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5804. entity.Property(e => e.SeoDescription)
  5805. .HasColumnType("varchar(500)")
  5806. .HasCharSet("utf8")
  5807. .HasCollation("utf8_general_ci");
  5808. entity.Property(e => e.SeoKeyword)
  5809. .HasColumnType("varchar(200)")
  5810. .HasCharSet("utf8")
  5811. .HasCollation("utf8_general_ci");
  5812. entity.Property(e => e.SeoTitle)
  5813. .HasColumnType("varchar(100)")
  5814. .HasCharSet("utf8")
  5815. .HasCollation("utf8_general_ci");
  5816. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5817. entity.Property(e => e.Status).HasColumnType("int(11)");
  5818. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5819. entity.Property(e => e.UpdateMan)
  5820. .HasColumnType("varchar(50)")
  5821. .HasCharSet("utf8")
  5822. .HasCollation("utf8_general_ci");
  5823. entity.Property(e => e.Version).HasColumnType("int(11)");
  5824. });
  5825. modelBuilder.Entity<ProfitObjects>(entity =>
  5826. {
  5827. entity.Property(e => e.Id).HasColumnType("int(11)");
  5828. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5829. entity.Property(e => e.CreateMan)
  5830. .HasColumnType("varchar(50)")
  5831. .HasCharSet("utf8")
  5832. .HasCollation("utf8_general_ci");
  5833. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5834. entity.Property(e => e.MaxFloor).HasColumnType("int(11)");
  5835. entity.Property(e => e.MaxLevel).HasColumnType("int(11)");
  5836. entity.Property(e => e.MaxLevelContinue)
  5837. .HasColumnType("bit(1)")
  5838. .HasDefaultValueSql("b'0'");
  5839. entity.Property(e => e.MinProfitVal).HasColumnType("decimal(18,5)");
  5840. entity.Property(e => e.Name)
  5841. .HasColumnType("varchar(50)")
  5842. .HasCharSet("utf8")
  5843. .HasCollation("utf8_general_ci");
  5844. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5845. entity.Property(e => e.SeoDescription)
  5846. .HasColumnType("varchar(500)")
  5847. .HasCharSet("utf8")
  5848. .HasCollation("utf8_general_ci");
  5849. entity.Property(e => e.SeoKeyword)
  5850. .HasColumnType("varchar(200)")
  5851. .HasCharSet("utf8")
  5852. .HasCollation("utf8_general_ci");
  5853. entity.Property(e => e.SeoTitle)
  5854. .HasColumnType("varchar(100)")
  5855. .HasCharSet("utf8")
  5856. .HasCollation("utf8_general_ci");
  5857. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5858. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5859. entity.Property(e => e.Status).HasColumnType("int(11)");
  5860. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5861. entity.Property(e => e.UpdateMan)
  5862. .HasColumnType("varchar(50)")
  5863. .HasCharSet("utf8")
  5864. .HasCollation("utf8_general_ci");
  5865. entity.Property(e => e.Version).HasColumnType("int(11)");
  5866. });
  5867. modelBuilder.Entity<ProfitObjectsActiveCheck>(entity =>
  5868. {
  5869. entity.HasKey(e => e.CheckData)
  5870. .HasName("PRIMARY");
  5871. entity.Property(e => e.CheckData)
  5872. .HasColumnType("varchar(100)")
  5873. .HasCharSet("utf8")
  5874. .HasCollation("utf8_general_ci");
  5875. });
  5876. modelBuilder.Entity<ProfitObjectsActiveParams>(entity =>
  5877. {
  5878. entity.Property(e => e.Id).HasColumnType("int(11)");
  5879. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5880. entity.Property(e => e.CreateMan)
  5881. .HasColumnType("varchar(50)")
  5882. .HasCharSet("utf8")
  5883. .HasCollation("utf8_general_ci");
  5884. entity.Property(e => e.Name)
  5885. .HasColumnType("varchar(50)")
  5886. .HasCharSet("utf8")
  5887. .HasCollation("utf8_general_ci");
  5888. entity.Property(e => e.ProfitObjectsActiveId).HasColumnType("int(11)");
  5889. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5890. entity.Property(e => e.Remark)
  5891. .HasColumnType("varchar(200)")
  5892. .HasCharSet("utf8")
  5893. .HasCollation("utf8_general_ci");
  5894. entity.Property(e => e.SeoDescription)
  5895. .HasColumnType("varchar(500)")
  5896. .HasCharSet("utf8")
  5897. .HasCollation("utf8_general_ci");
  5898. entity.Property(e => e.SeoKeyword)
  5899. .HasColumnType("varchar(200)")
  5900. .HasCharSet("utf8")
  5901. .HasCollation("utf8_general_ci");
  5902. entity.Property(e => e.SeoTitle)
  5903. .HasColumnType("varchar(100)")
  5904. .HasCharSet("utf8")
  5905. .HasCollation("utf8_general_ci");
  5906. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5907. entity.Property(e => e.Status).HasColumnType("int(11)");
  5908. entity.Property(e => e.TextValue)
  5909. .HasColumnType("varchar(20)")
  5910. .HasCharSet("utf8")
  5911. .HasCollation("utf8_general_ci");
  5912. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5913. entity.Property(e => e.UpdateMan)
  5914. .HasColumnType("varchar(50)")
  5915. .HasCharSet("utf8")
  5916. .HasCollation("utf8_general_ci");
  5917. entity.Property(e => e.Version).HasColumnType("int(11)");
  5918. });
  5919. modelBuilder.Entity<ProfitObjectsActives>(entity =>
  5920. {
  5921. entity.Property(e => e.Id).HasColumnType("int(11)");
  5922. entity.Property(e => e.CardType).HasColumnType("int(11)");
  5923. entity.Property(e => e.Code)
  5924. .HasColumnType("varchar(50)")
  5925. .HasCharSet("utf8")
  5926. .HasCollation("utf8_general_ci");
  5927. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5928. entity.Property(e => e.CreateMan)
  5929. .HasColumnType("varchar(50)")
  5930. .HasCharSet("utf8")
  5931. .HasCollation("utf8_general_ci");
  5932. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5933. entity.Property(e => e.FinishNumber).HasColumnType("decimal(18,6)");
  5934. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5935. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5936. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5937. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5938. entity.Property(e => e.Name)
  5939. .HasColumnType("varchar(50)")
  5940. .HasCharSet("utf8")
  5941. .HasCollation("utf8_general_ci");
  5942. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5943. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5944. entity.Property(e => e.ProfitNumber2).HasColumnType("decimal(18,2)");
  5945. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5946. entity.Property(e => e.SeoDescription)
  5947. .HasColumnType("varchar(500)")
  5948. .HasCharSet("utf8")
  5949. .HasCollation("utf8_general_ci");
  5950. entity.Property(e => e.SeoKeyword)
  5951. .HasColumnType("varchar(200)")
  5952. .HasCharSet("utf8")
  5953. .HasCollation("utf8_general_ci");
  5954. entity.Property(e => e.SeoTitle)
  5955. .HasColumnType("varchar(100)")
  5956. .HasCharSet("utf8")
  5957. .HasCollation("utf8_general_ci");
  5958. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5959. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5960. entity.Property(e => e.Status).HasColumnType("int(11)");
  5961. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5962. entity.Property(e => e.UpdateMan)
  5963. .HasColumnType("varchar(50)")
  5964. .HasCharSet("utf8")
  5965. .HasCollation("utf8_general_ci");
  5966. entity.Property(e => e.Version).HasColumnType("int(11)");
  5967. });
  5968. modelBuilder.Entity<ProfitObjectsActivesForId>(entity =>
  5969. {
  5970. entity.HasKey(e => e.Name)
  5971. .HasName("PRIMARY");
  5972. entity.Property(e => e.Name)
  5973. .HasColumnType("varchar(50)")
  5974. .HasCharSet("utf8")
  5975. .HasCollation("utf8_general_ci");
  5976. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  5977. });
  5978. modelBuilder.Entity<ProfitObjectsRule>(entity =>
  5979. {
  5980. entity.Property(e => e.Id).HasColumnType("int(11)");
  5981. entity.Property(e => e.Code)
  5982. .HasColumnType("varchar(50)")
  5983. .HasCharSet("utf8")
  5984. .HasCollation("utf8_general_ci");
  5985. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5986. entity.Property(e => e.CreateMan)
  5987. .HasColumnType("varchar(50)")
  5988. .HasCharSet("utf8")
  5989. .HasCollation("utf8_general_ci");
  5990. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5991. entity.Property(e => e.Name)
  5992. .HasColumnType("varchar(50)")
  5993. .HasCharSet("utf8")
  5994. .HasCollation("utf8_general_ci");
  5995. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5996. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5997. entity.Property(e => e.SeoDescription)
  5998. .HasColumnType("varchar(500)")
  5999. .HasCharSet("utf8")
  6000. .HasCollation("utf8_general_ci");
  6001. entity.Property(e => e.SeoKeyword)
  6002. .HasColumnType("varchar(200)")
  6003. .HasCharSet("utf8")
  6004. .HasCollation("utf8_general_ci");
  6005. entity.Property(e => e.SeoTitle)
  6006. .HasColumnType("varchar(100)")
  6007. .HasCharSet("utf8")
  6008. .HasCollation("utf8_general_ci");
  6009. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6010. entity.Property(e => e.StartDate).HasColumnType("datetime");
  6011. entity.Property(e => e.Status).HasColumnType("int(11)");
  6012. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6013. entity.Property(e => e.UpdateMan)
  6014. .HasColumnType("varchar(50)")
  6015. .HasCharSet("utf8")
  6016. .HasCollation("utf8_general_ci");
  6017. entity.Property(e => e.Version).HasColumnType("int(11)");
  6018. });
  6019. modelBuilder.Entity<ProfitObjectsRuleDetails>(entity =>
  6020. {
  6021. entity.Property(e => e.Id).HasColumnType("int(11)");
  6022. entity.Property(e => e.Code)
  6023. .HasColumnType("varchar(50)")
  6024. .HasCharSet("utf8")
  6025. .HasCollation("utf8_general_ci");
  6026. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6027. entity.Property(e => e.CreateMan)
  6028. .HasColumnType("varchar(50)")
  6029. .HasCharSet("utf8")
  6030. .HasCollation("utf8_general_ci");
  6031. entity.Property(e => e.DataValue)
  6032. .HasColumnType("varchar(50)")
  6033. .HasCharSet("utf8")
  6034. .HasCollation("utf8_general_ci");
  6035. entity.Property(e => e.Name)
  6036. .HasColumnType("varchar(50)")
  6037. .HasCharSet("utf8")
  6038. .HasCollation("utf8_general_ci");
  6039. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6040. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  6041. entity.Property(e => e.SeoDescription)
  6042. .HasColumnType("varchar(500)")
  6043. .HasCharSet("utf8")
  6044. .HasCollation("utf8_general_ci");
  6045. entity.Property(e => e.SeoKeyword)
  6046. .HasColumnType("varchar(200)")
  6047. .HasCharSet("utf8")
  6048. .HasCollation("utf8_general_ci");
  6049. entity.Property(e => e.SeoTitle)
  6050. .HasColumnType("varchar(100)")
  6051. .HasCharSet("utf8")
  6052. .HasCollation("utf8_general_ci");
  6053. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6054. entity.Property(e => e.Status).HasColumnType("int(11)");
  6055. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6056. entity.Property(e => e.UpdateMan)
  6057. .HasColumnType("varchar(50)")
  6058. .HasCharSet("utf8")
  6059. .HasCollation("utf8_general_ci");
  6060. entity.Property(e => e.Version).HasColumnType("int(11)");
  6061. });
  6062. modelBuilder.Entity<ProfitReceiveRecord>(entity =>
  6063. {
  6064. entity.Property(e => e.Id).HasColumnType("int(11)");
  6065. entity.Property(e => e.Account)
  6066. .HasColumnType("varchar(32)")
  6067. .HasCharSet("utf8")
  6068. .HasCollation("utf8_general_ci");
  6069. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  6070. entity.Property(e => e.AppId)
  6071. .HasColumnType("varchar(32)")
  6072. .HasCharSet("utf8")
  6073. .HasCollation("utf8_general_ci");
  6074. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6075. entity.Property(e => e.CreateMan)
  6076. .HasColumnType("varchar(50)")
  6077. .HasCharSet("utf8")
  6078. .HasCollation("utf8_general_ci");
  6079. entity.Property(e => e.CustomRelation)
  6080. .HasColumnType("varchar(10)")
  6081. .HasCharSet("utf8")
  6082. .HasCollation("utf8_general_ci");
  6083. entity.Property(e => e.Description)
  6084. .HasColumnType("varchar(50)")
  6085. .HasCharSet("utf8")
  6086. .HasCollation("utf8_general_ci");
  6087. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6088. entity.Property(e => e.Name)
  6089. .HasColumnType("varchar(32)")
  6090. .HasCharSet("utf8")
  6091. .HasCollation("utf8_general_ci");
  6092. entity.Property(e => e.OrderId)
  6093. .HasColumnType("varchar(32)")
  6094. .HasCharSet("utf8")
  6095. .HasCollation("utf8_general_ci");
  6096. entity.Property(e => e.OutOrderNo)
  6097. .HasColumnType("varchar(32)")
  6098. .HasCharSet("utf8")
  6099. .HasCollation("utf8_general_ci");
  6100. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6101. entity.Property(e => e.RelationType)
  6102. .HasColumnType("varchar(30)")
  6103. .HasCharSet("utf8")
  6104. .HasCollation("utf8_general_ci");
  6105. entity.Property(e => e.SeoDescription)
  6106. .HasColumnType("varchar(500)")
  6107. .HasCharSet("utf8")
  6108. .HasCollation("utf8_general_ci");
  6109. entity.Property(e => e.SeoKeyword)
  6110. .HasColumnType("varchar(200)")
  6111. .HasCharSet("utf8")
  6112. .HasCollation("utf8_general_ci");
  6113. entity.Property(e => e.SeoTitle)
  6114. .HasColumnType("varchar(100)")
  6115. .HasCharSet("utf8")
  6116. .HasCollation("utf8_general_ci");
  6117. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6118. entity.Property(e => e.State)
  6119. .HasColumnType("varchar(20)")
  6120. .HasCharSet("utf8")
  6121. .HasCollation("utf8_general_ci");
  6122. entity.Property(e => e.Status).HasColumnType("int(11)");
  6123. entity.Property(e => e.SubAppId)
  6124. .HasColumnType("varchar(32)")
  6125. .HasCharSet("utf8")
  6126. .HasCollation("utf8_general_ci");
  6127. entity.Property(e => e.SubMchid)
  6128. .HasColumnType("varchar(32)")
  6129. .HasCharSet("utf8")
  6130. .HasCollation("utf8_general_ci");
  6131. entity.Property(e => e.TransactionId)
  6132. .HasColumnType("varchar(32)")
  6133. .HasCharSet("utf8")
  6134. .HasCollation("utf8_general_ci");
  6135. entity.Property(e => e.Type)
  6136. .HasColumnType("varchar(30)")
  6137. .HasCharSet("utf8")
  6138. .HasCollation("utf8_general_ci");
  6139. entity.Property(e => e.UnfreezeUnsplit)
  6140. .HasColumnType("bit(1)")
  6141. .HasDefaultValueSql("b'0'");
  6142. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6143. entity.Property(e => e.UpdateMan)
  6144. .HasColumnType("varchar(50)")
  6145. .HasCharSet("utf8")
  6146. .HasCollation("utf8_general_ci");
  6147. entity.Property(e => e.Version).HasColumnType("int(11)");
  6148. });
  6149. modelBuilder.Entity<ProfitReceives>(entity =>
  6150. {
  6151. entity.Property(e => e.Id).HasColumnType("int(11)");
  6152. entity.Property(e => e.Account)
  6153. .HasColumnType("varchar(32)")
  6154. .HasCharSet("utf8")
  6155. .HasCollation("utf8_general_ci");
  6156. entity.Property(e => e.AppId)
  6157. .HasColumnType("varchar(32)")
  6158. .HasCharSet("utf8")
  6159. .HasCollation("utf8_general_ci");
  6160. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6161. entity.Property(e => e.CreateMan)
  6162. .HasColumnType("varchar(50)")
  6163. .HasCharSet("utf8")
  6164. .HasCollation("utf8_general_ci");
  6165. entity.Property(e => e.CustomRelation)
  6166. .HasColumnType("varchar(10)")
  6167. .HasCharSet("utf8")
  6168. .HasCollation("utf8_general_ci");
  6169. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6170. entity.Property(e => e.Name)
  6171. .HasColumnType("varchar(32)")
  6172. .HasCharSet("utf8")
  6173. .HasCollation("utf8_general_ci");
  6174. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6175. entity.Property(e => e.RelationType)
  6176. .HasColumnType("varchar(30)")
  6177. .HasCharSet("utf8")
  6178. .HasCollation("utf8_general_ci");
  6179. entity.Property(e => e.SeoDescription)
  6180. .HasColumnType("varchar(500)")
  6181. .HasCharSet("utf8")
  6182. .HasCollation("utf8_general_ci");
  6183. entity.Property(e => e.SeoKeyword)
  6184. .HasColumnType("varchar(200)")
  6185. .HasCharSet("utf8")
  6186. .HasCollation("utf8_general_ci");
  6187. entity.Property(e => e.SeoTitle)
  6188. .HasColumnType("varchar(100)")
  6189. .HasCharSet("utf8")
  6190. .HasCollation("utf8_general_ci");
  6191. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6192. entity.Property(e => e.Status).HasColumnType("int(11)");
  6193. entity.Property(e => e.SubAppId)
  6194. .HasColumnType("varchar(32)")
  6195. .HasCharSet("utf8")
  6196. .HasCollation("utf8_general_ci");
  6197. entity.Property(e => e.SubMchid)
  6198. .HasColumnType("varchar(32)")
  6199. .HasCharSet("utf8")
  6200. .HasCollation("utf8_general_ci");
  6201. entity.Property(e => e.Type)
  6202. .HasColumnType("varchar(30)")
  6203. .HasCharSet("utf8")
  6204. .HasCollation("utf8_general_ci");
  6205. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6206. entity.Property(e => e.UpdateMan)
  6207. .HasColumnType("varchar(50)")
  6208. .HasCharSet("utf8")
  6209. .HasCollation("utf8_general_ci");
  6210. entity.Property(e => e.Version).HasColumnType("int(11)");
  6211. });
  6212. modelBuilder.Entity<ProfitRecord>(entity =>
  6213. {
  6214. entity.Property(e => e.Id).HasColumnType("int(11)");
  6215. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6216. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  6217. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  6218. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6219. entity.Property(e => e.CreateMan)
  6220. .HasColumnType("varchar(50)")
  6221. .HasCharSet("utf8")
  6222. .HasCollation("utf8_general_ci");
  6223. entity.Property(e => e.DirectFlag)
  6224. .HasColumnType("bit(1)")
  6225. .HasDefaultValueSql("b'0'");
  6226. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  6227. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  6228. entity.Property(e => e.MerHelpFlag)
  6229. .HasColumnType("bit(1)")
  6230. .HasDefaultValueSql("b'0'");
  6231. entity.Property(e => e.MerNo)
  6232. .HasColumnType("varchar(32)")
  6233. .HasCharSet("utf8")
  6234. .HasCollation("utf8_general_ci");
  6235. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6236. entity.Property(e => e.ParentNav)
  6237. .HasColumnType("varchar(1000)")
  6238. .HasCharSet("utf8")
  6239. .HasCollation("utf8_general_ci");
  6240. entity.Property(e => e.ProfitAmount).HasColumnType("decimal(18,2)");
  6241. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  6242. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6243. entity.Property(e => e.Remark)
  6244. .HasColumnType("varchar(64)")
  6245. .HasCharSet("utf8")
  6246. .HasCollation("utf8_general_ci");
  6247. entity.Property(e => e.SeoDescription)
  6248. .HasColumnType("varchar(500)")
  6249. .HasCharSet("utf8")
  6250. .HasCollation("utf8_general_ci");
  6251. entity.Property(e => e.SeoKeyword)
  6252. .HasColumnType("varchar(200)")
  6253. .HasCharSet("utf8")
  6254. .HasCollation("utf8_general_ci");
  6255. entity.Property(e => e.SeoTitle)
  6256. .HasColumnType("varchar(100)")
  6257. .HasCharSet("utf8")
  6258. .HasCollation("utf8_general_ci");
  6259. entity.Property(e => e.SnNo)
  6260. .HasColumnType("varchar(32)")
  6261. .HasCharSet("utf8")
  6262. .HasCollation("utf8_general_ci");
  6263. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6264. entity.Property(e => e.Status).HasColumnType("int(11)");
  6265. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  6266. entity.Property(e => e.TradeId).HasColumnType("int(11)");
  6267. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6268. entity.Property(e => e.UpdateMan)
  6269. .HasColumnType("varchar(50)")
  6270. .HasCharSet("utf8")
  6271. .HasCollation("utf8_general_ci");
  6272. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6273. entity.Property(e => e.Version).HasColumnType("int(11)");
  6274. });
  6275. modelBuilder.Entity<ProfitRewardRecord>(entity =>
  6276. {
  6277. entity.Property(e => e.Id).HasColumnType("int(11)");
  6278. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6279. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  6280. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6281. entity.Property(e => e.CreateMan)
  6282. .HasColumnType("varchar(50)")
  6283. .HasCharSet("utf8")
  6284. .HasCollation("utf8_general_ci");
  6285. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6286. entity.Property(e => e.CreditTradeProfit).HasColumnType("decimal(18,2)");
  6287. entity.Property(e => e.DebitCapSingleReward).HasColumnType("decimal(18,2)");
  6288. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  6289. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  6290. entity.Property(e => e.DebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  6291. entity.Property(e => e.DebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6292. entity.Property(e => e.DebitTradeCapProfit).HasColumnType("decimal(18,2)");
  6293. entity.Property(e => e.HelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  6294. entity.Property(e => e.HelpCreditProfitRate).HasColumnType("decimal(18,2)");
  6295. entity.Property(e => e.HelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  6296. entity.Property(e => e.HelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  6297. entity.Property(e => e.HelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  6298. entity.Property(e => e.HelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  6299. entity.Property(e => e.HelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  6300. entity.Property(e => e.HelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6301. entity.Property(e => e.HelpDebitProfitRate).HasColumnType("decimal(18,2)");
  6302. entity.Property(e => e.HelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6303. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6304. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6305. entity.Property(e => e.NonQrCreditTradeProfit).HasColumnType("decimal(18,2)");
  6306. entity.Property(e => e.NonQrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6307. entity.Property(e => e.NonQrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6308. entity.Property(e => e.NotHelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  6309. entity.Property(e => e.NotHelpCreditProfitRate).HasColumnType("decimal(18,2)");
  6310. entity.Property(e => e.NotHelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  6311. entity.Property(e => e.NotHelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  6312. entity.Property(e => e.NotHelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  6313. entity.Property(e => e.NotHelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  6314. entity.Property(e => e.NotHelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  6315. entity.Property(e => e.NotHelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6316. entity.Property(e => e.NotHelpDebitProfitRate).HasColumnType("decimal(18,2)");
  6317. entity.Property(e => e.NotHelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6318. entity.Property(e => e.OtherCreditTradeAmt).HasColumnType("decimal(18,2)");
  6319. entity.Property(e => e.OtherDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6320. entity.Property(e => e.OtherTradeAmt).HasColumnType("decimal(18,2)");
  6321. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  6322. entity.Property(e => e.QrCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  6323. entity.Property(e => e.QrCreditProfitRate).HasColumnType("decimal(18,2)");
  6324. entity.Property(e => e.QrCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  6325. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6326. entity.Property(e => e.QrCreditTradeProfit).HasColumnType("decimal(18,2)");
  6327. entity.Property(e => e.QrDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  6328. entity.Property(e => e.QrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6329. entity.Property(e => e.QrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6330. entity.Property(e => e.QrDebitProfitRate).HasColumnType("decimal(18,2)");
  6331. entity.Property(e => e.QrDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6332. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6333. entity.Property(e => e.RecordNo)
  6334. .HasColumnType("varchar(32)")
  6335. .HasCharSet("utf8")
  6336. .HasCollation("utf8_general_ci");
  6337. entity.Property(e => e.Remark)
  6338. .HasColumnType("varchar(64)")
  6339. .HasCharSet("utf8")
  6340. .HasCollation("utf8_general_ci");
  6341. entity.Property(e => e.SeoDescription)
  6342. .HasColumnType("varchar(500)")
  6343. .HasCharSet("utf8")
  6344. .HasCollation("utf8_general_ci");
  6345. entity.Property(e => e.SeoKeyword)
  6346. .HasColumnType("varchar(200)")
  6347. .HasCharSet("utf8")
  6348. .HasCollation("utf8_general_ci");
  6349. entity.Property(e => e.SeoTitle)
  6350. .HasColumnType("varchar(100)")
  6351. .HasCharSet("utf8")
  6352. .HasCollation("utf8_general_ci");
  6353. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6354. entity.Property(e => e.Status).HasColumnType("int(11)");
  6355. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  6356. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  6357. entity.Property(e => e.TradeMonth)
  6358. .HasColumnType("varchar(6)")
  6359. .HasCharSet("utf8")
  6360. .HasCollation("utf8_general_ci");
  6361. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  6362. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6363. entity.Property(e => e.UpdateMan)
  6364. .HasColumnType("varchar(50)")
  6365. .HasCharSet("utf8")
  6366. .HasCollation("utf8_general_ci");
  6367. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6368. entity.Property(e => e.Version).HasColumnType("int(11)");
  6369. });
  6370. modelBuilder.Entity<ProfitSubsidyDetail>(entity =>
  6371. {
  6372. entity.Property(e => e.Id).HasColumnType("int(11)");
  6373. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  6374. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6375. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6376. entity.Property(e => e.CreateMan)
  6377. .HasColumnType("varchar(50)")
  6378. .HasCharSet("utf8")
  6379. .HasCollation("utf8_general_ci");
  6380. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  6381. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6382. entity.Property(e => e.MerHelpFlag)
  6383. .HasColumnType("bit(1)")
  6384. .HasDefaultValueSql("b'0'");
  6385. entity.Property(e => e.MerNo)
  6386. .HasColumnType("varchar(32)")
  6387. .HasCharSet("utf8")
  6388. .HasCollation("utf8_general_ci");
  6389. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  6390. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  6391. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6392. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6393. entity.Property(e => e.ProductName)
  6394. .HasColumnType("varchar(16)")
  6395. .HasCharSet("utf8")
  6396. .HasCollation("utf8_general_ci");
  6397. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6398. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6399. entity.Property(e => e.RecordNo)
  6400. .HasColumnType("varchar(32)")
  6401. .HasCharSet("utf8")
  6402. .HasCollation("utf8_general_ci");
  6403. entity.Property(e => e.Remark)
  6404. .HasColumnType("varchar(64)")
  6405. .HasCharSet("utf8")
  6406. .HasCollation("utf8_general_ci");
  6407. entity.Property(e => e.SeoDescription)
  6408. .HasColumnType("varchar(500)")
  6409. .HasCharSet("utf8")
  6410. .HasCollation("utf8_general_ci");
  6411. entity.Property(e => e.SeoKeyword)
  6412. .HasColumnType("varchar(200)")
  6413. .HasCharSet("utf8")
  6414. .HasCollation("utf8_general_ci");
  6415. entity.Property(e => e.SeoTitle)
  6416. .HasColumnType("varchar(100)")
  6417. .HasCharSet("utf8")
  6418. .HasCollation("utf8_general_ci");
  6419. entity.Property(e => e.SnNo)
  6420. .HasColumnType("varchar(32)")
  6421. .HasCharSet("utf8")
  6422. .HasCollation("utf8_general_ci");
  6423. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6424. entity.Property(e => e.Status).HasColumnType("int(11)");
  6425. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  6426. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  6427. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  6428. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  6429. entity.Property(e => e.TradeMonth)
  6430. .HasColumnType("varchar(6)")
  6431. .HasCharSet("utf8")
  6432. .HasCollation("utf8_general_ci");
  6433. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6434. entity.Property(e => e.UpdateMan)
  6435. .HasColumnType("varchar(50)")
  6436. .HasCharSet("utf8")
  6437. .HasCollation("utf8_general_ci");
  6438. entity.Property(e => e.Version).HasColumnType("int(11)");
  6439. });
  6440. modelBuilder.Entity<ProfitSubsidyDetail04>(entity =>
  6441. {
  6442. entity.Property(e => e.Id).HasColumnType("int(11)");
  6443. entity.Property(e => e.BelongUserId).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.CreditProfitRate).HasColumnType("decimal(18,2)");
  6451. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6452. entity.Property(e => e.MerHelpFlag)
  6453. .HasColumnType("bit(1)")
  6454. .HasDefaultValueSql("b'0'");
  6455. entity.Property(e => e.MerNo)
  6456. .HasColumnType("varchar(32)")
  6457. .HasCharSet("utf8")
  6458. .HasCollation("utf8_general_ci");
  6459. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  6460. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  6461. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6462. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6463. entity.Property(e => e.ProductName)
  6464. .HasColumnType("varchar(16)")
  6465. .HasCharSet("utf8")
  6466. .HasCollation("utf8_general_ci");
  6467. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6468. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6469. entity.Property(e => e.RecordNo)
  6470. .HasColumnType("varchar(32)")
  6471. .HasCharSet("utf8")
  6472. .HasCollation("utf8_general_ci");
  6473. entity.Property(e => e.Remark)
  6474. .HasColumnType("varchar(64)")
  6475. .HasCharSet("utf8")
  6476. .HasCollation("utf8_general_ci");
  6477. entity.Property(e => e.SeoDescription)
  6478. .HasColumnType("varchar(500)")
  6479. .HasCharSet("utf8")
  6480. .HasCollation("utf8_general_ci");
  6481. entity.Property(e => e.SeoKeyword)
  6482. .HasColumnType("varchar(200)")
  6483. .HasCharSet("utf8")
  6484. .HasCollation("utf8_general_ci");
  6485. entity.Property(e => e.SeoTitle)
  6486. .HasColumnType("varchar(100)")
  6487. .HasCharSet("utf8")
  6488. .HasCollation("utf8_general_ci");
  6489. entity.Property(e => e.SnNo)
  6490. .HasColumnType("varchar(32)")
  6491. .HasCharSet("utf8")
  6492. .HasCollation("utf8_general_ci");
  6493. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6494. entity.Property(e => e.Status).HasColumnType("int(11)");
  6495. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  6496. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  6497. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  6498. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  6499. entity.Property(e => e.TradeMonth)
  6500. .HasColumnType("varchar(6)")
  6501. .HasCharSet("utf8")
  6502. .HasCollation("utf8_general_ci");
  6503. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6504. entity.Property(e => e.UpdateMan)
  6505. .HasColumnType("varchar(50)")
  6506. .HasCharSet("utf8")
  6507. .HasCollation("utf8_general_ci");
  6508. entity.Property(e => e.Version).HasColumnType("int(11)");
  6509. });
  6510. modelBuilder.Entity<PublicAccountSet>(entity =>
  6511. {
  6512. entity.Property(e => e.Id).HasColumnType("int(11)");
  6513. entity.Property(e => e.AlipayAppId)
  6514. .HasColumnType("varchar(50)")
  6515. .HasCharSet("utf8")
  6516. .HasCollation("utf8_general_ci");
  6517. entity.Property(e => e.AlipayPartnerId)
  6518. .HasColumnType("varchar(50)")
  6519. .HasCharSet("utf8")
  6520. .HasCollation("utf8_general_ci");
  6521. entity.Property(e => e.AlipayPrivateKey)
  6522. .HasColumnType("mediumtext")
  6523. .HasCharSet("utf8")
  6524. .HasCollation("utf8_general_ci");
  6525. entity.Property(e => e.AlipayPublicKey)
  6526. .HasColumnType("mediumtext")
  6527. .HasCharSet("utf8")
  6528. .HasCollation("utf8_general_ci");
  6529. entity.Property(e => e.AliyunAccessKeyId)
  6530. .HasColumnType("varchar(50)")
  6531. .HasCharSet("utf8")
  6532. .HasCollation("utf8_general_ci");
  6533. entity.Property(e => e.AliyunAccessKeySecret)
  6534. .HasColumnType("varchar(50)")
  6535. .HasCharSet("utf8")
  6536. .HasCollation("utf8_general_ci");
  6537. entity.Property(e => e.AliyunAndroidActivity)
  6538. .HasColumnType("varchar(100)")
  6539. .HasCharSet("utf8")
  6540. .HasCollation("utf8_general_ci");
  6541. entity.Property(e => e.AliyunAndroidNotifyTitle)
  6542. .HasColumnType("varchar(20)")
  6543. .HasCharSet("utf8")
  6544. .HasCollation("utf8_general_ci");
  6545. entity.Property(e => e.AliyunPushAndroidAppId)
  6546. .HasColumnType("varchar(50)")
  6547. .HasCharSet("utf8")
  6548. .HasCollation("utf8_general_ci");
  6549. entity.Property(e => e.AliyunPushAndroidAppSecret)
  6550. .HasColumnType("varchar(50)")
  6551. .HasCharSet("utf8")
  6552. .HasCollation("utf8_general_ci");
  6553. entity.Property(e => e.AliyunPushIosAppId)
  6554. .HasColumnType("varchar(500)")
  6555. .HasCharSet("utf8")
  6556. .HasCollation("utf8_general_ci");
  6557. entity.Property(e => e.AliyunPushIosAppSecret)
  6558. .HasColumnType("varchar(50)")
  6559. .HasCharSet("utf8")
  6560. .HasCollation("utf8_general_ci");
  6561. entity.Property(e => e.AliyunRegionId)
  6562. .HasColumnType("varchar(30)")
  6563. .HasCharSet("utf8")
  6564. .HasCollation("utf8_general_ci");
  6565. entity.Property(e => e.ErpApiUrl)
  6566. .HasColumnType("varchar(200)")
  6567. .HasCharSet("utf8")
  6568. .HasCollation("utf8_general_ci");
  6569. entity.Property(e => e.ErpAppCode)
  6570. .HasColumnType("varchar(100)")
  6571. .HasCharSet("utf8")
  6572. .HasCollation("utf8_general_ci");
  6573. entity.Property(e => e.MeiQiaAppKey)
  6574. .HasColumnType("varchar(50)")
  6575. .HasCharSet("utf8")
  6576. .HasCollation("utf8_general_ci");
  6577. entity.Property(e => e.MobAppKey)
  6578. .HasColumnType("varchar(50)")
  6579. .HasCharSet("utf8")
  6580. .HasCollation("utf8_general_ci");
  6581. entity.Property(e => e.MobAppSecret)
  6582. .HasColumnType("varchar(50)")
  6583. .HasCharSet("utf8")
  6584. .HasCollation("utf8_general_ci");
  6585. entity.Property(e => e.QqAndroidAppId)
  6586. .HasColumnType("varchar(50)")
  6587. .HasCharSet("utf8")
  6588. .HasCollation("utf8_general_ci");
  6589. entity.Property(e => e.QqAndroidAppKey)
  6590. .HasColumnType("varchar(50)")
  6591. .HasCharSet("utf8")
  6592. .HasCollation("utf8_general_ci");
  6593. entity.Property(e => e.QqIosAppId)
  6594. .HasColumnType("varchar(50)")
  6595. .HasCharSet("utf8")
  6596. .HasCollation("utf8_general_ci");
  6597. entity.Property(e => e.QqIosAppKey)
  6598. .HasColumnType("varchar(50)")
  6599. .HasCharSet("utf8")
  6600. .HasCollation("utf8_general_ci");
  6601. entity.Property(e => e.ServerIp)
  6602. .HasColumnType("varchar(15)")
  6603. .HasCharSet("utf8")
  6604. .HasCollation("utf8_general_ci");
  6605. entity.Property(e => e.SmsApiDefaultTemplate)
  6606. .HasColumnType("varchar(200)")
  6607. .HasCharSet("utf8")
  6608. .HasCollation("utf8_general_ci");
  6609. entity.Property(e => e.SmsApiPwd)
  6610. .HasColumnType("varchar(50)")
  6611. .HasCharSet("utf8")
  6612. .HasCollation("utf8_general_ci");
  6613. entity.Property(e => e.SmsApiSign)
  6614. .HasColumnType("varchar(10)")
  6615. .HasCharSet("utf8")
  6616. .HasCollation("utf8_general_ci");
  6617. entity.Property(e => e.SmsApiUserId)
  6618. .HasColumnType("varchar(50)")
  6619. .HasCharSet("utf8")
  6620. .HasCollation("utf8_general_ci");
  6621. entity.Property(e => e.WeChatAppId)
  6622. .HasColumnType("varchar(50)")
  6623. .HasCharSet("utf8")
  6624. .HasCollation("utf8_general_ci");
  6625. entity.Property(e => e.WeChatAppSecret)
  6626. .HasColumnType("varchar(50)")
  6627. .HasCharSet("utf8")
  6628. .HasCollation("utf8_general_ci");
  6629. entity.Property(e => e.WeChatMchId)
  6630. .HasColumnType("varchar(20)")
  6631. .HasCharSet("utf8")
  6632. .HasCollation("utf8_general_ci");
  6633. entity.Property(e => e.WeChatMiniAppId)
  6634. .HasColumnType("varchar(50)")
  6635. .HasCharSet("utf8")
  6636. .HasCollation("utf8_general_ci");
  6637. entity.Property(e => e.WeChatMiniAppSecret)
  6638. .HasColumnType("varchar(50)")
  6639. .HasCharSet("utf8")
  6640. .HasCollation("utf8_general_ci");
  6641. entity.Property(e => e.WeChatOpenAppId)
  6642. .HasColumnType("varchar(50)")
  6643. .HasCharSet("utf8")
  6644. .HasCollation("utf8_general_ci");
  6645. entity.Property(e => e.WeChatOpenAppSecret)
  6646. .HasColumnType("varchar(50)")
  6647. .HasCharSet("utf8")
  6648. .HasCollation("utf8_general_ci");
  6649. entity.Property(e => e.WeChatPayKey)
  6650. .HasColumnType("varchar(50)")
  6651. .HasCharSet("utf8")
  6652. .HasCollation("utf8_general_ci");
  6653. });
  6654. modelBuilder.Entity<PullNewAct>(entity =>
  6655. {
  6656. entity.Property(e => e.Id).HasColumnType("int(11)");
  6657. entity.Property(e => e.ActEffectEndDate).HasColumnType("datetime");
  6658. entity.Property(e => e.ActEffectStartDate).HasColumnType("datetime");
  6659. entity.Property(e => e.ActStdCond)
  6660. .HasColumnType("varchar(32)")
  6661. .HasCharSet("utf8")
  6662. .HasCollation("utf8_general_ci");
  6663. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6664. entity.Property(e => e.CreateMan)
  6665. .HasColumnType("varchar(50)")
  6666. .HasCharSet("utf8")
  6667. .HasCollation("utf8_general_ci");
  6668. entity.Property(e => e.ProductName)
  6669. .HasColumnType("varchar(32)")
  6670. .HasCharSet("utf8")
  6671. .HasCollation("utf8_general_ci");
  6672. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6673. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6674. entity.Property(e => e.Remark)
  6675. .HasColumnType("varchar(128)")
  6676. .HasCharSet("utf8")
  6677. .HasCollation("utf8_general_ci");
  6678. entity.Property(e => e.SeoDescription)
  6679. .HasColumnType("varchar(500)")
  6680. .HasCharSet("utf8")
  6681. .HasCollation("utf8_general_ci");
  6682. entity.Property(e => e.SeoKeyword)
  6683. .HasColumnType("varchar(200)")
  6684. .HasCharSet("utf8")
  6685. .HasCollation("utf8_general_ci");
  6686. entity.Property(e => e.SeoTitle)
  6687. .HasColumnType("varchar(100)")
  6688. .HasCharSet("utf8")
  6689. .HasCollation("utf8_general_ci");
  6690. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  6691. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6692. entity.Property(e => e.Status).HasColumnType("int(11)");
  6693. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6694. entity.Property(e => e.UpdateMan)
  6695. .HasColumnType("varchar(50)")
  6696. .HasCharSet("utf8")
  6697. .HasCollation("utf8_general_ci");
  6698. entity.Property(e => e.Version).HasColumnType("int(11)");
  6699. });
  6700. modelBuilder.Entity<PullNewDetail>(entity =>
  6701. {
  6702. entity.Property(e => e.Id).HasColumnType("int(11)");
  6703. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6704. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6705. entity.Property(e => e.CreateMan)
  6706. .HasColumnType("varchar(50)")
  6707. .HasCharSet("utf8")
  6708. .HasCollation("utf8_general_ci");
  6709. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6710. entity.Property(e => e.RecMallBrandId).HasColumnType("int(11)");
  6711. entity.Property(e => e.RecMallOrder)
  6712. .HasColumnType("varchar(32)")
  6713. .HasCharSet("utf8")
  6714. .HasCollation("utf8_general_ci");
  6715. entity.Property(e => e.RecMallOrderTime).HasColumnType("datetime");
  6716. entity.Property(e => e.RecMallProductName)
  6717. .HasColumnType("varchar(32)")
  6718. .HasCharSet("utf8")
  6719. .HasCollation("utf8_general_ci");
  6720. entity.Property(e => e.RecMallProductNum).HasColumnType("int(11)");
  6721. entity.Property(e => e.RecMallSendTime).HasColumnType("datetime");
  6722. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  6723. entity.Property(e => e.RecUserType).HasColumnType("int(11)");
  6724. entity.Property(e => e.RegDate).HasColumnType("datetime");
  6725. entity.Property(e => e.Remark)
  6726. .HasColumnType("varchar(64)")
  6727. .HasCharSet("utf8")
  6728. .HasCollation("utf8_general_ci");
  6729. entity.Property(e => e.RewardStatus).HasColumnType("int(11)");
  6730. entity.Property(e => e.SeoDescription)
  6731. .HasColumnType("varchar(500)")
  6732. .HasCharSet("utf8")
  6733. .HasCollation("utf8_general_ci");
  6734. entity.Property(e => e.SeoKeyword)
  6735. .HasColumnType("varchar(200)")
  6736. .HasCharSet("utf8")
  6737. .HasCollation("utf8_general_ci");
  6738. entity.Property(e => e.SeoTitle)
  6739. .HasColumnType("varchar(100)")
  6740. .HasCharSet("utf8")
  6741. .HasCollation("utf8_general_ci");
  6742. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6743. entity.Property(e => e.StatDate)
  6744. .HasColumnType("varchar(8)")
  6745. .HasCharSet("utf8")
  6746. .HasCollation("utf8_general_ci");
  6747. entity.Property(e => e.StatMonth)
  6748. .HasColumnType("varchar(6)")
  6749. .HasCharSet("utf8")
  6750. .HasCollation("utf8_general_ci");
  6751. entity.Property(e => e.StatType).HasColumnType("int(11)");
  6752. entity.Property(e => e.Status).HasColumnType("int(11)");
  6753. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6754. entity.Property(e => e.UpdateMan)
  6755. .HasColumnType("varchar(50)")
  6756. .HasCharSet("utf8")
  6757. .HasCollation("utf8_general_ci");
  6758. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6759. entity.Property(e => e.Version).HasColumnType("int(11)");
  6760. });
  6761. modelBuilder.Entity<PullnewSummary>(entity =>
  6762. {
  6763. entity.Property(e => e.Id).HasColumnType("int(11)");
  6764. entity.Property(e => e.BizSnDelayDay).HasColumnType("int(11)");
  6765. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6766. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6767. entity.Property(e => e.CreateMan)
  6768. .HasColumnType("varchar(50)")
  6769. .HasCharSet("utf8")
  6770. .HasCollation("utf8_general_ci");
  6771. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6772. entity.Property(e => e.RecUserAuthNum).HasColumnType("int(11)");
  6773. entity.Property(e => e.RecUserDeliveryStdNum).HasColumnType("int(11)");
  6774. entity.Property(e => e.Remark)
  6775. .HasColumnType("varchar(64)")
  6776. .HasCharSet("utf8")
  6777. .HasCollation("utf8_general_ci");
  6778. entity.Property(e => e.RuleSnDelayDay).HasColumnType("int(11)");
  6779. entity.Property(e => e.SeoDescription)
  6780. .HasColumnType("varchar(500)")
  6781. .HasCharSet("utf8")
  6782. .HasCollation("utf8_general_ci");
  6783. entity.Property(e => e.SeoKeyword)
  6784. .HasColumnType("varchar(200)")
  6785. .HasCharSet("utf8")
  6786. .HasCollation("utf8_general_ci");
  6787. entity.Property(e => e.SeoTitle)
  6788. .HasColumnType("varchar(100)")
  6789. .HasCharSet("utf8")
  6790. .HasCollation("utf8_general_ci");
  6791. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6792. entity.Property(e => e.StatDate)
  6793. .HasColumnType("varchar(8)")
  6794. .HasCharSet("utf8")
  6795. .HasCollation("utf8_general_ci");
  6796. entity.Property(e => e.StatMonth)
  6797. .HasColumnType("varchar(6)")
  6798. .HasCharSet("utf8")
  6799. .HasCollation("utf8_general_ci");
  6800. entity.Property(e => e.Status).HasColumnType("int(11)");
  6801. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6802. entity.Property(e => e.UpdateMan)
  6803. .HasColumnType("varchar(50)")
  6804. .HasCharSet("utf8")
  6805. .HasCollation("utf8_general_ci");
  6806. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6807. entity.Property(e => e.Version).HasColumnType("int(11)");
  6808. });
  6809. modelBuilder.Entity<RecommendDirectUser>(entity =>
  6810. {
  6811. entity.Property(e => e.Id).HasColumnType("int(11)");
  6812. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6813. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  6814. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6815. entity.Property(e => e.SeoDescription)
  6816. .HasColumnType("varchar(500)")
  6817. .HasCharSet("utf8")
  6818. .HasCollation("utf8_general_ci");
  6819. entity.Property(e => e.SeoKeyword)
  6820. .HasColumnType("varchar(200)")
  6821. .HasCharSet("utf8")
  6822. .HasCollation("utf8_general_ci");
  6823. entity.Property(e => e.SeoTitle)
  6824. .HasColumnType("varchar(100)")
  6825. .HasCharSet("utf8")
  6826. .HasCollation("utf8_general_ci");
  6827. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6828. entity.Property(e => e.Status).HasColumnType("int(11)");
  6829. entity.Property(e => e.TradeMonth)
  6830. .HasColumnType("varchar(6)")
  6831. .HasCharSet("utf8")
  6832. .HasCollation("utf8_general_ci");
  6833. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6834. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6835. });
  6836. modelBuilder.Entity<RecommendTradeSummary>(entity =>
  6837. {
  6838. entity.Property(e => e.Id).HasColumnType("int(11)");
  6839. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6840. entity.Property(e => e.PosSn)
  6841. .HasColumnType("varchar(50)")
  6842. .HasCharSet("utf8")
  6843. .HasCollation("utf8_general_ci");
  6844. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6845. entity.Property(e => e.SeoDescription)
  6846. .HasColumnType("varchar(500)")
  6847. .HasCharSet("utf8")
  6848. .HasCollation("utf8_general_ci");
  6849. entity.Property(e => e.SeoKeyword)
  6850. .HasColumnType("varchar(200)")
  6851. .HasCharSet("utf8")
  6852. .HasCollation("utf8_general_ci");
  6853. entity.Property(e => e.SeoTitle)
  6854. .HasColumnType("varchar(100)")
  6855. .HasCharSet("utf8")
  6856. .HasCollation("utf8_general_ci");
  6857. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6858. entity.Property(e => e.Status).HasColumnType("int(11)");
  6859. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  6860. entity.Property(e => e.TradeMonth)
  6861. .HasColumnType("varchar(6)")
  6862. .HasCharSet("utf8")
  6863. .HasCollation("utf8_general_ci");
  6864. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6865. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6866. });
  6867. modelBuilder.Entity<RightDic>(entity =>
  6868. {
  6869. entity.Property(e => e.Id)
  6870. .HasColumnName("ID")
  6871. .HasColumnType("varchar(50)")
  6872. .HasCharSet("utf8")
  6873. .HasCollation("utf8_general_ci");
  6874. entity.Property(e => e.Icon)
  6875. .HasColumnType("varchar(50)")
  6876. .HasCharSet("utf8")
  6877. .HasCollation("utf8_general_ci");
  6878. entity.Property(e => e.MainDataList)
  6879. .HasColumnType("bit(1)")
  6880. .HasDefaultValueSql("b'0'");
  6881. entity.Property(e => e.MainMenu)
  6882. .HasColumnType("bit(1)")
  6883. .HasDefaultValueSql("b'0'");
  6884. entity.Property(e => e.MainStat)
  6885. .HasColumnType("bit(1)")
  6886. .HasDefaultValueSql("b'0'");
  6887. entity.Property(e => e.Name)
  6888. .HasColumnType("varchar(50)")
  6889. .HasCharSet("utf8")
  6890. .HasCollation("utf8_general_ci");
  6891. entity.Property(e => e.OtherRight)
  6892. .HasColumnType("varchar(500)")
  6893. .HasCharSet("utf8")
  6894. .HasCollation("utf8_general_ci");
  6895. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  6896. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6897. entity.Property(e => e.Url)
  6898. .HasColumnType("varchar(200)")
  6899. .HasCharSet("utf8")
  6900. .HasCollation("utf8_general_ci");
  6901. });
  6902. modelBuilder.Entity<ServiceCenter>(entity =>
  6903. {
  6904. entity.Property(e => e.Id).HasColumnType("int(11)");
  6905. entity.Property(e => e.CategoryId).HasColumnType("int(11)");
  6906. entity.Property(e => e.Content)
  6907. .HasColumnType("longtext")
  6908. .HasCharSet("utf8")
  6909. .HasCollation("utf8_general_ci");
  6910. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6911. entity.Property(e => e.CreateMan)
  6912. .HasColumnType("varchar(50)")
  6913. .HasCharSet("utf8")
  6914. .HasCollation("utf8_general_ci");
  6915. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6916. entity.Property(e => e.SeoDescription)
  6917. .HasColumnType("varchar(500)")
  6918. .HasCharSet("utf8")
  6919. .HasCollation("utf8_general_ci");
  6920. entity.Property(e => e.SeoKeyword)
  6921. .HasColumnType("varchar(200)")
  6922. .HasCharSet("utf8")
  6923. .HasCollation("utf8_general_ci");
  6924. entity.Property(e => e.SeoTitle)
  6925. .HasColumnType("varchar(100)")
  6926. .HasCharSet("utf8")
  6927. .HasCollation("utf8_general_ci");
  6928. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6929. entity.Property(e => e.Status).HasColumnType("int(11)");
  6930. entity.Property(e => e.SubTitle)
  6931. .HasColumnType("varchar(50)")
  6932. .HasCharSet("utf8")
  6933. .HasCollation("utf8_general_ci");
  6934. entity.Property(e => e.Title)
  6935. .HasColumnType("varchar(50)")
  6936. .HasCharSet("utf8")
  6937. .HasCollation("utf8_general_ci");
  6938. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6939. entity.Property(e => e.UpdateMan)
  6940. .HasColumnType("varchar(50)")
  6941. .HasCharSet("utf8")
  6942. .HasCollation("utf8_general_ci");
  6943. entity.Property(e => e.Version).HasColumnType("int(11)");
  6944. });
  6945. modelBuilder.Entity<SetMerchantTypeRecord>(entity =>
  6946. {
  6947. entity.Property(e => e.Id).HasColumnType("int(11)");
  6948. entity.Property(e => e.ActDate).HasColumnType("datetime");
  6949. entity.Property(e => e.ActStatus)
  6950. .HasColumnType("bit(1)")
  6951. .HasDefaultValueSql("b'0'");
  6952. entity.Property(e => e.BindDate).HasColumnType("datetime");
  6953. entity.Property(e => e.BindStatus)
  6954. .HasColumnType("bit(1)")
  6955. .HasDefaultValueSql("b'0'");
  6956. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6957. entity.Property(e => e.CreditAmount).HasColumnType("decimal(18,2)");
  6958. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6959. entity.Property(e => e.IsRecyc)
  6960. .HasColumnType("bit(1)")
  6961. .HasDefaultValueSql("b'0'");
  6962. entity.Property(e => e.MerNo)
  6963. .HasColumnType("varchar(50)")
  6964. .HasCharSet("utf8")
  6965. .HasCollation("utf8_general_ci");
  6966. entity.Property(e => e.Note)
  6967. .HasColumnType("varchar(50)")
  6968. .HasCharSet("utf8")
  6969. .HasCollation("utf8_general_ci");
  6970. entity.Property(e => e.PosSn)
  6971. .HasColumnType("varchar(50)")
  6972. .HasCharSet("utf8")
  6973. .HasCollation("utf8_general_ci");
  6974. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  6975. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6976. entity.Property(e => e.SeoDescription)
  6977. .HasColumnType("varchar(500)")
  6978. .HasCharSet("utf8")
  6979. .HasCollation("utf8_general_ci");
  6980. entity.Property(e => e.SeoKeyword)
  6981. .HasColumnType("varchar(200)")
  6982. .HasCharSet("utf8")
  6983. .HasCollation("utf8_general_ci");
  6984. entity.Property(e => e.SeoTitle)
  6985. .HasColumnType("varchar(100)")
  6986. .HasCharSet("utf8")
  6987. .HasCollation("utf8_general_ci");
  6988. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6989. entity.Property(e => e.Status).HasColumnType("int(11)");
  6990. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6991. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6992. });
  6993. modelBuilder.Entity<SmallStoreHouse>(entity =>
  6994. {
  6995. entity.Property(e => e.Id).HasColumnType("int(11)");
  6996. entity.Property(e => e.BrandId)
  6997. .HasColumnType("varchar(30)")
  6998. .HasCharSet("utf8")
  6999. .HasCollation("utf8_general_ci");
  7000. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7001. entity.Property(e => e.FromStoreId).HasColumnType("int(11)");
  7002. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  7003. entity.Property(e => e.Mobile)
  7004. .HasColumnType("varchar(11)")
  7005. .HasCharSet("utf8")
  7006. .HasCollation("utf8_general_ci");
  7007. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7008. entity.Property(e => e.Remark)
  7009. .HasColumnType("varchar(128)")
  7010. .HasCharSet("utf8")
  7011. .HasCollation("utf8_general_ci");
  7012. entity.Property(e => e.SeoDescription)
  7013. .HasColumnType("varchar(500)")
  7014. .HasCharSet("utf8")
  7015. .HasCollation("utf8_general_ci");
  7016. entity.Property(e => e.SeoKeyword)
  7017. .HasColumnType("varchar(200)")
  7018. .HasCharSet("utf8")
  7019. .HasCollation("utf8_general_ci");
  7020. entity.Property(e => e.SeoTitle)
  7021. .HasColumnType("varchar(100)")
  7022. .HasCharSet("utf8")
  7023. .HasCollation("utf8_general_ci");
  7024. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7025. entity.Property(e => e.Status).HasColumnType("int(11)");
  7026. entity.Property(e => e.StoreName)
  7027. .HasColumnType("varchar(32)")
  7028. .HasCharSet("utf8")
  7029. .HasCollation("utf8_general_ci");
  7030. entity.Property(e => e.StoreNo)
  7031. .HasColumnType("varchar(16)")
  7032. .HasCharSet("utf8")
  7033. .HasCollation("utf8_general_ci");
  7034. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  7035. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7036. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7037. });
  7038. modelBuilder.Entity<SpOrderNos>(entity =>
  7039. {
  7040. entity.HasKey(e => e.OrderNo)
  7041. .HasName("PRIMARY");
  7042. entity.Property(e => e.OrderNo)
  7043. .HasColumnType("varchar(50)")
  7044. .HasCharSet("utf8")
  7045. .HasCollation("utf8_general_ci");
  7046. });
  7047. modelBuilder.Entity<StoreBalance>(entity =>
  7048. {
  7049. entity.Property(e => e.Id).HasColumnType("int(11)");
  7050. entity.Property(e => e.AfterLaveNum).HasColumnType("int(11)");
  7051. entity.Property(e => e.AfterOutNum).HasColumnType("int(11)");
  7052. entity.Property(e => e.AfterTotalNum).HasColumnType("int(11)");
  7053. entity.Property(e => e.BeforeLaveNum).HasColumnType("int(11)");
  7054. entity.Property(e => e.BeforeOutNum).HasColumnType("int(11)");
  7055. entity.Property(e => e.BeforeTotalNum).HasColumnType("int(11)");
  7056. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7057. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7058. entity.Property(e => e.CreateMan)
  7059. .HasColumnType("varchar(50)")
  7060. .HasCharSet("utf8")
  7061. .HasCollation("utf8_general_ci");
  7062. entity.Property(e => e.OpStoreNum).HasColumnType("int(11)");
  7063. entity.Property(e => e.OpSymbol)
  7064. .HasColumnType("varchar(1)")
  7065. .HasCharSet("utf8")
  7066. .HasCollation("utf8_general_ci");
  7067. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7068. entity.Property(e => e.SeoDescription)
  7069. .HasColumnType("varchar(500)")
  7070. .HasCharSet("utf8")
  7071. .HasCollation("utf8_general_ci");
  7072. entity.Property(e => e.SeoKeyword)
  7073. .HasColumnType("varchar(200)")
  7074. .HasCharSet("utf8")
  7075. .HasCollation("utf8_general_ci");
  7076. entity.Property(e => e.SeoTitle)
  7077. .HasColumnType("varchar(100)")
  7078. .HasCharSet("utf8")
  7079. .HasCollation("utf8_general_ci");
  7080. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7081. entity.Property(e => e.Status).HasColumnType("int(11)");
  7082. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7083. entity.Property(e => e.TransRecordNo)
  7084. .HasColumnType("varchar(32)")
  7085. .HasCharSet("utf8")
  7086. .HasCollation("utf8_general_ci");
  7087. entity.Property(e => e.TransType).HasColumnType("int(11)");
  7088. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7089. entity.Property(e => e.UpdateMan)
  7090. .HasColumnType("varchar(50)")
  7091. .HasCharSet("utf8")
  7092. .HasCollation("utf8_general_ci");
  7093. entity.Property(e => e.Version).HasColumnType("int(11)");
  7094. });
  7095. modelBuilder.Entity<StoreChangeHistory>(entity =>
  7096. {
  7097. entity.Property(e => e.Id).HasColumnType("int(11)");
  7098. entity.Property(e => e.BizBatchNo)
  7099. .HasColumnType("varchar(32)")
  7100. .HasCharSet("utf8")
  7101. .HasCollation("utf8_general_ci");
  7102. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7103. entity.Property(e => e.ChangeRecordNo)
  7104. .HasColumnType("varchar(32)")
  7105. .HasCharSet("utf8")
  7106. .HasCollation("utf8_general_ci");
  7107. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7108. entity.Property(e => e.CreateMan)
  7109. .HasColumnType("varchar(50)")
  7110. .HasCharSet("utf8")
  7111. .HasCollation("utf8_general_ci");
  7112. entity.Property(e => e.DeviceModel)
  7113. .HasColumnType("varchar(32)")
  7114. .HasCharSet("utf8")
  7115. .HasCollation("utf8_general_ci");
  7116. entity.Property(e => e.DeviceType)
  7117. .HasColumnType("varchar(32)")
  7118. .HasCharSet("utf8")
  7119. .HasCollation("utf8_general_ci");
  7120. entity.Property(e => e.DeviceVendor)
  7121. .HasColumnType("varchar(32)")
  7122. .HasCharSet("utf8")
  7123. .HasCollation("utf8_general_ci");
  7124. entity.Property(e => e.FromDate).HasColumnType("datetime");
  7125. entity.Property(e => e.FromRemark)
  7126. .HasColumnType("varchar(64)")
  7127. .HasCharSet("utf8")
  7128. .HasCollation("utf8_general_ci");
  7129. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  7130. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7131. entity.Property(e => e.SeoDescription)
  7132. .HasColumnType("varchar(500)")
  7133. .HasCharSet("utf8")
  7134. .HasCollation("utf8_general_ci");
  7135. entity.Property(e => e.SeoKeyword)
  7136. .HasColumnType("varchar(200)")
  7137. .HasCharSet("utf8")
  7138. .HasCollation("utf8_general_ci");
  7139. entity.Property(e => e.SeoTitle)
  7140. .HasColumnType("varchar(100)")
  7141. .HasCharSet("utf8")
  7142. .HasCollation("utf8_general_ci");
  7143. entity.Property(e => e.SnNo)
  7144. .HasColumnType("varchar(32)")
  7145. .HasCharSet("utf8")
  7146. .HasCollation("utf8_general_ci");
  7147. entity.Property(e => e.SnType).HasColumnType("int(11)");
  7148. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7149. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  7150. entity.Property(e => e.Status).HasColumnType("int(11)");
  7151. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  7152. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7153. entity.Property(e => e.ToDate).HasColumnType("datetime");
  7154. entity.Property(e => e.ToRemark)
  7155. .HasColumnType("varchar(64)")
  7156. .HasCharSet("utf8")
  7157. .HasCollation("utf8_general_ci");
  7158. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  7159. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  7160. entity.Property(e => e.TransType).HasColumnType("int(11)");
  7161. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7162. entity.Property(e => e.UpdateMan)
  7163. .HasColumnType("varchar(50)")
  7164. .HasCharSet("utf8")
  7165. .HasCollation("utf8_general_ci");
  7166. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7167. entity.Property(e => e.Version).HasColumnType("int(11)");
  7168. });
  7169. modelBuilder.Entity<StoreForCode>(entity =>
  7170. {
  7171. entity.HasKey(e => e.Code)
  7172. .HasName("PRIMARY");
  7173. entity.Property(e => e.Code)
  7174. .HasColumnType("varchar(30)")
  7175. .HasCharSet("utf8")
  7176. .HasCollation("utf8_general_ci");
  7177. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7178. });
  7179. modelBuilder.Entity<StoreForName>(entity =>
  7180. {
  7181. entity.HasKey(e => e.Name)
  7182. .HasName("PRIMARY");
  7183. entity.Property(e => e.Name)
  7184. .HasColumnType("varchar(30)")
  7185. .HasCharSet("utf8")
  7186. .HasCollation("utf8_general_ci");
  7187. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7188. });
  7189. modelBuilder.Entity<StoreHouse>(entity =>
  7190. {
  7191. entity.Property(e => e.Id).HasColumnType("int(11)");
  7192. entity.Property(e => e.Address)
  7193. .HasColumnType("varchar(128)")
  7194. .HasCharSet("utf8")
  7195. .HasCollation("utf8_general_ci");
  7196. entity.Property(e => e.Areas)
  7197. .HasColumnType("varchar(30)")
  7198. .HasCharSet("utf8")
  7199. .HasCollation("utf8_general_ci");
  7200. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  7201. entity.Property(e => e.AuthFlag)
  7202. .HasColumnType("bit(1)")
  7203. .HasDefaultValueSql("b'0'");
  7204. entity.Property(e => e.BrandId)
  7205. .HasColumnType("varchar(30)")
  7206. .HasCharSet("utf8")
  7207. .HasCollation("utf8_general_ci");
  7208. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7209. entity.Property(e => e.CreateMan)
  7210. .HasColumnType("varchar(50)")
  7211. .HasCharSet("utf8")
  7212. .HasCollation("utf8_general_ci");
  7213. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  7214. entity.Property(e => e.LimitTopUserId)
  7215. .HasColumnType("varchar(100)")
  7216. .HasCharSet("utf8")
  7217. .HasCollation("utf8_general_ci");
  7218. entity.Property(e => e.ManageMobile)
  7219. .HasColumnType("varchar(11)")
  7220. .HasCharSet("utf8")
  7221. .HasCollation("utf8_general_ci");
  7222. entity.Property(e => e.ManageUserId).HasColumnType("int(11)");
  7223. entity.Property(e => e.ManagerEmail)
  7224. .HasColumnType("varchar(32)")
  7225. .HasCharSet("utf8")
  7226. .HasCollation("utf8_general_ci");
  7227. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  7228. entity.Property(e => e.ParentNav)
  7229. .HasColumnType("longtext")
  7230. .HasCharSet("utf8")
  7231. .HasCollation("utf8_general_ci");
  7232. entity.Property(e => e.ParentStoreId).HasColumnType("int(11)");
  7233. entity.Property(e => e.ProductName)
  7234. .HasColumnType("varchar(32)")
  7235. .HasCharSet("utf8")
  7236. .HasCollation("utf8_general_ci");
  7237. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7238. entity.Property(e => e.Remark)
  7239. .HasColumnType("varchar(128)")
  7240. .HasCharSet("utf8")
  7241. .HasCollation("utf8_general_ci");
  7242. entity.Property(e => e.SeoDescription)
  7243. .HasColumnType("varchar(500)")
  7244. .HasCharSet("utf8")
  7245. .HasCollation("utf8_general_ci");
  7246. entity.Property(e => e.SeoKeyword)
  7247. .HasColumnType("varchar(200)")
  7248. .HasCharSet("utf8")
  7249. .HasCollation("utf8_general_ci");
  7250. entity.Property(e => e.SeoTitle)
  7251. .HasColumnType("varchar(100)")
  7252. .HasCharSet("utf8")
  7253. .HasCollation("utf8_general_ci");
  7254. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7255. entity.Property(e => e.Status).HasColumnType("int(11)");
  7256. entity.Property(e => e.StoreKind).HasColumnType("int(11)");
  7257. entity.Property(e => e.StoreName)
  7258. .HasColumnType("varchar(32)")
  7259. .HasCharSet("utf8")
  7260. .HasCollation("utf8_general_ci");
  7261. entity.Property(e => e.StoreNo)
  7262. .HasColumnType("varchar(16)")
  7263. .HasCharSet("utf8")
  7264. .HasCollation("utf8_general_ci");
  7265. entity.Property(e => e.StoreStatus).HasColumnType("int(11)");
  7266. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  7267. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  7268. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7269. entity.Property(e => e.UpdateMan)
  7270. .HasColumnType("varchar(50)")
  7271. .HasCharSet("utf8")
  7272. .HasCollation("utf8_general_ci");
  7273. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7274. entity.Property(e => e.Version).HasColumnType("int(11)");
  7275. });
  7276. modelBuilder.Entity<StoreHouseAmountRecord>(entity =>
  7277. {
  7278. entity.Property(e => e.Id).HasColumnType("int(11)");
  7279. entity.Property(e => e.AfterAmount).HasColumnType("decimal(18,2)");
  7280. entity.Property(e => e.AmountType).HasColumnType("int(11)");
  7281. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  7282. entity.Property(e => e.BeforeAmount).HasColumnType("decimal(18,2)");
  7283. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7284. entity.Property(e => e.OperateType).HasColumnType("int(11)");
  7285. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7286. entity.Property(e => e.SeoDescription)
  7287. .HasColumnType("varchar(500)")
  7288. .HasCharSet("utf8")
  7289. .HasCollation("utf8_general_ci");
  7290. entity.Property(e => e.SeoKeyword)
  7291. .HasColumnType("varchar(200)")
  7292. .HasCharSet("utf8")
  7293. .HasCollation("utf8_general_ci");
  7294. entity.Property(e => e.SeoTitle)
  7295. .HasColumnType("varchar(100)")
  7296. .HasCharSet("utf8")
  7297. .HasCollation("utf8_general_ci");
  7298. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7299. entity.Property(e => e.Status).HasColumnType("int(11)");
  7300. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7301. entity.Property(e => e.UseAmount).HasColumnType("decimal(18,2)");
  7302. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7303. });
  7304. modelBuilder.Entity<StoreMachineApply>(entity =>
  7305. {
  7306. entity.Property(e => e.Id).HasColumnType("int(11)");
  7307. entity.Property(e => e.ApplyNo)
  7308. .HasColumnType("varchar(50)")
  7309. .HasCharSet("utf8")
  7310. .HasCollation("utf8_general_ci");
  7311. entity.Property(e => e.ApplyNum).HasColumnType("int(11)");
  7312. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7313. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7314. entity.Property(e => e.ErpCode)
  7315. .HasColumnType("varchar(50)")
  7316. .HasCharSet("utf8")
  7317. .HasCollation("utf8_general_ci");
  7318. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7319. entity.Property(e => e.SendMode)
  7320. .HasColumnType("varchar(50)")
  7321. .HasCharSet("utf8")
  7322. .HasCollation("utf8_general_ci");
  7323. entity.Property(e => e.SendNum).HasColumnType("int(11)");
  7324. entity.Property(e => e.SendSn)
  7325. .HasColumnType("mediumtext")
  7326. .HasCharSet("utf8")
  7327. .HasCollation("utf8_general_ci");
  7328. entity.Property(e => e.SeoDescription)
  7329. .HasColumnType("varchar(500)")
  7330. .HasCharSet("utf8")
  7331. .HasCollation("utf8_general_ci");
  7332. entity.Property(e => e.SeoKeyword)
  7333. .HasColumnType("varchar(200)")
  7334. .HasCharSet("utf8")
  7335. .HasCollation("utf8_general_ci");
  7336. entity.Property(e => e.SeoTitle)
  7337. .HasColumnType("varchar(100)")
  7338. .HasCharSet("utf8")
  7339. .HasCollation("utf8_general_ci");
  7340. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7341. entity.Property(e => e.Status).HasColumnType("int(11)");
  7342. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7343. entity.Property(e => e.UseAmount).HasColumnType("decimal(18,2)");
  7344. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7345. });
  7346. modelBuilder.Entity<StoreMallOrderSummary>(entity =>
  7347. {
  7348. entity.Property(e => e.Id).HasColumnType("int(11)");
  7349. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  7350. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7351. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7352. entity.Property(e => e.CreateMan)
  7353. .HasColumnType("varchar(50)")
  7354. .HasCharSet("utf8")
  7355. .HasCollation("utf8_general_ci");
  7356. entity.Property(e => e.OrderAmt).HasColumnType("int(11)");
  7357. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  7358. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7359. entity.Property(e => e.RefundAmt).HasColumnType("decimal(18,2)");
  7360. entity.Property(e => e.RefundOrderNum).HasColumnType("int(11)");
  7361. entity.Property(e => e.Remark)
  7362. .HasColumnType("varchar(64)")
  7363. .HasCharSet("utf8")
  7364. .HasCollation("utf8_general_ci");
  7365. entity.Property(e => e.SeoDescription)
  7366. .HasColumnType("varchar(500)")
  7367. .HasCharSet("utf8")
  7368. .HasCollation("utf8_general_ci");
  7369. entity.Property(e => e.SeoKeyword)
  7370. .HasColumnType("varchar(200)")
  7371. .HasCharSet("utf8")
  7372. .HasCollation("utf8_general_ci");
  7373. entity.Property(e => e.SeoTitle)
  7374. .HasColumnType("varchar(100)")
  7375. .HasCharSet("utf8")
  7376. .HasCollation("utf8_general_ci");
  7377. entity.Property(e => e.SettleAmt).HasColumnType("decimal(18,2)");
  7378. entity.Property(e => e.SettleStatus).HasColumnType("int(11)");
  7379. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7380. entity.Property(e => e.Status).HasColumnType("int(11)");
  7381. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7382. entity.Property(e => e.TradeMonth)
  7383. .HasColumnType("varchar(6)")
  7384. .HasCharSet("utf8")
  7385. .HasCollation("utf8_general_ci");
  7386. entity.Property(e => e.UnitPrice).HasColumnType("decimal(18,2)");
  7387. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7388. entity.Property(e => e.UpdateMan)
  7389. .HasColumnType("varchar(50)")
  7390. .HasCharSet("utf8")
  7391. .HasCollation("utf8_general_ci");
  7392. entity.Property(e => e.Version).HasColumnType("int(11)");
  7393. });
  7394. modelBuilder.Entity<StoreSnActivateSummary>(entity =>
  7395. {
  7396. entity.Property(e => e.Id).HasColumnType("int(11)");
  7397. entity.Property(e => e.ActivateNum).HasColumnType("int(11)");
  7398. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  7399. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7400. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7401. entity.Property(e => e.CreateMan)
  7402. .HasColumnType("varchar(50)")
  7403. .HasCharSet("utf8")
  7404. .HasCollation("utf8_general_ci");
  7405. entity.Property(e => e.EffectActNum).HasColumnType("int(11)");
  7406. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7407. entity.Property(e => e.RejectActNum).HasColumnType("int(11)");
  7408. entity.Property(e => e.Remark)
  7409. .HasColumnType("varchar(64)")
  7410. .HasCharSet("utf8")
  7411. .HasCollation("utf8_general_ci");
  7412. entity.Property(e => e.SeoDescription)
  7413. .HasColumnType("varchar(500)")
  7414. .HasCharSet("utf8")
  7415. .HasCollation("utf8_general_ci");
  7416. entity.Property(e => e.SeoKeyword)
  7417. .HasColumnType("varchar(200)")
  7418. .HasCharSet("utf8")
  7419. .HasCollation("utf8_general_ci");
  7420. entity.Property(e => e.SeoTitle)
  7421. .HasColumnType("varchar(100)")
  7422. .HasCharSet("utf8")
  7423. .HasCollation("utf8_general_ci");
  7424. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7425. entity.Property(e => e.Status).HasColumnType("int(11)");
  7426. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7427. entity.Property(e => e.TradeDate)
  7428. .HasColumnType("varchar(8)")
  7429. .HasCharSet("utf8")
  7430. .HasCollation("utf8_general_ci");
  7431. entity.Property(e => e.TradeMonth)
  7432. .HasColumnType("varchar(6)")
  7433. .HasCharSet("utf8")
  7434. .HasCollation("utf8_general_ci");
  7435. entity.Property(e => e.TransferActNum).HasColumnType("int(11)");
  7436. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7437. entity.Property(e => e.UpdateMan)
  7438. .HasColumnType("varchar(50)")
  7439. .HasCharSet("utf8")
  7440. .HasCollation("utf8_general_ci");
  7441. entity.Property(e => e.UserApplyNum).HasColumnType("int(11)");
  7442. entity.Property(e => e.Version).HasColumnType("int(11)");
  7443. });
  7444. modelBuilder.Entity<StoreStockChange>(entity =>
  7445. {
  7446. entity.Property(e => e.Id).HasColumnType("int(11)");
  7447. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  7448. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  7449. entity.Property(e => e.BindMerchant).HasColumnType("int(11)");
  7450. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  7451. entity.Property(e => e.BizBatchNo)
  7452. .HasColumnType("varchar(32)")
  7453. .HasCharSet("utf8")
  7454. .HasCollation("utf8_general_ci");
  7455. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7456. entity.Property(e => e.BrandType)
  7457. .HasColumnType("varchar(10)")
  7458. .HasCharSet("utf8")
  7459. .HasCollation("utf8_general_ci");
  7460. entity.Property(e => e.ChangeNo)
  7461. .HasColumnType("varchar(32)")
  7462. .HasCharSet("utf8")
  7463. .HasCollation("utf8_general_ci");
  7464. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7465. entity.Property(e => e.CreateMan)
  7466. .HasColumnType("varchar(50)")
  7467. .HasCharSet("utf8")
  7468. .HasCollation("utf8_general_ci");
  7469. entity.Property(e => e.DeviceModel)
  7470. .HasColumnType("varchar(32)")
  7471. .HasCharSet("utf8")
  7472. .HasCollation("utf8_general_ci");
  7473. entity.Property(e => e.DeviceType)
  7474. .HasColumnType("varchar(32)")
  7475. .HasCharSet("utf8")
  7476. .HasCollation("utf8_general_ci");
  7477. entity.Property(e => e.DeviceVendor)
  7478. .HasColumnType("varchar(32)")
  7479. .HasCharSet("utf8")
  7480. .HasCollation("utf8_general_ci");
  7481. entity.Property(e => e.ExpressNo)
  7482. .HasColumnType("varchar(32)")
  7483. .HasCharSet("utf8")
  7484. .HasCollation("utf8_general_ci");
  7485. entity.Property(e => e.FromDate).HasColumnType("datetime");
  7486. entity.Property(e => e.FromRemark)
  7487. .HasColumnType("varchar(64)")
  7488. .HasCharSet("utf8")
  7489. .HasCollation("utf8_general_ci");
  7490. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  7491. entity.Property(e => e.ProductName)
  7492. .HasColumnType("varchar(32)")
  7493. .HasCharSet("utf8")
  7494. .HasCollation("utf8_general_ci");
  7495. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7496. entity.Property(e => e.SeoDescription)
  7497. .HasColumnType("varchar(500)")
  7498. .HasCharSet("utf8")
  7499. .HasCollation("utf8_general_ci");
  7500. entity.Property(e => e.SeoKeyword)
  7501. .HasColumnType("varchar(200)")
  7502. .HasCharSet("utf8")
  7503. .HasCollation("utf8_general_ci");
  7504. entity.Property(e => e.SeoTitle)
  7505. .HasColumnType("varchar(100)")
  7506. .HasCharSet("utf8")
  7507. .HasCollation("utf8_general_ci");
  7508. entity.Property(e => e.SnNo)
  7509. .HasColumnType("varchar(32)")
  7510. .HasCharSet("utf8")
  7511. .HasCollation("utf8_general_ci");
  7512. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  7513. entity.Property(e => e.SnType).HasColumnType("int(11)");
  7514. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7515. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  7516. entity.Property(e => e.Status).HasColumnType("int(11)");
  7517. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  7518. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7519. entity.Property(e => e.ToDate).HasColumnType("datetime");
  7520. entity.Property(e => e.ToRemark)
  7521. .HasColumnType("varchar(64)")
  7522. .HasCharSet("utf8")
  7523. .HasCollation("utf8_general_ci");
  7524. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  7525. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  7526. entity.Property(e => e.TransType).HasColumnType("int(11)");
  7527. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7528. entity.Property(e => e.UpdateMan)
  7529. .HasColumnType("varchar(50)")
  7530. .HasCharSet("utf8")
  7531. .HasCollation("utf8_general_ci");
  7532. entity.Property(e => e.Version).HasColumnType("int(11)");
  7533. });
  7534. modelBuilder.Entity<StoreSwapSn>(entity =>
  7535. {
  7536. entity.Property(e => e.Id).HasColumnType("int(11)");
  7537. entity.Property(e => e.ActType).HasColumnType("int(11)");
  7538. entity.Property(e => e.ActTypeDesc)
  7539. .HasColumnType("varchar(64)")
  7540. .HasCharSet("utf8")
  7541. .HasCollation("utf8_general_ci");
  7542. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  7543. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7544. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7545. entity.Property(e => e.CreateMan)
  7546. .HasColumnType("varchar(50)")
  7547. .HasCharSet("utf8")
  7548. .HasCollation("utf8_general_ci");
  7549. entity.Property(e => e.PosType)
  7550. .HasColumnType("varchar(32)")
  7551. .HasCharSet("utf8")
  7552. .HasCollation("utf8_general_ci");
  7553. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7554. entity.Property(e => e.Remark)
  7555. .HasColumnType("varchar(128)")
  7556. .HasCharSet("utf8")
  7557. .HasCollation("utf8_general_ci");
  7558. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  7559. entity.Property(e => e.SeoDescription)
  7560. .HasColumnType("varchar(500)")
  7561. .HasCharSet("utf8")
  7562. .HasCollation("utf8_general_ci");
  7563. entity.Property(e => e.SeoKeyword)
  7564. .HasColumnType("varchar(200)")
  7565. .HasCharSet("utf8")
  7566. .HasCollation("utf8_general_ci");
  7567. entity.Property(e => e.SeoTitle)
  7568. .HasColumnType("varchar(100)")
  7569. .HasCharSet("utf8")
  7570. .HasCollation("utf8_general_ci");
  7571. entity.Property(e => e.SnNo)
  7572. .HasColumnType("varchar(32)")
  7573. .HasCharSet("utf8")
  7574. .HasCollation("utf8_general_ci");
  7575. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  7576. entity.Property(e => e.SnType).HasColumnType("int(11)");
  7577. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7578. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  7579. entity.Property(e => e.Status).HasColumnType("int(11)");
  7580. entity.Property(e => e.SwapApplyDate).HasColumnType("datetime");
  7581. entity.Property(e => e.SwapApplyOrderNo)
  7582. .HasColumnType("varchar(32)")
  7583. .HasCharSet("utf8")
  7584. .HasCollation("utf8_general_ci");
  7585. entity.Property(e => e.SwapExtProductTypes)
  7586. .HasColumnType("varchar(16)")
  7587. .HasCharSet("utf8")
  7588. .HasCollation("utf8_general_ci");
  7589. entity.Property(e => e.SwapSnNo)
  7590. .HasColumnType("varchar(32)")
  7591. .HasCharSet("utf8")
  7592. .HasCollation("utf8_general_ci");
  7593. entity.Property(e => e.SwapStatus).HasColumnType("int(11)");
  7594. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7595. entity.Property(e => e.UpdateMan)
  7596. .HasColumnType("varchar(50)")
  7597. .HasCharSet("utf8")
  7598. .HasCollation("utf8_general_ci");
  7599. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7600. entity.Property(e => e.Version).HasColumnType("int(11)");
  7601. });
  7602. modelBuilder.Entity<SysAdmin>(entity =>
  7603. {
  7604. entity.Property(e => e.Id).HasColumnType("int(11)");
  7605. entity.Property(e => e.AdminName)
  7606. .HasColumnType("varchar(50)")
  7607. .HasCharSet("utf8")
  7608. .HasCollation("utf8_general_ci");
  7609. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7610. entity.Property(e => e.CreateMan)
  7611. .HasColumnType("varchar(50)")
  7612. .HasCharSet("utf8")
  7613. .HasCollation("utf8_general_ci");
  7614. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  7615. entity.Property(e => e.Password)
  7616. .HasColumnType("varchar(32)")
  7617. .HasCharSet("utf8")
  7618. .HasCollation("utf8_general_ci");
  7619. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7620. entity.Property(e => e.RealName)
  7621. .HasColumnType("varchar(50)")
  7622. .HasCharSet("utf8")
  7623. .HasCollation("utf8_general_ci");
  7624. entity.Property(e => e.Role)
  7625. .HasColumnType("varchar(30)")
  7626. .HasCharSet("utf8")
  7627. .HasCollation("utf8_general_ci");
  7628. entity.Property(e => e.SeoDescription)
  7629. .HasColumnType("varchar(500)")
  7630. .HasCharSet("utf8")
  7631. .HasCollation("utf8_general_ci");
  7632. entity.Property(e => e.SeoKeyword)
  7633. .HasColumnType("varchar(200)")
  7634. .HasCharSet("utf8")
  7635. .HasCollation("utf8_general_ci");
  7636. entity.Property(e => e.SeoTitle)
  7637. .HasColumnType("varchar(100)")
  7638. .HasCharSet("utf8")
  7639. .HasCollation("utf8_general_ci");
  7640. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7641. entity.Property(e => e.Status).HasColumnType("int(11)");
  7642. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7643. entity.Property(e => e.UpdateMan)
  7644. .HasColumnType("varchar(50)")
  7645. .HasCharSet("utf8")
  7646. .HasCollation("utf8_general_ci");
  7647. entity.Property(e => e.Version).HasColumnType("int(11)");
  7648. });
  7649. modelBuilder.Entity<SysAdminRole>(entity =>
  7650. {
  7651. entity.Property(e => e.Id).HasColumnType("int(11)");
  7652. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7653. entity.Property(e => e.CreateMan)
  7654. .HasColumnType("varchar(50)")
  7655. .HasCharSet("utf8")
  7656. .HasCollation("utf8_general_ci");
  7657. entity.Property(e => e.Details)
  7658. .HasColumnType("longtext")
  7659. .HasCharSet("utf8")
  7660. .HasCollation("utf8_general_ci");
  7661. entity.Property(e => e.Name)
  7662. .HasColumnType("varchar(50)")
  7663. .HasCharSet("utf8")
  7664. .HasCollation("utf8_general_ci");
  7665. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7666. entity.Property(e => e.RightInfo)
  7667. .HasColumnType("longtext")
  7668. .HasCharSet("utf8")
  7669. .HasCollation("utf8_general_ci");
  7670. entity.Property(e => e.SeoDescription)
  7671. .HasColumnType("varchar(500)")
  7672. .HasCharSet("utf8")
  7673. .HasCollation("utf8_general_ci");
  7674. entity.Property(e => e.SeoKeyword)
  7675. .HasColumnType("varchar(200)")
  7676. .HasCharSet("utf8")
  7677. .HasCollation("utf8_general_ci");
  7678. entity.Property(e => e.SeoTitle)
  7679. .HasColumnType("varchar(100)")
  7680. .HasCharSet("utf8")
  7681. .HasCollation("utf8_general_ci");
  7682. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7683. entity.Property(e => e.Status).HasColumnType("int(11)");
  7684. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7685. entity.Property(e => e.UpdateMan)
  7686. .HasColumnType("varchar(50)")
  7687. .HasCharSet("utf8")
  7688. .HasCollation("utf8_general_ci");
  7689. entity.Property(e => e.Version).HasColumnType("int(11)");
  7690. });
  7691. modelBuilder.Entity<SysLog>(entity =>
  7692. {
  7693. entity.Property(e => e.Id).HasColumnType("int(11)");
  7694. entity.Property(e => e.Contents)
  7695. .HasColumnType("varchar(200)")
  7696. .HasCharSet("utf8")
  7697. .HasCollation("utf8_general_ci");
  7698. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7699. entity.Property(e => e.CreateMan)
  7700. .HasColumnType("varchar(50)")
  7701. .HasCharSet("utf8")
  7702. .HasCollation("utf8_general_ci");
  7703. });
  7704. modelBuilder.Entity<SysRechargeRecord>(entity =>
  7705. {
  7706. entity.Property(e => e.Id).HasColumnType("int(11)");
  7707. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  7708. entity.Property(e => e.BatchCode)
  7709. .HasColumnType("varchar(32)")
  7710. .HasCharSet("utf8")
  7711. .HasCollation("utf8_general_ci");
  7712. entity.Property(e => e.BizTime).HasColumnType("datetime");
  7713. entity.Property(e => e.BizType).HasColumnType("int(11)");
  7714. entity.Property(e => e.ClientIp)
  7715. .HasColumnType("varchar(15)")
  7716. .HasCharSet("utf8")
  7717. .HasCollation("utf8_general_ci");
  7718. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7719. entity.Property(e => e.CreateMan)
  7720. .HasColumnType("varchar(50)")
  7721. .HasCharSet("utf8")
  7722. .HasCollation("utf8_general_ci");
  7723. entity.Property(e => e.PartnerTradeNo)
  7724. .HasColumnType("varchar(32)")
  7725. .HasCharSet("utf8")
  7726. .HasCollation("utf8_general_ci");
  7727. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7728. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7729. entity.Property(e => e.RechargeRecNo)
  7730. .HasColumnType("varchar(32)")
  7731. .HasCharSet("utf8")
  7732. .HasCollation("utf8_general_ci");
  7733. entity.Property(e => e.SeoDescription)
  7734. .HasColumnType("varchar(500)")
  7735. .HasCharSet("utf8")
  7736. .HasCollation("utf8_general_ci");
  7737. entity.Property(e => e.SeoKeyword)
  7738. .HasColumnType("varchar(200)")
  7739. .HasCharSet("utf8")
  7740. .HasCollation("utf8_general_ci");
  7741. entity.Property(e => e.SeoTitle)
  7742. .HasColumnType("varchar(100)")
  7743. .HasCharSet("utf8")
  7744. .HasCollation("utf8_general_ci");
  7745. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7746. entity.Property(e => e.Status).HasColumnType("int(11)");
  7747. entity.Property(e => e.SyncStatus).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.UserId).HasColumnType("int(11)");
  7754. entity.Property(e => e.Version).HasColumnType("int(11)");
  7755. });
  7756. modelBuilder.Entity<SystemSet>(entity =>
  7757. {
  7758. entity.Property(e => e.Id).HasColumnType("int(11)");
  7759. entity.Property(e => e.Address)
  7760. .HasColumnType("varchar(100)")
  7761. .HasCharSet("utf8")
  7762. .HasCollation("utf8_general_ci");
  7763. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7764. entity.Property(e => e.CreateMan)
  7765. .HasColumnType("varchar(50)")
  7766. .HasCharSet("utf8")
  7767. .HasCollation("utf8_general_ci");
  7768. entity.Property(e => e.IndexDescription)
  7769. .HasColumnType("longtext")
  7770. .HasCharSet("utf8")
  7771. .HasCollation("utf8_general_ci");
  7772. entity.Property(e => e.IndexKeyword)
  7773. .HasColumnType("varchar(200)")
  7774. .HasCharSet("utf8")
  7775. .HasCollation("utf8_general_ci");
  7776. entity.Property(e => e.Logo)
  7777. .HasColumnType("varchar(200)")
  7778. .HasCharSet("utf8")
  7779. .HasCollation("utf8_general_ci");
  7780. entity.Property(e => e.Phone)
  7781. .HasColumnType("varchar(100)")
  7782. .HasCharSet("utf8")
  7783. .HasCollation("utf8_general_ci");
  7784. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7785. entity.Property(e => e.RightInfo)
  7786. .HasColumnType("longtext")
  7787. .HasCharSet("utf8")
  7788. .HasCollation("utf8_general_ci");
  7789. entity.Property(e => e.SeoDescription)
  7790. .HasColumnType("varchar(500)")
  7791. .HasCharSet("utf8")
  7792. .HasCollation("utf8_general_ci");
  7793. entity.Property(e => e.SeoKeyword)
  7794. .HasColumnType("varchar(200)")
  7795. .HasCharSet("utf8")
  7796. .HasCollation("utf8_general_ci");
  7797. entity.Property(e => e.SeoTitle)
  7798. .HasColumnType("varchar(100)")
  7799. .HasCharSet("utf8")
  7800. .HasCollation("utf8_general_ci");
  7801. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7802. entity.Property(e => e.StartAdPhoto)
  7803. .HasColumnType("varchar(200)")
  7804. .HasCharSet("utf8")
  7805. .HasCollation("utf8_general_ci");
  7806. entity.Property(e => e.Status).HasColumnType("int(11)");
  7807. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7808. entity.Property(e => e.UpdateMan)
  7809. .HasColumnType("varchar(50)")
  7810. .HasCharSet("utf8")
  7811. .HasCollation("utf8_general_ci");
  7812. entity.Property(e => e.UploadAutoWater)
  7813. .HasColumnType("bit(1)")
  7814. .HasDefaultValueSql("b'0'");
  7815. entity.Property(e => e.UploadAutoZoom)
  7816. .HasColumnType("bit(1)")
  7817. .HasDefaultValueSql("b'0'");
  7818. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  7819. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  7820. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  7821. entity.Property(e => e.UploadExt)
  7822. .HasColumnType("varchar(100)")
  7823. .HasCharSet("utf8")
  7824. .HasCollation("utf8_general_ci");
  7825. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  7826. entity.Property(e => e.UploadOss)
  7827. .HasColumnType("bit(1)")
  7828. .HasDefaultValueSql("b'0'");
  7829. entity.Property(e => e.UploadWaterPath)
  7830. .HasColumnType("varchar(200)")
  7831. .HasCharSet("utf8")
  7832. .HasCollation("utf8_general_ci");
  7833. entity.Property(e => e.UploadWaterPosition)
  7834. .HasColumnType("varchar(15)")
  7835. .HasCharSet("utf8")
  7836. .HasCollation("utf8_general_ci");
  7837. entity.Property(e => e.Version).HasColumnType("int(11)");
  7838. entity.Property(e => e.WebName)
  7839. .HasColumnType("varchar(50)")
  7840. .HasCharSet("utf8")
  7841. .HasCollation("utf8_general_ci");
  7842. entity.Property(e => e.WebStatCode)
  7843. .HasColumnType("longtext")
  7844. .HasCharSet("utf8")
  7845. .HasCollation("utf8_general_ci");
  7846. entity.Property(e => e.WebUrl)
  7847. .HasColumnType("varchar(200)")
  7848. .HasCharSet("utf8")
  7849. .HasCollation("utf8_general_ci");
  7850. });
  7851. modelBuilder.Entity<TeamApply>(entity =>
  7852. {
  7853. entity.Property(e => e.Id).HasColumnType("int(11)");
  7854. entity.Property(e => e.Areas)
  7855. .HasColumnType("varchar(30)")
  7856. .HasCharSet("utf8")
  7857. .HasCollation("utf8_general_ci");
  7858. entity.Property(e => e.AuditRemark)
  7859. .HasColumnType("varchar(64)")
  7860. .HasCharSet("utf8")
  7861. .HasCollation("utf8_general_ci");
  7862. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7863. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7864. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7865. entity.Property(e => e.CreateMan)
  7866. .HasColumnType("varchar(50)")
  7867. .HasCharSet("utf8")
  7868. .HasCollation("utf8_general_ci");
  7869. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7870. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7871. entity.Property(e => e.EnterEndDate).HasColumnType("datetime");
  7872. entity.Property(e => e.EnterStartDate).HasColumnType("datetime");
  7873. entity.Property(e => e.ManagerName)
  7874. .HasColumnType("varchar(32)")
  7875. .HasCharSet("utf8")
  7876. .HasCollation("utf8_general_ci");
  7877. entity.Property(e => e.ManagerNo)
  7878. .HasColumnType("varchar(32)")
  7879. .HasCharSet("utf8")
  7880. .HasCollation("utf8_general_ci");
  7881. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7882. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7883. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7884. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7885. entity.Property(e => e.Remark)
  7886. .HasColumnType("varchar(64)")
  7887. .HasCharSet("utf8")
  7888. .HasCollation("utf8_general_ci");
  7889. entity.Property(e => e.SeoDescription)
  7890. .HasColumnType("varchar(500)")
  7891. .HasCharSet("utf8")
  7892. .HasCollation("utf8_general_ci");
  7893. entity.Property(e => e.SeoKeyword)
  7894. .HasColumnType("varchar(200)")
  7895. .HasCharSet("utf8")
  7896. .HasCollation("utf8_general_ci");
  7897. entity.Property(e => e.SeoTitle)
  7898. .HasColumnType("varchar(100)")
  7899. .HasCharSet("utf8")
  7900. .HasCollation("utf8_general_ci");
  7901. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7902. entity.Property(e => e.Status).HasColumnType("int(11)");
  7903. entity.Property(e => e.TeamName)
  7904. .HasColumnType("varchar(32)")
  7905. .HasCharSet("utf8")
  7906. .HasCollation("utf8_general_ci");
  7907. entity.Property(e => e.TeamNo)
  7908. .HasColumnType("varchar(32)")
  7909. .HasCharSet("utf8")
  7910. .HasCollation("utf8_general_ci");
  7911. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7912. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7913. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7914. entity.Property(e => e.UpdateMan)
  7915. .HasColumnType("varchar(50)")
  7916. .HasCharSet("utf8")
  7917. .HasCollation("utf8_general_ci");
  7918. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7919. entity.Property(e => e.Version).HasColumnType("int(11)");
  7920. entity.Property(e => e.WatchWord)
  7921. .HasColumnType("varchar(32)")
  7922. .HasCharSet("utf8")
  7923. .HasCollation("utf8_general_ci");
  7924. });
  7925. modelBuilder.Entity<TeamApplyForTeamName>(entity =>
  7926. {
  7927. entity.HasKey(e => e.TeamName)
  7928. .HasName("PRIMARY");
  7929. entity.Property(e => e.TeamName)
  7930. .HasColumnType("varchar(32)")
  7931. .HasCharSet("utf8")
  7932. .HasCollation("utf8_general_ci");
  7933. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7934. });
  7935. modelBuilder.Entity<TeamApplyForTeamNo>(entity =>
  7936. {
  7937. entity.HasKey(e => e.TeamNo)
  7938. .HasName("PRIMARY");
  7939. entity.Property(e => e.TeamNo)
  7940. .HasColumnType("varchar(32)")
  7941. .HasCharSet("utf8")
  7942. .HasCollation("utf8_general_ci");
  7943. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7944. });
  7945. modelBuilder.Entity<TeamBlackList>(entity =>
  7946. {
  7947. entity.Property(e => e.Id).HasColumnType("int(11)");
  7948. entity.Property(e => e.BlackStatus).HasColumnType("int(11)");
  7949. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7950. entity.Property(e => e.CreateMan)
  7951. .HasColumnType("varchar(50)")
  7952. .HasCharSet("utf8")
  7953. .HasCollation("utf8_general_ci");
  7954. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7955. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7956. entity.Property(e => e.ManagerName)
  7957. .HasColumnType("varchar(32)")
  7958. .HasCharSet("utf8")
  7959. .HasCollation("utf8_general_ci");
  7960. entity.Property(e => e.ManagerNo)
  7961. .HasColumnType("varchar(32)")
  7962. .HasCharSet("utf8")
  7963. .HasCollation("utf8_general_ci");
  7964. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7965. entity.Property(e => e.Remark)
  7966. .HasColumnType("varchar(64)")
  7967. .HasCharSet("utf8")
  7968. .HasCollation("utf8_general_ci");
  7969. entity.Property(e => e.SeoDescription)
  7970. .HasColumnType("varchar(500)")
  7971. .HasCharSet("utf8")
  7972. .HasCollation("utf8_general_ci");
  7973. entity.Property(e => e.SeoKeyword)
  7974. .HasColumnType("varchar(200)")
  7975. .HasCharSet("utf8")
  7976. .HasCollation("utf8_general_ci");
  7977. entity.Property(e => e.SeoTitle)
  7978. .HasColumnType("varchar(100)")
  7979. .HasCharSet("utf8")
  7980. .HasCollation("utf8_general_ci");
  7981. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7982. entity.Property(e => e.Status).HasColumnType("int(11)");
  7983. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7984. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7985. entity.Property(e => e.UpdateMan)
  7986. .HasColumnType("varchar(50)")
  7987. .HasCharSet("utf8")
  7988. .HasCollation("utf8_general_ci");
  7989. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7990. entity.Property(e => e.Version).HasColumnType("int(11)");
  7991. });
  7992. modelBuilder.Entity<TeamConfig>(entity =>
  7993. {
  7994. entity.Property(e => e.Id).HasColumnType("int(11)");
  7995. entity.Property(e => e.BlacklistCycle).HasColumnType("int(11)");
  7996. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7997. entity.Property(e => e.CreateMan)
  7998. .HasColumnType("varchar(50)")
  7999. .HasCharSet("utf8")
  8000. .HasCollation("utf8_general_ci");
  8001. entity.Property(e => e.EnterEndMin).HasColumnType("int(11)");
  8002. entity.Property(e => e.LimitBuddyNo)
  8003. .HasColumnType("varchar(128)")
  8004. .HasCharSet("utf8")
  8005. .HasCollation("utf8_general_ci");
  8006. entity.Property(e => e.MaxCycleNum).HasColumnType("int(11)");
  8007. entity.Property(e => e.MaxStartDayLimit).HasColumnType("int(11)");
  8008. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  8009. entity.Property(e => e.MinCycleNum).HasColumnType("int(11)");
  8010. entity.Property(e => e.MinStartDayLimit).HasColumnType("int(11)");
  8011. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  8012. entity.Property(e => e.OverlineStatus)
  8013. .HasColumnType("bit(1)")
  8014. .HasDefaultValueSql("b'0'");
  8015. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8016. entity.Property(e => e.Remark)
  8017. .HasColumnType("varchar(64)")
  8018. .HasCharSet("utf8")
  8019. .HasCollation("utf8_general_ci");
  8020. entity.Property(e => e.SeoDescription)
  8021. .HasColumnType("varchar(500)")
  8022. .HasCharSet("utf8")
  8023. .HasCollation("utf8_general_ci");
  8024. entity.Property(e => e.SeoKeyword)
  8025. .HasColumnType("varchar(200)")
  8026. .HasCharSet("utf8")
  8027. .HasCollation("utf8_general_ci");
  8028. entity.Property(e => e.SeoTitle)
  8029. .HasColumnType("varchar(100)")
  8030. .HasCharSet("utf8")
  8031. .HasCollation("utf8_general_ci");
  8032. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8033. entity.Property(e => e.Status).HasColumnType("int(11)");
  8034. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8035. entity.Property(e => e.UpdateMan)
  8036. .HasColumnType("varchar(50)")
  8037. .HasCharSet("utf8")
  8038. .HasCollation("utf8_general_ci");
  8039. entity.Property(e => e.Version).HasColumnType("int(11)");
  8040. });
  8041. modelBuilder.Entity<TeamDayTop>(entity =>
  8042. {
  8043. entity.Property(e => e.Id).HasColumnType("int(11)");
  8044. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  8045. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8046. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8047. entity.Property(e => e.CreateMan)
  8048. .HasColumnType("varchar(50)")
  8049. .HasCharSet("utf8")
  8050. .HasCollation("utf8_general_ci");
  8051. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8052. entity.Property(e => e.Remark)
  8053. .HasColumnType("varchar(64)")
  8054. .HasCharSet("utf8")
  8055. .HasCollation("utf8_general_ci");
  8056. entity.Property(e => e.SeoDescription)
  8057. .HasColumnType("varchar(500)")
  8058. .HasCharSet("utf8")
  8059. .HasCollation("utf8_general_ci");
  8060. entity.Property(e => e.SeoKeyword)
  8061. .HasColumnType("varchar(200)")
  8062. .HasCharSet("utf8")
  8063. .HasCollation("utf8_general_ci");
  8064. entity.Property(e => e.SeoTitle)
  8065. .HasColumnType("varchar(100)")
  8066. .HasCharSet("utf8")
  8067. .HasCollation("utf8_general_ci");
  8068. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8069. entity.Property(e => e.StatDate)
  8070. .HasColumnType("varchar(8)")
  8071. .HasCharSet("utf8")
  8072. .HasCollation("utf8_general_ci");
  8073. entity.Property(e => e.StatMonth)
  8074. .HasColumnType("varchar(6)")
  8075. .HasCharSet("utf8")
  8076. .HasCollation("utf8_general_ci");
  8077. entity.Property(e => e.Status).HasColumnType("int(11)");
  8078. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  8079. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  8080. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  8081. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  8082. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  8083. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8084. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8085. entity.Property(e => e.UpdateMan)
  8086. .HasColumnType("varchar(50)")
  8087. .HasCharSet("utf8")
  8088. .HasCollation("utf8_general_ci");
  8089. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8090. entity.Property(e => e.Version).HasColumnType("int(11)");
  8091. });
  8092. modelBuilder.Entity<TeamOfferApply>(entity =>
  8093. {
  8094. entity.Property(e => e.Id).HasColumnType("int(11)");
  8095. entity.Property(e => e.Areas)
  8096. .HasColumnType("varchar(30)")
  8097. .HasCharSet("utf8")
  8098. .HasCollation("utf8_general_ci");
  8099. entity.Property(e => e.AuditRemark)
  8100. .HasColumnType("varchar(64)")
  8101. .HasCharSet("utf8")
  8102. .HasCollation("utf8_general_ci");
  8103. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  8104. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  8105. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8106. entity.Property(e => e.CreateMan)
  8107. .HasColumnType("varchar(50)")
  8108. .HasCharSet("utf8")
  8109. .HasCollation("utf8_general_ci");
  8110. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  8111. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  8112. entity.Property(e => e.EnterDate).HasColumnType("datetime");
  8113. entity.Property(e => e.ManagerName)
  8114. .HasColumnType("varchar(32)")
  8115. .HasCharSet("utf8")
  8116. .HasCollation("utf8_general_ci");
  8117. entity.Property(e => e.ManagerNo)
  8118. .HasColumnType("varchar(32)")
  8119. .HasCharSet("utf8")
  8120. .HasCollation("utf8_general_ci");
  8121. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  8122. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8123. entity.Property(e => e.Remark)
  8124. .HasColumnType("varchar(64)")
  8125. .HasCharSet("utf8")
  8126. .HasCollation("utf8_general_ci");
  8127. entity.Property(e => e.SeoDescription)
  8128. .HasColumnType("varchar(500)")
  8129. .HasCharSet("utf8")
  8130. .HasCollation("utf8_general_ci");
  8131. entity.Property(e => e.SeoKeyword)
  8132. .HasColumnType("varchar(200)")
  8133. .HasCharSet("utf8")
  8134. .HasCollation("utf8_general_ci");
  8135. entity.Property(e => e.SeoTitle)
  8136. .HasColumnType("varchar(100)")
  8137. .HasCharSet("utf8")
  8138. .HasCollation("utf8_general_ci");
  8139. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8140. entity.Property(e => e.Status).HasColumnType("int(11)");
  8141. entity.Property(e => e.TeamApplyStatus).HasColumnType("int(11)");
  8142. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  8143. entity.Property(e => e.TeamLeader).HasColumnType("int(11)");
  8144. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  8145. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8146. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8147. entity.Property(e => e.UpdateMan)
  8148. .HasColumnType("varchar(50)")
  8149. .HasCharSet("utf8")
  8150. .HasCollation("utf8_general_ci");
  8151. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8152. entity.Property(e => e.Version).HasColumnType("int(11)");
  8153. });
  8154. modelBuilder.Entity<TeamPersonDayTop>(entity =>
  8155. {
  8156. entity.Property(e => e.Id).HasColumnType("int(11)");
  8157. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  8158. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8159. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8160. entity.Property(e => e.CreateMan)
  8161. .HasColumnType("varchar(50)")
  8162. .HasCharSet("utf8")
  8163. .HasCollation("utf8_general_ci");
  8164. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8165. entity.Property(e => e.Remark)
  8166. .HasColumnType("varchar(64)")
  8167. .HasCharSet("utf8")
  8168. .HasCollation("utf8_general_ci");
  8169. entity.Property(e => e.SeoDescription)
  8170. .HasColumnType("varchar(500)")
  8171. .HasCharSet("utf8")
  8172. .HasCollation("utf8_general_ci");
  8173. entity.Property(e => e.SeoKeyword)
  8174. .HasColumnType("varchar(200)")
  8175. .HasCharSet("utf8")
  8176. .HasCollation("utf8_general_ci");
  8177. entity.Property(e => e.SeoTitle)
  8178. .HasColumnType("varchar(100)")
  8179. .HasCharSet("utf8")
  8180. .HasCollation("utf8_general_ci");
  8181. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8182. entity.Property(e => e.StatDate)
  8183. .HasColumnType("varchar(8)")
  8184. .HasCharSet("utf8")
  8185. .HasCollation("utf8_general_ci");
  8186. entity.Property(e => e.StatMonth)
  8187. .HasColumnType("varchar(6)")
  8188. .HasCharSet("utf8")
  8189. .HasCollation("utf8_general_ci");
  8190. entity.Property(e => e.Status).HasColumnType("int(11)");
  8191. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  8192. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  8193. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  8194. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  8195. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  8196. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8197. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8198. entity.Property(e => e.UpdateMan)
  8199. .HasColumnType("varchar(50)")
  8200. .HasCharSet("utf8")
  8201. .HasCollation("utf8_general_ci");
  8202. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8203. entity.Property(e => e.Version).HasColumnType("int(11)");
  8204. });
  8205. modelBuilder.Entity<TmpCert>(entity =>
  8206. {
  8207. entity.HasKey(e => e.MakerCode)
  8208. .HasName("PRIMARY");
  8209. entity.Property(e => e.MakerCode)
  8210. .HasColumnType("varchar(50)")
  8211. .HasCharSet("latin1")
  8212. .HasCollation("latin1_swedish_ci");
  8213. entity.Property(e => e.CertId)
  8214. .HasColumnType("varchar(50)")
  8215. .HasCharSet("latin1")
  8216. .HasCollation("latin1_swedish_ci");
  8217. });
  8218. modelBuilder.Entity<TmpTradeNo>(entity =>
  8219. {
  8220. entity.HasKey(e => e.RecordNo)
  8221. .HasName("PRIMARY");
  8222. entity.Property(e => e.RecordNo)
  8223. .HasColumnType("varchar(50)")
  8224. .HasCharSet("latin1")
  8225. .HasCollation("latin1_swedish_ci");
  8226. });
  8227. modelBuilder.Entity<TradeDaySummary>(entity =>
  8228. {
  8229. entity.HasIndex(e => new { e.UserId, e.TradeMonth, e.TradeDate, e.BrandId, e.QueryCount, e.VipFlag, e.PayType, e.SeoTitle })
  8230. .HasName("TradeDaySummaryIndex");
  8231. entity.Property(e => e.Id).HasColumnType("int(11)");
  8232. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8233. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8234. entity.Property(e => e.CreateMan)
  8235. .HasColumnType("varchar(50)")
  8236. .HasCharSet("utf8")
  8237. .HasCollation("utf8_general_ci");
  8238. entity.Property(e => e.HelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8239. entity.Property(e => e.HelpDirectDebitCapNum).HasColumnType("decimal(18,2)");
  8240. entity.Property(e => e.HelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8241. entity.Property(e => e.HelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8242. entity.Property(e => e.HelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8243. entity.Property(e => e.HelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8244. entity.Property(e => e.HelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8245. entity.Property(e => e.HelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8246. entity.Property(e => e.HelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  8247. entity.Property(e => e.HelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8248. entity.Property(e => e.HelpNonDirectDebitCapNum).HasColumnType("decimal(18,2)");
  8249. entity.Property(e => e.HelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8250. entity.Property(e => e.HelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8251. entity.Property(e => e.HelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8252. entity.Property(e => e.HelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8253. entity.Property(e => e.HelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8254. entity.Property(e => e.HelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8255. entity.Property(e => e.HelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  8256. entity.Property(e => e.MgrName)
  8257. .HasColumnType("varchar(32)")
  8258. .HasCharSet("utf8")
  8259. .HasCollation("utf8_general_ci");
  8260. entity.Property(e => e.MgrNo)
  8261. .HasColumnType("varchar(16)")
  8262. .HasCharSet("utf8")
  8263. .HasCollation("utf8_general_ci");
  8264. entity.Property(e => e.NotHelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8265. entity.Property(e => e.NotHelpDirectDebitCapNum).HasColumnType("int(11)");
  8266. entity.Property(e => e.NotHelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8267. entity.Property(e => e.NotHelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8268. entity.Property(e => e.NotHelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8269. entity.Property(e => e.NotHelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8270. entity.Property(e => e.NotHelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8271. entity.Property(e => e.NotHelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8272. entity.Property(e => e.NotHelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  8273. entity.Property(e => e.NotHelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8274. entity.Property(e => e.NotHelpNonDirectDebitCapNum).HasColumnType("int(11)");
  8275. entity.Property(e => e.NotHelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8276. entity.Property(e => e.NotHelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8277. entity.Property(e => e.NotHelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8278. entity.Property(e => e.NotHelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8279. entity.Property(e => e.NotHelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8280. entity.Property(e => e.NotHelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8281. entity.Property(e => e.NotHelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  8282. entity.Property(e => e.PayType).HasColumnType("int(11)");
  8283. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8284. entity.Property(e => e.SeoDescription)
  8285. .HasColumnType("varchar(500)")
  8286. .HasCharSet("utf8")
  8287. .HasCollation("utf8_general_ci");
  8288. entity.Property(e => e.SeoKeyword)
  8289. .HasColumnType("varchar(200)")
  8290. .HasCharSet("utf8")
  8291. .HasCollation("utf8_general_ci");
  8292. entity.Property(e => e.SeoTitle)
  8293. .HasColumnType("varchar(100)")
  8294. .HasCharSet("utf8")
  8295. .HasCollation("utf8_general_ci");
  8296. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8297. entity.Property(e => e.Status).HasColumnType("int(11)");
  8298. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8299. entity.Property(e => e.TradeDate)
  8300. .HasColumnType("varchar(8)")
  8301. .HasCharSet("utf8")
  8302. .HasCollation("utf8_general_ci");
  8303. entity.Property(e => e.TradeMonth)
  8304. .HasColumnType("varchar(6)")
  8305. .HasCharSet("utf8")
  8306. .HasCollation("utf8_general_ci");
  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.UserId).HasColumnType("int(11)");
  8313. entity.Property(e => e.Version).HasColumnType("int(11)");
  8314. entity.Property(e => e.VipFlag).HasColumnType("int(11)");
  8315. });
  8316. modelBuilder.Entity<TradeRecord>(entity =>
  8317. {
  8318. entity.Property(e => e.Id).HasColumnType("int(11)");
  8319. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  8320. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8321. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  8322. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  8323. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8324. entity.Property(e => e.CreateMan)
  8325. .HasColumnType("varchar(50)")
  8326. .HasCharSet("utf8")
  8327. .HasCollation("utf8_general_ci");
  8328. entity.Property(e => e.DirectFlag)
  8329. .HasColumnType("bit(1)")
  8330. .HasDefaultValueSql("b'0'");
  8331. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  8332. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  8333. entity.Property(e => e.MerHelpFlag)
  8334. .HasColumnType("bit(1)")
  8335. .HasDefaultValueSql("b'0'");
  8336. entity.Property(e => e.MerNo)
  8337. .HasColumnType("varchar(32)")
  8338. .HasCharSet("utf8")
  8339. .HasCollation("utf8_general_ci");
  8340. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  8341. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8342. entity.Property(e => e.ParentNav)
  8343. .HasColumnType("mediumtext")
  8344. .HasCharSet("utf8")
  8345. .HasCollation("utf8_general_ci");
  8346. entity.Property(e => e.PayType).HasColumnType("int(11)");
  8347. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  8348. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8349. entity.Property(e => e.RecordNo)
  8350. .HasColumnType("varchar(50)")
  8351. .HasCharSet("utf8")
  8352. .HasCollation("utf8_general_ci");
  8353. entity.Property(e => e.Remark)
  8354. .HasColumnType("varchar(64)")
  8355. .HasCharSet("utf8")
  8356. .HasCollation("utf8_general_ci");
  8357. entity.Property(e => e.SeoDescription)
  8358. .HasColumnType("varchar(500)")
  8359. .HasCharSet("utf8")
  8360. .HasCollation("utf8_general_ci");
  8361. entity.Property(e => e.SeoKeyword)
  8362. .HasColumnType("varchar(200)")
  8363. .HasCharSet("utf8")
  8364. .HasCollation("utf8_general_ci");
  8365. entity.Property(e => e.SeoTitle)
  8366. .HasColumnType("varchar(100)")
  8367. .HasCharSet("utf8")
  8368. .HasCollation("utf8_general_ci");
  8369. entity.Property(e => e.SnNo)
  8370. .HasColumnType("varchar(32)")
  8371. .HasCharSet("utf8")
  8372. .HasCollation("utf8_general_ci");
  8373. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8374. entity.Property(e => e.Status).HasColumnType("int(11)");
  8375. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8376. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8377. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  8378. entity.Property(e => e.TradeSerialNo)
  8379. .HasColumnType("varchar(48)")
  8380. .HasCharSet("utf8")
  8381. .HasCollation("utf8_general_ci");
  8382. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8383. entity.Property(e => e.UpdateMan)
  8384. .HasColumnType("varchar(50)")
  8385. .HasCharSet("utf8")
  8386. .HasCollation("utf8_general_ci");
  8387. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8388. entity.Property(e => e.Version).HasColumnType("int(11)");
  8389. entity.Property(e => e.VipFlag).HasColumnType("int(11)");
  8390. });
  8391. modelBuilder.Entity<TradeRecordTest>(entity =>
  8392. {
  8393. entity.Property(e => e.Id).HasColumnType("int(11)");
  8394. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  8395. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8396. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  8397. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  8398. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8399. entity.Property(e => e.CreateMan)
  8400. .HasColumnType("varchar(50)")
  8401. .HasCharSet("utf8")
  8402. .HasCollation("utf8_general_ci");
  8403. entity.Property(e => e.DirectFlag)
  8404. .HasColumnType("bit(1)")
  8405. .HasDefaultValueSql("b'0'");
  8406. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  8407. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  8408. entity.Property(e => e.MerHelpFlag)
  8409. .HasColumnType("bit(1)")
  8410. .HasDefaultValueSql("b'0'");
  8411. entity.Property(e => e.MerNo)
  8412. .HasColumnType("varchar(32)")
  8413. .HasCharSet("utf8")
  8414. .HasCollation("utf8_general_ci");
  8415. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  8416. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8417. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  8418. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8419. entity.Property(e => e.RecordNo)
  8420. .HasColumnType("varchar(100)")
  8421. .HasCharSet("utf8")
  8422. .HasCollation("utf8_general_ci");
  8423. entity.Property(e => e.Remark)
  8424. .HasColumnType("varchar(64)")
  8425. .HasCharSet("utf8")
  8426. .HasCollation("utf8_general_ci");
  8427. entity.Property(e => e.SeoDescription)
  8428. .HasColumnType("varchar(500)")
  8429. .HasCharSet("utf8")
  8430. .HasCollation("utf8_general_ci");
  8431. entity.Property(e => e.SeoKeyword)
  8432. .HasColumnType("varchar(200)")
  8433. .HasCharSet("utf8")
  8434. .HasCollation("utf8_general_ci");
  8435. entity.Property(e => e.SeoTitle)
  8436. .HasColumnType("varchar(100)")
  8437. .HasCharSet("utf8")
  8438. .HasCollation("utf8_general_ci");
  8439. entity.Property(e => e.SnNo)
  8440. .HasColumnType("varchar(32)")
  8441. .HasCharSet("utf8")
  8442. .HasCollation("utf8_general_ci");
  8443. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8444. entity.Property(e => e.Status).HasColumnType("int(11)");
  8445. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8446. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8447. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  8448. entity.Property(e => e.TradeSerialNo)
  8449. .HasColumnType("varchar(48)")
  8450. .HasCharSet("utf8")
  8451. .HasCollation("utf8_general_ci");
  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<UploadParams>(entity =>
  8461. {
  8462. entity.Property(e => e.Id).HasColumnType("int(11)");
  8463. entity.Property(e => e.ColumnEnName)
  8464. .HasColumnType("varchar(50)")
  8465. .HasCharSet("utf8")
  8466. .HasCollation("utf8_general_ci");
  8467. entity.Property(e => e.ColumnName)
  8468. .HasColumnType("varchar(50)")
  8469. .HasCharSet("utf8")
  8470. .HasCollation("utf8_general_ci");
  8471. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8472. entity.Property(e => e.CreateMan)
  8473. .HasColumnType("varchar(50)")
  8474. .HasCharSet("utf8")
  8475. .HasCollation("utf8_general_ci");
  8476. entity.Property(e => e.ParamString)
  8477. .HasColumnType("varchar(200)")
  8478. .HasCharSet("utf8")
  8479. .HasCollation("utf8_general_ci");
  8480. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8481. entity.Property(e => e.SeoDescription)
  8482. .HasColumnType("varchar(500)")
  8483. .HasCharSet("utf8")
  8484. .HasCollation("utf8_general_ci");
  8485. entity.Property(e => e.SeoKeyword)
  8486. .HasColumnType("varchar(200)")
  8487. .HasCharSet("utf8")
  8488. .HasCollation("utf8_general_ci");
  8489. entity.Property(e => e.SeoTitle)
  8490. .HasColumnType("varchar(100)")
  8491. .HasCharSet("utf8")
  8492. .HasCollation("utf8_general_ci");
  8493. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8494. entity.Property(e => e.Status).HasColumnType("int(11)");
  8495. entity.Property(e => e.TableEnName)
  8496. .HasColumnType("varchar(50)")
  8497. .HasCharSet("utf8")
  8498. .HasCollation("utf8_general_ci");
  8499. entity.Property(e => e.TableName)
  8500. .HasColumnType("varchar(50)")
  8501. .HasCharSet("utf8")
  8502. .HasCollation("utf8_general_ci");
  8503. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8504. entity.Property(e => e.UpdateMan)
  8505. .HasColumnType("varchar(50)")
  8506. .HasCharSet("utf8")
  8507. .HasCollation("utf8_general_ci");
  8508. entity.Property(e => e.Version).HasColumnType("int(11)");
  8509. });
  8510. modelBuilder.Entity<UserAccount>(entity =>
  8511. {
  8512. entity.Property(e => e.Id).HasColumnType("int(11)");
  8513. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  8514. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  8515. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8516. entity.Property(e => e.CreateMan)
  8517. .HasColumnType("varchar(50)")
  8518. .HasCharSet("utf8")
  8519. .HasCollation("utf8_general_ci");
  8520. entity.Property(e => e.FixedAmount).HasColumnType("decimal(18,2)");
  8521. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  8522. entity.Property(e => e.LeaderReserve).HasColumnType("decimal(18,2)");
  8523. entity.Property(e => e.LockStatus).HasColumnType("int(11)");
  8524. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8525. entity.Property(e => e.SeoDescription)
  8526. .HasColumnType("varchar(500)")
  8527. .HasCharSet("utf8")
  8528. .HasCollation("utf8_general_ci");
  8529. entity.Property(e => e.SeoKeyword)
  8530. .HasColumnType("varchar(200)")
  8531. .HasCharSet("utf8")
  8532. .HasCollation("utf8_general_ci");
  8533. entity.Property(e => e.SeoTitle)
  8534. .HasColumnType("varchar(100)")
  8535. .HasCharSet("utf8")
  8536. .HasCollation("utf8_general_ci");
  8537. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8538. entity.Property(e => e.Status).HasColumnType("int(11)");
  8539. entity.Property(e => e.TeamTotalOverProfit).HasColumnType("decimal(18,2)");
  8540. entity.Property(e => e.TeamTotalProfit).HasColumnType("decimal(18,2)");
  8541. entity.Property(e => e.TeamTotalServiceProfit).HasColumnType("decimal(18,2)");
  8542. entity.Property(e => e.TempAmount).HasColumnType("decimal(18,2)");
  8543. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  8544. entity.Property(e => e.TotalOverProfit).HasColumnType("decimal(18,2)");
  8545. entity.Property(e => e.TotalProfit).HasColumnType("decimal(18,2)");
  8546. entity.Property(e => e.TotalServiceProfit).HasColumnType("decimal(18,2)");
  8547. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8548. entity.Property(e => e.UpdateMan)
  8549. .HasColumnType("varchar(50)")
  8550. .HasCharSet("utf8")
  8551. .HasCollation("utf8_general_ci");
  8552. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8553. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  8554. entity.Property(e => e.UserType).HasColumnType("int(11)");
  8555. entity.Property(e => e.Version).HasColumnType("int(11)");
  8556. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  8557. });
  8558. modelBuilder.Entity<UserAccountRecord>(entity =>
  8559. {
  8560. entity.Property(e => e.Id).HasColumnType("int(11)");
  8561. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  8562. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  8563. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  8564. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  8565. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  8566. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  8567. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  8568. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  8569. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8570. entity.Property(e => e.CreateMan)
  8571. .HasColumnType("varchar(50)")
  8572. .HasCharSet("utf8")
  8573. .HasCollation("utf8_general_ci");
  8574. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  8575. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8576. entity.Property(e => e.Remark)
  8577. .HasColumnType("varchar(64)")
  8578. .HasCharSet("utf8")
  8579. .HasCollation("utf8_general_ci");
  8580. entity.Property(e => e.SeoDescription)
  8581. .HasColumnType("varchar(500)")
  8582. .HasCharSet("utf8")
  8583. .HasCollation("utf8_general_ci");
  8584. entity.Property(e => e.SeoKeyword)
  8585. .HasColumnType("varchar(200)")
  8586. .HasCharSet("utf8")
  8587. .HasCollation("utf8_general_ci");
  8588. entity.Property(e => e.SeoTitle)
  8589. .HasColumnType("varchar(100)")
  8590. .HasCharSet("utf8")
  8591. .HasCollation("utf8_general_ci");
  8592. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8593. entity.Property(e => e.Status).HasColumnType("int(11)");
  8594. entity.Property(e => e.TransRecordNo)
  8595. .HasColumnType("varchar(32)")
  8596. .HasCharSet("utf8")
  8597. .HasCollation("utf8_general_ci");
  8598. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8599. entity.Property(e => e.UpdateMan)
  8600. .HasColumnType("varchar(50)")
  8601. .HasCharSet("utf8")
  8602. .HasCollation("utf8_general_ci");
  8603. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8604. entity.Property(e => e.Version).HasColumnType("int(11)");
  8605. });
  8606. modelBuilder.Entity<UserAddress>(entity =>
  8607. {
  8608. entity.Property(e => e.Id).HasColumnType("int(11)");
  8609. entity.Property(e => e.Address)
  8610. .HasColumnType("varchar(100)")
  8611. .HasCharSet("utf8")
  8612. .HasCollation("utf8_general_ci");
  8613. entity.Property(e => e.Areas)
  8614. .HasColumnType("varchar(30)")
  8615. .HasCharSet("utf8")
  8616. .HasCollation("utf8_general_ci");
  8617. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8618. entity.Property(e => e.CreateMan)
  8619. .HasColumnType("varchar(50)")
  8620. .HasCharSet("utf8")
  8621. .HasCollation("utf8_general_ci");
  8622. entity.Property(e => e.IsDefault)
  8623. .HasColumnType("bit(1)")
  8624. .HasDefaultValueSql("b'0'");
  8625. entity.Property(e => e.Mobile)
  8626. .HasColumnType("varchar(11)")
  8627. .HasCharSet("utf8")
  8628. .HasCollation("utf8_general_ci");
  8629. entity.Property(e => e.PostalCode)
  8630. .HasColumnType("varchar(6)")
  8631. .HasCharSet("utf8")
  8632. .HasCollation("utf8_general_ci");
  8633. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8634. entity.Property(e => e.RealName)
  8635. .HasColumnType("varchar(10)")
  8636. .HasCharSet("utf8")
  8637. .HasCollation("utf8_general_ci");
  8638. entity.Property(e => e.SeoDescription)
  8639. .HasColumnType("varchar(500)")
  8640. .HasCharSet("utf8")
  8641. .HasCollation("utf8_general_ci");
  8642. entity.Property(e => e.SeoKeyword)
  8643. .HasColumnType("varchar(200)")
  8644. .HasCharSet("utf8")
  8645. .HasCollation("utf8_general_ci");
  8646. entity.Property(e => e.SeoTitle)
  8647. .HasColumnType("varchar(100)")
  8648. .HasCharSet("utf8")
  8649. .HasCollation("utf8_general_ci");
  8650. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8651. entity.Property(e => e.Status).HasColumnType("int(11)");
  8652. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8653. entity.Property(e => e.UpdateMan)
  8654. .HasColumnType("varchar(50)")
  8655. .HasCharSet("utf8")
  8656. .HasCollation("utf8_general_ci");
  8657. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8658. entity.Property(e => e.Version).HasColumnType("int(11)");
  8659. });
  8660. modelBuilder.Entity<UserAuthRecord>(entity =>
  8661. {
  8662. entity.Property(e => e.Id).HasColumnType("int(11)");
  8663. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  8664. entity.Property(e => e.BankCardAccount)
  8665. .HasColumnType("varchar(32)")
  8666. .HasCharSet("utf8")
  8667. .HasCollation("utf8_general_ci");
  8668. entity.Property(e => e.BankMobile)
  8669. .HasColumnType("varchar(11)")
  8670. .HasCharSet("utf8")
  8671. .HasCollation("utf8_general_ci");
  8672. entity.Property(e => e.BankName)
  8673. .HasColumnType("varchar(64)")
  8674. .HasCharSet("utf8")
  8675. .HasCollation("utf8_general_ci");
  8676. entity.Property(e => e.ChannelCode)
  8677. .HasColumnType("varchar(16)")
  8678. .HasCharSet("utf8")
  8679. .HasCollation("utf8_general_ci");
  8680. entity.Property(e => e.ChannelName)
  8681. .HasColumnType("varchar(32)")
  8682. .HasCharSet("utf8")
  8683. .HasCollation("utf8_general_ci");
  8684. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8685. entity.Property(e => e.CreateMan)
  8686. .HasColumnType("varchar(50)")
  8687. .HasCharSet("utf8")
  8688. .HasCollation("utf8_general_ci");
  8689. entity.Property(e => e.IdcardNo)
  8690. .HasColumnType("varchar(18)")
  8691. .HasCharSet("utf8")
  8692. .HasCollation("utf8_general_ci");
  8693. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8694. entity.Property(e => e.RealName)
  8695. .HasColumnType("varchar(32)")
  8696. .HasCharSet("utf8")
  8697. .HasCollation("utf8_general_ci");
  8698. entity.Property(e => e.ReqData)
  8699. .HasColumnType("varchar(2048)")
  8700. .HasCharSet("utf8")
  8701. .HasCollation("utf8_general_ci");
  8702. entity.Property(e => e.ResData)
  8703. .HasColumnType("varchar(2048)")
  8704. .HasCharSet("utf8")
  8705. .HasCollation("utf8_general_ci");
  8706. entity.Property(e => e.ReturnCode)
  8707. .HasColumnType("varchar(32)")
  8708. .HasCharSet("utf8")
  8709. .HasCollation("utf8_general_ci");
  8710. entity.Property(e => e.ReturnMsg)
  8711. .HasColumnType("varchar(128)")
  8712. .HasCharSet("utf8")
  8713. .HasCollation("utf8_general_ci");
  8714. entity.Property(e => e.SeoDescription)
  8715. .HasColumnType("varchar(500)")
  8716. .HasCharSet("utf8")
  8717. .HasCollation("utf8_general_ci");
  8718. entity.Property(e => e.SeoKeyword)
  8719. .HasColumnType("varchar(200)")
  8720. .HasCharSet("utf8")
  8721. .HasCollation("utf8_general_ci");
  8722. entity.Property(e => e.SeoTitle)
  8723. .HasColumnType("varchar(100)")
  8724. .HasCharSet("utf8")
  8725. .HasCollation("utf8_general_ci");
  8726. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8727. entity.Property(e => e.Status).HasColumnType("int(11)");
  8728. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8729. entity.Property(e => e.UpdateMan)
  8730. .HasColumnType("varchar(50)")
  8731. .HasCharSet("utf8")
  8732. .HasCollation("utf8_general_ci");
  8733. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8734. entity.Property(e => e.Version).HasColumnType("int(11)");
  8735. });
  8736. modelBuilder.Entity<UserBack>(entity =>
  8737. {
  8738. entity.Property(e => e.Id).HasColumnType("int(11)");
  8739. entity.Property(e => e.BackKind).HasColumnType("int(11)");
  8740. entity.Property(e => e.BackStatus).HasColumnType("int(11)");
  8741. entity.Property(e => e.Content)
  8742. .HasColumnType("varchar(100)")
  8743. .HasCharSet("utf8")
  8744. .HasCollation("utf8_general_ci");
  8745. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8746. entity.Property(e => e.CreateMan)
  8747. .HasColumnType("varchar(50)")
  8748. .HasCharSet("utf8")
  8749. .HasCollation("utf8_general_ci");
  8750. entity.Property(e => e.IsPhoneCallBack)
  8751. .HasColumnType("bit(1)")
  8752. .HasDefaultValueSql("b'0'");
  8753. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8754. entity.Property(e => e.ReplyContent)
  8755. .HasColumnType("mediumtext")
  8756. .HasCharSet("utf8")
  8757. .HasCollation("utf8_general_ci");
  8758. entity.Property(e => e.SeoDescription)
  8759. .HasColumnType("varchar(500)")
  8760. .HasCharSet("utf8")
  8761. .HasCollation("utf8_general_ci");
  8762. entity.Property(e => e.SeoKeyword)
  8763. .HasColumnType("varchar(200)")
  8764. .HasCharSet("utf8")
  8765. .HasCollation("utf8_general_ci");
  8766. entity.Property(e => e.SeoTitle)
  8767. .HasColumnType("varchar(100)")
  8768. .HasCharSet("utf8")
  8769. .HasCollation("utf8_general_ci");
  8770. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8771. entity.Property(e => e.Status).HasColumnType("int(11)");
  8772. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8773. entity.Property(e => e.UpdateMan)
  8774. .HasColumnType("varchar(50)")
  8775. .HasCharSet("utf8")
  8776. .HasCollation("utf8_general_ci");
  8777. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8778. entity.Property(e => e.Version).HasColumnType("int(11)");
  8779. });
  8780. modelBuilder.Entity<UserBackKind>(entity =>
  8781. {
  8782. entity.Property(e => e.Id).HasColumnType("int(11)");
  8783. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8784. entity.Property(e => e.CreateMan)
  8785. .HasColumnType("varchar(50)")
  8786. .HasCharSet("utf8")
  8787. .HasCollation("utf8_general_ci");
  8788. entity.Property(e => e.Name)
  8789. .HasColumnType("varchar(50)")
  8790. .HasCharSet("utf8")
  8791. .HasCollation("utf8_general_ci");
  8792. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8793. entity.Property(e => e.SeoDescription)
  8794. .HasColumnType("varchar(500)")
  8795. .HasCharSet("utf8")
  8796. .HasCollation("utf8_general_ci");
  8797. entity.Property(e => e.SeoKeyword)
  8798. .HasColumnType("varchar(200)")
  8799. .HasCharSet("utf8")
  8800. .HasCollation("utf8_general_ci");
  8801. entity.Property(e => e.SeoTitle)
  8802. .HasColumnType("varchar(100)")
  8803. .HasCharSet("utf8")
  8804. .HasCollation("utf8_general_ci");
  8805. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8806. entity.Property(e => e.Status).HasColumnType("int(11)");
  8807. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8808. entity.Property(e => e.UpdateMan)
  8809. .HasColumnType("varchar(50)")
  8810. .HasCharSet("utf8")
  8811. .HasCollation("utf8_general_ci");
  8812. entity.Property(e => e.Version).HasColumnType("int(11)");
  8813. });
  8814. modelBuilder.Entity<UserBalanceTop>(entity =>
  8815. {
  8816. entity.Property(e => e.Id).HasColumnType("int(11)");
  8817. entity.Property(e => e.Balance).HasColumnType("decimal(18,2)");
  8818. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8819. entity.Property(e => e.CreateMan)
  8820. .HasColumnType("varchar(50)")
  8821. .HasCharSet("utf8")
  8822. .HasCollation("utf8_general_ci");
  8823. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8824. entity.Property(e => e.SeoDescription)
  8825. .HasColumnType("varchar(500)")
  8826. .HasCharSet("utf8")
  8827. .HasCollation("utf8_general_ci");
  8828. entity.Property(e => e.SeoKeyword)
  8829. .HasColumnType("varchar(200)")
  8830. .HasCharSet("utf8")
  8831. .HasCollation("utf8_general_ci");
  8832. entity.Property(e => e.SeoTitle)
  8833. .HasColumnType("varchar(100)")
  8834. .HasCharSet("utf8")
  8835. .HasCollation("utf8_general_ci");
  8836. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8837. entity.Property(e => e.StatDate)
  8838. .HasColumnType("varchar(8)")
  8839. .HasCharSet("utf8")
  8840. .HasCollation("utf8_general_ci");
  8841. entity.Property(e => e.StatMonth)
  8842. .HasColumnType("varchar(6)")
  8843. .HasCharSet("utf8")
  8844. .HasCollation("utf8_general_ci");
  8845. entity.Property(e => e.Status).HasColumnType("int(11)");
  8846. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8847. entity.Property(e => e.UpdateMan)
  8848. .HasColumnType("varchar(50)")
  8849. .HasCharSet("utf8")
  8850. .HasCollation("utf8_general_ci");
  8851. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8852. entity.Property(e => e.Version).HasColumnType("int(11)");
  8853. });
  8854. modelBuilder.Entity<UserCar>(entity =>
  8855. {
  8856. entity.Property(e => e.Id).HasColumnType("int(11)");
  8857. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  8858. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8859. entity.Property(e => e.CreateMan)
  8860. .HasColumnType("varchar(50)")
  8861. .HasCharSet("utf8")
  8862. .HasCollation("utf8_general_ci");
  8863. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8864. entity.Property(e => e.NormId).HasColumnType("int(11)");
  8865. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  8866. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8867. entity.Property(e => e.SeoDescription)
  8868. .HasColumnType("varchar(500)")
  8869. .HasCharSet("utf8")
  8870. .HasCollation("utf8_general_ci");
  8871. entity.Property(e => e.SeoKeyword)
  8872. .HasColumnType("varchar(200)")
  8873. .HasCharSet("utf8")
  8874. .HasCollation("utf8_general_ci");
  8875. entity.Property(e => e.SeoTitle)
  8876. .HasColumnType("varchar(100)")
  8877. .HasCharSet("utf8")
  8878. .HasCollation("utf8_general_ci");
  8879. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8880. entity.Property(e => e.Status).HasColumnType("int(11)");
  8881. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8882. entity.Property(e => e.UpdateMan)
  8883. .HasColumnType("varchar(50)")
  8884. .HasCharSet("utf8")
  8885. .HasCollation("utf8_general_ci");
  8886. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8887. entity.Property(e => e.Version).HasColumnType("int(11)");
  8888. });
  8889. modelBuilder.Entity<UserCardForWeChat>(entity =>
  8890. {
  8891. entity.Property(e => e.Id).HasColumnType("int(11)");
  8892. entity.Property(e => e.BrandName)
  8893. .HasColumnType("varchar(12)")
  8894. .HasCharSet("utf8")
  8895. .HasCollation("utf8_general_ci");
  8896. entity.Property(e => e.CardId)
  8897. .HasColumnType("varchar(50)")
  8898. .HasCharSet("utf8")
  8899. .HasCollation("utf8_general_ci");
  8900. entity.Property(e => e.CardType)
  8901. .HasColumnType("varchar(30)")
  8902. .HasCharSet("utf8")
  8903. .HasCollation("utf8_general_ci");
  8904. entity.Property(e => e.CodeType)
  8905. .HasColumnType("varchar(50)")
  8906. .HasCharSet("utf8")
  8907. .HasCollation("utf8_general_ci");
  8908. entity.Property(e => e.Color)
  8909. .HasColumnType("varchar(20)")
  8910. .HasCharSet("utf8")
  8911. .HasCollation("utf8_general_ci");
  8912. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8913. entity.Property(e => e.CreateMan)
  8914. .HasColumnType("varchar(50)")
  8915. .HasCharSet("utf8")
  8916. .HasCollation("utf8_general_ci");
  8917. entity.Property(e => e.DateType)
  8918. .HasColumnType("varchar(50)")
  8919. .HasCharSet("utf8")
  8920. .HasCollation("utf8_general_ci");
  8921. entity.Property(e => e.Description)
  8922. .HasColumnType("varchar(1024)")
  8923. .HasCharSet("utf8")
  8924. .HasCollation("utf8_general_ci");
  8925. entity.Property(e => e.EnterName)
  8926. .HasColumnType("varchar(15)")
  8927. .HasCharSet("utf8")
  8928. .HasCollation("utf8_general_ci");
  8929. entity.Property(e => e.EnterTips)
  8930. .HasColumnType("varchar(6)")
  8931. .HasCharSet("utf8")
  8932. .HasCollation("utf8_general_ci");
  8933. entity.Property(e => e.EnterUrl)
  8934. .HasColumnType("varchar(200)")
  8935. .HasCharSet("utf8")
  8936. .HasCollation("utf8_general_ci");
  8937. entity.Property(e => e.LogoUrl)
  8938. .HasColumnType("varchar(200)")
  8939. .HasCharSet("utf8")
  8940. .HasCollation("utf8_general_ci");
  8941. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8942. entity.Property(e => e.Notice)
  8943. .HasColumnType("varchar(16)")
  8944. .HasCharSet("utf8")
  8945. .HasCollation("utf8_general_ci");
  8946. entity.Property(e => e.Prerogative)
  8947. .HasColumnType("varchar(1024)")
  8948. .HasCharSet("utf8")
  8949. .HasCollation("utf8_general_ci");
  8950. entity.Property(e => e.Quantity).HasColumnType("int(11)");
  8951. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8952. entity.Property(e => e.SeoDescription)
  8953. .HasColumnType("varchar(500)")
  8954. .HasCharSet("utf8")
  8955. .HasCollation("utf8_general_ci");
  8956. entity.Property(e => e.SeoKeyword)
  8957. .HasColumnType("varchar(200)")
  8958. .HasCharSet("utf8")
  8959. .HasCollation("utf8_general_ci");
  8960. entity.Property(e => e.SeoTitle)
  8961. .HasColumnType("varchar(100)")
  8962. .HasCharSet("utf8")
  8963. .HasCollation("utf8_general_ci");
  8964. entity.Property(e => e.Sku)
  8965. .HasColumnType("mediumtext")
  8966. .HasCharSet("utf8")
  8967. .HasCollation("utf8_general_ci");
  8968. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8969. entity.Property(e => e.Status).HasColumnType("int(11)");
  8970. entity.Property(e => e.SupplyBalance)
  8971. .HasColumnType("bit(1)")
  8972. .HasDefaultValueSql("b'0'");
  8973. entity.Property(e => e.SupplyBonus)
  8974. .HasColumnType("bit(1)")
  8975. .HasDefaultValueSql("b'0'");
  8976. entity.Property(e => e.Title)
  8977. .HasColumnType("varchar(9)")
  8978. .HasCharSet("utf8")
  8979. .HasCollation("utf8_general_ci");
  8980. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8981. entity.Property(e => e.UpdateMan)
  8982. .HasColumnType("varchar(50)")
  8983. .HasCharSet("utf8")
  8984. .HasCollation("utf8_general_ci");
  8985. entity.Property(e => e.Version).HasColumnType("int(11)");
  8986. });
  8987. modelBuilder.Entity<UserCardRecord>(entity =>
  8988. {
  8989. entity.Property(e => e.Id).HasColumnType("int(11)");
  8990. entity.Property(e => e.CardId).HasColumnType("int(11)");
  8991. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  8992. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8993. entity.Property(e => e.CreateMan)
  8994. .HasColumnType("varchar(50)")
  8995. .HasCharSet("utf8")
  8996. .HasCollation("utf8_general_ci");
  8997. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8998. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8999. entity.Property(e => e.SeoDescription)
  9000. .HasColumnType("varchar(500)")
  9001. .HasCharSet("utf8")
  9002. .HasCollation("utf8_general_ci");
  9003. entity.Property(e => e.SeoKeyword)
  9004. .HasColumnType("varchar(200)")
  9005. .HasCharSet("utf8")
  9006. .HasCollation("utf8_general_ci");
  9007. entity.Property(e => e.SeoTitle)
  9008. .HasColumnType("varchar(100)")
  9009. .HasCharSet("utf8")
  9010. .HasCollation("utf8_general_ci");
  9011. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9012. entity.Property(e => e.Status).HasColumnType("int(11)");
  9013. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9014. entity.Property(e => e.UpdateMan)
  9015. .HasColumnType("varchar(50)")
  9016. .HasCharSet("utf8")
  9017. .HasCollation("utf8_general_ci");
  9018. entity.Property(e => e.Version).HasColumnType("int(11)");
  9019. });
  9020. modelBuilder.Entity<UserCashRecord>(entity =>
  9021. {
  9022. entity.Property(e => e.Id).HasColumnType("int(11)");
  9023. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  9024. entity.Property(e => e.CashOrderNo)
  9025. .HasColumnType("varchar(32)")
  9026. .HasCharSet("utf8")
  9027. .HasCollation("utf8_general_ci");
  9028. entity.Property(e => e.ChanelName)
  9029. .HasColumnType("varchar(32)")
  9030. .HasCharSet("utf8")
  9031. .HasCollation("utf8_general_ci");
  9032. entity.Property(e => e.ChannelCode)
  9033. .HasColumnType("varchar(16)")
  9034. .HasCharSet("utf8")
  9035. .HasCollation("utf8_general_ci");
  9036. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9037. entity.Property(e => e.CreateMan)
  9038. .HasColumnType("varchar(50)")
  9039. .HasCharSet("utf8")
  9040. .HasCollation("utf8_general_ci");
  9041. entity.Property(e => e.IdCardNo)
  9042. .HasColumnType("varchar(18)")
  9043. .HasCharSet("utf8")
  9044. .HasCollation("utf8_general_ci");
  9045. entity.Property(e => e.Ip)
  9046. .HasColumnType("varchar(15)")
  9047. .HasCharSet("utf8")
  9048. .HasCollation("utf8_general_ci");
  9049. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  9050. entity.Property(e => e.MediaSource)
  9051. .HasColumnType("varchar(16)")
  9052. .HasCharSet("utf8")
  9053. .HasCollation("utf8_general_ci");
  9054. entity.Property(e => e.PayTradeNo)
  9055. .HasColumnType("varchar(32)")
  9056. .HasCharSet("utf8")
  9057. .HasCollation("utf8_general_ci");
  9058. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  9059. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9060. entity.Property(e => e.Remark)
  9061. .HasColumnType("varchar(128)")
  9062. .HasCharSet("utf8")
  9063. .HasCollation("utf8_general_ci");
  9064. entity.Property(e => e.ReqData)
  9065. .HasColumnType("varchar(2048)")
  9066. .HasCharSet("utf8")
  9067. .HasCollation("utf8_general_ci");
  9068. entity.Property(e => e.ResData)
  9069. .HasColumnType("varchar(2048)")
  9070. .HasCharSet("utf8")
  9071. .HasCollation("utf8_general_ci");
  9072. entity.Property(e => e.ReturnCode)
  9073. .HasColumnType("varchar(32)")
  9074. .HasCharSet("utf8")
  9075. .HasCollation("utf8_general_ci");
  9076. entity.Property(e => e.ReturnMsg)
  9077. .HasColumnType("varchar(128)")
  9078. .HasCharSet("utf8")
  9079. .HasCollation("utf8_general_ci");
  9080. entity.Property(e => e.SeoDescription)
  9081. .HasColumnType("varchar(500)")
  9082. .HasCharSet("utf8")
  9083. .HasCollation("utf8_general_ci");
  9084. entity.Property(e => e.SeoKeyword)
  9085. .HasColumnType("varchar(200)")
  9086. .HasCharSet("utf8")
  9087. .HasCollation("utf8_general_ci");
  9088. entity.Property(e => e.SeoTitle)
  9089. .HasColumnType("varchar(100)")
  9090. .HasCharSet("utf8")
  9091. .HasCollation("utf8_general_ci");
  9092. entity.Property(e => e.SettleBankCardNo)
  9093. .HasColumnType("varchar(32)")
  9094. .HasCharSet("utf8")
  9095. .HasCollation("utf8_general_ci");
  9096. entity.Property(e => e.SettleBankName)
  9097. .HasColumnType("varchar(64)")
  9098. .HasCharSet("utf8")
  9099. .HasCollation("utf8_general_ci");
  9100. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9101. entity.Property(e => e.Status).HasColumnType("int(11)");
  9102. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  9103. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  9104. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  9105. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9106. entity.Property(e => e.UpdateMan)
  9107. .HasColumnType("varchar(50)")
  9108. .HasCharSet("utf8")
  9109. .HasCollation("utf8_general_ci");
  9110. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9111. entity.Property(e => e.Version).HasColumnType("int(11)");
  9112. });
  9113. modelBuilder.Entity<UserCenterIconList>(entity =>
  9114. {
  9115. entity.Property(e => e.Id).HasColumnType("int(11)");
  9116. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9117. entity.Property(e => e.CreateMan)
  9118. .HasColumnType("varchar(50)")
  9119. .HasCharSet("utf8")
  9120. .HasCollation("utf8_general_ci");
  9121. entity.Property(e => e.Icon)
  9122. .HasColumnType("varchar(200)")
  9123. .HasCharSet("utf8")
  9124. .HasCollation("utf8_general_ci");
  9125. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9126. entity.Property(e => e.SeoDescription)
  9127. .HasColumnType("varchar(500)")
  9128. .HasCharSet("utf8")
  9129. .HasCollation("utf8_general_ci");
  9130. entity.Property(e => e.SeoKeyword)
  9131. .HasColumnType("varchar(200)")
  9132. .HasCharSet("utf8")
  9133. .HasCollation("utf8_general_ci");
  9134. entity.Property(e => e.SeoTitle)
  9135. .HasColumnType("varchar(100)")
  9136. .HasCharSet("utf8")
  9137. .HasCollation("utf8_general_ci");
  9138. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9139. entity.Property(e => e.Status).HasColumnType("int(11)");
  9140. entity.Property(e => e.Title)
  9141. .HasColumnType("varchar(50)")
  9142. .HasCharSet("utf8")
  9143. .HasCollation("utf8_general_ci");
  9144. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9145. entity.Property(e => e.UpdateMan)
  9146. .HasColumnType("varchar(50)")
  9147. .HasCharSet("utf8")
  9148. .HasCollation("utf8_general_ci");
  9149. entity.Property(e => e.Url)
  9150. .HasColumnType("varchar(50)")
  9151. .HasCharSet("utf8")
  9152. .HasCollation("utf8_general_ci");
  9153. entity.Property(e => e.Version).HasColumnType("int(11)");
  9154. });
  9155. modelBuilder.Entity<UserCollection>(entity =>
  9156. {
  9157. entity.Property(e => e.Id).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.DataId).HasColumnType("int(11)");
  9164. entity.Property(e => e.Kind).HasColumnType("int(11)");
  9165. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9166. entity.Property(e => e.SeoDescription)
  9167. .HasColumnType("varchar(500)")
  9168. .HasCharSet("utf8")
  9169. .HasCollation("utf8_general_ci");
  9170. entity.Property(e => e.SeoKeyword)
  9171. .HasColumnType("varchar(200)")
  9172. .HasCharSet("utf8")
  9173. .HasCollation("utf8_general_ci");
  9174. entity.Property(e => e.SeoTitle)
  9175. .HasColumnType("varchar(100)")
  9176. .HasCharSet("utf8")
  9177. .HasCollation("utf8_general_ci");
  9178. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9179. entity.Property(e => e.Status).HasColumnType("int(11)");
  9180. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9181. entity.Property(e => e.UpdateMan)
  9182. .HasColumnType("varchar(50)")
  9183. .HasCharSet("utf8")
  9184. .HasCollation("utf8_general_ci");
  9185. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9186. entity.Property(e => e.Version).HasColumnType("int(11)");
  9187. });
  9188. modelBuilder.Entity<UserData>(entity =>
  9189. {
  9190. entity.HasKey(e => e.UserId)
  9191. .HasName("PRIMARY");
  9192. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9193. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  9194. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  9195. entity.Property(e => e.CollectionCount).HasColumnType("int(11)");
  9196. entity.Property(e => e.Coupons).HasColumnType("decimal(18,2)");
  9197. entity.Property(e => e.CurMoney).HasColumnType("decimal(18,2)");
  9198. entity.Property(e => e.FansCount).HasColumnType("int(11)");
  9199. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  9200. entity.Property(e => e.GrowthValue).HasColumnType("int(11)");
  9201. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  9202. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  9203. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  9204. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  9205. entity.Property(e => e.ToCommentOrderCount).HasColumnType("int(11)");
  9206. entity.Property(e => e.ToPayOrderCount).HasColumnType("int(11)");
  9207. entity.Property(e => e.ToReceiveOrderCount).HasColumnType("int(11)");
  9208. entity.Property(e => e.ToRefundOrderCount).HasColumnType("int(11)");
  9209. entity.Property(e => e.ToSendOrderCount).HasColumnType("int(11)");
  9210. entity.Property(e => e.TotalOrderMoney).HasColumnType("decimal(18,2)");
  9211. entity.Property(e => e.TotalUseIntegral).HasColumnType("decimal(18,2)");
  9212. });
  9213. modelBuilder.Entity<UserDetail>(entity =>
  9214. {
  9215. entity.Property(e => e.Id).HasColumnType("int(11)");
  9216. entity.Property(e => e.AddMan).HasColumnType("int(11)");
  9217. entity.Property(e => e.Birthday).HasColumnType("datetime");
  9218. entity.Property(e => e.CardAddAddress).HasColumnType("int(11)");
  9219. entity.Property(e => e.CardExpireDate).HasColumnType("datetime");
  9220. entity.Property(e => e.EduLevel).HasColumnType("int(11)");
  9221. entity.Property(e => e.Email)
  9222. .HasColumnType("varchar(50)")
  9223. .HasCharSet("utf8")
  9224. .HasCollation("utf8_general_ci");
  9225. entity.Property(e => e.FamilyIncome).HasColumnType("int(11)");
  9226. entity.Property(e => e.Interests)
  9227. .HasColumnType("varchar(200)")
  9228. .HasCharSet("utf8")
  9229. .HasCollation("utf8_general_ci");
  9230. entity.Property(e => e.Note)
  9231. .HasColumnType("longtext")
  9232. .HasCharSet("utf8")
  9233. .HasCollation("utf8_general_ci");
  9234. entity.Property(e => e.OfficePhone)
  9235. .HasColumnType("varchar(50)")
  9236. .HasCharSet("utf8")
  9237. .HasCollation("utf8_general_ci");
  9238. entity.Property(e => e.PostalCode)
  9239. .HasColumnType("varchar(6)")
  9240. .HasCharSet("utf8")
  9241. .HasCollation("utf8_general_ci");
  9242. entity.Property(e => e.PrivatePhone)
  9243. .HasColumnType("varchar(50)")
  9244. .HasCharSet("utf8")
  9245. .HasCollation("utf8_general_ci");
  9246. entity.Property(e => e.ToShopDate).HasColumnType("datetime");
  9247. entity.Property(e => e.TrafficTool).HasColumnType("int(11)");
  9248. entity.Property(e => e.UpdateMan).HasColumnType("int(11)");
  9249. entity.Property(e => e.UserJob).HasColumnType("int(11)");
  9250. });
  9251. modelBuilder.Entity<UserFamilyMember>(entity =>
  9252. {
  9253. entity.Property(e => e.Id).HasColumnType("int(11)");
  9254. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9255. entity.Property(e => e.CreateMan)
  9256. .HasColumnType("varchar(50)")
  9257. .HasCharSet("utf8")
  9258. .HasCollation("utf8_general_ci");
  9259. entity.Property(e => e.IdCardNo)
  9260. .HasColumnType("varchar(18)")
  9261. .HasCharSet("utf8")
  9262. .HasCollation("utf8_general_ci");
  9263. entity.Property(e => e.Job).HasColumnType("int(11)");
  9264. entity.Property(e => e.MemberKind).HasColumnType("int(11)");
  9265. entity.Property(e => e.Mobile)
  9266. .HasColumnType("varchar(11)")
  9267. .HasCharSet("utf8")
  9268. .HasCollation("utf8_general_ci");
  9269. entity.Property(e => e.Name)
  9270. .HasColumnType("varchar(20)")
  9271. .HasCharSet("utf8")
  9272. .HasCollation("utf8_general_ci");
  9273. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9274. entity.Property(e => e.SeoDescription)
  9275. .HasColumnType("varchar(500)")
  9276. .HasCharSet("utf8")
  9277. .HasCollation("utf8_general_ci");
  9278. entity.Property(e => e.SeoKeyword)
  9279. .HasColumnType("varchar(200)")
  9280. .HasCharSet("utf8")
  9281. .HasCollation("utf8_general_ci");
  9282. entity.Property(e => e.SeoTitle)
  9283. .HasColumnType("varchar(100)")
  9284. .HasCharSet("utf8")
  9285. .HasCollation("utf8_general_ci");
  9286. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9287. entity.Property(e => e.Status).HasColumnType("int(11)");
  9288. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9289. entity.Property(e => e.UpdateMan)
  9290. .HasColumnType("varchar(50)")
  9291. .HasCharSet("utf8")
  9292. .HasCollation("utf8_general_ci");
  9293. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9294. entity.Property(e => e.Version).HasColumnType("int(11)");
  9295. });
  9296. modelBuilder.Entity<UserForMakerCode>(entity =>
  9297. {
  9298. entity.HasKey(e => e.MakerCode)
  9299. .HasName("PRIMARY");
  9300. entity.Property(e => e.MakerCode)
  9301. .HasColumnType("varchar(30)")
  9302. .HasCharSet("utf8")
  9303. .HasCollation("utf8_general_ci");
  9304. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9305. });
  9306. modelBuilder.Entity<UserForMobile>(entity =>
  9307. {
  9308. entity.HasKey(e => e.Mobile)
  9309. .HasName("PRIMARY");
  9310. entity.Property(e => e.Mobile)
  9311. .HasColumnType("varchar(11)")
  9312. .HasCharSet("utf8")
  9313. .HasCollation("utf8_general_ci");
  9314. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9315. });
  9316. modelBuilder.Entity<UserForRealName>(entity =>
  9317. {
  9318. entity.HasKey(e => e.RealName)
  9319. .HasName("PRIMARY");
  9320. entity.Property(e => e.RealName)
  9321. .HasColumnType("varchar(30)")
  9322. .HasCharSet("utf8")
  9323. .HasCollation("utf8_general_ci");
  9324. entity.Property(e => e.UserId)
  9325. .HasColumnType("varchar(100)")
  9326. .HasCharSet("utf8")
  9327. .HasCollation("utf8_general_ci");
  9328. });
  9329. modelBuilder.Entity<UserFriend>(entity =>
  9330. {
  9331. entity.Property(e => e.Id).HasColumnType("int(11)");
  9332. entity.Property(e => e.FriendId).HasColumnType("int(11)");
  9333. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9334. });
  9335. modelBuilder.Entity<UserGroup>(entity =>
  9336. {
  9337. entity.Property(e => e.Id).HasColumnType("int(11)");
  9338. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9339. entity.Property(e => e.CreateMan)
  9340. .HasColumnType("varchar(50)")
  9341. .HasCharSet("utf8")
  9342. .HasCollation("utf8_general_ci");
  9343. entity.Property(e => e.Details)
  9344. .HasColumnType("varchar(200)")
  9345. .HasCharSet("utf8")
  9346. .HasCollation("utf8_general_ci");
  9347. entity.Property(e => e.Name)
  9348. .HasColumnType("varchar(20)")
  9349. .HasCharSet("utf8")
  9350. .HasCollation("utf8_general_ci");
  9351. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9352. entity.Property(e => e.SeoDescription)
  9353. .HasColumnType("varchar(500)")
  9354. .HasCharSet("utf8")
  9355. .HasCollation("utf8_general_ci");
  9356. entity.Property(e => e.SeoKeyword)
  9357. .HasColumnType("varchar(200)")
  9358. .HasCharSet("utf8")
  9359. .HasCollation("utf8_general_ci");
  9360. entity.Property(e => e.SeoTitle)
  9361. .HasColumnType("varchar(100)")
  9362. .HasCharSet("utf8")
  9363. .HasCollation("utf8_general_ci");
  9364. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9365. entity.Property(e => e.Status).HasColumnType("int(11)");
  9366. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9367. entity.Property(e => e.UpdateMan)
  9368. .HasColumnType("varchar(50)")
  9369. .HasCharSet("utf8")
  9370. .HasCollation("utf8_general_ci");
  9371. entity.Property(e => e.Version).HasColumnType("int(11)");
  9372. });
  9373. modelBuilder.Entity<UserLevelSet>(entity =>
  9374. {
  9375. entity.Property(e => e.Id).HasColumnType("int(11)");
  9376. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9377. entity.Property(e => e.CreateMan)
  9378. .HasColumnType("varchar(50)")
  9379. .HasCharSet("utf8")
  9380. .HasCollation("utf8_general_ci");
  9381. entity.Property(e => e.Details)
  9382. .HasColumnType("varchar(200)")
  9383. .HasCharSet("utf8")
  9384. .HasCollation("utf8_general_ci");
  9385. entity.Property(e => e.Name)
  9386. .HasColumnType("varchar(20)")
  9387. .HasCharSet("utf8")
  9388. .HasCollation("utf8_general_ci");
  9389. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9390. entity.Property(e => e.SeoDescription)
  9391. .HasColumnType("varchar(500)")
  9392. .HasCharSet("utf8")
  9393. .HasCollation("utf8_general_ci");
  9394. entity.Property(e => e.SeoKeyword)
  9395. .HasColumnType("varchar(200)")
  9396. .HasCharSet("utf8")
  9397. .HasCollation("utf8_general_ci");
  9398. entity.Property(e => e.SeoTitle)
  9399. .HasColumnType("varchar(100)")
  9400. .HasCharSet("utf8")
  9401. .HasCollation("utf8_general_ci");
  9402. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9403. entity.Property(e => e.Status).HasColumnType("int(11)");
  9404. entity.Property(e => e.UpLevelDays).HasColumnType("int(11)");
  9405. entity.Property(e => e.UpLevelGrowth).HasColumnType("int(11)");
  9406. entity.Property(e => e.UpLevelIntegral).HasColumnType("decimal(10,0)");
  9407. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9408. entity.Property(e => e.UpdateMan)
  9409. .HasColumnType("varchar(50)")
  9410. .HasCharSet("utf8")
  9411. .HasCollation("utf8_general_ci");
  9412. entity.Property(e => e.Version).HasColumnType("int(11)");
  9413. });
  9414. modelBuilder.Entity<UserLoginRecord>(entity =>
  9415. {
  9416. entity.Property(e => e.Id).HasColumnType("int(11)");
  9417. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9418. entity.Property(e => e.CreateMan)
  9419. .HasColumnType("varchar(50)")
  9420. .HasCharSet("utf8")
  9421. .HasCollation("utf8_general_ci");
  9422. entity.Property(e => e.Kind).HasColumnType("int(11)");
  9423. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9424. entity.Property(e => e.SeoDescription)
  9425. .HasColumnType("varchar(500)")
  9426. .HasCharSet("utf8")
  9427. .HasCollation("utf8_general_ci");
  9428. entity.Property(e => e.SeoKeyword)
  9429. .HasColumnType("varchar(200)")
  9430. .HasCharSet("utf8")
  9431. .HasCollation("utf8_general_ci");
  9432. entity.Property(e => e.SeoTitle)
  9433. .HasColumnType("varchar(100)")
  9434. .HasCharSet("utf8")
  9435. .HasCollation("utf8_general_ci");
  9436. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9437. entity.Property(e => e.Status).HasColumnType("int(11)");
  9438. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9439. entity.Property(e => e.UpdateMan)
  9440. .HasColumnType("varchar(50)")
  9441. .HasCharSet("utf8")
  9442. .HasCollation("utf8_general_ci");
  9443. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9444. entity.Property(e => e.Version).HasColumnType("int(11)");
  9445. });
  9446. modelBuilder.Entity<UserMachineData>(entity =>
  9447. {
  9448. entity.HasKey(e => e.IdBrand)
  9449. .HasName("PRIMARY");
  9450. entity.Property(e => e.IdBrand)
  9451. .HasColumnType("varchar(50)")
  9452. .HasCharSet("utf8")
  9453. .HasCollation("utf8_general_ci");
  9454. entity.Property(e => e.ActProfit).HasColumnType("decimal(18,2)");
  9455. entity.Property(e => e.BindCount).HasColumnType("int(11)");
  9456. entity.Property(e => e.DividendsProfit).HasColumnType("decimal(18,2)");
  9457. entity.Property(e => e.FluxProfit).HasColumnType("decimal(18,2)");
  9458. entity.Property(e => e.OpenProfit).HasColumnType("decimal(18,2)");
  9459. entity.Property(e => e.OtherProfit).HasColumnType("decimal(18,2)");
  9460. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  9461. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  9462. entity.Property(e => e.UnBindCount).HasColumnType("int(11)");
  9463. });
  9464. modelBuilder.Entity<UserMallLargeSn>(entity =>
  9465. {
  9466. entity.Property(e => e.Id).HasColumnType("int(11)");
  9467. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9468. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9469. entity.Property(e => e.CreateMan)
  9470. .HasColumnType("varchar(50)")
  9471. .HasCharSet("utf8")
  9472. .HasCollation("utf8_general_ci");
  9473. entity.Property(e => e.OrderAmount).HasColumnType("decimal(18,2)");
  9474. entity.Property(e => e.OrderNo)
  9475. .HasColumnType("varchar(32)")
  9476. .HasCharSet("utf8")
  9477. .HasCollation("utf8_general_ci");
  9478. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  9479. entity.Property(e => e.ProductName)
  9480. .HasColumnType("varchar(32)")
  9481. .HasCharSet("utf8")
  9482. .HasCollation("utf8_general_ci");
  9483. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9484. entity.Property(e => e.Remark)
  9485. .HasColumnType("varchar(64)")
  9486. .HasCharSet("utf8")
  9487. .HasCollation("utf8_general_ci");
  9488. entity.Property(e => e.RuleOrderAmt).HasColumnType("decimal(18,2)");
  9489. entity.Property(e => e.SeoDescription)
  9490. .HasColumnType("varchar(500)")
  9491. .HasCharSet("utf8")
  9492. .HasCollation("utf8_general_ci");
  9493. entity.Property(e => e.SeoKeyword)
  9494. .HasColumnType("varchar(200)")
  9495. .HasCharSet("utf8")
  9496. .HasCollation("utf8_general_ci");
  9497. entity.Property(e => e.SeoTitle)
  9498. .HasColumnType("varchar(100)")
  9499. .HasCharSet("utf8")
  9500. .HasCollation("utf8_general_ci");
  9501. entity.Property(e => e.SnNo)
  9502. .HasColumnType("varchar(32)")
  9503. .HasCharSet("utf8")
  9504. .HasCollation("utf8_general_ci");
  9505. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  9506. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  9507. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9508. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9509. entity.Property(e => e.Status).HasColumnType("int(11)");
  9510. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  9511. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9512. entity.Property(e => e.UpdateMan)
  9513. .HasColumnType("varchar(50)")
  9514. .HasCharSet("utf8")
  9515. .HasCollation("utf8_general_ci");
  9516. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9517. entity.Property(e => e.Version).HasColumnType("int(11)");
  9518. });
  9519. modelBuilder.Entity<UserOfflineSignInRecords>(entity =>
  9520. {
  9521. entity.Property(e => e.Id).HasColumnType("int(11)");
  9522. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9523. entity.Property(e => e.CreateMan)
  9524. .HasColumnType("varchar(50)")
  9525. .HasCharSet("utf8")
  9526. .HasCollation("utf8_general_ci");
  9527. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  9528. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9529. entity.Property(e => e.SeoDescription)
  9530. .HasColumnType("varchar(500)")
  9531. .HasCharSet("utf8")
  9532. .HasCollation("utf8_general_ci");
  9533. entity.Property(e => e.SeoKeyword)
  9534. .HasColumnType("varchar(200)")
  9535. .HasCharSet("utf8")
  9536. .HasCollation("utf8_general_ci");
  9537. entity.Property(e => e.SeoTitle)
  9538. .HasColumnType("varchar(100)")
  9539. .HasCharSet("utf8")
  9540. .HasCollation("utf8_general_ci");
  9541. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9542. entity.Property(e => e.Status).HasColumnType("int(11)");
  9543. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9544. entity.Property(e => e.UpdateMan)
  9545. .HasColumnType("varchar(50)")
  9546. .HasCharSet("utf8")
  9547. .HasCollation("utf8_general_ci");
  9548. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9549. entity.Property(e => e.Version).HasColumnType("int(11)");
  9550. });
  9551. modelBuilder.Entity<UserProfit>(entity =>
  9552. {
  9553. entity.Property(e => e.Id).HasColumnType("int(11)");
  9554. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  9555. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9556. entity.Property(e => e.CardType)
  9557. .HasColumnType("varchar(10)")
  9558. .HasCharSet("utf8")
  9559. .HasCollation("utf8_general_ci");
  9560. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9561. entity.Property(e => e.CreateMan)
  9562. .HasColumnType("varchar(50)")
  9563. .HasCharSet("utf8")
  9564. .HasCollation("utf8_general_ci");
  9565. entity.Property(e => e.HelpAddOrSubRate).HasColumnType("decimal(18,2)");
  9566. entity.Property(e => e.HelpProfitPercent).HasColumnType("decimal(18,2)");
  9567. entity.Property(e => e.HelpProfitRate).HasColumnType("decimal(18,2)");
  9568. entity.Property(e => e.HelpProfitRateBase).HasColumnType("decimal(18,2)");
  9569. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  9570. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  9571. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  9572. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9573. entity.Property(e => e.Remark)
  9574. .HasColumnType("varchar(64)")
  9575. .HasCharSet("utf8")
  9576. .HasCollation("utf8_general_ci");
  9577. entity.Property(e => e.SeoDescription)
  9578. .HasColumnType("varchar(500)")
  9579. .HasCharSet("utf8")
  9580. .HasCollation("utf8_general_ci");
  9581. entity.Property(e => e.SeoKeyword)
  9582. .HasColumnType("varchar(200)")
  9583. .HasCharSet("utf8")
  9584. .HasCollation("utf8_general_ci");
  9585. entity.Property(e => e.SeoTitle)
  9586. .HasColumnType("varchar(100)")
  9587. .HasCharSet("utf8")
  9588. .HasCollation("utf8_general_ci");
  9589. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9590. entity.Property(e => e.Status).HasColumnType("int(11)");
  9591. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9592. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9593. entity.Property(e => e.UpdateMan)
  9594. .HasColumnType("varchar(50)")
  9595. .HasCharSet("utf8")
  9596. .HasCollation("utf8_general_ci");
  9597. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9598. entity.Property(e => e.Version).HasColumnType("int(11)");
  9599. });
  9600. modelBuilder.Entity<UserProfitSet>(entity =>
  9601. {
  9602. entity.Property(e => e.Id).HasColumnType("int(11)");
  9603. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  9604. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9605. entity.Property(e => e.CardType).HasColumnType("int(11)");
  9606. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9607. entity.Property(e => e.CreateMan)
  9608. .HasColumnType("varchar(50)")
  9609. .HasCharSet("utf8")
  9610. .HasCollation("utf8_general_ci");
  9611. entity.Property(e => e.HelpFlag).HasColumnType("int(11)");
  9612. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  9613. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  9614. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  9615. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9616. entity.Property(e => e.Remark)
  9617. .HasColumnType("varchar(64)")
  9618. .HasCharSet("utf8")
  9619. .HasCollation("utf8_general_ci");
  9620. entity.Property(e => e.SeoDescription)
  9621. .HasColumnType("varchar(500)")
  9622. .HasCharSet("utf8")
  9623. .HasCollation("utf8_general_ci");
  9624. entity.Property(e => e.SeoKeyword)
  9625. .HasColumnType("varchar(200)")
  9626. .HasCharSet("utf8")
  9627. .HasCollation("utf8_general_ci");
  9628. entity.Property(e => e.SeoTitle)
  9629. .HasColumnType("varchar(100)")
  9630. .HasCharSet("utf8")
  9631. .HasCollation("utf8_general_ci");
  9632. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9633. entity.Property(e => e.Status).HasColumnType("int(11)");
  9634. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9635. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9636. entity.Property(e => e.UpdateMan)
  9637. .HasColumnType("varchar(50)")
  9638. .HasCharSet("utf8")
  9639. .HasCollation("utf8_general_ci");
  9640. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9641. entity.Property(e => e.Version).HasColumnType("int(11)");
  9642. });
  9643. modelBuilder.Entity<UserProfitSubsidySummary>(entity =>
  9644. {
  9645. entity.Property(e => e.Id).HasColumnType("int(11)");
  9646. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9647. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  9648. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9649. entity.Property(e => e.CreateMan)
  9650. .HasColumnType("varchar(50)")
  9651. .HasCharSet("utf8")
  9652. .HasCollation("utf8_general_ci");
  9653. entity.Property(e => e.MgrName)
  9654. .HasColumnType("varchar(32)")
  9655. .HasCharSet("utf8")
  9656. .HasCollation("utf8_general_ci");
  9657. entity.Property(e => e.MgrNo)
  9658. .HasColumnType("varchar(16)")
  9659. .HasCharSet("utf8")
  9660. .HasCollation("utf8_general_ci");
  9661. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9662. entity.Property(e => e.SeoDescription)
  9663. .HasColumnType("varchar(500)")
  9664. .HasCharSet("utf8")
  9665. .HasCollation("utf8_general_ci");
  9666. entity.Property(e => e.SeoKeyword)
  9667. .HasColumnType("varchar(200)")
  9668. .HasCharSet("utf8")
  9669. .HasCollation("utf8_general_ci");
  9670. entity.Property(e => e.SeoTitle)
  9671. .HasColumnType("varchar(100)")
  9672. .HasCharSet("utf8")
  9673. .HasCollation("utf8_general_ci");
  9674. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9675. entity.Property(e => e.Status).HasColumnType("int(11)");
  9676. entity.Property(e => e.SubsidyDirectProfit).HasColumnType("decimal(18,2)");
  9677. entity.Property(e => e.SubsidyJuniorProfit).HasColumnType("decimal(18,2)");
  9678. entity.Property(e => e.SubsidyTotalProfit).HasColumnType("decimal(18,2)");
  9679. entity.Property(e => e.TradeMonth)
  9680. .HasColumnType("varchar(6)")
  9681. .HasCharSet("utf8")
  9682. .HasCollation("utf8_general_ci");
  9683. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9684. entity.Property(e => e.UpdateMan)
  9685. .HasColumnType("varchar(50)")
  9686. .HasCharSet("utf8")
  9687. .HasCollation("utf8_general_ci");
  9688. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9689. entity.Property(e => e.Version).HasColumnType("int(11)");
  9690. });
  9691. modelBuilder.Entity<UserRank>(entity =>
  9692. {
  9693. entity.Property(e => e.Id).HasColumnType("int(11)");
  9694. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9695. entity.Property(e => e.CreateMan)
  9696. .HasColumnType("varchar(50)")
  9697. .HasCharSet("utf8")
  9698. .HasCollation("utf8_general_ci");
  9699. entity.Property(e => e.ExceedVal).HasColumnType("int(11)");
  9700. entity.Property(e => e.NextRank).HasColumnType("int(11)");
  9701. entity.Property(e => e.OperateDate).HasColumnType("datetime");
  9702. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9703. entity.Property(e => e.Rank).HasColumnType("int(11)");
  9704. entity.Property(e => e.SeoDescription)
  9705. .HasColumnType("varchar(500)")
  9706. .HasCharSet("utf8")
  9707. .HasCollation("utf8_general_ci");
  9708. entity.Property(e => e.SeoKeyword)
  9709. .HasColumnType("varchar(200)")
  9710. .HasCharSet("utf8")
  9711. .HasCollation("utf8_general_ci");
  9712. entity.Property(e => e.SeoTitle)
  9713. .HasColumnType("varchar(100)")
  9714. .HasCharSet("utf8")
  9715. .HasCollation("utf8_general_ci");
  9716. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9717. entity.Property(e => e.StatMonth).HasColumnType("int(11)");
  9718. entity.Property(e => e.StatYear).HasColumnType("int(11)");
  9719. entity.Property(e => e.Status).HasColumnType("int(11)");
  9720. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9721. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9722. entity.Property(e => e.UpdateMan)
  9723. .HasColumnType("varchar(50)")
  9724. .HasCharSet("utf8")
  9725. .HasCollation("utf8_general_ci");
  9726. entity.Property(e => e.UpgradeFlag)
  9727. .HasColumnType("bit(1)")
  9728. .HasDefaultValueSql("b'0'");
  9729. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9730. entity.Property(e => e.Version).HasColumnType("int(11)");
  9731. entity.Property(e => e.WhiteRank).HasColumnType("int(11)");
  9732. });
  9733. modelBuilder.Entity<UserRankWhite>(entity =>
  9734. {
  9735. entity.Property(e => e.Id).HasColumnType("int(11)");
  9736. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9737. entity.Property(e => e.CreateMan)
  9738. .HasColumnType("varchar(50)")
  9739. .HasCharSet("utf8")
  9740. .HasCollation("utf8_general_ci");
  9741. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9742. entity.Property(e => e.Rank).HasColumnType("int(11)");
  9743. entity.Property(e => e.SeoDescription)
  9744. .HasColumnType("varchar(500)")
  9745. .HasCharSet("utf8")
  9746. .HasCollation("utf8_general_ci");
  9747. entity.Property(e => e.SeoKeyword)
  9748. .HasColumnType("varchar(200)")
  9749. .HasCharSet("utf8")
  9750. .HasCollation("utf8_general_ci");
  9751. entity.Property(e => e.SeoTitle)
  9752. .HasColumnType("varchar(100)")
  9753. .HasCharSet("utf8")
  9754. .HasCollation("utf8_general_ci");
  9755. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9756. entity.Property(e => e.Status).HasColumnType("int(11)");
  9757. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9758. entity.Property(e => e.UpdateMan)
  9759. .HasColumnType("varchar(50)")
  9760. .HasCharSet("utf8")
  9761. .HasCollation("utf8_general_ci");
  9762. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9763. entity.Property(e => e.Version).HasColumnType("int(11)");
  9764. });
  9765. modelBuilder.Entity<UserRebateDetail>(entity =>
  9766. {
  9767. entity.Property(e => e.Id).HasColumnType("int(11)");
  9768. entity.Property(e => e.ChannelMerNo)
  9769. .HasColumnType("varchar(32)")
  9770. .HasCharSet("utf8")
  9771. .HasCollation("utf8_general_ci");
  9772. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9773. entity.Property(e => e.CreateMan)
  9774. .HasColumnType("varchar(50)")
  9775. .HasCharSet("utf8")
  9776. .HasCollation("utf8_general_ci");
  9777. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  9778. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9779. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  9780. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  9781. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  9782. entity.Property(e => e.MgrName)
  9783. .HasColumnType("varchar(32)")
  9784. .HasCharSet("utf8")
  9785. .HasCollation("utf8_general_ci");
  9786. entity.Property(e => e.MgrNo)
  9787. .HasColumnType("varchar(16)")
  9788. .HasCharSet("utf8")
  9789. .HasCollation("utf8_general_ci");
  9790. entity.Property(e => e.ProductName)
  9791. .HasColumnType("varchar(32)")
  9792. .HasCharSet("utf8")
  9793. .HasCollation("utf8_general_ci");
  9794. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  9795. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9796. entity.Property(e => e.RebateMonthCount).HasColumnType("int(11)");
  9797. entity.Property(e => e.RebateRewardNo)
  9798. .HasColumnType("varchar(32)")
  9799. .HasCharSet("utf8")
  9800. .HasCollation("utf8_general_ci");
  9801. entity.Property(e => e.RebateType).HasColumnType("int(11)");
  9802. entity.Property(e => e.Remark)
  9803. .HasColumnType("varchar(64)")
  9804. .HasCharSet("utf8")
  9805. .HasCollation("utf8_general_ci");
  9806. entity.Property(e => e.SeoDescription)
  9807. .HasColumnType("varchar(500)")
  9808. .HasCharSet("utf8")
  9809. .HasCollation("utf8_general_ci");
  9810. entity.Property(e => e.SeoKeyword)
  9811. .HasColumnType("varchar(200)")
  9812. .HasCharSet("utf8")
  9813. .HasCollation("utf8_general_ci");
  9814. entity.Property(e => e.SeoTitle)
  9815. .HasColumnType("varchar(100)")
  9816. .HasCharSet("utf8")
  9817. .HasCollation("utf8_general_ci");
  9818. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9819. entity.Property(e => e.Status).HasColumnType("int(11)");
  9820. entity.Property(e => e.TradeDate)
  9821. .HasColumnType("varchar(8)")
  9822. .HasCharSet("utf8")
  9823. .HasCollation("utf8_general_ci");
  9824. entity.Property(e => e.TradeMonth)
  9825. .HasColumnType("varchar(6)")
  9826. .HasCharSet("utf8")
  9827. .HasCollation("utf8_general_ci");
  9828. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9829. entity.Property(e => e.UpdateMan)
  9830. .HasColumnType("varchar(50)")
  9831. .HasCharSet("utf8")
  9832. .HasCollation("utf8_general_ci");
  9833. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9834. entity.Property(e => e.Version).HasColumnType("int(11)");
  9835. });
  9836. modelBuilder.Entity<UserSnActInfo>(entity =>
  9837. {
  9838. entity.Property(e => e.Id).HasColumnType("int(11)");
  9839. entity.Property(e => e.ActUserId).HasColumnType("int(11)");
  9840. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9841. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9842. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9843. entity.Property(e => e.CreateMan)
  9844. .HasColumnType("varchar(50)")
  9845. .HasCharSet("utf8")
  9846. .HasCollation("utf8_general_ci");
  9847. entity.Property(e => e.EffectEndActDate)
  9848. .HasColumnType("varchar(8)")
  9849. .HasCharSet("utf8")
  9850. .HasCollation("utf8_general_ci");
  9851. entity.Property(e => e.EffectEndCycleDate)
  9852. .HasColumnType("varchar(8)")
  9853. .HasCharSet("utf8")
  9854. .HasCollation("utf8_general_ci");
  9855. entity.Property(e => e.EffectStartActDate)
  9856. .HasColumnType("varchar(8)")
  9857. .HasCharSet("utf8")
  9858. .HasCollation("utf8_general_ci");
  9859. entity.Property(e => e.EffectStartCycleDate)
  9860. .HasColumnType("varchar(8)")
  9861. .HasCharSet("utf8")
  9862. .HasCollation("utf8_general_ci");
  9863. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9864. entity.Property(e => e.Remark)
  9865. .HasColumnType("varchar(128)")
  9866. .HasCharSet("utf8")
  9867. .HasCollation("utf8_general_ci");
  9868. entity.Property(e => e.SeoDescription)
  9869. .HasColumnType("varchar(500)")
  9870. .HasCharSet("utf8")
  9871. .HasCollation("utf8_general_ci");
  9872. entity.Property(e => e.SeoKeyword)
  9873. .HasColumnType("varchar(200)")
  9874. .HasCharSet("utf8")
  9875. .HasCollation("utf8_general_ci");
  9876. entity.Property(e => e.SeoTitle)
  9877. .HasColumnType("varchar(100)")
  9878. .HasCharSet("utf8")
  9879. .HasCollation("utf8_general_ci");
  9880. entity.Property(e => e.SnNo)
  9881. .HasColumnType("varchar(32)")
  9882. .HasCharSet("utf8")
  9883. .HasCollation("utf8_general_ci");
  9884. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  9885. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9886. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9887. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9888. entity.Property(e => e.SourceShipDate).HasColumnType("datetime");
  9889. entity.Property(e => e.SourceSnNo)
  9890. .HasColumnType("varchar(32)")
  9891. .HasCharSet("utf8")
  9892. .HasCollation("utf8_general_ci");
  9893. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9894. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9895. entity.Property(e => e.StandardDate)
  9896. .HasColumnType("varchar(8)")
  9897. .HasCharSet("utf8")
  9898. .HasCollation("utf8_general_ci");
  9899. entity.Property(e => e.Status).HasColumnType("int(11)");
  9900. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9901. entity.Property(e => e.UpdateMan)
  9902. .HasColumnType("varchar(50)")
  9903. .HasCharSet("utf8")
  9904. .HasCollation("utf8_general_ci");
  9905. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9906. entity.Property(e => e.Version).HasColumnType("int(11)");
  9907. });
  9908. modelBuilder.Entity<UserSnDelayChange>(entity =>
  9909. {
  9910. entity.Property(e => e.Id).HasColumnType("int(11)");
  9911. entity.Property(e => e.ActivityRuleId).HasColumnType("int(11)");
  9912. entity.Property(e => e.AfterEndCycleDate)
  9913. .HasColumnType("varchar(8)")
  9914. .HasCharSet("utf8")
  9915. .HasCollation("utf8_general_ci");
  9916. entity.Property(e => e.BeforeEndCycleDate)
  9917. .HasColumnType("varchar(8)")
  9918. .HasCharSet("utf8")
  9919. .HasCollation("utf8_general_ci");
  9920. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9921. entity.Property(e => e.ChangeRecordNo)
  9922. .HasColumnType("varchar(32)")
  9923. .HasCharSet("utf8")
  9924. .HasCollation("utf8_general_ci");
  9925. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9926. entity.Property(e => e.CreateMan)
  9927. .HasColumnType("varchar(50)")
  9928. .HasCharSet("utf8")
  9929. .HasCollation("utf8_general_ci");
  9930. entity.Property(e => e.InitCycleDate)
  9931. .HasColumnType("varchar(8)")
  9932. .HasCharSet("utf8")
  9933. .HasCollation("utf8_general_ci");
  9934. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9935. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  9936. entity.Property(e => e.Remark)
  9937. .HasColumnType("varchar(128)")
  9938. .HasCharSet("utf8")
  9939. .HasCollation("utf8_general_ci");
  9940. entity.Property(e => e.SeoDescription)
  9941. .HasColumnType("varchar(500)")
  9942. .HasCharSet("utf8")
  9943. .HasCollation("utf8_general_ci");
  9944. entity.Property(e => e.SeoKeyword)
  9945. .HasColumnType("varchar(200)")
  9946. .HasCharSet("utf8")
  9947. .HasCollation("utf8_general_ci");
  9948. entity.Property(e => e.SeoTitle)
  9949. .HasColumnType("varchar(100)")
  9950. .HasCharSet("utf8")
  9951. .HasCollation("utf8_general_ci");
  9952. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  9953. entity.Property(e => e.SnNo)
  9954. .HasColumnType("varchar(32)")
  9955. .HasCharSet("utf8")
  9956. .HasCollation("utf8_general_ci");
  9957. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9958. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9959. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9960. entity.Property(e => e.SourceSnNo)
  9961. .HasColumnType("varchar(32)")
  9962. .HasCharSet("utf8")
  9963. .HasCollation("utf8_general_ci");
  9964. entity.Property(e => e.SourceSnShipDate).HasColumnType("datetime");
  9965. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9966. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9967. entity.Property(e => e.Status).HasColumnType("int(11)");
  9968. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9969. entity.Property(e => e.UpdateMan)
  9970. .HasColumnType("varchar(50)")
  9971. .HasCharSet("utf8")
  9972. .HasCollation("utf8_general_ci");
  9973. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9974. entity.Property(e => e.Version).HasColumnType("int(11)");
  9975. });
  9976. modelBuilder.Entity<UserStoreChange>(entity =>
  9977. {
  9978. entity.Property(e => e.Id).HasColumnType("int(11)");
  9979. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  9980. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9981. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  9982. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  9983. entity.Property(e => e.BizBatchNo)
  9984. .HasColumnType("varchar(32)")
  9985. .HasCharSet("utf8")
  9986. .HasCollation("utf8_general_ci");
  9987. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9988. entity.Property(e => e.BrandType)
  9989. .HasColumnType("varchar(10)")
  9990. .HasCharSet("utf8")
  9991. .HasCollation("utf8_general_ci");
  9992. entity.Property(e => e.ChangeRecordNo)
  9993. .HasColumnType("varchar(32)")
  9994. .HasCharSet("utf8")
  9995. .HasCollation("utf8_general_ci");
  9996. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9997. entity.Property(e => e.CreateMan)
  9998. .HasColumnType("varchar(50)")
  9999. .HasCharSet("utf8")
  10000. .HasCollation("utf8_general_ci");
  10001. entity.Property(e => e.DeviceModel)
  10002. .HasColumnType("varchar(32)")
  10003. .HasCharSet("utf8")
  10004. .HasCollation("utf8_general_ci");
  10005. entity.Property(e => e.DeviceType)
  10006. .HasColumnType("varchar(32)")
  10007. .HasCharSet("utf8")
  10008. .HasCollation("utf8_general_ci");
  10009. entity.Property(e => e.DeviceVendor)
  10010. .HasColumnType("varchar(32)")
  10011. .HasCharSet("utf8")
  10012. .HasCollation("utf8_general_ci");
  10013. entity.Property(e => e.FromDate).HasColumnType("datetime");
  10014. entity.Property(e => e.FromRemark)
  10015. .HasColumnType("varchar(64)")
  10016. .HasCharSet("utf8")
  10017. .HasCollation("utf8_general_ci");
  10018. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  10019. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10020. entity.Property(e => e.SeoDescription)
  10021. .HasColumnType("varchar(500)")
  10022. .HasCharSet("utf8")
  10023. .HasCollation("utf8_general_ci");
  10024. entity.Property(e => e.SeoKeyword)
  10025. .HasColumnType("varchar(200)")
  10026. .HasCharSet("utf8")
  10027. .HasCollation("utf8_general_ci");
  10028. entity.Property(e => e.SeoTitle)
  10029. .HasColumnType("varchar(100)")
  10030. .HasCharSet("utf8")
  10031. .HasCollation("utf8_general_ci");
  10032. entity.Property(e => e.SnNo)
  10033. .HasColumnType("varchar(32)")
  10034. .HasCharSet("utf8")
  10035. .HasCollation("utf8_general_ci");
  10036. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  10037. entity.Property(e => e.SnType).HasColumnType("int(11)");
  10038. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10039. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  10040. entity.Property(e => e.Status).HasColumnType("int(11)");
  10041. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  10042. entity.Property(e => e.ToDate).HasColumnType("datetime");
  10043. entity.Property(e => e.ToRemark)
  10044. .HasColumnType("varchar(64)")
  10045. .HasCharSet("utf8")
  10046. .HasCollation("utf8_general_ci");
  10047. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  10048. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  10049. entity.Property(e => e.TransType).HasColumnType("int(11)");
  10050. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10051. entity.Property(e => e.UpdateMan)
  10052. .HasColumnType("varchar(50)")
  10053. .HasCharSet("utf8")
  10054. .HasCollation("utf8_general_ci");
  10055. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10056. entity.Property(e => e.Version).HasColumnType("int(11)");
  10057. });
  10058. modelBuilder.Entity<UserSwapDetail>(entity =>
  10059. {
  10060. entity.Property(e => e.Id).HasColumnType("int(11)");
  10061. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10062. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10063. entity.Property(e => e.CreateMan)
  10064. .HasColumnType("varchar(50)")
  10065. .HasCharSet("utf8")
  10066. .HasCollation("utf8_general_ci");
  10067. entity.Property(e => e.DirectSnTradeAmt).HasColumnType("decimal(18,2)");
  10068. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10069. entity.Property(e => e.RecordNo)
  10070. .HasColumnType("varchar(32)")
  10071. .HasCharSet("utf8")
  10072. .HasCollation("utf8_general_ci");
  10073. entity.Property(e => e.Remark)
  10074. .HasColumnType("varchar(64)")
  10075. .HasCharSet("utf8")
  10076. .HasCollation("utf8_general_ci");
  10077. entity.Property(e => e.RiskResult).HasColumnType("int(11)");
  10078. entity.Property(e => e.SeoDescription)
  10079. .HasColumnType("varchar(500)")
  10080. .HasCharSet("utf8")
  10081. .HasCollation("utf8_general_ci");
  10082. entity.Property(e => e.SeoKeyword)
  10083. .HasColumnType("varchar(200)")
  10084. .HasCharSet("utf8")
  10085. .HasCollation("utf8_general_ci");
  10086. entity.Property(e => e.SeoTitle)
  10087. .HasColumnType("varchar(100)")
  10088. .HasCharSet("utf8")
  10089. .HasCollation("utf8_general_ci");
  10090. entity.Property(e => e.SnNo)
  10091. .HasColumnType("varchar(32)")
  10092. .HasCharSet("utf8")
  10093. .HasCollation("utf8_general_ci");
  10094. entity.Property(e => e.SnType).HasColumnType("int(11)");
  10095. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10096. entity.Property(e => e.SourceSnNo)
  10097. .HasColumnType("varchar(32)")
  10098. .HasCharSet("utf8")
  10099. .HasCollation("utf8_general_ci");
  10100. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  10101. entity.Property(e => e.Status).HasColumnType("int(11)");
  10102. entity.Property(e => e.SwapExtProductTypes)
  10103. .HasColumnType("varchar(16)")
  10104. .HasCharSet("utf8")
  10105. .HasCollation("utf8_general_ci");
  10106. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  10107. entity.Property(e => e.TradeDate)
  10108. .HasColumnType("varchar(8)")
  10109. .HasCharSet("utf8")
  10110. .HasCollation("utf8_general_ci");
  10111. entity.Property(e => e.TradeMonth)
  10112. .HasColumnType("varchar(6)")
  10113. .HasCharSet("utf8")
  10114. .HasCollation("utf8_general_ci");
  10115. entity.Property(e => e.UpSourceSnNo)
  10116. .HasColumnType("varchar(32)")
  10117. .HasCharSet("utf8")
  10118. .HasCollation("utf8_general_ci");
  10119. entity.Property(e => e.UpSourceSnType).HasColumnType("int(11)");
  10120. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10121. entity.Property(e => e.UpdateMan)
  10122. .HasColumnType("varchar(50)")
  10123. .HasCharSet("utf8")
  10124. .HasCollation("utf8_general_ci");
  10125. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10126. entity.Property(e => e.Version).HasColumnType("int(11)");
  10127. });
  10128. modelBuilder.Entity<UserSwapSummary>(entity =>
  10129. {
  10130. entity.Property(e => e.Id).HasColumnType("int(11)");
  10131. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10132. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10133. entity.Property(e => e.CreateMan)
  10134. .HasColumnType("varchar(50)")
  10135. .HasCharSet("utf8")
  10136. .HasCollation("utf8_general_ci");
  10137. entity.Property(e => e.DirAvgTradeAmt).HasColumnType("decimal(18,2)");
  10138. entity.Property(e => e.DirectActMerCount).HasColumnType("int(11)");
  10139. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  10140. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10141. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  10142. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  10143. entity.Property(e => e.SeoDescription)
  10144. .HasColumnType("varchar(500)")
  10145. .HasCharSet("utf8")
  10146. .HasCollation("utf8_general_ci");
  10147. entity.Property(e => e.SeoKeyword)
  10148. .HasColumnType("varchar(200)")
  10149. .HasCharSet("utf8")
  10150. .HasCollation("utf8_general_ci");
  10151. entity.Property(e => e.SeoTitle)
  10152. .HasColumnType("varchar(100)")
  10153. .HasCharSet("utf8")
  10154. .HasCollation("utf8_general_ci");
  10155. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10156. entity.Property(e => e.Status).HasColumnType("int(11)");
  10157. entity.Property(e => e.SwapExtProductTypes)
  10158. .HasColumnType("varchar(16)")
  10159. .HasCharSet("utf8")
  10160. .HasCollation("utf8_general_ci");
  10161. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  10162. entity.Property(e => e.TradeMonth)
  10163. .HasColumnType("varchar(6)")
  10164. .HasCharSet("utf8")
  10165. .HasCollation("utf8_general_ci");
  10166. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10167. entity.Property(e => e.UpdateMan)
  10168. .HasColumnType("varchar(50)")
  10169. .HasCharSet("utf8")
  10170. .HasCollation("utf8_general_ci");
  10171. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10172. entity.Property(e => e.Version).HasColumnType("int(11)");
  10173. });
  10174. modelBuilder.Entity<UserSwapWhite>(entity =>
  10175. {
  10176. entity.Property(e => e.Id).HasColumnType("int(11)");
  10177. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10178. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10179. entity.Property(e => e.CreateMan)
  10180. .HasColumnType("varchar(50)")
  10181. .HasCharSet("utf8")
  10182. .HasCollation("utf8_general_ci");
  10183. entity.Property(e => e.EndEffectTime).HasColumnType("datetime");
  10184. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10185. entity.Property(e => e.Remark)
  10186. .HasColumnType("varchar(64)")
  10187. .HasCharSet("utf8")
  10188. .HasCollation("utf8_general_ci");
  10189. entity.Property(e => e.RiskType).HasColumnType("int(11)");
  10190. entity.Property(e => e.SeoDescription)
  10191. .HasColumnType("varchar(500)")
  10192. .HasCharSet("utf8")
  10193. .HasCollation("utf8_general_ci");
  10194. entity.Property(e => e.SeoKeyword)
  10195. .HasColumnType("varchar(200)")
  10196. .HasCharSet("utf8")
  10197. .HasCollation("utf8_general_ci");
  10198. entity.Property(e => e.SeoTitle)
  10199. .HasColumnType("varchar(100)")
  10200. .HasCharSet("utf8")
  10201. .HasCollation("utf8_general_ci");
  10202. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10203. entity.Property(e => e.StartEffectTime).HasColumnType("datetime");
  10204. entity.Property(e => e.Status).HasColumnType("int(11)");
  10205. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10206. entity.Property(e => e.UpdateMan)
  10207. .HasColumnType("varchar(50)")
  10208. .HasCharSet("utf8")
  10209. .HasCollation("utf8_general_ci");
  10210. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10211. entity.Property(e => e.Version).HasColumnType("int(11)");
  10212. });
  10213. modelBuilder.Entity<UserTradeDaySummary>(entity =>
  10214. {
  10215. entity.HasIndex(e => new { e.UserId, e.TradeMonth, e.TradeDate, e.SeoTitle, e.BrandId, e.QueryCount })
  10216. .HasName("UserTradeDaySummaryIndex");
  10217. entity.Property(e => e.Id).HasColumnType("int(11)");
  10218. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10219. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10220. entity.Property(e => e.CreateMan)
  10221. .HasColumnType("varchar(50)")
  10222. .HasCharSet("utf8")
  10223. .HasCollation("utf8_general_ci");
  10224. entity.Property(e => e.DirectDebitCapNum).HasColumnType("int(11)");
  10225. entity.Property(e => e.DirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  10226. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  10227. entity.Property(e => e.NonDirectDebitCapNum).HasColumnType("int(11)");
  10228. entity.Property(e => e.NonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  10229. entity.Property(e => e.NonDirectTradeAmt).HasColumnType("decimal(18,2)");
  10230. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10231. entity.Property(e => e.Remark)
  10232. .HasColumnType("varchar(64)")
  10233. .HasCharSet("utf8")
  10234. .HasCollation("utf8_general_ci");
  10235. entity.Property(e => e.SeoDescription)
  10236. .HasColumnType("varchar(500)")
  10237. .HasCharSet("utf8")
  10238. .HasCollation("utf8_general_ci");
  10239. entity.Property(e => e.SeoKeyword)
  10240. .HasColumnType("varchar(200)")
  10241. .HasCharSet("utf8")
  10242. .HasCollation("utf8_general_ci");
  10243. entity.Property(e => e.SeoTitle)
  10244. .HasColumnType("varchar(100)")
  10245. .HasCharSet("utf8")
  10246. .HasCollation("utf8_general_ci");
  10247. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10248. entity.Property(e => e.Status).HasColumnType("int(11)");
  10249. entity.Property(e => e.TradeDate)
  10250. .HasColumnType("varchar(8)")
  10251. .HasCharSet("utf8")
  10252. .HasCollation("utf8_general_ci");
  10253. entity.Property(e => e.TradeMonth)
  10254. .HasColumnType("varchar(6)")
  10255. .HasCharSet("utf8")
  10256. .HasCollation("utf8_general_ci");
  10257. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10258. entity.Property(e => e.UpdateMan)
  10259. .HasColumnType("varchar(50)")
  10260. .HasCharSet("utf8")
  10261. .HasCollation("utf8_general_ci");
  10262. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10263. entity.Property(e => e.Version).HasColumnType("int(11)");
  10264. });
  10265. modelBuilder.Entity<UserTradeMonthSummary>(entity =>
  10266. {
  10267. entity.HasIndex(e => new { e.UserId, e.BrandId, e.TradeMonth, e.SeoKeyword, e.SeoTitle })
  10268. .HasName("UserTradeMonthSummaryIndex");
  10269. entity.Property(e => e.Id).HasColumnType("int(11)");
  10270. entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
  10271. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10272. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10273. entity.Property(e => e.CreateMan)
  10274. .HasColumnType("varchar(50)")
  10275. .HasCharSet("utf8")
  10276. .HasCollation("utf8_general_ci");
  10277. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  10278. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  10279. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  10280. entity.Property(e => e.DebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  10281. entity.Property(e => e.MallPosOrderStatus).HasColumnType("int(11)");
  10282. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10283. entity.Property(e => e.Remark)
  10284. .HasColumnType("varchar(64)")
  10285. .HasCharSet("utf8")
  10286. .HasCollation("utf8_general_ci");
  10287. entity.Property(e => e.SeoDescription)
  10288. .HasColumnType("varchar(500)")
  10289. .HasCharSet("utf8")
  10290. .HasCollation("utf8_general_ci");
  10291. entity.Property(e => e.SeoKeyword)
  10292. .HasColumnType("varchar(200)")
  10293. .HasCharSet("utf8")
  10294. .HasCollation("utf8_general_ci");
  10295. entity.Property(e => e.SeoTitle)
  10296. .HasColumnType("varchar(100)")
  10297. .HasCharSet("utf8")
  10298. .HasCollation("utf8_general_ci");
  10299. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10300. entity.Property(e => e.StatType).HasColumnType("int(11)");
  10301. entity.Property(e => e.Status).HasColumnType("int(11)");
  10302. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  10303. entity.Property(e => e.TradeMonth)
  10304. .HasColumnType("varchar(6)")
  10305. .HasCharSet("utf8")
  10306. .HasCollation("utf8_general_ci");
  10307. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10308. entity.Property(e => e.UpdateMan)
  10309. .HasColumnType("varchar(50)")
  10310. .HasCharSet("utf8")
  10311. .HasCollation("utf8_general_ci");
  10312. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10313. entity.Property(e => e.Version).HasColumnType("int(11)");
  10314. });
  10315. modelBuilder.Entity<Users>(entity =>
  10316. {
  10317. entity.Property(e => e.Id).HasColumnType("int(11)");
  10318. entity.Property(e => e.AccessToken)
  10319. .HasColumnType("varchar(64)")
  10320. .HasCharSet("utf8")
  10321. .HasCollation("utf8_general_ci");
  10322. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  10323. entity.Property(e => e.Address)
  10324. .HasColumnType("varchar(50)")
  10325. .HasCharSet("utf8")
  10326. .HasCollation("utf8_general_ci");
  10327. entity.Property(e => e.AgentAreas)
  10328. .HasColumnType("varchar(50)")
  10329. .HasCharSet("utf8")
  10330. .HasCollation("utf8_general_ci");
  10331. entity.Property(e => e.AgentLevel).HasColumnType("int(11)");
  10332. entity.Property(e => e.AlipayUserId)
  10333. .HasColumnType("varchar(50)")
  10334. .HasCharSet("utf8")
  10335. .HasCollation("utf8_general_ci");
  10336. entity.Property(e => e.Areas)
  10337. .HasColumnType("varchar(30)")
  10338. .HasCharSet("utf8")
  10339. .HasCollation("utf8_general_ci");
  10340. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  10341. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  10342. entity.Property(e => e.AuthFlag)
  10343. .HasColumnType("bit(1)")
  10344. .HasDefaultValueSql("b'0'");
  10345. entity.Property(e => e.BankCardPositiveImage)
  10346. .HasColumnType("varchar(200)")
  10347. .HasCharSet("utf8")
  10348. .HasCollation("utf8_general_ci");
  10349. entity.Property(e => e.CarIds)
  10350. .HasColumnType("varchar(100)")
  10351. .HasCharSet("utf8")
  10352. .HasCollation("utf8_general_ci");
  10353. entity.Property(e => e.CardNo)
  10354. .HasColumnType("varchar(30)")
  10355. .HasCharSet("utf8")
  10356. .HasCollation("utf8_general_ci");
  10357. entity.Property(e => e.CardRecCode)
  10358. .HasColumnType("varchar(200)")
  10359. .HasCharSet("utf8")
  10360. .HasCollation("utf8_general_ci");
  10361. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  10362. entity.Property(e => e.CashNote)
  10363. .HasColumnType("varchar(200)")
  10364. .HasCharSet("utf8")
  10365. .HasCollation("utf8_general_ci");
  10366. entity.Property(e => e.CashStatus).HasColumnType("int(11)");
  10367. entity.Property(e => e.CertFrontImage)
  10368. .HasColumnType("varchar(200)")
  10369. .HasCharSet("utf8")
  10370. .HasCollation("utf8_general_ci");
  10371. entity.Property(e => e.CertId)
  10372. .HasColumnType("varchar(30)")
  10373. .HasCharSet("utf8")
  10374. .HasCollation("utf8_general_ci");
  10375. entity.Property(e => e.CertReverseImage)
  10376. .HasColumnType("varchar(200)")
  10377. .HasCharSet("utf8")
  10378. .HasCollation("utf8_general_ci");
  10379. entity.Property(e => e.CertValidEndDate).HasColumnType("datetime");
  10380. entity.Property(e => e.CertValidStartDate).HasColumnType("datetime");
  10381. entity.Property(e => e.CitySetDate).HasColumnType("datetime");
  10382. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10383. entity.Property(e => e.CreateMan)
  10384. .HasColumnType("varchar(50)")
  10385. .HasCharSet("utf8")
  10386. .HasCollation("utf8_general_ci");
  10387. entity.Property(e => e.DeviceId)
  10388. .HasColumnType("varchar(128)")
  10389. .HasCharSet("utf8")
  10390. .HasCollation("utf8_general_ci");
  10391. entity.Property(e => e.DeviceToken)
  10392. .HasColumnType("varchar(64)")
  10393. .HasCharSet("utf8")
  10394. .HasCollation("utf8_general_ci");
  10395. entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
  10396. entity.Property(e => e.GroupId)
  10397. .HasColumnType("varchar(200)")
  10398. .HasCharSet("utf8")
  10399. .HasCollation("utf8_general_ci");
  10400. entity.Property(e => e.HandCertImage)
  10401. .HasColumnType("varchar(200)")
  10402. .HasCharSet("utf8")
  10403. .HasCollation("utf8_general_ci");
  10404. entity.Property(e => e.HandPwd)
  10405. .HasColumnType("varchar(32)")
  10406. .HasCharSet("utf8")
  10407. .HasCollation("utf8_general_ci");
  10408. entity.Property(e => e.HeadPhoto)
  10409. .HasColumnType("varchar(2000)")
  10410. .HasCharSet("utf8")
  10411. .HasCollation("utf8_general_ci");
  10412. entity.Property(e => e.IdCardEndNo)
  10413. .HasColumnType("varchar(4)")
  10414. .HasCharSet("utf8")
  10415. .HasCollation("utf8_general_ci");
  10416. entity.Property(e => e.IsNewUser)
  10417. .HasColumnType("bit(1)")
  10418. .HasDefaultValueSql("b'0'");
  10419. entity.Property(e => e.LeaderLevel).HasColumnType("int(11)");
  10420. entity.Property(e => e.LockStatus)
  10421. .HasColumnType("bit(1)")
  10422. .HasDefaultValueSql("b'0'");
  10423. entity.Property(e => e.LoginPwd)
  10424. .HasColumnType("varchar(32)")
  10425. .HasCharSet("utf8")
  10426. .HasCollation("utf8_general_ci");
  10427. entity.Property(e => e.LoginStatus).HasColumnType("int(11)");
  10428. entity.Property(e => e.MakerCode)
  10429. .HasColumnType("varchar(32)")
  10430. .HasCharSet("utf8")
  10431. .HasCollation("utf8_general_ci");
  10432. entity.Property(e => e.MerchantDate).HasColumnType("datetime");
  10433. entity.Property(e => e.MerchantType).HasColumnType("int(11)");
  10434. entity.Property(e => e.Mobile)
  10435. .HasColumnType("varchar(15)")
  10436. .HasCharSet("utf8")
  10437. .HasCollation("utf8_general_ci");
  10438. entity.Property(e => e.NickName)
  10439. .HasColumnType("varchar(300)")
  10440. .HasCharSet("utf8")
  10441. .HasCollation("utf8_general_ci");
  10442. entity.Property(e => e.OpenId)
  10443. .HasColumnType("varchar(50)")
  10444. .HasCharSet("utf8")
  10445. .HasCollation("utf8_general_ci");
  10446. entity.Property(e => e.ParentNav)
  10447. .HasColumnType("longtext")
  10448. .HasCharSet("utf8")
  10449. .HasCollation("utf8_general_ci");
  10450. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  10451. entity.Property(e => e.PayPwd)
  10452. .HasColumnType("varchar(32)")
  10453. .HasCharSet("utf8")
  10454. .HasCollation("utf8_general_ci");
  10455. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  10456. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10457. entity.Property(e => e.RealName)
  10458. .HasColumnType("varchar(30)")
  10459. .HasCharSet("utf8")
  10460. .HasCollation("utf8_general_ci");
  10461. entity.Property(e => e.ReferenceCode)
  10462. .HasColumnType("varchar(200)")
  10463. .HasCharSet("utf8")
  10464. .HasCollation("utf8_general_ci");
  10465. entity.Property(e => e.ReferenceQrCode)
  10466. .HasColumnType("varchar(200)")
  10467. .HasCharSet("utf8")
  10468. .HasCollation("utf8_general_ci");
  10469. entity.Property(e => e.ReferralUserId).HasColumnType("int(11)");
  10470. entity.Property(e => e.Remark)
  10471. .HasColumnType("mediumtext")
  10472. .HasCharSet("utf8")
  10473. .HasCollation("utf8_general_ci");
  10474. entity.Property(e => e.RiskFlag)
  10475. .HasColumnType("bit(1)")
  10476. .HasDefaultValueSql("b'0'");
  10477. entity.Property(e => e.RiskRemark)
  10478. .HasColumnType("varchar(64)")
  10479. .HasCharSet("utf8")
  10480. .HasCollation("utf8_general_ci");
  10481. entity.Property(e => e.RreezeRemark)
  10482. .HasColumnType("varchar(64)")
  10483. .HasCharSet("utf8")
  10484. .HasCollation("utf8_general_ci");
  10485. entity.Property(e => e.SeoDescription)
  10486. .HasColumnType("varchar(500)")
  10487. .HasCharSet("utf8")
  10488. .HasCollation("utf8_general_ci");
  10489. entity.Property(e => e.SeoKeyword)
  10490. .HasColumnType("varchar(200)")
  10491. .HasCharSet("utf8")
  10492. .HasCollation("utf8_general_ci");
  10493. entity.Property(e => e.SeoTitle)
  10494. .HasColumnType("varchar(100)")
  10495. .HasCharSet("utf8")
  10496. .HasCollation("utf8_general_ci");
  10497. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  10498. entity.Property(e => e.SettleBankCardName)
  10499. .HasColumnType("varchar(20)")
  10500. .HasCharSet("utf8")
  10501. .HasCollation("utf8_general_ci");
  10502. entity.Property(e => e.SettleBankCardNo)
  10503. .HasColumnType("varchar(32)")
  10504. .HasCharSet("utf8")
  10505. .HasCollation("utf8_general_ci");
  10506. entity.Property(e => e.SettleBankName)
  10507. .HasColumnType("varchar(32)")
  10508. .HasCharSet("utf8")
  10509. .HasCollation("utf8_general_ci");
  10510. entity.Property(e => e.SettleRemark)
  10511. .HasColumnType("varchar(64)")
  10512. .HasCharSet("utf8")
  10513. .HasCollation("utf8_general_ci");
  10514. entity.Property(e => e.Sex).HasColumnType("int(11)");
  10515. entity.Property(e => e.SignImgUrl)
  10516. .HasColumnType("varchar(200)")
  10517. .HasCharSet("utf8")
  10518. .HasCollation("utf8_general_ci");
  10519. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10520. entity.Property(e => e.Status).HasColumnType("int(11)");
  10521. entity.Property(e => e.Tags)
  10522. .HasColumnType("varchar(200)")
  10523. .HasCharSet("utf8")
  10524. .HasCollation("utf8_general_ci");
  10525. entity.Property(e => e.ThisMonthTrade).HasColumnType("decimal(18,2)");
  10526. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10527. entity.Property(e => e.UpdateMan)
  10528. .HasColumnType("varchar(50)")
  10529. .HasCharSet("utf8")
  10530. .HasCollation("utf8_general_ci");
  10531. entity.Property(e => e.UserLevel).HasColumnType("int(11)");
  10532. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  10533. entity.Property(e => e.UserType).HasColumnType("int(11)");
  10534. entity.Property(e => e.Version).HasColumnType("int(11)");
  10535. });
  10536. OnModelCreatingPartial(modelBuilder);
  10537. }
  10538. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  10539. }
  10540. }