WebCMSEntities.cs 558 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621
  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<MachineApply> MachineApply { get; set; }
  49. public virtual DbSet<MachineApplyDetail> MachineApplyDetail { get; set; }
  50. public virtual DbSet<MachineChange> MachineChange { get; set; }
  51. public virtual DbSet<MachineChangeDetail> MachineChangeDetail { get; set; }
  52. public virtual DbSet<MachineForMerNo> MachineForMerNo { get; set; }
  53. public virtual DbSet<MachineForQrCode> MachineForQrCode { get; set; }
  54. public virtual DbSet<MachineForSnNo> MachineForSnNo { get; set; }
  55. public virtual DbSet<MachineRenew> MachineRenew { get; set; }
  56. public virtual DbSet<MachineReturn> MachineReturn { get; set; }
  57. public virtual DbSet<MachineUnBind> MachineUnBind { get; set; }
  58. public virtual DbSet<MenuRight> MenuRight { get; set; }
  59. public virtual DbSet<MerchantAddInfo> MerchantAddInfo { get; set; }
  60. public virtual DbSet<MerchantAdmin> MerchantAdmin { get; set; }
  61. public virtual DbSet<MerchantAuth> MerchantAuth { get; set; }
  62. public virtual DbSet<MerchantClass> MerchantClass { get; set; }
  63. public virtual DbSet<MerchantCol> MerchantCol { get; set; }
  64. public virtual DbSet<MerchantComment> MerchantComment { get; set; }
  65. public virtual DbSet<MerchantDepositReturns> MerchantDepositReturns { get; set; }
  66. public virtual DbSet<MerchantForCode> MerchantForCode { get; set; }
  67. public virtual DbSet<MerchantForMobile> MerchantForMobile { get; set; }
  68. public virtual DbSet<MerchantForName> MerchantForName { get; set; }
  69. public virtual DbSet<MerchantInfo> MerchantInfo { get; set; }
  70. public virtual DbSet<MerchantParamSet> MerchantParamSet { get; set; }
  71. public virtual DbSet<MerchantQrCode> MerchantQrCode { get; set; }
  72. public virtual DbSet<MerchantRebateDetail> MerchantRebateDetail { get; set; }
  73. public virtual DbSet<Merchants> Merchants { get; set; }
  74. public virtual DbSet<MobileCodeCheck> MobileCodeCheck { get; set; }
  75. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  76. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  77. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  78. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  79. public virtual DbSet<MsgPush> MsgPush { get; set; }
  80. public virtual DbSet<MsgSms> MsgSms { get; set; }
  81. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  82. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  83. public virtual DbSet<OpenBankCityTable> OpenBankCityTable { get; set; }
  84. public virtual DbSet<OpenBankTable> OpenBankTable { get; set; }
  85. public virtual DbSet<OpenReward> OpenReward { get; set; }
  86. public virtual DbSet<OpenRewardDetail> OpenRewardDetail { get; set; }
  87. public virtual DbSet<OpenSnSnapshot> OpenSnSnapshot { get; set; }
  88. public virtual DbSet<OperateLog> OperateLog { get; set; }
  89. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  90. public virtual DbSet<OrderForNo> OrderForNo { get; set; }
  91. public virtual DbSet<OrderProduct> OrderProduct { get; set; }
  92. public virtual DbSet<OrderRefund> OrderRefund { get; set; }
  93. public virtual DbSet<OrderRefundReason> OrderRefundReason { get; set; }
  94. public virtual DbSet<Orders> Orders { get; set; }
  95. public virtual DbSet<PageInfo> PageInfo { get; set; }
  96. public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
  97. public virtual DbSet<PosCouponForUser> PosCouponForUser { get; set; }
  98. public virtual DbSet<PosCouponOrders> PosCouponOrders { get; set; }
  99. public virtual DbSet<PosCouponRecord> PosCouponRecord { get; set; }
  100. public virtual DbSet<PosCoupons> PosCoupons { get; set; }
  101. public virtual DbSet<PosMachines> PosMachines { get; set; }
  102. public virtual DbSet<PosMachinesTwo> PosMachinesTwo { get; set; }
  103. public virtual DbSet<PosMerchantInfo> PosMerchantInfo { get; set; }
  104. public virtual DbSet<PosMerchantOtherInfo> PosMerchantOtherInfo { get; set; }
  105. public virtual DbSet<PosMerchantTradeSummay> PosMerchantTradeSummay { get; set; }
  106. public virtual DbSet<PreSendStockDetail> PreSendStockDetail { get; set; }
  107. public virtual DbSet<ProductComment> ProductComment { get; set; }
  108. public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
  109. public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
  110. public virtual DbSet<ProductFareTemp> ProductFareTemp { get; set; }
  111. public virtual DbSet<ProductKeys> ProductKeys { get; set; }
  112. public virtual DbSet<ProductNorm> ProductNorm { get; set; }
  113. public virtual DbSet<ProductNormItem> ProductNormItem { get; set; }
  114. public virtual DbSet<ProductNormTemp> ProductNormTemp { get; set; }
  115. public virtual DbSet<Products> Products { get; set; }
  116. public virtual DbSet<ProfitObjectActivations> ProfitObjectActivations { get; set; }
  117. public virtual DbSet<ProfitObjectContinueFloors> ProfitObjectContinueFloors { get; set; }
  118. public virtual DbSet<ProfitObjectFloors> ProfitObjectFloors { get; set; }
  119. public virtual DbSet<ProfitObjectLevelKinds> ProfitObjectLevelKinds { get; set; }
  120. public virtual DbSet<ProfitObjectLevels> ProfitObjectLevels { get; set; }
  121. public virtual DbSet<ProfitObjects> ProfitObjects { get; set; }
  122. public virtual DbSet<ProfitObjectsActiveCheck> ProfitObjectsActiveCheck { get; set; }
  123. public virtual DbSet<ProfitObjectsActiveParams> ProfitObjectsActiveParams { get; set; }
  124. public virtual DbSet<ProfitObjectsActives> ProfitObjectsActives { get; set; }
  125. public virtual DbSet<ProfitObjectsActivesForId> ProfitObjectsActivesForId { get; set; }
  126. public virtual DbSet<ProfitObjectsRule> ProfitObjectsRule { get; set; }
  127. public virtual DbSet<ProfitObjectsRuleDetails> ProfitObjectsRuleDetails { get; set; }
  128. public virtual DbSet<ProfitReceiveRecord> ProfitReceiveRecord { get; set; }
  129. public virtual DbSet<ProfitReceives> ProfitReceives { get; set; }
  130. public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
  131. public virtual DbSet<ProfitRewardRecord> ProfitRewardRecord { get; set; }
  132. public virtual DbSet<ProfitSubsidyDetail> ProfitSubsidyDetail { get; set; }
  133. public virtual DbSet<ProfitSubsidyDetail04> ProfitSubsidyDetail04 { get; set; }
  134. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  135. public virtual DbSet<PullNewAct> PullNewAct { get; set; }
  136. public virtual DbSet<PullNewDetail> PullNewDetail { get; set; }
  137. public virtual DbSet<PullnewSummary> PullnewSummary { get; set; }
  138. public virtual DbSet<RightDic> RightDic { get; set; }
  139. public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
  140. public virtual DbSet<SetMerchantTypeRecord> SetMerchantTypeRecord { get; set; }
  141. public virtual DbSet<SmallStoreHouse> SmallStoreHouse { get; set; }
  142. public virtual DbSet<StoreBalance> StoreBalance { get; set; }
  143. public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
  144. public virtual DbSet<StoreForCode> StoreForCode { get; set; }
  145. public virtual DbSet<StoreForName> StoreForName { get; set; }
  146. public virtual DbSet<StoreHouse> StoreHouse { get; set; }
  147. public virtual DbSet<StoreHouseAmountRecord> StoreHouseAmountRecord { get; set; }
  148. public virtual DbSet<StoreMachineApply> StoreMachineApply { get; set; }
  149. public virtual DbSet<StoreMallOrderSummary> StoreMallOrderSummary { get; set; }
  150. public virtual DbSet<StoreSnActivateSummary> StoreSnActivateSummary { get; set; }
  151. public virtual DbSet<StoreStockChange> StoreStockChange { get; set; }
  152. public virtual DbSet<StoreSwapSn> StoreSwapSn { get; set; }
  153. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  154. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  155. public virtual DbSet<SysLog> SysLog { get; set; }
  156. public virtual DbSet<SysRechargeRecord> SysRechargeRecord { get; set; }
  157. public virtual DbSet<SystemSet> SystemSet { get; set; }
  158. public virtual DbSet<TeamApply> TeamApply { get; set; }
  159. public virtual DbSet<TeamApplyForTeamName> TeamApplyForTeamName { get; set; }
  160. public virtual DbSet<TeamApplyForTeamNo> TeamApplyForTeamNo { get; set; }
  161. public virtual DbSet<TeamBlackList> TeamBlackList { get; set; }
  162. public virtual DbSet<TeamConfig> TeamConfig { get; set; }
  163. public virtual DbSet<TeamDayTop> TeamDayTop { get; set; }
  164. public virtual DbSet<TeamOfferApply> TeamOfferApply { get; set; }
  165. public virtual DbSet<TeamPersonDayTop> TeamPersonDayTop { get; set; }
  166. public virtual DbSet<TmpCert> TmpCert { get; set; }
  167. public virtual DbSet<TmpTradeNo> TmpTradeNo { get; set; }
  168. public virtual DbSet<TradeDaySummary> TradeDaySummary { get; set; }
  169. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  170. public virtual DbSet<TradeRecordTest> TradeRecordTest { get; set; }
  171. public virtual DbSet<UploadParams> UploadParams { get; set; }
  172. public virtual DbSet<UserAccount> UserAccount { get; set; }
  173. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  174. public virtual DbSet<UserAddress> UserAddress { get; set; }
  175. public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
  176. public virtual DbSet<UserBack> UserBack { get; set; }
  177. public virtual DbSet<UserBackKind> UserBackKind { get; set; }
  178. public virtual DbSet<UserBalanceTop> UserBalanceTop { get; set; }
  179. public virtual DbSet<UserCar> UserCar { get; set; }
  180. public virtual DbSet<UserCardForWeChat> UserCardForWeChat { get; set; }
  181. public virtual DbSet<UserCardRecord> UserCardRecord { get; set; }
  182. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  183. public virtual DbSet<UserCenterIconList> UserCenterIconList { get; set; }
  184. public virtual DbSet<UserCollection> UserCollection { get; set; }
  185. public virtual DbSet<UserData> UserData { get; set; }
  186. public virtual DbSet<UserDetail> UserDetail { get; set; }
  187. public virtual DbSet<UserFamilyMember> UserFamilyMember { get; set; }
  188. public virtual DbSet<UserForMakerCode> UserForMakerCode { get; set; }
  189. public virtual DbSet<UserForMobile> UserForMobile { get; set; }
  190. public virtual DbSet<UserForRealName> UserForRealName { get; set; }
  191. public virtual DbSet<UserFriend> UserFriend { get; set; }
  192. public virtual DbSet<UserGroup> UserGroup { get; set; }
  193. public virtual DbSet<UserLevelSet> UserLevelSet { get; set; }
  194. public virtual DbSet<UserLoginRecord> UserLoginRecord { get; set; }
  195. public virtual DbSet<UserMachineData> UserMachineData { get; set; }
  196. public virtual DbSet<UserMallLargeSn> UserMallLargeSn { get; set; }
  197. public virtual DbSet<UserOfflineSignInRecords> UserOfflineSignInRecords { get; set; }
  198. public virtual DbSet<UserProfit> UserProfit { get; set; }
  199. public virtual DbSet<UserProfitSet> UserProfitSet { get; set; }
  200. public virtual DbSet<UserProfitSubsidySummary> UserProfitSubsidySummary { get; set; }
  201. public virtual DbSet<UserRank> UserRank { get; set; }
  202. public virtual DbSet<UserRankWhite> UserRankWhite { get; set; }
  203. public virtual DbSet<UserRebateDetail> UserRebateDetail { get; set; }
  204. public virtual DbSet<UserSnActInfo> UserSnActInfo { get; set; }
  205. public virtual DbSet<UserSnDelayChange> UserSnDelayChange { get; set; }
  206. public virtual DbSet<UserStoreChange> UserStoreChange { get; set; }
  207. public virtual DbSet<UserSwapDetail> UserSwapDetail { get; set; }
  208. public virtual DbSet<UserSwapSummary> UserSwapSummary { get; set; }
  209. public virtual DbSet<UserSwapWhite> UserSwapWhite { get; set; }
  210. public virtual DbSet<UserTradeDaySummary> UserTradeDaySummary { get; set; }
  211. public virtual DbSet<UserTradeMonthSummary> UserTradeMonthSummary { get; set; }
  212. public virtual DbSet<Users> Users { get; set; }
  213. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  214. {
  215. if (!optionsBuilder.IsConfigured)
  216. {
  217. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  218. }
  219. }
  220. protected override void OnModelCreating(ModelBuilder modelBuilder)
  221. {
  222. modelBuilder.Entity<ActiveReward>(entity =>
  223. {
  224. entity.Property(e => e.Id).HasColumnType("int(11)");
  225. entity.Property(e => e.ActDate).HasColumnType("datetime");
  226. entity.Property(e => e.ActType).HasColumnType("int(11)");
  227. entity.Property(e => e.ActTypeDesc)
  228. .HasColumnType("varchar(64)")
  229. .HasCharSet("utf8")
  230. .HasCollation("utf8_general_ci");
  231. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  232. entity.Property(e => e.City)
  233. .HasColumnType("varchar(32)")
  234. .HasCharSet("utf8")
  235. .HasCollation("utf8_general_ci");
  236. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  237. entity.Property(e => e.CreateMan)
  238. .HasColumnType("varchar(50)")
  239. .HasCharSet("utf8")
  240. .HasCollation("utf8_general_ci");
  241. entity.Property(e => e.DirectBuddyNo).HasColumnType("int(11)");
  242. entity.Property(e => e.DivideAmount).HasColumnType("decimal(18,2)");
  243. entity.Property(e => e.KqMerNo)
  244. .HasColumnType("varchar(32)")
  245. .HasCharSet("utf8")
  246. .HasCollation("utf8_general_ci");
  247. entity.Property(e => e.KqSnNo)
  248. .HasColumnType("varchar(32)")
  249. .HasCharSet("utf8")
  250. .HasCollation("utf8_general_ci");
  251. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  252. entity.Property(e => e.MerUserNav)
  253. .HasColumnType("varchar(200)")
  254. .HasCharSet("utf8")
  255. .HasCollation("utf8_general_ci");
  256. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  257. entity.Property(e => e.ParentParentUserId).HasColumnType("int(11)");
  258. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  259. entity.Property(e => e.Province)
  260. .HasColumnType("varchar(32)")
  261. .HasCharSet("utf8")
  262. .HasCollation("utf8_general_ci");
  263. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  264. entity.Property(e => e.Remark)
  265. .HasColumnType("varchar(64)")
  266. .HasCharSet("utf8")
  267. .HasCollation("utf8_general_ci");
  268. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  269. entity.Property(e => e.RewardRef).HasColumnType("int(11)");
  270. entity.Property(e => e.RewardSourceUserId).HasColumnType("int(11)");
  271. entity.Property(e => e.RewardTips)
  272. .HasColumnType("varchar(16)")
  273. .HasCharSet("utf8")
  274. .HasCollation("utf8_general_ci");
  275. entity.Property(e => e.RuleRewardAmount).HasColumnType("decimal(18,2)");
  276. entity.Property(e => e.SeoDescription)
  277. .HasColumnType("varchar(500)")
  278. .HasCharSet("utf8")
  279. .HasCollation("utf8_general_ci");
  280. entity.Property(e => e.SeoKeyword)
  281. .HasColumnType("varchar(200)")
  282. .HasCharSet("utf8")
  283. .HasCollation("utf8_general_ci");
  284. entity.Property(e => e.SeoTitle)
  285. .HasColumnType("varchar(100)")
  286. .HasCharSet("utf8")
  287. .HasCollation("utf8_general_ci");
  288. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  289. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  290. entity.Property(e => e.SnType).HasColumnType("int(11)");
  291. entity.Property(e => e.Sort).HasColumnType("int(11)");
  292. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  293. entity.Property(e => e.Status).HasColumnType("int(11)");
  294. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  295. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  296. entity.Property(e => e.UpdateMan)
  297. .HasColumnType("varchar(50)")
  298. .HasCharSet("utf8")
  299. .HasCollation("utf8_general_ci");
  300. entity.Property(e => e.UserId).HasColumnType("int(11)");
  301. entity.Property(e => e.UserNav)
  302. .HasColumnType("varchar(200)")
  303. .HasCharSet("utf8")
  304. .HasCollation("utf8_general_ci");
  305. entity.Property(e => e.Version).HasColumnType("int(11)");
  306. });
  307. modelBuilder.Entity<ActivityEnrolRecord>(entity =>
  308. {
  309. entity.Property(e => e.Id).HasColumnType("int(11)");
  310. entity.Property(e => e.ActId).HasColumnType("int(11)");
  311. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  312. entity.Property(e => e.CreateMan)
  313. .HasColumnType("varchar(50)")
  314. .HasCharSet("utf8")
  315. .HasCollation("utf8_general_ci");
  316. entity.Property(e => e.EffectEndTime)
  317. .HasColumnType("varchar(8)")
  318. .HasCharSet("utf8")
  319. .HasCollation("utf8_general_ci");
  320. entity.Property(e => e.EffectStartTime)
  321. .HasColumnType("varchar(8)")
  322. .HasCharSet("utf8")
  323. .HasCollation("utf8_general_ci");
  324. entity.Property(e => e.EnrolMonth)
  325. .HasColumnType("varchar(80)")
  326. .HasCharSet("utf8")
  327. .HasCollation("utf8_general_ci");
  328. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  329. entity.Property(e => e.SeoDescription)
  330. .HasColumnType("varchar(500)")
  331. .HasCharSet("utf8")
  332. .HasCollation("utf8_general_ci");
  333. entity.Property(e => e.SeoKeyword)
  334. .HasColumnType("varchar(200)")
  335. .HasCharSet("utf8")
  336. .HasCollation("utf8_general_ci");
  337. entity.Property(e => e.SeoTitle)
  338. .HasColumnType("varchar(100)")
  339. .HasCharSet("utf8")
  340. .HasCollation("utf8_general_ci");
  341. entity.Property(e => e.Sort).HasColumnType("int(11)");
  342. entity.Property(e => e.Status).HasColumnType("int(11)");
  343. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  344. entity.Property(e => e.UpdateMan)
  345. .HasColumnType("varchar(50)")
  346. .HasCharSet("utf8")
  347. .HasCollation("utf8_general_ci");
  348. entity.Property(e => e.UserId).HasColumnType("int(11)");
  349. entity.Property(e => e.Version).HasColumnType("int(11)");
  350. });
  351. modelBuilder.Entity<ActivityInfo>(entity =>
  352. {
  353. entity.Property(e => e.Id).HasColumnType("int(11)");
  354. entity.Property(e => e.ActBanner)
  355. .HasColumnType("varchar(200)")
  356. .HasCharSet("utf8")
  357. .HasCollation("utf8_general_ci");
  358. entity.Property(e => e.ActCode)
  359. .HasColumnType("varchar(32)")
  360. .HasCharSet("utf8")
  361. .HasCollation("utf8_general_ci");
  362. entity.Property(e => e.ActContent)
  363. .HasColumnType("longtext")
  364. .HasCharSet("utf8")
  365. .HasCollation("utf8_general_ci");
  366. entity.Property(e => e.ActName)
  367. .HasColumnType("varchar(128)")
  368. .HasCharSet("utf8")
  369. .HasCollation("utf8_general_ci");
  370. entity.Property(e => e.ActReferUrl)
  371. .HasColumnType("varchar(255)")
  372. .HasCharSet("utf8")
  373. .HasCollation("utf8_general_ci");
  374. entity.Property(e => e.ActType).HasColumnType("int(11)");
  375. entity.Property(e => e.BrandId)
  376. .HasColumnType("varchar(100)")
  377. .HasCharSet("utf8")
  378. .HasCollation("utf8_general_ci");
  379. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  380. entity.Property(e => e.CreateMan)
  381. .HasColumnType("varchar(50)")
  382. .HasCharSet("utf8")
  383. .HasCollation("utf8_general_ci");
  384. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  385. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  386. entity.Property(e => e.EnrolEndDate).HasColumnType("datetime");
  387. entity.Property(e => e.EnrolEndTime)
  388. .HasColumnType("varchar(8)")
  389. .HasCharSet("utf8")
  390. .HasCollation("utf8_general_ci");
  391. entity.Property(e => e.EnrolStartDate).HasColumnType("datetime");
  392. entity.Property(e => e.EnrolStartTime)
  393. .HasColumnType("varchar(8)")
  394. .HasCharSet("utf8")
  395. .HasCollation("utf8_general_ci");
  396. entity.Property(e => e.IsTop).HasColumnType("int(11)");
  397. entity.Property(e => e.LimitTopBuddy)
  398. .HasColumnType("varchar(255)")
  399. .HasCharSet("utf8")
  400. .HasCollation("utf8_general_ci");
  401. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  402. entity.Property(e => e.Remark)
  403. .HasColumnType("varchar(128)")
  404. .HasCharSet("utf8")
  405. .HasCollation("utf8_general_ci");
  406. entity.Property(e => e.SeoDescription)
  407. .HasColumnType("varchar(500)")
  408. .HasCharSet("utf8")
  409. .HasCollation("utf8_general_ci");
  410. entity.Property(e => e.SeoKeyword)
  411. .HasColumnType("varchar(200)")
  412. .HasCharSet("utf8")
  413. .HasCollation("utf8_general_ci");
  414. entity.Property(e => e.SeoTitle)
  415. .HasColumnType("varchar(100)")
  416. .HasCharSet("utf8")
  417. .HasCollation("utf8_general_ci");
  418. entity.Property(e => e.Sort).HasColumnType("int(11)");
  419. entity.Property(e => e.Status).HasColumnType("int(11)");
  420. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  421. entity.Property(e => e.UpdateMan)
  422. .HasColumnType("varchar(50)")
  423. .HasCharSet("utf8")
  424. .HasCollation("utf8_general_ci");
  425. entity.Property(e => e.Version).HasColumnType("int(11)");
  426. });
  427. modelBuilder.Entity<ActivityPrizeDetail>(entity =>
  428. {
  429. entity.Property(e => e.Id).HasColumnType("int(11)");
  430. entity.Property(e => e.ActRewardAmt).HasColumnType("decimal(18,2)");
  431. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  432. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  433. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  434. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  435. entity.Property(e => e.CreateMan)
  436. .HasColumnType("varchar(50)")
  437. .HasCharSet("utf8")
  438. .HasCollation("utf8_general_ci");
  439. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  440. entity.Property(e => e.OtherProdCreditTradeAmt).HasColumnType("decimal(18,2)");
  441. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  442. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  443. entity.Property(e => e.SeoDescription)
  444. .HasColumnType("varchar(500)")
  445. .HasCharSet("utf8")
  446. .HasCollation("utf8_general_ci");
  447. entity.Property(e => e.SeoKeyword)
  448. .HasColumnType("varchar(200)")
  449. .HasCharSet("utf8")
  450. .HasCollation("utf8_general_ci");
  451. entity.Property(e => e.SeoTitle)
  452. .HasColumnType("varchar(100)")
  453. .HasCharSet("utf8")
  454. .HasCollation("utf8_general_ci");
  455. entity.Property(e => e.Sort).HasColumnType("int(11)");
  456. entity.Property(e => e.Status).HasColumnType("int(11)");
  457. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  458. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  459. entity.Property(e => e.TradeMonth)
  460. .HasColumnType("varchar(6)")
  461. .HasCharSet("utf8")
  462. .HasCollation("utf8_general_ci");
  463. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  464. entity.Property(e => e.UpdateMan)
  465. .HasColumnType("varchar(50)")
  466. .HasCharSet("utf8")
  467. .HasCollation("utf8_general_ci");
  468. entity.Property(e => e.UserId).HasColumnType("int(11)");
  469. entity.Property(e => e.Version).HasColumnType("int(11)");
  470. });
  471. modelBuilder.Entity<ActivityRedPackageJoins>(entity =>
  472. {
  473. entity.Property(e => e.Id).HasColumnType("int(11)");
  474. entity.Property(e => e.ActivityDate)
  475. .HasColumnType("varchar(8)")
  476. .HasCharSet("utf8")
  477. .HasCollation("utf8_general_ci");
  478. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  479. entity.Property(e => e.CreateMan)
  480. .HasColumnType("varchar(50)")
  481. .HasCharSet("utf8")
  482. .HasCollation("utf8_general_ci");
  483. entity.Property(e => e.PrizeAmt).HasColumnType("decimal(18,2)");
  484. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  485. entity.Property(e => e.SeoDescription)
  486. .HasColumnType("varchar(500)")
  487. .HasCharSet("utf8")
  488. .HasCollation("utf8_general_ci");
  489. entity.Property(e => e.SeoKeyword)
  490. .HasColumnType("varchar(200)")
  491. .HasCharSet("utf8")
  492. .HasCollation("utf8_general_ci");
  493. entity.Property(e => e.SeoTitle)
  494. .HasColumnType("varchar(100)")
  495. .HasCharSet("utf8")
  496. .HasCollation("utf8_general_ci");
  497. entity.Property(e => e.Sort).HasColumnType("int(11)");
  498. entity.Property(e => e.Status).HasColumnType("int(11)");
  499. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  500. entity.Property(e => e.UpdateMan)
  501. .HasColumnType("varchar(50)")
  502. .HasCharSet("utf8")
  503. .HasCollation("utf8_general_ci");
  504. entity.Property(e => e.UserId).HasColumnType("int(11)");
  505. entity.Property(e => e.Version).HasColumnType("int(11)");
  506. });
  507. modelBuilder.Entity<ActivityRedPackageStock>(entity =>
  508. {
  509. entity.Property(e => e.Id).HasColumnType("int(11)");
  510. entity.Property(e => e.ActivityDate)
  511. .HasColumnType("varchar(8)")
  512. .HasCharSet("utf8")
  513. .HasCollation("utf8_general_ci");
  514. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  515. entity.Property(e => e.CreateMan)
  516. .HasColumnType("varchar(50)")
  517. .HasCharSet("utf8")
  518. .HasCollation("utf8_general_ci");
  519. entity.Property(e => e.PrizeAmt).HasColumnType("decimal(18,2)");
  520. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  521. entity.Property(e => e.SeoDescription)
  522. .HasColumnType("varchar(500)")
  523. .HasCharSet("utf8")
  524. .HasCollation("utf8_general_ci");
  525. entity.Property(e => e.SeoKeyword)
  526. .HasColumnType("varchar(200)")
  527. .HasCharSet("utf8")
  528. .HasCollation("utf8_general_ci");
  529. entity.Property(e => e.SeoTitle)
  530. .HasColumnType("varchar(100)")
  531. .HasCharSet("utf8")
  532. .HasCollation("utf8_general_ci");
  533. entity.Property(e => e.Sort).HasColumnType("int(11)");
  534. entity.Property(e => e.Status).HasColumnType("int(11)");
  535. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  536. entity.Property(e => e.UpdateMan)
  537. .HasColumnType("varchar(50)")
  538. .HasCharSet("utf8")
  539. .HasCollation("utf8_general_ci");
  540. entity.Property(e => e.UserId).HasColumnType("int(11)");
  541. entity.Property(e => e.Version).HasColumnType("int(11)");
  542. });
  543. modelBuilder.Entity<ActivityRedPackageTop10>(entity =>
  544. {
  545. entity.Property(e => e.Id).HasColumnType("int(11)");
  546. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  547. entity.Property(e => e.CreateMan)
  548. .HasColumnType("varchar(50)")
  549. .HasCharSet("utf8")
  550. .HasCollation("utf8_general_ci");
  551. entity.Property(e => e.Kind).HasColumnType("int(11)");
  552. entity.Property(e => e.PrizeAmt).HasColumnType("decimal(18,2)");
  553. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  554. entity.Property(e => e.SeoDescription)
  555. .HasColumnType("varchar(500)")
  556. .HasCharSet("utf8")
  557. .HasCollation("utf8_general_ci");
  558. entity.Property(e => e.SeoKeyword)
  559. .HasColumnType("varchar(200)")
  560. .HasCharSet("utf8")
  561. .HasCollation("utf8_general_ci");
  562. entity.Property(e => e.SeoTitle)
  563. .HasColumnType("varchar(100)")
  564. .HasCharSet("utf8")
  565. .HasCollation("utf8_general_ci");
  566. entity.Property(e => e.Sort).HasColumnType("int(11)");
  567. entity.Property(e => e.Status).HasColumnType("int(11)");
  568. entity.Property(e => e.TimeNum).HasColumnType("int(11)");
  569. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  570. entity.Property(e => e.UpdateMan)
  571. .HasColumnType("varchar(50)")
  572. .HasCharSet("utf8")
  573. .HasCollation("utf8_general_ci");
  574. entity.Property(e => e.UserId).HasColumnType("int(11)");
  575. entity.Property(e => e.Version).HasColumnType("int(11)");
  576. });
  577. modelBuilder.Entity<Advertisment>(entity =>
  578. {
  579. entity.Property(e => e.Id).HasColumnType("int(11)");
  580. entity.Property(e => e.ColId)
  581. .HasColumnType("varchar(30)")
  582. .HasCharSet("utf8")
  583. .HasCollation("utf8_general_ci");
  584. entity.Property(e => e.Contents)
  585. .HasColumnType("longtext")
  586. .HasCharSet("utf8")
  587. .HasCollation("utf8_general_ci");
  588. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  589. entity.Property(e => e.CreateMan)
  590. .HasColumnType("varchar(50)")
  591. .HasCharSet("utf8")
  592. .HasCollation("utf8_general_ci");
  593. entity.Property(e => e.PicPath)
  594. .HasColumnType("varchar(200)")
  595. .HasCharSet("utf8")
  596. .HasCollation("utf8_general_ci");
  597. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  598. entity.Property(e => e.SeoDescription)
  599. .HasColumnType("varchar(500)")
  600. .HasCharSet("utf8")
  601. .HasCollation("utf8_general_ci");
  602. entity.Property(e => e.SeoKeyword)
  603. .HasColumnType("varchar(200)")
  604. .HasCharSet("utf8")
  605. .HasCollation("utf8_general_ci");
  606. entity.Property(e => e.SeoTitle)
  607. .HasColumnType("varchar(100)")
  608. .HasCharSet("utf8")
  609. .HasCollation("utf8_general_ci");
  610. entity.Property(e => e.Sort).HasColumnType("int(11)");
  611. entity.Property(e => e.Status).HasColumnType("int(11)");
  612. entity.Property(e => e.Title)
  613. .HasColumnType("varchar(50)")
  614. .HasCharSet("utf8")
  615. .HasCollation("utf8_general_ci");
  616. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  617. entity.Property(e => e.UpdateMan)
  618. .HasColumnType("varchar(50)")
  619. .HasCharSet("utf8")
  620. .HasCollation("utf8_general_ci");
  621. entity.Property(e => e.Url)
  622. .HasColumnType("longtext")
  623. .HasCharSet("utf8")
  624. .HasCollation("utf8_general_ci");
  625. entity.Property(e => e.Version).HasColumnType("int(11)");
  626. });
  627. modelBuilder.Entity<AgentLevelSet>(entity =>
  628. {
  629. entity.Property(e => e.Id).HasColumnType("int(11)");
  630. entity.Property(e => e.AreasProfitPercent).HasColumnType("decimal(18,2)");
  631. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  632. entity.Property(e => e.CreateMan)
  633. .HasColumnType("varchar(50)")
  634. .HasCharSet("utf8")
  635. .HasCollation("utf8_general_ci");
  636. entity.Property(e => e.LevelDiff)
  637. .HasColumnType("bit(1)")
  638. .HasDefaultValueSql("b'0'");
  639. entity.Property(e => e.Name)
  640. .HasColumnType("varchar(50)")
  641. .HasCharSet("utf8")
  642. .HasCollation("utf8_general_ci");
  643. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  644. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  645. entity.Property(e => e.SeoDescription)
  646. .HasColumnType("varchar(500)")
  647. .HasCharSet("utf8")
  648. .HasCollation("utf8_general_ci");
  649. entity.Property(e => e.SeoKeyword)
  650. .HasColumnType("varchar(200)")
  651. .HasCharSet("utf8")
  652. .HasCollation("utf8_general_ci");
  653. entity.Property(e => e.SeoTitle)
  654. .HasColumnType("varchar(100)")
  655. .HasCharSet("utf8")
  656. .HasCollation("utf8_general_ci");
  657. entity.Property(e => e.Sort).HasColumnType("int(11)");
  658. entity.Property(e => e.Status).HasColumnType("int(11)");
  659. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  660. entity.Property(e => e.UpdateMan)
  661. .HasColumnType("varchar(50)")
  662. .HasCharSet("utf8")
  663. .HasCollation("utf8_general_ci");
  664. entity.Property(e => e.Version).HasColumnType("int(11)");
  665. });
  666. modelBuilder.Entity<AppBottomNavs>(entity =>
  667. {
  668. entity.Property(e => e.Id).HasColumnType("int(11)");
  669. entity.Property(e => e.BgColor)
  670. .HasColumnType("varchar(6)")
  671. .HasCharSet("utf8")
  672. .HasCollation("utf8_general_ci");
  673. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  674. entity.Property(e => e.CreateMan)
  675. .HasColumnType("varchar(50)")
  676. .HasCharSet("utf8")
  677. .HasCollation("utf8_general_ci");
  678. entity.Property(e => e.NoPageHint)
  679. .HasColumnType("varchar(50)")
  680. .HasCharSet("utf8")
  681. .HasCollation("utf8_general_ci");
  682. entity.Property(e => e.NormalIcon)
  683. .HasColumnType("varchar(200)")
  684. .HasCharSet("utf8")
  685. .HasCollation("utf8_general_ci");
  686. entity.Property(e => e.NormalTextColor)
  687. .HasColumnType("varchar(6)")
  688. .HasCharSet("utf8")
  689. .HasCollation("utf8_general_ci");
  690. entity.Property(e => e.PageName)
  691. .HasColumnType("varchar(50)")
  692. .HasCharSet("utf8")
  693. .HasCollation("utf8_general_ci");
  694. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  695. entity.Property(e => e.SelectIcon)
  696. .HasColumnType("varchar(200)")
  697. .HasCharSet("utf8")
  698. .HasCollation("utf8_general_ci");
  699. entity.Property(e => e.SelectTextColor)
  700. .HasColumnType("varchar(6)")
  701. .HasCharSet("utf8")
  702. .HasCollation("utf8_general_ci");
  703. entity.Property(e => e.SeoDescription)
  704. .HasColumnType("varchar(500)")
  705. .HasCharSet("utf8")
  706. .HasCollation("utf8_general_ci");
  707. entity.Property(e => e.SeoKeyword)
  708. .HasColumnType("varchar(200)")
  709. .HasCharSet("utf8")
  710. .HasCollation("utf8_general_ci");
  711. entity.Property(e => e.SeoTitle)
  712. .HasColumnType("varchar(100)")
  713. .HasCharSet("utf8")
  714. .HasCollation("utf8_general_ci");
  715. entity.Property(e => e.Sort).HasColumnType("int(11)");
  716. entity.Property(e => e.Status).HasColumnType("int(11)");
  717. entity.Property(e => e.Title)
  718. .HasColumnType("varchar(10)")
  719. .HasCharSet("utf8")
  720. .HasCollation("utf8_general_ci");
  721. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  722. entity.Property(e => e.UpdateMan)
  723. .HasColumnType("varchar(50)")
  724. .HasCharSet("utf8")
  725. .HasCollation("utf8_general_ci");
  726. entity.Property(e => e.Version).HasColumnType("int(11)");
  727. });
  728. modelBuilder.Entity<AppVersion>(entity =>
  729. {
  730. entity.Property(e => e.Id).HasColumnType("int(11)");
  731. entity.Property(e => e.CancelText)
  732. .HasColumnType("varchar(10)")
  733. .HasCharSet("utf8")
  734. .HasCollation("utf8_general_ci");
  735. entity.Property(e => e.ConfirmText)
  736. .HasColumnType("varchar(10)")
  737. .HasCharSet("utf8")
  738. .HasCollation("utf8_general_ci");
  739. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  740. entity.Property(e => e.CreateMan)
  741. .HasColumnType("varchar(50)")
  742. .HasCharSet("utf8")
  743. .HasCollation("utf8_general_ci");
  744. entity.Property(e => e.DownloadUrl)
  745. .HasColumnType("varchar(500)")
  746. .HasCharSet("utf8")
  747. .HasCollation("utf8_general_ci");
  748. entity.Property(e => e.Info)
  749. .HasColumnType("varchar(200)")
  750. .HasCharSet("utf8")
  751. .HasCollation("utf8_general_ci");
  752. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  753. entity.Property(e => e.SeoDescription)
  754. .HasColumnType("varchar(500)")
  755. .HasCharSet("utf8")
  756. .HasCollation("utf8_general_ci");
  757. entity.Property(e => e.SeoKeyword)
  758. .HasColumnType("varchar(200)")
  759. .HasCharSet("utf8")
  760. .HasCollation("utf8_general_ci");
  761. entity.Property(e => e.SeoTitle)
  762. .HasColumnType("varchar(100)")
  763. .HasCharSet("utf8")
  764. .HasCollation("utf8_general_ci");
  765. entity.Property(e => e.Sort).HasColumnType("int(11)");
  766. entity.Property(e => e.Status).HasColumnType("int(11)");
  767. entity.Property(e => e.TerminalKind)
  768. .HasColumnType("varchar(10)")
  769. .HasCharSet("utf8")
  770. .HasCollation("utf8_general_ci");
  771. entity.Property(e => e.Title)
  772. .HasColumnType("varchar(50)")
  773. .HasCharSet("utf8")
  774. .HasCollation("utf8_general_ci");
  775. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  776. entity.Property(e => e.UpdateMan)
  777. .HasColumnType("varchar(50)")
  778. .HasCharSet("utf8")
  779. .HasCollation("utf8_general_ci");
  780. entity.Property(e => e.Version).HasColumnType("int(11)");
  781. entity.Property(e => e.VersionNum)
  782. .HasColumnType("varchar(20)")
  783. .HasCharSet("utf8")
  784. .HasCollation("utf8_general_ci");
  785. });
  786. modelBuilder.Entity<AppVideo>(entity =>
  787. {
  788. entity.Property(e => e.Id).HasColumnType("int(11)");
  789. entity.Property(e => e.BannerPic)
  790. .HasColumnType("varchar(200)")
  791. .HasCharSet("utf8")
  792. .HasCollation("utf8_general_ci");
  793. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  794. entity.Property(e => e.CreateMan)
  795. .HasColumnType("varchar(50)")
  796. .HasCharSet("utf8")
  797. .HasCollation("utf8_general_ci");
  798. entity.Property(e => e.Name)
  799. .HasColumnType("varchar(50)")
  800. .HasCharSet("utf8")
  801. .HasCollation("utf8_general_ci");
  802. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  803. entity.Property(e => e.Remark)
  804. .HasColumnType("varchar(200)")
  805. .HasCharSet("utf8")
  806. .HasCollation("utf8_general_ci");
  807. entity.Property(e => e.SeoDescription)
  808. .HasColumnType("varchar(500)")
  809. .HasCharSet("utf8")
  810. .HasCollation("utf8_general_ci");
  811. entity.Property(e => e.SeoKeyword)
  812. .HasColumnType("varchar(200)")
  813. .HasCharSet("utf8")
  814. .HasCollation("utf8_general_ci");
  815. entity.Property(e => e.SeoTitle)
  816. .HasColumnType("varchar(100)")
  817. .HasCharSet("utf8")
  818. .HasCollation("utf8_general_ci");
  819. entity.Property(e => e.Sort).HasColumnType("int(11)");
  820. entity.Property(e => e.Status).HasColumnType("int(11)");
  821. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  822. entity.Property(e => e.UpdateMan)
  823. .HasColumnType("varchar(50)")
  824. .HasCharSet("utf8")
  825. .HasCollation("utf8_general_ci");
  826. entity.Property(e => e.Version).HasColumnType("int(11)");
  827. });
  828. modelBuilder.Entity<AppVideoList>(entity =>
  829. {
  830. entity.Property(e => e.Id).HasColumnType("int(11)");
  831. entity.Property(e => e.BgPic)
  832. .HasColumnType("varchar(200)")
  833. .HasCharSet("utf8")
  834. .HasCollation("utf8_general_ci");
  835. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  836. entity.Property(e => e.CreateMan)
  837. .HasColumnType("varchar(50)")
  838. .HasCharSet("utf8")
  839. .HasCollation("utf8_general_ci");
  840. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  841. entity.Property(e => e.Remark)
  842. .HasColumnType("varchar(200)")
  843. .HasCharSet("utf8")
  844. .HasCollation("utf8_general_ci");
  845. entity.Property(e => e.SeoDescription)
  846. .HasColumnType("varchar(500)")
  847. .HasCharSet("utf8")
  848. .HasCollation("utf8_general_ci");
  849. entity.Property(e => e.SeoKeyword)
  850. .HasColumnType("varchar(200)")
  851. .HasCharSet("utf8")
  852. .HasCollation("utf8_general_ci");
  853. entity.Property(e => e.SeoTitle)
  854. .HasColumnType("varchar(100)")
  855. .HasCharSet("utf8")
  856. .HasCollation("utf8_general_ci");
  857. entity.Property(e => e.Sort).HasColumnType("int(11)");
  858. entity.Property(e => e.Status).HasColumnType("int(11)");
  859. entity.Property(e => e.Title)
  860. .HasColumnType("varchar(50)")
  861. .HasCharSet("utf8")
  862. .HasCollation("utf8_general_ci");
  863. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  864. entity.Property(e => e.UpdateMan)
  865. .HasColumnType("varchar(50)")
  866. .HasCharSet("utf8")
  867. .HasCollation("utf8_general_ci");
  868. entity.Property(e => e.Version).HasColumnType("int(11)");
  869. entity.Property(e => e.VideoId).HasColumnType("int(11)");
  870. entity.Property(e => e.VideoUrl)
  871. .HasColumnType("varchar(500)")
  872. .HasCharSet("utf8")
  873. .HasCollation("utf8_general_ci");
  874. });
  875. modelBuilder.Entity<BankInfo>(entity =>
  876. {
  877. entity.Property(e => e.Id).HasColumnType("int(11)");
  878. entity.Property(e => e.BankCode)
  879. .HasColumnType("varchar(16)")
  880. .HasCharSet("utf8")
  881. .HasCollation("utf8_general_ci");
  882. entity.Property(e => e.BankName)
  883. .HasColumnType("varchar(100)")
  884. .HasCharSet("utf8")
  885. .HasCollation("utf8_general_ci");
  886. entity.Property(e => e.BankNameAbbr)
  887. .HasColumnType("varchar(60)")
  888. .HasCharSet("utf8")
  889. .HasCollation("utf8_general_ci");
  890. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  891. entity.Property(e => e.CreateMan)
  892. .HasColumnType("varchar(50)")
  893. .HasCharSet("utf8")
  894. .HasCollation("utf8_general_ci");
  895. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  896. entity.Property(e => e.SeoDescription)
  897. .HasColumnType("varchar(500)")
  898. .HasCharSet("utf8")
  899. .HasCollation("utf8_general_ci");
  900. entity.Property(e => e.SeoKeyword)
  901. .HasColumnType("varchar(200)")
  902. .HasCharSet("utf8")
  903. .HasCollation("utf8_general_ci");
  904. entity.Property(e => e.SeoTitle)
  905. .HasColumnType("varchar(100)")
  906. .HasCharSet("utf8")
  907. .HasCollation("utf8_general_ci");
  908. entity.Property(e => e.Sort).HasColumnType("int(11)");
  909. entity.Property(e => e.Status).HasColumnType("int(11)");
  910. entity.Property(e => e.UnitedBankName)
  911. .HasColumnType("varchar(100)")
  912. .HasCharSet("utf8")
  913. .HasCollation("utf8_general_ci");
  914. entity.Property(e => e.UnitedBankNo)
  915. .HasColumnType("varchar(16)")
  916. .HasCharSet("utf8")
  917. .HasCollation("utf8_general_ci");
  918. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  919. entity.Property(e => e.UpdateMan)
  920. .HasColumnType("varchar(50)")
  921. .HasCharSet("utf8")
  922. .HasCollation("utf8_general_ci");
  923. entity.Property(e => e.Version).HasColumnType("int(11)");
  924. });
  925. modelBuilder.Entity<Col>(entity =>
  926. {
  927. entity.Property(e => e.Id).HasColumnType("int(11)");
  928. entity.Property(e => e.ClassName)
  929. .HasColumnType("varchar(50)")
  930. .HasCharSet("utf8")
  931. .HasCollation("utf8_general_ci");
  932. entity.Property(e => e.ColDetail)
  933. .HasColumnType("varchar(50)")
  934. .HasCharSet("utf8")
  935. .HasCollation("utf8_general_ci");
  936. entity.Property(e => e.ColEnName)
  937. .HasColumnType("varchar(50)")
  938. .HasCharSet("utf8")
  939. .HasCollation("utf8_general_ci");
  940. entity.Property(e => e.ColEnNav)
  941. .HasColumnType("varchar(200)")
  942. .HasCharSet("utf8")
  943. .HasCollation("utf8_general_ci");
  944. entity.Property(e => e.ColId)
  945. .HasColumnType("varchar(30)")
  946. .HasCharSet("utf8")
  947. .HasCollation("utf8_general_ci");
  948. entity.Property(e => e.ColName)
  949. .HasColumnType("varchar(50)")
  950. .HasCharSet("utf8")
  951. .HasCollation("utf8_general_ci");
  952. entity.Property(e => e.ColPicPath)
  953. .HasColumnType("varchar(200)")
  954. .HasCharSet("utf8")
  955. .HasCollation("utf8_general_ci");
  956. entity.Property(e => e.Contents)
  957. .HasColumnType("longtext")
  958. .HasCharSet("utf8")
  959. .HasCollation("utf8_general_ci");
  960. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  961. entity.Property(e => e.CreateMan)
  962. .HasColumnType("varchar(50)")
  963. .HasCharSet("utf8")
  964. .HasCollation("utf8_general_ci");
  965. entity.Property(e => e.DetailTemp)
  966. .HasColumnType("varchar(100)")
  967. .HasCharSet("utf8")
  968. .HasCollation("utf8_general_ci");
  969. entity.Property(e => e.DetailTempM)
  970. .HasColumnType("varchar(100)")
  971. .HasCharSet("utf8")
  972. .HasCollation("utf8_general_ci");
  973. entity.Property(e => e.ListPageCount).HasColumnType("int(11)");
  974. entity.Property(e => e.ListTemp)
  975. .HasColumnType("varchar(100)")
  976. .HasCharSet("utf8")
  977. .HasCollation("utf8_general_ci");
  978. entity.Property(e => e.ListTempM)
  979. .HasColumnType("varchar(100)")
  980. .HasCharSet("utf8")
  981. .HasCollation("utf8_general_ci");
  982. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  983. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  984. entity.Property(e => e.Recommend)
  985. .HasColumnType("bit(1)")
  986. .HasDefaultValueSql("b'0'");
  987. entity.Property(e => e.SeoDescription)
  988. .HasColumnType("varchar(500)")
  989. .HasCharSet("utf8")
  990. .HasCollation("utf8_general_ci");
  991. entity.Property(e => e.SeoKeyword)
  992. .HasColumnType("varchar(200)")
  993. .HasCharSet("utf8")
  994. .HasCollation("utf8_general_ci");
  995. entity.Property(e => e.SeoTitle)
  996. .HasColumnType("varchar(100)")
  997. .HasCharSet("utf8")
  998. .HasCollation("utf8_general_ci");
  999. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1000. entity.Property(e => e.Status).HasColumnType("int(11)");
  1001. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1002. entity.Property(e => e.UpdateMan)
  1003. .HasColumnType("varchar(50)")
  1004. .HasCharSet("utf8")
  1005. .HasCollation("utf8_general_ci");
  1006. entity.Property(e => e.Url)
  1007. .HasColumnType("longtext")
  1008. .HasCharSet("utf8")
  1009. .HasCollation("utf8_general_ci");
  1010. entity.Property(e => e.Version).HasColumnType("int(11)");
  1011. });
  1012. modelBuilder.Entity<ConsumerOpenIds>(entity =>
  1013. {
  1014. entity.HasKey(e => e.OpenId)
  1015. .HasName("PRIMARY");
  1016. entity.Property(e => e.OpenId)
  1017. .HasColumnType("varchar(50)")
  1018. .HasCharSet("utf8")
  1019. .HasCollation("utf8_general_ci");
  1020. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  1021. });
  1022. modelBuilder.Entity<ConsumerOrderForNo>(entity =>
  1023. {
  1024. entity.HasKey(e => e.OrderNo)
  1025. .HasName("PRIMARY");
  1026. entity.Property(e => e.OrderNo)
  1027. .HasColumnType("varchar(50)")
  1028. .HasCharSet("utf8")
  1029. .HasCollation("utf8_general_ci");
  1030. entity.Property(e => e.OrderIds).HasColumnType("int(11)");
  1031. });
  1032. modelBuilder.Entity<ConsumerOrders>(entity =>
  1033. {
  1034. entity.Property(e => e.Id).HasColumnType("int(11)");
  1035. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  1036. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1037. entity.Property(e => e.CreateMan)
  1038. .HasColumnType("varchar(50)")
  1039. .HasCharSet("utf8")
  1040. .HasCollation("utf8_general_ci");
  1041. entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
  1042. entity.Property(e => e.IsAct)
  1043. .HasColumnType("bit(1)")
  1044. .HasDefaultValueSql("b'0'");
  1045. entity.Property(e => e.MaxDivi).HasColumnType("decimal(18,2)");
  1046. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1047. entity.Property(e => e.OrderNo)
  1048. .HasColumnType("varchar(30)")
  1049. .HasCharSet("utf8")
  1050. .HasCollation("utf8_general_ci");
  1051. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  1052. entity.Property(e => e.PayMoney).HasColumnType("decimal(18,2)");
  1053. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1054. entity.Property(e => e.ReturnMoney).HasColumnType("decimal(18,2)");
  1055. entity.Property(e => e.SeoDescription)
  1056. .HasColumnType("varchar(500)")
  1057. .HasCharSet("utf8")
  1058. .HasCollation("utf8_general_ci");
  1059. entity.Property(e => e.SeoKeyword)
  1060. .HasColumnType("varchar(200)")
  1061. .HasCharSet("utf8")
  1062. .HasCollation("utf8_general_ci");
  1063. entity.Property(e => e.SeoTitle)
  1064. .HasColumnType("varchar(100)")
  1065. .HasCharSet("utf8")
  1066. .HasCollation("utf8_general_ci");
  1067. entity.Property(e => e.SnNo)
  1068. .HasColumnType("varchar(50)")
  1069. .HasCharSet("utf8")
  1070. .HasCollation("utf8_general_ci");
  1071. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1072. entity.Property(e => e.Status).HasColumnType("int(11)");
  1073. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1074. entity.Property(e => e.UpdateMan)
  1075. .HasColumnType("varchar(50)")
  1076. .HasCharSet("utf8")
  1077. .HasCollation("utf8_general_ci");
  1078. entity.Property(e => e.Version).HasColumnType("int(11)");
  1079. });
  1080. modelBuilder.Entity<ConsumerProfit>(entity =>
  1081. {
  1082. entity.Property(e => e.Id).HasColumnType("int(11)");
  1083. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  1084. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1085. entity.Property(e => e.CreateMan)
  1086. .HasColumnType("varchar(50)")
  1087. .HasCharSet("utf8")
  1088. .HasCollation("utf8_general_ci");
  1089. entity.Property(e => e.GetMoney).HasColumnType("decimal(18,2)");
  1090. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1091. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  1092. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1093. entity.Property(e => e.SeoDescription)
  1094. .HasColumnType("varchar(500)")
  1095. .HasCharSet("utf8")
  1096. .HasCollation("utf8_general_ci");
  1097. entity.Property(e => e.SeoKeyword)
  1098. .HasColumnType("varchar(200)")
  1099. .HasCharSet("utf8")
  1100. .HasCollation("utf8_general_ci");
  1101. entity.Property(e => e.SeoTitle)
  1102. .HasColumnType("varchar(100)")
  1103. .HasCharSet("utf8")
  1104. .HasCollation("utf8_general_ci");
  1105. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1106. entity.Property(e => e.Status).HasColumnType("int(11)");
  1107. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1108. entity.Property(e => e.UpdateMan)
  1109. .HasColumnType("varchar(50)")
  1110. .HasCharSet("utf8")
  1111. .HasCollation("utf8_general_ci");
  1112. entity.Property(e => e.Version).HasColumnType("int(11)");
  1113. });
  1114. modelBuilder.Entity<Consumers>(entity =>
  1115. {
  1116. entity.Property(e => e.Id).HasColumnType("int(11)");
  1117. entity.Property(e => e.AlipayFlag)
  1118. .HasColumnType("bit(1)")
  1119. .HasDefaultValueSql("b'0'");
  1120. entity.Property(e => e.AlipayUserId)
  1121. .HasColumnType("varchar(50)")
  1122. .HasCharSet("utf8")
  1123. .HasCollation("utf8_general_ci");
  1124. entity.Property(e => e.CardFlag)
  1125. .HasColumnType("bit(1)")
  1126. .HasDefaultValueSql("b'0'");
  1127. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1128. entity.Property(e => e.CreateMan)
  1129. .HasColumnType("varchar(50)")
  1130. .HasCharSet("utf8")
  1131. .HasCollation("utf8_general_ci");
  1132. entity.Property(e => e.CurIntgegral).HasColumnType("int(11)");
  1133. entity.Property(e => e.HeadPhoto)
  1134. .HasColumnType("varchar(2000)")
  1135. .HasCharSet("utf8")
  1136. .HasCollation("utf8_general_ci");
  1137. entity.Property(e => e.LastConsumDate).HasColumnType("datetime");
  1138. entity.Property(e => e.Mobile)
  1139. .HasColumnType("varchar(11)")
  1140. .HasCharSet("utf8")
  1141. .HasCollation("utf8_general_ci");
  1142. entity.Property(e => e.NickName)
  1143. .HasColumnType("varchar(50)")
  1144. .HasCharSet("utf8")
  1145. .HasCollation("utf8_general_ci");
  1146. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1147. entity.Property(e => e.SeoDescription)
  1148. .HasColumnType("varchar(500)")
  1149. .HasCharSet("utf8")
  1150. .HasCollation("utf8_general_ci");
  1151. entity.Property(e => e.SeoKeyword)
  1152. .HasColumnType("varchar(200)")
  1153. .HasCharSet("utf8")
  1154. .HasCollation("utf8_general_ci");
  1155. entity.Property(e => e.SeoTitle)
  1156. .HasColumnType("varchar(100)")
  1157. .HasCharSet("utf8")
  1158. .HasCollation("utf8_general_ci");
  1159. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1160. entity.Property(e => e.Status).HasColumnType("int(11)");
  1161. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1162. entity.Property(e => e.TotalConsumCount).HasColumnType("int(11)");
  1163. entity.Property(e => e.TotalDividend).HasColumnType("decimal(18,2)");
  1164. entity.Property(e => e.TotalIntegral).HasColumnType("int(11)");
  1165. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1166. entity.Property(e => e.UpdateMan)
  1167. .HasColumnType("varchar(50)")
  1168. .HasCharSet("utf8")
  1169. .HasCollation("utf8_general_ci");
  1170. entity.Property(e => e.Version).HasColumnType("int(11)");
  1171. entity.Property(e => e.WeChatPayFlag)
  1172. .HasColumnType("bit(1)")
  1173. .HasDefaultValueSql("b'0'");
  1174. entity.Property(e => e.WechatOpenId)
  1175. .HasColumnType("varchar(50)")
  1176. .HasCharSet("utf8")
  1177. .HasCollation("utf8_general_ci");
  1178. entity.Property(e => e.WechatUnionid)
  1179. .HasColumnType("varchar(50)")
  1180. .HasCharSet("utf8")
  1181. .HasCollation("utf8_general_ci");
  1182. });
  1183. modelBuilder.Entity<CouponAssignRecords>(entity =>
  1184. {
  1185. entity.Property(e => e.Id).HasColumnType("int(11)");
  1186. entity.Property(e => e.Areas)
  1187. .HasColumnType("varchar(50)")
  1188. .HasCharSet("utf8")
  1189. .HasCollation("utf8_general_ci");
  1190. entity.Property(e => e.CouponIds)
  1191. .HasColumnType("varchar(200)")
  1192. .HasCharSet("utf8")
  1193. .HasCollation("utf8_general_ci");
  1194. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1195. entity.Property(e => e.CreateMan)
  1196. .HasColumnType("varchar(50)")
  1197. .HasCharSet("utf8")
  1198. .HasCollation("utf8_general_ci");
  1199. entity.Property(e => e.CurMoneyMax).HasColumnType("decimal(18,2)");
  1200. entity.Property(e => e.CurMoneyMin).HasColumnType("decimal(18,2)");
  1201. entity.Property(e => e.Mobile)
  1202. .HasColumnType("varchar(11)")
  1203. .HasCharSet("utf8")
  1204. .HasCollation("utf8_general_ci");
  1205. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1206. entity.Property(e => e.SeoDescription)
  1207. .HasColumnType("varchar(500)")
  1208. .HasCharSet("utf8")
  1209. .HasCollation("utf8_general_ci");
  1210. entity.Property(e => e.SeoKeyword)
  1211. .HasColumnType("varchar(200)")
  1212. .HasCharSet("utf8")
  1213. .HasCollation("utf8_general_ci");
  1214. entity.Property(e => e.SeoTitle)
  1215. .HasColumnType("varchar(100)")
  1216. .HasCharSet("utf8")
  1217. .HasCollation("utf8_general_ci");
  1218. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1219. entity.Property(e => e.Status).HasColumnType("int(11)");
  1220. entity.Property(e => e.TotalOrderMoneyMax).HasColumnType("decimal(18,2)");
  1221. entity.Property(e => e.TotalOrderMoneyMin).HasColumnType("decimal(18,2)");
  1222. entity.Property(e => e.TotalUseIntegralMax).HasColumnType("decimal(18,2)");
  1223. entity.Property(e => e.TotalUseIntegralMin).HasColumnType("decimal(18,2)");
  1224. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1225. entity.Property(e => e.UpdateMan)
  1226. .HasColumnType("varchar(50)")
  1227. .HasCharSet("utf8")
  1228. .HasCollation("utf8_general_ci");
  1229. entity.Property(e => e.UserGroupId)
  1230. .HasColumnType("varchar(50)")
  1231. .HasCharSet("utf8")
  1232. .HasCollation("utf8_general_ci");
  1233. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1234. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1235. entity.Property(e => e.Version).HasColumnType("int(11)");
  1236. });
  1237. modelBuilder.Entity<Coupons>(entity =>
  1238. {
  1239. entity.Property(e => e.Id).HasColumnType("int(11)");
  1240. entity.Property(e => e.AndPromotion)
  1241. .HasColumnType("bit(1)")
  1242. .HasDefaultValueSql("b'0'");
  1243. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1244. entity.Property(e => e.CreateMan)
  1245. .HasColumnType("varchar(50)")
  1246. .HasCharSet("utf8")
  1247. .HasCollation("utf8_general_ci");
  1248. entity.Property(e => e.ExpireEndDate).HasColumnType("datetime");
  1249. entity.Property(e => e.ExpireStartDate).HasColumnType("datetime");
  1250. entity.Property(e => e.Explanation)
  1251. .HasColumnType("varchar(200)")
  1252. .HasCharSet("utf8")
  1253. .HasCollation("utf8_general_ci");
  1254. entity.Property(e => e.FullReduceData).HasColumnType("decimal(18,2)");
  1255. entity.Property(e => e.FullReduceMoney).HasColumnType("decimal(18,2)");
  1256. entity.Property(e => e.IsNewUser)
  1257. .HasColumnType("bit(1)")
  1258. .HasDefaultValueSql("b'0'");
  1259. entity.Property(e => e.IsPublic)
  1260. .HasColumnType("bit(1)")
  1261. .HasDefaultValueSql("b'0'");
  1262. entity.Property(e => e.IsReUse)
  1263. .HasColumnType("bit(1)")
  1264. .HasDefaultValueSql("b'0'");
  1265. entity.Property(e => e.IsRepeat)
  1266. .HasColumnType("bit(1)")
  1267. .HasDefaultValueSql("b'0'");
  1268. entity.Property(e => e.IsSuperpose)
  1269. .HasColumnType("bit(1)")
  1270. .HasDefaultValueSql("b'0'");
  1271. entity.Property(e => e.Kind).HasColumnType("int(11)");
  1272. entity.Property(e => e.MerchantId)
  1273. .HasColumnType("varchar(200)")
  1274. .HasCharSet("utf8")
  1275. .HasCollation("utf8_general_ci");
  1276. entity.Property(e => e.Name)
  1277. .HasColumnType("varchar(50)")
  1278. .HasCharSet("utf8")
  1279. .HasCollation("utf8_general_ci");
  1280. entity.Property(e => e.ProductColId)
  1281. .HasColumnType("varchar(200)")
  1282. .HasCharSet("utf8")
  1283. .HasCollation("utf8_general_ci");
  1284. entity.Property(e => e.ProductId)
  1285. .HasColumnType("varchar(500)")
  1286. .HasCharSet("utf8")
  1287. .HasCollation("utf8_general_ci");
  1288. entity.Property(e => e.PublicEndDate).HasColumnType("datetime");
  1289. entity.Property(e => e.PublicMax).HasColumnType("int(11)");
  1290. entity.Property(e => e.PublicMaxByDay).HasColumnType("int(11)");
  1291. entity.Property(e => e.PublicStartDate).HasColumnType("datetime");
  1292. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1293. entity.Property(e => e.RepeatCondition)
  1294. .HasColumnType("varchar(50)")
  1295. .HasCharSet("utf8")
  1296. .HasCollation("utf8_general_ci");
  1297. entity.Property(e => e.RepeatType).HasColumnType("int(11)");
  1298. entity.Property(e => e.SeoDescription)
  1299. .HasColumnType("varchar(500)")
  1300. .HasCharSet("utf8")
  1301. .HasCollation("utf8_general_ci");
  1302. entity.Property(e => e.SeoKeyword)
  1303. .HasColumnType("varchar(200)")
  1304. .HasCharSet("utf8")
  1305. .HasCollation("utf8_general_ci");
  1306. entity.Property(e => e.SeoTitle)
  1307. .HasColumnType("varchar(100)")
  1308. .HasCharSet("utf8")
  1309. .HasCollation("utf8_general_ci");
  1310. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1311. entity.Property(e => e.Status).HasColumnType("int(11)");
  1312. entity.Property(e => e.Stock).HasColumnType("decimal(18,2)");
  1313. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1314. entity.Property(e => e.UpdateMan)
  1315. .HasColumnType("varchar(50)")
  1316. .HasCharSet("utf8")
  1317. .HasCollation("utf8_general_ci");
  1318. entity.Property(e => e.UseEndDate).HasColumnType("datetime");
  1319. entity.Property(e => e.UseStartDate).HasColumnType("datetime");
  1320. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1321. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1322. entity.Property(e => e.Version).HasColumnType("int(11)");
  1323. });
  1324. modelBuilder.Entity<CouponsForUser>(entity =>
  1325. {
  1326. entity.Property(e => e.Id).HasColumnType("int(11)");
  1327. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  1328. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1329. entity.Property(e => e.CreateMan)
  1330. .HasColumnType("varchar(50)")
  1331. .HasCharSet("utf8")
  1332. .HasCollation("utf8_general_ci");
  1333. entity.Property(e => e.IsLock)
  1334. .HasColumnType("bit(1)")
  1335. .HasDefaultValueSql("b'0'");
  1336. entity.Property(e => e.IsUse)
  1337. .HasColumnType("bit(1)")
  1338. .HasDefaultValueSql("b'0'");
  1339. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1340. entity.Property(e => e.SeoDescription)
  1341. .HasColumnType("varchar(500)")
  1342. .HasCharSet("utf8")
  1343. .HasCollation("utf8_general_ci");
  1344. entity.Property(e => e.SeoKeyword)
  1345. .HasColumnType("varchar(200)")
  1346. .HasCharSet("utf8")
  1347. .HasCollation("utf8_general_ci");
  1348. entity.Property(e => e.SeoTitle)
  1349. .HasColumnType("varchar(100)")
  1350. .HasCharSet("utf8")
  1351. .HasCollation("utf8_general_ci");
  1352. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1353. entity.Property(e => e.Status).HasColumnType("int(11)");
  1354. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1355. entity.Property(e => e.UpdateMan)
  1356. .HasColumnType("varchar(50)")
  1357. .HasCharSet("utf8")
  1358. .HasCollation("utf8_general_ci");
  1359. entity.Property(e => e.UseDate).HasColumnType("datetime");
  1360. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1361. entity.Property(e => e.Version).HasColumnType("int(11)");
  1362. });
  1363. modelBuilder.Entity<CustomTagSet>(entity =>
  1364. {
  1365. entity.Property(e => e.Id).HasColumnType("int(11)");
  1366. entity.Property(e => e.Contents)
  1367. .HasColumnType("varchar(500)")
  1368. .HasCharSet("utf8")
  1369. .HasCollation("utf8_general_ci");
  1370. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1371. entity.Property(e => e.CreateMan)
  1372. .HasColumnType("varchar(50)")
  1373. .HasCharSet("utf8")
  1374. .HasCollation("utf8_general_ci");
  1375. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1376. entity.Property(e => e.SeoDescription)
  1377. .HasColumnType("varchar(500)")
  1378. .HasCharSet("utf8")
  1379. .HasCollation("utf8_general_ci");
  1380. entity.Property(e => e.SeoKeyword)
  1381. .HasColumnType("varchar(200)")
  1382. .HasCharSet("utf8")
  1383. .HasCollation("utf8_general_ci");
  1384. entity.Property(e => e.SeoTitle)
  1385. .HasColumnType("varchar(100)")
  1386. .HasCharSet("utf8")
  1387. .HasCollation("utf8_general_ci");
  1388. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1389. entity.Property(e => e.Status).HasColumnType("int(11)");
  1390. entity.Property(e => e.Tags)
  1391. .HasColumnType("varchar(50)")
  1392. .HasCharSet("utf8")
  1393. .HasCollation("utf8_general_ci");
  1394. entity.Property(e => e.Title)
  1395. .HasColumnType("varchar(50)")
  1396. .HasCharSet("utf8")
  1397. .HasCollation("utf8_general_ci");
  1398. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1399. entity.Property(e => e.UpdateMan)
  1400. .HasColumnType("varchar(50)")
  1401. .HasCharSet("utf8")
  1402. .HasCollation("utf8_general_ci");
  1403. entity.Property(e => e.Version).HasColumnType("int(11)");
  1404. });
  1405. modelBuilder.Entity<ErpCompanys>(entity =>
  1406. {
  1407. entity.Property(e => e.Id).HasColumnType("int(11)");
  1408. entity.Property(e => e.Code)
  1409. .HasColumnType("varchar(50)")
  1410. .HasCharSet("utf8")
  1411. .HasCollation("utf8_general_ci");
  1412. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1413. entity.Property(e => e.CreateMan)
  1414. .HasColumnType("varchar(50)")
  1415. .HasCharSet("utf8")
  1416. .HasCollation("utf8_general_ci");
  1417. entity.Property(e => e.Name)
  1418. .HasColumnType("varchar(50)")
  1419. .HasCharSet("utf8")
  1420. .HasCollation("utf8_general_ci");
  1421. entity.Property(e => e.Phone)
  1422. .HasColumnType("varchar(30)")
  1423. .HasCharSet("utf8")
  1424. .HasCollation("utf8_general_ci");
  1425. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1426. entity.Property(e => e.SeoDescription)
  1427. .HasColumnType("varchar(500)")
  1428. .HasCharSet("utf8")
  1429. .HasCollation("utf8_general_ci");
  1430. entity.Property(e => e.SeoKeyword)
  1431. .HasColumnType("varchar(200)")
  1432. .HasCharSet("utf8")
  1433. .HasCollation("utf8_general_ci");
  1434. entity.Property(e => e.SeoTitle)
  1435. .HasColumnType("varchar(100)")
  1436. .HasCharSet("utf8")
  1437. .HasCollation("utf8_general_ci");
  1438. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1439. entity.Property(e => e.Status).HasColumnType("int(11)");
  1440. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1441. entity.Property(e => e.UpdateMan)
  1442. .HasColumnType("varchar(50)")
  1443. .HasCharSet("utf8")
  1444. .HasCollation("utf8_general_ci");
  1445. entity.Property(e => e.Version).HasColumnType("int(11)");
  1446. });
  1447. modelBuilder.Entity<FileUpdateInfo>(entity =>
  1448. {
  1449. entity.Property(e => e.Id).HasColumnType("int(11)");
  1450. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1451. entity.Property(e => e.CreateMan)
  1452. .HasColumnType("varchar(50)")
  1453. .HasCharSet("utf8")
  1454. .HasCollation("utf8_general_ci");
  1455. entity.Property(e => e.FileName)
  1456. .HasColumnType("varchar(50)")
  1457. .HasCharSet("utf8")
  1458. .HasCollation("utf8_general_ci");
  1459. entity.Property(e => e.Path)
  1460. .HasColumnType("varchar(200)")
  1461. .HasCharSet("utf8")
  1462. .HasCollation("utf8_general_ci");
  1463. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1464. entity.Property(e => e.SeoDescription)
  1465. .HasColumnType("varchar(500)")
  1466. .HasCharSet("utf8")
  1467. .HasCollation("utf8_general_ci");
  1468. entity.Property(e => e.SeoKeyword)
  1469. .HasColumnType("varchar(200)")
  1470. .HasCharSet("utf8")
  1471. .HasCollation("utf8_general_ci");
  1472. entity.Property(e => e.SeoTitle)
  1473. .HasColumnType("varchar(100)")
  1474. .HasCharSet("utf8")
  1475. .HasCollation("utf8_general_ci");
  1476. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1477. entity.Property(e => e.Status).HasColumnType("int(11)");
  1478. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1479. entity.Property(e => e.UpdateMan)
  1480. .HasColumnType("varchar(50)")
  1481. .HasCharSet("utf8")
  1482. .HasCollation("utf8_general_ci");
  1483. entity.Property(e => e.Version).HasColumnType("int(11)");
  1484. entity.Property(e => e.VersionNum).HasColumnType("int(11)");
  1485. });
  1486. modelBuilder.Entity<FluxProfitDetail>(entity =>
  1487. {
  1488. entity.Property(e => e.Id).HasColumnType("int(11)");
  1489. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1490. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1491. entity.Property(e => e.CreateMan)
  1492. .HasColumnType("varchar(50)")
  1493. .HasCharSet("utf8")
  1494. .HasCollation("utf8_general_ci");
  1495. entity.Property(e => e.FluxEndDate)
  1496. .HasColumnType("varchar(8)")
  1497. .HasCharSet("utf8")
  1498. .HasCollation("utf8_general_ci");
  1499. entity.Property(e => e.FluxFeeAmt).HasColumnType("decimal(18,2)");
  1500. entity.Property(e => e.FluxOrderNo)
  1501. .HasColumnType("varchar(64)")
  1502. .HasCharSet("utf8")
  1503. .HasCollation("utf8_general_ci");
  1504. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1505. entity.Property(e => e.FluxStartDate)
  1506. .HasColumnType("varchar(8)")
  1507. .HasCharSet("utf8")
  1508. .HasCollation("utf8_general_ci");
  1509. entity.Property(e => e.MerNo)
  1510. .HasColumnType("varchar(32)")
  1511. .HasCharSet("utf8")
  1512. .HasCollation("utf8_general_ci");
  1513. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1514. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1515. entity.Property(e => e.MerchantUserId).HasColumnType("int(11)");
  1516. entity.Property(e => e.PosType)
  1517. .HasColumnType("varchar(32)")
  1518. .HasCharSet("utf8")
  1519. .HasCollation("utf8_general_ci");
  1520. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  1521. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1522. entity.Property(e => e.RecordNo)
  1523. .HasColumnType("varchar(32)")
  1524. .HasCharSet("utf8")
  1525. .HasCollation("utf8_general_ci");
  1526. entity.Property(e => e.Remark)
  1527. .HasColumnType("varchar(128)")
  1528. .HasCharSet("utf8")
  1529. .HasCollation("utf8_general_ci");
  1530. entity.Property(e => e.SeoDescription)
  1531. .HasColumnType("varchar(500)")
  1532. .HasCharSet("utf8")
  1533. .HasCollation("utf8_general_ci");
  1534. entity.Property(e => e.SeoKeyword)
  1535. .HasColumnType("varchar(200)")
  1536. .HasCharSet("utf8")
  1537. .HasCollation("utf8_general_ci");
  1538. entity.Property(e => e.SeoTitle)
  1539. .HasColumnType("varchar(100)")
  1540. .HasCharSet("utf8")
  1541. .HasCollation("utf8_general_ci");
  1542. entity.Property(e => e.SnNo)
  1543. .HasColumnType("varchar(32)")
  1544. .HasCharSet("utf8")
  1545. .HasCollation("utf8_general_ci");
  1546. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1547. entity.Property(e => e.Status).HasColumnType("int(11)");
  1548. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1549. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  1550. entity.Property(e => e.TradeDate)
  1551. .HasColumnType("varchar(8)")
  1552. .HasCharSet("utf8")
  1553. .HasCollation("utf8_general_ci");
  1554. entity.Property(e => e.TradeMonth)
  1555. .HasColumnType("varchar(6)")
  1556. .HasCharSet("utf8")
  1557. .HasCollation("utf8_general_ci");
  1558. entity.Property(e => e.TradeOrderNo)
  1559. .HasColumnType("varchar(64)")
  1560. .HasCharSet("utf8")
  1561. .HasCollation("utf8_general_ci");
  1562. entity.Property(e => e.TradeTime)
  1563. .HasColumnType("varchar(6)")
  1564. .HasCharSet("utf8")
  1565. .HasCollation("utf8_general_ci");
  1566. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1567. entity.Property(e => e.UpdateMan)
  1568. .HasColumnType("varchar(50)")
  1569. .HasCharSet("utf8")
  1570. .HasCollation("utf8_general_ci");
  1571. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1572. entity.Property(e => e.Version).HasColumnType("int(11)");
  1573. });
  1574. modelBuilder.Entity<FluxProfitSummary>(entity =>
  1575. {
  1576. entity.Property(e => e.Id).HasColumnType("int(11)");
  1577. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1578. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  1579. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1580. entity.Property(e => e.CreateMan)
  1581. .HasColumnType("varchar(50)")
  1582. .HasCharSet("utf8")
  1583. .HasCollation("utf8_general_ci");
  1584. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1585. entity.Property(e => e.FluxTradeNum).HasColumnType("int(11)");
  1586. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1587. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1588. entity.Property(e => e.Remark)
  1589. .HasColumnType("varchar(64)")
  1590. .HasCharSet("utf8")
  1591. .HasCollation("utf8_general_ci");
  1592. entity.Property(e => e.SeoDescription)
  1593. .HasColumnType("varchar(500)")
  1594. .HasCharSet("utf8")
  1595. .HasCollation("utf8_general_ci");
  1596. entity.Property(e => e.SeoKeyword)
  1597. .HasColumnType("varchar(200)")
  1598. .HasCharSet("utf8")
  1599. .HasCollation("utf8_general_ci");
  1600. entity.Property(e => e.SeoTitle)
  1601. .HasColumnType("varchar(100)")
  1602. .HasCharSet("utf8")
  1603. .HasCollation("utf8_general_ci");
  1604. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1605. entity.Property(e => e.Status).HasColumnType("int(11)");
  1606. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1607. entity.Property(e => e.TradeMonth)
  1608. .HasColumnType("varchar(6)")
  1609. .HasCharSet("utf8")
  1610. .HasCollation("utf8_general_ci");
  1611. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1612. entity.Property(e => e.UpdateMan)
  1613. .HasColumnType("varchar(50)")
  1614. .HasCharSet("utf8")
  1615. .HasCollation("utf8_general_ci");
  1616. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1617. entity.Property(e => e.Version).HasColumnType("int(11)");
  1618. });
  1619. modelBuilder.Entity<IndexIconList>(entity =>
  1620. {
  1621. entity.Property(e => e.Id).HasColumnType("int(11)");
  1622. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1623. entity.Property(e => e.CreateMan)
  1624. .HasColumnType("varchar(50)")
  1625. .HasCharSet("utf8")
  1626. .HasCollation("utf8_general_ci");
  1627. entity.Property(e => e.Icon)
  1628. .HasColumnType("varchar(200)")
  1629. .HasCharSet("utf8")
  1630. .HasCollation("utf8_general_ci");
  1631. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1632. entity.Property(e => e.SeoDescription)
  1633. .HasColumnType("varchar(500)")
  1634. .HasCharSet("utf8")
  1635. .HasCollation("utf8_general_ci");
  1636. entity.Property(e => e.SeoKeyword)
  1637. .HasColumnType("varchar(200)")
  1638. .HasCharSet("utf8")
  1639. .HasCollation("utf8_general_ci");
  1640. entity.Property(e => e.SeoTitle)
  1641. .HasColumnType("varchar(100)")
  1642. .HasCharSet("utf8")
  1643. .HasCollation("utf8_general_ci");
  1644. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1645. entity.Property(e => e.Status).HasColumnType("int(11)");
  1646. entity.Property(e => e.Title)
  1647. .HasColumnType("varchar(50)")
  1648. .HasCharSet("utf8")
  1649. .HasCollation("utf8_general_ci");
  1650. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1651. entity.Property(e => e.UpdateMan)
  1652. .HasColumnType("varchar(50)")
  1653. .HasCharSet("utf8")
  1654. .HasCollation("utf8_general_ci");
  1655. entity.Property(e => e.Url)
  1656. .HasColumnType("varchar(50)")
  1657. .HasCharSet("utf8")
  1658. .HasCollation("utf8_general_ci");
  1659. entity.Property(e => e.Version).HasColumnType("int(11)");
  1660. });
  1661. modelBuilder.Entity<KqProductBrand>(entity =>
  1662. {
  1663. entity.Property(e => e.Id).HasColumnType("int(11)");
  1664. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1665. entity.Property(e => e.CreateMan)
  1666. .HasColumnType("varchar(50)")
  1667. .HasCharSet("utf8")
  1668. .HasCollation("utf8_general_ci");
  1669. entity.Property(e => e.Name)
  1670. .HasColumnType("varchar(50)")
  1671. .HasCharSet("utf8")
  1672. .HasCollation("utf8_general_ci");
  1673. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  1674. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1675. entity.Property(e => e.SeoDescription)
  1676. .HasColumnType("varchar(500)")
  1677. .HasCharSet("utf8")
  1678. .HasCollation("utf8_general_ci");
  1679. entity.Property(e => e.SeoKeyword)
  1680. .HasColumnType("varchar(200)")
  1681. .HasCharSet("utf8")
  1682. .HasCollation("utf8_general_ci");
  1683. entity.Property(e => e.SeoTitle)
  1684. .HasColumnType("varchar(100)")
  1685. .HasCharSet("utf8")
  1686. .HasCollation("utf8_general_ci");
  1687. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1688. entity.Property(e => e.Status).HasColumnType("int(11)");
  1689. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1690. entity.Property(e => e.UpdateMan)
  1691. .HasColumnType("varchar(50)")
  1692. .HasCharSet("utf8")
  1693. .HasCollation("utf8_general_ci");
  1694. entity.Property(e => e.Version).HasColumnType("int(11)");
  1695. });
  1696. modelBuilder.Entity<KqProductOrgs>(entity =>
  1697. {
  1698. entity.Property(e => e.Id).HasColumnType("int(11)");
  1699. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1700. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1701. entity.Property(e => e.CreateMan)
  1702. .HasColumnType("varchar(50)")
  1703. .HasCharSet("utf8")
  1704. .HasCollation("utf8_general_ci");
  1705. entity.Property(e => e.Name)
  1706. .HasColumnType("varchar(50)")
  1707. .HasCharSet("utf8")
  1708. .HasCollation("utf8_general_ci");
  1709. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1710. entity.Property(e => e.SeoDescription)
  1711. .HasColumnType("varchar(500)")
  1712. .HasCharSet("utf8")
  1713. .HasCollation("utf8_general_ci");
  1714. entity.Property(e => e.SeoKeyword)
  1715. .HasColumnType("varchar(200)")
  1716. .HasCharSet("utf8")
  1717. .HasCollation("utf8_general_ci");
  1718. entity.Property(e => e.SeoTitle)
  1719. .HasColumnType("varchar(100)")
  1720. .HasCharSet("utf8")
  1721. .HasCollation("utf8_general_ci");
  1722. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1723. entity.Property(e => e.Status).HasColumnType("int(11)");
  1724. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1725. entity.Property(e => e.UpdateMan)
  1726. .HasColumnType("varchar(50)")
  1727. .HasCharSet("utf8")
  1728. .HasCollation("utf8_general_ci");
  1729. entity.Property(e => e.Version).HasColumnType("int(11)");
  1730. });
  1731. modelBuilder.Entity<KqProductRuleSet>(entity =>
  1732. {
  1733. entity.Property(e => e.Id).HasColumnType("int(11)");
  1734. entity.Property(e => e.ActDeposit).HasColumnType("decimal(18,2)");
  1735. entity.Property(e => e.ActEndDate).HasColumnType("datetime");
  1736. entity.Property(e => e.ActFirst).HasColumnType("decimal(18,2)");
  1737. entity.Property(e => e.ActFirstDeposit).HasColumnType("decimal(18,2)");
  1738. entity.Property(e => e.ActPosCount).HasColumnType("int(11)");
  1739. entity.Property(e => e.ActPrize).HasColumnType("decimal(18,2)");
  1740. entity.Property(e => e.ActStartDate).HasColumnType("datetime");
  1741. entity.Property(e => e.ActiveCount).HasColumnType("int(11)");
  1742. entity.Property(e => e.ActivePrice).HasColumnType("decimal(18,2)");
  1743. entity.Property(e => e.BigExtendCycleDays).HasColumnType("int(11)");
  1744. entity.Property(e => e.BigTotalAmount).HasColumnType("decimal(18,2)");
  1745. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1746. entity.Property(e => e.CreateMan)
  1747. .HasColumnType("varchar(50)")
  1748. .HasCharSet("utf8")
  1749. .HasCollation("utf8_general_ci");
  1750. entity.Property(e => e.CycleEndDate).HasColumnType("datetime");
  1751. entity.Property(e => e.CycleIsOther)
  1752. .HasColumnType("bit(1)")
  1753. .HasDefaultValueSql("b'0'");
  1754. entity.Property(e => e.CyclePosDays).HasColumnType("int(11)");
  1755. entity.Property(e => e.CycleStartDate).HasColumnType("datetime");
  1756. entity.Property(e => e.Deposit).HasColumnType("decimal(18,2)");
  1757. entity.Property(e => e.FeeBindDays).HasColumnType("int(11)");
  1758. entity.Property(e => e.FeeFixed).HasColumnType("decimal(18,2)");
  1759. entity.Property(e => e.FeeOfDays).HasColumnType("datetime");
  1760. entity.Property(e => e.FeeRate).HasColumnType("decimal(18,2)");
  1761. entity.Property(e => e.FlowCardDirectProfit).HasColumnType("decimal(18,2)");
  1762. entity.Property(e => e.FlowCardEndDate).HasColumnType("datetime");
  1763. entity.Property(e => e.FlowCardFee).HasColumnType("decimal(18,2)");
  1764. entity.Property(e => e.FlowCardFreeDays).HasColumnType("int(11)");
  1765. entity.Property(e => e.FlowCardStartDate).HasColumnType("datetime");
  1766. entity.Property(e => e.HelpEndDate).HasColumnType("datetime");
  1767. entity.Property(e => e.HelpFee).HasColumnType("decimal(18,2)");
  1768. entity.Property(e => e.HelpMonths).HasColumnType("int(11)");
  1769. entity.Property(e => e.HelpStartDate).HasColumnType("datetime");
  1770. entity.Property(e => e.HelpSteadyFee).HasColumnType("decimal(18,2)");
  1771. entity.Property(e => e.MerStaEndDate).HasColumnType("datetime");
  1772. entity.Property(e => e.MerStaMonths).HasColumnType("int(11)");
  1773. entity.Property(e => e.MerStaProfit).HasColumnType("decimal(18,2)");
  1774. entity.Property(e => e.MerStaStartDate).HasColumnType("datetime");
  1775. entity.Property(e => e.MerStaTradeForMonth).HasColumnType("decimal(18,2)");
  1776. entity.Property(e => e.OpenEndDate).HasColumnType("datetime");
  1777. entity.Property(e => e.OpenStaDays).HasColumnType("int(11)");
  1778. entity.Property(e => e.OpenStaPrize).HasColumnType("decimal(18,2)");
  1779. entity.Property(e => e.OpenStaPrize2).HasColumnType("decimal(18,2)");
  1780. entity.Property(e => e.OpenStaTrade).HasColumnType("decimal(18,2)");
  1781. entity.Property(e => e.OpenStartDate).HasColumnType("datetime");
  1782. entity.Property(e => e.OrgId).HasColumnType("int(11)");
  1783. entity.Property(e => e.PullNewEndDate).HasColumnType("datetime");
  1784. entity.Property(e => e.PullNewExtendDays).HasColumnType("int(11)");
  1785. entity.Property(e => e.PullNewStartDate).HasColumnType("datetime");
  1786. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1787. entity.Property(e => e.SeoDescription)
  1788. .HasColumnType("varchar(500)")
  1789. .HasCharSet("utf8")
  1790. .HasCollation("utf8_general_ci");
  1791. entity.Property(e => e.SeoKeyword)
  1792. .HasColumnType("varchar(200)")
  1793. .HasCharSet("utf8")
  1794. .HasCollation("utf8_general_ci");
  1795. entity.Property(e => e.SeoTitle)
  1796. .HasColumnType("varchar(100)")
  1797. .HasCharSet("utf8")
  1798. .HasCollation("utf8_general_ci");
  1799. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1800. entity.Property(e => e.Status).HasColumnType("int(11)");
  1801. entity.Property(e => e.SubsidyEndDate).HasColumnType("datetime");
  1802. entity.Property(e => e.SubsidyStartDate).HasColumnType("datetime");
  1803. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1804. entity.Property(e => e.UpdateMan)
  1805. .HasColumnType("varchar(50)")
  1806. .HasCharSet("utf8")
  1807. .HasCollation("utf8_general_ci");
  1808. entity.Property(e => e.Version).HasColumnType("int(11)");
  1809. });
  1810. modelBuilder.Entity<KqProducts>(entity =>
  1811. {
  1812. entity.Property(e => e.Id).HasColumnType("int(11)");
  1813. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1814. entity.Property(e => e.CreateMan)
  1815. .HasColumnType("varchar(50)")
  1816. .HasCharSet("utf8")
  1817. .HasCollation("utf8_general_ci");
  1818. entity.Property(e => e.Name)
  1819. .HasColumnType("varchar(50)")
  1820. .HasCharSet("utf8")
  1821. .HasCollation("utf8_general_ci");
  1822. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1823. entity.Property(e => e.SeoDescription)
  1824. .HasColumnType("varchar(500)")
  1825. .HasCharSet("utf8")
  1826. .HasCollation("utf8_general_ci");
  1827. entity.Property(e => e.SeoKeyword)
  1828. .HasColumnType("varchar(200)")
  1829. .HasCharSet("utf8")
  1830. .HasCollation("utf8_general_ci");
  1831. entity.Property(e => e.SeoTitle)
  1832. .HasColumnType("varchar(100)")
  1833. .HasCharSet("utf8")
  1834. .HasCollation("utf8_general_ci");
  1835. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1836. entity.Property(e => e.Status).HasColumnType("int(11)");
  1837. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1838. entity.Property(e => e.UpdateMan)
  1839. .HasColumnType("varchar(50)")
  1840. .HasCharSet("utf8")
  1841. .HasCollation("utf8_general_ci");
  1842. entity.Property(e => e.Version).HasColumnType("int(11)");
  1843. });
  1844. modelBuilder.Entity<MachineApply>(entity =>
  1845. {
  1846. entity.Property(e => e.Id).HasColumnType("int(11)");
  1847. entity.Property(e => e.Address)
  1848. .HasColumnType("varchar(50)")
  1849. .HasCharSet("utf8")
  1850. .HasCollation("utf8_general_ci");
  1851. entity.Property(e => e.ApplyDeviceName)
  1852. .HasColumnType("varchar(32)")
  1853. .HasCharSet("utf8")
  1854. .HasCollation("utf8_general_ci");
  1855. entity.Property(e => e.ApplyDeviceNum).HasColumnType("int(11)");
  1856. entity.Property(e => e.ApplyNo)
  1857. .HasColumnType("varchar(32)")
  1858. .HasCharSet("utf8")
  1859. .HasCollation("utf8_general_ci");
  1860. entity.Property(e => e.ApplyTime).HasColumnType("datetime");
  1861. entity.Property(e => e.Areas)
  1862. .HasColumnType("varchar(30)")
  1863. .HasCharSet("utf8")
  1864. .HasCollation("utf8_general_ci");
  1865. entity.Property(e => e.AuditBy)
  1866. .HasColumnType("varchar(32)")
  1867. .HasCharSet("utf8")
  1868. .HasCollation("utf8_general_ci");
  1869. entity.Property(e => e.AuditRemark)
  1870. .HasColumnType("varchar(128)")
  1871. .HasCharSet("utf8")
  1872. .HasCollation("utf8_general_ci");
  1873. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1874. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1875. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1876. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1877. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1878. entity.Property(e => e.CreateMan)
  1879. .HasColumnType("varchar(50)")
  1880. .HasCharSet("utf8")
  1881. .HasCollation("utf8_general_ci");
  1882. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  1883. entity.Property(e => e.ExpressName)
  1884. .HasColumnType("varchar(32)")
  1885. .HasCharSet("utf8")
  1886. .HasCollation("utf8_general_ci");
  1887. entity.Property(e => e.ExpressNo)
  1888. .HasColumnType("varchar(32)")
  1889. .HasCharSet("utf8")
  1890. .HasCollation("utf8_general_ci");
  1891. entity.Property(e => e.Mobile)
  1892. .HasColumnType("varchar(11)")
  1893. .HasCharSet("utf8")
  1894. .HasCollation("utf8_general_ci");
  1895. entity.Property(e => e.OrderExpand)
  1896. .HasColumnType("mediumtext")
  1897. .HasCharSet("utf8")
  1898. .HasCollation("utf8_general_ci");
  1899. entity.Property(e => e.ProductName)
  1900. .HasColumnType("varchar(32)")
  1901. .HasCharSet("utf8")
  1902. .HasCollation("utf8_general_ci");
  1903. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1904. entity.Property(e => e.RealName)
  1905. .HasColumnType("varchar(30)")
  1906. .HasCharSet("utf8")
  1907. .HasCollation("utf8_general_ci");
  1908. entity.Property(e => e.Remark)
  1909. .HasColumnType("varchar(64)")
  1910. .HasCharSet("utf8")
  1911. .HasCollation("utf8_general_ci");
  1912. entity.Property(e => e.ReturnOrderNo)
  1913. .HasColumnType("varchar(32)")
  1914. .HasCharSet("utf8")
  1915. .HasCollation("utf8_general_ci");
  1916. entity.Property(e => e.ReturnStatus).HasColumnType("int(11)");
  1917. entity.Property(e => e.SendDate).HasColumnType("datetime");
  1918. entity.Property(e => e.SendSn)
  1919. .HasColumnType("varchar(32)")
  1920. .HasCharSet("utf8")
  1921. .HasCollation("utf8_general_ci");
  1922. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  1923. entity.Property(e => e.SeoDescription)
  1924. .HasColumnType("varchar(500)")
  1925. .HasCharSet("utf8")
  1926. .HasCollation("utf8_general_ci");
  1927. entity.Property(e => e.SeoKeyword)
  1928. .HasColumnType("varchar(200)")
  1929. .HasCharSet("utf8")
  1930. .HasCollation("utf8_general_ci");
  1931. entity.Property(e => e.SeoTitle)
  1932. .HasColumnType("varchar(100)")
  1933. .HasCharSet("utf8")
  1934. .HasCollation("utf8_general_ci");
  1935. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1936. entity.Property(e => e.Status).HasColumnType("int(11)");
  1937. entity.Property(e => e.StoreAddress)
  1938. .HasColumnType("varchar(50)")
  1939. .HasCharSet("utf8")
  1940. .HasCollation("utf8_general_ci");
  1941. entity.Property(e => e.StoreAreas)
  1942. .HasColumnType("varchar(30)")
  1943. .HasCharSet("utf8")
  1944. .HasCollation("utf8_general_ci");
  1945. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1946. entity.Property(e => e.StoreManager)
  1947. .HasColumnType("varchar(32)")
  1948. .HasCharSet("utf8")
  1949. .HasCollation("utf8_general_ci");
  1950. entity.Property(e => e.StoreManagerMobile)
  1951. .HasColumnType("varchar(11)")
  1952. .HasCharSet("utf8")
  1953. .HasCollation("utf8_general_ci");
  1954. entity.Property(e => e.StoreName)
  1955. .HasColumnType("varchar(32)")
  1956. .HasCharSet("utf8")
  1957. .HasCollation("utf8_general_ci");
  1958. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  1959. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  1960. entity.Property(e => e.SwapActProName)
  1961. .HasColumnType("varchar(32)")
  1962. .HasCharSet("utf8")
  1963. .HasCollation("utf8_general_ci");
  1964. entity.Property(e => e.SwapActProType).HasColumnType("int(11)");
  1965. entity.Property(e => e.SwapSnExpand)
  1966. .HasColumnType("mediumtext")
  1967. .HasCharSet("utf8")
  1968. .HasCollation("utf8_general_ci");
  1969. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1970. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1971. entity.Property(e => e.UpdateMan)
  1972. .HasColumnType("varchar(50)")
  1973. .HasCharSet("utf8")
  1974. .HasCollation("utf8_general_ci");
  1975. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1976. entity.Property(e => e.Version).HasColumnType("int(11)");
  1977. });
  1978. modelBuilder.Entity<MachineApplyDetail>(entity =>
  1979. {
  1980. entity.Property(e => e.Id).HasColumnType("int(11)");
  1981. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  1982. entity.Property(e => e.ApplyNo)
  1983. .HasColumnType("varchar(32)")
  1984. .HasCharSet("utf8")
  1985. .HasCollation("utf8_general_ci");
  1986. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1987. entity.Property(e => e.CreateMan)
  1988. .HasColumnType("varchar(50)")
  1989. .HasCharSet("utf8")
  1990. .HasCollation("utf8_general_ci");
  1991. entity.Property(e => e.DeviceDesc)
  1992. .HasColumnType("varchar(32)")
  1993. .HasCharSet("utf8")
  1994. .HasCollation("utf8_general_ci");
  1995. entity.Property(e => e.DeviceModel)
  1996. .HasColumnType("varchar(32)")
  1997. .HasCharSet("utf8")
  1998. .HasCollation("utf8_general_ci");
  1999. entity.Property(e => e.DeviceSnNo)
  2000. .HasColumnType("varchar(32)")
  2001. .HasCharSet("utf8")
  2002. .HasCollation("utf8_general_ci");
  2003. entity.Property(e => e.DeviceStatus).HasColumnType("int(11)");
  2004. entity.Property(e => e.DeviceVendor)
  2005. .HasColumnType("varchar(32)")
  2006. .HasCharSet("utf8")
  2007. .HasCollation("utf8_general_ci");
  2008. entity.Property(e => e.ProductName)
  2009. .HasColumnType("varchar(32)")
  2010. .HasCharSet("utf8")
  2011. .HasCollation("utf8_general_ci");
  2012. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  2013. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2014. entity.Property(e => e.Remark)
  2015. .HasColumnType("varchar(64)")
  2016. .HasCharSet("utf8")
  2017. .HasCollation("utf8_general_ci");
  2018. entity.Property(e => e.SeoDescription)
  2019. .HasColumnType("varchar(500)")
  2020. .HasCharSet("utf8")
  2021. .HasCollation("utf8_general_ci");
  2022. entity.Property(e => e.SeoKeyword)
  2023. .HasColumnType("varchar(200)")
  2024. .HasCharSet("utf8")
  2025. .HasCollation("utf8_general_ci");
  2026. entity.Property(e => e.SeoTitle)
  2027. .HasColumnType("varchar(100)")
  2028. .HasCharSet("utf8")
  2029. .HasCollation("utf8_general_ci");
  2030. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2031. entity.Property(e => e.SourceSnNo)
  2032. .HasColumnType("varchar(32)")
  2033. .HasCharSet("utf8")
  2034. .HasCollation("utf8_general_ci");
  2035. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  2036. entity.Property(e => e.Status).HasColumnType("int(11)");
  2037. entity.Property(e => e.UpSrcProName)
  2038. .HasColumnType("varchar(32)")
  2039. .HasCharSet("utf8")
  2040. .HasCollation("utf8_general_ci");
  2041. entity.Property(e => e.UpSrcProType).HasColumnType("int(11)");
  2042. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2043. entity.Property(e => e.UpdateMan)
  2044. .HasColumnType("varchar(50)")
  2045. .HasCharSet("utf8")
  2046. .HasCollation("utf8_general_ci");
  2047. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2048. entity.Property(e => e.Version).HasColumnType("int(11)");
  2049. });
  2050. modelBuilder.Entity<MachineChange>(entity =>
  2051. {
  2052. entity.Property(e => e.Id).HasColumnType("int(11)");
  2053. entity.Property(e => e.AuditBy)
  2054. .HasColumnType("varchar(32)")
  2055. .HasCharSet("utf8")
  2056. .HasCollation("utf8_general_ci");
  2057. entity.Property(e => e.AuditRemark)
  2058. .HasColumnType("varchar(128)")
  2059. .HasCharSet("utf8")
  2060. .HasCollation("utf8_general_ci");
  2061. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  2062. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  2063. entity.Property(e => e.BackProductName)
  2064. .HasColumnType("varchar(32)")
  2065. .HasCharSet("utf8")
  2066. .HasCollation("utf8_general_ci");
  2067. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2068. entity.Property(e => e.BackStoreId).HasColumnType("int(11)");
  2069. entity.Property(e => e.BackStoreName)
  2070. .HasColumnType("varchar(32)")
  2071. .HasCharSet("utf8")
  2072. .HasCollation("utf8_general_ci");
  2073. entity.Property(e => e.BackStoreUserId).HasColumnType("int(11)");
  2074. entity.Property(e => e.ChangeDeviceName)
  2075. .HasColumnType("varchar(32)")
  2076. .HasCharSet("utf8")
  2077. .HasCollation("utf8_general_ci");
  2078. entity.Property(e => e.ChangeDeviceNum).HasColumnType("int(11)");
  2079. entity.Property(e => e.ChangeNo)
  2080. .HasColumnType("varchar(32)")
  2081. .HasCharSet("utf8")
  2082. .HasCollation("utf8_general_ci");
  2083. entity.Property(e => e.ChangeSnExpand)
  2084. .HasColumnType("mediumtext")
  2085. .HasCharSet("utf8")
  2086. .HasCollation("utf8_general_ci");
  2087. entity.Property(e => e.ChangeTime).HasColumnType("datetime");
  2088. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  2089. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2090. entity.Property(e => e.CreateMan)
  2091. .HasColumnType("varchar(50)")
  2092. .HasCharSet("utf8")
  2093. .HasCollation("utf8_general_ci");
  2094. entity.Property(e => e.OrderExpand)
  2095. .HasColumnType("mediumtext")
  2096. .HasCharSet("utf8")
  2097. .HasCollation("utf8_general_ci");
  2098. entity.Property(e => e.OutProductName)
  2099. .HasColumnType("varchar(32)")
  2100. .HasCharSet("utf8")
  2101. .HasCollation("utf8_general_ci");
  2102. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2103. entity.Property(e => e.OutStoreAddress)
  2104. .HasColumnType("varchar(128)")
  2105. .HasCharSet("utf8")
  2106. .HasCollation("utf8_general_ci");
  2107. entity.Property(e => e.OutStoreAreas)
  2108. .HasColumnType("varchar(30)")
  2109. .HasCharSet("utf8")
  2110. .HasCollation("utf8_general_ci");
  2111. entity.Property(e => e.OutStoreId).HasColumnType("int(11)");
  2112. entity.Property(e => e.OutStoreManager)
  2113. .HasColumnType("varchar(32)")
  2114. .HasCharSet("utf8")
  2115. .HasCollation("utf8_general_ci");
  2116. entity.Property(e => e.OutStoreManagerMobile)
  2117. .HasColumnType("varchar(11)")
  2118. .HasCharSet("utf8")
  2119. .HasCollation("utf8_general_ci");
  2120. entity.Property(e => e.OutStoreName)
  2121. .HasColumnType("varchar(32)")
  2122. .HasCharSet("utf8")
  2123. .HasCollation("utf8_general_ci");
  2124. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2125. entity.Property(e => e.Remark)
  2126. .HasColumnType("varchar(64)")
  2127. .HasCharSet("utf8")
  2128. .HasCollation("utf8_general_ci");
  2129. entity.Property(e => e.SeoDescription)
  2130. .HasColumnType("varchar(500)")
  2131. .HasCharSet("utf8")
  2132. .HasCollation("utf8_general_ci");
  2133. entity.Property(e => e.SeoKeyword)
  2134. .HasColumnType("varchar(200)")
  2135. .HasCharSet("utf8")
  2136. .HasCollation("utf8_general_ci");
  2137. entity.Property(e => e.SeoTitle)
  2138. .HasColumnType("varchar(100)")
  2139. .HasCharSet("utf8")
  2140. .HasCollation("utf8_general_ci");
  2141. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2142. entity.Property(e => e.Status).HasColumnType("int(11)");
  2143. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2144. entity.Property(e => e.UpdateMan)
  2145. .HasColumnType("varchar(50)")
  2146. .HasCharSet("utf8")
  2147. .HasCollation("utf8_general_ci");
  2148. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2149. entity.Property(e => e.Version).HasColumnType("int(11)");
  2150. });
  2151. modelBuilder.Entity<MachineChangeDetail>(entity =>
  2152. {
  2153. entity.Property(e => e.Id).HasColumnType("int(11)");
  2154. entity.Property(e => e.BackDeviceStatus).HasColumnType("int(11)");
  2155. entity.Property(e => e.BackProductName)
  2156. .HasColumnType("varchar(32)")
  2157. .HasCharSet("utf8")
  2158. .HasCollation("utf8_general_ci");
  2159. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2160. entity.Property(e => e.BackSnNo)
  2161. .HasColumnType("varchar(32)")
  2162. .HasCharSet("utf8")
  2163. .HasCollation("utf8_general_ci");
  2164. entity.Property(e => e.BackSnType).HasColumnType("int(11)");
  2165. entity.Property(e => e.ChangeId).HasColumnType("int(11)");
  2166. entity.Property(e => e.ChangeNo)
  2167. .HasColumnType("varchar(32)")
  2168. .HasCharSet("utf8")
  2169. .HasCollation("utf8_general_ci");
  2170. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2171. entity.Property(e => e.CreateMan)
  2172. .HasColumnType("varchar(50)")
  2173. .HasCharSet("utf8")
  2174. .HasCollation("utf8_general_ci");
  2175. entity.Property(e => e.OutProductName)
  2176. .HasColumnType("varchar(32)")
  2177. .HasCharSet("utf8")
  2178. .HasCollation("utf8_general_ci");
  2179. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2180. entity.Property(e => e.OutSnNo)
  2181. .HasColumnType("varchar(32)")
  2182. .HasCharSet("utf8")
  2183. .HasCollation("utf8_general_ci");
  2184. entity.Property(e => e.OutSnType).HasColumnType("int(11)");
  2185. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2186. entity.Property(e => e.Remark)
  2187. .HasColumnType("varchar(64)")
  2188. .HasCharSet("utf8")
  2189. .HasCollation("utf8_general_ci");
  2190. entity.Property(e => e.SeoDescription)
  2191. .HasColumnType("varchar(500)")
  2192. .HasCharSet("utf8")
  2193. .HasCollation("utf8_general_ci");
  2194. entity.Property(e => e.SeoKeyword)
  2195. .HasColumnType("varchar(200)")
  2196. .HasCharSet("utf8")
  2197. .HasCollation("utf8_general_ci");
  2198. entity.Property(e => e.SeoTitle)
  2199. .HasColumnType("varchar(100)")
  2200. .HasCharSet("utf8")
  2201. .HasCollation("utf8_general_ci");
  2202. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2203. entity.Property(e => e.Status).HasColumnType("int(11)");
  2204. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2205. entity.Property(e => e.UpdateMan)
  2206. .HasColumnType("varchar(50)")
  2207. .HasCharSet("utf8")
  2208. .HasCollation("utf8_general_ci");
  2209. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2210. entity.Property(e => e.Version).HasColumnType("int(11)");
  2211. });
  2212. modelBuilder.Entity<MachineForMerNo>(entity =>
  2213. {
  2214. entity.HasKey(e => e.MerNo)
  2215. .HasName("PRIMARY");
  2216. entity.Property(e => e.MerNo)
  2217. .HasColumnType("varchar(50)")
  2218. .HasCharSet("utf8")
  2219. .HasCollation("utf8_general_ci");
  2220. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2221. });
  2222. modelBuilder.Entity<MachineForQrCode>(entity =>
  2223. {
  2224. entity.HasKey(e => e.DataId)
  2225. .HasName("PRIMARY");
  2226. entity.Property(e => e.DataId)
  2227. .HasColumnType("varchar(20)")
  2228. .HasCharSet("utf8")
  2229. .HasCollation("utf8_general_ci");
  2230. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2231. entity.Property(e => e.MachineSnNo)
  2232. .HasColumnType("varchar(50)")
  2233. .HasCharSet("utf8")
  2234. .HasCollation("utf8_general_ci");
  2235. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2236. entity.Property(e => e.SnNo)
  2237. .HasColumnType("varchar(50)")
  2238. .HasCharSet("utf8")
  2239. .HasCollation("utf8_general_ci");
  2240. });
  2241. modelBuilder.Entity<MachineForSnNo>(entity =>
  2242. {
  2243. entity.HasKey(e => e.SnNo)
  2244. .HasName("PRIMARY");
  2245. entity.Property(e => e.SnNo)
  2246. .HasColumnType("varchar(50)")
  2247. .HasCharSet("utf8")
  2248. .HasCollation("utf8_general_ci");
  2249. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2250. });
  2251. modelBuilder.Entity<MachineRenew>(entity =>
  2252. {
  2253. entity.Property(e => e.Id).HasColumnType("int(11)");
  2254. entity.Property(e => e.ApplyDate)
  2255. .HasColumnType("varchar(8)")
  2256. .HasCharSet("utf8")
  2257. .HasCollation("utf8_general_ci");
  2258. entity.Property(e => e.ApplyNo)
  2259. .HasColumnType("varchar(32)")
  2260. .HasCharSet("utf8")
  2261. .HasCollation("utf8_general_ci");
  2262. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2263. entity.Property(e => e.AuditDesc)
  2264. .HasColumnType("varchar(256)")
  2265. .HasCharSet("utf8")
  2266. .HasCollation("utf8_general_ci");
  2267. entity.Property(e => e.AuditStatus)
  2268. .HasColumnName("audit_status")
  2269. .HasColumnType("int(11)");
  2270. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2271. entity.Property(e => e.CreateMan)
  2272. .HasColumnType("varchar(50)")
  2273. .HasCharSet("utf8")
  2274. .HasCollation("utf8_general_ci");
  2275. entity.Property(e => e.DamagedBrandId).HasColumnType("int(11)");
  2276. entity.Property(e => e.DamagedSnNo)
  2277. .HasColumnType("varchar(32)")
  2278. .HasCharSet("utf8")
  2279. .HasCollation("utf8_general_ci");
  2280. entity.Property(e => e.DamagedSnType).HasColumnType("int(11)");
  2281. entity.Property(e => e.DeliverBrandId).HasColumnType("int(11)");
  2282. entity.Property(e => e.DeliverSnNo)
  2283. .HasColumnType("varchar(32)")
  2284. .HasCharSet("utf8")
  2285. .HasCollation("utf8_general_ci");
  2286. entity.Property(e => e.DemandDesc)
  2287. .HasColumnType("varchar(256)")
  2288. .HasCharSet("utf8")
  2289. .HasCollation("utf8_general_ci");
  2290. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2291. entity.Property(e => e.ReplaceBrandId).HasColumnType("int(11)");
  2292. entity.Property(e => e.ReplaceSnNo)
  2293. .HasColumnType("varchar(32)")
  2294. .HasCharSet("utf8")
  2295. .HasCollation("utf8_general_ci");
  2296. entity.Property(e => e.ReplaceSnType).HasColumnType("int(11)");
  2297. entity.Property(e => e.SeoDescription)
  2298. .HasColumnType("varchar(500)")
  2299. .HasCharSet("utf8")
  2300. .HasCollation("utf8_general_ci");
  2301. entity.Property(e => e.SeoKeyword)
  2302. .HasColumnType("varchar(200)")
  2303. .HasCharSet("utf8")
  2304. .HasCollation("utf8_general_ci");
  2305. entity.Property(e => e.SeoTitle)
  2306. .HasColumnType("varchar(100)")
  2307. .HasCharSet("utf8")
  2308. .HasCollation("utf8_general_ci");
  2309. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2310. entity.Property(e => e.Status).HasColumnType("int(11)");
  2311. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2312. entity.Property(e => e.UpdateMan)
  2313. .HasColumnType("varchar(50)")
  2314. .HasCharSet("utf8")
  2315. .HasCollation("utf8_general_ci");
  2316. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2317. entity.Property(e => e.Version).HasColumnType("int(11)");
  2318. });
  2319. modelBuilder.Entity<MachineReturn>(entity =>
  2320. {
  2321. entity.Property(e => e.Id).HasColumnType("int(11)");
  2322. entity.Property(e => e.ApplyNo)
  2323. .HasColumnType("varchar(32)")
  2324. .HasCharSet("utf8")
  2325. .HasCollation("utf8_general_ci");
  2326. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2327. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2328. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2329. entity.Property(e => e.CreateMan)
  2330. .HasColumnType("varchar(50)")
  2331. .HasCharSet("utf8")
  2332. .HasCollation("utf8_general_ci");
  2333. entity.Property(e => e.DeviceDesc)
  2334. .HasColumnType("varchar(256)")
  2335. .HasCharSet("utf8")
  2336. .HasCollation("utf8_general_ci");
  2337. entity.Property(e => e.DeviceNum).HasColumnType("int(11)");
  2338. entity.Property(e => e.DeviceSnNos)
  2339. .HasColumnType("mediumtext")
  2340. .HasCharSet("utf8")
  2341. .HasCollation("utf8_general_ci");
  2342. entity.Property(e => e.Operator)
  2343. .HasColumnType("varchar(32)")
  2344. .HasCharSet("utf8")
  2345. .HasCollation("utf8_general_ci");
  2346. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2347. entity.Property(e => e.Remark)
  2348. .HasColumnType("varchar(64)")
  2349. .HasCharSet("utf8")
  2350. .HasCollation("utf8_general_ci");
  2351. entity.Property(e => e.SeoDescription)
  2352. .HasColumnType("varchar(500)")
  2353. .HasCharSet("utf8")
  2354. .HasCollation("utf8_general_ci");
  2355. entity.Property(e => e.SeoKeyword)
  2356. .HasColumnType("varchar(200)")
  2357. .HasCharSet("utf8")
  2358. .HasCollation("utf8_general_ci");
  2359. entity.Property(e => e.SeoTitle)
  2360. .HasColumnType("varchar(100)")
  2361. .HasCharSet("utf8")
  2362. .HasCollation("utf8_general_ci");
  2363. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2364. entity.Property(e => e.Status).HasColumnType("int(11)");
  2365. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  2366. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2367. entity.Property(e => e.UpdateMan)
  2368. .HasColumnType("varchar(50)")
  2369. .HasCharSet("utf8")
  2370. .HasCollation("utf8_general_ci");
  2371. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2372. entity.Property(e => e.Version).HasColumnType("int(11)");
  2373. });
  2374. modelBuilder.Entity<MachineUnBind>(entity =>
  2375. {
  2376. entity.Property(e => e.Id).HasColumnType("int(11)");
  2377. entity.Property(e => e.ApplyNo)
  2378. .HasColumnType("varchar(32)")
  2379. .HasCharSet("utf8")
  2380. .HasCollation("utf8_general_ci");
  2381. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2382. entity.Property(e => e.AuditDesc)
  2383. .HasColumnType("varchar(256)")
  2384. .HasCharSet("utf8")
  2385. .HasCollation("utf8_general_ci");
  2386. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2387. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2388. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2389. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2390. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2391. entity.Property(e => e.SeoDescription)
  2392. .HasColumnType("varchar(500)")
  2393. .HasCharSet("utf8")
  2394. .HasCollation("utf8_general_ci");
  2395. entity.Property(e => e.SeoKeyword)
  2396. .HasColumnType("varchar(200)")
  2397. .HasCharSet("utf8")
  2398. .HasCollation("utf8_general_ci");
  2399. entity.Property(e => e.SeoTitle)
  2400. .HasColumnType("varchar(100)")
  2401. .HasCharSet("utf8")
  2402. .HasCollation("utf8_general_ci");
  2403. entity.Property(e => e.SnNo)
  2404. .HasColumnType("varchar(32)")
  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.UpdateDate).HasColumnType("datetime");
  2410. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2411. });
  2412. modelBuilder.Entity<MenuRight>(entity =>
  2413. {
  2414. entity.HasKey(e => e.MenuId)
  2415. .HasName("PRIMARY");
  2416. entity.Property(e => e.MenuId)
  2417. .HasColumnType("varchar(50)")
  2418. .HasCharSet("utf8")
  2419. .HasCollation("utf8_general_ci");
  2420. entity.Property(e => e.Name)
  2421. .HasColumnType("varchar(50)")
  2422. .HasCharSet("utf8")
  2423. .HasCollation("utf8_general_ci");
  2424. });
  2425. modelBuilder.Entity<MerchantAddInfo>(entity =>
  2426. {
  2427. entity.Property(e => e.Id).HasColumnType("int(11)");
  2428. entity.Property(e => e.AccountBank)
  2429. .HasColumnType("varchar(30)")
  2430. .HasCharSet("utf8")
  2431. .HasCollation("utf8_general_ci");
  2432. entity.Property(e => e.AccountName)
  2433. .HasColumnType("varchar(50)")
  2434. .HasCharSet("utf8")
  2435. .HasCollation("utf8_general_ci");
  2436. entity.Property(e => e.AccountNumber)
  2437. .HasColumnType("varchar(50)")
  2438. .HasCharSet("utf8")
  2439. .HasCollation("utf8_general_ci");
  2440. entity.Property(e => e.ActivitiesId)
  2441. .HasColumnType("varchar(32)")
  2442. .HasCharSet("utf8")
  2443. .HasCollation("utf8_general_ci");
  2444. entity.Property(e => e.ActivitiesRate)
  2445. .HasColumnType("varchar(20)")
  2446. .HasCharSet("utf8")
  2447. .HasCollation("utf8_general_ci");
  2448. entity.Property(e => e.AppAppid)
  2449. .HasColumnType("varchar(50)")
  2450. .HasCharSet("utf8")
  2451. .HasCollation("utf8_general_ci");
  2452. entity.Property(e => e.AppPics)
  2453. .HasColumnType("varchar(200)")
  2454. .HasCharSet("utf8")
  2455. .HasCollation("utf8_general_ci");
  2456. entity.Property(e => e.AppSubAppid)
  2457. .HasColumnType("varchar(50)")
  2458. .HasCharSet("utf8")
  2459. .HasCollation("utf8_general_ci");
  2460. entity.Property(e => e.ApplymentId)
  2461. .HasColumnType("varchar(50)")
  2462. .HasCharSet("utf8")
  2463. .HasCollation("utf8_general_ci");
  2464. entity.Property(e => e.ApplymentState)
  2465. .HasColumnType("varchar(50)")
  2466. .HasCharSet("utf8")
  2467. .HasCollation("utf8_general_ci");
  2468. entity.Property(e => e.AuditDetail)
  2469. .HasColumnType("mediumtext")
  2470. .HasCharSet("utf8")
  2471. .HasCollation("utf8_general_ci");
  2472. entity.Property(e => e.BankAccountType)
  2473. .HasColumnType("varchar(50)")
  2474. .HasCharSet("utf8")
  2475. .HasCollation("utf8_general_ci");
  2476. entity.Property(e => e.BankAddressCode)
  2477. .HasColumnType("varchar(20)")
  2478. .HasCharSet("utf8")
  2479. .HasCollation("utf8_general_ci");
  2480. entity.Property(e => e.BankBranchId)
  2481. .HasColumnType("varchar(20)")
  2482. .HasCharSet("utf8")
  2483. .HasCollation("utf8_general_ci");
  2484. entity.Property(e => e.BankName)
  2485. .HasColumnType("varchar(50)")
  2486. .HasCharSet("utf8")
  2487. .HasCollation("utf8_general_ci");
  2488. entity.Property(e => e.BizAddressCode)
  2489. .HasColumnType("varchar(30)")
  2490. .HasCharSet("utf8")
  2491. .HasCollation("utf8_general_ci");
  2492. entity.Property(e => e.BizStoreAddress)
  2493. .HasColumnType("varchar(50)")
  2494. .HasCharSet("utf8")
  2495. .HasCollation("utf8_general_ci");
  2496. entity.Property(e => e.BizStoreName)
  2497. .HasColumnType("varchar(50)")
  2498. .HasCharSet("utf8")
  2499. .HasCollation("utf8_general_ci");
  2500. entity.Property(e => e.BizSubAppid)
  2501. .HasColumnType("varchar(32)")
  2502. .HasCharSet("utf8")
  2503. .HasCollation("utf8_general_ci");
  2504. entity.Property(e => e.BusinessCode)
  2505. .HasColumnType("varchar(50)")
  2506. .HasCharSet("utf8")
  2507. .HasCollation("utf8_general_ci");
  2508. entity.Property(e => e.CardPeriodBegin).HasColumnType("datetime");
  2509. entity.Property(e => e.CardPeriodEnd).HasColumnType("datetime");
  2510. entity.Property(e => e.CertCopy)
  2511. .HasColumnType("varchar(200)")
  2512. .HasCharSet("utf8")
  2513. .HasCollation("utf8_general_ci");
  2514. entity.Property(e => e.CertLegalPerson)
  2515. .HasColumnType("varchar(20)")
  2516. .HasCharSet("utf8")
  2517. .HasCollation("utf8_general_ci");
  2518. entity.Property(e => e.CertMerchantName)
  2519. .HasColumnType("varchar(30)")
  2520. .HasCharSet("utf8")
  2521. .HasCollation("utf8_general_ci");
  2522. entity.Property(e => e.CertNumber)
  2523. .HasColumnType("varchar(32)")
  2524. .HasCharSet("utf8")
  2525. .HasCollation("utf8_general_ci");
  2526. entity.Property(e => e.CertType)
  2527. .HasColumnType("varchar(30)")
  2528. .HasCharSet("utf8")
  2529. .HasCollation("utf8_general_ci");
  2530. entity.Property(e => e.CertificateLetterCopy)
  2531. .HasColumnType("varchar(200)")
  2532. .HasCharSet("utf8")
  2533. .HasCollation("utf8_general_ci");
  2534. entity.Property(e => e.CompanyAddress)
  2535. .HasColumnType("varchar(50)")
  2536. .HasCharSet("utf8")
  2537. .HasCollation("utf8_general_ci");
  2538. entity.Property(e => e.ContactEmail)
  2539. .HasColumnType("varchar(50)")
  2540. .HasCharSet("utf8")
  2541. .HasCollation("utf8_general_ci");
  2542. entity.Property(e => e.ContactIdNumber)
  2543. .HasColumnType("varchar(18)")
  2544. .HasCharSet("utf8")
  2545. .HasCollation("utf8_general_ci");
  2546. entity.Property(e => e.ContactName)
  2547. .HasColumnType("varchar(30)")
  2548. .HasCharSet("utf8")
  2549. .HasCollation("utf8_general_ci");
  2550. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2551. entity.Property(e => e.CreateMan)
  2552. .HasColumnType("varchar(50)")
  2553. .HasCharSet("utf8")
  2554. .HasCollation("utf8_general_ci");
  2555. entity.Property(e => e.IdCardCopy)
  2556. .HasColumnType("varchar(200)")
  2557. .HasCharSet("utf8")
  2558. .HasCollation("utf8_general_ci");
  2559. entity.Property(e => e.IdCardName)
  2560. .HasColumnType("varchar(20)")
  2561. .HasCharSet("utf8")
  2562. .HasCollation("utf8_general_ci");
  2563. entity.Property(e => e.IdCardNational)
  2564. .HasColumnType("varchar(200)")
  2565. .HasCharSet("utf8")
  2566. .HasCollation("utf8_general_ci");
  2567. entity.Property(e => e.IdCardNumber)
  2568. .HasColumnType("varchar(18)")
  2569. .HasCharSet("utf8")
  2570. .HasCollation("utf8_general_ci");
  2571. entity.Property(e => e.IdDocType)
  2572. .HasColumnType("varchar(50)")
  2573. .HasCharSet("utf8")
  2574. .HasCollation("utf8_general_ci");
  2575. entity.Property(e => e.IndoorPic)
  2576. .HasColumnType("varchar(200)")
  2577. .HasCharSet("utf8")
  2578. .HasCollation("utf8_general_ci");
  2579. entity.Property(e => e.LegalPerson)
  2580. .HasColumnType("varchar(20)")
  2581. .HasCharSet("utf8")
  2582. .HasCollation("utf8_general_ci");
  2583. entity.Property(e => e.LicenseCopy)
  2584. .HasColumnType("varchar(200)")
  2585. .HasCharSet("utf8")
  2586. .HasCollation("utf8_general_ci");
  2587. entity.Property(e => e.LicenseNumber)
  2588. .HasColumnType("varchar(32)")
  2589. .HasCharSet("utf8")
  2590. .HasCollation("utf8_general_ci");
  2591. entity.Property(e => e.MerchantShortname)
  2592. .HasColumnType("varchar(50)")
  2593. .HasCharSet("utf8")
  2594. .HasCollation("utf8_general_ci");
  2595. entity.Property(e => e.MiniProgramAppid)
  2596. .HasColumnType("varchar(50)")
  2597. .HasCharSet("utf8")
  2598. .HasCollation("utf8_general_ci");
  2599. entity.Property(e => e.MiniProgramPics)
  2600. .HasColumnType("varchar(200)")
  2601. .HasCharSet("utf8")
  2602. .HasCollation("utf8_general_ci");
  2603. entity.Property(e => e.MiniProgramSubAppid)
  2604. .HasColumnType("varchar(50)")
  2605. .HasCharSet("utf8")
  2606. .HasCollation("utf8_general_ci");
  2607. entity.Property(e => e.MobilePhone)
  2608. .HasColumnType("varchar(11)")
  2609. .HasCharSet("utf8")
  2610. .HasCollation("utf8_general_ci");
  2611. entity.Property(e => e.MpAppid)
  2612. .HasColumnType("varchar(50)")
  2613. .HasCharSet("utf8")
  2614. .HasCollation("utf8_general_ci");
  2615. entity.Property(e => e.MpPics)
  2616. .HasColumnType("varchar(200)")
  2617. .HasCharSet("utf8")
  2618. .HasCollation("utf8_general_ci");
  2619. entity.Property(e => e.MpSubAppid)
  2620. .HasColumnType("varchar(50)")
  2621. .HasCharSet("utf8")
  2622. .HasCollation("utf8_general_ci");
  2623. entity.Property(e => e.OpenId)
  2624. .HasColumnType("varchar(50)")
  2625. .HasCharSet("utf8")
  2626. .HasCollation("utf8_general_ci");
  2627. entity.Property(e => e.OrgPeriodBegin).HasColumnType("datetime");
  2628. entity.Property(e => e.OrgPeriodEnd).HasColumnType("datetime");
  2629. entity.Property(e => e.OrganizationCode)
  2630. .HasColumnType("varchar(32)")
  2631. .HasCharSet("utf8")
  2632. .HasCollation("utf8_general_ci");
  2633. entity.Property(e => e.OrganizationCopy)
  2634. .HasColumnType("varchar(200)")
  2635. .HasCharSet("utf8")
  2636. .HasCollation("utf8_general_ci");
  2637. entity.Property(e => e.Owner)
  2638. .HasColumnType("bit(1)")
  2639. .HasDefaultValueSql("b'0'");
  2640. entity.Property(e => e.PeriodBegin).HasColumnType("datetime");
  2641. entity.Property(e => e.PeriodEnd).HasColumnType("datetime");
  2642. entity.Property(e => e.QualificationType)
  2643. .HasColumnType("varchar(30)")
  2644. .HasCharSet("utf8")
  2645. .HasCollation("utf8_general_ci");
  2646. entity.Property(e => e.Qualifications)
  2647. .HasColumnType("varchar(200)")
  2648. .HasCharSet("utf8")
  2649. .HasCollation("utf8_general_ci");
  2650. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2651. entity.Property(e => e.SalesScenesType)
  2652. .HasColumnType("varchar(50)")
  2653. .HasCharSet("utf8")
  2654. .HasCollation("utf8_general_ci");
  2655. entity.Property(e => e.SeoDescription)
  2656. .HasColumnType("varchar(500)")
  2657. .HasCharSet("utf8")
  2658. .HasCollation("utf8_general_ci");
  2659. entity.Property(e => e.SeoKeyword)
  2660. .HasColumnType("varchar(200)")
  2661. .HasCharSet("utf8")
  2662. .HasCollation("utf8_general_ci");
  2663. entity.Property(e => e.SeoTitle)
  2664. .HasColumnType("varchar(100)")
  2665. .HasCharSet("utf8")
  2666. .HasCollation("utf8_general_ci");
  2667. entity.Property(e => e.ServicePhone)
  2668. .HasColumnType("varchar(30)")
  2669. .HasCharSet("utf8")
  2670. .HasCollation("utf8_general_ci");
  2671. entity.Property(e => e.SettlementId)
  2672. .HasColumnType("varchar(3)")
  2673. .HasCharSet("utf8")
  2674. .HasCollation("utf8_general_ci");
  2675. entity.Property(e => e.SignUrl)
  2676. .HasColumnType("varchar(1000)")
  2677. .HasCharSet("utf8")
  2678. .HasCollation("utf8_general_ci");
  2679. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2680. entity.Property(e => e.Status).HasColumnType("int(11)");
  2681. entity.Property(e => e.StoreEntrancePic)
  2682. .HasColumnType("varchar(200)")
  2683. .HasCharSet("utf8")
  2684. .HasCollation("utf8_general_ci");
  2685. entity.Property(e => e.SubCorpId)
  2686. .HasColumnType("varchar(50)")
  2687. .HasCharSet("utf8")
  2688. .HasCollation("utf8_general_ci");
  2689. entity.Property(e => e.SubMchid)
  2690. .HasColumnType("varchar(32)")
  2691. .HasCharSet("utf8")
  2692. .HasCollation("utf8_general_ci");
  2693. entity.Property(e => e.SubjectType)
  2694. .HasColumnType("varchar(50)")
  2695. .HasCharSet("utf8")
  2696. .HasCollation("utf8_general_ci");
  2697. entity.Property(e => e.UboInfoIdCardCopy)
  2698. .HasColumnType("varchar(200)")
  2699. .HasCharSet("utf8")
  2700. .HasCollation("utf8_general_ci");
  2701. entity.Property(e => e.UboInfoIdCardNational)
  2702. .HasColumnType("varchar(200)")
  2703. .HasCharSet("utf8")
  2704. .HasCollation("utf8_general_ci");
  2705. entity.Property(e => e.UboInfoIdDocCopy)
  2706. .HasColumnType("varchar(200)")
  2707. .HasCharSet("utf8")
  2708. .HasCollation("utf8_general_ci");
  2709. entity.Property(e => e.UboInfoIdNumber)
  2710. .HasColumnType("varchar(30)")
  2711. .HasCharSet("utf8")
  2712. .HasCollation("utf8_general_ci");
  2713. entity.Property(e => e.UboInfoIdPeriodBegin).HasColumnType("datetime");
  2714. entity.Property(e => e.UboInfoIdPeriodEnd).HasColumnType("datetime");
  2715. entity.Property(e => e.UboInfoIdType)
  2716. .HasColumnType("varchar(50)")
  2717. .HasCharSet("utf8")
  2718. .HasCollation("utf8_general_ci");
  2719. entity.Property(e => e.UboInfoName)
  2720. .HasColumnType("varchar(20)")
  2721. .HasCharSet("utf8")
  2722. .HasCollation("utf8_general_ci");
  2723. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2724. entity.Property(e => e.UpdateMan)
  2725. .HasColumnType("varchar(50)")
  2726. .HasCharSet("utf8")
  2727. .HasCollation("utf8_general_ci");
  2728. entity.Property(e => e.Version).HasColumnType("int(11)");
  2729. entity.Property(e => e.WebAppId)
  2730. .HasColumnType("varchar(50)")
  2731. .HasCharSet("utf8")
  2732. .HasCollation("utf8_general_ci");
  2733. entity.Property(e => e.WebAuthorisation)
  2734. .HasColumnType("varchar(200)")
  2735. .HasCharSet("utf8")
  2736. .HasCollation("utf8_general_ci");
  2737. entity.Property(e => e.WebDomain)
  2738. .HasColumnType("varchar(50)")
  2739. .HasCharSet("utf8")
  2740. .HasCollation("utf8_general_ci");
  2741. entity.Property(e => e.WeworkPics)
  2742. .HasColumnType("varchar(200)")
  2743. .HasCharSet("utf8")
  2744. .HasCollation("utf8_general_ci");
  2745. });
  2746. modelBuilder.Entity<MerchantAdmin>(entity =>
  2747. {
  2748. entity.Property(e => e.Id).HasColumnType("int(11)");
  2749. entity.Property(e => e.AdminName)
  2750. .HasColumnType("varchar(50)")
  2751. .HasCharSet("utf8")
  2752. .HasCollation("utf8_general_ci");
  2753. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2754. entity.Property(e => e.CreateMan)
  2755. .HasColumnType("varchar(50)")
  2756. .HasCharSet("utf8")
  2757. .HasCollation("utf8_general_ci");
  2758. entity.Property(e => e.Email)
  2759. .HasColumnType("varchar(50)")
  2760. .HasCharSet("utf8")
  2761. .HasCollation("utf8_general_ci");
  2762. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  2763. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2764. entity.Property(e => e.Mobile)
  2765. .HasColumnType("varchar(11)")
  2766. .HasCharSet("utf8")
  2767. .HasCollation("utf8_general_ci");
  2768. entity.Property(e => e.Note)
  2769. .HasColumnType("mediumtext")
  2770. .HasCharSet("utf8")
  2771. .HasCollation("utf8_general_ci");
  2772. entity.Property(e => e.Password)
  2773. .HasColumnType("varchar(32)")
  2774. .HasCharSet("utf8")
  2775. .HasCollation("utf8_general_ci");
  2776. entity.Property(e => e.Qq)
  2777. .HasColumnName("QQ")
  2778. .HasColumnType("varchar(20)")
  2779. .HasCharSet("utf8")
  2780. .HasCollation("utf8_general_ci");
  2781. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2782. entity.Property(e => e.RealName)
  2783. .HasColumnType("varchar(50)")
  2784. .HasCharSet("utf8")
  2785. .HasCollation("utf8_general_ci");
  2786. entity.Property(e => e.RightInfo)
  2787. .HasColumnType("varchar(500)")
  2788. .HasCharSet("utf8")
  2789. .HasCollation("utf8_general_ci");
  2790. entity.Property(e => e.SeoDescription)
  2791. .HasColumnType("varchar(500)")
  2792. .HasCharSet("utf8")
  2793. .HasCollation("utf8_general_ci");
  2794. entity.Property(e => e.SeoKeyword)
  2795. .HasColumnType("varchar(200)")
  2796. .HasCharSet("utf8")
  2797. .HasCollation("utf8_general_ci");
  2798. entity.Property(e => e.SeoTitle)
  2799. .HasColumnType("varchar(100)")
  2800. .HasCharSet("utf8")
  2801. .HasCollation("utf8_general_ci");
  2802. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2803. entity.Property(e => e.Status).HasColumnType("int(11)");
  2804. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2805. entity.Property(e => e.UpdateMan)
  2806. .HasColumnType("varchar(50)")
  2807. .HasCharSet("utf8")
  2808. .HasCollation("utf8_general_ci");
  2809. entity.Property(e => e.Version).HasColumnType("int(11)");
  2810. });
  2811. modelBuilder.Entity<MerchantAuth>(entity =>
  2812. {
  2813. entity.Property(e => e.Id).HasColumnType("int(11)");
  2814. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  2815. entity.Property(e => e.BankCardAccount)
  2816. .HasColumnType("varchar(32)")
  2817. .HasCharSet("utf8")
  2818. .HasCollation("utf8_general_ci");
  2819. entity.Property(e => e.BankMobile)
  2820. .HasColumnType("varchar(11)")
  2821. .HasCharSet("utf8")
  2822. .HasCollation("utf8_general_ci");
  2823. entity.Property(e => e.BankName)
  2824. .HasColumnType("varchar(64)")
  2825. .HasCharSet("utf8")
  2826. .HasCollation("utf8_general_ci");
  2827. entity.Property(e => e.ChannelCode)
  2828. .HasColumnType("varchar(16)")
  2829. .HasCharSet("utf8")
  2830. .HasCollation("utf8_general_ci");
  2831. entity.Property(e => e.ChannelName)
  2832. .HasColumnType("varchar(32)")
  2833. .HasCharSet("utf8")
  2834. .HasCollation("utf8_general_ci");
  2835. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2836. entity.Property(e => e.CreateMan)
  2837. .HasColumnType("varchar(50)")
  2838. .HasCharSet("utf8")
  2839. .HasCollation("utf8_general_ci");
  2840. entity.Property(e => e.IdCardNo)
  2841. .HasColumnType("varchar(18)")
  2842. .HasCharSet("utf8")
  2843. .HasCollation("utf8_general_ci");
  2844. entity.Property(e => e.MerNo)
  2845. .HasColumnType("varchar(20)")
  2846. .HasCharSet("utf8")
  2847. .HasCollation("utf8_general_ci");
  2848. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2849. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2850. entity.Property(e => e.RealName)
  2851. .HasColumnType("varchar(16)")
  2852. .HasCharSet("utf8")
  2853. .HasCollation("utf8_general_ci");
  2854. entity.Property(e => e.ReqData)
  2855. .HasColumnType("varchar(2000)")
  2856. .HasCharSet("utf8")
  2857. .HasCollation("utf8_general_ci");
  2858. entity.Property(e => e.RespData)
  2859. .HasColumnType("varchar(2000)")
  2860. .HasCharSet("utf8")
  2861. .HasCollation("utf8_general_ci");
  2862. entity.Property(e => e.ReturnCode)
  2863. .HasColumnType("varchar(30)")
  2864. .HasCharSet("utf8")
  2865. .HasCollation("utf8_general_ci");
  2866. entity.Property(e => e.ReturnMsg)
  2867. .HasColumnType("varchar(512)")
  2868. .HasCharSet("utf8")
  2869. .HasCollation("utf8_general_ci");
  2870. entity.Property(e => e.SeoDescription)
  2871. .HasColumnType("varchar(500)")
  2872. .HasCharSet("utf8")
  2873. .HasCollation("utf8_general_ci");
  2874. entity.Property(e => e.SeoKeyword)
  2875. .HasColumnType("varchar(200)")
  2876. .HasCharSet("utf8")
  2877. .HasCollation("utf8_general_ci");
  2878. entity.Property(e => e.SeoTitle)
  2879. .HasColumnType("varchar(100)")
  2880. .HasCharSet("utf8")
  2881. .HasCollation("utf8_general_ci");
  2882. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2883. entity.Property(e => e.Status).HasColumnType("int(11)");
  2884. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2885. entity.Property(e => e.UpdateMan)
  2886. .HasColumnType("varchar(50)")
  2887. .HasCharSet("utf8")
  2888. .HasCollation("utf8_general_ci");
  2889. entity.Property(e => e.Version).HasColumnType("int(11)");
  2890. });
  2891. modelBuilder.Entity<MerchantClass>(entity =>
  2892. {
  2893. entity.Property(e => e.Id).HasColumnType("int(11)");
  2894. entity.Property(e => e.ColName)
  2895. .HasColumnType("varchar(50)")
  2896. .HasCharSet("utf8")
  2897. .HasCollation("utf8_general_ci");
  2898. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2899. entity.Property(e => e.CreateMan)
  2900. .HasColumnType("varchar(50)")
  2901. .HasCharSet("utf8")
  2902. .HasCollation("utf8_general_ci");
  2903. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2904. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2905. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2906. entity.Property(e => e.SeoDescription)
  2907. .HasColumnType("varchar(500)")
  2908. .HasCharSet("utf8")
  2909. .HasCollation("utf8_general_ci");
  2910. entity.Property(e => e.SeoKeyword)
  2911. .HasColumnType("varchar(200)")
  2912. .HasCharSet("utf8")
  2913. .HasCollation("utf8_general_ci");
  2914. entity.Property(e => e.SeoTitle)
  2915. .HasColumnType("varchar(100)")
  2916. .HasCharSet("utf8")
  2917. .HasCollation("utf8_general_ci");
  2918. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2919. entity.Property(e => e.Status).HasColumnType("int(11)");
  2920. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2921. entity.Property(e => e.UpdateMan)
  2922. .HasColumnType("varchar(50)")
  2923. .HasCharSet("utf8")
  2924. .HasCollation("utf8_general_ci");
  2925. entity.Property(e => e.Version).HasColumnType("int(11)");
  2926. });
  2927. modelBuilder.Entity<MerchantCol>(entity =>
  2928. {
  2929. entity.Property(e => e.Id).HasColumnType("int(11)");
  2930. entity.Property(e => e.ColDetail)
  2931. .HasColumnType("varchar(50)")
  2932. .HasCharSet("utf8")
  2933. .HasCollation("utf8_general_ci");
  2934. entity.Property(e => e.ColEnName)
  2935. .HasColumnType("varchar(50)")
  2936. .HasCharSet("utf8")
  2937. .HasCollation("utf8_general_ci");
  2938. entity.Property(e => e.ColId)
  2939. .HasColumnType("varchar(30)")
  2940. .HasCharSet("utf8")
  2941. .HasCollation("utf8_general_ci");
  2942. entity.Property(e => e.ColName)
  2943. .HasColumnType("varchar(50)")
  2944. .HasCharSet("utf8")
  2945. .HasCollation("utf8_general_ci");
  2946. entity.Property(e => e.ColPicPath)
  2947. .HasColumnType("varchar(200)")
  2948. .HasCharSet("utf8")
  2949. .HasCollation("utf8_general_ci");
  2950. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2951. entity.Property(e => e.CreateMan)
  2952. .HasColumnType("varchar(50)")
  2953. .HasCharSet("utf8")
  2954. .HasCollation("utf8_general_ci");
  2955. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2956. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2957. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2958. entity.Property(e => e.Recommend)
  2959. .HasColumnType("bit(1)")
  2960. .HasDefaultValueSql("b'0'");
  2961. entity.Property(e => e.SeoDescription)
  2962. .HasColumnType("varchar(500)")
  2963. .HasCharSet("utf8")
  2964. .HasCollation("utf8_general_ci");
  2965. entity.Property(e => e.SeoKeyword)
  2966. .HasColumnType("varchar(200)")
  2967. .HasCharSet("utf8")
  2968. .HasCollation("utf8_general_ci");
  2969. entity.Property(e => e.SeoTitle)
  2970. .HasColumnType("varchar(100)")
  2971. .HasCharSet("utf8")
  2972. .HasCollation("utf8_general_ci");
  2973. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2974. entity.Property(e => e.Status).HasColumnType("int(11)");
  2975. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2976. entity.Property(e => e.UpdateMan)
  2977. .HasColumnType("varchar(50)")
  2978. .HasCharSet("utf8")
  2979. .HasCollation("utf8_general_ci");
  2980. entity.Property(e => e.Version).HasColumnType("int(11)");
  2981. });
  2982. modelBuilder.Entity<MerchantComment>(entity =>
  2983. {
  2984. entity.Property(e => e.Id).HasColumnType("int(11)");
  2985. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2986. entity.Property(e => e.CreateMan)
  2987. .HasColumnType("varchar(50)")
  2988. .HasCharSet("utf8")
  2989. .HasCollation("utf8_general_ci");
  2990. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2991. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  2992. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2993. entity.Property(e => e.SeoDescription)
  2994. .HasColumnType("varchar(500)")
  2995. .HasCharSet("utf8")
  2996. .HasCollation("utf8_general_ci");
  2997. entity.Property(e => e.SeoKeyword)
  2998. .HasColumnType("varchar(200)")
  2999. .HasCharSet("utf8")
  3000. .HasCollation("utf8_general_ci");
  3001. entity.Property(e => e.SeoTitle)
  3002. .HasColumnType("varchar(100)")
  3003. .HasCharSet("utf8")
  3004. .HasCollation("utf8_general_ci");
  3005. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3006. entity.Property(e => e.StarNum1).HasColumnType("int(11)");
  3007. entity.Property(e => e.StarNum2).HasColumnType("int(11)");
  3008. entity.Property(e => e.StarNum3).HasColumnType("int(11)");
  3009. entity.Property(e => e.Status).HasColumnType("int(11)");
  3010. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3011. entity.Property(e => e.UpdateMan)
  3012. .HasColumnType("varchar(50)")
  3013. .HasCharSet("utf8")
  3014. .HasCollation("utf8_general_ci");
  3015. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3016. entity.Property(e => e.Version).HasColumnType("int(11)");
  3017. });
  3018. modelBuilder.Entity<MerchantDepositReturns>(entity =>
  3019. {
  3020. entity.Property(e => e.Id).HasColumnType("int(11)");
  3021. entity.Property(e => e.AlipayAccountNo)
  3022. .HasColumnType("varchar(50)")
  3023. .HasCharSet("utf8")
  3024. .HasCollation("utf8_general_ci");
  3025. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3026. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3027. entity.Property(e => e.OperateMan)
  3028. .HasColumnType("varchar(50)")
  3029. .HasCharSet("utf8")
  3030. .HasCollation("utf8_general_ci");
  3031. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3032. entity.Property(e => e.ReturnAmount).HasColumnType("decimal(18,2)");
  3033. entity.Property(e => e.SeoDescription)
  3034. .HasColumnType("varchar(500)")
  3035. .HasCharSet("utf8")
  3036. .HasCollation("utf8_general_ci");
  3037. entity.Property(e => e.SeoKeyword)
  3038. .HasColumnType("varchar(200)")
  3039. .HasCharSet("utf8")
  3040. .HasCollation("utf8_general_ci");
  3041. entity.Property(e => e.SeoTitle)
  3042. .HasColumnType("varchar(100)")
  3043. .HasCharSet("utf8")
  3044. .HasCollation("utf8_general_ci");
  3045. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3046. entity.Property(e => e.Status).HasColumnType("int(11)");
  3047. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3048. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3049. });
  3050. modelBuilder.Entity<MerchantForCode>(entity =>
  3051. {
  3052. entity.HasKey(e => e.Code)
  3053. .HasName("PRIMARY");
  3054. entity.Property(e => e.Code)
  3055. .HasColumnType("varchar(30)")
  3056. .HasCharSet("utf8")
  3057. .HasCollation("utf8_general_ci");
  3058. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3059. });
  3060. modelBuilder.Entity<MerchantForMobile>(entity =>
  3061. {
  3062. entity.HasKey(e => e.Mobile)
  3063. .HasName("PRIMARY");
  3064. entity.Property(e => e.Mobile)
  3065. .HasColumnType("varchar(11)")
  3066. .HasCharSet("utf8")
  3067. .HasCollation("utf8_general_ci");
  3068. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3069. });
  3070. modelBuilder.Entity<MerchantForName>(entity =>
  3071. {
  3072. entity.HasKey(e => e.Name)
  3073. .HasName("PRIMARY");
  3074. entity.Property(e => e.Name)
  3075. .HasColumnType("varchar(30)")
  3076. .HasCharSet("utf8")
  3077. .HasCollation("utf8_general_ci");
  3078. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3079. });
  3080. modelBuilder.Entity<MerchantInfo>(entity =>
  3081. {
  3082. entity.Property(e => e.Id).HasColumnType("int(11)");
  3083. entity.Property(e => e.ActivationDate).HasColumnType("datetime");
  3084. entity.Property(e => e.ActivationStatus).HasColumnType("int(11)");
  3085. entity.Property(e => e.Address)
  3086. .HasColumnType("varchar(100)")
  3087. .HasCharSet("utf8")
  3088. .HasCollation("utf8_general_ci");
  3089. entity.Property(e => e.Areas)
  3090. .HasColumnType("varchar(50)")
  3091. .HasCharSet("utf8")
  3092. .HasCollation("utf8_general_ci");
  3093. entity.Property(e => e.BindDate).HasColumnType("datetime");
  3094. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  3095. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3096. entity.Property(e => e.CreateMan)
  3097. .HasColumnType("varchar(50)")
  3098. .HasCharSet("utf8")
  3099. .HasCollation("utf8_general_ci");
  3100. entity.Property(e => e.IsAuth)
  3101. .HasColumnType("bit(1)")
  3102. .HasDefaultValueSql("b'0'");
  3103. entity.Property(e => e.LastAddConsumerDate).HasColumnType("datetime");
  3104. entity.Property(e => e.LastConsumeDate).HasColumnType("datetime");
  3105. entity.Property(e => e.LoginPwd)
  3106. .HasColumnType("varchar(32)")
  3107. .HasCharSet("utf8")
  3108. .HasCollation("utf8_general_ci");
  3109. entity.Property(e => e.Logo)
  3110. .HasColumnType("varchar(200)")
  3111. .HasCharSet("utf8")
  3112. .HasCollation("utf8_general_ci");
  3113. entity.Property(e => e.Mobile)
  3114. .HasColumnType("varchar(11)")
  3115. .HasCharSet("utf8")
  3116. .HasCollation("utf8_general_ci");
  3117. entity.Property(e => e.Name)
  3118. .HasColumnType("varchar(50)")
  3119. .HasCharSet("utf8")
  3120. .HasCollation("utf8_general_ci");
  3121. entity.Property(e => e.ParentUserNav)
  3122. .HasColumnType("varchar(500)")
  3123. .HasCharSet("utf8")
  3124. .HasCollation("utf8_general_ci");
  3125. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3126. entity.Property(e => e.SeoDescription)
  3127. .HasColumnType("varchar(500)")
  3128. .HasCharSet("utf8")
  3129. .HasCollation("utf8_general_ci");
  3130. entity.Property(e => e.SeoKeyword)
  3131. .HasColumnType("varchar(200)")
  3132. .HasCharSet("utf8")
  3133. .HasCollation("utf8_general_ci");
  3134. entity.Property(e => e.SeoTitle)
  3135. .HasColumnType("varchar(100)")
  3136. .HasCharSet("utf8")
  3137. .HasCollation("utf8_general_ci");
  3138. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3139. entity.Property(e => e.Status).HasColumnType("int(11)");
  3140. entity.Property(e => e.TotalActual).HasColumnType("decimal(18,2)");
  3141. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  3142. entity.Property(e => e.TotalConsumeCount).HasColumnType("int(11)");
  3143. entity.Property(e => e.TotalCustomer).HasColumnType("int(11)");
  3144. entity.Property(e => e.TotalOrder).HasColumnType("int(11)");
  3145. entity.Property(e => e.TotalUser).HasColumnType("int(11)");
  3146. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3147. entity.Property(e => e.UpdateMan)
  3148. .HasColumnType("varchar(50)")
  3149. .HasCharSet("utf8")
  3150. .HasCollation("utf8_general_ci");
  3151. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3152. entity.Property(e => e.Version).HasColumnType("int(11)");
  3153. });
  3154. modelBuilder.Entity<MerchantParamSet>(entity =>
  3155. {
  3156. entity.Property(e => e.Id).HasColumnType("int(11)");
  3157. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3158. entity.Property(e => e.CreateMan)
  3159. .HasColumnType("varchar(50)")
  3160. .HasCharSet("utf8")
  3161. .HasCollation("utf8_general_ci");
  3162. entity.Property(e => e.DiviPercent).HasColumnType("decimal(18,2)");
  3163. entity.Property(e => e.DiviPersons).HasColumnType("int(11)");
  3164. entity.Property(e => e.GetPercent).HasColumnType("decimal(18,2)");
  3165. entity.Property(e => e.IsAll).HasColumnType("int(11)");
  3166. entity.Property(e => e.MinPayMoney).HasColumnType("decimal(18,2)");
  3167. entity.Property(e => e.ProfitDays).HasColumnType("int(11)");
  3168. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3169. entity.Property(e => e.SeoDescription)
  3170. .HasColumnType("varchar(500)")
  3171. .HasCharSet("utf8")
  3172. .HasCollation("utf8_general_ci");
  3173. entity.Property(e => e.SeoKeyword)
  3174. .HasColumnType("varchar(200)")
  3175. .HasCharSet("utf8")
  3176. .HasCollation("utf8_general_ci");
  3177. entity.Property(e => e.SeoTitle)
  3178. .HasColumnType("varchar(100)")
  3179. .HasCharSet("utf8")
  3180. .HasCollation("utf8_general_ci");
  3181. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3182. entity.Property(e => e.Status).HasColumnType("int(11)");
  3183. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3184. entity.Property(e => e.UpdateMan)
  3185. .HasColumnType("varchar(50)")
  3186. .HasCharSet("utf8")
  3187. .HasCollation("utf8_general_ci");
  3188. entity.Property(e => e.Version).HasColumnType("int(11)");
  3189. });
  3190. modelBuilder.Entity<MerchantQrCode>(entity =>
  3191. {
  3192. entity.Property(e => e.Id).HasColumnType("int(11)");
  3193. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3194. entity.Property(e => e.CreateMan)
  3195. .HasColumnType("varchar(50)")
  3196. .HasCharSet("utf8")
  3197. .HasCollation("utf8_general_ci");
  3198. entity.Property(e => e.MachineId).HasColumnType("int(11)");
  3199. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3200. entity.Property(e => e.QrCodeContent)
  3201. .HasColumnType("varchar(500)")
  3202. .HasCharSet("utf8")
  3203. .HasCollation("utf8_general_ci");
  3204. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3205. entity.Property(e => e.SeoDescription)
  3206. .HasColumnType("varchar(500)")
  3207. .HasCharSet("utf8")
  3208. .HasCollation("utf8_general_ci");
  3209. entity.Property(e => e.SeoKeyword)
  3210. .HasColumnType("varchar(200)")
  3211. .HasCharSet("utf8")
  3212. .HasCollation("utf8_general_ci");
  3213. entity.Property(e => e.SeoTitle)
  3214. .HasColumnType("varchar(100)")
  3215. .HasCharSet("utf8")
  3216. .HasCollation("utf8_general_ci");
  3217. entity.Property(e => e.SnNo)
  3218. .HasColumnType("varchar(50)")
  3219. .HasCharSet("utf8")
  3220. .HasCollation("utf8_general_ci");
  3221. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3222. entity.Property(e => e.Status).HasColumnType("int(11)");
  3223. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3224. entity.Property(e => e.UpdateMan)
  3225. .HasColumnType("varchar(50)")
  3226. .HasCharSet("utf8")
  3227. .HasCollation("utf8_general_ci");
  3228. entity.Property(e => e.Version).HasColumnType("int(11)");
  3229. });
  3230. modelBuilder.Entity<MerchantRebateDetail>(entity =>
  3231. {
  3232. entity.Property(e => e.Id).HasColumnType("int(11)");
  3233. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3234. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3235. entity.Property(e => e.CreateMan)
  3236. .HasColumnType("varchar(50)")
  3237. .HasCharSet("utf8")
  3238. .HasCollation("utf8_general_ci");
  3239. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3240. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3241. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3242. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3243. entity.Property(e => e.MerNo)
  3244. .HasColumnType("varchar(32)")
  3245. .HasCharSet("utf8")
  3246. .HasCollation("utf8_general_ci");
  3247. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  3248. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  3249. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3250. entity.Property(e => e.MmpUserName)
  3251. .HasColumnType("varchar(32)")
  3252. .HasCharSet("utf8")
  3253. .HasCollation("utf8_general_ci");
  3254. entity.Property(e => e.MmpUserNo)
  3255. .HasColumnType("varchar(32)")
  3256. .HasCharSet("utf8")
  3257. .HasCollation("utf8_general_ci");
  3258. entity.Property(e => e.ProductName)
  3259. .HasColumnType("varchar(32)")
  3260. .HasCharSet("utf8")
  3261. .HasCollation("utf8_general_ci");
  3262. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3263. entity.Property(e => e.Remark)
  3264. .HasColumnType("varchar(64)")
  3265. .HasCharSet("utf8")
  3266. .HasCollation("utf8_general_ci");
  3267. entity.Property(e => e.RewardDesc)
  3268. .HasColumnType("varchar(128)")
  3269. .HasCharSet("utf8")
  3270. .HasCollation("utf8_general_ci");
  3271. entity.Property(e => e.SeoDescription)
  3272. .HasColumnType("varchar(500)")
  3273. .HasCharSet("utf8")
  3274. .HasCollation("utf8_general_ci");
  3275. entity.Property(e => e.SeoKeyword)
  3276. .HasColumnType("varchar(200)")
  3277. .HasCharSet("utf8")
  3278. .HasCollation("utf8_general_ci");
  3279. entity.Property(e => e.SeoTitle)
  3280. .HasColumnType("varchar(100)")
  3281. .HasCharSet("utf8")
  3282. .HasCollation("utf8_general_ci");
  3283. entity.Property(e => e.SnNo)
  3284. .HasColumnType("varchar(32)")
  3285. .HasCharSet("utf8")
  3286. .HasCollation("utf8_general_ci");
  3287. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3288. entity.Property(e => e.Status).HasColumnType("int(11)");
  3289. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  3290. entity.Property(e => e.TradeDate)
  3291. .HasColumnType("varchar(8)")
  3292. .HasCharSet("utf8")
  3293. .HasCollation("utf8_general_ci");
  3294. entity.Property(e => e.TradeMonth)
  3295. .HasColumnType("varchar(6)")
  3296. .HasCharSet("utf8")
  3297. .HasCollation("utf8_general_ci");
  3298. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3299. entity.Property(e => e.UpdateMan)
  3300. .HasColumnType("varchar(50)")
  3301. .HasCharSet("utf8")
  3302. .HasCollation("utf8_general_ci");
  3303. entity.Property(e => e.Version).HasColumnType("int(11)");
  3304. });
  3305. modelBuilder.Entity<Merchants>(entity =>
  3306. {
  3307. entity.Property(e => e.Id).HasColumnType("int(11)");
  3308. entity.Property(e => e.Address)
  3309. .HasColumnType("varchar(50)")
  3310. .HasCharSet("utf8")
  3311. .HasCollation("utf8_general_ci");
  3312. entity.Property(e => e.Areas)
  3313. .HasColumnType("varchar(30)")
  3314. .HasCharSet("utf8")
  3315. .HasCollation("utf8_general_ci");
  3316. entity.Property(e => e.BusinessLicense)
  3317. .HasColumnType("varchar(200)")
  3318. .HasCharSet("utf8")
  3319. .HasCollation("utf8_general_ci");
  3320. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  3321. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3322. entity.Property(e => e.CreateMan)
  3323. .HasColumnType("varchar(50)")
  3324. .HasCharSet("utf8")
  3325. .HasCollation("utf8_general_ci");
  3326. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  3327. entity.Property(e => e.IsAuth)
  3328. .HasColumnType("bit(1)")
  3329. .HasDefaultValueSql("b'0'");
  3330. entity.Property(e => e.IsRecommend)
  3331. .HasColumnType("bit(1)")
  3332. .HasDefaultValueSql("b'0'");
  3333. entity.Property(e => e.LoginPwd)
  3334. .HasColumnType("varchar(32)")
  3335. .HasCharSet("utf8")
  3336. .HasCollation("utf8_general_ci");
  3337. entity.Property(e => e.Logo)
  3338. .HasColumnType("varchar(200)")
  3339. .HasCharSet("utf8")
  3340. .HasCollation("utf8_general_ci");
  3341. entity.Property(e => e.Name)
  3342. .HasColumnType("varchar(50)")
  3343. .HasCharSet("utf8")
  3344. .HasCollation("utf8_general_ci");
  3345. entity.Property(e => e.PayPwd)
  3346. .HasColumnType("varchar(32)")
  3347. .HasCharSet("utf8")
  3348. .HasCollation("utf8_general_ci");
  3349. entity.Property(e => e.Phone)
  3350. .HasColumnType("varchar(30)")
  3351. .HasCharSet("utf8")
  3352. .HasCollation("utf8_general_ci");
  3353. entity.Property(e => e.Principal)
  3354. .HasColumnType("varchar(30)")
  3355. .HasCharSet("utf8")
  3356. .HasCollation("utf8_general_ci");
  3357. entity.Property(e => e.Province)
  3358. .HasColumnType("varchar(20)")
  3359. .HasCharSet("utf8")
  3360. .HasCollation("utf8_general_ci");
  3361. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3362. entity.Property(e => e.SeoDescription)
  3363. .HasColumnType("varchar(500)")
  3364. .HasCharSet("utf8")
  3365. .HasCollation("utf8_general_ci");
  3366. entity.Property(e => e.SeoKeyword)
  3367. .HasColumnType("varchar(200)")
  3368. .HasCharSet("utf8")
  3369. .HasCollation("utf8_general_ci");
  3370. entity.Property(e => e.SeoTitle)
  3371. .HasColumnType("varchar(100)")
  3372. .HasCharSet("utf8")
  3373. .HasCollation("utf8_general_ci");
  3374. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3375. entity.Property(e => e.StarNum1).HasColumnType("decimal(18,2)");
  3376. entity.Property(e => e.StarNum2).HasColumnType("decimal(18,2)");
  3377. entity.Property(e => e.StarNum3).HasColumnType("decimal(18,2)");
  3378. entity.Property(e => e.Status).HasColumnType("int(11)");
  3379. entity.Property(e => e.Title)
  3380. .HasColumnType("varchar(50)")
  3381. .HasCharSet("utf8")
  3382. .HasCollation("utf8_general_ci");
  3383. entity.Property(e => e.Title2)
  3384. .HasColumnType("varchar(50)")
  3385. .HasCharSet("utf8")
  3386. .HasCollation("utf8_general_ci");
  3387. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3388. entity.Property(e => e.UpdateMan)
  3389. .HasColumnType("varchar(50)")
  3390. .HasCharSet("utf8")
  3391. .HasCollation("utf8_general_ci");
  3392. entity.Property(e => e.UserName)
  3393. .HasColumnType("varchar(50)")
  3394. .HasCharSet("utf8")
  3395. .HasCollation("utf8_general_ci");
  3396. entity.Property(e => e.Version).HasColumnType("int(11)");
  3397. });
  3398. modelBuilder.Entity<MobileCodeCheck>(entity =>
  3399. {
  3400. entity.HasKey(e => e.Mobile)
  3401. .HasName("PRIMARY");
  3402. entity.Property(e => e.Mobile)
  3403. .HasColumnType("varchar(11)")
  3404. .HasCharSet("utf8")
  3405. .HasCollation("utf8_general_ci");
  3406. entity.Property(e => e.CheckCode)
  3407. .HasColumnType("varchar(6)")
  3408. .HasCharSet("utf8")
  3409. .HasCollation("utf8_general_ci");
  3410. entity.Property(e => e.CheckCodeTime).HasColumnType("datetime");
  3411. entity.Property(e => e.CheckNo)
  3412. .HasColumnType("varchar(6)")
  3413. .HasCharSet("utf8")
  3414. .HasCollation("utf8_general_ci");
  3415. });
  3416. modelBuilder.Entity<MsgBlackList>(entity =>
  3417. {
  3418. entity.Property(e => e.Id).HasColumnType("int(11)");
  3419. entity.Property(e => e.ColId)
  3420. .HasColumnType("varchar(30)")
  3421. .HasCharSet("utf8")
  3422. .HasCollation("utf8_general_ci");
  3423. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3424. entity.Property(e => e.CreateMan)
  3425. .HasColumnType("varchar(50)")
  3426. .HasCharSet("utf8")
  3427. .HasCollation("utf8_general_ci");
  3428. entity.Property(e => e.Extend)
  3429. .HasColumnType("varchar(2000)")
  3430. .HasCharSet("utf8")
  3431. .HasCollation("utf8_general_ci");
  3432. entity.Property(e => e.Ip)
  3433. .HasColumnType("varchar(64)")
  3434. .HasCharSet("utf8")
  3435. .HasCollation("utf8_general_ci");
  3436. entity.Property(e => e.Mobile)
  3437. .HasColumnType("varchar(11)")
  3438. .HasCharSet("utf8")
  3439. .HasCollation("utf8_general_ci");
  3440. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3441. entity.Property(e => e.Reason)
  3442. .HasColumnType("varchar(512)")
  3443. .HasCharSet("utf8")
  3444. .HasCollation("utf8_general_ci");
  3445. entity.Property(e => e.Remark)
  3446. .HasColumnType("varchar(64)")
  3447. .HasCharSet("utf8")
  3448. .HasCollation("utf8_general_ci");
  3449. entity.Property(e => e.SeoDescription)
  3450. .HasColumnType("varchar(500)")
  3451. .HasCharSet("utf8")
  3452. .HasCollation("utf8_general_ci");
  3453. entity.Property(e => e.SeoKeyword)
  3454. .HasColumnType("varchar(200)")
  3455. .HasCharSet("utf8")
  3456. .HasCollation("utf8_general_ci");
  3457. entity.Property(e => e.SeoTitle)
  3458. .HasColumnType("varchar(100)")
  3459. .HasCharSet("utf8")
  3460. .HasCollation("utf8_general_ci");
  3461. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3462. entity.Property(e => e.Status).HasColumnType("int(11)");
  3463. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3464. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3465. entity.Property(e => e.UpdateMan)
  3466. .HasColumnType("varchar(50)")
  3467. .HasCharSet("utf8")
  3468. .HasCollation("utf8_general_ci");
  3469. entity.Property(e => e.Version).HasColumnType("int(11)");
  3470. });
  3471. modelBuilder.Entity<MsgPersonal>(entity =>
  3472. {
  3473. entity.Property(e => e.Id).HasColumnType("int(11)");
  3474. entity.Property(e => e.BgPic)
  3475. .HasColumnType("varchar(200)")
  3476. .HasCharSet("utf8")
  3477. .HasCollation("utf8_general_ci");
  3478. entity.Property(e => e.Content)
  3479. .HasColumnType("longtext")
  3480. .HasCharSet("utf8")
  3481. .HasCollation("utf8_general_ci");
  3482. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3483. entity.Property(e => e.CreateMan)
  3484. .HasColumnType("varchar(50)")
  3485. .HasCharSet("utf8")
  3486. .HasCollation("utf8_general_ci");
  3487. entity.Property(e => e.ExtendColumn)
  3488. .HasColumnType("mediumtext")
  3489. .HasCharSet("utf8")
  3490. .HasCollation("utf8_general_ci");
  3491. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3492. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3493. entity.Property(e => e.PushParam)
  3494. .HasColumnType("varchar(255)")
  3495. .HasCharSet("utf8")
  3496. .HasCollation("utf8_general_ci");
  3497. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3498. entity.Property(e => e.ReadFlag)
  3499. .HasColumnType("bit(1)")
  3500. .HasDefaultValueSql("b'0'");
  3501. entity.Property(e => e.Remark)
  3502. .HasColumnType("varchar(255)")
  3503. .HasCharSet("utf8")
  3504. .HasCollation("utf8_general_ci");
  3505. entity.Property(e => e.SeoDescription)
  3506. .HasColumnType("varchar(500)")
  3507. .HasCharSet("utf8")
  3508. .HasCollation("utf8_general_ci");
  3509. entity.Property(e => e.SeoKeyword)
  3510. .HasColumnType("varchar(200)")
  3511. .HasCharSet("utf8")
  3512. .HasCollation("utf8_general_ci");
  3513. entity.Property(e => e.SeoTitle)
  3514. .HasColumnType("varchar(100)")
  3515. .HasCharSet("utf8")
  3516. .HasCollation("utf8_general_ci");
  3517. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3518. entity.Property(e => e.Status).HasColumnType("int(11)");
  3519. entity.Property(e => e.Summary)
  3520. .HasColumnType("varchar(500)")
  3521. .HasCharSet("utf8")
  3522. .HasCollation("utf8_general_ci");
  3523. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3524. entity.Property(e => e.Title)
  3525. .HasColumnType("varchar(50)")
  3526. .HasCharSet("utf8")
  3527. .HasCollation("utf8_general_ci");
  3528. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3529. entity.Property(e => e.UpdateMan)
  3530. .HasColumnType("varchar(50)")
  3531. .HasCharSet("utf8")
  3532. .HasCollation("utf8_general_ci");
  3533. entity.Property(e => e.Url)
  3534. .HasColumnType("varchar(500)")
  3535. .HasCharSet("utf8")
  3536. .HasCollation("utf8_general_ci");
  3537. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3538. entity.Property(e => e.Version).HasColumnType("int(11)");
  3539. });
  3540. modelBuilder.Entity<MsgPlacard>(entity =>
  3541. {
  3542. entity.Property(e => e.Id).HasColumnType("int(11)");
  3543. entity.Property(e => e.BgPic)
  3544. .HasColumnType("varchar(200)")
  3545. .HasCharSet("utf8")
  3546. .HasCollation("utf8_general_ci");
  3547. entity.Property(e => e.Content)
  3548. .HasColumnType("longtext")
  3549. .HasCharSet("utf8")
  3550. .HasCollation("utf8_general_ci");
  3551. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3552. entity.Property(e => e.CreateMan)
  3553. .HasColumnType("varchar(50)")
  3554. .HasCharSet("utf8")
  3555. .HasCollation("utf8_general_ci");
  3556. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  3557. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  3558. entity.Property(e => e.ExtendColumn)
  3559. .HasColumnType("mediumtext")
  3560. .HasCharSet("utf8")
  3561. .HasCollation("utf8_general_ci");
  3562. entity.Property(e => e.IsTop)
  3563. .HasColumnType("bit(1)")
  3564. .HasDefaultValueSql("b'0'");
  3565. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3566. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3567. entity.Property(e => e.PushParam)
  3568. .HasColumnType("varchar(255)")
  3569. .HasCharSet("utf8")
  3570. .HasCollation("utf8_general_ci");
  3571. entity.Property(e => e.PushTime).HasColumnType("datetime");
  3572. entity.Property(e => e.PushType).HasColumnType("int(11)");
  3573. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3574. entity.Property(e => e.Remark)
  3575. .HasColumnType("varchar(255)")
  3576. .HasCharSet("utf8")
  3577. .HasCollation("utf8_general_ci");
  3578. entity.Property(e => e.SeoDescription)
  3579. .HasColumnType("varchar(500)")
  3580. .HasCharSet("utf8")
  3581. .HasCollation("utf8_general_ci");
  3582. entity.Property(e => e.SeoKeyword)
  3583. .HasColumnType("varchar(200)")
  3584. .HasCharSet("utf8")
  3585. .HasCollation("utf8_general_ci");
  3586. entity.Property(e => e.SeoTitle)
  3587. .HasColumnType("varchar(100)")
  3588. .HasCharSet("utf8")
  3589. .HasCollation("utf8_general_ci");
  3590. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  3591. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3592. entity.Property(e => e.Status).HasColumnType("int(11)");
  3593. entity.Property(e => e.Summary)
  3594. .HasColumnType("varchar(500)")
  3595. .HasCharSet("utf8")
  3596. .HasCollation("utf8_general_ci");
  3597. entity.Property(e => e.Title)
  3598. .HasColumnType("varchar(50)")
  3599. .HasCharSet("utf8")
  3600. .HasCollation("utf8_general_ci");
  3601. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3602. entity.Property(e => e.UpdateMan)
  3603. .HasColumnType("varchar(50)")
  3604. .HasCharSet("utf8")
  3605. .HasCollation("utf8_general_ci");
  3606. entity.Property(e => e.Url)
  3607. .HasColumnType("varchar(500)")
  3608. .HasCharSet("utf8")
  3609. .HasCollation("utf8_general_ci");
  3610. entity.Property(e => e.Version).HasColumnType("int(11)");
  3611. });
  3612. modelBuilder.Entity<MsgPlacardRead>(entity =>
  3613. {
  3614. entity.Property(e => e.Id).HasColumnType("int(11)");
  3615. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3616. entity.Property(e => e.CreateMan)
  3617. .HasColumnType("varchar(50)")
  3618. .HasCharSet("utf8")
  3619. .HasCollation("utf8_general_ci");
  3620. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  3621. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3622. entity.Property(e => e.ReadFlag)
  3623. .HasColumnType("bit(1)")
  3624. .HasDefaultValueSql("b'0'");
  3625. entity.Property(e => e.Remark)
  3626. .HasColumnType("varchar(255)")
  3627. .HasCharSet("utf8")
  3628. .HasCollation("utf8_general_ci");
  3629. entity.Property(e => e.SeoDescription)
  3630. .HasColumnType("varchar(500)")
  3631. .HasCharSet("utf8")
  3632. .HasCollation("utf8_general_ci");
  3633. entity.Property(e => e.SeoKeyword)
  3634. .HasColumnType("varchar(200)")
  3635. .HasCharSet("utf8")
  3636. .HasCollation("utf8_general_ci");
  3637. entity.Property(e => e.SeoTitle)
  3638. .HasColumnType("varchar(100)")
  3639. .HasCharSet("utf8")
  3640. .HasCollation("utf8_general_ci");
  3641. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3642. entity.Property(e => e.Status).HasColumnType("int(11)");
  3643. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3644. entity.Property(e => e.UpdateMan)
  3645. .HasColumnType("varchar(50)")
  3646. .HasCharSet("utf8")
  3647. .HasCollation("utf8_general_ci");
  3648. entity.Property(e => e.UserId)
  3649. .HasColumnType("varchar(64)")
  3650. .HasCharSet("utf8")
  3651. .HasCollation("utf8_general_ci");
  3652. entity.Property(e => e.Version).HasColumnType("int(11)");
  3653. });
  3654. modelBuilder.Entity<MsgPush>(entity =>
  3655. {
  3656. entity.Property(e => e.Id).HasColumnType("int(11)");
  3657. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  3658. entity.Property(e => e.ClientType)
  3659. .HasColumnType("varchar(20)")
  3660. .HasCharSet("utf8")
  3661. .HasCollation("utf8_general_ci");
  3662. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3663. entity.Property(e => e.CreateMan)
  3664. .HasColumnType("varchar(50)")
  3665. .HasCharSet("utf8")
  3666. .HasCollation("utf8_general_ci");
  3667. entity.Property(e => e.Details)
  3668. .HasColumnType("varchar(200)")
  3669. .HasCharSet("utf8")
  3670. .HasCollation("utf8_general_ci");
  3671. entity.Property(e => e.Devices)
  3672. .HasColumnType("mediumtext")
  3673. .HasCharSet("utf8")
  3674. .HasCollation("utf8_general_ci");
  3675. entity.Property(e => e.IsSilent)
  3676. .HasColumnType("bit(1)")
  3677. .HasDefaultValueSql("b'0'");
  3678. entity.Property(e => e.MessageId)
  3679. .HasColumnType("varchar(50)")
  3680. .HasCharSet("utf8")
  3681. .HasCollation("utf8_general_ci");
  3682. entity.Property(e => e.Mobiles)
  3683. .HasColumnType("mediumtext")
  3684. .HasCharSet("utf8")
  3685. .HasCollation("utf8_general_ci");
  3686. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3687. entity.Property(e => e.SeoDescription)
  3688. .HasColumnType("varchar(500)")
  3689. .HasCharSet("utf8")
  3690. .HasCollation("utf8_general_ci");
  3691. entity.Property(e => e.SeoKeyword)
  3692. .HasColumnType("varchar(200)")
  3693. .HasCharSet("utf8")
  3694. .HasCollation("utf8_general_ci");
  3695. entity.Property(e => e.SeoTitle)
  3696. .HasColumnType("varchar(100)")
  3697. .HasCharSet("utf8")
  3698. .HasCollation("utf8_general_ci");
  3699. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3700. entity.Property(e => e.Status).HasColumnType("int(11)");
  3701. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3702. entity.Property(e => e.Title)
  3703. .HasColumnType("varchar(50)")
  3704. .HasCharSet("utf8")
  3705. .HasCollation("utf8_general_ci");
  3706. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3707. entity.Property(e => e.UpdateMan)
  3708. .HasColumnType("varchar(50)")
  3709. .HasCharSet("utf8")
  3710. .HasCollation("utf8_general_ci");
  3711. entity.Property(e => e.Url)
  3712. .HasColumnType("varchar(500)")
  3713. .HasCharSet("utf8")
  3714. .HasCollation("utf8_general_ci");
  3715. entity.Property(e => e.Version).HasColumnType("int(11)");
  3716. });
  3717. modelBuilder.Entity<MsgSms>(entity =>
  3718. {
  3719. entity.Property(e => e.Id).HasColumnType("int(11)");
  3720. entity.Property(e => e.Code).HasColumnType("int(11)");
  3721. entity.Property(e => e.ColId)
  3722. .HasColumnType("varchar(30)")
  3723. .HasCharSet("utf8")
  3724. .HasCollation("utf8_general_ci");
  3725. entity.Property(e => e.Content)
  3726. .HasColumnType("varchar(200)")
  3727. .HasCharSet("utf8")
  3728. .HasCollation("utf8_general_ci");
  3729. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3730. entity.Property(e => e.CreateMan)
  3731. .HasColumnType("varchar(50)")
  3732. .HasCharSet("utf8")
  3733. .HasCollation("utf8_general_ci");
  3734. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  3735. entity.Property(e => e.Ip)
  3736. .HasColumnType("varchar(15)")
  3737. .HasCharSet("utf8")
  3738. .HasCollation("utf8_general_ci");
  3739. entity.Property(e => e.Kind)
  3740. .HasColumnType("varchar(64)")
  3741. .HasCharSet("utf8")
  3742. .HasCollation("utf8_general_ci");
  3743. entity.Property(e => e.Mobile)
  3744. .HasColumnType("varchar(11)")
  3745. .HasCharSet("utf8")
  3746. .HasCollation("utf8_general_ci");
  3747. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3748. entity.Property(e => e.RespCode)
  3749. .HasColumnType("varchar(16)")
  3750. .HasCharSet("utf8")
  3751. .HasCollation("utf8_general_ci");
  3752. entity.Property(e => e.RespContent)
  3753. .HasColumnType("varchar(500)")
  3754. .HasCharSet("utf8")
  3755. .HasCollation("utf8_general_ci");
  3756. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  3757. entity.Property(e => e.SendTime).HasColumnType("datetime");
  3758. entity.Property(e => e.SendType).HasColumnType("int(11)");
  3759. entity.Property(e => e.SeoDescription)
  3760. .HasColumnType("varchar(500)")
  3761. .HasCharSet("utf8")
  3762. .HasCollation("utf8_general_ci");
  3763. entity.Property(e => e.SeoKeyword)
  3764. .HasColumnType("varchar(200)")
  3765. .HasCharSet("utf8")
  3766. .HasCollation("utf8_general_ci");
  3767. entity.Property(e => e.SeoTitle)
  3768. .HasColumnType("varchar(100)")
  3769. .HasCharSet("utf8")
  3770. .HasCollation("utf8_general_ci");
  3771. entity.Property(e => e.SignName)
  3772. .HasColumnType("varchar(10)")
  3773. .HasCharSet("utf8")
  3774. .HasCollation("utf8_general_ci");
  3775. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3776. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3777. entity.Property(e => e.Status).HasColumnType("int(11)");
  3778. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3779. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3780. entity.Property(e => e.UpdateMan)
  3781. .HasColumnType("varchar(50)")
  3782. .HasCharSet("utf8")
  3783. .HasCollation("utf8_general_ci");
  3784. entity.Property(e => e.VerifyCode)
  3785. .HasColumnType("varchar(6)")
  3786. .HasCharSet("utf8")
  3787. .HasCollation("utf8_general_ci");
  3788. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  3789. entity.Property(e => e.Version).HasColumnType("int(11)");
  3790. });
  3791. modelBuilder.Entity<MsgSmsSet>(entity =>
  3792. {
  3793. entity.Property(e => e.Id).HasColumnType("int(11)");
  3794. entity.Property(e => e.AuthPwd)
  3795. .HasColumnType("varchar(50)")
  3796. .HasCharSet("utf8")
  3797. .HasCollation("utf8_general_ci");
  3798. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3799. entity.Property(e => e.CreateMan)
  3800. .HasColumnType("varchar(50)")
  3801. .HasCharSet("utf8")
  3802. .HasCollation("utf8_general_ci");
  3803. entity.Property(e => e.Name)
  3804. .HasColumnType("varchar(50)")
  3805. .HasCharSet("utf8")
  3806. .HasCollation("utf8_general_ci");
  3807. entity.Property(e => e.Params)
  3808. .HasColumnType("varchar(200)")
  3809. .HasCharSet("utf8")
  3810. .HasCollation("utf8_general_ci");
  3811. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3812. entity.Property(e => e.ReqUrl)
  3813. .HasColumnType("varchar(200)")
  3814. .HasCharSet("utf8")
  3815. .HasCollation("utf8_general_ci");
  3816. entity.Property(e => e.SeoDescription)
  3817. .HasColumnType("varchar(500)")
  3818. .HasCharSet("utf8")
  3819. .HasCollation("utf8_general_ci");
  3820. entity.Property(e => e.SeoKeyword)
  3821. .HasColumnType("varchar(200)")
  3822. .HasCharSet("utf8")
  3823. .HasCollation("utf8_general_ci");
  3824. entity.Property(e => e.SeoTitle)
  3825. .HasColumnType("varchar(100)")
  3826. .HasCharSet("utf8")
  3827. .HasCollation("utf8_general_ci");
  3828. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3829. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3830. entity.Property(e => e.Status).HasColumnType("int(11)");
  3831. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3832. entity.Property(e => e.UpdateMan)
  3833. .HasColumnType("varchar(50)")
  3834. .HasCharSet("utf8")
  3835. .HasCollation("utf8_general_ci");
  3836. entity.Property(e => e.UserName)
  3837. .HasColumnType("varchar(50)")
  3838. .HasCharSet("utf8")
  3839. .HasCollation("utf8_general_ci");
  3840. entity.Property(e => e.Version).HasColumnType("int(11)");
  3841. });
  3842. modelBuilder.Entity<MsgTemplate>(entity =>
  3843. {
  3844. entity.Property(e => e.Id).HasColumnType("int(11)");
  3845. entity.Property(e => e.ColId)
  3846. .HasColumnType("varchar(30)")
  3847. .HasCharSet("utf8")
  3848. .HasCollation("utf8_general_ci");
  3849. entity.Property(e => e.Content)
  3850. .HasColumnType("varchar(200)")
  3851. .HasCharSet("utf8")
  3852. .HasCollation("utf8_general_ci");
  3853. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3854. entity.Property(e => e.CreateMan)
  3855. .HasColumnType("varchar(50)")
  3856. .HasCharSet("utf8")
  3857. .HasCollation("utf8_general_ci");
  3858. entity.Property(e => e.Extend)
  3859. .HasColumnType("varchar(2000)")
  3860. .HasCharSet("utf8")
  3861. .HasCollation("utf8_general_ci");
  3862. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3863. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3864. entity.Property(e => e.Remark)
  3865. .HasColumnType("varchar(64)")
  3866. .HasCharSet("utf8")
  3867. .HasCollation("utf8_general_ci");
  3868. entity.Property(e => e.SeoDescription)
  3869. .HasColumnType("varchar(500)")
  3870. .HasCharSet("utf8")
  3871. .HasCollation("utf8_general_ci");
  3872. entity.Property(e => e.SeoKeyword)
  3873. .HasColumnType("varchar(200)")
  3874. .HasCharSet("utf8")
  3875. .HasCollation("utf8_general_ci");
  3876. entity.Property(e => e.SeoTitle)
  3877. .HasColumnType("varchar(100)")
  3878. .HasCharSet("utf8")
  3879. .HasCollation("utf8_general_ci");
  3880. entity.Property(e => e.SignName)
  3881. .HasColumnType("varchar(10)")
  3882. .HasCharSet("utf8")
  3883. .HasCollation("utf8_general_ci");
  3884. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3885. entity.Property(e => e.Status).HasColumnType("int(11)");
  3886. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  3887. entity.Property(e => e.Title)
  3888. .HasColumnType("varchar(50)")
  3889. .HasCharSet("utf8")
  3890. .HasCollation("utf8_general_ci");
  3891. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3892. entity.Property(e => e.UpdateMan)
  3893. .HasColumnType("varchar(50)")
  3894. .HasCharSet("utf8")
  3895. .HasCollation("utf8_general_ci");
  3896. entity.Property(e => e.Version).HasColumnType("int(11)");
  3897. });
  3898. modelBuilder.Entity<OpenBankCityTable>(entity =>
  3899. {
  3900. entity.HasKey(e => e.CityName)
  3901. .HasName("PRIMARY");
  3902. entity.Property(e => e.CityName)
  3903. .HasColumnType("varchar(100)")
  3904. .HasCharSet("utf8")
  3905. .HasCollation("utf8_general_ci");
  3906. entity.Property(e => e.Code)
  3907. .HasColumnType("varchar(20)")
  3908. .HasCharSet("utf8")
  3909. .HasCollation("utf8_general_ci");
  3910. });
  3911. modelBuilder.Entity<OpenBankTable>(entity =>
  3912. {
  3913. entity.HasKey(e => e.BankName)
  3914. .HasName("PRIMARY");
  3915. entity.Property(e => e.BankName)
  3916. .HasColumnType("varchar(200)")
  3917. .HasCharSet("utf8")
  3918. .HasCollation("utf8_general_ci");
  3919. entity.Property(e => e.BankCode)
  3920. .HasColumnType("varchar(50)")
  3921. .HasCharSet("utf8")
  3922. .HasCollation("utf8_general_ci");
  3923. });
  3924. modelBuilder.Entity<OpenReward>(entity =>
  3925. {
  3926. entity.Property(e => e.Id).HasColumnType("int(11)");
  3927. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3928. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3929. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3930. entity.Property(e => e.CreateMan)
  3931. .HasColumnType("varchar(50)")
  3932. .HasCharSet("utf8")
  3933. .HasCollation("utf8_general_ci");
  3934. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3935. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3936. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3937. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3938. entity.Property(e => e.OpenRewardNo)
  3939. .HasColumnType("varchar(32)")
  3940. .HasCharSet("utf8")
  3941. .HasCollation("utf8_general_ci");
  3942. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3943. entity.Property(e => e.Remark)
  3944. .HasColumnType("varchar(128)")
  3945. .HasCharSet("utf8")
  3946. .HasCollation("utf8_general_ci");
  3947. entity.Property(e => e.RewardDesc)
  3948. .HasColumnType("varchar(128)")
  3949. .HasCharSet("utf8")
  3950. .HasCollation("utf8_general_ci");
  3951. entity.Property(e => e.RewardMerCount).HasColumnType("int(11)");
  3952. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3953. entity.Property(e => e.SeoDescription)
  3954. .HasColumnType("varchar(500)")
  3955. .HasCharSet("utf8")
  3956. .HasCollation("utf8_general_ci");
  3957. entity.Property(e => e.SeoKeyword)
  3958. .HasColumnType("varchar(200)")
  3959. .HasCharSet("utf8")
  3960. .HasCollation("utf8_general_ci");
  3961. entity.Property(e => e.SeoTitle)
  3962. .HasColumnType("varchar(100)")
  3963. .HasCharSet("utf8")
  3964. .HasCollation("utf8_general_ci");
  3965. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3966. entity.Property(e => e.Status).HasColumnType("int(11)");
  3967. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3968. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3969. entity.Property(e => e.TradeMonth)
  3970. .HasColumnType("varchar(6)")
  3971. .HasCharSet("utf8")
  3972. .HasCollation("utf8_general_ci");
  3973. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3974. entity.Property(e => e.UpdateMan)
  3975. .HasColumnType("varchar(50)")
  3976. .HasCharSet("utf8")
  3977. .HasCollation("utf8_general_ci");
  3978. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3979. entity.Property(e => e.Version).HasColumnType("int(11)");
  3980. });
  3981. modelBuilder.Entity<OpenRewardDetail>(entity =>
  3982. {
  3983. entity.Property(e => e.Id).HasColumnType("int(11)");
  3984. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3985. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3986. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3987. entity.Property(e => e.CreateMan)
  3988. .HasColumnType("varchar(50)")
  3989. .HasCharSet("utf8")
  3990. .HasCollation("utf8_general_ci");
  3991. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3992. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3993. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3994. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3995. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3996. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  3997. entity.Property(e => e.MerNo)
  3998. .HasColumnType("varchar(32)")
  3999. .HasCharSet("utf8")
  4000. .HasCollation("utf8_general_ci");
  4001. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4002. entity.Property(e => e.OpenDetailRec)
  4003. .HasColumnType("varchar(32)")
  4004. .HasCharSet("utf8")
  4005. .HasCollation("utf8_general_ci");
  4006. entity.Property(e => e.OpenRewardNo)
  4007. .HasColumnType("varchar(32)")
  4008. .HasCharSet("utf8")
  4009. .HasCollation("utf8_general_ci");
  4010. entity.Property(e => e.ProductName)
  4011. .HasColumnType("varchar(32)")
  4012. .HasCharSet("utf8")
  4013. .HasCollation("utf8_general_ci");
  4014. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4015. entity.Property(e => e.Remark)
  4016. .HasColumnType("varchar(128)")
  4017. .HasCharSet("utf8")
  4018. .HasCollation("utf8_general_ci");
  4019. entity.Property(e => e.RewardDesc)
  4020. .HasColumnType("varchar(128)")
  4021. .HasCharSet("utf8")
  4022. .HasCollation("utf8_general_ci");
  4023. entity.Property(e => e.RewardTips)
  4024. .HasColumnType("varchar(16)")
  4025. .HasCharSet("utf8")
  4026. .HasCollation("utf8_general_ci");
  4027. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  4028. entity.Property(e => e.SeoDescription)
  4029. .HasColumnType("varchar(500)")
  4030. .HasCharSet("utf8")
  4031. .HasCollation("utf8_general_ci");
  4032. entity.Property(e => e.SeoKeyword)
  4033. .HasColumnType("varchar(200)")
  4034. .HasCharSet("utf8")
  4035. .HasCollation("utf8_general_ci");
  4036. entity.Property(e => e.SeoTitle)
  4037. .HasColumnType("varchar(100)")
  4038. .HasCharSet("utf8")
  4039. .HasCollation("utf8_general_ci");
  4040. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  4041. entity.Property(e => e.SnNo)
  4042. .HasColumnType("varchar(32)")
  4043. .HasCharSet("utf8")
  4044. .HasCollation("utf8_general_ci");
  4045. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  4046. entity.Property(e => e.SnType).HasColumnType("int(11)");
  4047. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4048. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  4049. entity.Property(e => e.Status).HasColumnType("int(11)");
  4050. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4051. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  4052. entity.Property(e => e.TradeMonth)
  4053. .HasColumnType("varchar(6)")
  4054. .HasCharSet("utf8")
  4055. .HasCollation("utf8_general_ci");
  4056. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4057. entity.Property(e => e.UpdateMan)
  4058. .HasColumnType("varchar(50)")
  4059. .HasCharSet("utf8")
  4060. .HasCollation("utf8_general_ci");
  4061. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4062. entity.Property(e => e.Version).HasColumnType("int(11)");
  4063. });
  4064. modelBuilder.Entity<OpenSnSnapshot>(entity =>
  4065. {
  4066. entity.Property(e => e.Id).HasColumnType("int(11)");
  4067. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4068. entity.Property(e => e.BuySnNum).HasColumnType("int(11)");
  4069. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4070. entity.Property(e => e.CreateMan)
  4071. .HasColumnType("varchar(50)")
  4072. .HasCharSet("utf8")
  4073. .HasCollation("utf8_general_ci");
  4074. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  4075. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  4076. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  4077. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  4078. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  4079. entity.Property(e => e.FailReason)
  4080. .HasColumnType("varchar(128)")
  4081. .HasCharSet("utf8")
  4082. .HasCollation("utf8_general_ci");
  4083. entity.Property(e => e.MerNo)
  4084. .HasColumnType("varchar(32)")
  4085. .HasCharSet("utf8")
  4086. .HasCollation("utf8_general_ci");
  4087. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  4088. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4089. entity.Property(e => e.OpenDetailRec)
  4090. .HasColumnType("varchar(32)")
  4091. .HasCharSet("utf8")
  4092. .HasCollation("utf8_general_ci");
  4093. entity.Property(e => e.OpenRewardNo)
  4094. .HasColumnType("varchar(32)")
  4095. .HasCharSet("utf8")
  4096. .HasCollation("utf8_general_ci");
  4097. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4098. entity.Property(e => e.Remark)
  4099. .HasColumnType("varchar(128)")
  4100. .HasCharSet("utf8")
  4101. .HasCollation("utf8_general_ci");
  4102. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  4103. entity.Property(e => e.RewardDesc)
  4104. .HasColumnType("varchar(128)")
  4105. .HasCharSet("utf8")
  4106. .HasCollation("utf8_general_ci");
  4107. entity.Property(e => e.RewardTips)
  4108. .HasColumnType("varchar(16)")
  4109. .HasCharSet("utf8")
  4110. .HasCollation("utf8_general_ci");
  4111. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  4112. entity.Property(e => e.SeoDescription)
  4113. .HasColumnType("varchar(500)")
  4114. .HasCharSet("utf8")
  4115. .HasCollation("utf8_general_ci");
  4116. entity.Property(e => e.SeoKeyword)
  4117. .HasColumnType("varchar(200)")
  4118. .HasCharSet("utf8")
  4119. .HasCollation("utf8_general_ci");
  4120. entity.Property(e => e.SeoTitle)
  4121. .HasColumnType("varchar(100)")
  4122. .HasCharSet("utf8")
  4123. .HasCollation("utf8_general_ci");
  4124. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  4125. entity.Property(e => e.SnNo)
  4126. .HasColumnType("varchar(32)")
  4127. .HasCharSet("utf8")
  4128. .HasCollation("utf8_general_ci");
  4129. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  4130. entity.Property(e => e.SnType).HasColumnType("int(11)");
  4131. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4132. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  4133. entity.Property(e => e.Status).HasColumnType("int(11)");
  4134. entity.Property(e => e.StdBuySnNum).HasColumnType("int(11)");
  4135. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4136. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  4137. entity.Property(e => e.TradeMonth)
  4138. .HasColumnType("varchar(6)")
  4139. .HasCharSet("utf8")
  4140. .HasCollation("utf8_general_ci");
  4141. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4142. entity.Property(e => e.UpdateMan)
  4143. .HasColumnType("varchar(50)")
  4144. .HasCharSet("utf8")
  4145. .HasCollation("utf8_general_ci");
  4146. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4147. entity.Property(e => e.UserNav)
  4148. .HasColumnType("varchar(300)")
  4149. .HasCharSet("utf8")
  4150. .HasCollation("utf8_general_ci");
  4151. entity.Property(e => e.Version).HasColumnType("int(11)");
  4152. });
  4153. modelBuilder.Entity<OperateLog>(entity =>
  4154. {
  4155. entity.Property(e => e.Id).HasColumnType("int(11)");
  4156. entity.Property(e => e.AfterOperate)
  4157. .HasColumnType("mediumtext")
  4158. .HasCharSet("utf8")
  4159. .HasCollation("utf8_general_ci");
  4160. entity.Property(e => e.BeforeOperate)
  4161. .HasColumnType("mediumtext")
  4162. .HasCharSet("utf8")
  4163. .HasCollation("utf8_general_ci");
  4164. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4165. entity.Property(e => e.CreateMan)
  4166. .HasColumnType("varchar(50)")
  4167. .HasCharSet("utf8")
  4168. .HasCollation("utf8_general_ci");
  4169. entity.Property(e => e.OpMode)
  4170. .HasColumnType("varchar(30)")
  4171. .HasCharSet("utf8")
  4172. .HasCollation("utf8_general_ci");
  4173. entity.Property(e => e.OperateMan)
  4174. .HasColumnType("varchar(50)")
  4175. .HasCharSet("utf8")
  4176. .HasCollation("utf8_general_ci");
  4177. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4178. entity.Property(e => e.SeoDescription)
  4179. .HasColumnType("varchar(500)")
  4180. .HasCharSet("utf8")
  4181. .HasCollation("utf8_general_ci");
  4182. entity.Property(e => e.SeoKeyword)
  4183. .HasColumnType("varchar(200)")
  4184. .HasCharSet("utf8")
  4185. .HasCollation("utf8_general_ci");
  4186. entity.Property(e => e.SeoTitle)
  4187. .HasColumnType("varchar(100)")
  4188. .HasCharSet("utf8")
  4189. .HasCollation("utf8_general_ci");
  4190. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4191. entity.Property(e => e.Status).HasColumnType("int(11)");
  4192. entity.Property(e => e.TableEnName)
  4193. .HasColumnType("varchar(50)")
  4194. .HasCharSet("utf8")
  4195. .HasCollation("utf8_general_ci");
  4196. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4197. entity.Property(e => e.UpdateMan)
  4198. .HasColumnType("varchar(50)")
  4199. .HasCharSet("utf8")
  4200. .HasCollation("utf8_general_ci");
  4201. entity.Property(e => e.Version).HasColumnType("int(11)");
  4202. });
  4203. modelBuilder.Entity<OperateRightList>(entity =>
  4204. {
  4205. entity.Property(e => e.Id).HasColumnType("int(11)");
  4206. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4207. entity.Property(e => e.CreateMan)
  4208. .HasColumnType("varchar(50)")
  4209. .HasCharSet("utf8")
  4210. .HasCollation("utf8_general_ci");
  4211. entity.Property(e => e.EnName)
  4212. .HasColumnType("varchar(50)")
  4213. .HasCharSet("utf8")
  4214. .HasCollation("utf8_general_ci");
  4215. entity.Property(e => e.Name)
  4216. .HasColumnType("varchar(50)")
  4217. .HasCharSet("utf8")
  4218. .HasCollation("utf8_general_ci");
  4219. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4220. entity.Property(e => e.SeoDescription)
  4221. .HasColumnType("varchar(500)")
  4222. .HasCharSet("utf8")
  4223. .HasCollation("utf8_general_ci");
  4224. entity.Property(e => e.SeoKeyword)
  4225. .HasColumnType("varchar(200)")
  4226. .HasCharSet("utf8")
  4227. .HasCollation("utf8_general_ci");
  4228. entity.Property(e => e.SeoTitle)
  4229. .HasColumnType("varchar(100)")
  4230. .HasCharSet("utf8")
  4231. .HasCollation("utf8_general_ci");
  4232. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4233. entity.Property(e => e.Status).HasColumnType("int(11)");
  4234. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4235. entity.Property(e => e.UpdateMan)
  4236. .HasColumnType("varchar(50)")
  4237. .HasCharSet("utf8")
  4238. .HasCollation("utf8_general_ci");
  4239. entity.Property(e => e.Version).HasColumnType("int(11)");
  4240. });
  4241. modelBuilder.Entity<OrderForNo>(entity =>
  4242. {
  4243. entity.HasKey(e => e.OrderNo)
  4244. .HasName("PRIMARY");
  4245. entity.Property(e => e.OrderNo)
  4246. .HasColumnType("varchar(50)")
  4247. .HasCharSet("utf8")
  4248. .HasCollation("utf8_general_ci");
  4249. entity.Property(e => e.OrderIds)
  4250. .HasColumnType("varchar(50)")
  4251. .HasCharSet("utf8")
  4252. .HasCollation("utf8_general_ci");
  4253. entity.Property(e => e.RspCode).HasColumnType("int(11)");
  4254. entity.Property(e => e.RspMsg)
  4255. .HasColumnType("varchar(500)")
  4256. .HasCharSet("utf8")
  4257. .HasCollation("utf8_general_ci");
  4258. });
  4259. modelBuilder.Entity<OrderProduct>(entity =>
  4260. {
  4261. entity.Property(e => e.Id).HasColumnType("int(11)");
  4262. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4263. entity.Property(e => e.CreateMan)
  4264. .HasColumnType("varchar(50)")
  4265. .HasCharSet("utf8")
  4266. .HasCollation("utf8_general_ci");
  4267. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4268. entity.Property(e => e.NormDetail)
  4269. .HasColumnType("varchar(200)")
  4270. .HasCharSet("utf8")
  4271. .HasCollation("utf8_general_ci");
  4272. entity.Property(e => e.NormId)
  4273. .HasColumnType("varchar(50)")
  4274. .HasCharSet("utf8")
  4275. .HasCollation("utf8_general_ci");
  4276. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4277. entity.Property(e => e.ProductCode)
  4278. .HasColumnType("varchar(30)")
  4279. .HasCharSet("utf8")
  4280. .HasCollation("utf8_general_ci");
  4281. entity.Property(e => e.ProductCount).HasColumnType("int(11)");
  4282. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4283. entity.Property(e => e.ProductIntegral).HasColumnType("decimal(18,2)");
  4284. entity.Property(e => e.ProductName)
  4285. .HasColumnType("varchar(100)")
  4286. .HasCharSet("utf8")
  4287. .HasCollation("utf8_general_ci");
  4288. entity.Property(e => e.ProductPhoto)
  4289. .HasColumnType("varchar(200)")
  4290. .HasCharSet("utf8")
  4291. .HasCollation("utf8_general_ci");
  4292. entity.Property(e => e.ProductPrice).HasColumnType("decimal(18,2)");
  4293. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4294. entity.Property(e => e.SeoDescription)
  4295. .HasColumnType("varchar(500)")
  4296. .HasCharSet("utf8")
  4297. .HasCollation("utf8_general_ci");
  4298. entity.Property(e => e.SeoKeyword)
  4299. .HasColumnType("varchar(200)")
  4300. .HasCharSet("utf8")
  4301. .HasCollation("utf8_general_ci");
  4302. entity.Property(e => e.SeoTitle)
  4303. .HasColumnType("varchar(100)")
  4304. .HasCharSet("utf8")
  4305. .HasCollation("utf8_general_ci");
  4306. entity.Property(e => e.SnNos)
  4307. .HasColumnType("mediumtext")
  4308. .HasCharSet("utf8")
  4309. .HasCollation("utf8_general_ci");
  4310. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4311. entity.Property(e => e.Status).HasColumnType("int(11)");
  4312. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4313. entity.Property(e => e.TotalIntegral).HasColumnType("decimal(18,2)");
  4314. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4315. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4316. entity.Property(e => e.UpdateMan)
  4317. .HasColumnType("varchar(50)")
  4318. .HasCharSet("utf8")
  4319. .HasCollation("utf8_general_ci");
  4320. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4321. entity.Property(e => e.Version).HasColumnType("int(11)");
  4322. });
  4323. modelBuilder.Entity<OrderRefund>(entity =>
  4324. {
  4325. entity.Property(e => e.Id).HasColumnType("int(11)");
  4326. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  4327. entity.Property(e => e.Contents)
  4328. .HasColumnType("longtext")
  4329. .HasCharSet("utf8")
  4330. .HasCollation("utf8_general_ci");
  4331. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4332. entity.Property(e => e.CreateMan)
  4333. .HasColumnType("varchar(50)")
  4334. .HasCharSet("utf8")
  4335. .HasCollation("utf8_general_ci");
  4336. entity.Property(e => e.ErpCode)
  4337. .HasColumnType("varchar(50)")
  4338. .HasCharSet("utf8")
  4339. .HasCollation("utf8_general_ci");
  4340. entity.Property(e => e.ErpCompany).HasColumnType("int(11)");
  4341. entity.Property(e => e.GoodStatus).HasColumnType("int(11)");
  4342. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4343. entity.Property(e => e.Mobile)
  4344. .HasColumnType("varchar(11)")
  4345. .HasCharSet("utf8")
  4346. .HasCollation("utf8_general_ci");
  4347. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4348. entity.Property(e => e.Photos)
  4349. .HasColumnType("varchar(500)")
  4350. .HasCharSet("utf8")
  4351. .HasCollation("utf8_general_ci");
  4352. entity.Property(e => e.ProductId)
  4353. .HasColumnType("varchar(50)")
  4354. .HasCharSet("utf8")
  4355. .HasCollation("utf8_general_ci");
  4356. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4357. entity.Property(e => e.Reason).HasColumnType("int(11)");
  4358. entity.Property(e => e.SeoDescription)
  4359. .HasColumnType("varchar(500)")
  4360. .HasCharSet("utf8")
  4361. .HasCollation("utf8_general_ci");
  4362. entity.Property(e => e.SeoKeyword)
  4363. .HasColumnType("varchar(200)")
  4364. .HasCharSet("utf8")
  4365. .HasCollation("utf8_general_ci");
  4366. entity.Property(e => e.SeoTitle)
  4367. .HasColumnType("varchar(100)")
  4368. .HasCharSet("utf8")
  4369. .HasCollation("utf8_general_ci");
  4370. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4371. entity.Property(e => e.Status).HasColumnType("int(11)");
  4372. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4373. entity.Property(e => e.UpdateMan)
  4374. .HasColumnType("varchar(50)")
  4375. .HasCharSet("utf8")
  4376. .HasCollation("utf8_general_ci");
  4377. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4378. entity.Property(e => e.Version).HasColumnType("int(11)");
  4379. });
  4380. modelBuilder.Entity<OrderRefundReason>(entity =>
  4381. {
  4382. entity.Property(e => e.Id).HasColumnType("int(11)");
  4383. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4384. entity.Property(e => e.CreateMan)
  4385. .HasColumnType("varchar(50)")
  4386. .HasCharSet("utf8")
  4387. .HasCollation("utf8_general_ci");
  4388. entity.Property(e => e.Name)
  4389. .HasColumnType("varchar(50)")
  4390. .HasCharSet("utf8")
  4391. .HasCollation("utf8_general_ci");
  4392. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4393. entity.Property(e => e.SeoDescription)
  4394. .HasColumnType("varchar(500)")
  4395. .HasCharSet("utf8")
  4396. .HasCollation("utf8_general_ci");
  4397. entity.Property(e => e.SeoKeyword)
  4398. .HasColumnType("varchar(200)")
  4399. .HasCharSet("utf8")
  4400. .HasCollation("utf8_general_ci");
  4401. entity.Property(e => e.SeoTitle)
  4402. .HasColumnType("varchar(100)")
  4403. .HasCharSet("utf8")
  4404. .HasCollation("utf8_general_ci");
  4405. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4406. entity.Property(e => e.Status).HasColumnType("int(11)");
  4407. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4408. entity.Property(e => e.UpdateMan)
  4409. .HasColumnType("varchar(50)")
  4410. .HasCharSet("utf8")
  4411. .HasCollation("utf8_general_ci");
  4412. entity.Property(e => e.Version).HasColumnType("int(11)");
  4413. });
  4414. modelBuilder.Entity<Orders>(entity =>
  4415. {
  4416. entity.Property(e => e.Id).HasColumnType("int(11)");
  4417. entity.Property(e => e.ActualPay).HasColumnType("decimal(18,2)");
  4418. entity.Property(e => e.Address)
  4419. .HasColumnType("varchar(50)")
  4420. .HasCharSet("utf8")
  4421. .HasCollation("utf8_general_ci");
  4422. entity.Property(e => e.Areas)
  4423. .HasColumnType("varchar(30)")
  4424. .HasCharSet("utf8")
  4425. .HasCollation("utf8_general_ci");
  4426. entity.Property(e => e.AutoConfirmDate).HasColumnType("datetime");
  4427. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4428. entity.Property(e => e.ChannelAmount).HasColumnType("decimal(18,2)");
  4429. entity.Property(e => e.ConfirmDate).HasColumnType("datetime");
  4430. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  4431. entity.Property(e => e.CouponMoney).HasColumnType("decimal(18,2)");
  4432. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4433. entity.Property(e => e.CreateMan)
  4434. .HasColumnType("varchar(50)")
  4435. .HasCharSet("utf8")
  4436. .HasCollation("utf8_general_ci");
  4437. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  4438. entity.Property(e => e.ErpCode)
  4439. .HasColumnType("varchar(50)")
  4440. .HasCharSet("utf8")
  4441. .HasCollation("utf8_general_ci");
  4442. entity.Property(e => e.ErpMode).HasColumnType("int(11)");
  4443. entity.Property(e => e.ErpName)
  4444. .HasColumnType("varchar(50)")
  4445. .HasCharSet("utf8")
  4446. .HasCollation("utf8_general_ci");
  4447. entity.Property(e => e.ErpPrice).HasColumnType("decimal(18,2)");
  4448. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4449. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4450. entity.Property(e => e.Mobile)
  4451. .HasColumnType("varchar(11)")
  4452. .HasCharSet("utf8")
  4453. .HasCollation("utf8_general_ci");
  4454. entity.Property(e => e.OrderNo)
  4455. .HasColumnType("varchar(30)")
  4456. .HasCharSet("utf8")
  4457. .HasCollation("utf8_general_ci");
  4458. entity.Property(e => e.PayDate).HasColumnType("datetime");
  4459. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  4460. entity.Property(e => e.PayStatus).HasColumnType("int(11)");
  4461. entity.Property(e => e.PostalCode)
  4462. .HasColumnType("varchar(6)")
  4463. .HasCharSet("utf8")
  4464. .HasCollation("utf8_general_ci");
  4465. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4466. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4467. entity.Property(e => e.RealName)
  4468. .HasColumnType("varchar(10)")
  4469. .HasCharSet("utf8")
  4470. .HasCollation("utf8_general_ci");
  4471. entity.Property(e => e.RefundActAmount).HasColumnType("decimal(18,2)");
  4472. entity.Property(e => e.RefundFeeAmount).HasColumnType("decimal(18,2)");
  4473. entity.Property(e => e.RefundReason)
  4474. .HasColumnType("varchar(64)")
  4475. .HasCharSet("utf8")
  4476. .HasCollation("utf8_general_ci");
  4477. entity.Property(e => e.RefundStatus).HasColumnType("int(11)");
  4478. entity.Property(e => e.Remark)
  4479. .HasColumnType("varchar(64)")
  4480. .HasCharSet("utf8")
  4481. .HasCollation("utf8_general_ci");
  4482. entity.Property(e => e.ReqData)
  4483. .HasColumnType("varchar(2048)")
  4484. .HasCharSet("utf8")
  4485. .HasCollation("utf8_general_ci");
  4486. entity.Property(e => e.ResData)
  4487. .HasColumnType("varchar(2048)")
  4488. .HasCharSet("utf8")
  4489. .HasCollation("utf8_general_ci");
  4490. entity.Property(e => e.ReturnCode)
  4491. .HasColumnType("varchar(32)")
  4492. .HasCharSet("utf8")
  4493. .HasCollation("utf8_general_ci");
  4494. entity.Property(e => e.ReturnMsg)
  4495. .HasColumnType("varchar(128)")
  4496. .HasCharSet("utf8")
  4497. .HasCollation("utf8_general_ci");
  4498. entity.Property(e => e.SendDate).HasColumnType("datetime");
  4499. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  4500. entity.Property(e => e.SeoDescription)
  4501. .HasColumnType("varchar(500)")
  4502. .HasCharSet("utf8")
  4503. .HasCollation("utf8_general_ci");
  4504. entity.Property(e => e.SeoKeyword)
  4505. .HasColumnType("varchar(200)")
  4506. .HasCharSet("utf8")
  4507. .HasCollation("utf8_general_ci");
  4508. entity.Property(e => e.SeoTitle)
  4509. .HasColumnType("varchar(100)")
  4510. .HasCharSet("utf8")
  4511. .HasCollation("utf8_general_ci");
  4512. entity.Property(e => e.SnNos)
  4513. .HasColumnType("mediumtext")
  4514. .HasCharSet("utf8")
  4515. .HasCollation("utf8_general_ci");
  4516. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4517. entity.Property(e => e.Status).HasColumnType("int(11)");
  4518. entity.Property(e => e.StoreContact)
  4519. .HasColumnType("varchar(30)")
  4520. .HasCharSet("utf8")
  4521. .HasCollation("utf8_general_ci");
  4522. entity.Property(e => e.StoreContactMobile)
  4523. .HasColumnType("varchar(11)")
  4524. .HasCharSet("utf8")
  4525. .HasCollation("utf8_general_ci");
  4526. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4527. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  4528. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  4529. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4530. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4531. entity.Property(e => e.TradeNo)
  4532. .HasColumnType("varchar(50)")
  4533. .HasCharSet("utf8")
  4534. .HasCollation("utf8_general_ci");
  4535. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4536. entity.Property(e => e.UpdateMan)
  4537. .HasColumnType("varchar(50)")
  4538. .HasCharSet("utf8")
  4539. .HasCollation("utf8_general_ci");
  4540. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4541. entity.Property(e => e.UserMessage)
  4542. .HasColumnType("varchar(50)")
  4543. .HasCharSet("utf8")
  4544. .HasCollation("utf8_general_ci");
  4545. entity.Property(e => e.Version).HasColumnType("int(11)");
  4546. });
  4547. modelBuilder.Entity<PageInfo>(entity =>
  4548. {
  4549. entity.Property(e => e.Id).HasColumnType("int(11)");
  4550. entity.Property(e => e.ColId)
  4551. .HasColumnType("varchar(30)")
  4552. .HasCharSet("utf8")
  4553. .HasCollation("utf8_general_ci");
  4554. entity.Property(e => e.Contents)
  4555. .HasColumnType("longtext")
  4556. .HasCharSet("utf8")
  4557. .HasCollation("utf8_general_ci");
  4558. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4559. entity.Property(e => e.CreateMan)
  4560. .HasColumnType("varchar(50)")
  4561. .HasCharSet("utf8")
  4562. .HasCollation("utf8_general_ci");
  4563. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4564. entity.Property(e => e.SeoDescription)
  4565. .HasColumnType("varchar(500)")
  4566. .HasCharSet("utf8")
  4567. .HasCollation("utf8_general_ci");
  4568. entity.Property(e => e.SeoKeyword)
  4569. .HasColumnType("varchar(200)")
  4570. .HasCharSet("utf8")
  4571. .HasCollation("utf8_general_ci");
  4572. entity.Property(e => e.SeoTitle)
  4573. .HasColumnType("varchar(100)")
  4574. .HasCharSet("utf8")
  4575. .HasCollation("utf8_general_ci");
  4576. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4577. entity.Property(e => e.Status).HasColumnType("int(11)");
  4578. entity.Property(e => e.Title)
  4579. .HasColumnType("varchar(200)")
  4580. .HasCharSet("utf8")
  4581. .HasCollation("utf8_general_ci");
  4582. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4583. entity.Property(e => e.UpdateMan)
  4584. .HasColumnType("varchar(50)")
  4585. .HasCharSet("utf8")
  4586. .HasCollation("utf8_general_ci");
  4587. entity.Property(e => e.Version).HasColumnType("int(11)");
  4588. });
  4589. modelBuilder.Entity<PageUpdateInfo>(entity =>
  4590. {
  4591. entity.Property(e => e.Id).HasColumnType("int(11)");
  4592. entity.Property(e => e.BgColor)
  4593. .HasColumnType("varchar(6)")
  4594. .HasCharSet("utf8")
  4595. .HasCollation("utf8_general_ci");
  4596. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4597. entity.Property(e => e.CreateMan)
  4598. .HasColumnType("varchar(50)")
  4599. .HasCharSet("utf8")
  4600. .HasCollation("utf8_general_ci");
  4601. entity.Property(e => e.GotoPages)
  4602. .HasColumnType("varchar(500)")
  4603. .HasCharSet("utf8")
  4604. .HasCollation("utf8_general_ci");
  4605. entity.Property(e => e.IsScrollBar)
  4606. .HasColumnType("bit(1)")
  4607. .HasDefaultValueSql("b'0'");
  4608. entity.Property(e => e.IsSkid)
  4609. .HasColumnType("bit(1)")
  4610. .HasDefaultValueSql("b'0'");
  4611. entity.Property(e => e.LeftAction1)
  4612. .HasColumnType("longtext")
  4613. .HasCharSet("utf8")
  4614. .HasCollation("utf8_general_ci");
  4615. entity.Property(e => e.LeftAction2)
  4616. .HasColumnType("longtext")
  4617. .HasCharSet("utf8")
  4618. .HasCollation("utf8_general_ci");
  4619. entity.Property(e => e.LeftBtn1)
  4620. .HasColumnType("varchar(100)")
  4621. .HasCharSet("utf8")
  4622. .HasCollation("utf8_general_ci");
  4623. entity.Property(e => e.LeftBtn2)
  4624. .HasColumnType("varchar(50)")
  4625. .HasCharSet("utf8")
  4626. .HasCollation("utf8_general_ci");
  4627. entity.Property(e => e.ModulePath)
  4628. .HasColumnType("varchar(200)")
  4629. .HasCharSet("utf8")
  4630. .HasCollation("utf8_general_ci");
  4631. entity.Property(e => e.ModuleVersion).HasColumnType("int(11)");
  4632. entity.Property(e => e.MustUpdate)
  4633. .HasColumnType("bit(1)")
  4634. .HasDefaultValueSql("b'0'");
  4635. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4636. entity.Property(e => e.RightAction1)
  4637. .HasColumnType("longtext")
  4638. .HasCharSet("utf8")
  4639. .HasCollation("utf8_general_ci");
  4640. entity.Property(e => e.RightAction2)
  4641. .HasColumnType("longtext")
  4642. .HasCharSet("utf8")
  4643. .HasCollation("utf8_general_ci");
  4644. entity.Property(e => e.RightBtn1)
  4645. .HasColumnType("varchar(50)")
  4646. .HasCharSet("utf8")
  4647. .HasCollation("utf8_general_ci");
  4648. entity.Property(e => e.RightBtn2)
  4649. .HasColumnType("varchar(50)")
  4650. .HasCharSet("utf8")
  4651. .HasCollation("utf8_general_ci");
  4652. entity.Property(e => e.SeoDescription)
  4653. .HasColumnType("varchar(500)")
  4654. .HasCharSet("utf8")
  4655. .HasCollation("utf8_general_ci");
  4656. entity.Property(e => e.SeoKeyword)
  4657. .HasColumnType("varchar(200)")
  4658. .HasCharSet("utf8")
  4659. .HasCollation("utf8_general_ci");
  4660. entity.Property(e => e.SeoTitle)
  4661. .HasColumnType("varchar(100)")
  4662. .HasCharSet("utf8")
  4663. .HasCollation("utf8_general_ci");
  4664. entity.Property(e => e.ShowTitle)
  4665. .HasColumnType("bit(1)")
  4666. .HasDefaultValueSql("b'0'");
  4667. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4668. entity.Property(e => e.Status).HasColumnType("int(11)");
  4669. entity.Property(e => e.StatusBarStyle)
  4670. .HasColumnType("varchar(10)")
  4671. .HasCharSet("utf8")
  4672. .HasCollation("utf8_general_ci");
  4673. entity.Property(e => e.TextColor)
  4674. .HasColumnType("varchar(6)")
  4675. .HasCharSet("utf8")
  4676. .HasCollation("utf8_general_ci");
  4677. entity.Property(e => e.Title)
  4678. .HasColumnType("varchar(50)")
  4679. .HasCharSet("utf8")
  4680. .HasCollation("utf8_general_ci");
  4681. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4682. entity.Property(e => e.UpdateMan)
  4683. .HasColumnType("varchar(50)")
  4684. .HasCharSet("utf8")
  4685. .HasCollation("utf8_general_ci");
  4686. entity.Property(e => e.Version).HasColumnType("int(11)");
  4687. });
  4688. modelBuilder.Entity<PosCouponForUser>(entity =>
  4689. {
  4690. entity.Property(e => e.Id).HasColumnType("int(11)");
  4691. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4692. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  4693. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4694. entity.Property(e => e.SeoDescription)
  4695. .HasColumnType("varchar(500)")
  4696. .HasCharSet("utf8")
  4697. .HasCollation("utf8_general_ci");
  4698. entity.Property(e => e.SeoKeyword)
  4699. .HasColumnType("varchar(200)")
  4700. .HasCharSet("utf8")
  4701. .HasCollation("utf8_general_ci");
  4702. entity.Property(e => e.SeoTitle)
  4703. .HasColumnType("varchar(100)")
  4704. .HasCharSet("utf8")
  4705. .HasCollation("utf8_general_ci");
  4706. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4707. entity.Property(e => e.Status).HasColumnType("int(11)");
  4708. entity.Property(e => e.StockNum).HasColumnType("int(11)");
  4709. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  4710. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4711. });
  4712. modelBuilder.Entity<PosCouponOrders>(entity =>
  4713. {
  4714. entity.Property(e => e.Id).HasColumnType("int(11)");
  4715. entity.Property(e => e.AfterOut).HasColumnType("int(11)");
  4716. entity.Property(e => e.AfterStock).HasColumnType("int(11)");
  4717. entity.Property(e => e.AfterTotal).HasColumnType("int(11)");
  4718. entity.Property(e => e.BeforeOut).HasColumnType("int(11)");
  4719. entity.Property(e => e.BeforeStock).HasColumnType("int(11)");
  4720. entity.Property(e => e.BeforeTotal).HasColumnType("int(11)");
  4721. entity.Property(e => e.ChangeCount).HasColumnType("int(11)");
  4722. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  4723. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4724. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  4725. entity.Property(e => e.OrderNo)
  4726. .HasColumnType("varchar(50)")
  4727. .HasCharSet("utf8")
  4728. .HasCollation("utf8_general_ci");
  4729. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4730. entity.Property(e => e.SeoDescription)
  4731. .HasColumnType("varchar(500)")
  4732. .HasCharSet("utf8")
  4733. .HasCollation("utf8_general_ci");
  4734. entity.Property(e => e.SeoKeyword)
  4735. .HasColumnType("varchar(200)")
  4736. .HasCharSet("utf8")
  4737. .HasCollation("utf8_general_ci");
  4738. entity.Property(e => e.SeoTitle)
  4739. .HasColumnType("varchar(100)")
  4740. .HasCharSet("utf8")
  4741. .HasCollation("utf8_general_ci");
  4742. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4743. entity.Property(e => e.Status).HasColumnType("int(11)");
  4744. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  4745. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4746. });
  4747. modelBuilder.Entity<PosCouponRecord>(entity =>
  4748. {
  4749. entity.Property(e => e.Id).HasColumnType("int(11)");
  4750. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  4751. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4752. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  4753. entity.Property(e => e.OrderNo)
  4754. .HasColumnType("varchar(50)")
  4755. .HasCharSet("utf8")
  4756. .HasCollation("utf8_general_ci");
  4757. entity.Property(e => e.PosCouponId).HasColumnType("int(11)");
  4758. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4759. entity.Property(e => e.SeoDescription)
  4760. .HasColumnType("varchar(500)")
  4761. .HasCharSet("utf8")
  4762. .HasCollation("utf8_general_ci");
  4763. entity.Property(e => e.SeoKeyword)
  4764. .HasColumnType("varchar(200)")
  4765. .HasCharSet("utf8")
  4766. .HasCollation("utf8_general_ci");
  4767. entity.Property(e => e.SeoTitle)
  4768. .HasColumnType("varchar(100)")
  4769. .HasCharSet("utf8")
  4770. .HasCollation("utf8_general_ci");
  4771. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4772. entity.Property(e => e.Status).HasColumnType("int(11)");
  4773. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  4774. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4775. });
  4776. modelBuilder.Entity<PosCoupons>(entity =>
  4777. {
  4778. entity.Property(e => e.Id).HasColumnType("int(11)");
  4779. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4780. entity.Property(e => e.ExchangeCode)
  4781. .HasColumnType("varchar(10)")
  4782. .HasCharSet("utf8")
  4783. .HasCollation("utf8_general_ci");
  4784. entity.Property(e => e.IsLock)
  4785. .HasColumnType("bit(1)")
  4786. .HasDefaultValueSql("b'0'");
  4787. entity.Property(e => e.IsUse)
  4788. .HasColumnType("bit(1)")
  4789. .HasDefaultValueSql("b'0'");
  4790. entity.Property(e => e.LeaderUserId).HasColumnType("int(11)");
  4791. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4792. entity.Property(e => e.SeoDescription)
  4793. .HasColumnType("varchar(500)")
  4794. .HasCharSet("utf8")
  4795. .HasCollation("utf8_general_ci");
  4796. entity.Property(e => e.SeoKeyword)
  4797. .HasColumnType("varchar(200)")
  4798. .HasCharSet("utf8")
  4799. .HasCollation("utf8_general_ci");
  4800. entity.Property(e => e.SeoTitle)
  4801. .HasColumnType("varchar(100)")
  4802. .HasCharSet("utf8")
  4803. .HasCollation("utf8_general_ci");
  4804. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4805. entity.Property(e => e.Status).HasColumnType("int(11)");
  4806. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4807. entity.Property(e => e.UseDate).HasColumnType("datetime");
  4808. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4809. });
  4810. modelBuilder.Entity<PosMachines>(entity =>
  4811. {
  4812. entity.Property(e => e.Id).HasColumnType("int(11)");
  4813. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4814. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4815. entity.Property(e => e.ActivityList)
  4816. .HasColumnType("varchar(200)")
  4817. .HasCharSet("utf8")
  4818. .HasCollation("utf8_general_ci");
  4819. entity.Property(e => e.BatchNo)
  4820. .HasColumnType("varchar(32)")
  4821. .HasCharSet("utf8")
  4822. .HasCollation("utf8_general_ci");
  4823. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4824. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4825. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4826. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4827. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4828. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4829. entity.Property(e => e.CreateMan)
  4830. .HasColumnType("varchar(50)")
  4831. .HasCharSet("utf8")
  4832. .HasCollation("utf8_general_ci");
  4833. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4834. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4835. entity.Property(e => e.Detail)
  4836. .HasColumnType("longtext")
  4837. .HasCharSet("utf8")
  4838. .HasCollation("utf8_general_ci");
  4839. entity.Property(e => e.DeviceKind)
  4840. .HasColumnType("varchar(32)")
  4841. .HasCharSet("utf8")
  4842. .HasCollation("utf8_general_ci");
  4843. entity.Property(e => e.DeviceName)
  4844. .HasColumnType("varchar(32)")
  4845. .HasCharSet("utf8")
  4846. .HasCollation("utf8_general_ci");
  4847. entity.Property(e => e.DeviceType)
  4848. .HasColumnType("varchar(20)")
  4849. .HasCharSet("utf8")
  4850. .HasCollation("utf8_general_ci");
  4851. entity.Property(e => e.IsPurchase)
  4852. .HasColumnType("bit(1)")
  4853. .HasDefaultValueSql("b'0'");
  4854. entity.Property(e => e.IsVip)
  4855. .HasColumnType("bit(1)")
  4856. .HasDefaultValueSql("b'0'");
  4857. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4858. entity.Property(e => e.PosSn)
  4859. .HasColumnType("varchar(50)")
  4860. .HasCharSet("utf8")
  4861. .HasCollation("utf8_general_ci");
  4862. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4863. entity.Property(e => e.PrizeParams)
  4864. .HasColumnType("varchar(200)")
  4865. .HasCharSet("utf8")
  4866. .HasCollation("utf8_general_ci");
  4867. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4868. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4869. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4870. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4871. entity.Property(e => e.SeoDescription)
  4872. .HasColumnType("varchar(500)")
  4873. .HasCharSet("utf8")
  4874. .HasCollation("utf8_general_ci");
  4875. entity.Property(e => e.SeoKeyword)
  4876. .HasColumnType("varchar(200)")
  4877. .HasCharSet("utf8")
  4878. .HasCollation("utf8_general_ci");
  4879. entity.Property(e => e.SeoTitle)
  4880. .HasColumnType("varchar(100)")
  4881. .HasCharSet("utf8")
  4882. .HasCollation("utf8_general_ci");
  4883. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4884. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4885. entity.Property(e => e.Status).HasColumnType("int(11)");
  4886. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4887. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4888. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4889. entity.Property(e => e.UpdateMan)
  4890. .HasColumnType("varchar(50)")
  4891. .HasCharSet("utf8")
  4892. .HasCollation("utf8_general_ci");
  4893. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4894. entity.Property(e => e.UserNav)
  4895. .HasColumnType("longtext")
  4896. .HasCharSet("utf8")
  4897. .HasCollation("utf8_general_ci");
  4898. entity.Property(e => e.Version).HasColumnType("int(11)");
  4899. });
  4900. modelBuilder.Entity<PosMachinesTwo>(entity =>
  4901. {
  4902. entity.Property(e => e.Id).HasColumnType("int(11)");
  4903. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4904. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4905. entity.Property(e => e.ActivityList)
  4906. .HasColumnType("varchar(200)")
  4907. .HasCharSet("utf8")
  4908. .HasCollation("utf8_general_ci");
  4909. entity.Property(e => e.BatchNo)
  4910. .HasColumnType("varchar(32)")
  4911. .HasCharSet("utf8")
  4912. .HasCollation("utf8_general_ci");
  4913. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4914. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4915. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4916. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4917. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4918. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4919. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4920. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4921. entity.Property(e => e.Detail)
  4922. .HasColumnType("longtext")
  4923. .HasCharSet("utf8")
  4924. .HasCollation("utf8_general_ci");
  4925. entity.Property(e => e.DeviceKind)
  4926. .HasColumnType("varchar(32)")
  4927. .HasCharSet("utf8")
  4928. .HasCollation("utf8_general_ci");
  4929. entity.Property(e => e.DeviceName)
  4930. .HasColumnType("varchar(32)")
  4931. .HasCharSet("utf8")
  4932. .HasCollation("utf8_general_ci");
  4933. entity.Property(e => e.DeviceType)
  4934. .HasColumnType("varchar(20)")
  4935. .HasCharSet("utf8")
  4936. .HasCollation("utf8_general_ci");
  4937. entity.Property(e => e.IsPurchase).HasColumnType("int(11)");
  4938. entity.Property(e => e.IsVip)
  4939. .HasColumnType("bit(1)")
  4940. .HasDefaultValueSql("b'0'");
  4941. entity.Property(e => e.LeaderUserId).HasColumnType("int(11)");
  4942. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4943. entity.Property(e => e.PosSn)
  4944. .HasColumnType("varchar(50)")
  4945. .HasCharSet("utf8")
  4946. .HasCollation("utf8_general_ci");
  4947. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4948. entity.Property(e => e.PreUserId).HasColumnType("int(11)");
  4949. entity.Property(e => e.PrizeParams)
  4950. .HasColumnType("varchar(200)")
  4951. .HasCharSet("utf8")
  4952. .HasCollation("utf8_general_ci");
  4953. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4954. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4955. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4956. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4957. entity.Property(e => e.SeoDescription)
  4958. .HasColumnType("varchar(500)")
  4959. .HasCharSet("utf8")
  4960. .HasCollation("utf8_general_ci");
  4961. entity.Property(e => e.SeoKeyword)
  4962. .HasColumnType("varchar(200)")
  4963. .HasCharSet("utf8")
  4964. .HasCollation("utf8_general_ci");
  4965. entity.Property(e => e.SeoTitle)
  4966. .HasColumnType("varchar(100)")
  4967. .HasCharSet("utf8")
  4968. .HasCollation("utf8_general_ci");
  4969. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4970. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4971. entity.Property(e => e.Status).HasColumnType("int(11)");
  4972. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4973. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4974. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4975. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4976. entity.Property(e => e.UserNav)
  4977. .HasColumnType("longtext")
  4978. .HasCharSet("utf8")
  4979. .HasCollation("utf8_general_ci");
  4980. });
  4981. modelBuilder.Entity<PosMerchantInfo>(entity =>
  4982. {
  4983. entity.Property(e => e.Id).HasColumnType("int(11)");
  4984. entity.Property(e => e.ActType).HasColumnType("int(11)");
  4985. entity.Property(e => e.ActTypeDesc)
  4986. .HasColumnType("varchar(64)")
  4987. .HasCharSet("utf8")
  4988. .HasCollation("utf8_general_ci");
  4989. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  4990. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4991. entity.Property(e => e.City)
  4992. .HasColumnType("varchar(32)")
  4993. .HasCharSet("utf8")
  4994. .HasCollation("utf8_general_ci");
  4995. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4996. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  4997. entity.Property(e => e.KqMerNo)
  4998. .HasColumnType("varchar(32)")
  4999. .HasCharSet("utf8")
  5000. .HasCollation("utf8_general_ci");
  5001. entity.Property(e => e.KqRegTime).HasColumnType("datetime");
  5002. entity.Property(e => e.KqSnNo)
  5003. .HasColumnType("varchar(32)")
  5004. .HasCharSet("utf8")
  5005. .HasCollation("utf8_general_ci");
  5006. entity.Property(e => e.MatchTime).HasColumnType("datetime");
  5007. entity.Property(e => e.MerIdcardNo)
  5008. .HasColumnType("varchar(18)")
  5009. .HasCharSet("utf8")
  5010. .HasCollation("utf8_general_ci");
  5011. entity.Property(e => e.MerRealName)
  5012. .HasColumnType("varchar(16)")
  5013. .HasCharSet("utf8")
  5014. .HasCollation("utf8_general_ci");
  5015. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  5016. entity.Property(e => e.MerStatus).HasColumnType("int(11)");
  5017. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  5018. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  5019. entity.Property(e => e.MerchantMobile)
  5020. .HasColumnType("varchar(11)")
  5021. .HasCharSet("utf8")
  5022. .HasCollation("utf8_general_ci");
  5023. entity.Property(e => e.MerchantName)
  5024. .HasColumnType("varchar(32)")
  5025. .HasCharSet("utf8")
  5026. .HasCollation("utf8_general_ci");
  5027. entity.Property(e => e.MerchantNo)
  5028. .HasColumnType("varchar(16)")
  5029. .HasCharSet("utf8")
  5030. .HasCollation("utf8_general_ci");
  5031. entity.Property(e => e.MgrName)
  5032. .HasColumnType("varchar(32)")
  5033. .HasCharSet("utf8")
  5034. .HasCollation("utf8_general_ci");
  5035. entity.Property(e => e.MgrNo)
  5036. .HasColumnType("varchar(16)")
  5037. .HasCharSet("utf8")
  5038. .HasCollation("utf8_general_ci");
  5039. entity.Property(e => e.Province)
  5040. .HasColumnType("varchar(32)")
  5041. .HasCharSet("utf8")
  5042. .HasCollation("utf8_general_ci");
  5043. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5044. entity.Property(e => e.RebateQual).HasColumnType("int(11)");
  5045. entity.Property(e => e.Remark)
  5046. .HasColumnType("varchar(64)")
  5047. .HasCharSet("utf8")
  5048. .HasCollation("utf8_general_ci");
  5049. entity.Property(e => e.SeoDescription)
  5050. .HasColumnType("varchar(500)")
  5051. .HasCharSet("utf8")
  5052. .HasCollation("utf8_general_ci");
  5053. entity.Property(e => e.SeoKeyword)
  5054. .HasColumnType("varchar(200)")
  5055. .HasCharSet("utf8")
  5056. .HasCollation("utf8_general_ci");
  5057. entity.Property(e => e.SeoTitle)
  5058. .HasColumnType("varchar(100)")
  5059. .HasCharSet("utf8")
  5060. .HasCollation("utf8_general_ci");
  5061. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  5062. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  5063. entity.Property(e => e.SnType).HasColumnType("int(11)");
  5064. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5065. entity.Property(e => e.Status).HasColumnType("int(11)");
  5066. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  5067. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5068. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5069. });
  5070. modelBuilder.Entity<PosMerchantOtherInfo>(entity =>
  5071. {
  5072. entity.HasKey(e => e.CertId)
  5073. .HasName("PRIMARY");
  5074. entity.Property(e => e.CertId)
  5075. .HasColumnType("varchar(18)")
  5076. .HasCharSet("utf8")
  5077. .HasCollation("utf8_general_ci");
  5078. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5079. entity.Property(e => e.MerNo)
  5080. .HasColumnType("varchar(50)")
  5081. .HasCharSet("utf8")
  5082. .HasCollation("utf8_general_ci");
  5083. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5084. entity.Property(e => e.PrizeFlag1).HasColumnType("int(11)");
  5085. entity.Property(e => e.PrizeFlag2).HasColumnType("int(11)");
  5086. entity.Property(e => e.PrizeFlag3).HasColumnType("int(11)");
  5087. entity.Property(e => e.PrizeFlag4).HasColumnType("int(11)");
  5088. entity.Property(e => e.RealName)
  5089. .HasColumnType("varchar(30)")
  5090. .HasCharSet("utf8")
  5091. .HasCollation("utf8_general_ci");
  5092. });
  5093. modelBuilder.Entity<PosMerchantTradeSummay>(entity =>
  5094. {
  5095. entity.Property(e => e.Id).HasColumnType("int(11)");
  5096. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5097. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5098. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5099. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5100. entity.Property(e => e.SeoDescription)
  5101. .HasColumnType("varchar(500)")
  5102. .HasCharSet("utf8")
  5103. .HasCollation("utf8_general_ci");
  5104. entity.Property(e => e.SeoKeyword)
  5105. .HasColumnType("varchar(200)")
  5106. .HasCharSet("utf8")
  5107. .HasCollation("utf8_general_ci");
  5108. entity.Property(e => e.SeoTitle)
  5109. .HasColumnType("varchar(100)")
  5110. .HasCharSet("utf8")
  5111. .HasCollation("utf8_general_ci");
  5112. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5113. entity.Property(e => e.Status).HasColumnType("int(11)");
  5114. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  5115. entity.Property(e => e.TradeDate)
  5116. .HasColumnType("varchar(8)")
  5117. .HasCharSet("utf8")
  5118. .HasCollation("utf8_general_ci");
  5119. entity.Property(e => e.TradeMonth)
  5120. .HasColumnType("varchar(6)")
  5121. .HasCharSet("utf8")
  5122. .HasCollation("utf8_general_ci");
  5123. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5124. });
  5125. modelBuilder.Entity<PreSendStockDetail>(entity =>
  5126. {
  5127. entity.Property(e => e.Id).HasColumnType("int(11)");
  5128. entity.Property(e => e.ApplyDate).HasColumnType("datetime");
  5129. entity.Property(e => e.ApplyFlag)
  5130. .HasColumnType("bit(1)")
  5131. .HasDefaultValueSql("b'0'");
  5132. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5133. entity.Property(e => e.CancelDate).HasColumnType("datetime");
  5134. entity.Property(e => e.CancelFlag)
  5135. .HasColumnType("bit(1)")
  5136. .HasDefaultValueSql("b'0'");
  5137. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5138. entity.Property(e => e.FromStoreId).HasColumnType("int(11)");
  5139. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  5140. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5141. entity.Property(e => e.SeoDescription)
  5142. .HasColumnType("varchar(500)")
  5143. .HasCharSet("utf8")
  5144. .HasCollation("utf8_general_ci");
  5145. entity.Property(e => e.SeoKeyword)
  5146. .HasColumnType("varchar(200)")
  5147. .HasCharSet("utf8")
  5148. .HasCollation("utf8_general_ci");
  5149. entity.Property(e => e.SeoTitle)
  5150. .HasColumnType("varchar(100)")
  5151. .HasCharSet("utf8")
  5152. .HasCollation("utf8_general_ci");
  5153. entity.Property(e => e.SnId).HasColumnType("int(11)");
  5154. entity.Property(e => e.SnNo)
  5155. .HasColumnType("varchar(32)")
  5156. .HasCharSet("utf8")
  5157. .HasCollation("utf8_general_ci");
  5158. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5159. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  5160. entity.Property(e => e.Status).HasColumnType("int(11)");
  5161. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  5162. entity.Property(e => e.ToRemark)
  5163. .HasColumnType("varchar(64)")
  5164. .HasCharSet("utf8")
  5165. .HasCollation("utf8_general_ci");
  5166. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  5167. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  5168. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5169. });
  5170. modelBuilder.Entity<ProductComment>(entity =>
  5171. {
  5172. entity.Property(e => e.Id).HasColumnType("int(11)");
  5173. entity.Property(e => e.AgreeCount).HasColumnType("int(11)");
  5174. entity.Property(e => e.BackCount).HasColumnType("int(11)");
  5175. entity.Property(e => e.Contents)
  5176. .HasColumnType("varchar(200)")
  5177. .HasCharSet("utf8")
  5178. .HasCollation("utf8_general_ci");
  5179. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5180. entity.Property(e => e.CreateMan)
  5181. .HasColumnType("varchar(50)")
  5182. .HasCharSet("utf8")
  5183. .HasCollation("utf8_general_ci");
  5184. entity.Property(e => e.HasPhoto)
  5185. .HasColumnType("bit(1)")
  5186. .HasDefaultValueSql("b'0'");
  5187. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5188. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  5189. entity.Property(e => e.PhotoList)
  5190. .HasColumnType("mediumtext")
  5191. .HasCharSet("utf8")
  5192. .HasCollation("utf8_general_ci");
  5193. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5194. entity.Property(e => e.ProductNormId).HasColumnType("int(11)");
  5195. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5196. entity.Property(e => e.SeoDescription)
  5197. .HasColumnType("varchar(500)")
  5198. .HasCharSet("utf8")
  5199. .HasCollation("utf8_general_ci");
  5200. entity.Property(e => e.SeoKeyword)
  5201. .HasColumnType("varchar(200)")
  5202. .HasCharSet("utf8")
  5203. .HasCollation("utf8_general_ci");
  5204. entity.Property(e => e.SeoTitle)
  5205. .HasColumnType("varchar(100)")
  5206. .HasCharSet("utf8")
  5207. .HasCollation("utf8_general_ci");
  5208. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5209. entity.Property(e => e.StarNum).HasColumnType("int(11)");
  5210. entity.Property(e => e.Status).HasColumnType("int(11)");
  5211. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5212. entity.Property(e => e.UpdateMan)
  5213. .HasColumnType("varchar(50)")
  5214. .HasCharSet("utf8")
  5215. .HasCollation("utf8_general_ci");
  5216. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5217. entity.Property(e => e.Version).HasColumnType("int(11)");
  5218. });
  5219. modelBuilder.Entity<ProductCommentAgree>(entity =>
  5220. {
  5221. entity.Property(e => e.Id).HasColumnType("int(11)");
  5222. entity.Property(e => e.ProductCommentId).HasColumnType("int(11)");
  5223. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5224. });
  5225. modelBuilder.Entity<ProductFareAreas>(entity =>
  5226. {
  5227. entity.Property(e => e.Id).HasColumnType("int(11)");
  5228. entity.Property(e => e.Areas)
  5229. .HasColumnType("longtext")
  5230. .HasCharSet("utf8")
  5231. .HasCollation("utf8_general_ci");
  5232. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5233. entity.Property(e => e.CreateMan)
  5234. .HasColumnType("varchar(50)")
  5235. .HasCharSet("utf8")
  5236. .HasCollation("utf8_general_ci");
  5237. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  5238. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  5239. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5240. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  5241. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  5242. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5243. entity.Property(e => e.SeoDescription)
  5244. .HasColumnType("varchar(500)")
  5245. .HasCharSet("utf8")
  5246. .HasCollation("utf8_general_ci");
  5247. entity.Property(e => e.SeoKeyword)
  5248. .HasColumnType("varchar(200)")
  5249. .HasCharSet("utf8")
  5250. .HasCollation("utf8_general_ci");
  5251. entity.Property(e => e.SeoTitle)
  5252. .HasColumnType("varchar(100)")
  5253. .HasCharSet("utf8")
  5254. .HasCollation("utf8_general_ci");
  5255. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5256. entity.Property(e => e.Status).HasColumnType("int(11)");
  5257. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  5258. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5259. entity.Property(e => e.UpdateMan)
  5260. .HasColumnType("varchar(50)")
  5261. .HasCharSet("utf8")
  5262. .HasCollation("utf8_general_ci");
  5263. entity.Property(e => e.Version).HasColumnType("int(11)");
  5264. });
  5265. modelBuilder.Entity<ProductFareTemp>(entity =>
  5266. {
  5267. entity.Property(e => e.Id).HasColumnType("int(11)");
  5268. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5269. entity.Property(e => e.CreateMan)
  5270. .HasColumnType("varchar(50)")
  5271. .HasCharSet("utf8")
  5272. .HasCollation("utf8_general_ci");
  5273. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  5274. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  5275. entity.Property(e => e.IsFree)
  5276. .HasColumnType("bit(1)")
  5277. .HasDefaultValueSql("b'0'");
  5278. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5279. entity.Property(e => e.MeterMode).HasColumnType("int(11)");
  5280. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  5281. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  5282. entity.Property(e => e.Name)
  5283. .HasColumnType("varchar(50)")
  5284. .HasCharSet("utf8")
  5285. .HasCollation("utf8_general_ci");
  5286. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5287. entity.Property(e => e.SendAddress)
  5288. .HasColumnType("varchar(50)")
  5289. .HasCharSet("utf8")
  5290. .HasCollation("utf8_general_ci");
  5291. entity.Property(e => e.SendAreas)
  5292. .HasColumnType("varchar(30)")
  5293. .HasCharSet("utf8")
  5294. .HasCollation("utf8_general_ci");
  5295. entity.Property(e => e.SendDate).HasColumnType("int(11)");
  5296. entity.Property(e => e.SeoDescription)
  5297. .HasColumnType("varchar(500)")
  5298. .HasCharSet("utf8")
  5299. .HasCollation("utf8_general_ci");
  5300. entity.Property(e => e.SeoKeyword)
  5301. .HasColumnType("varchar(200)")
  5302. .HasCharSet("utf8")
  5303. .HasCollation("utf8_general_ci");
  5304. entity.Property(e => e.SeoTitle)
  5305. .HasColumnType("varchar(100)")
  5306. .HasCharSet("utf8")
  5307. .HasCollation("utf8_general_ci");
  5308. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5309. entity.Property(e => e.Status).HasColumnType("int(11)");
  5310. entity.Property(e => e.TransportMode).HasColumnType("int(11)");
  5311. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5312. entity.Property(e => e.UpdateMan)
  5313. .HasColumnType("varchar(50)")
  5314. .HasCharSet("utf8")
  5315. .HasCollation("utf8_general_ci");
  5316. entity.Property(e => e.Version).HasColumnType("int(11)");
  5317. });
  5318. modelBuilder.Entity<ProductKeys>(entity =>
  5319. {
  5320. entity.HasKey(e => e.Name)
  5321. .HasName("PRIMARY");
  5322. entity.Property(e => e.Name)
  5323. .HasColumnType("varchar(10)")
  5324. .HasCharSet("utf8")
  5325. .HasCollation("utf8_general_ci");
  5326. entity.Property(e => e.ColIds)
  5327. .HasColumnType("longtext")
  5328. .HasCharSet("utf8")
  5329. .HasCollation("utf8_general_ci");
  5330. entity.Property(e => e.ProductIds)
  5331. .HasColumnType("longtext")
  5332. .HasCharSet("utf8")
  5333. .HasCollation("utf8_general_ci");
  5334. });
  5335. modelBuilder.Entity<ProductNorm>(entity =>
  5336. {
  5337. entity.Property(e => e.Id).HasColumnType("int(11)");
  5338. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5339. entity.Property(e => e.Code)
  5340. .HasColumnType("varchar(50)")
  5341. .HasCharSet("utf8")
  5342. .HasCollation("utf8_general_ci");
  5343. entity.Property(e => e.ColName)
  5344. .HasColumnType("varchar(50)")
  5345. .HasCharSet("utf8")
  5346. .HasCollation("utf8_general_ci");
  5347. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5348. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5349. entity.Property(e => e.CreateMan)
  5350. .HasColumnType("varchar(50)")
  5351. .HasCharSet("utf8")
  5352. .HasCollation("utf8_general_ci");
  5353. entity.Property(e => e.IdList)
  5354. .HasColumnType("varchar(50)")
  5355. .HasCharSet("utf8")
  5356. .HasCollation("utf8_general_ci");
  5357. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5358. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5359. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5360. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5361. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5362. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5363. entity.Property(e => e.SeoDescription)
  5364. .HasColumnType("varchar(500)")
  5365. .HasCharSet("utf8")
  5366. .HasCollation("utf8_general_ci");
  5367. entity.Property(e => e.SeoKeyword)
  5368. .HasColumnType("varchar(200)")
  5369. .HasCharSet("utf8")
  5370. .HasCollation("utf8_general_ci");
  5371. entity.Property(e => e.SeoTitle)
  5372. .HasColumnType("varchar(100)")
  5373. .HasCharSet("utf8")
  5374. .HasCollation("utf8_general_ci");
  5375. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5376. entity.Property(e => e.Status).HasColumnType("int(11)");
  5377. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5378. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5379. entity.Property(e => e.UpdateMan)
  5380. .HasColumnType("varchar(50)")
  5381. .HasCharSet("utf8")
  5382. .HasCollation("utf8_general_ci");
  5383. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5384. entity.Property(e => e.UserPrice).HasColumnType("decimal(18,2)");
  5385. entity.Property(e => e.Version).HasColumnType("int(11)");
  5386. });
  5387. modelBuilder.Entity<ProductNormItem>(entity =>
  5388. {
  5389. entity.Property(e => e.Id).HasColumnType("int(11)");
  5390. entity.Property(e => e.ColName)
  5391. .HasColumnType("varchar(50)")
  5392. .HasCharSet("utf8")
  5393. .HasCollation("utf8_general_ci");
  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.MerchantId).HasColumnType("int(11)");
  5400. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  5401. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5402. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5403. entity.Property(e => e.SeoDescription)
  5404. .HasColumnType("varchar(500)")
  5405. .HasCharSet("utf8")
  5406. .HasCollation("utf8_general_ci");
  5407. entity.Property(e => e.SeoKeyword)
  5408. .HasColumnType("varchar(200)")
  5409. .HasCharSet("utf8")
  5410. .HasCollation("utf8_general_ci");
  5411. entity.Property(e => e.SeoTitle)
  5412. .HasColumnType("varchar(100)")
  5413. .HasCharSet("utf8")
  5414. .HasCollation("utf8_general_ci");
  5415. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5416. entity.Property(e => e.Status).HasColumnType("int(11)");
  5417. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5418. entity.Property(e => e.UpdateMan)
  5419. .HasColumnType("varchar(50)")
  5420. .HasCharSet("utf8")
  5421. .HasCollation("utf8_general_ci");
  5422. entity.Property(e => e.Version).HasColumnType("int(11)");
  5423. });
  5424. modelBuilder.Entity<ProductNormTemp>(entity =>
  5425. {
  5426. entity.Property(e => e.Id).HasColumnType("int(11)");
  5427. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5428. entity.Property(e => e.CreateMan)
  5429. .HasColumnType("varchar(50)")
  5430. .HasCharSet("utf8")
  5431. .HasCollation("utf8_general_ci");
  5432. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5433. entity.Property(e => e.Name)
  5434. .HasColumnType("varchar(50)")
  5435. .HasCharSet("utf8")
  5436. .HasCollation("utf8_general_ci");
  5437. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5438. entity.Property(e => e.SeoDescription)
  5439. .HasColumnType("varchar(500)")
  5440. .HasCharSet("utf8")
  5441. .HasCollation("utf8_general_ci");
  5442. entity.Property(e => e.SeoKeyword)
  5443. .HasColumnType("varchar(200)")
  5444. .HasCharSet("utf8")
  5445. .HasCollation("utf8_general_ci");
  5446. entity.Property(e => e.SeoTitle)
  5447. .HasColumnType("varchar(100)")
  5448. .HasCharSet("utf8")
  5449. .HasCollation("utf8_general_ci");
  5450. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5451. entity.Property(e => e.Status).HasColumnType("int(11)");
  5452. entity.Property(e => e.TempJsonData)
  5453. .HasColumnType("longtext")
  5454. .HasCharSet("utf8")
  5455. .HasCollation("utf8_general_ci");
  5456. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5457. entity.Property(e => e.UpdateMan)
  5458. .HasColumnType("varchar(50)")
  5459. .HasCharSet("utf8")
  5460. .HasCollation("utf8_general_ci");
  5461. entity.Property(e => e.Version).HasColumnType("int(11)");
  5462. });
  5463. modelBuilder.Entity<Products>(entity =>
  5464. {
  5465. entity.Property(e => e.Id).HasColumnType("int(11)");
  5466. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5467. entity.Property(e => e.ColId)
  5468. .HasColumnType("varchar(30)")
  5469. .HasCharSet("utf8")
  5470. .HasCollation("utf8_general_ci");
  5471. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  5472. entity.Property(e => e.Contents)
  5473. .HasColumnType("longtext")
  5474. .HasCharSet("utf8")
  5475. .HasCollation("utf8_general_ci");
  5476. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5477. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5478. entity.Property(e => e.CreateMan)
  5479. .HasColumnType("varchar(50)")
  5480. .HasCharSet("utf8")
  5481. .HasCollation("utf8_general_ci");
  5482. entity.Property(e => e.DetailPicPath)
  5483. .HasColumnType("varchar(500)")
  5484. .HasCharSet("utf8")
  5485. .HasCollation("utf8_general_ci");
  5486. entity.Property(e => e.Details)
  5487. .HasColumnType("longtext")
  5488. .HasCharSet("utf8")
  5489. .HasCollation("utf8_general_ci");
  5490. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5491. entity.Property(e => e.FareTemplateId).HasColumnType("int(11)");
  5492. entity.Property(e => e.GoodPercent).HasColumnType("decimal(18,2)");
  5493. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5494. entity.Property(e => e.IsLimit)
  5495. .HasColumnType("bit(1)")
  5496. .HasDefaultValueSql("b'0'");
  5497. entity.Property(e => e.IsRecommend)
  5498. .HasColumnType("bit(1)")
  5499. .HasDefaultValueSql("b'0'");
  5500. entity.Property(e => e.IsRecommend2)
  5501. .HasColumnType("bit(1)")
  5502. .HasDefaultValueSql("b'0'");
  5503. entity.Property(e => e.IsRecommend3)
  5504. .HasColumnType("bit(1)")
  5505. .HasDefaultValueSql("b'0'");
  5506. entity.Property(e => e.KeyWord)
  5507. .HasColumnType("varchar(500)")
  5508. .HasCharSet("utf8")
  5509. .HasCollation("utf8_general_ci");
  5510. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5511. entity.Property(e => e.LinkUrl)
  5512. .HasColumnType("varchar(500)")
  5513. .HasCharSet("utf8")
  5514. .HasCollation("utf8_general_ci");
  5515. entity.Property(e => e.ListPicPath)
  5516. .HasColumnType("varchar(200)")
  5517. .HasCharSet("utf8")
  5518. .HasCollation("utf8_general_ci");
  5519. entity.Property(e => e.MemberPrice).HasColumnType("decimal(18,2)");
  5520. entity.Property(e => e.MerchantClassId).HasColumnType("int(11)");
  5521. entity.Property(e => e.MerchantColId)
  5522. .HasColumnType("varchar(30)")
  5523. .HasCharSet("utf8")
  5524. .HasCollation("utf8_general_ci");
  5525. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5526. entity.Property(e => e.MonthSale).HasColumnType("int(11)");
  5527. entity.Property(e => e.NormIds)
  5528. .HasColumnType("varchar(100)")
  5529. .HasCharSet("utf8")
  5530. .HasCollation("utf8_general_ci");
  5531. entity.Property(e => e.NormJson)
  5532. .HasColumnType("longtext")
  5533. .HasCharSet("utf8")
  5534. .HasCollation("utf8_general_ci");
  5535. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5536. entity.Property(e => e.ProductCode)
  5537. .HasColumnType("varchar(30)")
  5538. .HasCharSet("utf8")
  5539. .HasCollation("utf8_general_ci");
  5540. entity.Property(e => e.ProductName)
  5541. .HasColumnType("varchar(100)")
  5542. .HasCharSet("utf8")
  5543. .HasCollation("utf8_general_ci");
  5544. entity.Property(e => e.PublishDate).HasColumnType("datetime");
  5545. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5546. entity.Property(e => e.SeoDescription)
  5547. .HasColumnType("varchar(500)")
  5548. .HasCharSet("utf8")
  5549. .HasCollation("utf8_general_ci");
  5550. entity.Property(e => e.SeoKeyword)
  5551. .HasColumnType("varchar(200)")
  5552. .HasCharSet("utf8")
  5553. .HasCollation("utf8_general_ci");
  5554. entity.Property(e => e.SeoTitle)
  5555. .HasColumnType("varchar(100)")
  5556. .HasCharSet("utf8")
  5557. .HasCollation("utf8_general_ci");
  5558. entity.Property(e => e.ShareDetail)
  5559. .HasColumnType("varchar(200)")
  5560. .HasCharSet("utf8")
  5561. .HasCollation("utf8_general_ci");
  5562. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5563. entity.Property(e => e.SourcePrice).HasColumnType("decimal(18,2)");
  5564. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5565. entity.Property(e => e.Status).HasColumnType("int(11)");
  5566. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5567. entity.Property(e => e.Title)
  5568. .HasColumnType("varchar(50)")
  5569. .HasCharSet("utf8")
  5570. .HasCollation("utf8_general_ci");
  5571. entity.Property(e => e.Title2)
  5572. .HasColumnType("varchar(50)")
  5573. .HasCharSet("utf8")
  5574. .HasCollation("utf8_general_ci");
  5575. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5576. entity.Property(e => e.UpdateMan)
  5577. .HasColumnType("varchar(50)")
  5578. .HasCharSet("utf8")
  5579. .HasCollation("utf8_general_ci");
  5580. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5581. entity.Property(e => e.Version).HasColumnType("int(11)");
  5582. });
  5583. modelBuilder.Entity<ProfitObjectActivations>(entity =>
  5584. {
  5585. entity.Property(e => e.Id).HasColumnType("int(11)");
  5586. entity.Property(e => e.Code)
  5587. .HasColumnType("varchar(32)")
  5588. .HasCharSet("utf8")
  5589. .HasCollation("utf8_general_ci");
  5590. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5591. entity.Property(e => e.CreateMan)
  5592. .HasColumnType("varchar(50)")
  5593. .HasCharSet("utf8")
  5594. .HasCollation("utf8_general_ci");
  5595. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5596. entity.Property(e => e.ExpiredNumber).HasColumnType("decimal(18,6)");
  5597. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5598. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5599. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5600. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5601. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5602. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5603. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5604. entity.Property(e => e.SeoDescription)
  5605. .HasColumnType("varchar(500)")
  5606. .HasCharSet("utf8")
  5607. .HasCollation("utf8_general_ci");
  5608. entity.Property(e => e.SeoKeyword)
  5609. .HasColumnType("varchar(200)")
  5610. .HasCharSet("utf8")
  5611. .HasCollation("utf8_general_ci");
  5612. entity.Property(e => e.SeoTitle)
  5613. .HasColumnType("varchar(100)")
  5614. .HasCharSet("utf8")
  5615. .HasCollation("utf8_general_ci");
  5616. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5617. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5618. entity.Property(e => e.Status).HasColumnType("int(11)");
  5619. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5620. entity.Property(e => e.UpdateMan)
  5621. .HasColumnType("varchar(50)")
  5622. .HasCharSet("utf8")
  5623. .HasCollation("utf8_general_ci");
  5624. entity.Property(e => e.Version).HasColumnType("int(11)");
  5625. });
  5626. modelBuilder.Entity<ProfitObjectContinueFloors>(entity =>
  5627. {
  5628. entity.Property(e => e.Id).HasColumnType("int(11)");
  5629. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5630. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5631. entity.Property(e => e.CreateMan)
  5632. .HasColumnType("varchar(50)")
  5633. .HasCharSet("utf8")
  5634. .HasCollation("utf8_general_ci");
  5635. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5636. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5637. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5638. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5639. entity.Property(e => e.SeoDescription)
  5640. .HasColumnType("varchar(500)")
  5641. .HasCharSet("utf8")
  5642. .HasCollation("utf8_general_ci");
  5643. entity.Property(e => e.SeoKeyword)
  5644. .HasColumnType("varchar(200)")
  5645. .HasCharSet("utf8")
  5646. .HasCollation("utf8_general_ci");
  5647. entity.Property(e => e.SeoTitle)
  5648. .HasColumnType("varchar(100)")
  5649. .HasCharSet("utf8")
  5650. .HasCollation("utf8_general_ci");
  5651. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5652. entity.Property(e => e.Status).HasColumnType("int(11)");
  5653. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5654. entity.Property(e => e.UpdateMan)
  5655. .HasColumnType("varchar(50)")
  5656. .HasCharSet("utf8")
  5657. .HasCollation("utf8_general_ci");
  5658. entity.Property(e => e.Version).HasColumnType("int(11)");
  5659. });
  5660. modelBuilder.Entity<ProfitObjectFloors>(entity =>
  5661. {
  5662. entity.Property(e => e.Id).HasColumnType("int(11)");
  5663. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5664. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5665. entity.Property(e => e.CreateMan)
  5666. .HasColumnType("varchar(50)")
  5667. .HasCharSet("utf8")
  5668. .HasCollation("utf8_general_ci");
  5669. entity.Property(e => e.FloorDiff)
  5670. .HasColumnType("bit(1)")
  5671. .HasDefaultValueSql("b'0'");
  5672. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5673. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5674. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5675. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5676. entity.Property(e => e.SeoDescription)
  5677. .HasColumnType("varchar(500)")
  5678. .HasCharSet("utf8")
  5679. .HasCollation("utf8_general_ci");
  5680. entity.Property(e => e.SeoKeyword)
  5681. .HasColumnType("varchar(200)")
  5682. .HasCharSet("utf8")
  5683. .HasCollation("utf8_general_ci");
  5684. entity.Property(e => e.SeoTitle)
  5685. .HasColumnType("varchar(100)")
  5686. .HasCharSet("utf8")
  5687. .HasCollation("utf8_general_ci");
  5688. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5689. entity.Property(e => e.Status).HasColumnType("int(11)");
  5690. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5691. entity.Property(e => e.UpdateMan)
  5692. .HasColumnType("varchar(50)")
  5693. .HasCharSet("utf8")
  5694. .HasCollation("utf8_general_ci");
  5695. entity.Property(e => e.Version).HasColumnType("int(11)");
  5696. });
  5697. modelBuilder.Entity<ProfitObjectLevelKinds>(entity =>
  5698. {
  5699. entity.Property(e => e.Id).HasColumnType("int(11)");
  5700. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  5701. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5702. entity.Property(e => e.CreateMan)
  5703. .HasColumnType("varchar(50)")
  5704. .HasCharSet("utf8")
  5705. .HasCollation("utf8_general_ci");
  5706. entity.Property(e => e.IsHelp)
  5707. .HasColumnType("bit(1)")
  5708. .HasDefaultValueSql("b'0'");
  5709. entity.Property(e => e.Name)
  5710. .HasColumnType("varchar(50)")
  5711. .HasCharSet("utf8")
  5712. .HasCollation("utf8_general_ci");
  5713. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5714. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5715. entity.Property(e => e.SeoDescription)
  5716. .HasColumnType("varchar(500)")
  5717. .HasCharSet("utf8")
  5718. .HasCollation("utf8_general_ci");
  5719. entity.Property(e => e.SeoKeyword)
  5720. .HasColumnType("varchar(200)")
  5721. .HasCharSet("utf8")
  5722. .HasCollation("utf8_general_ci");
  5723. entity.Property(e => e.SeoTitle)
  5724. .HasColumnType("varchar(100)")
  5725. .HasCharSet("utf8")
  5726. .HasCollation("utf8_general_ci");
  5727. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5728. entity.Property(e => e.Status).HasColumnType("int(11)");
  5729. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5730. entity.Property(e => e.UpdateMan)
  5731. .HasColumnType("varchar(50)")
  5732. .HasCharSet("utf8")
  5733. .HasCollation("utf8_general_ci");
  5734. entity.Property(e => e.Version).HasColumnType("int(11)");
  5735. });
  5736. modelBuilder.Entity<ProfitObjectLevels>(entity =>
  5737. {
  5738. entity.Property(e => e.Id).HasColumnType("int(11)");
  5739. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5740. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5741. entity.Property(e => e.CreateMan)
  5742. .HasColumnType("varchar(50)")
  5743. .HasCharSet("utf8")
  5744. .HasCollation("utf8_general_ci");
  5745. entity.Property(e => e.DebitAddProfitVal).HasColumnType("decimal(18,2)");
  5746. entity.Property(e => e.DebitPercents).HasColumnType("decimal(18,2)");
  5747. entity.Property(e => e.KindId).HasColumnType("int(11)");
  5748. entity.Property(e => e.LevelDiff)
  5749. .HasColumnType("bit(1)")
  5750. .HasDefaultValueSql("b'0'");
  5751. entity.Property(e => e.LevelNumber).HasColumnType("int(11)");
  5752. entity.Property(e => e.Name)
  5753. .HasColumnType("varchar(50)")
  5754. .HasCharSet("utf8")
  5755. .HasCollation("utf8_general_ci");
  5756. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5757. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5758. entity.Property(e => e.SeoDescription)
  5759. .HasColumnType("varchar(500)")
  5760. .HasCharSet("utf8")
  5761. .HasCollation("utf8_general_ci");
  5762. entity.Property(e => e.SeoKeyword)
  5763. .HasColumnType("varchar(200)")
  5764. .HasCharSet("utf8")
  5765. .HasCollation("utf8_general_ci");
  5766. entity.Property(e => e.SeoTitle)
  5767. .HasColumnType("varchar(100)")
  5768. .HasCharSet("utf8")
  5769. .HasCollation("utf8_general_ci");
  5770. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5771. entity.Property(e => e.Status).HasColumnType("int(11)");
  5772. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5773. entity.Property(e => e.UpdateMan)
  5774. .HasColumnType("varchar(50)")
  5775. .HasCharSet("utf8")
  5776. .HasCollation("utf8_general_ci");
  5777. entity.Property(e => e.Version).HasColumnType("int(11)");
  5778. });
  5779. modelBuilder.Entity<ProfitObjects>(entity =>
  5780. {
  5781. entity.Property(e => e.Id).HasColumnType("int(11)");
  5782. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5783. entity.Property(e => e.CreateMan)
  5784. .HasColumnType("varchar(50)")
  5785. .HasCharSet("utf8")
  5786. .HasCollation("utf8_general_ci");
  5787. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5788. entity.Property(e => e.MaxFloor).HasColumnType("int(11)");
  5789. entity.Property(e => e.MaxLevel).HasColumnType("int(11)");
  5790. entity.Property(e => e.MaxLevelContinue)
  5791. .HasColumnType("bit(1)")
  5792. .HasDefaultValueSql("b'0'");
  5793. entity.Property(e => e.MinProfitVal).HasColumnType("decimal(18,5)");
  5794. entity.Property(e => e.Name)
  5795. .HasColumnType("varchar(50)")
  5796. .HasCharSet("utf8")
  5797. .HasCollation("utf8_general_ci");
  5798. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5799. entity.Property(e => e.SeoDescription)
  5800. .HasColumnType("varchar(500)")
  5801. .HasCharSet("utf8")
  5802. .HasCollation("utf8_general_ci");
  5803. entity.Property(e => e.SeoKeyword)
  5804. .HasColumnType("varchar(200)")
  5805. .HasCharSet("utf8")
  5806. .HasCollation("utf8_general_ci");
  5807. entity.Property(e => e.SeoTitle)
  5808. .HasColumnType("varchar(100)")
  5809. .HasCharSet("utf8")
  5810. .HasCollation("utf8_general_ci");
  5811. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5812. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5813. entity.Property(e => e.Status).HasColumnType("int(11)");
  5814. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5815. entity.Property(e => e.UpdateMan)
  5816. .HasColumnType("varchar(50)")
  5817. .HasCharSet("utf8")
  5818. .HasCollation("utf8_general_ci");
  5819. entity.Property(e => e.Version).HasColumnType("int(11)");
  5820. });
  5821. modelBuilder.Entity<ProfitObjectsActiveCheck>(entity =>
  5822. {
  5823. entity.HasKey(e => e.CheckData)
  5824. .HasName("PRIMARY");
  5825. entity.Property(e => e.CheckData)
  5826. .HasColumnType("varchar(100)")
  5827. .HasCharSet("utf8")
  5828. .HasCollation("utf8_general_ci");
  5829. });
  5830. modelBuilder.Entity<ProfitObjectsActiveParams>(entity =>
  5831. {
  5832. entity.Property(e => e.Id).HasColumnType("int(11)");
  5833. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5834. entity.Property(e => e.CreateMan)
  5835. .HasColumnType("varchar(50)")
  5836. .HasCharSet("utf8")
  5837. .HasCollation("utf8_general_ci");
  5838. entity.Property(e => e.Name)
  5839. .HasColumnType("varchar(50)")
  5840. .HasCharSet("utf8")
  5841. .HasCollation("utf8_general_ci");
  5842. entity.Property(e => e.ProfitObjectsActiveId).HasColumnType("int(11)");
  5843. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5844. entity.Property(e => e.Remark)
  5845. .HasColumnType("varchar(200)")
  5846. .HasCharSet("utf8")
  5847. .HasCollation("utf8_general_ci");
  5848. entity.Property(e => e.SeoDescription)
  5849. .HasColumnType("varchar(500)")
  5850. .HasCharSet("utf8")
  5851. .HasCollation("utf8_general_ci");
  5852. entity.Property(e => e.SeoKeyword)
  5853. .HasColumnType("varchar(200)")
  5854. .HasCharSet("utf8")
  5855. .HasCollation("utf8_general_ci");
  5856. entity.Property(e => e.SeoTitle)
  5857. .HasColumnType("varchar(100)")
  5858. .HasCharSet("utf8")
  5859. .HasCollation("utf8_general_ci");
  5860. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5861. entity.Property(e => e.Status).HasColumnType("int(11)");
  5862. entity.Property(e => e.TextValue)
  5863. .HasColumnType("varchar(20)")
  5864. .HasCharSet("utf8")
  5865. .HasCollation("utf8_general_ci");
  5866. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5867. entity.Property(e => e.UpdateMan)
  5868. .HasColumnType("varchar(50)")
  5869. .HasCharSet("utf8")
  5870. .HasCollation("utf8_general_ci");
  5871. entity.Property(e => e.Version).HasColumnType("int(11)");
  5872. });
  5873. modelBuilder.Entity<ProfitObjectsActives>(entity =>
  5874. {
  5875. entity.Property(e => e.Id).HasColumnType("int(11)");
  5876. entity.Property(e => e.CardType).HasColumnType("int(11)");
  5877. entity.Property(e => e.Code)
  5878. .HasColumnType("varchar(50)")
  5879. .HasCharSet("utf8")
  5880. .HasCollation("utf8_general_ci");
  5881. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5882. entity.Property(e => e.CreateMan)
  5883. .HasColumnType("varchar(50)")
  5884. .HasCharSet("utf8")
  5885. .HasCollation("utf8_general_ci");
  5886. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5887. entity.Property(e => e.FinishNumber).HasColumnType("decimal(18,6)");
  5888. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5889. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5890. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5891. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5892. entity.Property(e => e.Name)
  5893. .HasColumnType("varchar(50)")
  5894. .HasCharSet("utf8")
  5895. .HasCollation("utf8_general_ci");
  5896. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5897. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5898. entity.Property(e => e.ProfitNumber2).HasColumnType("decimal(18,2)");
  5899. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5900. entity.Property(e => e.SeoDescription)
  5901. .HasColumnType("varchar(500)")
  5902. .HasCharSet("utf8")
  5903. .HasCollation("utf8_general_ci");
  5904. entity.Property(e => e.SeoKeyword)
  5905. .HasColumnType("varchar(200)")
  5906. .HasCharSet("utf8")
  5907. .HasCollation("utf8_general_ci");
  5908. entity.Property(e => e.SeoTitle)
  5909. .HasColumnType("varchar(100)")
  5910. .HasCharSet("utf8")
  5911. .HasCollation("utf8_general_ci");
  5912. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5913. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5914. entity.Property(e => e.Status).HasColumnType("int(11)");
  5915. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5916. entity.Property(e => e.UpdateMan)
  5917. .HasColumnType("varchar(50)")
  5918. .HasCharSet("utf8")
  5919. .HasCollation("utf8_general_ci");
  5920. entity.Property(e => e.Version).HasColumnType("int(11)");
  5921. });
  5922. modelBuilder.Entity<ProfitObjectsActivesForId>(entity =>
  5923. {
  5924. entity.HasKey(e => e.Name)
  5925. .HasName("PRIMARY");
  5926. entity.Property(e => e.Name)
  5927. .HasColumnType("varchar(50)")
  5928. .HasCharSet("utf8")
  5929. .HasCollation("utf8_general_ci");
  5930. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  5931. });
  5932. modelBuilder.Entity<ProfitObjectsRule>(entity =>
  5933. {
  5934. entity.Property(e => e.Id).HasColumnType("int(11)");
  5935. entity.Property(e => e.Code)
  5936. .HasColumnType("varchar(50)")
  5937. .HasCharSet("utf8")
  5938. .HasCollation("utf8_general_ci");
  5939. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5940. entity.Property(e => e.CreateMan)
  5941. .HasColumnType("varchar(50)")
  5942. .HasCharSet("utf8")
  5943. .HasCollation("utf8_general_ci");
  5944. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5945. entity.Property(e => e.Name)
  5946. .HasColumnType("varchar(50)")
  5947. .HasCharSet("utf8")
  5948. .HasCollation("utf8_general_ci");
  5949. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5950. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5951. entity.Property(e => e.SeoDescription)
  5952. .HasColumnType("varchar(500)")
  5953. .HasCharSet("utf8")
  5954. .HasCollation("utf8_general_ci");
  5955. entity.Property(e => e.SeoKeyword)
  5956. .HasColumnType("varchar(200)")
  5957. .HasCharSet("utf8")
  5958. .HasCollation("utf8_general_ci");
  5959. entity.Property(e => e.SeoTitle)
  5960. .HasColumnType("varchar(100)")
  5961. .HasCharSet("utf8")
  5962. .HasCollation("utf8_general_ci");
  5963. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5964. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5965. entity.Property(e => e.Status).HasColumnType("int(11)");
  5966. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5967. entity.Property(e => e.UpdateMan)
  5968. .HasColumnType("varchar(50)")
  5969. .HasCharSet("utf8")
  5970. .HasCollation("utf8_general_ci");
  5971. entity.Property(e => e.Version).HasColumnType("int(11)");
  5972. });
  5973. modelBuilder.Entity<ProfitObjectsRuleDetails>(entity =>
  5974. {
  5975. entity.Property(e => e.Id).HasColumnType("int(11)");
  5976. entity.Property(e => e.Code)
  5977. .HasColumnType("varchar(50)")
  5978. .HasCharSet("utf8")
  5979. .HasCollation("utf8_general_ci");
  5980. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5981. entity.Property(e => e.CreateMan)
  5982. .HasColumnType("varchar(50)")
  5983. .HasCharSet("utf8")
  5984. .HasCollation("utf8_general_ci");
  5985. entity.Property(e => e.DataValue)
  5986. .HasColumnType("varchar(50)")
  5987. .HasCharSet("utf8")
  5988. .HasCollation("utf8_general_ci");
  5989. entity.Property(e => e.Name)
  5990. .HasColumnType("varchar(50)")
  5991. .HasCharSet("utf8")
  5992. .HasCollation("utf8_general_ci");
  5993. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5994. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  5995. entity.Property(e => e.SeoDescription)
  5996. .HasColumnType("varchar(500)")
  5997. .HasCharSet("utf8")
  5998. .HasCollation("utf8_general_ci");
  5999. entity.Property(e => e.SeoKeyword)
  6000. .HasColumnType("varchar(200)")
  6001. .HasCharSet("utf8")
  6002. .HasCollation("utf8_general_ci");
  6003. entity.Property(e => e.SeoTitle)
  6004. .HasColumnType("varchar(100)")
  6005. .HasCharSet("utf8")
  6006. .HasCollation("utf8_general_ci");
  6007. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6008. entity.Property(e => e.Status).HasColumnType("int(11)");
  6009. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6010. entity.Property(e => e.UpdateMan)
  6011. .HasColumnType("varchar(50)")
  6012. .HasCharSet("utf8")
  6013. .HasCollation("utf8_general_ci");
  6014. entity.Property(e => e.Version).HasColumnType("int(11)");
  6015. });
  6016. modelBuilder.Entity<ProfitReceiveRecord>(entity =>
  6017. {
  6018. entity.Property(e => e.Id).HasColumnType("int(11)");
  6019. entity.Property(e => e.Account)
  6020. .HasColumnType("varchar(32)")
  6021. .HasCharSet("utf8")
  6022. .HasCollation("utf8_general_ci");
  6023. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  6024. entity.Property(e => e.AppId)
  6025. .HasColumnType("varchar(32)")
  6026. .HasCharSet("utf8")
  6027. .HasCollation("utf8_general_ci");
  6028. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6029. entity.Property(e => e.CreateMan)
  6030. .HasColumnType("varchar(50)")
  6031. .HasCharSet("utf8")
  6032. .HasCollation("utf8_general_ci");
  6033. entity.Property(e => e.CustomRelation)
  6034. .HasColumnType("varchar(10)")
  6035. .HasCharSet("utf8")
  6036. .HasCollation("utf8_general_ci");
  6037. entity.Property(e => e.Description)
  6038. .HasColumnType("varchar(50)")
  6039. .HasCharSet("utf8")
  6040. .HasCollation("utf8_general_ci");
  6041. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6042. entity.Property(e => e.Name)
  6043. .HasColumnType("varchar(32)")
  6044. .HasCharSet("utf8")
  6045. .HasCollation("utf8_general_ci");
  6046. entity.Property(e => e.OrderId)
  6047. .HasColumnType("varchar(32)")
  6048. .HasCharSet("utf8")
  6049. .HasCollation("utf8_general_ci");
  6050. entity.Property(e => e.OutOrderNo)
  6051. .HasColumnType("varchar(32)")
  6052. .HasCharSet("utf8")
  6053. .HasCollation("utf8_general_ci");
  6054. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6055. entity.Property(e => e.RelationType)
  6056. .HasColumnType("varchar(30)")
  6057. .HasCharSet("utf8")
  6058. .HasCollation("utf8_general_ci");
  6059. entity.Property(e => e.SeoDescription)
  6060. .HasColumnType("varchar(500)")
  6061. .HasCharSet("utf8")
  6062. .HasCollation("utf8_general_ci");
  6063. entity.Property(e => e.SeoKeyword)
  6064. .HasColumnType("varchar(200)")
  6065. .HasCharSet("utf8")
  6066. .HasCollation("utf8_general_ci");
  6067. entity.Property(e => e.SeoTitle)
  6068. .HasColumnType("varchar(100)")
  6069. .HasCharSet("utf8")
  6070. .HasCollation("utf8_general_ci");
  6071. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6072. entity.Property(e => e.State)
  6073. .HasColumnType("varchar(20)")
  6074. .HasCharSet("utf8")
  6075. .HasCollation("utf8_general_ci");
  6076. entity.Property(e => e.Status).HasColumnType("int(11)");
  6077. entity.Property(e => e.SubAppId)
  6078. .HasColumnType("varchar(32)")
  6079. .HasCharSet("utf8")
  6080. .HasCollation("utf8_general_ci");
  6081. entity.Property(e => e.SubMchid)
  6082. .HasColumnType("varchar(32)")
  6083. .HasCharSet("utf8")
  6084. .HasCollation("utf8_general_ci");
  6085. entity.Property(e => e.TransactionId)
  6086. .HasColumnType("varchar(32)")
  6087. .HasCharSet("utf8")
  6088. .HasCollation("utf8_general_ci");
  6089. entity.Property(e => e.Type)
  6090. .HasColumnType("varchar(30)")
  6091. .HasCharSet("utf8")
  6092. .HasCollation("utf8_general_ci");
  6093. entity.Property(e => e.UnfreezeUnsplit)
  6094. .HasColumnType("bit(1)")
  6095. .HasDefaultValueSql("b'0'");
  6096. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6097. entity.Property(e => e.UpdateMan)
  6098. .HasColumnType("varchar(50)")
  6099. .HasCharSet("utf8")
  6100. .HasCollation("utf8_general_ci");
  6101. entity.Property(e => e.Version).HasColumnType("int(11)");
  6102. });
  6103. modelBuilder.Entity<ProfitReceives>(entity =>
  6104. {
  6105. entity.Property(e => e.Id).HasColumnType("int(11)");
  6106. entity.Property(e => e.Account)
  6107. .HasColumnType("varchar(32)")
  6108. .HasCharSet("utf8")
  6109. .HasCollation("utf8_general_ci");
  6110. entity.Property(e => e.AppId)
  6111. .HasColumnType("varchar(32)")
  6112. .HasCharSet("utf8")
  6113. .HasCollation("utf8_general_ci");
  6114. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6115. entity.Property(e => e.CreateMan)
  6116. .HasColumnType("varchar(50)")
  6117. .HasCharSet("utf8")
  6118. .HasCollation("utf8_general_ci");
  6119. entity.Property(e => e.CustomRelation)
  6120. .HasColumnType("varchar(10)")
  6121. .HasCharSet("utf8")
  6122. .HasCollation("utf8_general_ci");
  6123. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6124. entity.Property(e => e.Name)
  6125. .HasColumnType("varchar(32)")
  6126. .HasCharSet("utf8")
  6127. .HasCollation("utf8_general_ci");
  6128. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6129. entity.Property(e => e.RelationType)
  6130. .HasColumnType("varchar(30)")
  6131. .HasCharSet("utf8")
  6132. .HasCollation("utf8_general_ci");
  6133. entity.Property(e => e.SeoDescription)
  6134. .HasColumnType("varchar(500)")
  6135. .HasCharSet("utf8")
  6136. .HasCollation("utf8_general_ci");
  6137. entity.Property(e => e.SeoKeyword)
  6138. .HasColumnType("varchar(200)")
  6139. .HasCharSet("utf8")
  6140. .HasCollation("utf8_general_ci");
  6141. entity.Property(e => e.SeoTitle)
  6142. .HasColumnType("varchar(100)")
  6143. .HasCharSet("utf8")
  6144. .HasCollation("utf8_general_ci");
  6145. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6146. entity.Property(e => e.Status).HasColumnType("int(11)");
  6147. entity.Property(e => e.SubAppId)
  6148. .HasColumnType("varchar(32)")
  6149. .HasCharSet("utf8")
  6150. .HasCollation("utf8_general_ci");
  6151. entity.Property(e => e.SubMchid)
  6152. .HasColumnType("varchar(32)")
  6153. .HasCharSet("utf8")
  6154. .HasCollation("utf8_general_ci");
  6155. entity.Property(e => e.Type)
  6156. .HasColumnType("varchar(30)")
  6157. .HasCharSet("utf8")
  6158. .HasCollation("utf8_general_ci");
  6159. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6160. entity.Property(e => e.UpdateMan)
  6161. .HasColumnType("varchar(50)")
  6162. .HasCharSet("utf8")
  6163. .HasCollation("utf8_general_ci");
  6164. entity.Property(e => e.Version).HasColumnType("int(11)");
  6165. });
  6166. modelBuilder.Entity<ProfitRecord>(entity =>
  6167. {
  6168. entity.Property(e => e.Id).HasColumnType("int(11)");
  6169. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6170. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  6171. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  6172. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6173. entity.Property(e => e.CreateMan)
  6174. .HasColumnType("varchar(50)")
  6175. .HasCharSet("utf8")
  6176. .HasCollation("utf8_general_ci");
  6177. entity.Property(e => e.DirectFlag)
  6178. .HasColumnType("bit(1)")
  6179. .HasDefaultValueSql("b'0'");
  6180. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  6181. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  6182. entity.Property(e => e.MerHelpFlag)
  6183. .HasColumnType("bit(1)")
  6184. .HasDefaultValueSql("b'0'");
  6185. entity.Property(e => e.MerNo)
  6186. .HasColumnType("varchar(32)")
  6187. .HasCharSet("utf8")
  6188. .HasCollation("utf8_general_ci");
  6189. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6190. entity.Property(e => e.ParentNav)
  6191. .HasColumnType("varchar(1000)")
  6192. .HasCharSet("utf8")
  6193. .HasCollation("utf8_general_ci");
  6194. entity.Property(e => e.ProfitAmount).HasColumnType("decimal(18,2)");
  6195. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  6196. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6197. entity.Property(e => e.Remark)
  6198. .HasColumnType("varchar(64)")
  6199. .HasCharSet("utf8")
  6200. .HasCollation("utf8_general_ci");
  6201. entity.Property(e => e.SeoDescription)
  6202. .HasColumnType("varchar(500)")
  6203. .HasCharSet("utf8")
  6204. .HasCollation("utf8_general_ci");
  6205. entity.Property(e => e.SeoKeyword)
  6206. .HasColumnType("varchar(200)")
  6207. .HasCharSet("utf8")
  6208. .HasCollation("utf8_general_ci");
  6209. entity.Property(e => e.SeoTitle)
  6210. .HasColumnType("varchar(100)")
  6211. .HasCharSet("utf8")
  6212. .HasCollation("utf8_general_ci");
  6213. entity.Property(e => e.SnNo)
  6214. .HasColumnType("varchar(32)")
  6215. .HasCharSet("utf8")
  6216. .HasCollation("utf8_general_ci");
  6217. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6218. entity.Property(e => e.Status).HasColumnType("int(11)");
  6219. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  6220. entity.Property(e => e.TradeId).HasColumnType("int(11)");
  6221. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6222. entity.Property(e => e.UpdateMan)
  6223. .HasColumnType("varchar(50)")
  6224. .HasCharSet("utf8")
  6225. .HasCollation("utf8_general_ci");
  6226. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6227. entity.Property(e => e.Version).HasColumnType("int(11)");
  6228. });
  6229. modelBuilder.Entity<ProfitRewardRecord>(entity =>
  6230. {
  6231. entity.Property(e => e.Id).HasColumnType("int(11)");
  6232. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6233. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  6234. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6235. entity.Property(e => e.CreateMan)
  6236. .HasColumnType("varchar(50)")
  6237. .HasCharSet("utf8")
  6238. .HasCollation("utf8_general_ci");
  6239. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6240. entity.Property(e => e.CreditTradeProfit).HasColumnType("decimal(18,2)");
  6241. entity.Property(e => e.DebitCapSingleReward).HasColumnType("decimal(18,2)");
  6242. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  6243. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  6244. entity.Property(e => e.DebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  6245. entity.Property(e => e.DebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6246. entity.Property(e => e.DebitTradeCapProfit).HasColumnType("decimal(18,2)");
  6247. entity.Property(e => e.HelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  6248. entity.Property(e => e.HelpCreditProfitRate).HasColumnType("decimal(18,2)");
  6249. entity.Property(e => e.HelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  6250. entity.Property(e => e.HelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  6251. entity.Property(e => e.HelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  6252. entity.Property(e => e.HelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  6253. entity.Property(e => e.HelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  6254. entity.Property(e => e.HelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6255. entity.Property(e => e.HelpDebitProfitRate).HasColumnType("decimal(18,2)");
  6256. entity.Property(e => e.HelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6257. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6258. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6259. entity.Property(e => e.NonQrCreditTradeProfit).HasColumnType("decimal(18,2)");
  6260. entity.Property(e => e.NonQrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6261. entity.Property(e => e.NonQrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6262. entity.Property(e => e.NotHelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  6263. entity.Property(e => e.NotHelpCreditProfitRate).HasColumnType("decimal(18,2)");
  6264. entity.Property(e => e.NotHelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  6265. entity.Property(e => e.NotHelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  6266. entity.Property(e => e.NotHelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  6267. entity.Property(e => e.NotHelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  6268. entity.Property(e => e.NotHelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  6269. entity.Property(e => e.NotHelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6270. entity.Property(e => e.NotHelpDebitProfitRate).HasColumnType("decimal(18,2)");
  6271. entity.Property(e => e.NotHelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6272. entity.Property(e => e.OtherCreditTradeAmt).HasColumnType("decimal(18,2)");
  6273. entity.Property(e => e.OtherDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6274. entity.Property(e => e.OtherTradeAmt).HasColumnType("decimal(18,2)");
  6275. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  6276. entity.Property(e => e.QrCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  6277. entity.Property(e => e.QrCreditProfitRate).HasColumnType("decimal(18,2)");
  6278. entity.Property(e => e.QrCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  6279. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6280. entity.Property(e => e.QrCreditTradeProfit).HasColumnType("decimal(18,2)");
  6281. entity.Property(e => e.QrDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  6282. entity.Property(e => e.QrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6283. entity.Property(e => e.QrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6284. entity.Property(e => e.QrDebitProfitRate).HasColumnType("decimal(18,2)");
  6285. entity.Property(e => e.QrDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6286. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6287. entity.Property(e => e.RecordNo)
  6288. .HasColumnType("varchar(32)")
  6289. .HasCharSet("utf8")
  6290. .HasCollation("utf8_general_ci");
  6291. entity.Property(e => e.Remark)
  6292. .HasColumnType("varchar(64)")
  6293. .HasCharSet("utf8")
  6294. .HasCollation("utf8_general_ci");
  6295. entity.Property(e => e.SeoDescription)
  6296. .HasColumnType("varchar(500)")
  6297. .HasCharSet("utf8")
  6298. .HasCollation("utf8_general_ci");
  6299. entity.Property(e => e.SeoKeyword)
  6300. .HasColumnType("varchar(200)")
  6301. .HasCharSet("utf8")
  6302. .HasCollation("utf8_general_ci");
  6303. entity.Property(e => e.SeoTitle)
  6304. .HasColumnType("varchar(100)")
  6305. .HasCharSet("utf8")
  6306. .HasCollation("utf8_general_ci");
  6307. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6308. entity.Property(e => e.Status).HasColumnType("int(11)");
  6309. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  6310. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  6311. entity.Property(e => e.TradeMonth)
  6312. .HasColumnType("varchar(6)")
  6313. .HasCharSet("utf8")
  6314. .HasCollation("utf8_general_ci");
  6315. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  6316. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6317. entity.Property(e => e.UpdateMan)
  6318. .HasColumnType("varchar(50)")
  6319. .HasCharSet("utf8")
  6320. .HasCollation("utf8_general_ci");
  6321. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6322. entity.Property(e => e.Version).HasColumnType("int(11)");
  6323. });
  6324. modelBuilder.Entity<ProfitSubsidyDetail>(entity =>
  6325. {
  6326. entity.Property(e => e.Id).HasColumnType("int(11)");
  6327. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  6328. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6329. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6330. entity.Property(e => e.CreateMan)
  6331. .HasColumnType("varchar(50)")
  6332. .HasCharSet("utf8")
  6333. .HasCollation("utf8_general_ci");
  6334. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  6335. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6336. entity.Property(e => e.MerHelpFlag)
  6337. .HasColumnType("bit(1)")
  6338. .HasDefaultValueSql("b'0'");
  6339. entity.Property(e => e.MerNo)
  6340. .HasColumnType("varchar(32)")
  6341. .HasCharSet("utf8")
  6342. .HasCollation("utf8_general_ci");
  6343. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  6344. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  6345. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6346. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6347. entity.Property(e => e.ProductName)
  6348. .HasColumnType("varchar(16)")
  6349. .HasCharSet("utf8")
  6350. .HasCollation("utf8_general_ci");
  6351. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6352. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6353. entity.Property(e => e.RecordNo)
  6354. .HasColumnType("varchar(32)")
  6355. .HasCharSet("utf8")
  6356. .HasCollation("utf8_general_ci");
  6357. entity.Property(e => e.Remark)
  6358. .HasColumnType("varchar(64)")
  6359. .HasCharSet("utf8")
  6360. .HasCollation("utf8_general_ci");
  6361. entity.Property(e => e.SeoDescription)
  6362. .HasColumnType("varchar(500)")
  6363. .HasCharSet("utf8")
  6364. .HasCollation("utf8_general_ci");
  6365. entity.Property(e => e.SeoKeyword)
  6366. .HasColumnType("varchar(200)")
  6367. .HasCharSet("utf8")
  6368. .HasCollation("utf8_general_ci");
  6369. entity.Property(e => e.SeoTitle)
  6370. .HasColumnType("varchar(100)")
  6371. .HasCharSet("utf8")
  6372. .HasCollation("utf8_general_ci");
  6373. entity.Property(e => e.SnNo)
  6374. .HasColumnType("varchar(32)")
  6375. .HasCharSet("utf8")
  6376. .HasCollation("utf8_general_ci");
  6377. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6378. entity.Property(e => e.Status).HasColumnType("int(11)");
  6379. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  6380. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  6381. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  6382. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  6383. entity.Property(e => e.TradeMonth)
  6384. .HasColumnType("varchar(6)")
  6385. .HasCharSet("utf8")
  6386. .HasCollation("utf8_general_ci");
  6387. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6388. entity.Property(e => e.UpdateMan)
  6389. .HasColumnType("varchar(50)")
  6390. .HasCharSet("utf8")
  6391. .HasCollation("utf8_general_ci");
  6392. entity.Property(e => e.Version).HasColumnType("int(11)");
  6393. });
  6394. modelBuilder.Entity<ProfitSubsidyDetail04>(entity =>
  6395. {
  6396. entity.Property(e => e.Id).HasColumnType("int(11)");
  6397. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  6398. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6399. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6400. entity.Property(e => e.CreateMan)
  6401. .HasColumnType("varchar(50)")
  6402. .HasCharSet("utf8")
  6403. .HasCollation("utf8_general_ci");
  6404. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  6405. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6406. entity.Property(e => e.MerHelpFlag)
  6407. .HasColumnType("bit(1)")
  6408. .HasDefaultValueSql("b'0'");
  6409. entity.Property(e => e.MerNo)
  6410. .HasColumnType("varchar(32)")
  6411. .HasCharSet("utf8")
  6412. .HasCollation("utf8_general_ci");
  6413. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  6414. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  6415. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6416. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6417. entity.Property(e => e.ProductName)
  6418. .HasColumnType("varchar(16)")
  6419. .HasCharSet("utf8")
  6420. .HasCollation("utf8_general_ci");
  6421. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6422. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6423. entity.Property(e => e.RecordNo)
  6424. .HasColumnType("varchar(32)")
  6425. .HasCharSet("utf8")
  6426. .HasCollation("utf8_general_ci");
  6427. entity.Property(e => e.Remark)
  6428. .HasColumnType("varchar(64)")
  6429. .HasCharSet("utf8")
  6430. .HasCollation("utf8_general_ci");
  6431. entity.Property(e => e.SeoDescription)
  6432. .HasColumnType("varchar(500)")
  6433. .HasCharSet("utf8")
  6434. .HasCollation("utf8_general_ci");
  6435. entity.Property(e => e.SeoKeyword)
  6436. .HasColumnType("varchar(200)")
  6437. .HasCharSet("utf8")
  6438. .HasCollation("utf8_general_ci");
  6439. entity.Property(e => e.SeoTitle)
  6440. .HasColumnType("varchar(100)")
  6441. .HasCharSet("utf8")
  6442. .HasCollation("utf8_general_ci");
  6443. entity.Property(e => e.SnNo)
  6444. .HasColumnType("varchar(32)")
  6445. .HasCharSet("utf8")
  6446. .HasCollation("utf8_general_ci");
  6447. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6448. entity.Property(e => e.Status).HasColumnType("int(11)");
  6449. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  6450. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  6451. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  6452. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  6453. entity.Property(e => e.TradeMonth)
  6454. .HasColumnType("varchar(6)")
  6455. .HasCharSet("utf8")
  6456. .HasCollation("utf8_general_ci");
  6457. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6458. entity.Property(e => e.UpdateMan)
  6459. .HasColumnType("varchar(50)")
  6460. .HasCharSet("utf8")
  6461. .HasCollation("utf8_general_ci");
  6462. entity.Property(e => e.Version).HasColumnType("int(11)");
  6463. });
  6464. modelBuilder.Entity<PublicAccountSet>(entity =>
  6465. {
  6466. entity.Property(e => e.Id).HasColumnType("int(11)");
  6467. entity.Property(e => e.AlipayAppId)
  6468. .HasColumnType("varchar(50)")
  6469. .HasCharSet("utf8")
  6470. .HasCollation("utf8_general_ci");
  6471. entity.Property(e => e.AlipayPartnerId)
  6472. .HasColumnType("varchar(50)")
  6473. .HasCharSet("utf8")
  6474. .HasCollation("utf8_general_ci");
  6475. entity.Property(e => e.AlipayPrivateKey)
  6476. .HasColumnType("mediumtext")
  6477. .HasCharSet("utf8")
  6478. .HasCollation("utf8_general_ci");
  6479. entity.Property(e => e.AlipayPublicKey)
  6480. .HasColumnType("mediumtext")
  6481. .HasCharSet("utf8")
  6482. .HasCollation("utf8_general_ci");
  6483. entity.Property(e => e.AliyunAccessKeyId)
  6484. .HasColumnType("varchar(50)")
  6485. .HasCharSet("utf8")
  6486. .HasCollation("utf8_general_ci");
  6487. entity.Property(e => e.AliyunAccessKeySecret)
  6488. .HasColumnType("varchar(50)")
  6489. .HasCharSet("utf8")
  6490. .HasCollation("utf8_general_ci");
  6491. entity.Property(e => e.AliyunAndroidActivity)
  6492. .HasColumnType("varchar(100)")
  6493. .HasCharSet("utf8")
  6494. .HasCollation("utf8_general_ci");
  6495. entity.Property(e => e.AliyunAndroidNotifyTitle)
  6496. .HasColumnType("varchar(20)")
  6497. .HasCharSet("utf8")
  6498. .HasCollation("utf8_general_ci");
  6499. entity.Property(e => e.AliyunPushAndroidAppId)
  6500. .HasColumnType("varchar(50)")
  6501. .HasCharSet("utf8")
  6502. .HasCollation("utf8_general_ci");
  6503. entity.Property(e => e.AliyunPushAndroidAppSecret)
  6504. .HasColumnType("varchar(50)")
  6505. .HasCharSet("utf8")
  6506. .HasCollation("utf8_general_ci");
  6507. entity.Property(e => e.AliyunPushIosAppId)
  6508. .HasColumnType("varchar(500)")
  6509. .HasCharSet("utf8")
  6510. .HasCollation("utf8_general_ci");
  6511. entity.Property(e => e.AliyunPushIosAppSecret)
  6512. .HasColumnType("varchar(50)")
  6513. .HasCharSet("utf8")
  6514. .HasCollation("utf8_general_ci");
  6515. entity.Property(e => e.AliyunRegionId)
  6516. .HasColumnType("varchar(30)")
  6517. .HasCharSet("utf8")
  6518. .HasCollation("utf8_general_ci");
  6519. entity.Property(e => e.ErpApiUrl)
  6520. .HasColumnType("varchar(200)")
  6521. .HasCharSet("utf8")
  6522. .HasCollation("utf8_general_ci");
  6523. entity.Property(e => e.ErpAppCode)
  6524. .HasColumnType("varchar(100)")
  6525. .HasCharSet("utf8")
  6526. .HasCollation("utf8_general_ci");
  6527. entity.Property(e => e.MeiQiaAppKey)
  6528. .HasColumnType("varchar(50)")
  6529. .HasCharSet("utf8")
  6530. .HasCollation("utf8_general_ci");
  6531. entity.Property(e => e.MobAppKey)
  6532. .HasColumnType("varchar(50)")
  6533. .HasCharSet("utf8")
  6534. .HasCollation("utf8_general_ci");
  6535. entity.Property(e => e.MobAppSecret)
  6536. .HasColumnType("varchar(50)")
  6537. .HasCharSet("utf8")
  6538. .HasCollation("utf8_general_ci");
  6539. entity.Property(e => e.QqAndroidAppId)
  6540. .HasColumnType("varchar(50)")
  6541. .HasCharSet("utf8")
  6542. .HasCollation("utf8_general_ci");
  6543. entity.Property(e => e.QqAndroidAppKey)
  6544. .HasColumnType("varchar(50)")
  6545. .HasCharSet("utf8")
  6546. .HasCollation("utf8_general_ci");
  6547. entity.Property(e => e.QqIosAppId)
  6548. .HasColumnType("varchar(50)")
  6549. .HasCharSet("utf8")
  6550. .HasCollation("utf8_general_ci");
  6551. entity.Property(e => e.QqIosAppKey)
  6552. .HasColumnType("varchar(50)")
  6553. .HasCharSet("utf8")
  6554. .HasCollation("utf8_general_ci");
  6555. entity.Property(e => e.ServerIp)
  6556. .HasColumnType("varchar(15)")
  6557. .HasCharSet("utf8")
  6558. .HasCollation("utf8_general_ci");
  6559. entity.Property(e => e.SmsApiDefaultTemplate)
  6560. .HasColumnType("varchar(200)")
  6561. .HasCharSet("utf8")
  6562. .HasCollation("utf8_general_ci");
  6563. entity.Property(e => e.SmsApiPwd)
  6564. .HasColumnType("varchar(50)")
  6565. .HasCharSet("utf8")
  6566. .HasCollation("utf8_general_ci");
  6567. entity.Property(e => e.SmsApiSign)
  6568. .HasColumnType("varchar(10)")
  6569. .HasCharSet("utf8")
  6570. .HasCollation("utf8_general_ci");
  6571. entity.Property(e => e.SmsApiUserId)
  6572. .HasColumnType("varchar(50)")
  6573. .HasCharSet("utf8")
  6574. .HasCollation("utf8_general_ci");
  6575. entity.Property(e => e.WeChatAppId)
  6576. .HasColumnType("varchar(50)")
  6577. .HasCharSet("utf8")
  6578. .HasCollation("utf8_general_ci");
  6579. entity.Property(e => e.WeChatAppSecret)
  6580. .HasColumnType("varchar(50)")
  6581. .HasCharSet("utf8")
  6582. .HasCollation("utf8_general_ci");
  6583. entity.Property(e => e.WeChatMchId)
  6584. .HasColumnType("varchar(20)")
  6585. .HasCharSet("utf8")
  6586. .HasCollation("utf8_general_ci");
  6587. entity.Property(e => e.WeChatMiniAppId)
  6588. .HasColumnType("varchar(50)")
  6589. .HasCharSet("utf8")
  6590. .HasCollation("utf8_general_ci");
  6591. entity.Property(e => e.WeChatMiniAppSecret)
  6592. .HasColumnType("varchar(50)")
  6593. .HasCharSet("utf8")
  6594. .HasCollation("utf8_general_ci");
  6595. entity.Property(e => e.WeChatOpenAppId)
  6596. .HasColumnType("varchar(50)")
  6597. .HasCharSet("utf8")
  6598. .HasCollation("utf8_general_ci");
  6599. entity.Property(e => e.WeChatOpenAppSecret)
  6600. .HasColumnType("varchar(50)")
  6601. .HasCharSet("utf8")
  6602. .HasCollation("utf8_general_ci");
  6603. entity.Property(e => e.WeChatPayKey)
  6604. .HasColumnType("varchar(50)")
  6605. .HasCharSet("utf8")
  6606. .HasCollation("utf8_general_ci");
  6607. });
  6608. modelBuilder.Entity<PullNewAct>(entity =>
  6609. {
  6610. entity.Property(e => e.Id).HasColumnType("int(11)");
  6611. entity.Property(e => e.ActEffectEndDate).HasColumnType("datetime");
  6612. entity.Property(e => e.ActEffectStartDate).HasColumnType("datetime");
  6613. entity.Property(e => e.ActStdCond)
  6614. .HasColumnType("varchar(32)")
  6615. .HasCharSet("utf8")
  6616. .HasCollation("utf8_general_ci");
  6617. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6618. entity.Property(e => e.CreateMan)
  6619. .HasColumnType("varchar(50)")
  6620. .HasCharSet("utf8")
  6621. .HasCollation("utf8_general_ci");
  6622. entity.Property(e => e.ProductName)
  6623. .HasColumnType("varchar(32)")
  6624. .HasCharSet("utf8")
  6625. .HasCollation("utf8_general_ci");
  6626. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6627. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6628. entity.Property(e => e.Remark)
  6629. .HasColumnType("varchar(128)")
  6630. .HasCharSet("utf8")
  6631. .HasCollation("utf8_general_ci");
  6632. entity.Property(e => e.SeoDescription)
  6633. .HasColumnType("varchar(500)")
  6634. .HasCharSet("utf8")
  6635. .HasCollation("utf8_general_ci");
  6636. entity.Property(e => e.SeoKeyword)
  6637. .HasColumnType("varchar(200)")
  6638. .HasCharSet("utf8")
  6639. .HasCollation("utf8_general_ci");
  6640. entity.Property(e => e.SeoTitle)
  6641. .HasColumnType("varchar(100)")
  6642. .HasCharSet("utf8")
  6643. .HasCollation("utf8_general_ci");
  6644. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  6645. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6646. entity.Property(e => e.Status).HasColumnType("int(11)");
  6647. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6648. entity.Property(e => e.UpdateMan)
  6649. .HasColumnType("varchar(50)")
  6650. .HasCharSet("utf8")
  6651. .HasCollation("utf8_general_ci");
  6652. entity.Property(e => e.Version).HasColumnType("int(11)");
  6653. });
  6654. modelBuilder.Entity<PullNewDetail>(entity =>
  6655. {
  6656. entity.Property(e => e.Id).HasColumnType("int(11)");
  6657. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6658. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6659. entity.Property(e => e.CreateMan)
  6660. .HasColumnType("varchar(50)")
  6661. .HasCharSet("utf8")
  6662. .HasCollation("utf8_general_ci");
  6663. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6664. entity.Property(e => e.RecMallBrandId).HasColumnType("int(11)");
  6665. entity.Property(e => e.RecMallOrder)
  6666. .HasColumnType("varchar(32)")
  6667. .HasCharSet("utf8")
  6668. .HasCollation("utf8_general_ci");
  6669. entity.Property(e => e.RecMallOrderTime).HasColumnType("datetime");
  6670. entity.Property(e => e.RecMallProductName)
  6671. .HasColumnType("varchar(32)")
  6672. .HasCharSet("utf8")
  6673. .HasCollation("utf8_general_ci");
  6674. entity.Property(e => e.RecMallProductNum).HasColumnType("int(11)");
  6675. entity.Property(e => e.RecMallSendTime).HasColumnType("datetime");
  6676. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  6677. entity.Property(e => e.RecUserType).HasColumnType("int(11)");
  6678. entity.Property(e => e.RegDate).HasColumnType("datetime");
  6679. entity.Property(e => e.Remark)
  6680. .HasColumnType("varchar(64)")
  6681. .HasCharSet("utf8")
  6682. .HasCollation("utf8_general_ci");
  6683. entity.Property(e => e.RewardStatus).HasColumnType("int(11)");
  6684. entity.Property(e => e.SeoDescription)
  6685. .HasColumnType("varchar(500)")
  6686. .HasCharSet("utf8")
  6687. .HasCollation("utf8_general_ci");
  6688. entity.Property(e => e.SeoKeyword)
  6689. .HasColumnType("varchar(200)")
  6690. .HasCharSet("utf8")
  6691. .HasCollation("utf8_general_ci");
  6692. entity.Property(e => e.SeoTitle)
  6693. .HasColumnType("varchar(100)")
  6694. .HasCharSet("utf8")
  6695. .HasCollation("utf8_general_ci");
  6696. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6697. entity.Property(e => e.StatDate)
  6698. .HasColumnType("varchar(8)")
  6699. .HasCharSet("utf8")
  6700. .HasCollation("utf8_general_ci");
  6701. entity.Property(e => e.StatMonth)
  6702. .HasColumnType("varchar(6)")
  6703. .HasCharSet("utf8")
  6704. .HasCollation("utf8_general_ci");
  6705. entity.Property(e => e.StatType).HasColumnType("int(11)");
  6706. entity.Property(e => e.Status).HasColumnType("int(11)");
  6707. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6708. entity.Property(e => e.UpdateMan)
  6709. .HasColumnType("varchar(50)")
  6710. .HasCharSet("utf8")
  6711. .HasCollation("utf8_general_ci");
  6712. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6713. entity.Property(e => e.Version).HasColumnType("int(11)");
  6714. });
  6715. modelBuilder.Entity<PullnewSummary>(entity =>
  6716. {
  6717. entity.Property(e => e.Id).HasColumnType("int(11)");
  6718. entity.Property(e => e.BizSnDelayDay).HasColumnType("int(11)");
  6719. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6720. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6721. entity.Property(e => e.CreateMan)
  6722. .HasColumnType("varchar(50)")
  6723. .HasCharSet("utf8")
  6724. .HasCollation("utf8_general_ci");
  6725. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6726. entity.Property(e => e.RecUserAuthNum).HasColumnType("int(11)");
  6727. entity.Property(e => e.RecUserDeliveryStdNum).HasColumnType("int(11)");
  6728. entity.Property(e => e.Remark)
  6729. .HasColumnType("varchar(64)")
  6730. .HasCharSet("utf8")
  6731. .HasCollation("utf8_general_ci");
  6732. entity.Property(e => e.RuleSnDelayDay).HasColumnType("int(11)");
  6733. entity.Property(e => e.SeoDescription)
  6734. .HasColumnType("varchar(500)")
  6735. .HasCharSet("utf8")
  6736. .HasCollation("utf8_general_ci");
  6737. entity.Property(e => e.SeoKeyword)
  6738. .HasColumnType("varchar(200)")
  6739. .HasCharSet("utf8")
  6740. .HasCollation("utf8_general_ci");
  6741. entity.Property(e => e.SeoTitle)
  6742. .HasColumnType("varchar(100)")
  6743. .HasCharSet("utf8")
  6744. .HasCollation("utf8_general_ci");
  6745. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6746. entity.Property(e => e.StatDate)
  6747. .HasColumnType("varchar(8)")
  6748. .HasCharSet("utf8")
  6749. .HasCollation("utf8_general_ci");
  6750. entity.Property(e => e.StatMonth)
  6751. .HasColumnType("varchar(6)")
  6752. .HasCharSet("utf8")
  6753. .HasCollation("utf8_general_ci");
  6754. entity.Property(e => e.Status).HasColumnType("int(11)");
  6755. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6756. entity.Property(e => e.UpdateMan)
  6757. .HasColumnType("varchar(50)")
  6758. .HasCharSet("utf8")
  6759. .HasCollation("utf8_general_ci");
  6760. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6761. entity.Property(e => e.Version).HasColumnType("int(11)");
  6762. });
  6763. modelBuilder.Entity<RightDic>(entity =>
  6764. {
  6765. entity.Property(e => e.Id)
  6766. .HasColumnName("ID")
  6767. .HasColumnType("varchar(50)")
  6768. .HasCharSet("utf8")
  6769. .HasCollation("utf8_general_ci");
  6770. entity.Property(e => e.Icon)
  6771. .HasColumnType("varchar(50)")
  6772. .HasCharSet("utf8")
  6773. .HasCollation("utf8_general_ci");
  6774. entity.Property(e => e.MainDataList)
  6775. .HasColumnType("bit(1)")
  6776. .HasDefaultValueSql("b'0'");
  6777. entity.Property(e => e.MainMenu)
  6778. .HasColumnType("bit(1)")
  6779. .HasDefaultValueSql("b'0'");
  6780. entity.Property(e => e.MainStat)
  6781. .HasColumnType("bit(1)")
  6782. .HasDefaultValueSql("b'0'");
  6783. entity.Property(e => e.Name)
  6784. .HasColumnType("varchar(50)")
  6785. .HasCharSet("utf8")
  6786. .HasCollation("utf8_general_ci");
  6787. entity.Property(e => e.OtherRight)
  6788. .HasColumnType("varchar(500)")
  6789. .HasCharSet("utf8")
  6790. .HasCollation("utf8_general_ci");
  6791. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  6792. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6793. entity.Property(e => e.Url)
  6794. .HasColumnType("varchar(200)")
  6795. .HasCharSet("utf8")
  6796. .HasCollation("utf8_general_ci");
  6797. });
  6798. modelBuilder.Entity<ServiceCenter>(entity =>
  6799. {
  6800. entity.Property(e => e.Id).HasColumnType("int(11)");
  6801. entity.Property(e => e.CategoryId).HasColumnType("int(11)");
  6802. entity.Property(e => e.Content)
  6803. .HasColumnType("longtext")
  6804. .HasCharSet("utf8")
  6805. .HasCollation("utf8_general_ci");
  6806. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6807. entity.Property(e => e.CreateMan)
  6808. .HasColumnType("varchar(50)")
  6809. .HasCharSet("utf8")
  6810. .HasCollation("utf8_general_ci");
  6811. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6812. entity.Property(e => e.SeoDescription)
  6813. .HasColumnType("varchar(500)")
  6814. .HasCharSet("utf8")
  6815. .HasCollation("utf8_general_ci");
  6816. entity.Property(e => e.SeoKeyword)
  6817. .HasColumnType("varchar(200)")
  6818. .HasCharSet("utf8")
  6819. .HasCollation("utf8_general_ci");
  6820. entity.Property(e => e.SeoTitle)
  6821. .HasColumnType("varchar(100)")
  6822. .HasCharSet("utf8")
  6823. .HasCollation("utf8_general_ci");
  6824. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6825. entity.Property(e => e.Status).HasColumnType("int(11)");
  6826. entity.Property(e => e.SubTitle)
  6827. .HasColumnType("varchar(50)")
  6828. .HasCharSet("utf8")
  6829. .HasCollation("utf8_general_ci");
  6830. entity.Property(e => e.Title)
  6831. .HasColumnType("varchar(50)")
  6832. .HasCharSet("utf8")
  6833. .HasCollation("utf8_general_ci");
  6834. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6835. entity.Property(e => e.UpdateMan)
  6836. .HasColumnType("varchar(50)")
  6837. .HasCharSet("utf8")
  6838. .HasCollation("utf8_general_ci");
  6839. entity.Property(e => e.Version).HasColumnType("int(11)");
  6840. });
  6841. modelBuilder.Entity<SetMerchantTypeRecord>(entity =>
  6842. {
  6843. entity.Property(e => e.Id).HasColumnType("int(11)");
  6844. entity.Property(e => e.ActDate).HasColumnType("datetime");
  6845. entity.Property(e => e.ActStatus)
  6846. .HasColumnType("bit(1)")
  6847. .HasDefaultValueSql("b'0'");
  6848. entity.Property(e => e.BindDate).HasColumnType("datetime");
  6849. entity.Property(e => e.BindStatus)
  6850. .HasColumnType("bit(1)")
  6851. .HasDefaultValueSql("b'0'");
  6852. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6853. entity.Property(e => e.CreditAmount).HasColumnType("decimal(18,2)");
  6854. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6855. entity.Property(e => e.IsRecyc)
  6856. .HasColumnType("bit(1)")
  6857. .HasDefaultValueSql("b'0'");
  6858. entity.Property(e => e.MerNo)
  6859. .HasColumnType("varchar(50)")
  6860. .HasCharSet("utf8")
  6861. .HasCollation("utf8_general_ci");
  6862. entity.Property(e => e.Note)
  6863. .HasColumnType("varchar(50)")
  6864. .HasCharSet("utf8")
  6865. .HasCollation("utf8_general_ci");
  6866. entity.Property(e => e.PosSn)
  6867. .HasColumnType("varchar(50)")
  6868. .HasCharSet("utf8")
  6869. .HasCollation("utf8_general_ci");
  6870. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  6871. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6872. entity.Property(e => e.SeoDescription)
  6873. .HasColumnType("varchar(500)")
  6874. .HasCharSet("utf8")
  6875. .HasCollation("utf8_general_ci");
  6876. entity.Property(e => e.SeoKeyword)
  6877. .HasColumnType("varchar(200)")
  6878. .HasCharSet("utf8")
  6879. .HasCollation("utf8_general_ci");
  6880. entity.Property(e => e.SeoTitle)
  6881. .HasColumnType("varchar(100)")
  6882. .HasCharSet("utf8")
  6883. .HasCollation("utf8_general_ci");
  6884. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6885. entity.Property(e => e.Status).HasColumnType("int(11)");
  6886. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6887. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6888. });
  6889. modelBuilder.Entity<SmallStoreHouse>(entity =>
  6890. {
  6891. entity.Property(e => e.Id).HasColumnType("int(11)");
  6892. entity.Property(e => e.BrandId)
  6893. .HasColumnType("varchar(30)")
  6894. .HasCharSet("utf8")
  6895. .HasCollation("utf8_general_ci");
  6896. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6897. entity.Property(e => e.FromStoreId).HasColumnType("int(11)");
  6898. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  6899. entity.Property(e => e.Mobile)
  6900. .HasColumnType("varchar(11)")
  6901. .HasCharSet("utf8")
  6902. .HasCollation("utf8_general_ci");
  6903. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6904. entity.Property(e => e.Remark)
  6905. .HasColumnType("varchar(128)")
  6906. .HasCharSet("utf8")
  6907. .HasCollation("utf8_general_ci");
  6908. entity.Property(e => e.SeoDescription)
  6909. .HasColumnType("varchar(500)")
  6910. .HasCharSet("utf8")
  6911. .HasCollation("utf8_general_ci");
  6912. entity.Property(e => e.SeoKeyword)
  6913. .HasColumnType("varchar(200)")
  6914. .HasCharSet("utf8")
  6915. .HasCollation("utf8_general_ci");
  6916. entity.Property(e => e.SeoTitle)
  6917. .HasColumnType("varchar(100)")
  6918. .HasCharSet("utf8")
  6919. .HasCollation("utf8_general_ci");
  6920. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6921. entity.Property(e => e.Status).HasColumnType("int(11)");
  6922. entity.Property(e => e.StoreName)
  6923. .HasColumnType("varchar(32)")
  6924. .HasCharSet("utf8")
  6925. .HasCollation("utf8_general_ci");
  6926. entity.Property(e => e.StoreNo)
  6927. .HasColumnType("varchar(16)")
  6928. .HasCharSet("utf8")
  6929. .HasCollation("utf8_general_ci");
  6930. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  6931. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6932. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6933. });
  6934. modelBuilder.Entity<StoreBalance>(entity =>
  6935. {
  6936. entity.Property(e => e.Id).HasColumnType("int(11)");
  6937. entity.Property(e => e.AfterLaveNum).HasColumnType("int(11)");
  6938. entity.Property(e => e.AfterOutNum).HasColumnType("int(11)");
  6939. entity.Property(e => e.AfterTotalNum).HasColumnType("int(11)");
  6940. entity.Property(e => e.BeforeLaveNum).HasColumnType("int(11)");
  6941. entity.Property(e => e.BeforeOutNum).HasColumnType("int(11)");
  6942. entity.Property(e => e.BeforeTotalNum).HasColumnType("int(11)");
  6943. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6944. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6945. entity.Property(e => e.CreateMan)
  6946. .HasColumnType("varchar(50)")
  6947. .HasCharSet("utf8")
  6948. .HasCollation("utf8_general_ci");
  6949. entity.Property(e => e.OpStoreNum).HasColumnType("int(11)");
  6950. entity.Property(e => e.OpSymbol)
  6951. .HasColumnType("varchar(1)")
  6952. .HasCharSet("utf8")
  6953. .HasCollation("utf8_general_ci");
  6954. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6955. entity.Property(e => e.SeoDescription)
  6956. .HasColumnType("varchar(500)")
  6957. .HasCharSet("utf8")
  6958. .HasCollation("utf8_general_ci");
  6959. entity.Property(e => e.SeoKeyword)
  6960. .HasColumnType("varchar(200)")
  6961. .HasCharSet("utf8")
  6962. .HasCollation("utf8_general_ci");
  6963. entity.Property(e => e.SeoTitle)
  6964. .HasColumnType("varchar(100)")
  6965. .HasCharSet("utf8")
  6966. .HasCollation("utf8_general_ci");
  6967. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6968. entity.Property(e => e.Status).HasColumnType("int(11)");
  6969. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6970. entity.Property(e => e.TransRecordNo)
  6971. .HasColumnType("varchar(32)")
  6972. .HasCharSet("utf8")
  6973. .HasCollation("utf8_general_ci");
  6974. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6975. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6976. entity.Property(e => e.UpdateMan)
  6977. .HasColumnType("varchar(50)")
  6978. .HasCharSet("utf8")
  6979. .HasCollation("utf8_general_ci");
  6980. entity.Property(e => e.Version).HasColumnType("int(11)");
  6981. });
  6982. modelBuilder.Entity<StoreChangeHistory>(entity =>
  6983. {
  6984. entity.Property(e => e.Id).HasColumnType("int(11)");
  6985. entity.Property(e => e.BizBatchNo)
  6986. .HasColumnType("varchar(32)")
  6987. .HasCharSet("utf8")
  6988. .HasCollation("utf8_general_ci");
  6989. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6990. entity.Property(e => e.ChangeRecordNo)
  6991. .HasColumnType("varchar(32)")
  6992. .HasCharSet("utf8")
  6993. .HasCollation("utf8_general_ci");
  6994. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6995. entity.Property(e => e.CreateMan)
  6996. .HasColumnType("varchar(50)")
  6997. .HasCharSet("utf8")
  6998. .HasCollation("utf8_general_ci");
  6999. entity.Property(e => e.DeviceModel)
  7000. .HasColumnType("varchar(32)")
  7001. .HasCharSet("utf8")
  7002. .HasCollation("utf8_general_ci");
  7003. entity.Property(e => e.DeviceType)
  7004. .HasColumnType("varchar(32)")
  7005. .HasCharSet("utf8")
  7006. .HasCollation("utf8_general_ci");
  7007. entity.Property(e => e.DeviceVendor)
  7008. .HasColumnType("varchar(32)")
  7009. .HasCharSet("utf8")
  7010. .HasCollation("utf8_general_ci");
  7011. entity.Property(e => e.FromDate).HasColumnType("datetime");
  7012. entity.Property(e => e.FromRemark)
  7013. .HasColumnType("varchar(64)")
  7014. .HasCharSet("utf8")
  7015. .HasCollation("utf8_general_ci");
  7016. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  7017. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7018. entity.Property(e => e.SeoDescription)
  7019. .HasColumnType("varchar(500)")
  7020. .HasCharSet("utf8")
  7021. .HasCollation("utf8_general_ci");
  7022. entity.Property(e => e.SeoKeyword)
  7023. .HasColumnType("varchar(200)")
  7024. .HasCharSet("utf8")
  7025. .HasCollation("utf8_general_ci");
  7026. entity.Property(e => e.SeoTitle)
  7027. .HasColumnType("varchar(100)")
  7028. .HasCharSet("utf8")
  7029. .HasCollation("utf8_general_ci");
  7030. entity.Property(e => e.SnNo)
  7031. .HasColumnType("varchar(32)")
  7032. .HasCharSet("utf8")
  7033. .HasCollation("utf8_general_ci");
  7034. entity.Property(e => e.SnType).HasColumnType("int(11)");
  7035. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7036. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  7037. entity.Property(e => e.Status).HasColumnType("int(11)");
  7038. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  7039. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7040. entity.Property(e => e.ToDate).HasColumnType("datetime");
  7041. entity.Property(e => e.ToRemark)
  7042. .HasColumnType("varchar(64)")
  7043. .HasCharSet("utf8")
  7044. .HasCollation("utf8_general_ci");
  7045. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  7046. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  7047. entity.Property(e => e.TransType).HasColumnType("int(11)");
  7048. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7049. entity.Property(e => e.UpdateMan)
  7050. .HasColumnType("varchar(50)")
  7051. .HasCharSet("utf8")
  7052. .HasCollation("utf8_general_ci");
  7053. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7054. entity.Property(e => e.Version).HasColumnType("int(11)");
  7055. });
  7056. modelBuilder.Entity<StoreForCode>(entity =>
  7057. {
  7058. entity.HasKey(e => e.Code)
  7059. .HasName("PRIMARY");
  7060. entity.Property(e => e.Code)
  7061. .HasColumnType("varchar(30)")
  7062. .HasCharSet("utf8")
  7063. .HasCollation("utf8_general_ci");
  7064. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7065. });
  7066. modelBuilder.Entity<StoreForName>(entity =>
  7067. {
  7068. entity.HasKey(e => e.Name)
  7069. .HasName("PRIMARY");
  7070. entity.Property(e => e.Name)
  7071. .HasColumnType("varchar(30)")
  7072. .HasCharSet("utf8")
  7073. .HasCollation("utf8_general_ci");
  7074. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7075. });
  7076. modelBuilder.Entity<StoreHouse>(entity =>
  7077. {
  7078. entity.Property(e => e.Id).HasColumnType("int(11)");
  7079. entity.Property(e => e.Address)
  7080. .HasColumnType("varchar(128)")
  7081. .HasCharSet("utf8")
  7082. .HasCollation("utf8_general_ci");
  7083. entity.Property(e => e.Areas)
  7084. .HasColumnType("varchar(30)")
  7085. .HasCharSet("utf8")
  7086. .HasCollation("utf8_general_ci");
  7087. entity.Property(e => e.BrandId)
  7088. .HasColumnType("varchar(30)")
  7089. .HasCharSet("utf8")
  7090. .HasCollation("utf8_general_ci");
  7091. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7092. entity.Property(e => e.CreateMan)
  7093. .HasColumnType("varchar(50)")
  7094. .HasCharSet("utf8")
  7095. .HasCollation("utf8_general_ci");
  7096. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  7097. entity.Property(e => e.LimitTopUserId)
  7098. .HasColumnType("varchar(100)")
  7099. .HasCharSet("utf8")
  7100. .HasCollation("utf8_general_ci");
  7101. entity.Property(e => e.ManageMobile)
  7102. .HasColumnType("varchar(11)")
  7103. .HasCharSet("utf8")
  7104. .HasCollation("utf8_general_ci");
  7105. entity.Property(e => e.ManageUserId).HasColumnType("int(11)");
  7106. entity.Property(e => e.ManagerEmail)
  7107. .HasColumnType("varchar(32)")
  7108. .HasCharSet("utf8")
  7109. .HasCollation("utf8_general_ci");
  7110. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  7111. entity.Property(e => e.ParentNav)
  7112. .HasColumnType("longtext")
  7113. .HasCharSet("utf8")
  7114. .HasCollation("utf8_general_ci");
  7115. entity.Property(e => e.ParentStoreId).HasColumnType("int(11)");
  7116. entity.Property(e => e.ProductName)
  7117. .HasColumnType("varchar(32)")
  7118. .HasCharSet("utf8")
  7119. .HasCollation("utf8_general_ci");
  7120. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7121. entity.Property(e => e.Remark)
  7122. .HasColumnType("varchar(128)")
  7123. .HasCharSet("utf8")
  7124. .HasCollation("utf8_general_ci");
  7125. entity.Property(e => e.SeoDescription)
  7126. .HasColumnType("varchar(500)")
  7127. .HasCharSet("utf8")
  7128. .HasCollation("utf8_general_ci");
  7129. entity.Property(e => e.SeoKeyword)
  7130. .HasColumnType("varchar(200)")
  7131. .HasCharSet("utf8")
  7132. .HasCollation("utf8_general_ci");
  7133. entity.Property(e => e.SeoTitle)
  7134. .HasColumnType("varchar(100)")
  7135. .HasCharSet("utf8")
  7136. .HasCollation("utf8_general_ci");
  7137. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7138. entity.Property(e => e.Status).HasColumnType("int(11)");
  7139. entity.Property(e => e.StoreKind).HasColumnType("int(11)");
  7140. entity.Property(e => e.StoreName)
  7141. .HasColumnType("varchar(32)")
  7142. .HasCharSet("utf8")
  7143. .HasCollation("utf8_general_ci");
  7144. entity.Property(e => e.StoreNo)
  7145. .HasColumnType("varchar(16)")
  7146. .HasCharSet("utf8")
  7147. .HasCollation("utf8_general_ci");
  7148. entity.Property(e => e.StoreStatus).HasColumnType("int(11)");
  7149. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  7150. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  7151. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7152. entity.Property(e => e.UpdateMan)
  7153. .HasColumnType("varchar(50)")
  7154. .HasCharSet("utf8")
  7155. .HasCollation("utf8_general_ci");
  7156. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7157. entity.Property(e => e.Version).HasColumnType("int(11)");
  7158. });
  7159. modelBuilder.Entity<StoreHouseAmountRecord>(entity =>
  7160. {
  7161. entity.Property(e => e.Id).HasColumnType("int(11)");
  7162. entity.Property(e => e.AfterAmount).HasColumnType("decimal(18,2)");
  7163. entity.Property(e => e.AmountType).HasColumnType("int(11)");
  7164. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  7165. entity.Property(e => e.BeforeAmount).HasColumnType("decimal(18,2)");
  7166. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7167. entity.Property(e => e.OperateType).HasColumnType("int(11)");
  7168. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7169. entity.Property(e => e.SeoDescription)
  7170. .HasColumnType("varchar(500)")
  7171. .HasCharSet("utf8")
  7172. .HasCollation("utf8_general_ci");
  7173. entity.Property(e => e.SeoKeyword)
  7174. .HasColumnType("varchar(200)")
  7175. .HasCharSet("utf8")
  7176. .HasCollation("utf8_general_ci");
  7177. entity.Property(e => e.SeoTitle)
  7178. .HasColumnType("varchar(100)")
  7179. .HasCharSet("utf8")
  7180. .HasCollation("utf8_general_ci");
  7181. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7182. entity.Property(e => e.Status).HasColumnType("int(11)");
  7183. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7184. entity.Property(e => e.UseAmount).HasColumnType("decimal(18,2)");
  7185. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7186. });
  7187. modelBuilder.Entity<StoreMachineApply>(entity =>
  7188. {
  7189. entity.Property(e => e.Id).HasColumnType("int(11)");
  7190. entity.Property(e => e.ApplyNo)
  7191. .HasColumnType("varchar(50)")
  7192. .HasCharSet("utf8")
  7193. .HasCollation("utf8_general_ci");
  7194. entity.Property(e => e.ApplyNum).HasColumnType("int(11)");
  7195. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7196. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7197. entity.Property(e => e.ErpCode)
  7198. .HasColumnType("varchar(50)")
  7199. .HasCharSet("utf8")
  7200. .HasCollation("utf8_general_ci");
  7201. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7202. entity.Property(e => e.SendMode)
  7203. .HasColumnType("varchar(50)")
  7204. .HasCharSet("utf8")
  7205. .HasCollation("utf8_general_ci");
  7206. entity.Property(e => e.SendNum).HasColumnType("int(11)");
  7207. entity.Property(e => e.SendSn)
  7208. .HasColumnType("mediumtext")
  7209. .HasCharSet("utf8")
  7210. .HasCollation("utf8_general_ci");
  7211. entity.Property(e => e.SeoDescription)
  7212. .HasColumnType("varchar(500)")
  7213. .HasCharSet("utf8")
  7214. .HasCollation("utf8_general_ci");
  7215. entity.Property(e => e.SeoKeyword)
  7216. .HasColumnType("varchar(200)")
  7217. .HasCharSet("utf8")
  7218. .HasCollation("utf8_general_ci");
  7219. entity.Property(e => e.SeoTitle)
  7220. .HasColumnType("varchar(100)")
  7221. .HasCharSet("utf8")
  7222. .HasCollation("utf8_general_ci");
  7223. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7224. entity.Property(e => e.Status).HasColumnType("int(11)");
  7225. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7226. entity.Property(e => e.UseAmount).HasColumnType("decimal(18,2)");
  7227. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7228. });
  7229. modelBuilder.Entity<StoreMallOrderSummary>(entity =>
  7230. {
  7231. entity.Property(e => e.Id).HasColumnType("int(11)");
  7232. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  7233. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7234. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7235. entity.Property(e => e.CreateMan)
  7236. .HasColumnType("varchar(50)")
  7237. .HasCharSet("utf8")
  7238. .HasCollation("utf8_general_ci");
  7239. entity.Property(e => e.OrderAmt).HasColumnType("int(11)");
  7240. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  7241. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7242. entity.Property(e => e.RefundAmt).HasColumnType("decimal(18,2)");
  7243. entity.Property(e => e.RefundOrderNum).HasColumnType("int(11)");
  7244. entity.Property(e => e.Remark)
  7245. .HasColumnType("varchar(64)")
  7246. .HasCharSet("utf8")
  7247. .HasCollation("utf8_general_ci");
  7248. entity.Property(e => e.SeoDescription)
  7249. .HasColumnType("varchar(500)")
  7250. .HasCharSet("utf8")
  7251. .HasCollation("utf8_general_ci");
  7252. entity.Property(e => e.SeoKeyword)
  7253. .HasColumnType("varchar(200)")
  7254. .HasCharSet("utf8")
  7255. .HasCollation("utf8_general_ci");
  7256. entity.Property(e => e.SeoTitle)
  7257. .HasColumnType("varchar(100)")
  7258. .HasCharSet("utf8")
  7259. .HasCollation("utf8_general_ci");
  7260. entity.Property(e => e.SettleAmt).HasColumnType("decimal(18,2)");
  7261. entity.Property(e => e.SettleStatus).HasColumnType("int(11)");
  7262. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7263. entity.Property(e => e.Status).HasColumnType("int(11)");
  7264. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7265. entity.Property(e => e.TradeMonth)
  7266. .HasColumnType("varchar(6)")
  7267. .HasCharSet("utf8")
  7268. .HasCollation("utf8_general_ci");
  7269. entity.Property(e => e.UnitPrice).HasColumnType("decimal(18,2)");
  7270. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7271. entity.Property(e => e.UpdateMan)
  7272. .HasColumnType("varchar(50)")
  7273. .HasCharSet("utf8")
  7274. .HasCollation("utf8_general_ci");
  7275. entity.Property(e => e.Version).HasColumnType("int(11)");
  7276. });
  7277. modelBuilder.Entity<StoreSnActivateSummary>(entity =>
  7278. {
  7279. entity.Property(e => e.Id).HasColumnType("int(11)");
  7280. entity.Property(e => e.ActivateNum).HasColumnType("int(11)");
  7281. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  7282. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7283. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7284. entity.Property(e => e.CreateMan)
  7285. .HasColumnType("varchar(50)")
  7286. .HasCharSet("utf8")
  7287. .HasCollation("utf8_general_ci");
  7288. entity.Property(e => e.EffectActNum).HasColumnType("int(11)");
  7289. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7290. entity.Property(e => e.RejectActNum).HasColumnType("int(11)");
  7291. entity.Property(e => e.Remark)
  7292. .HasColumnType("varchar(64)")
  7293. .HasCharSet("utf8")
  7294. .HasCollation("utf8_general_ci");
  7295. entity.Property(e => e.SeoDescription)
  7296. .HasColumnType("varchar(500)")
  7297. .HasCharSet("utf8")
  7298. .HasCollation("utf8_general_ci");
  7299. entity.Property(e => e.SeoKeyword)
  7300. .HasColumnType("varchar(200)")
  7301. .HasCharSet("utf8")
  7302. .HasCollation("utf8_general_ci");
  7303. entity.Property(e => e.SeoTitle)
  7304. .HasColumnType("varchar(100)")
  7305. .HasCharSet("utf8")
  7306. .HasCollation("utf8_general_ci");
  7307. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7308. entity.Property(e => e.Status).HasColumnType("int(11)");
  7309. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7310. entity.Property(e => e.TradeDate)
  7311. .HasColumnType("varchar(8)")
  7312. .HasCharSet("utf8")
  7313. .HasCollation("utf8_general_ci");
  7314. entity.Property(e => e.TradeMonth)
  7315. .HasColumnType("varchar(6)")
  7316. .HasCharSet("utf8")
  7317. .HasCollation("utf8_general_ci");
  7318. entity.Property(e => e.TransferActNum).HasColumnType("int(11)");
  7319. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7320. entity.Property(e => e.UpdateMan)
  7321. .HasColumnType("varchar(50)")
  7322. .HasCharSet("utf8")
  7323. .HasCollation("utf8_general_ci");
  7324. entity.Property(e => e.UserApplyNum).HasColumnType("int(11)");
  7325. entity.Property(e => e.Version).HasColumnType("int(11)");
  7326. });
  7327. modelBuilder.Entity<StoreStockChange>(entity =>
  7328. {
  7329. entity.Property(e => e.Id).HasColumnType("int(11)");
  7330. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  7331. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  7332. entity.Property(e => e.BindMerchant).HasColumnType("int(11)");
  7333. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  7334. entity.Property(e => e.BizBatchNo)
  7335. .HasColumnType("varchar(32)")
  7336. .HasCharSet("utf8")
  7337. .HasCollation("utf8_general_ci");
  7338. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7339. entity.Property(e => e.BrandType)
  7340. .HasColumnType("varchar(10)")
  7341. .HasCharSet("utf8")
  7342. .HasCollation("utf8_general_ci");
  7343. entity.Property(e => e.ChangeNo)
  7344. .HasColumnType("varchar(32)")
  7345. .HasCharSet("utf8")
  7346. .HasCollation("utf8_general_ci");
  7347. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7348. entity.Property(e => e.CreateMan)
  7349. .HasColumnType("varchar(50)")
  7350. .HasCharSet("utf8")
  7351. .HasCollation("utf8_general_ci");
  7352. entity.Property(e => e.DeviceModel)
  7353. .HasColumnType("varchar(32)")
  7354. .HasCharSet("utf8")
  7355. .HasCollation("utf8_general_ci");
  7356. entity.Property(e => e.DeviceType)
  7357. .HasColumnType("varchar(32)")
  7358. .HasCharSet("utf8")
  7359. .HasCollation("utf8_general_ci");
  7360. entity.Property(e => e.DeviceVendor)
  7361. .HasColumnType("varchar(32)")
  7362. .HasCharSet("utf8")
  7363. .HasCollation("utf8_general_ci");
  7364. entity.Property(e => e.ExpressNo)
  7365. .HasColumnType("varchar(32)")
  7366. .HasCharSet("utf8")
  7367. .HasCollation("utf8_general_ci");
  7368. entity.Property(e => e.FromDate).HasColumnType("datetime");
  7369. entity.Property(e => e.FromRemark)
  7370. .HasColumnType("varchar(64)")
  7371. .HasCharSet("utf8")
  7372. .HasCollation("utf8_general_ci");
  7373. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  7374. entity.Property(e => e.ProductName)
  7375. .HasColumnType("varchar(32)")
  7376. .HasCharSet("utf8")
  7377. .HasCollation("utf8_general_ci");
  7378. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7379. entity.Property(e => e.SeoDescription)
  7380. .HasColumnType("varchar(500)")
  7381. .HasCharSet("utf8")
  7382. .HasCollation("utf8_general_ci");
  7383. entity.Property(e => e.SeoKeyword)
  7384. .HasColumnType("varchar(200)")
  7385. .HasCharSet("utf8")
  7386. .HasCollation("utf8_general_ci");
  7387. entity.Property(e => e.SeoTitle)
  7388. .HasColumnType("varchar(100)")
  7389. .HasCharSet("utf8")
  7390. .HasCollation("utf8_general_ci");
  7391. entity.Property(e => e.SnNo)
  7392. .HasColumnType("varchar(32)")
  7393. .HasCharSet("utf8")
  7394. .HasCollation("utf8_general_ci");
  7395. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  7396. entity.Property(e => e.SnType).HasColumnType("int(11)");
  7397. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7398. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  7399. entity.Property(e => e.Status).HasColumnType("int(11)");
  7400. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  7401. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  7402. entity.Property(e => e.ToDate).HasColumnType("datetime");
  7403. entity.Property(e => e.ToRemark)
  7404. .HasColumnType("varchar(64)")
  7405. .HasCharSet("utf8")
  7406. .HasCollation("utf8_general_ci");
  7407. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  7408. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  7409. entity.Property(e => e.TransType).HasColumnType("int(11)");
  7410. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7411. entity.Property(e => e.UpdateMan)
  7412. .HasColumnType("varchar(50)")
  7413. .HasCharSet("utf8")
  7414. .HasCollation("utf8_general_ci");
  7415. entity.Property(e => e.Version).HasColumnType("int(11)");
  7416. });
  7417. modelBuilder.Entity<StoreSwapSn>(entity =>
  7418. {
  7419. entity.Property(e => e.Id).HasColumnType("int(11)");
  7420. entity.Property(e => e.ActType).HasColumnType("int(11)");
  7421. entity.Property(e => e.ActTypeDesc)
  7422. .HasColumnType("varchar(64)")
  7423. .HasCharSet("utf8")
  7424. .HasCollation("utf8_general_ci");
  7425. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  7426. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7427. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7428. entity.Property(e => e.CreateMan)
  7429. .HasColumnType("varchar(50)")
  7430. .HasCharSet("utf8")
  7431. .HasCollation("utf8_general_ci");
  7432. entity.Property(e => e.PosType)
  7433. .HasColumnType("varchar(32)")
  7434. .HasCharSet("utf8")
  7435. .HasCollation("utf8_general_ci");
  7436. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7437. entity.Property(e => e.Remark)
  7438. .HasColumnType("varchar(128)")
  7439. .HasCharSet("utf8")
  7440. .HasCollation("utf8_general_ci");
  7441. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  7442. entity.Property(e => e.SeoDescription)
  7443. .HasColumnType("varchar(500)")
  7444. .HasCharSet("utf8")
  7445. .HasCollation("utf8_general_ci");
  7446. entity.Property(e => e.SeoKeyword)
  7447. .HasColumnType("varchar(200)")
  7448. .HasCharSet("utf8")
  7449. .HasCollation("utf8_general_ci");
  7450. entity.Property(e => e.SeoTitle)
  7451. .HasColumnType("varchar(100)")
  7452. .HasCharSet("utf8")
  7453. .HasCollation("utf8_general_ci");
  7454. entity.Property(e => e.SnNo)
  7455. .HasColumnType("varchar(32)")
  7456. .HasCharSet("utf8")
  7457. .HasCollation("utf8_general_ci");
  7458. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  7459. entity.Property(e => e.SnType).HasColumnType("int(11)");
  7460. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7461. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  7462. entity.Property(e => e.Status).HasColumnType("int(11)");
  7463. entity.Property(e => e.SwapApplyDate).HasColumnType("datetime");
  7464. entity.Property(e => e.SwapApplyOrderNo)
  7465. .HasColumnType("varchar(32)")
  7466. .HasCharSet("utf8")
  7467. .HasCollation("utf8_general_ci");
  7468. entity.Property(e => e.SwapExtProductTypes)
  7469. .HasColumnType("varchar(16)")
  7470. .HasCharSet("utf8")
  7471. .HasCollation("utf8_general_ci");
  7472. entity.Property(e => e.SwapSnNo)
  7473. .HasColumnType("varchar(32)")
  7474. .HasCharSet("utf8")
  7475. .HasCollation("utf8_general_ci");
  7476. entity.Property(e => e.SwapStatus).HasColumnType("int(11)");
  7477. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7478. entity.Property(e => e.UpdateMan)
  7479. .HasColumnType("varchar(50)")
  7480. .HasCharSet("utf8")
  7481. .HasCollation("utf8_general_ci");
  7482. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7483. entity.Property(e => e.Version).HasColumnType("int(11)");
  7484. });
  7485. modelBuilder.Entity<SysAdmin>(entity =>
  7486. {
  7487. entity.Property(e => e.Id).HasColumnType("int(11)");
  7488. entity.Property(e => e.AdminName)
  7489. .HasColumnType("varchar(50)")
  7490. .HasCharSet("utf8")
  7491. .HasCollation("utf8_general_ci");
  7492. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7493. entity.Property(e => e.CreateMan)
  7494. .HasColumnType("varchar(50)")
  7495. .HasCharSet("utf8")
  7496. .HasCollation("utf8_general_ci");
  7497. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  7498. entity.Property(e => e.Password)
  7499. .HasColumnType("varchar(32)")
  7500. .HasCharSet("utf8")
  7501. .HasCollation("utf8_general_ci");
  7502. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7503. entity.Property(e => e.RealName)
  7504. .HasColumnType("varchar(50)")
  7505. .HasCharSet("utf8")
  7506. .HasCollation("utf8_general_ci");
  7507. entity.Property(e => e.Role)
  7508. .HasColumnType("varchar(30)")
  7509. .HasCharSet("utf8")
  7510. .HasCollation("utf8_general_ci");
  7511. entity.Property(e => e.SeoDescription)
  7512. .HasColumnType("varchar(500)")
  7513. .HasCharSet("utf8")
  7514. .HasCollation("utf8_general_ci");
  7515. entity.Property(e => e.SeoKeyword)
  7516. .HasColumnType("varchar(200)")
  7517. .HasCharSet("utf8")
  7518. .HasCollation("utf8_general_ci");
  7519. entity.Property(e => e.SeoTitle)
  7520. .HasColumnType("varchar(100)")
  7521. .HasCharSet("utf8")
  7522. .HasCollation("utf8_general_ci");
  7523. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7524. entity.Property(e => e.Status).HasColumnType("int(11)");
  7525. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7526. entity.Property(e => e.UpdateMan)
  7527. .HasColumnType("varchar(50)")
  7528. .HasCharSet("utf8")
  7529. .HasCollation("utf8_general_ci");
  7530. entity.Property(e => e.Version).HasColumnType("int(11)");
  7531. });
  7532. modelBuilder.Entity<SysAdminRole>(entity =>
  7533. {
  7534. entity.Property(e => e.Id).HasColumnType("int(11)");
  7535. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7536. entity.Property(e => e.CreateMan)
  7537. .HasColumnType("varchar(50)")
  7538. .HasCharSet("utf8")
  7539. .HasCollation("utf8_general_ci");
  7540. entity.Property(e => e.Details)
  7541. .HasColumnType("longtext")
  7542. .HasCharSet("utf8")
  7543. .HasCollation("utf8_general_ci");
  7544. entity.Property(e => e.Name)
  7545. .HasColumnType("varchar(50)")
  7546. .HasCharSet("utf8")
  7547. .HasCollation("utf8_general_ci");
  7548. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7549. entity.Property(e => e.RightInfo)
  7550. .HasColumnType("longtext")
  7551. .HasCharSet("utf8")
  7552. .HasCollation("utf8_general_ci");
  7553. entity.Property(e => e.SeoDescription)
  7554. .HasColumnType("varchar(500)")
  7555. .HasCharSet("utf8")
  7556. .HasCollation("utf8_general_ci");
  7557. entity.Property(e => e.SeoKeyword)
  7558. .HasColumnType("varchar(200)")
  7559. .HasCharSet("utf8")
  7560. .HasCollation("utf8_general_ci");
  7561. entity.Property(e => e.SeoTitle)
  7562. .HasColumnType("varchar(100)")
  7563. .HasCharSet("utf8")
  7564. .HasCollation("utf8_general_ci");
  7565. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7566. entity.Property(e => e.Status).HasColumnType("int(11)");
  7567. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7568. entity.Property(e => e.UpdateMan)
  7569. .HasColumnType("varchar(50)")
  7570. .HasCharSet("utf8")
  7571. .HasCollation("utf8_general_ci");
  7572. entity.Property(e => e.Version).HasColumnType("int(11)");
  7573. });
  7574. modelBuilder.Entity<SysLog>(entity =>
  7575. {
  7576. entity.Property(e => e.Id).HasColumnType("int(11)");
  7577. entity.Property(e => e.Contents)
  7578. .HasColumnType("varchar(200)")
  7579. .HasCharSet("utf8")
  7580. .HasCollation("utf8_general_ci");
  7581. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7582. entity.Property(e => e.CreateMan)
  7583. .HasColumnType("varchar(50)")
  7584. .HasCharSet("utf8")
  7585. .HasCollation("utf8_general_ci");
  7586. });
  7587. modelBuilder.Entity<SysRechargeRecord>(entity =>
  7588. {
  7589. entity.Property(e => e.Id).HasColumnType("int(11)");
  7590. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  7591. entity.Property(e => e.BatchCode)
  7592. .HasColumnType("varchar(32)")
  7593. .HasCharSet("utf8")
  7594. .HasCollation("utf8_general_ci");
  7595. entity.Property(e => e.BizTime).HasColumnType("datetime");
  7596. entity.Property(e => e.BizType).HasColumnType("int(11)");
  7597. entity.Property(e => e.ClientIp)
  7598. .HasColumnType("varchar(15)")
  7599. .HasCharSet("utf8")
  7600. .HasCollation("utf8_general_ci");
  7601. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7602. entity.Property(e => e.CreateMan)
  7603. .HasColumnType("varchar(50)")
  7604. .HasCharSet("utf8")
  7605. .HasCollation("utf8_general_ci");
  7606. entity.Property(e => e.PartnerTradeNo)
  7607. .HasColumnType("varchar(32)")
  7608. .HasCharSet("utf8")
  7609. .HasCollation("utf8_general_ci");
  7610. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7611. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7612. entity.Property(e => e.RechargeRecNo)
  7613. .HasColumnType("varchar(32)")
  7614. .HasCharSet("utf8")
  7615. .HasCollation("utf8_general_ci");
  7616. entity.Property(e => e.SeoDescription)
  7617. .HasColumnType("varchar(500)")
  7618. .HasCharSet("utf8")
  7619. .HasCollation("utf8_general_ci");
  7620. entity.Property(e => e.SeoKeyword)
  7621. .HasColumnType("varchar(200)")
  7622. .HasCharSet("utf8")
  7623. .HasCollation("utf8_general_ci");
  7624. entity.Property(e => e.SeoTitle)
  7625. .HasColumnType("varchar(100)")
  7626. .HasCharSet("utf8")
  7627. .HasCollation("utf8_general_ci");
  7628. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7629. entity.Property(e => e.Status).HasColumnType("int(11)");
  7630. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  7631. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7632. entity.Property(e => e.UpdateMan)
  7633. .HasColumnType("varchar(50)")
  7634. .HasCharSet("utf8")
  7635. .HasCollation("utf8_general_ci");
  7636. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7637. entity.Property(e => e.Version).HasColumnType("int(11)");
  7638. });
  7639. modelBuilder.Entity<SystemSet>(entity =>
  7640. {
  7641. entity.Property(e => e.Id).HasColumnType("int(11)");
  7642. entity.Property(e => e.Address)
  7643. .HasColumnType("varchar(100)")
  7644. .HasCharSet("utf8")
  7645. .HasCollation("utf8_general_ci");
  7646. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7647. entity.Property(e => e.CreateMan)
  7648. .HasColumnType("varchar(50)")
  7649. .HasCharSet("utf8")
  7650. .HasCollation("utf8_general_ci");
  7651. entity.Property(e => e.IndexDescription)
  7652. .HasColumnType("longtext")
  7653. .HasCharSet("utf8")
  7654. .HasCollation("utf8_general_ci");
  7655. entity.Property(e => e.IndexKeyword)
  7656. .HasColumnType("varchar(200)")
  7657. .HasCharSet("utf8")
  7658. .HasCollation("utf8_general_ci");
  7659. entity.Property(e => e.Logo)
  7660. .HasColumnType("varchar(200)")
  7661. .HasCharSet("utf8")
  7662. .HasCollation("utf8_general_ci");
  7663. entity.Property(e => e.Phone)
  7664. .HasColumnType("varchar(100)")
  7665. .HasCharSet("utf8")
  7666. .HasCollation("utf8_general_ci");
  7667. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7668. entity.Property(e => e.RightInfo)
  7669. .HasColumnType("longtext")
  7670. .HasCharSet("utf8")
  7671. .HasCollation("utf8_general_ci");
  7672. entity.Property(e => e.SeoDescription)
  7673. .HasColumnType("varchar(500)")
  7674. .HasCharSet("utf8")
  7675. .HasCollation("utf8_general_ci");
  7676. entity.Property(e => e.SeoKeyword)
  7677. .HasColumnType("varchar(200)")
  7678. .HasCharSet("utf8")
  7679. .HasCollation("utf8_general_ci");
  7680. entity.Property(e => e.SeoTitle)
  7681. .HasColumnType("varchar(100)")
  7682. .HasCharSet("utf8")
  7683. .HasCollation("utf8_general_ci");
  7684. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7685. entity.Property(e => e.StartAdPhoto)
  7686. .HasColumnType("varchar(200)")
  7687. .HasCharSet("utf8")
  7688. .HasCollation("utf8_general_ci");
  7689. entity.Property(e => e.Status).HasColumnType("int(11)");
  7690. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7691. entity.Property(e => e.UpdateMan)
  7692. .HasColumnType("varchar(50)")
  7693. .HasCharSet("utf8")
  7694. .HasCollation("utf8_general_ci");
  7695. entity.Property(e => e.UploadAutoWater)
  7696. .HasColumnType("bit(1)")
  7697. .HasDefaultValueSql("b'0'");
  7698. entity.Property(e => e.UploadAutoZoom)
  7699. .HasColumnType("bit(1)")
  7700. .HasDefaultValueSql("b'0'");
  7701. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  7702. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  7703. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  7704. entity.Property(e => e.UploadExt)
  7705. .HasColumnType("varchar(100)")
  7706. .HasCharSet("utf8")
  7707. .HasCollation("utf8_general_ci");
  7708. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  7709. entity.Property(e => e.UploadOss)
  7710. .HasColumnType("bit(1)")
  7711. .HasDefaultValueSql("b'0'");
  7712. entity.Property(e => e.UploadWaterPath)
  7713. .HasColumnType("varchar(200)")
  7714. .HasCharSet("utf8")
  7715. .HasCollation("utf8_general_ci");
  7716. entity.Property(e => e.UploadWaterPosition)
  7717. .HasColumnType("varchar(15)")
  7718. .HasCharSet("utf8")
  7719. .HasCollation("utf8_general_ci");
  7720. entity.Property(e => e.Version).HasColumnType("int(11)");
  7721. entity.Property(e => e.WebName)
  7722. .HasColumnType("varchar(50)")
  7723. .HasCharSet("utf8")
  7724. .HasCollation("utf8_general_ci");
  7725. entity.Property(e => e.WebStatCode)
  7726. .HasColumnType("longtext")
  7727. .HasCharSet("utf8")
  7728. .HasCollation("utf8_general_ci");
  7729. entity.Property(e => e.WebUrl)
  7730. .HasColumnType("varchar(200)")
  7731. .HasCharSet("utf8")
  7732. .HasCollation("utf8_general_ci");
  7733. });
  7734. modelBuilder.Entity<TeamApply>(entity =>
  7735. {
  7736. entity.Property(e => e.Id).HasColumnType("int(11)");
  7737. entity.Property(e => e.Areas)
  7738. .HasColumnType("varchar(30)")
  7739. .HasCharSet("utf8")
  7740. .HasCollation("utf8_general_ci");
  7741. entity.Property(e => e.AuditRemark)
  7742. .HasColumnType("varchar(64)")
  7743. .HasCharSet("utf8")
  7744. .HasCollation("utf8_general_ci");
  7745. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7746. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7747. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7748. entity.Property(e => e.CreateMan)
  7749. .HasColumnType("varchar(50)")
  7750. .HasCharSet("utf8")
  7751. .HasCollation("utf8_general_ci");
  7752. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7753. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7754. entity.Property(e => e.EnterEndDate).HasColumnType("datetime");
  7755. entity.Property(e => e.EnterStartDate).HasColumnType("datetime");
  7756. entity.Property(e => e.ManagerName)
  7757. .HasColumnType("varchar(32)")
  7758. .HasCharSet("utf8")
  7759. .HasCollation("utf8_general_ci");
  7760. entity.Property(e => e.ManagerNo)
  7761. .HasColumnType("varchar(32)")
  7762. .HasCharSet("utf8")
  7763. .HasCollation("utf8_general_ci");
  7764. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7765. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7766. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7767. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7768. entity.Property(e => e.Remark)
  7769. .HasColumnType("varchar(64)")
  7770. .HasCharSet("utf8")
  7771. .HasCollation("utf8_general_ci");
  7772. entity.Property(e => e.SeoDescription)
  7773. .HasColumnType("varchar(500)")
  7774. .HasCharSet("utf8")
  7775. .HasCollation("utf8_general_ci");
  7776. entity.Property(e => e.SeoKeyword)
  7777. .HasColumnType("varchar(200)")
  7778. .HasCharSet("utf8")
  7779. .HasCollation("utf8_general_ci");
  7780. entity.Property(e => e.SeoTitle)
  7781. .HasColumnType("varchar(100)")
  7782. .HasCharSet("utf8")
  7783. .HasCollation("utf8_general_ci");
  7784. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7785. entity.Property(e => e.Status).HasColumnType("int(11)");
  7786. entity.Property(e => e.TeamName)
  7787. .HasColumnType("varchar(32)")
  7788. .HasCharSet("utf8")
  7789. .HasCollation("utf8_general_ci");
  7790. entity.Property(e => e.TeamNo)
  7791. .HasColumnType("varchar(32)")
  7792. .HasCharSet("utf8")
  7793. .HasCollation("utf8_general_ci");
  7794. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7795. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7796. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7797. entity.Property(e => e.UpdateMan)
  7798. .HasColumnType("varchar(50)")
  7799. .HasCharSet("utf8")
  7800. .HasCollation("utf8_general_ci");
  7801. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7802. entity.Property(e => e.Version).HasColumnType("int(11)");
  7803. entity.Property(e => e.WatchWord)
  7804. .HasColumnType("varchar(32)")
  7805. .HasCharSet("utf8")
  7806. .HasCollation("utf8_general_ci");
  7807. });
  7808. modelBuilder.Entity<TeamApplyForTeamName>(entity =>
  7809. {
  7810. entity.HasKey(e => e.TeamName)
  7811. .HasName("PRIMARY");
  7812. entity.Property(e => e.TeamName)
  7813. .HasColumnType("varchar(32)")
  7814. .HasCharSet("utf8")
  7815. .HasCollation("utf8_general_ci");
  7816. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7817. });
  7818. modelBuilder.Entity<TeamApplyForTeamNo>(entity =>
  7819. {
  7820. entity.HasKey(e => e.TeamNo)
  7821. .HasName("PRIMARY");
  7822. entity.Property(e => e.TeamNo)
  7823. .HasColumnType("varchar(32)")
  7824. .HasCharSet("utf8")
  7825. .HasCollation("utf8_general_ci");
  7826. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7827. });
  7828. modelBuilder.Entity<TeamBlackList>(entity =>
  7829. {
  7830. entity.Property(e => e.Id).HasColumnType("int(11)");
  7831. entity.Property(e => e.BlackStatus).HasColumnType("int(11)");
  7832. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7833. entity.Property(e => e.CreateMan)
  7834. .HasColumnType("varchar(50)")
  7835. .HasCharSet("utf8")
  7836. .HasCollation("utf8_general_ci");
  7837. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7838. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7839. entity.Property(e => e.ManagerName)
  7840. .HasColumnType("varchar(32)")
  7841. .HasCharSet("utf8")
  7842. .HasCollation("utf8_general_ci");
  7843. entity.Property(e => e.ManagerNo)
  7844. .HasColumnType("varchar(32)")
  7845. .HasCharSet("utf8")
  7846. .HasCollation("utf8_general_ci");
  7847. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7848. entity.Property(e => e.Remark)
  7849. .HasColumnType("varchar(64)")
  7850. .HasCharSet("utf8")
  7851. .HasCollation("utf8_general_ci");
  7852. entity.Property(e => e.SeoDescription)
  7853. .HasColumnType("varchar(500)")
  7854. .HasCharSet("utf8")
  7855. .HasCollation("utf8_general_ci");
  7856. entity.Property(e => e.SeoKeyword)
  7857. .HasColumnType("varchar(200)")
  7858. .HasCharSet("utf8")
  7859. .HasCollation("utf8_general_ci");
  7860. entity.Property(e => e.SeoTitle)
  7861. .HasColumnType("varchar(100)")
  7862. .HasCharSet("utf8")
  7863. .HasCollation("utf8_general_ci");
  7864. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7865. entity.Property(e => e.Status).HasColumnType("int(11)");
  7866. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7867. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7868. entity.Property(e => e.UpdateMan)
  7869. .HasColumnType("varchar(50)")
  7870. .HasCharSet("utf8")
  7871. .HasCollation("utf8_general_ci");
  7872. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7873. entity.Property(e => e.Version).HasColumnType("int(11)");
  7874. });
  7875. modelBuilder.Entity<TeamConfig>(entity =>
  7876. {
  7877. entity.Property(e => e.Id).HasColumnType("int(11)");
  7878. entity.Property(e => e.BlacklistCycle).HasColumnType("int(11)");
  7879. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7880. entity.Property(e => e.CreateMan)
  7881. .HasColumnType("varchar(50)")
  7882. .HasCharSet("utf8")
  7883. .HasCollation("utf8_general_ci");
  7884. entity.Property(e => e.EnterEndMin).HasColumnType("int(11)");
  7885. entity.Property(e => e.LimitBuddyNo)
  7886. .HasColumnType("varchar(128)")
  7887. .HasCharSet("utf8")
  7888. .HasCollation("utf8_general_ci");
  7889. entity.Property(e => e.MaxCycleNum).HasColumnType("int(11)");
  7890. entity.Property(e => e.MaxStartDayLimit).HasColumnType("int(11)");
  7891. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7892. entity.Property(e => e.MinCycleNum).HasColumnType("int(11)");
  7893. entity.Property(e => e.MinStartDayLimit).HasColumnType("int(11)");
  7894. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7895. entity.Property(e => e.OverlineStatus)
  7896. .HasColumnType("bit(1)")
  7897. .HasDefaultValueSql("b'0'");
  7898. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7899. entity.Property(e => e.Remark)
  7900. .HasColumnType("varchar(64)")
  7901. .HasCharSet("utf8")
  7902. .HasCollation("utf8_general_ci");
  7903. entity.Property(e => e.SeoDescription)
  7904. .HasColumnType("varchar(500)")
  7905. .HasCharSet("utf8")
  7906. .HasCollation("utf8_general_ci");
  7907. entity.Property(e => e.SeoKeyword)
  7908. .HasColumnType("varchar(200)")
  7909. .HasCharSet("utf8")
  7910. .HasCollation("utf8_general_ci");
  7911. entity.Property(e => e.SeoTitle)
  7912. .HasColumnType("varchar(100)")
  7913. .HasCharSet("utf8")
  7914. .HasCollation("utf8_general_ci");
  7915. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7916. entity.Property(e => e.Status).HasColumnType("int(11)");
  7917. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7918. entity.Property(e => e.UpdateMan)
  7919. .HasColumnType("varchar(50)")
  7920. .HasCharSet("utf8")
  7921. .HasCollation("utf8_general_ci");
  7922. entity.Property(e => e.Version).HasColumnType("int(11)");
  7923. });
  7924. modelBuilder.Entity<TeamDayTop>(entity =>
  7925. {
  7926. entity.Property(e => e.Id).HasColumnType("int(11)");
  7927. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7928. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7929. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7930. entity.Property(e => e.CreateMan)
  7931. .HasColumnType("varchar(50)")
  7932. .HasCharSet("utf8")
  7933. .HasCollation("utf8_general_ci");
  7934. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7935. entity.Property(e => e.Remark)
  7936. .HasColumnType("varchar(64)")
  7937. .HasCharSet("utf8")
  7938. .HasCollation("utf8_general_ci");
  7939. entity.Property(e => e.SeoDescription)
  7940. .HasColumnType("varchar(500)")
  7941. .HasCharSet("utf8")
  7942. .HasCollation("utf8_general_ci");
  7943. entity.Property(e => e.SeoKeyword)
  7944. .HasColumnType("varchar(200)")
  7945. .HasCharSet("utf8")
  7946. .HasCollation("utf8_general_ci");
  7947. entity.Property(e => e.SeoTitle)
  7948. .HasColumnType("varchar(100)")
  7949. .HasCharSet("utf8")
  7950. .HasCollation("utf8_general_ci");
  7951. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7952. entity.Property(e => e.StatDate)
  7953. .HasColumnType("varchar(8)")
  7954. .HasCharSet("utf8")
  7955. .HasCollation("utf8_general_ci");
  7956. entity.Property(e => e.StatMonth)
  7957. .HasColumnType("varchar(6)")
  7958. .HasCharSet("utf8")
  7959. .HasCollation("utf8_general_ci");
  7960. entity.Property(e => e.Status).HasColumnType("int(11)");
  7961. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7962. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7963. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7964. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7965. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7966. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7967. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7968. entity.Property(e => e.UpdateMan)
  7969. .HasColumnType("varchar(50)")
  7970. .HasCharSet("utf8")
  7971. .HasCollation("utf8_general_ci");
  7972. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7973. entity.Property(e => e.Version).HasColumnType("int(11)");
  7974. });
  7975. modelBuilder.Entity<TeamOfferApply>(entity =>
  7976. {
  7977. entity.Property(e => e.Id).HasColumnType("int(11)");
  7978. entity.Property(e => e.Areas)
  7979. .HasColumnType("varchar(30)")
  7980. .HasCharSet("utf8")
  7981. .HasCollation("utf8_general_ci");
  7982. entity.Property(e => e.AuditRemark)
  7983. .HasColumnType("varchar(64)")
  7984. .HasCharSet("utf8")
  7985. .HasCollation("utf8_general_ci");
  7986. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7987. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7988. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7989. entity.Property(e => e.CreateMan)
  7990. .HasColumnType("varchar(50)")
  7991. .HasCharSet("utf8")
  7992. .HasCollation("utf8_general_ci");
  7993. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7994. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7995. entity.Property(e => e.EnterDate).HasColumnType("datetime");
  7996. entity.Property(e => e.ManagerName)
  7997. .HasColumnType("varchar(32)")
  7998. .HasCharSet("utf8")
  7999. .HasCollation("utf8_general_ci");
  8000. entity.Property(e => e.ManagerNo)
  8001. .HasColumnType("varchar(32)")
  8002. .HasCharSet("utf8")
  8003. .HasCollation("utf8_general_ci");
  8004. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  8005. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8006. entity.Property(e => e.Remark)
  8007. .HasColumnType("varchar(64)")
  8008. .HasCharSet("utf8")
  8009. .HasCollation("utf8_general_ci");
  8010. entity.Property(e => e.SeoDescription)
  8011. .HasColumnType("varchar(500)")
  8012. .HasCharSet("utf8")
  8013. .HasCollation("utf8_general_ci");
  8014. entity.Property(e => e.SeoKeyword)
  8015. .HasColumnType("varchar(200)")
  8016. .HasCharSet("utf8")
  8017. .HasCollation("utf8_general_ci");
  8018. entity.Property(e => e.SeoTitle)
  8019. .HasColumnType("varchar(100)")
  8020. .HasCharSet("utf8")
  8021. .HasCollation("utf8_general_ci");
  8022. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8023. entity.Property(e => e.Status).HasColumnType("int(11)");
  8024. entity.Property(e => e.TeamApplyStatus).HasColumnType("int(11)");
  8025. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  8026. entity.Property(e => e.TeamLeader).HasColumnType("int(11)");
  8027. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  8028. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8029. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8030. entity.Property(e => e.UpdateMan)
  8031. .HasColumnType("varchar(50)")
  8032. .HasCharSet("utf8")
  8033. .HasCollation("utf8_general_ci");
  8034. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8035. entity.Property(e => e.Version).HasColumnType("int(11)");
  8036. });
  8037. modelBuilder.Entity<TeamPersonDayTop>(entity =>
  8038. {
  8039. entity.Property(e => e.Id).HasColumnType("int(11)");
  8040. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  8041. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8042. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8043. entity.Property(e => e.CreateMan)
  8044. .HasColumnType("varchar(50)")
  8045. .HasCharSet("utf8")
  8046. .HasCollation("utf8_general_ci");
  8047. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8048. entity.Property(e => e.Remark)
  8049. .HasColumnType("varchar(64)")
  8050. .HasCharSet("utf8")
  8051. .HasCollation("utf8_general_ci");
  8052. entity.Property(e => e.SeoDescription)
  8053. .HasColumnType("varchar(500)")
  8054. .HasCharSet("utf8")
  8055. .HasCollation("utf8_general_ci");
  8056. entity.Property(e => e.SeoKeyword)
  8057. .HasColumnType("varchar(200)")
  8058. .HasCharSet("utf8")
  8059. .HasCollation("utf8_general_ci");
  8060. entity.Property(e => e.SeoTitle)
  8061. .HasColumnType("varchar(100)")
  8062. .HasCharSet("utf8")
  8063. .HasCollation("utf8_general_ci");
  8064. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8065. entity.Property(e => e.StatDate)
  8066. .HasColumnType("varchar(8)")
  8067. .HasCharSet("utf8")
  8068. .HasCollation("utf8_general_ci");
  8069. entity.Property(e => e.StatMonth)
  8070. .HasColumnType("varchar(6)")
  8071. .HasCharSet("utf8")
  8072. .HasCollation("utf8_general_ci");
  8073. entity.Property(e => e.Status).HasColumnType("int(11)");
  8074. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  8075. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  8076. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  8077. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  8078. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  8079. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8080. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8081. entity.Property(e => e.UpdateMan)
  8082. .HasColumnType("varchar(50)")
  8083. .HasCharSet("utf8")
  8084. .HasCollation("utf8_general_ci");
  8085. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8086. entity.Property(e => e.Version).HasColumnType("int(11)");
  8087. });
  8088. modelBuilder.Entity<TmpCert>(entity =>
  8089. {
  8090. entity.HasKey(e => e.MakerCode)
  8091. .HasName("PRIMARY");
  8092. entity.Property(e => e.MakerCode)
  8093. .HasColumnType("varchar(50)")
  8094. .HasCharSet("latin1")
  8095. .HasCollation("latin1_swedish_ci");
  8096. entity.Property(e => e.CertId)
  8097. .HasColumnType("varchar(50)")
  8098. .HasCharSet("latin1")
  8099. .HasCollation("latin1_swedish_ci");
  8100. });
  8101. modelBuilder.Entity<TmpTradeNo>(entity =>
  8102. {
  8103. entity.HasKey(e => e.RecordNo)
  8104. .HasName("PRIMARY");
  8105. entity.Property(e => e.RecordNo)
  8106. .HasColumnType("varchar(50)")
  8107. .HasCharSet("latin1")
  8108. .HasCollation("latin1_swedish_ci");
  8109. });
  8110. modelBuilder.Entity<TradeDaySummary>(entity =>
  8111. {
  8112. entity.Property(e => e.Id).HasColumnType("int(11)");
  8113. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8114. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8115. entity.Property(e => e.CreateMan)
  8116. .HasColumnType("varchar(50)")
  8117. .HasCharSet("utf8")
  8118. .HasCollation("utf8_general_ci");
  8119. entity.Property(e => e.HelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8120. entity.Property(e => e.HelpDirectDebitCapNum).HasColumnType("decimal(18,2)");
  8121. entity.Property(e => e.HelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8122. entity.Property(e => e.HelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8123. entity.Property(e => e.HelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8124. entity.Property(e => e.HelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8125. entity.Property(e => e.HelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8126. entity.Property(e => e.HelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8127. entity.Property(e => e.HelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  8128. entity.Property(e => e.HelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8129. entity.Property(e => e.HelpNonDirectDebitCapNum).HasColumnType("decimal(18,2)");
  8130. entity.Property(e => e.HelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8131. entity.Property(e => e.HelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8132. entity.Property(e => e.HelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8133. entity.Property(e => e.HelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8134. entity.Property(e => e.HelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8135. entity.Property(e => e.HelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8136. entity.Property(e => e.HelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  8137. entity.Property(e => e.MgrName)
  8138. .HasColumnType("varchar(32)")
  8139. .HasCharSet("utf8")
  8140. .HasCollation("utf8_general_ci");
  8141. entity.Property(e => e.MgrNo)
  8142. .HasColumnType("varchar(16)")
  8143. .HasCharSet("utf8")
  8144. .HasCollation("utf8_general_ci");
  8145. entity.Property(e => e.NotHelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8146. entity.Property(e => e.NotHelpDirectDebitCapNum).HasColumnType("int(11)");
  8147. entity.Property(e => e.NotHelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8148. entity.Property(e => e.NotHelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8149. entity.Property(e => e.NotHelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8150. entity.Property(e => e.NotHelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8151. entity.Property(e => e.NotHelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8152. entity.Property(e => e.NotHelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8153. entity.Property(e => e.NotHelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  8154. entity.Property(e => e.NotHelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  8155. entity.Property(e => e.NotHelpNonDirectDebitCapNum).HasColumnType("int(11)");
  8156. entity.Property(e => e.NotHelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  8157. entity.Property(e => e.NotHelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  8158. entity.Property(e => e.NotHelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8159. entity.Property(e => e.NotHelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8160. entity.Property(e => e.NotHelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  8161. entity.Property(e => e.NotHelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  8162. entity.Property(e => e.NotHelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  8163. entity.Property(e => e.PayType).HasColumnType("int(11)");
  8164. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8165. entity.Property(e => e.SeoDescription)
  8166. .HasColumnType("varchar(500)")
  8167. .HasCharSet("utf8")
  8168. .HasCollation("utf8_general_ci");
  8169. entity.Property(e => e.SeoKeyword)
  8170. .HasColumnType("varchar(200)")
  8171. .HasCharSet("utf8")
  8172. .HasCollation("utf8_general_ci");
  8173. entity.Property(e => e.SeoTitle)
  8174. .HasColumnType("varchar(100)")
  8175. .HasCharSet("utf8")
  8176. .HasCollation("utf8_general_ci");
  8177. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8178. entity.Property(e => e.Status).HasColumnType("int(11)");
  8179. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8180. entity.Property(e => e.TradeDate)
  8181. .HasColumnType("varchar(8)")
  8182. .HasCharSet("utf8")
  8183. .HasCollation("utf8_general_ci");
  8184. entity.Property(e => e.TradeMonth)
  8185. .HasColumnType("varchar(6)")
  8186. .HasCharSet("utf8")
  8187. .HasCollation("utf8_general_ci");
  8188. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8189. entity.Property(e => e.UpdateMan)
  8190. .HasColumnType("varchar(50)")
  8191. .HasCharSet("utf8")
  8192. .HasCollation("utf8_general_ci");
  8193. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8194. entity.Property(e => e.Version).HasColumnType("int(11)");
  8195. entity.Property(e => e.VipFlag).HasColumnType("int(11)");
  8196. });
  8197. modelBuilder.Entity<TradeRecord>(entity =>
  8198. {
  8199. entity.Property(e => e.Id).HasColumnType("int(11)");
  8200. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  8201. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8202. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  8203. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  8204. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8205. entity.Property(e => e.CreateMan)
  8206. .HasColumnType("varchar(50)")
  8207. .HasCharSet("utf8")
  8208. .HasCollation("utf8_general_ci");
  8209. entity.Property(e => e.DirectFlag)
  8210. .HasColumnType("bit(1)")
  8211. .HasDefaultValueSql("b'0'");
  8212. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  8213. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  8214. entity.Property(e => e.MerHelpFlag)
  8215. .HasColumnType("bit(1)")
  8216. .HasDefaultValueSql("b'0'");
  8217. entity.Property(e => e.MerNo)
  8218. .HasColumnType("varchar(32)")
  8219. .HasCharSet("utf8")
  8220. .HasCollation("utf8_general_ci");
  8221. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  8222. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8223. entity.Property(e => e.ParentNav)
  8224. .HasColumnType("mediumtext")
  8225. .HasCharSet("utf8")
  8226. .HasCollation("utf8_general_ci");
  8227. entity.Property(e => e.PayType).HasColumnType("int(11)");
  8228. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  8229. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8230. entity.Property(e => e.RecordNo)
  8231. .HasColumnType("varchar(50)")
  8232. .HasCharSet("utf8")
  8233. .HasCollation("utf8_general_ci");
  8234. entity.Property(e => e.Remark)
  8235. .HasColumnType("varchar(64)")
  8236. .HasCharSet("utf8")
  8237. .HasCollation("utf8_general_ci");
  8238. entity.Property(e => e.SeoDescription)
  8239. .HasColumnType("varchar(500)")
  8240. .HasCharSet("utf8")
  8241. .HasCollation("utf8_general_ci");
  8242. entity.Property(e => e.SeoKeyword)
  8243. .HasColumnType("varchar(200)")
  8244. .HasCharSet("utf8")
  8245. .HasCollation("utf8_general_ci");
  8246. entity.Property(e => e.SeoTitle)
  8247. .HasColumnType("varchar(100)")
  8248. .HasCharSet("utf8")
  8249. .HasCollation("utf8_general_ci");
  8250. entity.Property(e => e.SnNo)
  8251. .HasColumnType("varchar(32)")
  8252. .HasCharSet("utf8")
  8253. .HasCollation("utf8_general_ci");
  8254. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8255. entity.Property(e => e.Status).HasColumnType("int(11)");
  8256. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8257. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8258. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  8259. entity.Property(e => e.TradeSerialNo)
  8260. .HasColumnType("varchar(48)")
  8261. .HasCharSet("utf8")
  8262. .HasCollation("utf8_general_ci");
  8263. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8264. entity.Property(e => e.UpdateMan)
  8265. .HasColumnType("varchar(50)")
  8266. .HasCharSet("utf8")
  8267. .HasCollation("utf8_general_ci");
  8268. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8269. entity.Property(e => e.Version).HasColumnType("int(11)");
  8270. entity.Property(e => e.VipFlag).HasColumnType("int(11)");
  8271. });
  8272. modelBuilder.Entity<TradeRecordTest>(entity =>
  8273. {
  8274. entity.Property(e => e.Id).HasColumnType("int(11)");
  8275. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  8276. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8277. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  8278. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  8279. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8280. entity.Property(e => e.CreateMan)
  8281. .HasColumnType("varchar(50)")
  8282. .HasCharSet("utf8")
  8283. .HasCollation("utf8_general_ci");
  8284. entity.Property(e => e.DirectFlag)
  8285. .HasColumnType("bit(1)")
  8286. .HasDefaultValueSql("b'0'");
  8287. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  8288. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  8289. entity.Property(e => e.MerHelpFlag)
  8290. .HasColumnType("bit(1)")
  8291. .HasDefaultValueSql("b'0'");
  8292. entity.Property(e => e.MerNo)
  8293. .HasColumnType("varchar(32)")
  8294. .HasCharSet("utf8")
  8295. .HasCollation("utf8_general_ci");
  8296. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  8297. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8298. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  8299. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8300. entity.Property(e => e.RecordNo)
  8301. .HasColumnType("varchar(100)")
  8302. .HasCharSet("utf8")
  8303. .HasCollation("utf8_general_ci");
  8304. entity.Property(e => e.Remark)
  8305. .HasColumnType("varchar(64)")
  8306. .HasCharSet("utf8")
  8307. .HasCollation("utf8_general_ci");
  8308. entity.Property(e => e.SeoDescription)
  8309. .HasColumnType("varchar(500)")
  8310. .HasCharSet("utf8")
  8311. .HasCollation("utf8_general_ci");
  8312. entity.Property(e => e.SeoKeyword)
  8313. .HasColumnType("varchar(200)")
  8314. .HasCharSet("utf8")
  8315. .HasCollation("utf8_general_ci");
  8316. entity.Property(e => e.SeoTitle)
  8317. .HasColumnType("varchar(100)")
  8318. .HasCharSet("utf8")
  8319. .HasCollation("utf8_general_ci");
  8320. entity.Property(e => e.SnNo)
  8321. .HasColumnType("varchar(32)")
  8322. .HasCharSet("utf8")
  8323. .HasCollation("utf8_general_ci");
  8324. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8325. entity.Property(e => e.Status).HasColumnType("int(11)");
  8326. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8327. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8328. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  8329. entity.Property(e => e.TradeSerialNo)
  8330. .HasColumnType("varchar(48)")
  8331. .HasCharSet("utf8")
  8332. .HasCollation("utf8_general_ci");
  8333. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8334. entity.Property(e => e.UpdateMan)
  8335. .HasColumnType("varchar(50)")
  8336. .HasCharSet("utf8")
  8337. .HasCollation("utf8_general_ci");
  8338. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8339. entity.Property(e => e.Version).HasColumnType("int(11)");
  8340. });
  8341. modelBuilder.Entity<UploadParams>(entity =>
  8342. {
  8343. entity.Property(e => e.Id).HasColumnType("int(11)");
  8344. entity.Property(e => e.ColumnEnName)
  8345. .HasColumnType("varchar(50)")
  8346. .HasCharSet("utf8")
  8347. .HasCollation("utf8_general_ci");
  8348. entity.Property(e => e.ColumnName)
  8349. .HasColumnType("varchar(50)")
  8350. .HasCharSet("utf8")
  8351. .HasCollation("utf8_general_ci");
  8352. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8353. entity.Property(e => e.CreateMan)
  8354. .HasColumnType("varchar(50)")
  8355. .HasCharSet("utf8")
  8356. .HasCollation("utf8_general_ci");
  8357. entity.Property(e => e.ParamString)
  8358. .HasColumnType("varchar(200)")
  8359. .HasCharSet("utf8")
  8360. .HasCollation("utf8_general_ci");
  8361. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8362. entity.Property(e => e.SeoDescription)
  8363. .HasColumnType("varchar(500)")
  8364. .HasCharSet("utf8")
  8365. .HasCollation("utf8_general_ci");
  8366. entity.Property(e => e.SeoKeyword)
  8367. .HasColumnType("varchar(200)")
  8368. .HasCharSet("utf8")
  8369. .HasCollation("utf8_general_ci");
  8370. entity.Property(e => e.SeoTitle)
  8371. .HasColumnType("varchar(100)")
  8372. .HasCharSet("utf8")
  8373. .HasCollation("utf8_general_ci");
  8374. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8375. entity.Property(e => e.Status).HasColumnType("int(11)");
  8376. entity.Property(e => e.TableEnName)
  8377. .HasColumnType("varchar(50)")
  8378. .HasCharSet("utf8")
  8379. .HasCollation("utf8_general_ci");
  8380. entity.Property(e => e.TableName)
  8381. .HasColumnType("varchar(50)")
  8382. .HasCharSet("utf8")
  8383. .HasCollation("utf8_general_ci");
  8384. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8385. entity.Property(e => e.UpdateMan)
  8386. .HasColumnType("varchar(50)")
  8387. .HasCharSet("utf8")
  8388. .HasCollation("utf8_general_ci");
  8389. entity.Property(e => e.Version).HasColumnType("int(11)");
  8390. });
  8391. modelBuilder.Entity<UserAccount>(entity =>
  8392. {
  8393. entity.Property(e => e.Id).HasColumnType("int(11)");
  8394. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  8395. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  8396. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8397. entity.Property(e => e.CreateMan)
  8398. .HasColumnType("varchar(50)")
  8399. .HasCharSet("utf8")
  8400. .HasCollation("utf8_general_ci");
  8401. entity.Property(e => e.FixedAmount).HasColumnType("decimal(18,2)");
  8402. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  8403. entity.Property(e => e.LockStatus).HasColumnType("int(11)");
  8404. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8405. entity.Property(e => e.SeoDescription)
  8406. .HasColumnType("varchar(500)")
  8407. .HasCharSet("utf8")
  8408. .HasCollation("utf8_general_ci");
  8409. entity.Property(e => e.SeoKeyword)
  8410. .HasColumnType("varchar(200)")
  8411. .HasCharSet("utf8")
  8412. .HasCollation("utf8_general_ci");
  8413. entity.Property(e => e.SeoTitle)
  8414. .HasColumnType("varchar(100)")
  8415. .HasCharSet("utf8")
  8416. .HasCollation("utf8_general_ci");
  8417. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8418. entity.Property(e => e.Status).HasColumnType("int(11)");
  8419. entity.Property(e => e.TeamTotalOverProfit).HasColumnType("decimal(18,2)");
  8420. entity.Property(e => e.TeamTotalProfit).HasColumnType("decimal(18,2)");
  8421. entity.Property(e => e.TeamTotalServiceProfit).HasColumnType("decimal(18,2)");
  8422. entity.Property(e => e.TempAmount).HasColumnType("decimal(18,2)");
  8423. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  8424. entity.Property(e => e.TotalOverProfit).HasColumnType("decimal(18,2)");
  8425. entity.Property(e => e.TotalProfit).HasColumnType("decimal(18,2)");
  8426. entity.Property(e => e.TotalServiceProfit).HasColumnType("decimal(18,2)");
  8427. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8428. entity.Property(e => e.UpdateMan)
  8429. .HasColumnType("varchar(50)")
  8430. .HasCharSet("utf8")
  8431. .HasCollation("utf8_general_ci");
  8432. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8433. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  8434. entity.Property(e => e.UserType).HasColumnType("int(11)");
  8435. entity.Property(e => e.Version).HasColumnType("int(11)");
  8436. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  8437. });
  8438. modelBuilder.Entity<UserAccountRecord>(entity =>
  8439. {
  8440. entity.Property(e => e.Id).HasColumnType("int(11)");
  8441. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  8442. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  8443. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  8444. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  8445. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  8446. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  8447. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  8448. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  8449. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8450. entity.Property(e => e.CreateMan)
  8451. .HasColumnType("varchar(50)")
  8452. .HasCharSet("utf8")
  8453. .HasCollation("utf8_general_ci");
  8454. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  8455. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8456. entity.Property(e => e.Remark)
  8457. .HasColumnType("varchar(64)")
  8458. .HasCharSet("utf8")
  8459. .HasCollation("utf8_general_ci");
  8460. entity.Property(e => e.SeoDescription)
  8461. .HasColumnType("varchar(500)")
  8462. .HasCharSet("utf8")
  8463. .HasCollation("utf8_general_ci");
  8464. entity.Property(e => e.SeoKeyword)
  8465. .HasColumnType("varchar(200)")
  8466. .HasCharSet("utf8")
  8467. .HasCollation("utf8_general_ci");
  8468. entity.Property(e => e.SeoTitle)
  8469. .HasColumnType("varchar(100)")
  8470. .HasCharSet("utf8")
  8471. .HasCollation("utf8_general_ci");
  8472. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8473. entity.Property(e => e.Status).HasColumnType("int(11)");
  8474. entity.Property(e => e.TransRecordNo)
  8475. .HasColumnType("varchar(32)")
  8476. .HasCharSet("utf8")
  8477. .HasCollation("utf8_general_ci");
  8478. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8479. entity.Property(e => e.UpdateMan)
  8480. .HasColumnType("varchar(50)")
  8481. .HasCharSet("utf8")
  8482. .HasCollation("utf8_general_ci");
  8483. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8484. entity.Property(e => e.Version).HasColumnType("int(11)");
  8485. });
  8486. modelBuilder.Entity<UserAddress>(entity =>
  8487. {
  8488. entity.Property(e => e.Id).HasColumnType("int(11)");
  8489. entity.Property(e => e.Address)
  8490. .HasColumnType("varchar(100)")
  8491. .HasCharSet("utf8")
  8492. .HasCollation("utf8_general_ci");
  8493. entity.Property(e => e.Areas)
  8494. .HasColumnType("varchar(30)")
  8495. .HasCharSet("utf8")
  8496. .HasCollation("utf8_general_ci");
  8497. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8498. entity.Property(e => e.CreateMan)
  8499. .HasColumnType("varchar(50)")
  8500. .HasCharSet("utf8")
  8501. .HasCollation("utf8_general_ci");
  8502. entity.Property(e => e.IsDefault)
  8503. .HasColumnType("bit(1)")
  8504. .HasDefaultValueSql("b'0'");
  8505. entity.Property(e => e.Mobile)
  8506. .HasColumnType("varchar(11)")
  8507. .HasCharSet("utf8")
  8508. .HasCollation("utf8_general_ci");
  8509. entity.Property(e => e.PostalCode)
  8510. .HasColumnType("varchar(6)")
  8511. .HasCharSet("utf8")
  8512. .HasCollation("utf8_general_ci");
  8513. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8514. entity.Property(e => e.RealName)
  8515. .HasColumnType("varchar(10)")
  8516. .HasCharSet("utf8")
  8517. .HasCollation("utf8_general_ci");
  8518. entity.Property(e => e.SeoDescription)
  8519. .HasColumnType("varchar(500)")
  8520. .HasCharSet("utf8")
  8521. .HasCollation("utf8_general_ci");
  8522. entity.Property(e => e.SeoKeyword)
  8523. .HasColumnType("varchar(200)")
  8524. .HasCharSet("utf8")
  8525. .HasCollation("utf8_general_ci");
  8526. entity.Property(e => e.SeoTitle)
  8527. .HasColumnType("varchar(100)")
  8528. .HasCharSet("utf8")
  8529. .HasCollation("utf8_general_ci");
  8530. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8531. entity.Property(e => e.Status).HasColumnType("int(11)");
  8532. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8533. entity.Property(e => e.UpdateMan)
  8534. .HasColumnType("varchar(50)")
  8535. .HasCharSet("utf8")
  8536. .HasCollation("utf8_general_ci");
  8537. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8538. entity.Property(e => e.Version).HasColumnType("int(11)");
  8539. });
  8540. modelBuilder.Entity<UserAuthRecord>(entity =>
  8541. {
  8542. entity.Property(e => e.Id).HasColumnType("int(11)");
  8543. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  8544. entity.Property(e => e.BankCardAccount)
  8545. .HasColumnType("varchar(32)")
  8546. .HasCharSet("utf8")
  8547. .HasCollation("utf8_general_ci");
  8548. entity.Property(e => e.BankMobile)
  8549. .HasColumnType("varchar(11)")
  8550. .HasCharSet("utf8")
  8551. .HasCollation("utf8_general_ci");
  8552. entity.Property(e => e.BankName)
  8553. .HasColumnType("varchar(64)")
  8554. .HasCharSet("utf8")
  8555. .HasCollation("utf8_general_ci");
  8556. entity.Property(e => e.ChannelCode)
  8557. .HasColumnType("varchar(16)")
  8558. .HasCharSet("utf8")
  8559. .HasCollation("utf8_general_ci");
  8560. entity.Property(e => e.ChannelName)
  8561. .HasColumnType("varchar(32)")
  8562. .HasCharSet("utf8")
  8563. .HasCollation("utf8_general_ci");
  8564. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8565. entity.Property(e => e.CreateMan)
  8566. .HasColumnType("varchar(50)")
  8567. .HasCharSet("utf8")
  8568. .HasCollation("utf8_general_ci");
  8569. entity.Property(e => e.IdcardNo)
  8570. .HasColumnType("varchar(18)")
  8571. .HasCharSet("utf8")
  8572. .HasCollation("utf8_general_ci");
  8573. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8574. entity.Property(e => e.RealName)
  8575. .HasColumnType("varchar(32)")
  8576. .HasCharSet("utf8")
  8577. .HasCollation("utf8_general_ci");
  8578. entity.Property(e => e.ReqData)
  8579. .HasColumnType("varchar(2048)")
  8580. .HasCharSet("utf8")
  8581. .HasCollation("utf8_general_ci");
  8582. entity.Property(e => e.ResData)
  8583. .HasColumnType("varchar(2048)")
  8584. .HasCharSet("utf8")
  8585. .HasCollation("utf8_general_ci");
  8586. entity.Property(e => e.ReturnCode)
  8587. .HasColumnType("varchar(32)")
  8588. .HasCharSet("utf8")
  8589. .HasCollation("utf8_general_ci");
  8590. entity.Property(e => e.ReturnMsg)
  8591. .HasColumnType("varchar(128)")
  8592. .HasCharSet("utf8")
  8593. .HasCollation("utf8_general_ci");
  8594. entity.Property(e => e.SeoDescription)
  8595. .HasColumnType("varchar(500)")
  8596. .HasCharSet("utf8")
  8597. .HasCollation("utf8_general_ci");
  8598. entity.Property(e => e.SeoKeyword)
  8599. .HasColumnType("varchar(200)")
  8600. .HasCharSet("utf8")
  8601. .HasCollation("utf8_general_ci");
  8602. entity.Property(e => e.SeoTitle)
  8603. .HasColumnType("varchar(100)")
  8604. .HasCharSet("utf8")
  8605. .HasCollation("utf8_general_ci");
  8606. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8607. entity.Property(e => e.Status).HasColumnType("int(11)");
  8608. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8609. entity.Property(e => e.UpdateMan)
  8610. .HasColumnType("varchar(50)")
  8611. .HasCharSet("utf8")
  8612. .HasCollation("utf8_general_ci");
  8613. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8614. entity.Property(e => e.Version).HasColumnType("int(11)");
  8615. });
  8616. modelBuilder.Entity<UserBack>(entity =>
  8617. {
  8618. entity.Property(e => e.Id).HasColumnType("int(11)");
  8619. entity.Property(e => e.BackKind).HasColumnType("int(11)");
  8620. entity.Property(e => e.BackStatus).HasColumnType("int(11)");
  8621. entity.Property(e => e.Content)
  8622. .HasColumnType("varchar(100)")
  8623. .HasCharSet("utf8")
  8624. .HasCollation("utf8_general_ci");
  8625. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8626. entity.Property(e => e.CreateMan)
  8627. .HasColumnType("varchar(50)")
  8628. .HasCharSet("utf8")
  8629. .HasCollation("utf8_general_ci");
  8630. entity.Property(e => e.IsPhoneCallBack)
  8631. .HasColumnType("bit(1)")
  8632. .HasDefaultValueSql("b'0'");
  8633. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8634. entity.Property(e => e.ReplyContent)
  8635. .HasColumnType("mediumtext")
  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<UserBackKind>(entity =>
  8661. {
  8662. entity.Property(e => e.Id).HasColumnType("int(11)");
  8663. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8664. entity.Property(e => e.CreateMan)
  8665. .HasColumnType("varchar(50)")
  8666. .HasCharSet("utf8")
  8667. .HasCollation("utf8_general_ci");
  8668. entity.Property(e => e.Name)
  8669. .HasColumnType("varchar(50)")
  8670. .HasCharSet("utf8")
  8671. .HasCollation("utf8_general_ci");
  8672. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8673. entity.Property(e => e.SeoDescription)
  8674. .HasColumnType("varchar(500)")
  8675. .HasCharSet("utf8")
  8676. .HasCollation("utf8_general_ci");
  8677. entity.Property(e => e.SeoKeyword)
  8678. .HasColumnType("varchar(200)")
  8679. .HasCharSet("utf8")
  8680. .HasCollation("utf8_general_ci");
  8681. entity.Property(e => e.SeoTitle)
  8682. .HasColumnType("varchar(100)")
  8683. .HasCharSet("utf8")
  8684. .HasCollation("utf8_general_ci");
  8685. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8686. entity.Property(e => e.Status).HasColumnType("int(11)");
  8687. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8688. entity.Property(e => e.UpdateMan)
  8689. .HasColumnType("varchar(50)")
  8690. .HasCharSet("utf8")
  8691. .HasCollation("utf8_general_ci");
  8692. entity.Property(e => e.Version).HasColumnType("int(11)");
  8693. });
  8694. modelBuilder.Entity<UserBalanceTop>(entity =>
  8695. {
  8696. entity.Property(e => e.Id).HasColumnType("int(11)");
  8697. entity.Property(e => e.Balance).HasColumnType("decimal(18,2)");
  8698. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8699. entity.Property(e => e.CreateMan)
  8700. .HasColumnType("varchar(50)")
  8701. .HasCharSet("utf8")
  8702. .HasCollation("utf8_general_ci");
  8703. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8704. entity.Property(e => e.SeoDescription)
  8705. .HasColumnType("varchar(500)")
  8706. .HasCharSet("utf8")
  8707. .HasCollation("utf8_general_ci");
  8708. entity.Property(e => e.SeoKeyword)
  8709. .HasColumnType("varchar(200)")
  8710. .HasCharSet("utf8")
  8711. .HasCollation("utf8_general_ci");
  8712. entity.Property(e => e.SeoTitle)
  8713. .HasColumnType("varchar(100)")
  8714. .HasCharSet("utf8")
  8715. .HasCollation("utf8_general_ci");
  8716. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8717. entity.Property(e => e.StatDate)
  8718. .HasColumnType("varchar(8)")
  8719. .HasCharSet("utf8")
  8720. .HasCollation("utf8_general_ci");
  8721. entity.Property(e => e.StatMonth)
  8722. .HasColumnType("varchar(6)")
  8723. .HasCharSet("utf8")
  8724. .HasCollation("utf8_general_ci");
  8725. entity.Property(e => e.Status).HasColumnType("int(11)");
  8726. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8727. entity.Property(e => e.UpdateMan)
  8728. .HasColumnType("varchar(50)")
  8729. .HasCharSet("utf8")
  8730. .HasCollation("utf8_general_ci");
  8731. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8732. entity.Property(e => e.Version).HasColumnType("int(11)");
  8733. });
  8734. modelBuilder.Entity<UserCar>(entity =>
  8735. {
  8736. entity.Property(e => e.Id).HasColumnType("int(11)");
  8737. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  8738. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8739. entity.Property(e => e.CreateMan)
  8740. .HasColumnType("varchar(50)")
  8741. .HasCharSet("utf8")
  8742. .HasCollation("utf8_general_ci");
  8743. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8744. entity.Property(e => e.NormId).HasColumnType("int(11)");
  8745. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  8746. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8747. entity.Property(e => e.SeoDescription)
  8748. .HasColumnType("varchar(500)")
  8749. .HasCharSet("utf8")
  8750. .HasCollation("utf8_general_ci");
  8751. entity.Property(e => e.SeoKeyword)
  8752. .HasColumnType("varchar(200)")
  8753. .HasCharSet("utf8")
  8754. .HasCollation("utf8_general_ci");
  8755. entity.Property(e => e.SeoTitle)
  8756. .HasColumnType("varchar(100)")
  8757. .HasCharSet("utf8")
  8758. .HasCollation("utf8_general_ci");
  8759. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8760. entity.Property(e => e.Status).HasColumnType("int(11)");
  8761. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8762. entity.Property(e => e.UpdateMan)
  8763. .HasColumnType("varchar(50)")
  8764. .HasCharSet("utf8")
  8765. .HasCollation("utf8_general_ci");
  8766. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8767. entity.Property(e => e.Version).HasColumnType("int(11)");
  8768. });
  8769. modelBuilder.Entity<UserCardForWeChat>(entity =>
  8770. {
  8771. entity.Property(e => e.Id).HasColumnType("int(11)");
  8772. entity.Property(e => e.BrandName)
  8773. .HasColumnType("varchar(12)")
  8774. .HasCharSet("utf8")
  8775. .HasCollation("utf8_general_ci");
  8776. entity.Property(e => e.CardId)
  8777. .HasColumnType("varchar(50)")
  8778. .HasCharSet("utf8")
  8779. .HasCollation("utf8_general_ci");
  8780. entity.Property(e => e.CardType)
  8781. .HasColumnType("varchar(30)")
  8782. .HasCharSet("utf8")
  8783. .HasCollation("utf8_general_ci");
  8784. entity.Property(e => e.CodeType)
  8785. .HasColumnType("varchar(50)")
  8786. .HasCharSet("utf8")
  8787. .HasCollation("utf8_general_ci");
  8788. entity.Property(e => e.Color)
  8789. .HasColumnType("varchar(20)")
  8790. .HasCharSet("utf8")
  8791. .HasCollation("utf8_general_ci");
  8792. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8793. entity.Property(e => e.CreateMan)
  8794. .HasColumnType("varchar(50)")
  8795. .HasCharSet("utf8")
  8796. .HasCollation("utf8_general_ci");
  8797. entity.Property(e => e.DateType)
  8798. .HasColumnType("varchar(50)")
  8799. .HasCharSet("utf8")
  8800. .HasCollation("utf8_general_ci");
  8801. entity.Property(e => e.Description)
  8802. .HasColumnType("varchar(1024)")
  8803. .HasCharSet("utf8")
  8804. .HasCollation("utf8_general_ci");
  8805. entity.Property(e => e.EnterName)
  8806. .HasColumnType("varchar(15)")
  8807. .HasCharSet("utf8")
  8808. .HasCollation("utf8_general_ci");
  8809. entity.Property(e => e.EnterTips)
  8810. .HasColumnType("varchar(6)")
  8811. .HasCharSet("utf8")
  8812. .HasCollation("utf8_general_ci");
  8813. entity.Property(e => e.EnterUrl)
  8814. .HasColumnType("varchar(200)")
  8815. .HasCharSet("utf8")
  8816. .HasCollation("utf8_general_ci");
  8817. entity.Property(e => e.LogoUrl)
  8818. .HasColumnType("varchar(200)")
  8819. .HasCharSet("utf8")
  8820. .HasCollation("utf8_general_ci");
  8821. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8822. entity.Property(e => e.Notice)
  8823. .HasColumnType("varchar(16)")
  8824. .HasCharSet("utf8")
  8825. .HasCollation("utf8_general_ci");
  8826. entity.Property(e => e.Prerogative)
  8827. .HasColumnType("varchar(1024)")
  8828. .HasCharSet("utf8")
  8829. .HasCollation("utf8_general_ci");
  8830. entity.Property(e => e.Quantity).HasColumnType("int(11)");
  8831. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8832. entity.Property(e => e.SeoDescription)
  8833. .HasColumnType("varchar(500)")
  8834. .HasCharSet("utf8")
  8835. .HasCollation("utf8_general_ci");
  8836. entity.Property(e => e.SeoKeyword)
  8837. .HasColumnType("varchar(200)")
  8838. .HasCharSet("utf8")
  8839. .HasCollation("utf8_general_ci");
  8840. entity.Property(e => e.SeoTitle)
  8841. .HasColumnType("varchar(100)")
  8842. .HasCharSet("utf8")
  8843. .HasCollation("utf8_general_ci");
  8844. entity.Property(e => e.Sku)
  8845. .HasColumnType("mediumtext")
  8846. .HasCharSet("utf8")
  8847. .HasCollation("utf8_general_ci");
  8848. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8849. entity.Property(e => e.Status).HasColumnType("int(11)");
  8850. entity.Property(e => e.SupplyBalance)
  8851. .HasColumnType("bit(1)")
  8852. .HasDefaultValueSql("b'0'");
  8853. entity.Property(e => e.SupplyBonus)
  8854. .HasColumnType("bit(1)")
  8855. .HasDefaultValueSql("b'0'");
  8856. entity.Property(e => e.Title)
  8857. .HasColumnType("varchar(9)")
  8858. .HasCharSet("utf8")
  8859. .HasCollation("utf8_general_ci");
  8860. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8861. entity.Property(e => e.UpdateMan)
  8862. .HasColumnType("varchar(50)")
  8863. .HasCharSet("utf8")
  8864. .HasCollation("utf8_general_ci");
  8865. entity.Property(e => e.Version).HasColumnType("int(11)");
  8866. });
  8867. modelBuilder.Entity<UserCardRecord>(entity =>
  8868. {
  8869. entity.Property(e => e.Id).HasColumnType("int(11)");
  8870. entity.Property(e => e.CardId).HasColumnType("int(11)");
  8871. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  8872. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8873. entity.Property(e => e.CreateMan)
  8874. .HasColumnType("varchar(50)")
  8875. .HasCharSet("utf8")
  8876. .HasCollation("utf8_general_ci");
  8877. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8878. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8879. entity.Property(e => e.SeoDescription)
  8880. .HasColumnType("varchar(500)")
  8881. .HasCharSet("utf8")
  8882. .HasCollation("utf8_general_ci");
  8883. entity.Property(e => e.SeoKeyword)
  8884. .HasColumnType("varchar(200)")
  8885. .HasCharSet("utf8")
  8886. .HasCollation("utf8_general_ci");
  8887. entity.Property(e => e.SeoTitle)
  8888. .HasColumnType("varchar(100)")
  8889. .HasCharSet("utf8")
  8890. .HasCollation("utf8_general_ci");
  8891. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8892. entity.Property(e => e.Status).HasColumnType("int(11)");
  8893. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8894. entity.Property(e => e.UpdateMan)
  8895. .HasColumnType("varchar(50)")
  8896. .HasCharSet("utf8")
  8897. .HasCollation("utf8_general_ci");
  8898. entity.Property(e => e.Version).HasColumnType("int(11)");
  8899. });
  8900. modelBuilder.Entity<UserCashRecord>(entity =>
  8901. {
  8902. entity.Property(e => e.Id).HasColumnType("int(11)");
  8903. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  8904. entity.Property(e => e.CashOrderNo)
  8905. .HasColumnType("varchar(32)")
  8906. .HasCharSet("utf8")
  8907. .HasCollation("utf8_general_ci");
  8908. entity.Property(e => e.ChanelName)
  8909. .HasColumnType("varchar(32)")
  8910. .HasCharSet("utf8")
  8911. .HasCollation("utf8_general_ci");
  8912. entity.Property(e => e.ChannelCode)
  8913. .HasColumnType("varchar(16)")
  8914. .HasCharSet("utf8")
  8915. .HasCollation("utf8_general_ci");
  8916. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8917. entity.Property(e => e.CreateMan)
  8918. .HasColumnType("varchar(50)")
  8919. .HasCharSet("utf8")
  8920. .HasCollation("utf8_general_ci");
  8921. entity.Property(e => e.IdCardNo)
  8922. .HasColumnType("varchar(18)")
  8923. .HasCharSet("utf8")
  8924. .HasCollation("utf8_general_ci");
  8925. entity.Property(e => e.Ip)
  8926. .HasColumnType("varchar(15)")
  8927. .HasCharSet("utf8")
  8928. .HasCollation("utf8_general_ci");
  8929. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  8930. entity.Property(e => e.MediaSource)
  8931. .HasColumnType("varchar(16)")
  8932. .HasCharSet("utf8")
  8933. .HasCollation("utf8_general_ci");
  8934. entity.Property(e => e.PayTradeNo)
  8935. .HasColumnType("varchar(32)")
  8936. .HasCharSet("utf8")
  8937. .HasCollation("utf8_general_ci");
  8938. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  8939. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8940. entity.Property(e => e.Remark)
  8941. .HasColumnType("varchar(128)")
  8942. .HasCharSet("utf8")
  8943. .HasCollation("utf8_general_ci");
  8944. entity.Property(e => e.ReqData)
  8945. .HasColumnType("varchar(2048)")
  8946. .HasCharSet("utf8")
  8947. .HasCollation("utf8_general_ci");
  8948. entity.Property(e => e.ResData)
  8949. .HasColumnType("varchar(2048)")
  8950. .HasCharSet("utf8")
  8951. .HasCollation("utf8_general_ci");
  8952. entity.Property(e => e.ReturnCode)
  8953. .HasColumnType("varchar(32)")
  8954. .HasCharSet("utf8")
  8955. .HasCollation("utf8_general_ci");
  8956. entity.Property(e => e.ReturnMsg)
  8957. .HasColumnType("varchar(128)")
  8958. .HasCharSet("utf8")
  8959. .HasCollation("utf8_general_ci");
  8960. entity.Property(e => e.SeoDescription)
  8961. .HasColumnType("varchar(500)")
  8962. .HasCharSet("utf8")
  8963. .HasCollation("utf8_general_ci");
  8964. entity.Property(e => e.SeoKeyword)
  8965. .HasColumnType("varchar(200)")
  8966. .HasCharSet("utf8")
  8967. .HasCollation("utf8_general_ci");
  8968. entity.Property(e => e.SeoTitle)
  8969. .HasColumnType("varchar(100)")
  8970. .HasCharSet("utf8")
  8971. .HasCollation("utf8_general_ci");
  8972. entity.Property(e => e.SettleBankCardNo)
  8973. .HasColumnType("varchar(32)")
  8974. .HasCharSet("utf8")
  8975. .HasCollation("utf8_general_ci");
  8976. entity.Property(e => e.SettleBankName)
  8977. .HasColumnType("varchar(64)")
  8978. .HasCharSet("utf8")
  8979. .HasCollation("utf8_general_ci");
  8980. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8981. entity.Property(e => e.Status).HasColumnType("int(11)");
  8982. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8983. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  8984. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  8985. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8986. entity.Property(e => e.UpdateMan)
  8987. .HasColumnType("varchar(50)")
  8988. .HasCharSet("utf8")
  8989. .HasCollation("utf8_general_ci");
  8990. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8991. entity.Property(e => e.Version).HasColumnType("int(11)");
  8992. });
  8993. modelBuilder.Entity<UserCenterIconList>(entity =>
  8994. {
  8995. entity.Property(e => e.Id).HasColumnType("int(11)");
  8996. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8997. entity.Property(e => e.CreateMan)
  8998. .HasColumnType("varchar(50)")
  8999. .HasCharSet("utf8")
  9000. .HasCollation("utf8_general_ci");
  9001. entity.Property(e => e.Icon)
  9002. .HasColumnType("varchar(200)")
  9003. .HasCharSet("utf8")
  9004. .HasCollation("utf8_general_ci");
  9005. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9006. entity.Property(e => e.SeoDescription)
  9007. .HasColumnType("varchar(500)")
  9008. .HasCharSet("utf8")
  9009. .HasCollation("utf8_general_ci");
  9010. entity.Property(e => e.SeoKeyword)
  9011. .HasColumnType("varchar(200)")
  9012. .HasCharSet("utf8")
  9013. .HasCollation("utf8_general_ci");
  9014. entity.Property(e => e.SeoTitle)
  9015. .HasColumnType("varchar(100)")
  9016. .HasCharSet("utf8")
  9017. .HasCollation("utf8_general_ci");
  9018. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9019. entity.Property(e => e.Status).HasColumnType("int(11)");
  9020. entity.Property(e => e.Title)
  9021. .HasColumnType("varchar(50)")
  9022. .HasCharSet("utf8")
  9023. .HasCollation("utf8_general_ci");
  9024. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9025. entity.Property(e => e.UpdateMan)
  9026. .HasColumnType("varchar(50)")
  9027. .HasCharSet("utf8")
  9028. .HasCollation("utf8_general_ci");
  9029. entity.Property(e => e.Url)
  9030. .HasColumnType("varchar(50)")
  9031. .HasCharSet("utf8")
  9032. .HasCollation("utf8_general_ci");
  9033. entity.Property(e => e.Version).HasColumnType("int(11)");
  9034. });
  9035. modelBuilder.Entity<UserCollection>(entity =>
  9036. {
  9037. entity.Property(e => e.Id).HasColumnType("int(11)");
  9038. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9039. entity.Property(e => e.CreateMan)
  9040. .HasColumnType("varchar(50)")
  9041. .HasCharSet("utf8")
  9042. .HasCollation("utf8_general_ci");
  9043. entity.Property(e => e.DataId).HasColumnType("int(11)");
  9044. entity.Property(e => e.Kind).HasColumnType("int(11)");
  9045. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9046. entity.Property(e => e.SeoDescription)
  9047. .HasColumnType("varchar(500)")
  9048. .HasCharSet("utf8")
  9049. .HasCollation("utf8_general_ci");
  9050. entity.Property(e => e.SeoKeyword)
  9051. .HasColumnType("varchar(200)")
  9052. .HasCharSet("utf8")
  9053. .HasCollation("utf8_general_ci");
  9054. entity.Property(e => e.SeoTitle)
  9055. .HasColumnType("varchar(100)")
  9056. .HasCharSet("utf8")
  9057. .HasCollation("utf8_general_ci");
  9058. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9059. entity.Property(e => e.Status).HasColumnType("int(11)");
  9060. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9061. entity.Property(e => e.UpdateMan)
  9062. .HasColumnType("varchar(50)")
  9063. .HasCharSet("utf8")
  9064. .HasCollation("utf8_general_ci");
  9065. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9066. entity.Property(e => e.Version).HasColumnType("int(11)");
  9067. });
  9068. modelBuilder.Entity<UserData>(entity =>
  9069. {
  9070. entity.HasKey(e => e.UserId)
  9071. .HasName("PRIMARY");
  9072. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9073. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  9074. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  9075. entity.Property(e => e.CollectionCount).HasColumnType("int(11)");
  9076. entity.Property(e => e.Coupons).HasColumnType("decimal(18,2)");
  9077. entity.Property(e => e.CurMoney).HasColumnType("decimal(18,2)");
  9078. entity.Property(e => e.FansCount).HasColumnType("int(11)");
  9079. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  9080. entity.Property(e => e.GrowthValue).HasColumnType("int(11)");
  9081. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  9082. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  9083. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  9084. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  9085. entity.Property(e => e.ToCommentOrderCount).HasColumnType("int(11)");
  9086. entity.Property(e => e.ToPayOrderCount).HasColumnType("int(11)");
  9087. entity.Property(e => e.ToReceiveOrderCount).HasColumnType("int(11)");
  9088. entity.Property(e => e.ToRefundOrderCount).HasColumnType("int(11)");
  9089. entity.Property(e => e.ToSendOrderCount).HasColumnType("int(11)");
  9090. entity.Property(e => e.TotalOrderMoney).HasColumnType("decimal(18,2)");
  9091. entity.Property(e => e.TotalUseIntegral).HasColumnType("decimal(18,2)");
  9092. });
  9093. modelBuilder.Entity<UserDetail>(entity =>
  9094. {
  9095. entity.Property(e => e.Id).HasColumnType("int(11)");
  9096. entity.Property(e => e.AddMan).HasColumnType("int(11)");
  9097. entity.Property(e => e.Birthday).HasColumnType("datetime");
  9098. entity.Property(e => e.CardAddAddress).HasColumnType("int(11)");
  9099. entity.Property(e => e.CardExpireDate).HasColumnType("datetime");
  9100. entity.Property(e => e.EduLevel).HasColumnType("int(11)");
  9101. entity.Property(e => e.Email)
  9102. .HasColumnType("varchar(50)")
  9103. .HasCharSet("utf8")
  9104. .HasCollation("utf8_general_ci");
  9105. entity.Property(e => e.FamilyIncome).HasColumnType("int(11)");
  9106. entity.Property(e => e.Interests)
  9107. .HasColumnType("varchar(200)")
  9108. .HasCharSet("utf8")
  9109. .HasCollation("utf8_general_ci");
  9110. entity.Property(e => e.Note)
  9111. .HasColumnType("longtext")
  9112. .HasCharSet("utf8")
  9113. .HasCollation("utf8_general_ci");
  9114. entity.Property(e => e.OfficePhone)
  9115. .HasColumnType("varchar(50)")
  9116. .HasCharSet("utf8")
  9117. .HasCollation("utf8_general_ci");
  9118. entity.Property(e => e.PostalCode)
  9119. .HasColumnType("varchar(6)")
  9120. .HasCharSet("utf8")
  9121. .HasCollation("utf8_general_ci");
  9122. entity.Property(e => e.PrivatePhone)
  9123. .HasColumnType("varchar(50)")
  9124. .HasCharSet("utf8")
  9125. .HasCollation("utf8_general_ci");
  9126. entity.Property(e => e.ToShopDate).HasColumnType("datetime");
  9127. entity.Property(e => e.TrafficTool).HasColumnType("int(11)");
  9128. entity.Property(e => e.UpdateMan).HasColumnType("int(11)");
  9129. entity.Property(e => e.UserJob).HasColumnType("int(11)");
  9130. });
  9131. modelBuilder.Entity<UserFamilyMember>(entity =>
  9132. {
  9133. entity.Property(e => e.Id).HasColumnType("int(11)");
  9134. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9135. entity.Property(e => e.CreateMan)
  9136. .HasColumnType("varchar(50)")
  9137. .HasCharSet("utf8")
  9138. .HasCollation("utf8_general_ci");
  9139. entity.Property(e => e.IdCardNo)
  9140. .HasColumnType("varchar(18)")
  9141. .HasCharSet("utf8")
  9142. .HasCollation("utf8_general_ci");
  9143. entity.Property(e => e.Job).HasColumnType("int(11)");
  9144. entity.Property(e => e.MemberKind).HasColumnType("int(11)");
  9145. entity.Property(e => e.Mobile)
  9146. .HasColumnType("varchar(11)")
  9147. .HasCharSet("utf8")
  9148. .HasCollation("utf8_general_ci");
  9149. entity.Property(e => e.Name)
  9150. .HasColumnType("varchar(20)")
  9151. .HasCharSet("utf8")
  9152. .HasCollation("utf8_general_ci");
  9153. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9154. entity.Property(e => e.SeoDescription)
  9155. .HasColumnType("varchar(500)")
  9156. .HasCharSet("utf8")
  9157. .HasCollation("utf8_general_ci");
  9158. entity.Property(e => e.SeoKeyword)
  9159. .HasColumnType("varchar(200)")
  9160. .HasCharSet("utf8")
  9161. .HasCollation("utf8_general_ci");
  9162. entity.Property(e => e.SeoTitle)
  9163. .HasColumnType("varchar(100)")
  9164. .HasCharSet("utf8")
  9165. .HasCollation("utf8_general_ci");
  9166. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9167. entity.Property(e => e.Status).HasColumnType("int(11)");
  9168. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9169. entity.Property(e => e.UpdateMan)
  9170. .HasColumnType("varchar(50)")
  9171. .HasCharSet("utf8")
  9172. .HasCollation("utf8_general_ci");
  9173. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9174. entity.Property(e => e.Version).HasColumnType("int(11)");
  9175. });
  9176. modelBuilder.Entity<UserForMakerCode>(entity =>
  9177. {
  9178. entity.HasKey(e => e.MakerCode)
  9179. .HasName("PRIMARY");
  9180. entity.Property(e => e.MakerCode)
  9181. .HasColumnType("varchar(30)")
  9182. .HasCharSet("utf8")
  9183. .HasCollation("utf8_general_ci");
  9184. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9185. });
  9186. modelBuilder.Entity<UserForMobile>(entity =>
  9187. {
  9188. entity.HasKey(e => e.Mobile)
  9189. .HasName("PRIMARY");
  9190. entity.Property(e => e.Mobile)
  9191. .HasColumnType("varchar(11)")
  9192. .HasCharSet("utf8")
  9193. .HasCollation("utf8_general_ci");
  9194. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9195. });
  9196. modelBuilder.Entity<UserForRealName>(entity =>
  9197. {
  9198. entity.HasKey(e => e.RealName)
  9199. .HasName("PRIMARY");
  9200. entity.Property(e => e.RealName)
  9201. .HasColumnType("varchar(30)")
  9202. .HasCharSet("utf8")
  9203. .HasCollation("utf8_general_ci");
  9204. entity.Property(e => e.UserId)
  9205. .HasColumnType("varchar(100)")
  9206. .HasCharSet("utf8")
  9207. .HasCollation("utf8_general_ci");
  9208. });
  9209. modelBuilder.Entity<UserFriend>(entity =>
  9210. {
  9211. entity.Property(e => e.Id).HasColumnType("int(11)");
  9212. entity.Property(e => e.FriendId).HasColumnType("int(11)");
  9213. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9214. });
  9215. modelBuilder.Entity<UserGroup>(entity =>
  9216. {
  9217. entity.Property(e => e.Id).HasColumnType("int(11)");
  9218. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9219. entity.Property(e => e.CreateMan)
  9220. .HasColumnType("varchar(50)")
  9221. .HasCharSet("utf8")
  9222. .HasCollation("utf8_general_ci");
  9223. entity.Property(e => e.Details)
  9224. .HasColumnType("varchar(200)")
  9225. .HasCharSet("utf8")
  9226. .HasCollation("utf8_general_ci");
  9227. entity.Property(e => e.Name)
  9228. .HasColumnType("varchar(20)")
  9229. .HasCharSet("utf8")
  9230. .HasCollation("utf8_general_ci");
  9231. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9232. entity.Property(e => e.SeoDescription)
  9233. .HasColumnType("varchar(500)")
  9234. .HasCharSet("utf8")
  9235. .HasCollation("utf8_general_ci");
  9236. entity.Property(e => e.SeoKeyword)
  9237. .HasColumnType("varchar(200)")
  9238. .HasCharSet("utf8")
  9239. .HasCollation("utf8_general_ci");
  9240. entity.Property(e => e.SeoTitle)
  9241. .HasColumnType("varchar(100)")
  9242. .HasCharSet("utf8")
  9243. .HasCollation("utf8_general_ci");
  9244. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9245. entity.Property(e => e.Status).HasColumnType("int(11)");
  9246. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9247. entity.Property(e => e.UpdateMan)
  9248. .HasColumnType("varchar(50)")
  9249. .HasCharSet("utf8")
  9250. .HasCollation("utf8_general_ci");
  9251. entity.Property(e => e.Version).HasColumnType("int(11)");
  9252. });
  9253. modelBuilder.Entity<UserLevelSet>(entity =>
  9254. {
  9255. entity.Property(e => e.Id).HasColumnType("int(11)");
  9256. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9257. entity.Property(e => e.CreateMan)
  9258. .HasColumnType("varchar(50)")
  9259. .HasCharSet("utf8")
  9260. .HasCollation("utf8_general_ci");
  9261. entity.Property(e => e.Details)
  9262. .HasColumnType("varchar(200)")
  9263. .HasCharSet("utf8")
  9264. .HasCollation("utf8_general_ci");
  9265. entity.Property(e => e.Name)
  9266. .HasColumnType("varchar(20)")
  9267. .HasCharSet("utf8")
  9268. .HasCollation("utf8_general_ci");
  9269. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9270. entity.Property(e => e.SeoDescription)
  9271. .HasColumnType("varchar(500)")
  9272. .HasCharSet("utf8")
  9273. .HasCollation("utf8_general_ci");
  9274. entity.Property(e => e.SeoKeyword)
  9275. .HasColumnType("varchar(200)")
  9276. .HasCharSet("utf8")
  9277. .HasCollation("utf8_general_ci");
  9278. entity.Property(e => e.SeoTitle)
  9279. .HasColumnType("varchar(100)")
  9280. .HasCharSet("utf8")
  9281. .HasCollation("utf8_general_ci");
  9282. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9283. entity.Property(e => e.Status).HasColumnType("int(11)");
  9284. entity.Property(e => e.UpLevelDays).HasColumnType("int(11)");
  9285. entity.Property(e => e.UpLevelGrowth).HasColumnType("int(11)");
  9286. entity.Property(e => e.UpLevelIntegral).HasColumnType("decimal(10,0)");
  9287. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9288. entity.Property(e => e.UpdateMan)
  9289. .HasColumnType("varchar(50)")
  9290. .HasCharSet("utf8")
  9291. .HasCollation("utf8_general_ci");
  9292. entity.Property(e => e.Version).HasColumnType("int(11)");
  9293. });
  9294. modelBuilder.Entity<UserLoginRecord>(entity =>
  9295. {
  9296. entity.Property(e => e.Id).HasColumnType("int(11)");
  9297. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9298. entity.Property(e => e.CreateMan)
  9299. .HasColumnType("varchar(50)")
  9300. .HasCharSet("utf8")
  9301. .HasCollation("utf8_general_ci");
  9302. entity.Property(e => e.Kind).HasColumnType("int(11)");
  9303. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9304. entity.Property(e => e.SeoDescription)
  9305. .HasColumnType("varchar(500)")
  9306. .HasCharSet("utf8")
  9307. .HasCollation("utf8_general_ci");
  9308. entity.Property(e => e.SeoKeyword)
  9309. .HasColumnType("varchar(200)")
  9310. .HasCharSet("utf8")
  9311. .HasCollation("utf8_general_ci");
  9312. entity.Property(e => e.SeoTitle)
  9313. .HasColumnType("varchar(100)")
  9314. .HasCharSet("utf8")
  9315. .HasCollation("utf8_general_ci");
  9316. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9317. entity.Property(e => e.Status).HasColumnType("int(11)");
  9318. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9319. entity.Property(e => e.UpdateMan)
  9320. .HasColumnType("varchar(50)")
  9321. .HasCharSet("utf8")
  9322. .HasCollation("utf8_general_ci");
  9323. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9324. entity.Property(e => e.Version).HasColumnType("int(11)");
  9325. });
  9326. modelBuilder.Entity<UserMachineData>(entity =>
  9327. {
  9328. entity.HasKey(e => e.IdBrand)
  9329. .HasName("PRIMARY");
  9330. entity.Property(e => e.IdBrand)
  9331. .HasColumnType("varchar(50)")
  9332. .HasCharSet("utf8")
  9333. .HasCollation("utf8_general_ci");
  9334. entity.Property(e => e.ActProfit).HasColumnType("decimal(18,2)");
  9335. entity.Property(e => e.BindCount).HasColumnType("int(11)");
  9336. entity.Property(e => e.DividendsProfit).HasColumnType("decimal(18,2)");
  9337. entity.Property(e => e.FluxProfit).HasColumnType("decimal(18,2)");
  9338. entity.Property(e => e.OpenProfit).HasColumnType("decimal(18,2)");
  9339. entity.Property(e => e.OtherProfit).HasColumnType("decimal(18,2)");
  9340. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  9341. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  9342. entity.Property(e => e.UnBindCount).HasColumnType("int(11)");
  9343. });
  9344. modelBuilder.Entity<UserMallLargeSn>(entity =>
  9345. {
  9346. entity.Property(e => e.Id).HasColumnType("int(11)");
  9347. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9348. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9349. entity.Property(e => e.CreateMan)
  9350. .HasColumnType("varchar(50)")
  9351. .HasCharSet("utf8")
  9352. .HasCollation("utf8_general_ci");
  9353. entity.Property(e => e.OrderAmount).HasColumnType("decimal(18,2)");
  9354. entity.Property(e => e.OrderNo)
  9355. .HasColumnType("varchar(32)")
  9356. .HasCharSet("utf8")
  9357. .HasCollation("utf8_general_ci");
  9358. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  9359. entity.Property(e => e.ProductName)
  9360. .HasColumnType("varchar(32)")
  9361. .HasCharSet("utf8")
  9362. .HasCollation("utf8_general_ci");
  9363. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9364. entity.Property(e => e.Remark)
  9365. .HasColumnType("varchar(64)")
  9366. .HasCharSet("utf8")
  9367. .HasCollation("utf8_general_ci");
  9368. entity.Property(e => e.RuleOrderAmt).HasColumnType("decimal(18,2)");
  9369. entity.Property(e => e.SeoDescription)
  9370. .HasColumnType("varchar(500)")
  9371. .HasCharSet("utf8")
  9372. .HasCollation("utf8_general_ci");
  9373. entity.Property(e => e.SeoKeyword)
  9374. .HasColumnType("varchar(200)")
  9375. .HasCharSet("utf8")
  9376. .HasCollation("utf8_general_ci");
  9377. entity.Property(e => e.SeoTitle)
  9378. .HasColumnType("varchar(100)")
  9379. .HasCharSet("utf8")
  9380. .HasCollation("utf8_general_ci");
  9381. entity.Property(e => e.SnNo)
  9382. .HasColumnType("varchar(32)")
  9383. .HasCharSet("utf8")
  9384. .HasCollation("utf8_general_ci");
  9385. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  9386. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  9387. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9388. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9389. entity.Property(e => e.Status).HasColumnType("int(11)");
  9390. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  9391. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9392. entity.Property(e => e.UpdateMan)
  9393. .HasColumnType("varchar(50)")
  9394. .HasCharSet("utf8")
  9395. .HasCollation("utf8_general_ci");
  9396. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9397. entity.Property(e => e.Version).HasColumnType("int(11)");
  9398. });
  9399. modelBuilder.Entity<UserOfflineSignInRecords>(entity =>
  9400. {
  9401. entity.Property(e => e.Id).HasColumnType("int(11)");
  9402. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9403. entity.Property(e => e.CreateMan)
  9404. .HasColumnType("varchar(50)")
  9405. .HasCharSet("utf8")
  9406. .HasCollation("utf8_general_ci");
  9407. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  9408. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9409. entity.Property(e => e.SeoDescription)
  9410. .HasColumnType("varchar(500)")
  9411. .HasCharSet("utf8")
  9412. .HasCollation("utf8_general_ci");
  9413. entity.Property(e => e.SeoKeyword)
  9414. .HasColumnType("varchar(200)")
  9415. .HasCharSet("utf8")
  9416. .HasCollation("utf8_general_ci");
  9417. entity.Property(e => e.SeoTitle)
  9418. .HasColumnType("varchar(100)")
  9419. .HasCharSet("utf8")
  9420. .HasCollation("utf8_general_ci");
  9421. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9422. entity.Property(e => e.Status).HasColumnType("int(11)");
  9423. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9424. entity.Property(e => e.UpdateMan)
  9425. .HasColumnType("varchar(50)")
  9426. .HasCharSet("utf8")
  9427. .HasCollation("utf8_general_ci");
  9428. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9429. entity.Property(e => e.Version).HasColumnType("int(11)");
  9430. });
  9431. modelBuilder.Entity<UserProfit>(entity =>
  9432. {
  9433. entity.Property(e => e.Id).HasColumnType("int(11)");
  9434. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  9435. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9436. entity.Property(e => e.CardType)
  9437. .HasColumnType("varchar(10)")
  9438. .HasCharSet("utf8")
  9439. .HasCollation("utf8_general_ci");
  9440. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9441. entity.Property(e => e.CreateMan)
  9442. .HasColumnType("varchar(50)")
  9443. .HasCharSet("utf8")
  9444. .HasCollation("utf8_general_ci");
  9445. entity.Property(e => e.HelpAddOrSubRate).HasColumnType("decimal(18,2)");
  9446. entity.Property(e => e.HelpProfitPercent).HasColumnType("decimal(18,2)");
  9447. entity.Property(e => e.HelpProfitRate).HasColumnType("decimal(18,2)");
  9448. entity.Property(e => e.HelpProfitRateBase).HasColumnType("decimal(18,2)");
  9449. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  9450. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  9451. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  9452. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9453. entity.Property(e => e.Remark)
  9454. .HasColumnType("varchar(64)")
  9455. .HasCharSet("utf8")
  9456. .HasCollation("utf8_general_ci");
  9457. entity.Property(e => e.SeoDescription)
  9458. .HasColumnType("varchar(500)")
  9459. .HasCharSet("utf8")
  9460. .HasCollation("utf8_general_ci");
  9461. entity.Property(e => e.SeoKeyword)
  9462. .HasColumnType("varchar(200)")
  9463. .HasCharSet("utf8")
  9464. .HasCollation("utf8_general_ci");
  9465. entity.Property(e => e.SeoTitle)
  9466. .HasColumnType("varchar(100)")
  9467. .HasCharSet("utf8")
  9468. .HasCollation("utf8_general_ci");
  9469. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9470. entity.Property(e => e.Status).HasColumnType("int(11)");
  9471. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9472. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9473. entity.Property(e => e.UpdateMan)
  9474. .HasColumnType("varchar(50)")
  9475. .HasCharSet("utf8")
  9476. .HasCollation("utf8_general_ci");
  9477. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9478. entity.Property(e => e.Version).HasColumnType("int(11)");
  9479. });
  9480. modelBuilder.Entity<UserProfitSet>(entity =>
  9481. {
  9482. entity.Property(e => e.Id).HasColumnType("int(11)");
  9483. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  9484. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9485. entity.Property(e => e.CardType).HasColumnType("int(11)");
  9486. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9487. entity.Property(e => e.CreateMan)
  9488. .HasColumnType("varchar(50)")
  9489. .HasCharSet("utf8")
  9490. .HasCollation("utf8_general_ci");
  9491. entity.Property(e => e.HelpFlag).HasColumnType("int(11)");
  9492. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  9493. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  9494. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  9495. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9496. entity.Property(e => e.Remark)
  9497. .HasColumnType("varchar(64)")
  9498. .HasCharSet("utf8")
  9499. .HasCollation("utf8_general_ci");
  9500. entity.Property(e => e.SeoDescription)
  9501. .HasColumnType("varchar(500)")
  9502. .HasCharSet("utf8")
  9503. .HasCollation("utf8_general_ci");
  9504. entity.Property(e => e.SeoKeyword)
  9505. .HasColumnType("varchar(200)")
  9506. .HasCharSet("utf8")
  9507. .HasCollation("utf8_general_ci");
  9508. entity.Property(e => e.SeoTitle)
  9509. .HasColumnType("varchar(100)")
  9510. .HasCharSet("utf8")
  9511. .HasCollation("utf8_general_ci");
  9512. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9513. entity.Property(e => e.Status).HasColumnType("int(11)");
  9514. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9515. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9516. entity.Property(e => e.UpdateMan)
  9517. .HasColumnType("varchar(50)")
  9518. .HasCharSet("utf8")
  9519. .HasCollation("utf8_general_ci");
  9520. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9521. entity.Property(e => e.Version).HasColumnType("int(11)");
  9522. });
  9523. modelBuilder.Entity<UserProfitSubsidySummary>(entity =>
  9524. {
  9525. entity.Property(e => e.Id).HasColumnType("int(11)");
  9526. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9527. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  9528. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9529. entity.Property(e => e.CreateMan)
  9530. .HasColumnType("varchar(50)")
  9531. .HasCharSet("utf8")
  9532. .HasCollation("utf8_general_ci");
  9533. entity.Property(e => e.MgrName)
  9534. .HasColumnType("varchar(32)")
  9535. .HasCharSet("utf8")
  9536. .HasCollation("utf8_general_ci");
  9537. entity.Property(e => e.MgrNo)
  9538. .HasColumnType("varchar(16)")
  9539. .HasCharSet("utf8")
  9540. .HasCollation("utf8_general_ci");
  9541. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9542. entity.Property(e => e.SeoDescription)
  9543. .HasColumnType("varchar(500)")
  9544. .HasCharSet("utf8")
  9545. .HasCollation("utf8_general_ci");
  9546. entity.Property(e => e.SeoKeyword)
  9547. .HasColumnType("varchar(200)")
  9548. .HasCharSet("utf8")
  9549. .HasCollation("utf8_general_ci");
  9550. entity.Property(e => e.SeoTitle)
  9551. .HasColumnType("varchar(100)")
  9552. .HasCharSet("utf8")
  9553. .HasCollation("utf8_general_ci");
  9554. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9555. entity.Property(e => e.Status).HasColumnType("int(11)");
  9556. entity.Property(e => e.SubsidyDirectProfit).HasColumnType("decimal(18,2)");
  9557. entity.Property(e => e.SubsidyJuniorProfit).HasColumnType("decimal(18,2)");
  9558. entity.Property(e => e.SubsidyTotalProfit).HasColumnType("decimal(18,2)");
  9559. entity.Property(e => e.TradeMonth)
  9560. .HasColumnType("varchar(6)")
  9561. .HasCharSet("utf8")
  9562. .HasCollation("utf8_general_ci");
  9563. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9564. entity.Property(e => e.UpdateMan)
  9565. .HasColumnType("varchar(50)")
  9566. .HasCharSet("utf8")
  9567. .HasCollation("utf8_general_ci");
  9568. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9569. entity.Property(e => e.Version).HasColumnType("int(11)");
  9570. });
  9571. modelBuilder.Entity<UserRank>(entity =>
  9572. {
  9573. entity.Property(e => e.Id).HasColumnType("int(11)");
  9574. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9575. entity.Property(e => e.CreateMan)
  9576. .HasColumnType("varchar(50)")
  9577. .HasCharSet("utf8")
  9578. .HasCollation("utf8_general_ci");
  9579. entity.Property(e => e.ExceedVal).HasColumnType("int(11)");
  9580. entity.Property(e => e.NextRank).HasColumnType("int(11)");
  9581. entity.Property(e => e.OperateDate).HasColumnType("datetime");
  9582. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9583. entity.Property(e => e.Rank).HasColumnType("int(11)");
  9584. entity.Property(e => e.SeoDescription)
  9585. .HasColumnType("varchar(500)")
  9586. .HasCharSet("utf8")
  9587. .HasCollation("utf8_general_ci");
  9588. entity.Property(e => e.SeoKeyword)
  9589. .HasColumnType("varchar(200)")
  9590. .HasCharSet("utf8")
  9591. .HasCollation("utf8_general_ci");
  9592. entity.Property(e => e.SeoTitle)
  9593. .HasColumnType("varchar(100)")
  9594. .HasCharSet("utf8")
  9595. .HasCollation("utf8_general_ci");
  9596. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9597. entity.Property(e => e.StatMonth).HasColumnType("int(11)");
  9598. entity.Property(e => e.StatYear).HasColumnType("int(11)");
  9599. entity.Property(e => e.Status).HasColumnType("int(11)");
  9600. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9601. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9602. entity.Property(e => e.UpdateMan)
  9603. .HasColumnType("varchar(50)")
  9604. .HasCharSet("utf8")
  9605. .HasCollation("utf8_general_ci");
  9606. entity.Property(e => e.UpgradeFlag)
  9607. .HasColumnType("bit(1)")
  9608. .HasDefaultValueSql("b'0'");
  9609. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9610. entity.Property(e => e.Version).HasColumnType("int(11)");
  9611. entity.Property(e => e.WhiteRank).HasColumnType("int(11)");
  9612. });
  9613. modelBuilder.Entity<UserRankWhite>(entity =>
  9614. {
  9615. entity.Property(e => e.Id).HasColumnType("int(11)");
  9616. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9617. entity.Property(e => e.CreateMan)
  9618. .HasColumnType("varchar(50)")
  9619. .HasCharSet("utf8")
  9620. .HasCollation("utf8_general_ci");
  9621. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9622. entity.Property(e => e.Rank).HasColumnType("int(11)");
  9623. entity.Property(e => e.SeoDescription)
  9624. .HasColumnType("varchar(500)")
  9625. .HasCharSet("utf8")
  9626. .HasCollation("utf8_general_ci");
  9627. entity.Property(e => e.SeoKeyword)
  9628. .HasColumnType("varchar(200)")
  9629. .HasCharSet("utf8")
  9630. .HasCollation("utf8_general_ci");
  9631. entity.Property(e => e.SeoTitle)
  9632. .HasColumnType("varchar(100)")
  9633. .HasCharSet("utf8")
  9634. .HasCollation("utf8_general_ci");
  9635. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9636. entity.Property(e => e.Status).HasColumnType("int(11)");
  9637. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9638. entity.Property(e => e.UpdateMan)
  9639. .HasColumnType("varchar(50)")
  9640. .HasCharSet("utf8")
  9641. .HasCollation("utf8_general_ci");
  9642. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9643. entity.Property(e => e.Version).HasColumnType("int(11)");
  9644. });
  9645. modelBuilder.Entity<UserRebateDetail>(entity =>
  9646. {
  9647. entity.Property(e => e.Id).HasColumnType("int(11)");
  9648. entity.Property(e => e.ChannelMerNo)
  9649. .HasColumnType("varchar(32)")
  9650. .HasCharSet("utf8")
  9651. .HasCollation("utf8_general_ci");
  9652. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9653. entity.Property(e => e.CreateMan)
  9654. .HasColumnType("varchar(50)")
  9655. .HasCharSet("utf8")
  9656. .HasCollation("utf8_general_ci");
  9657. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  9658. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9659. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  9660. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  9661. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  9662. entity.Property(e => e.MgrName)
  9663. .HasColumnType("varchar(32)")
  9664. .HasCharSet("utf8")
  9665. .HasCollation("utf8_general_ci");
  9666. entity.Property(e => e.MgrNo)
  9667. .HasColumnType("varchar(16)")
  9668. .HasCharSet("utf8")
  9669. .HasCollation("utf8_general_ci");
  9670. entity.Property(e => e.ProductName)
  9671. .HasColumnType("varchar(32)")
  9672. .HasCharSet("utf8")
  9673. .HasCollation("utf8_general_ci");
  9674. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  9675. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9676. entity.Property(e => e.RebateMonthCount).HasColumnType("int(11)");
  9677. entity.Property(e => e.RebateRewardNo)
  9678. .HasColumnType("varchar(32)")
  9679. .HasCharSet("utf8")
  9680. .HasCollation("utf8_general_ci");
  9681. entity.Property(e => e.RebateType).HasColumnType("int(11)");
  9682. entity.Property(e => e.Remark)
  9683. .HasColumnType("varchar(64)")
  9684. .HasCharSet("utf8")
  9685. .HasCollation("utf8_general_ci");
  9686. entity.Property(e => e.SeoDescription)
  9687. .HasColumnType("varchar(500)")
  9688. .HasCharSet("utf8")
  9689. .HasCollation("utf8_general_ci");
  9690. entity.Property(e => e.SeoKeyword)
  9691. .HasColumnType("varchar(200)")
  9692. .HasCharSet("utf8")
  9693. .HasCollation("utf8_general_ci");
  9694. entity.Property(e => e.SeoTitle)
  9695. .HasColumnType("varchar(100)")
  9696. .HasCharSet("utf8")
  9697. .HasCollation("utf8_general_ci");
  9698. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9699. entity.Property(e => e.Status).HasColumnType("int(11)");
  9700. entity.Property(e => e.TradeDate)
  9701. .HasColumnType("varchar(8)")
  9702. .HasCharSet("utf8")
  9703. .HasCollation("utf8_general_ci");
  9704. entity.Property(e => e.TradeMonth)
  9705. .HasColumnType("varchar(6)")
  9706. .HasCharSet("utf8")
  9707. .HasCollation("utf8_general_ci");
  9708. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9709. entity.Property(e => e.UpdateMan)
  9710. .HasColumnType("varchar(50)")
  9711. .HasCharSet("utf8")
  9712. .HasCollation("utf8_general_ci");
  9713. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9714. entity.Property(e => e.Version).HasColumnType("int(11)");
  9715. });
  9716. modelBuilder.Entity<UserSnActInfo>(entity =>
  9717. {
  9718. entity.Property(e => e.Id).HasColumnType("int(11)");
  9719. entity.Property(e => e.ActUserId).HasColumnType("int(11)");
  9720. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9721. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9722. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9723. entity.Property(e => e.CreateMan)
  9724. .HasColumnType("varchar(50)")
  9725. .HasCharSet("utf8")
  9726. .HasCollation("utf8_general_ci");
  9727. entity.Property(e => e.EffectEndActDate)
  9728. .HasColumnType("varchar(8)")
  9729. .HasCharSet("utf8")
  9730. .HasCollation("utf8_general_ci");
  9731. entity.Property(e => e.EffectEndCycleDate)
  9732. .HasColumnType("varchar(8)")
  9733. .HasCharSet("utf8")
  9734. .HasCollation("utf8_general_ci");
  9735. entity.Property(e => e.EffectStartActDate)
  9736. .HasColumnType("varchar(8)")
  9737. .HasCharSet("utf8")
  9738. .HasCollation("utf8_general_ci");
  9739. entity.Property(e => e.EffectStartCycleDate)
  9740. .HasColumnType("varchar(8)")
  9741. .HasCharSet("utf8")
  9742. .HasCollation("utf8_general_ci");
  9743. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9744. entity.Property(e => e.Remark)
  9745. .HasColumnType("varchar(128)")
  9746. .HasCharSet("utf8")
  9747. .HasCollation("utf8_general_ci");
  9748. entity.Property(e => e.SeoDescription)
  9749. .HasColumnType("varchar(500)")
  9750. .HasCharSet("utf8")
  9751. .HasCollation("utf8_general_ci");
  9752. entity.Property(e => e.SeoKeyword)
  9753. .HasColumnType("varchar(200)")
  9754. .HasCharSet("utf8")
  9755. .HasCollation("utf8_general_ci");
  9756. entity.Property(e => e.SeoTitle)
  9757. .HasColumnType("varchar(100)")
  9758. .HasCharSet("utf8")
  9759. .HasCollation("utf8_general_ci");
  9760. entity.Property(e => e.SnNo)
  9761. .HasColumnType("varchar(32)")
  9762. .HasCharSet("utf8")
  9763. .HasCollation("utf8_general_ci");
  9764. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  9765. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9766. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9767. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9768. entity.Property(e => e.SourceShipDate).HasColumnType("datetime");
  9769. entity.Property(e => e.SourceSnNo)
  9770. .HasColumnType("varchar(32)")
  9771. .HasCharSet("utf8")
  9772. .HasCollation("utf8_general_ci");
  9773. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9774. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9775. entity.Property(e => e.StandardDate)
  9776. .HasColumnType("varchar(8)")
  9777. .HasCharSet("utf8")
  9778. .HasCollation("utf8_general_ci");
  9779. entity.Property(e => e.Status).HasColumnType("int(11)");
  9780. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9781. entity.Property(e => e.UpdateMan)
  9782. .HasColumnType("varchar(50)")
  9783. .HasCharSet("utf8")
  9784. .HasCollation("utf8_general_ci");
  9785. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9786. entity.Property(e => e.Version).HasColumnType("int(11)");
  9787. });
  9788. modelBuilder.Entity<UserSnDelayChange>(entity =>
  9789. {
  9790. entity.Property(e => e.Id).HasColumnType("int(11)");
  9791. entity.Property(e => e.ActivityRuleId).HasColumnType("int(11)");
  9792. entity.Property(e => e.AfterEndCycleDate)
  9793. .HasColumnType("varchar(8)")
  9794. .HasCharSet("utf8")
  9795. .HasCollation("utf8_general_ci");
  9796. entity.Property(e => e.BeforeEndCycleDate)
  9797. .HasColumnType("varchar(8)")
  9798. .HasCharSet("utf8")
  9799. .HasCollation("utf8_general_ci");
  9800. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9801. entity.Property(e => e.ChangeRecordNo)
  9802. .HasColumnType("varchar(32)")
  9803. .HasCharSet("utf8")
  9804. .HasCollation("utf8_general_ci");
  9805. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9806. entity.Property(e => e.CreateMan)
  9807. .HasColumnType("varchar(50)")
  9808. .HasCharSet("utf8")
  9809. .HasCollation("utf8_general_ci");
  9810. entity.Property(e => e.InitCycleDate)
  9811. .HasColumnType("varchar(8)")
  9812. .HasCharSet("utf8")
  9813. .HasCollation("utf8_general_ci");
  9814. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9815. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  9816. entity.Property(e => e.Remark)
  9817. .HasColumnType("varchar(128)")
  9818. .HasCharSet("utf8")
  9819. .HasCollation("utf8_general_ci");
  9820. entity.Property(e => e.SeoDescription)
  9821. .HasColumnType("varchar(500)")
  9822. .HasCharSet("utf8")
  9823. .HasCollation("utf8_general_ci");
  9824. entity.Property(e => e.SeoKeyword)
  9825. .HasColumnType("varchar(200)")
  9826. .HasCharSet("utf8")
  9827. .HasCollation("utf8_general_ci");
  9828. entity.Property(e => e.SeoTitle)
  9829. .HasColumnType("varchar(100)")
  9830. .HasCharSet("utf8")
  9831. .HasCollation("utf8_general_ci");
  9832. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  9833. entity.Property(e => e.SnNo)
  9834. .HasColumnType("varchar(32)")
  9835. .HasCharSet("utf8")
  9836. .HasCollation("utf8_general_ci");
  9837. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9838. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9839. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9840. entity.Property(e => e.SourceSnNo)
  9841. .HasColumnType("varchar(32)")
  9842. .HasCharSet("utf8")
  9843. .HasCollation("utf8_general_ci");
  9844. entity.Property(e => e.SourceSnShipDate).HasColumnType("datetime");
  9845. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9846. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9847. entity.Property(e => e.Status).HasColumnType("int(11)");
  9848. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9849. entity.Property(e => e.UpdateMan)
  9850. .HasColumnType("varchar(50)")
  9851. .HasCharSet("utf8")
  9852. .HasCollation("utf8_general_ci");
  9853. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9854. entity.Property(e => e.Version).HasColumnType("int(11)");
  9855. });
  9856. modelBuilder.Entity<UserStoreChange>(entity =>
  9857. {
  9858. entity.Property(e => e.Id).HasColumnType("int(11)");
  9859. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  9860. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9861. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  9862. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  9863. entity.Property(e => e.BizBatchNo)
  9864. .HasColumnType("varchar(32)")
  9865. .HasCharSet("utf8")
  9866. .HasCollation("utf8_general_ci");
  9867. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9868. entity.Property(e => e.BrandType)
  9869. .HasColumnType("varchar(10)")
  9870. .HasCharSet("utf8")
  9871. .HasCollation("utf8_general_ci");
  9872. entity.Property(e => e.ChangeRecordNo)
  9873. .HasColumnType("varchar(32)")
  9874. .HasCharSet("utf8")
  9875. .HasCollation("utf8_general_ci");
  9876. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9877. entity.Property(e => e.CreateMan)
  9878. .HasColumnType("varchar(50)")
  9879. .HasCharSet("utf8")
  9880. .HasCollation("utf8_general_ci");
  9881. entity.Property(e => e.DeviceModel)
  9882. .HasColumnType("varchar(32)")
  9883. .HasCharSet("utf8")
  9884. .HasCollation("utf8_general_ci");
  9885. entity.Property(e => e.DeviceType)
  9886. .HasColumnType("varchar(32)")
  9887. .HasCharSet("utf8")
  9888. .HasCollation("utf8_general_ci");
  9889. entity.Property(e => e.DeviceVendor)
  9890. .HasColumnType("varchar(32)")
  9891. .HasCharSet("utf8")
  9892. .HasCollation("utf8_general_ci");
  9893. entity.Property(e => e.FromDate).HasColumnType("datetime");
  9894. entity.Property(e => e.FromRemark)
  9895. .HasColumnType("varchar(64)")
  9896. .HasCharSet("utf8")
  9897. .HasCollation("utf8_general_ci");
  9898. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  9899. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9900. entity.Property(e => e.SeoDescription)
  9901. .HasColumnType("varchar(500)")
  9902. .HasCharSet("utf8")
  9903. .HasCollation("utf8_general_ci");
  9904. entity.Property(e => e.SeoKeyword)
  9905. .HasColumnType("varchar(200)")
  9906. .HasCharSet("utf8")
  9907. .HasCollation("utf8_general_ci");
  9908. entity.Property(e => e.SeoTitle)
  9909. .HasColumnType("varchar(100)")
  9910. .HasCharSet("utf8")
  9911. .HasCollation("utf8_general_ci");
  9912. entity.Property(e => e.SnNo)
  9913. .HasColumnType("varchar(32)")
  9914. .HasCharSet("utf8")
  9915. .HasCollation("utf8_general_ci");
  9916. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  9917. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9918. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9919. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9920. entity.Property(e => e.Status).HasColumnType("int(11)");
  9921. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  9922. entity.Property(e => e.ToDate).HasColumnType("datetime");
  9923. entity.Property(e => e.ToRemark)
  9924. .HasColumnType("varchar(64)")
  9925. .HasCharSet("utf8")
  9926. .HasCollation("utf8_general_ci");
  9927. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  9928. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  9929. entity.Property(e => e.TransType).HasColumnType("int(11)");
  9930. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9931. entity.Property(e => e.UpdateMan)
  9932. .HasColumnType("varchar(50)")
  9933. .HasCharSet("utf8")
  9934. .HasCollation("utf8_general_ci");
  9935. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9936. entity.Property(e => e.Version).HasColumnType("int(11)");
  9937. });
  9938. modelBuilder.Entity<UserSwapDetail>(entity =>
  9939. {
  9940. entity.Property(e => e.Id).HasColumnType("int(11)");
  9941. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9942. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9943. entity.Property(e => e.CreateMan)
  9944. .HasColumnType("varchar(50)")
  9945. .HasCharSet("utf8")
  9946. .HasCollation("utf8_general_ci");
  9947. entity.Property(e => e.DirectSnTradeAmt).HasColumnType("decimal(18,2)");
  9948. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9949. entity.Property(e => e.RecordNo)
  9950. .HasColumnType("varchar(32)")
  9951. .HasCharSet("utf8")
  9952. .HasCollation("utf8_general_ci");
  9953. entity.Property(e => e.Remark)
  9954. .HasColumnType("varchar(64)")
  9955. .HasCharSet("utf8")
  9956. .HasCollation("utf8_general_ci");
  9957. entity.Property(e => e.RiskResult).HasColumnType("int(11)");
  9958. entity.Property(e => e.SeoDescription)
  9959. .HasColumnType("varchar(500)")
  9960. .HasCharSet("utf8")
  9961. .HasCollation("utf8_general_ci");
  9962. entity.Property(e => e.SeoKeyword)
  9963. .HasColumnType("varchar(200)")
  9964. .HasCharSet("utf8")
  9965. .HasCollation("utf8_general_ci");
  9966. entity.Property(e => e.SeoTitle)
  9967. .HasColumnType("varchar(100)")
  9968. .HasCharSet("utf8")
  9969. .HasCollation("utf8_general_ci");
  9970. entity.Property(e => e.SnNo)
  9971. .HasColumnType("varchar(32)")
  9972. .HasCharSet("utf8")
  9973. .HasCollation("utf8_general_ci");
  9974. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9975. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9976. entity.Property(e => e.SourceSnNo)
  9977. .HasColumnType("varchar(32)")
  9978. .HasCharSet("utf8")
  9979. .HasCollation("utf8_general_ci");
  9980. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9981. entity.Property(e => e.Status).HasColumnType("int(11)");
  9982. entity.Property(e => e.SwapExtProductTypes)
  9983. .HasColumnType("varchar(16)")
  9984. .HasCharSet("utf8")
  9985. .HasCollation("utf8_general_ci");
  9986. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9987. entity.Property(e => e.TradeDate)
  9988. .HasColumnType("varchar(8)")
  9989. .HasCharSet("utf8")
  9990. .HasCollation("utf8_general_ci");
  9991. entity.Property(e => e.TradeMonth)
  9992. .HasColumnType("varchar(6)")
  9993. .HasCharSet("utf8")
  9994. .HasCollation("utf8_general_ci");
  9995. entity.Property(e => e.UpSourceSnNo)
  9996. .HasColumnType("varchar(32)")
  9997. .HasCharSet("utf8")
  9998. .HasCollation("utf8_general_ci");
  9999. entity.Property(e => e.UpSourceSnType).HasColumnType("int(11)");
  10000. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10001. entity.Property(e => e.UpdateMan)
  10002. .HasColumnType("varchar(50)")
  10003. .HasCharSet("utf8")
  10004. .HasCollation("utf8_general_ci");
  10005. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10006. entity.Property(e => e.Version).HasColumnType("int(11)");
  10007. });
  10008. modelBuilder.Entity<UserSwapSummary>(entity =>
  10009. {
  10010. entity.Property(e => e.Id).HasColumnType("int(11)");
  10011. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10012. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10013. entity.Property(e => e.CreateMan)
  10014. .HasColumnType("varchar(50)")
  10015. .HasCharSet("utf8")
  10016. .HasCollation("utf8_general_ci");
  10017. entity.Property(e => e.DirAvgTradeAmt).HasColumnType("decimal(18,2)");
  10018. entity.Property(e => e.DirectActMerCount).HasColumnType("int(11)");
  10019. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  10020. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10021. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  10022. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  10023. entity.Property(e => e.SeoDescription)
  10024. .HasColumnType("varchar(500)")
  10025. .HasCharSet("utf8")
  10026. .HasCollation("utf8_general_ci");
  10027. entity.Property(e => e.SeoKeyword)
  10028. .HasColumnType("varchar(200)")
  10029. .HasCharSet("utf8")
  10030. .HasCollation("utf8_general_ci");
  10031. entity.Property(e => e.SeoTitle)
  10032. .HasColumnType("varchar(100)")
  10033. .HasCharSet("utf8")
  10034. .HasCollation("utf8_general_ci");
  10035. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10036. entity.Property(e => e.Status).HasColumnType("int(11)");
  10037. entity.Property(e => e.SwapExtProductTypes)
  10038. .HasColumnType("varchar(16)")
  10039. .HasCharSet("utf8")
  10040. .HasCollation("utf8_general_ci");
  10041. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  10042. entity.Property(e => e.TradeMonth)
  10043. .HasColumnType("varchar(6)")
  10044. .HasCharSet("utf8")
  10045. .HasCollation("utf8_general_ci");
  10046. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10047. entity.Property(e => e.UpdateMan)
  10048. .HasColumnType("varchar(50)")
  10049. .HasCharSet("utf8")
  10050. .HasCollation("utf8_general_ci");
  10051. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10052. entity.Property(e => e.Version).HasColumnType("int(11)");
  10053. });
  10054. modelBuilder.Entity<UserSwapWhite>(entity =>
  10055. {
  10056. entity.Property(e => e.Id).HasColumnType("int(11)");
  10057. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10058. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10059. entity.Property(e => e.CreateMan)
  10060. .HasColumnType("varchar(50)")
  10061. .HasCharSet("utf8")
  10062. .HasCollation("utf8_general_ci");
  10063. entity.Property(e => e.EndEffectTime).HasColumnType("datetime");
  10064. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10065. entity.Property(e => e.Remark)
  10066. .HasColumnType("varchar(64)")
  10067. .HasCharSet("utf8")
  10068. .HasCollation("utf8_general_ci");
  10069. entity.Property(e => e.RiskType).HasColumnType("int(11)");
  10070. entity.Property(e => e.SeoDescription)
  10071. .HasColumnType("varchar(500)")
  10072. .HasCharSet("utf8")
  10073. .HasCollation("utf8_general_ci");
  10074. entity.Property(e => e.SeoKeyword)
  10075. .HasColumnType("varchar(200)")
  10076. .HasCharSet("utf8")
  10077. .HasCollation("utf8_general_ci");
  10078. entity.Property(e => e.SeoTitle)
  10079. .HasColumnType("varchar(100)")
  10080. .HasCharSet("utf8")
  10081. .HasCollation("utf8_general_ci");
  10082. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10083. entity.Property(e => e.StartEffectTime).HasColumnType("datetime");
  10084. entity.Property(e => e.Status).HasColumnType("int(11)");
  10085. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10086. entity.Property(e => e.UpdateMan)
  10087. .HasColumnType("varchar(50)")
  10088. .HasCharSet("utf8")
  10089. .HasCollation("utf8_general_ci");
  10090. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10091. entity.Property(e => e.Version).HasColumnType("int(11)");
  10092. });
  10093. modelBuilder.Entity<UserTradeDaySummary>(entity =>
  10094. {
  10095. entity.HasIndex(e => new { e.UserId, e.TradeMonth, e.TradeDate, e.SeoTitle, e.BrandId, e.QueryCount })
  10096. .HasName("UserTradeDaySummaryIndex");
  10097. entity.Property(e => e.Id).HasColumnType("int(11)");
  10098. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10099. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10100. entity.Property(e => e.CreateMan)
  10101. .HasColumnType("varchar(50)")
  10102. .HasCharSet("utf8")
  10103. .HasCollation("utf8_general_ci");
  10104. entity.Property(e => e.DirectDebitCapNum).HasColumnType("int(11)");
  10105. entity.Property(e => e.DirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  10106. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  10107. entity.Property(e => e.NonDirectDebitCapNum).HasColumnType("int(11)");
  10108. entity.Property(e => e.NonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  10109. entity.Property(e => e.NonDirectTradeAmt).HasColumnType("decimal(18,2)");
  10110. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10111. entity.Property(e => e.Remark)
  10112. .HasColumnType("varchar(64)")
  10113. .HasCharSet("utf8")
  10114. .HasCollation("utf8_general_ci");
  10115. entity.Property(e => e.SeoDescription)
  10116. .HasColumnType("varchar(500)")
  10117. .HasCharSet("utf8")
  10118. .HasCollation("utf8_general_ci");
  10119. entity.Property(e => e.SeoKeyword)
  10120. .HasColumnType("varchar(200)")
  10121. .HasCharSet("utf8")
  10122. .HasCollation("utf8_general_ci");
  10123. entity.Property(e => e.SeoTitle)
  10124. .HasColumnType("varchar(100)")
  10125. .HasCharSet("utf8")
  10126. .HasCollation("utf8_general_ci");
  10127. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10128. entity.Property(e => e.Status).HasColumnType("int(11)");
  10129. entity.Property(e => e.TradeDate)
  10130. .HasColumnType("varchar(8)")
  10131. .HasCharSet("utf8")
  10132. .HasCollation("utf8_general_ci");
  10133. entity.Property(e => e.TradeMonth)
  10134. .HasColumnType("varchar(6)")
  10135. .HasCharSet("utf8")
  10136. .HasCollation("utf8_general_ci");
  10137. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10138. entity.Property(e => e.UpdateMan)
  10139. .HasColumnType("varchar(50)")
  10140. .HasCharSet("utf8")
  10141. .HasCollation("utf8_general_ci");
  10142. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10143. entity.Property(e => e.Version).HasColumnType("int(11)");
  10144. });
  10145. modelBuilder.Entity<UserTradeMonthSummary>(entity =>
  10146. {
  10147. entity.Property(e => e.Id).HasColumnType("int(11)");
  10148. entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
  10149. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  10150. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10151. entity.Property(e => e.CreateMan)
  10152. .HasColumnType("varchar(50)")
  10153. .HasCharSet("utf8")
  10154. .HasCollation("utf8_general_ci");
  10155. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  10156. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  10157. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  10158. entity.Property(e => e.DebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  10159. entity.Property(e => e.MallPosOrderStatus).HasColumnType("int(11)");
  10160. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10161. entity.Property(e => e.Remark)
  10162. .HasColumnType("varchar(64)")
  10163. .HasCharSet("utf8")
  10164. .HasCollation("utf8_general_ci");
  10165. entity.Property(e => e.SeoDescription)
  10166. .HasColumnType("varchar(500)")
  10167. .HasCharSet("utf8")
  10168. .HasCollation("utf8_general_ci");
  10169. entity.Property(e => e.SeoKeyword)
  10170. .HasColumnType("varchar(200)")
  10171. .HasCharSet("utf8")
  10172. .HasCollation("utf8_general_ci");
  10173. entity.Property(e => e.SeoTitle)
  10174. .HasColumnType("varchar(100)")
  10175. .HasCharSet("utf8")
  10176. .HasCollation("utf8_general_ci");
  10177. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10178. entity.Property(e => e.StatType).HasColumnType("int(11)");
  10179. entity.Property(e => e.Status).HasColumnType("int(11)");
  10180. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  10181. entity.Property(e => e.TradeMonth)
  10182. .HasColumnType("varchar(6)")
  10183. .HasCharSet("utf8")
  10184. .HasCollation("utf8_general_ci");
  10185. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10186. entity.Property(e => e.UpdateMan)
  10187. .HasColumnType("varchar(50)")
  10188. .HasCharSet("utf8")
  10189. .HasCollation("utf8_general_ci");
  10190. entity.Property(e => e.UserId).HasColumnType("int(11)");
  10191. entity.Property(e => e.Version).HasColumnType("int(11)");
  10192. });
  10193. modelBuilder.Entity<Users>(entity =>
  10194. {
  10195. entity.Property(e => e.Id).HasColumnType("int(11)");
  10196. entity.Property(e => e.AccessToken)
  10197. .HasColumnType("varchar(64)")
  10198. .HasCharSet("utf8")
  10199. .HasCollation("utf8_general_ci");
  10200. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  10201. entity.Property(e => e.Address)
  10202. .HasColumnType("varchar(50)")
  10203. .HasCharSet("utf8")
  10204. .HasCollation("utf8_general_ci");
  10205. entity.Property(e => e.AgentAreas)
  10206. .HasColumnType("varchar(50)")
  10207. .HasCharSet("utf8")
  10208. .HasCollation("utf8_general_ci");
  10209. entity.Property(e => e.AgentLevel).HasColumnType("int(11)");
  10210. entity.Property(e => e.AlipayUserId)
  10211. .HasColumnType("varchar(50)")
  10212. .HasCharSet("utf8")
  10213. .HasCollation("utf8_general_ci");
  10214. entity.Property(e => e.Areas)
  10215. .HasColumnType("varchar(30)")
  10216. .HasCharSet("utf8")
  10217. .HasCollation("utf8_general_ci");
  10218. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  10219. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  10220. entity.Property(e => e.AuthFlag)
  10221. .HasColumnType("bit(1)")
  10222. .HasDefaultValueSql("b'0'");
  10223. entity.Property(e => e.BankCardPositiveImage)
  10224. .HasColumnType("varchar(200)")
  10225. .HasCharSet("utf8")
  10226. .HasCollation("utf8_general_ci");
  10227. entity.Property(e => e.CarIds)
  10228. .HasColumnType("varchar(100)")
  10229. .HasCharSet("utf8")
  10230. .HasCollation("utf8_general_ci");
  10231. entity.Property(e => e.CardNo)
  10232. .HasColumnType("varchar(30)")
  10233. .HasCharSet("utf8")
  10234. .HasCollation("utf8_general_ci");
  10235. entity.Property(e => e.CardRecCode)
  10236. .HasColumnType("varchar(200)")
  10237. .HasCharSet("utf8")
  10238. .HasCollation("utf8_general_ci");
  10239. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  10240. entity.Property(e => e.CashNote)
  10241. .HasColumnType("varchar(200)")
  10242. .HasCharSet("utf8")
  10243. .HasCollation("utf8_general_ci");
  10244. entity.Property(e => e.CashStatus).HasColumnType("int(11)");
  10245. entity.Property(e => e.CertFrontImage)
  10246. .HasColumnType("varchar(200)")
  10247. .HasCharSet("utf8")
  10248. .HasCollation("utf8_general_ci");
  10249. entity.Property(e => e.CertId)
  10250. .HasColumnType("varchar(30)")
  10251. .HasCharSet("utf8")
  10252. .HasCollation("utf8_general_ci");
  10253. entity.Property(e => e.CertReverseImage)
  10254. .HasColumnType("varchar(200)")
  10255. .HasCharSet("utf8")
  10256. .HasCollation("utf8_general_ci");
  10257. entity.Property(e => e.CertValidEndDate).HasColumnType("datetime");
  10258. entity.Property(e => e.CertValidStartDate).HasColumnType("datetime");
  10259. entity.Property(e => e.CitySetDate).HasColumnType("datetime");
  10260. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  10261. entity.Property(e => e.CreateMan)
  10262. .HasColumnType("varchar(50)")
  10263. .HasCharSet("utf8")
  10264. .HasCollation("utf8_general_ci");
  10265. entity.Property(e => e.DeviceId)
  10266. .HasColumnType("varchar(128)")
  10267. .HasCharSet("utf8")
  10268. .HasCollation("utf8_general_ci");
  10269. entity.Property(e => e.DeviceToken)
  10270. .HasColumnType("varchar(64)")
  10271. .HasCharSet("utf8")
  10272. .HasCollation("utf8_general_ci");
  10273. entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
  10274. entity.Property(e => e.GroupId)
  10275. .HasColumnType("varchar(200)")
  10276. .HasCharSet("utf8")
  10277. .HasCollation("utf8_general_ci");
  10278. entity.Property(e => e.HandCertImage)
  10279. .HasColumnType("varchar(200)")
  10280. .HasCharSet("utf8")
  10281. .HasCollation("utf8_general_ci");
  10282. entity.Property(e => e.HandPwd)
  10283. .HasColumnType("varchar(32)")
  10284. .HasCharSet("utf8")
  10285. .HasCollation("utf8_general_ci");
  10286. entity.Property(e => e.HeadPhoto)
  10287. .HasColumnType("varchar(2000)")
  10288. .HasCharSet("utf8")
  10289. .HasCollation("utf8_general_ci");
  10290. entity.Property(e => e.IdCardEndNo)
  10291. .HasColumnType("varchar(4)")
  10292. .HasCharSet("utf8")
  10293. .HasCollation("utf8_general_ci");
  10294. entity.Property(e => e.IsNewUser)
  10295. .HasColumnType("bit(1)")
  10296. .HasDefaultValueSql("b'0'");
  10297. entity.Property(e => e.LockStatus)
  10298. .HasColumnType("bit(1)")
  10299. .HasDefaultValueSql("b'0'");
  10300. entity.Property(e => e.LoginPwd)
  10301. .HasColumnType("varchar(32)")
  10302. .HasCharSet("utf8")
  10303. .HasCollation("utf8_general_ci");
  10304. entity.Property(e => e.LoginStatus).HasColumnType("int(11)");
  10305. entity.Property(e => e.MakerCode)
  10306. .HasColumnType("varchar(32)")
  10307. .HasCharSet("utf8")
  10308. .HasCollation("utf8_general_ci");
  10309. entity.Property(e => e.MerchantDate).HasColumnType("datetime");
  10310. entity.Property(e => e.MerchantType).HasColumnType("int(11)");
  10311. entity.Property(e => e.Mobile)
  10312. .HasColumnType("varchar(15)")
  10313. .HasCharSet("utf8")
  10314. .HasCollation("utf8_general_ci");
  10315. entity.Property(e => e.NickName)
  10316. .HasColumnType("varchar(300)")
  10317. .HasCharSet("utf8")
  10318. .HasCollation("utf8_general_ci");
  10319. entity.Property(e => e.OpenId)
  10320. .HasColumnType("varchar(50)")
  10321. .HasCharSet("utf8")
  10322. .HasCollation("utf8_general_ci");
  10323. entity.Property(e => e.ParentNav)
  10324. .HasColumnType("longtext")
  10325. .HasCharSet("utf8")
  10326. .HasCollation("utf8_general_ci");
  10327. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  10328. entity.Property(e => e.PayPwd)
  10329. .HasColumnType("varchar(32)")
  10330. .HasCharSet("utf8")
  10331. .HasCollation("utf8_general_ci");
  10332. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  10333. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  10334. entity.Property(e => e.RealName)
  10335. .HasColumnType("varchar(30)")
  10336. .HasCharSet("utf8")
  10337. .HasCollation("utf8_general_ci");
  10338. entity.Property(e => e.ReferenceCode)
  10339. .HasColumnType("varchar(200)")
  10340. .HasCharSet("utf8")
  10341. .HasCollation("utf8_general_ci");
  10342. entity.Property(e => e.ReferenceQrCode)
  10343. .HasColumnType("varchar(200)")
  10344. .HasCharSet("utf8")
  10345. .HasCollation("utf8_general_ci");
  10346. entity.Property(e => e.ReferralUserId).HasColumnType("int(11)");
  10347. entity.Property(e => e.Remark)
  10348. .HasColumnType("mediumtext")
  10349. .HasCharSet("utf8")
  10350. .HasCollation("utf8_general_ci");
  10351. entity.Property(e => e.RiskFlag)
  10352. .HasColumnType("bit(1)")
  10353. .HasDefaultValueSql("b'0'");
  10354. entity.Property(e => e.RiskRemark)
  10355. .HasColumnType("varchar(64)")
  10356. .HasCharSet("utf8")
  10357. .HasCollation("utf8_general_ci");
  10358. entity.Property(e => e.RreezeRemark)
  10359. .HasColumnType("varchar(64)")
  10360. .HasCharSet("utf8")
  10361. .HasCollation("utf8_general_ci");
  10362. entity.Property(e => e.SeoDescription)
  10363. .HasColumnType("varchar(500)")
  10364. .HasCharSet("utf8")
  10365. .HasCollation("utf8_general_ci");
  10366. entity.Property(e => e.SeoKeyword)
  10367. .HasColumnType("varchar(200)")
  10368. .HasCharSet("utf8")
  10369. .HasCollation("utf8_general_ci");
  10370. entity.Property(e => e.SeoTitle)
  10371. .HasColumnType("varchar(100)")
  10372. .HasCharSet("utf8")
  10373. .HasCollation("utf8_general_ci");
  10374. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  10375. entity.Property(e => e.SettleBankCardName)
  10376. .HasColumnType("varchar(20)")
  10377. .HasCharSet("utf8")
  10378. .HasCollation("utf8_general_ci");
  10379. entity.Property(e => e.SettleBankCardNo)
  10380. .HasColumnType("varchar(32)")
  10381. .HasCharSet("utf8")
  10382. .HasCollation("utf8_general_ci");
  10383. entity.Property(e => e.SettleBankName)
  10384. .HasColumnType("varchar(32)")
  10385. .HasCharSet("utf8")
  10386. .HasCollation("utf8_general_ci");
  10387. entity.Property(e => e.SettleRemark)
  10388. .HasColumnType("varchar(64)")
  10389. .HasCharSet("utf8")
  10390. .HasCollation("utf8_general_ci");
  10391. entity.Property(e => e.Sex).HasColumnType("int(11)");
  10392. entity.Property(e => e.SignImgUrl)
  10393. .HasColumnType("varchar(200)")
  10394. .HasCharSet("utf8")
  10395. .HasCollation("utf8_general_ci");
  10396. entity.Property(e => e.Sort).HasColumnType("int(11)");
  10397. entity.Property(e => e.Status).HasColumnType("int(11)");
  10398. entity.Property(e => e.Tags)
  10399. .HasColumnType("varchar(200)")
  10400. .HasCharSet("utf8")
  10401. .HasCollation("utf8_general_ci");
  10402. entity.Property(e => e.ThisMonthTrade).HasColumnType("decimal(18,2)");
  10403. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  10404. entity.Property(e => e.UpdateMan)
  10405. .HasColumnType("varchar(50)")
  10406. .HasCharSet("utf8")
  10407. .HasCollation("utf8_general_ci");
  10408. entity.Property(e => e.UserLevel).HasColumnType("int(11)");
  10409. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  10410. entity.Property(e => e.UserType).HasColumnType("int(11)");
  10411. entity.Property(e => e.Version).HasColumnType("int(11)");
  10412. });
  10413. OnModelCreatingPartial(modelBuilder);
  10414. }
  10415. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  10416. }
  10417. }