WebCMSEntities.cs 520 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637
  1. using System;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata;
  4. namespace MySystem.Models
  5. {
  6. public partial class WebCMSEntities : DbContext
  7. {
  8. public WebCMSEntities()
  9. {
  10. }
  11. public WebCMSEntities(DbContextOptions<WebCMSEntities> options)
  12. : base(options)
  13. {
  14. }
  15. public virtual DbSet<ActiveReward> ActiveReward { get; set; }
  16. public virtual DbSet<ActivityEnrolRecord> ActivityEnrolRecord { get; set; }
  17. public virtual DbSet<ActivityInfo> ActivityInfo { get; set; }
  18. public virtual DbSet<ActivityPrizeDetail> ActivityPrizeDetail { get; set; }
  19. public virtual DbSet<Advertisment> Advertisment { get; set; }
  20. public virtual DbSet<AgentLevelSet> AgentLevelSet { get; set; }
  21. public virtual DbSet<AppBottomNavs> AppBottomNavs { get; set; }
  22. public virtual DbSet<AppVersion> AppVersion { get; set; }
  23. public virtual DbSet<AppVideo> AppVideo { get; set; }
  24. public virtual DbSet<AppVideoList> AppVideoList { get; set; }
  25. public virtual DbSet<BankInfo> BankInfo { get; set; }
  26. public virtual DbSet<Col> Col { get; set; }
  27. public virtual DbSet<ConsumerOpenIds> ConsumerOpenIds { get; set; }
  28. public virtual DbSet<ConsumerOrderForNo> ConsumerOrderForNo { get; set; }
  29. public virtual DbSet<ConsumerOrders> ConsumerOrders { get; set; }
  30. public virtual DbSet<ConsumerProfit> ConsumerProfit { get; set; }
  31. public virtual DbSet<Consumers> Consumers { get; set; }
  32. public virtual DbSet<CouponAssignRecords> CouponAssignRecords { get; set; }
  33. public virtual DbSet<Coupons> Coupons { get; set; }
  34. public virtual DbSet<CouponsForUser> CouponsForUser { get; set; }
  35. public virtual DbSet<CustomTagSet> CustomTagSet { get; set; }
  36. public virtual DbSet<ErpCompanys> ErpCompanys { get; set; }
  37. public virtual DbSet<FileUpdateInfo> FileUpdateInfo { get; set; }
  38. public virtual DbSet<FluxProfitDetail> FluxProfitDetail { get; set; }
  39. public virtual DbSet<FluxProfitSummary> FluxProfitSummary { get; set; }
  40. public virtual DbSet<IndexIconList> IndexIconList { get; set; }
  41. public virtual DbSet<KqProductBrand> KqProductBrand { get; set; }
  42. public virtual DbSet<KqProductOrgs> KqProductOrgs { get; set; }
  43. public virtual DbSet<KqProductRuleSet> KqProductRuleSet { get; set; }
  44. public virtual DbSet<KqProducts> KqProducts { get; set; }
  45. public virtual DbSet<MachineApply> MachineApply { get; set; }
  46. public virtual DbSet<MachineApplyDetail> MachineApplyDetail { get; set; }
  47. public virtual DbSet<MachineChange> MachineChange { get; set; }
  48. public virtual DbSet<MachineChangeDetail> MachineChangeDetail { get; set; }
  49. public virtual DbSet<MachineForMerNo> MachineForMerNo { get; set; }
  50. public virtual DbSet<MachineForQrCode> MachineForQrCode { get; set; }
  51. public virtual DbSet<MachineForSnNo> MachineForSnNo { get; set; }
  52. public virtual DbSet<MachineRenew> MachineRenew { get; set; }
  53. public virtual DbSet<MachineReturn> MachineReturn { get; set; }
  54. public virtual DbSet<MachineUnBind> MachineUnBind { get; set; }
  55. public virtual DbSet<MenuRight> MenuRight { get; set; }
  56. public virtual DbSet<MerchantAddInfo> MerchantAddInfo { get; set; }
  57. public virtual DbSet<MerchantAdmin> MerchantAdmin { get; set; }
  58. public virtual DbSet<MerchantAuth> MerchantAuth { get; set; }
  59. public virtual DbSet<MerchantClass> MerchantClass { get; set; }
  60. public virtual DbSet<MerchantCol> MerchantCol { get; set; }
  61. public virtual DbSet<MerchantComment> MerchantComment { get; set; }
  62. public virtual DbSet<MerchantForCode> MerchantForCode { get; set; }
  63. public virtual DbSet<MerchantForMobile> MerchantForMobile { get; set; }
  64. public virtual DbSet<MerchantForName> MerchantForName { get; set; }
  65. public virtual DbSet<MerchantInfo> MerchantInfo { get; set; }
  66. public virtual DbSet<MerchantParamSet> MerchantParamSet { get; set; }
  67. public virtual DbSet<MerchantQrCode> MerchantQrCode { get; set; }
  68. public virtual DbSet<MerchantRebateDetail> MerchantRebateDetail { get; set; }
  69. public virtual DbSet<Merchants> Merchants { get; set; }
  70. public virtual DbSet<MobileCodeCheck> MobileCodeCheck { get; set; }
  71. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  72. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  73. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  74. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  75. public virtual DbSet<MsgPush> MsgPush { get; set; }
  76. public virtual DbSet<MsgSms> MsgSms { get; set; }
  77. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  78. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  79. public virtual DbSet<OpenBankCityTable> OpenBankCityTable { get; set; }
  80. public virtual DbSet<OpenBankTable> OpenBankTable { get; set; }
  81. public virtual DbSet<OpenReward> OpenReward { get; set; }
  82. public virtual DbSet<OpenRewardDetail> OpenRewardDetail { get; set; }
  83. public virtual DbSet<OpenSnSnapshot> OpenSnSnapshot { get; set; }
  84. public virtual DbSet<OperateLog> OperateLog { get; set; }
  85. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  86. public virtual DbSet<OrderForNo> OrderForNo { get; set; }
  87. public virtual DbSet<OrderProduct> OrderProduct { get; set; }
  88. public virtual DbSet<OrderRefund> OrderRefund { get; set; }
  89. public virtual DbSet<OrderRefundReason> OrderRefundReason { get; set; }
  90. public virtual DbSet<Orders> Orders { get; set; }
  91. public virtual DbSet<PageInfo> PageInfo { get; set; }
  92. public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
  93. public virtual DbSet<PosMachines> PosMachines { get; set; }
  94. public virtual DbSet<PosMachinesTwo> PosMachinesTwo { get; set; }
  95. public virtual DbSet<PosMerchantInfo> PosMerchantInfo { get; set; }
  96. public virtual DbSet<PosMerchantOtherInfo> PosMerchantOtherInfo { get; set; }
  97. public virtual DbSet<PosMerchantTradeSummay> PosMerchantTradeSummay { get; set; }
  98. public virtual DbSet<ProductComment> ProductComment { get; set; }
  99. public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
  100. public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
  101. public virtual DbSet<ProductFareTemp> ProductFareTemp { get; set; }
  102. public virtual DbSet<ProductKeys> ProductKeys { get; set; }
  103. public virtual DbSet<ProductNorm> ProductNorm { get; set; }
  104. public virtual DbSet<ProductNormItem> ProductNormItem { get; set; }
  105. public virtual DbSet<ProductNormTemp> ProductNormTemp { get; set; }
  106. public virtual DbSet<Products> Products { get; set; }
  107. public virtual DbSet<ProfitObjectActivations> ProfitObjectActivations { get; set; }
  108. public virtual DbSet<ProfitObjectContinueFloors> ProfitObjectContinueFloors { get; set; }
  109. public virtual DbSet<ProfitObjectFloors> ProfitObjectFloors { get; set; }
  110. public virtual DbSet<ProfitObjectLevelKinds> ProfitObjectLevelKinds { get; set; }
  111. public virtual DbSet<ProfitObjectLevels> ProfitObjectLevels { get; set; }
  112. public virtual DbSet<ProfitObjects> ProfitObjects { get; set; }
  113. public virtual DbSet<ProfitObjectsActiveCheck> ProfitObjectsActiveCheck { get; set; }
  114. public virtual DbSet<ProfitObjectsActiveParams> ProfitObjectsActiveParams { get; set; }
  115. public virtual DbSet<ProfitObjectsActives> ProfitObjectsActives { get; set; }
  116. public virtual DbSet<ProfitObjectsActivesForId> ProfitObjectsActivesForId { get; set; }
  117. public virtual DbSet<ProfitObjectsRule> ProfitObjectsRule { get; set; }
  118. public virtual DbSet<ProfitObjectsRuleDetails> ProfitObjectsRuleDetails { get; set; }
  119. public virtual DbSet<ProfitReceiveRecord> ProfitReceiveRecord { get; set; }
  120. public virtual DbSet<ProfitReceives> ProfitReceives { get; set; }
  121. public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
  122. public virtual DbSet<ProfitRewardRecord> ProfitRewardRecord { get; set; }
  123. public virtual DbSet<ProfitSubsidyDetail> ProfitSubsidyDetail { get; set; }
  124. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  125. public virtual DbSet<PullNewAct> PullNewAct { get; set; }
  126. public virtual DbSet<PullNewDetail> PullNewDetail { get; set; }
  127. public virtual DbSet<PullnewSummary> PullnewSummary { get; set; }
  128. public virtual DbSet<RightDic> RightDic { get; set; }
  129. public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
  130. public virtual DbSet<StoreBalance> StoreBalance { get; set; }
  131. public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
  132. public virtual DbSet<StoreForCode> StoreForCode { get; set; }
  133. public virtual DbSet<StoreForName> StoreForName { get; set; }
  134. public virtual DbSet<StoreHouse> StoreHouse { get; set; }
  135. public virtual DbSet<StoreMallOrderSummary> StoreMallOrderSummary { get; set; }
  136. public virtual DbSet<StoreSnActivateSummary> StoreSnActivateSummary { get; set; }
  137. public virtual DbSet<StoreStockChange> StoreStockChange { get; set; }
  138. public virtual DbSet<StoreSwapSn> StoreSwapSn { get; set; }
  139. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  140. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  141. public virtual DbSet<SysLog> SysLog { get; set; }
  142. public virtual DbSet<SysRechargeRecord> SysRechargeRecord { get; set; }
  143. public virtual DbSet<SystemSet> SystemSet { get; set; }
  144. public virtual DbSet<TeamApply> TeamApply { get; set; }
  145. public virtual DbSet<TeamApplyForTeamName> TeamApplyForTeamName { get; set; }
  146. public virtual DbSet<TeamApplyForTeamNo> TeamApplyForTeamNo { get; set; }
  147. public virtual DbSet<TeamBlackList> TeamBlackList { get; set; }
  148. public virtual DbSet<TeamConfig> TeamConfig { get; set; }
  149. public virtual DbSet<TeamDayTop> TeamDayTop { get; set; }
  150. public virtual DbSet<TeamOfferApply> TeamOfferApply { get; set; }
  151. public virtual DbSet<TeamPersonDayTop> TeamPersonDayTop { get; set; }
  152. public virtual DbSet<TmpTradeNo> TmpTradeNo { get; set; }
  153. public virtual DbSet<TradeDaySummary> TradeDaySummary { get; set; }
  154. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  155. public virtual DbSet<UploadParams> UploadParams { get; set; }
  156. public virtual DbSet<UserAccount> UserAccount { get; set; }
  157. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  158. public virtual DbSet<UserAddress> UserAddress { get; set; }
  159. public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
  160. public virtual DbSet<UserBack> UserBack { get; set; }
  161. public virtual DbSet<UserBackKind> UserBackKind { get; set; }
  162. public virtual DbSet<UserBalanceTop> UserBalanceTop { get; set; }
  163. public virtual DbSet<UserCar> UserCar { get; set; }
  164. public virtual DbSet<UserCardForWeChat> UserCardForWeChat { get; set; }
  165. public virtual DbSet<UserCardRecord> UserCardRecord { get; set; }
  166. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  167. public virtual DbSet<UserCenterIconList> UserCenterIconList { get; set; }
  168. public virtual DbSet<UserCollection> UserCollection { get; set; }
  169. public virtual DbSet<UserData> UserData { get; set; }
  170. public virtual DbSet<UserDetail> UserDetail { get; set; }
  171. public virtual DbSet<UserFamilyMember> UserFamilyMember { get; set; }
  172. public virtual DbSet<UserForMakerCode> UserForMakerCode { get; set; }
  173. public virtual DbSet<UserForMobile> UserForMobile { get; set; }
  174. public virtual DbSet<UserForRealName> UserForRealName { get; set; }
  175. public virtual DbSet<UserFriend> UserFriend { get; set; }
  176. public virtual DbSet<UserGroup> UserGroup { get; set; }
  177. public virtual DbSet<UserLevelSet> UserLevelSet { get; set; }
  178. public virtual DbSet<UserLoginRecord> UserLoginRecord { get; set; }
  179. public virtual DbSet<UserMachineData> UserMachineData { get; set; }
  180. public virtual DbSet<UserMallLargeSn> UserMallLargeSn { get; set; }
  181. public virtual DbSet<UserOfflineSignInRecords> UserOfflineSignInRecords { get; set; }
  182. public virtual DbSet<UserProfit> UserProfit { get; set; }
  183. public virtual DbSet<UserProfitSet> UserProfitSet { get; set; }
  184. public virtual DbSet<UserProfitSubsidySummary> UserProfitSubsidySummary { get; set; }
  185. public virtual DbSet<UserRank> UserRank { get; set; }
  186. public virtual DbSet<UserRankWhite> UserRankWhite { get; set; }
  187. public virtual DbSet<UserRebateDetail> UserRebateDetail { get; set; }
  188. public virtual DbSet<UserSnActInfo> UserSnActInfo { get; set; }
  189. public virtual DbSet<UserSnDelayChange> UserSnDelayChange { get; set; }
  190. public virtual DbSet<UserStoreChange> UserStoreChange { get; set; }
  191. public virtual DbSet<UserSwapDetail> UserSwapDetail { get; set; }
  192. public virtual DbSet<UserSwapSummary> UserSwapSummary { get; set; }
  193. public virtual DbSet<UserSwapWhite> UserSwapWhite { get; set; }
  194. public virtual DbSet<UserTradeDaySummary> UserTradeDaySummary { get; set; }
  195. public virtual DbSet<UserTradeMonthSummary> UserTradeMonthSummary { get; set; }
  196. public virtual DbSet<Users> Users { get; set; }
  197. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  198. {
  199. if (!optionsBuilder.IsConfigured)
  200. {
  201. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  202. }
  203. }
  204. protected override void OnModelCreating(ModelBuilder modelBuilder)
  205. {
  206. modelBuilder.Entity<ActiveReward>(entity =>
  207. {
  208. entity.Property(e => e.Id).HasColumnType("int(11)");
  209. entity.Property(e => e.ActDate).HasColumnType("datetime");
  210. entity.Property(e => e.ActType).HasColumnType("int(11)");
  211. entity.Property(e => e.ActTypeDesc)
  212. .HasColumnType("varchar(64)")
  213. .HasCharSet("utf8")
  214. .HasCollation("utf8_general_ci");
  215. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  216. entity.Property(e => e.City)
  217. .HasColumnType("varchar(32)")
  218. .HasCharSet("utf8")
  219. .HasCollation("utf8_general_ci");
  220. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  221. entity.Property(e => e.CreateMan)
  222. .HasColumnType("varchar(50)")
  223. .HasCharSet("utf8")
  224. .HasCollation("utf8_general_ci");
  225. entity.Property(e => e.DirectBuddyNo).HasColumnType("int(11)");
  226. entity.Property(e => e.DivideAmount).HasColumnType("decimal(18,2)");
  227. entity.Property(e => e.KqMerNo)
  228. .HasColumnType("varchar(32)")
  229. .HasCharSet("utf8")
  230. .HasCollation("utf8_general_ci");
  231. entity.Property(e => e.KqSnNo)
  232. .HasColumnType("varchar(32)")
  233. .HasCharSet("utf8")
  234. .HasCollation("utf8_general_ci");
  235. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  236. entity.Property(e => e.MerUserNav)
  237. .HasColumnType("varchar(200)")
  238. .HasCharSet("utf8")
  239. .HasCollation("utf8_general_ci");
  240. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  241. entity.Property(e => e.ParentParentUserId).HasColumnType("int(11)");
  242. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  243. entity.Property(e => e.Province)
  244. .HasColumnType("varchar(32)")
  245. .HasCharSet("utf8")
  246. .HasCollation("utf8_general_ci");
  247. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  248. entity.Property(e => e.Remark)
  249. .HasColumnType("varchar(64)")
  250. .HasCharSet("utf8")
  251. .HasCollation("utf8_general_ci");
  252. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  253. entity.Property(e => e.RewardRef).HasColumnType("int(11)");
  254. entity.Property(e => e.RewardSourceUserId).HasColumnType("int(11)");
  255. entity.Property(e => e.RewardTips)
  256. .HasColumnType("varchar(16)")
  257. .HasCharSet("utf8")
  258. .HasCollation("utf8_general_ci");
  259. entity.Property(e => e.RuleRewardAmount).HasColumnType("decimal(18,2)");
  260. entity.Property(e => e.SeoDescription)
  261. .HasColumnType("varchar(500)")
  262. .HasCharSet("utf8")
  263. .HasCollation("utf8_general_ci");
  264. entity.Property(e => e.SeoKeyword)
  265. .HasColumnType("varchar(200)")
  266. .HasCharSet("utf8")
  267. .HasCollation("utf8_general_ci");
  268. entity.Property(e => e.SeoTitle)
  269. .HasColumnType("varchar(100)")
  270. .HasCharSet("utf8")
  271. .HasCollation("utf8_general_ci");
  272. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  273. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  274. entity.Property(e => e.SnType).HasColumnType("int(11)");
  275. entity.Property(e => e.Sort).HasColumnType("int(11)");
  276. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  277. entity.Property(e => e.Status).HasColumnType("int(11)");
  278. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  279. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  280. entity.Property(e => e.UpdateMan)
  281. .HasColumnType("varchar(50)")
  282. .HasCharSet("utf8")
  283. .HasCollation("utf8_general_ci");
  284. entity.Property(e => e.UserId).HasColumnType("int(11)");
  285. entity.Property(e => e.UserNav)
  286. .HasColumnType("varchar(200)")
  287. .HasCharSet("utf8")
  288. .HasCollation("utf8_general_ci");
  289. entity.Property(e => e.Version).HasColumnType("int(11)");
  290. });
  291. modelBuilder.Entity<ActivityEnrolRecord>(entity =>
  292. {
  293. entity.Property(e => e.Id).HasColumnType("int(11)");
  294. entity.Property(e => e.ActId).HasColumnType("int(11)");
  295. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  296. entity.Property(e => e.CreateMan)
  297. .HasColumnType("varchar(50)")
  298. .HasCharSet("utf8")
  299. .HasCollation("utf8_general_ci");
  300. entity.Property(e => e.EffectEndTime)
  301. .HasColumnType("varchar(8)")
  302. .HasCharSet("utf8")
  303. .HasCollation("utf8_general_ci");
  304. entity.Property(e => e.EffectStartTime)
  305. .HasColumnType("varchar(8)")
  306. .HasCharSet("utf8")
  307. .HasCollation("utf8_general_ci");
  308. entity.Property(e => e.EnrolMonth)
  309. .HasColumnType("varchar(80)")
  310. .HasCharSet("utf8")
  311. .HasCollation("utf8_general_ci");
  312. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  313. entity.Property(e => e.SeoDescription)
  314. .HasColumnType("varchar(500)")
  315. .HasCharSet("utf8")
  316. .HasCollation("utf8_general_ci");
  317. entity.Property(e => e.SeoKeyword)
  318. .HasColumnType("varchar(200)")
  319. .HasCharSet("utf8")
  320. .HasCollation("utf8_general_ci");
  321. entity.Property(e => e.SeoTitle)
  322. .HasColumnType("varchar(100)")
  323. .HasCharSet("utf8")
  324. .HasCollation("utf8_general_ci");
  325. entity.Property(e => e.Sort).HasColumnType("int(11)");
  326. entity.Property(e => e.Status).HasColumnType("int(11)");
  327. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  328. entity.Property(e => e.UpdateMan)
  329. .HasColumnType("varchar(50)")
  330. .HasCharSet("utf8")
  331. .HasCollation("utf8_general_ci");
  332. entity.Property(e => e.UserId).HasColumnType("int(11)");
  333. entity.Property(e => e.Version).HasColumnType("int(11)");
  334. });
  335. modelBuilder.Entity<ActivityInfo>(entity =>
  336. {
  337. entity.Property(e => e.Id).HasColumnType("int(11)");
  338. entity.Property(e => e.ActBanner)
  339. .HasColumnType("varchar(200)")
  340. .HasCharSet("utf8")
  341. .HasCollation("utf8_general_ci");
  342. entity.Property(e => e.ActCode)
  343. .HasColumnType("varchar(32)")
  344. .HasCharSet("utf8")
  345. .HasCollation("utf8_general_ci");
  346. entity.Property(e => e.ActContent)
  347. .HasColumnType("longtext")
  348. .HasCharSet("utf8")
  349. .HasCollation("utf8_general_ci");
  350. entity.Property(e => e.ActName)
  351. .HasColumnType("varchar(128)")
  352. .HasCharSet("utf8")
  353. .HasCollation("utf8_general_ci");
  354. entity.Property(e => e.ActReferUrl)
  355. .HasColumnType("varchar(255)")
  356. .HasCharSet("utf8")
  357. .HasCollation("utf8_general_ci");
  358. entity.Property(e => e.ActType).HasColumnType("int(11)");
  359. entity.Property(e => e.BrandId)
  360. .HasColumnType("varchar(100)")
  361. .HasCharSet("utf8")
  362. .HasCollation("utf8_general_ci");
  363. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  364. entity.Property(e => e.CreateMan)
  365. .HasColumnType("varchar(50)")
  366. .HasCharSet("utf8")
  367. .HasCollation("utf8_general_ci");
  368. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  369. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  370. entity.Property(e => e.EnrolEndDate).HasColumnType("datetime");
  371. entity.Property(e => e.EnrolEndTime)
  372. .HasColumnType("varchar(8)")
  373. .HasCharSet("utf8")
  374. .HasCollation("utf8_general_ci");
  375. entity.Property(e => e.EnrolStartDate).HasColumnType("datetime");
  376. entity.Property(e => e.EnrolStartTime)
  377. .HasColumnType("varchar(8)")
  378. .HasCharSet("utf8")
  379. .HasCollation("utf8_general_ci");
  380. entity.Property(e => e.IsTop).HasColumnType("int(11)");
  381. entity.Property(e => e.LimitTopBuddy)
  382. .HasColumnType("varchar(255)")
  383. .HasCharSet("utf8")
  384. .HasCollation("utf8_general_ci");
  385. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  386. entity.Property(e => e.Remark)
  387. .HasColumnType("varchar(128)")
  388. .HasCharSet("utf8")
  389. .HasCollation("utf8_general_ci");
  390. entity.Property(e => e.SeoDescription)
  391. .HasColumnType("varchar(500)")
  392. .HasCharSet("utf8")
  393. .HasCollation("utf8_general_ci");
  394. entity.Property(e => e.SeoKeyword)
  395. .HasColumnType("varchar(200)")
  396. .HasCharSet("utf8")
  397. .HasCollation("utf8_general_ci");
  398. entity.Property(e => e.SeoTitle)
  399. .HasColumnType("varchar(100)")
  400. .HasCharSet("utf8")
  401. .HasCollation("utf8_general_ci");
  402. entity.Property(e => e.Sort).HasColumnType("int(11)");
  403. entity.Property(e => e.Status).HasColumnType("int(11)");
  404. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  405. entity.Property(e => e.UpdateMan)
  406. .HasColumnType("varchar(50)")
  407. .HasCharSet("utf8")
  408. .HasCollation("utf8_general_ci");
  409. entity.Property(e => e.Version).HasColumnType("int(11)");
  410. });
  411. modelBuilder.Entity<ActivityPrizeDetail>(entity =>
  412. {
  413. entity.Property(e => e.Id).HasColumnType("int(11)");
  414. entity.Property(e => e.ActRewardAmt).HasColumnType("decimal(18,2)");
  415. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  416. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  417. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  418. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  419. entity.Property(e => e.CreateMan)
  420. .HasColumnType("varchar(50)")
  421. .HasCharSet("utf8")
  422. .HasCollation("utf8_general_ci");
  423. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  424. entity.Property(e => e.OtherProdCreditTradeAmt).HasColumnType("decimal(18,2)");
  425. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  426. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  427. entity.Property(e => e.SeoDescription)
  428. .HasColumnType("varchar(500)")
  429. .HasCharSet("utf8")
  430. .HasCollation("utf8_general_ci");
  431. entity.Property(e => e.SeoKeyword)
  432. .HasColumnType("varchar(200)")
  433. .HasCharSet("utf8")
  434. .HasCollation("utf8_general_ci");
  435. entity.Property(e => e.SeoTitle)
  436. .HasColumnType("varchar(100)")
  437. .HasCharSet("utf8")
  438. .HasCollation("utf8_general_ci");
  439. entity.Property(e => e.Sort).HasColumnType("int(11)");
  440. entity.Property(e => e.Status).HasColumnType("int(11)");
  441. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  442. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  443. entity.Property(e => e.TradeMonth)
  444. .HasColumnType("varchar(6)")
  445. .HasCharSet("utf8")
  446. .HasCollation("utf8_general_ci");
  447. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  448. entity.Property(e => e.UpdateMan)
  449. .HasColumnType("varchar(50)")
  450. .HasCharSet("utf8")
  451. .HasCollation("utf8_general_ci");
  452. entity.Property(e => e.UserId).HasColumnType("int(11)");
  453. entity.Property(e => e.Version).HasColumnType("int(11)");
  454. });
  455. modelBuilder.Entity<Advertisment>(entity =>
  456. {
  457. entity.Property(e => e.Id).HasColumnType("int(11)");
  458. entity.Property(e => e.ColId)
  459. .HasColumnType("varchar(30)")
  460. .HasCharSet("utf8")
  461. .HasCollation("utf8_general_ci");
  462. entity.Property(e => e.Contents)
  463. .HasColumnType("longtext")
  464. .HasCharSet("utf8")
  465. .HasCollation("utf8_general_ci");
  466. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  467. entity.Property(e => e.CreateMan)
  468. .HasColumnType("varchar(50)")
  469. .HasCharSet("utf8")
  470. .HasCollation("utf8_general_ci");
  471. entity.Property(e => e.PicPath)
  472. .HasColumnType("varchar(200)")
  473. .HasCharSet("utf8")
  474. .HasCollation("utf8_general_ci");
  475. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  476. entity.Property(e => e.SeoDescription)
  477. .HasColumnType("varchar(500)")
  478. .HasCharSet("utf8")
  479. .HasCollation("utf8_general_ci");
  480. entity.Property(e => e.SeoKeyword)
  481. .HasColumnType("varchar(200)")
  482. .HasCharSet("utf8")
  483. .HasCollation("utf8_general_ci");
  484. entity.Property(e => e.SeoTitle)
  485. .HasColumnType("varchar(100)")
  486. .HasCharSet("utf8")
  487. .HasCollation("utf8_general_ci");
  488. entity.Property(e => e.Sort).HasColumnType("int(11)");
  489. entity.Property(e => e.Status).HasColumnType("int(11)");
  490. entity.Property(e => e.Title)
  491. .HasColumnType("varchar(50)")
  492. .HasCharSet("utf8")
  493. .HasCollation("utf8_general_ci");
  494. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  495. entity.Property(e => e.UpdateMan)
  496. .HasColumnType("varchar(50)")
  497. .HasCharSet("utf8")
  498. .HasCollation("utf8_general_ci");
  499. entity.Property(e => e.Url)
  500. .HasColumnType("longtext")
  501. .HasCharSet("utf8")
  502. .HasCollation("utf8_general_ci");
  503. entity.Property(e => e.Version).HasColumnType("int(11)");
  504. });
  505. modelBuilder.Entity<AgentLevelSet>(entity =>
  506. {
  507. entity.Property(e => e.Id).HasColumnType("int(11)");
  508. entity.Property(e => e.AreasProfitPercent).HasColumnType("decimal(18,2)");
  509. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  510. entity.Property(e => e.LevelDiff)
  511. .HasColumnType("bit(1)")
  512. .HasDefaultValueSql("b'0'");
  513. entity.Property(e => e.Name)
  514. .HasColumnType("varchar(50)")
  515. .HasCharSet("utf8")
  516. .HasCollation("utf8_general_ci");
  517. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  518. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  519. entity.Property(e => e.SeoDescription)
  520. .HasColumnType("varchar(500)")
  521. .HasCharSet("utf8")
  522. .HasCollation("utf8_general_ci");
  523. entity.Property(e => e.SeoKeyword)
  524. .HasColumnType("varchar(200)")
  525. .HasCharSet("utf8")
  526. .HasCollation("utf8_general_ci");
  527. entity.Property(e => e.SeoTitle)
  528. .HasColumnType("varchar(100)")
  529. .HasCharSet("utf8")
  530. .HasCollation("utf8_general_ci");
  531. entity.Property(e => e.Sort).HasColumnType("int(11)");
  532. entity.Property(e => e.Status).HasColumnType("int(11)");
  533. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  534. });
  535. modelBuilder.Entity<AppBottomNavs>(entity =>
  536. {
  537. entity.Property(e => e.Id).HasColumnType("int(11)");
  538. entity.Property(e => e.BgColor)
  539. .HasColumnType("varchar(6)")
  540. .HasCharSet("utf8")
  541. .HasCollation("utf8_general_ci");
  542. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  543. entity.Property(e => e.CreateMan)
  544. .HasColumnType("varchar(50)")
  545. .HasCharSet("utf8")
  546. .HasCollation("utf8_general_ci");
  547. entity.Property(e => e.NoPageHint)
  548. .HasColumnType("varchar(50)")
  549. .HasCharSet("utf8")
  550. .HasCollation("utf8_general_ci");
  551. entity.Property(e => e.NormalIcon)
  552. .HasColumnType("varchar(200)")
  553. .HasCharSet("utf8")
  554. .HasCollation("utf8_general_ci");
  555. entity.Property(e => e.NormalTextColor)
  556. .HasColumnType("varchar(6)")
  557. .HasCharSet("utf8")
  558. .HasCollation("utf8_general_ci");
  559. entity.Property(e => e.PageName)
  560. .HasColumnType("varchar(50)")
  561. .HasCharSet("utf8")
  562. .HasCollation("utf8_general_ci");
  563. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  564. entity.Property(e => e.SelectIcon)
  565. .HasColumnType("varchar(200)")
  566. .HasCharSet("utf8")
  567. .HasCollation("utf8_general_ci");
  568. entity.Property(e => e.SelectTextColor)
  569. .HasColumnType("varchar(6)")
  570. .HasCharSet("utf8")
  571. .HasCollation("utf8_general_ci");
  572. entity.Property(e => e.SeoDescription)
  573. .HasColumnType("varchar(500)")
  574. .HasCharSet("utf8")
  575. .HasCollation("utf8_general_ci");
  576. entity.Property(e => e.SeoKeyword)
  577. .HasColumnType("varchar(200)")
  578. .HasCharSet("utf8")
  579. .HasCollation("utf8_general_ci");
  580. entity.Property(e => e.SeoTitle)
  581. .HasColumnType("varchar(100)")
  582. .HasCharSet("utf8")
  583. .HasCollation("utf8_general_ci");
  584. entity.Property(e => e.Sort).HasColumnType("int(11)");
  585. entity.Property(e => e.Status).HasColumnType("int(11)");
  586. entity.Property(e => e.Title)
  587. .HasColumnType("varchar(10)")
  588. .HasCharSet("utf8")
  589. .HasCollation("utf8_general_ci");
  590. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  591. entity.Property(e => e.UpdateMan)
  592. .HasColumnType("varchar(50)")
  593. .HasCharSet("utf8")
  594. .HasCollation("utf8_general_ci");
  595. entity.Property(e => e.Version).HasColumnType("int(11)");
  596. });
  597. modelBuilder.Entity<AppVersion>(entity =>
  598. {
  599. entity.Property(e => e.Id).HasColumnType("int(11)");
  600. entity.Property(e => e.CancelText)
  601. .HasColumnType("varchar(10)")
  602. .HasCharSet("utf8")
  603. .HasCollation("utf8_general_ci");
  604. entity.Property(e => e.ConfirmText)
  605. .HasColumnType("varchar(10)")
  606. .HasCharSet("utf8")
  607. .HasCollation("utf8_general_ci");
  608. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  609. entity.Property(e => e.CreateMan)
  610. .HasColumnType("varchar(50)")
  611. .HasCharSet("utf8")
  612. .HasCollation("utf8_general_ci");
  613. entity.Property(e => e.DownloadUrl)
  614. .HasColumnType("varchar(500)")
  615. .HasCharSet("utf8")
  616. .HasCollation("utf8_general_ci");
  617. entity.Property(e => e.Info)
  618. .HasColumnType("varchar(200)")
  619. .HasCharSet("utf8")
  620. .HasCollation("utf8_general_ci");
  621. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  622. entity.Property(e => e.SeoDescription)
  623. .HasColumnType("varchar(500)")
  624. .HasCharSet("utf8")
  625. .HasCollation("utf8_general_ci");
  626. entity.Property(e => e.SeoKeyword)
  627. .HasColumnType("varchar(200)")
  628. .HasCharSet("utf8")
  629. .HasCollation("utf8_general_ci");
  630. entity.Property(e => e.SeoTitle)
  631. .HasColumnType("varchar(100)")
  632. .HasCharSet("utf8")
  633. .HasCollation("utf8_general_ci");
  634. entity.Property(e => e.Sort).HasColumnType("int(11)");
  635. entity.Property(e => e.Status).HasColumnType("int(11)");
  636. entity.Property(e => e.TerminalKind)
  637. .HasColumnType("varchar(10)")
  638. .HasCharSet("utf8")
  639. .HasCollation("utf8_general_ci");
  640. entity.Property(e => e.Title)
  641. .HasColumnType("varchar(50)")
  642. .HasCharSet("utf8")
  643. .HasCollation("utf8_general_ci");
  644. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  645. entity.Property(e => e.UpdateMan)
  646. .HasColumnType("varchar(50)")
  647. .HasCharSet("utf8")
  648. .HasCollation("utf8_general_ci");
  649. entity.Property(e => e.Version).HasColumnType("int(11)");
  650. entity.Property(e => e.VersionNum)
  651. .HasColumnType("varchar(20)")
  652. .HasCharSet("utf8")
  653. .HasCollation("utf8_general_ci");
  654. });
  655. modelBuilder.Entity<AppVideo>(entity =>
  656. {
  657. entity.Property(e => e.Id).HasColumnType("int(11)");
  658. entity.Property(e => e.BannerPic)
  659. .HasColumnType("varchar(200)")
  660. .HasCharSet("utf8")
  661. .HasCollation("utf8_general_ci");
  662. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  663. entity.Property(e => e.CreateMan)
  664. .HasColumnType("varchar(50)")
  665. .HasCharSet("utf8")
  666. .HasCollation("utf8_general_ci");
  667. entity.Property(e => e.Name)
  668. .HasColumnType("varchar(50)")
  669. .HasCharSet("utf8")
  670. .HasCollation("utf8_general_ci");
  671. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  672. entity.Property(e => e.Remark)
  673. .HasColumnType("varchar(200)")
  674. .HasCharSet("utf8")
  675. .HasCollation("utf8_general_ci");
  676. entity.Property(e => e.SeoDescription)
  677. .HasColumnType("varchar(500)")
  678. .HasCharSet("utf8")
  679. .HasCollation("utf8_general_ci");
  680. entity.Property(e => e.SeoKeyword)
  681. .HasColumnType("varchar(200)")
  682. .HasCharSet("utf8")
  683. .HasCollation("utf8_general_ci");
  684. entity.Property(e => e.SeoTitle)
  685. .HasColumnType("varchar(100)")
  686. .HasCharSet("utf8")
  687. .HasCollation("utf8_general_ci");
  688. entity.Property(e => e.Sort).HasColumnType("int(11)");
  689. entity.Property(e => e.Status).HasColumnType("int(11)");
  690. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  691. entity.Property(e => e.UpdateMan)
  692. .HasColumnType("varchar(50)")
  693. .HasCharSet("utf8")
  694. .HasCollation("utf8_general_ci");
  695. entity.Property(e => e.Version).HasColumnType("int(11)");
  696. });
  697. modelBuilder.Entity<AppVideoList>(entity =>
  698. {
  699. entity.Property(e => e.Id).HasColumnType("int(11)");
  700. entity.Property(e => e.BgPic)
  701. .HasColumnType("varchar(200)")
  702. .HasCharSet("utf8")
  703. .HasCollation("utf8_general_ci");
  704. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  705. entity.Property(e => e.CreateMan)
  706. .HasColumnType("varchar(50)")
  707. .HasCharSet("utf8")
  708. .HasCollation("utf8_general_ci");
  709. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  710. entity.Property(e => e.Remark)
  711. .HasColumnType("varchar(200)")
  712. .HasCharSet("utf8")
  713. .HasCollation("utf8_general_ci");
  714. entity.Property(e => e.SeoDescription)
  715. .HasColumnType("varchar(500)")
  716. .HasCharSet("utf8")
  717. .HasCollation("utf8_general_ci");
  718. entity.Property(e => e.SeoKeyword)
  719. .HasColumnType("varchar(200)")
  720. .HasCharSet("utf8")
  721. .HasCollation("utf8_general_ci");
  722. entity.Property(e => e.SeoTitle)
  723. .HasColumnType("varchar(100)")
  724. .HasCharSet("utf8")
  725. .HasCollation("utf8_general_ci");
  726. entity.Property(e => e.Sort).HasColumnType("int(11)");
  727. entity.Property(e => e.Status).HasColumnType("int(11)");
  728. entity.Property(e => e.Title)
  729. .HasColumnType("varchar(50)")
  730. .HasCharSet("utf8")
  731. .HasCollation("utf8_general_ci");
  732. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  733. entity.Property(e => e.UpdateMan)
  734. .HasColumnType("varchar(50)")
  735. .HasCharSet("utf8")
  736. .HasCollation("utf8_general_ci");
  737. entity.Property(e => e.Version).HasColumnType("int(11)");
  738. entity.Property(e => e.VideoId).HasColumnType("int(11)");
  739. entity.Property(e => e.VideoUrl)
  740. .HasColumnType("varchar(500)")
  741. .HasCharSet("utf8")
  742. .HasCollation("utf8_general_ci");
  743. });
  744. modelBuilder.Entity<BankInfo>(entity =>
  745. {
  746. entity.Property(e => e.Id).HasColumnType("int(11)");
  747. entity.Property(e => e.BankCode)
  748. .HasColumnType("varchar(16)")
  749. .HasCharSet("utf8")
  750. .HasCollation("utf8_general_ci");
  751. entity.Property(e => e.BankName)
  752. .HasColumnType("varchar(100)")
  753. .HasCharSet("utf8")
  754. .HasCollation("utf8_general_ci");
  755. entity.Property(e => e.BankNameAbbr)
  756. .HasColumnType("varchar(60)")
  757. .HasCharSet("utf8")
  758. .HasCollation("utf8_general_ci");
  759. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  760. entity.Property(e => e.CreateMan)
  761. .HasColumnType("varchar(50)")
  762. .HasCharSet("utf8")
  763. .HasCollation("utf8_general_ci");
  764. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  765. entity.Property(e => e.SeoDescription)
  766. .HasColumnType("varchar(500)")
  767. .HasCharSet("utf8")
  768. .HasCollation("utf8_general_ci");
  769. entity.Property(e => e.SeoKeyword)
  770. .HasColumnType("varchar(200)")
  771. .HasCharSet("utf8")
  772. .HasCollation("utf8_general_ci");
  773. entity.Property(e => e.SeoTitle)
  774. .HasColumnType("varchar(100)")
  775. .HasCharSet("utf8")
  776. .HasCollation("utf8_general_ci");
  777. entity.Property(e => e.Sort).HasColumnType("int(11)");
  778. entity.Property(e => e.Status).HasColumnType("int(11)");
  779. entity.Property(e => e.UnitedBankName)
  780. .HasColumnType("varchar(100)")
  781. .HasCharSet("utf8")
  782. .HasCollation("utf8_general_ci");
  783. entity.Property(e => e.UnitedBankNo)
  784. .HasColumnType("varchar(16)")
  785. .HasCharSet("utf8")
  786. .HasCollation("utf8_general_ci");
  787. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  788. entity.Property(e => e.UpdateMan)
  789. .HasColumnType("varchar(50)")
  790. .HasCharSet("utf8")
  791. .HasCollation("utf8_general_ci");
  792. entity.Property(e => e.Version).HasColumnType("int(11)");
  793. });
  794. modelBuilder.Entity<Col>(entity =>
  795. {
  796. entity.Property(e => e.Id).HasColumnType("int(11)");
  797. entity.Property(e => e.ClassName)
  798. .HasColumnType("varchar(50)")
  799. .HasCharSet("utf8")
  800. .HasCollation("utf8_general_ci");
  801. entity.Property(e => e.ColDetail)
  802. .HasColumnType("varchar(50)")
  803. .HasCharSet("utf8")
  804. .HasCollation("utf8_general_ci");
  805. entity.Property(e => e.ColEnName)
  806. .HasColumnType("varchar(50)")
  807. .HasCharSet("utf8")
  808. .HasCollation("utf8_general_ci");
  809. entity.Property(e => e.ColEnNav)
  810. .HasColumnType("varchar(200)")
  811. .HasCharSet("utf8")
  812. .HasCollation("utf8_general_ci");
  813. entity.Property(e => e.ColId)
  814. .HasColumnType("varchar(30)")
  815. .HasCharSet("utf8")
  816. .HasCollation("utf8_general_ci");
  817. entity.Property(e => e.ColName)
  818. .HasColumnType("varchar(50)")
  819. .HasCharSet("utf8")
  820. .HasCollation("utf8_general_ci");
  821. entity.Property(e => e.ColPicPath)
  822. .HasColumnType("varchar(200)")
  823. .HasCharSet("utf8")
  824. .HasCollation("utf8_general_ci");
  825. entity.Property(e => e.Contents)
  826. .HasColumnType("longtext")
  827. .HasCharSet("utf8")
  828. .HasCollation("utf8_general_ci");
  829. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  830. entity.Property(e => e.CreateMan)
  831. .HasColumnType("varchar(50)")
  832. .HasCharSet("utf8")
  833. .HasCollation("utf8_general_ci");
  834. entity.Property(e => e.DetailTemp)
  835. .HasColumnType("varchar(100)")
  836. .HasCharSet("utf8")
  837. .HasCollation("utf8_general_ci");
  838. entity.Property(e => e.DetailTempM)
  839. .HasColumnType("varchar(100)")
  840. .HasCharSet("utf8")
  841. .HasCollation("utf8_general_ci");
  842. entity.Property(e => e.ListPageCount).HasColumnType("int(11)");
  843. entity.Property(e => e.ListTemp)
  844. .HasColumnType("varchar(100)")
  845. .HasCharSet("utf8")
  846. .HasCollation("utf8_general_ci");
  847. entity.Property(e => e.ListTempM)
  848. .HasColumnType("varchar(100)")
  849. .HasCharSet("utf8")
  850. .HasCollation("utf8_general_ci");
  851. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  852. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  853. entity.Property(e => e.Recommend)
  854. .HasColumnType("bit(1)")
  855. .HasDefaultValueSql("b'0'");
  856. entity.Property(e => e.SeoDescription)
  857. .HasColumnType("varchar(500)")
  858. .HasCharSet("utf8")
  859. .HasCollation("utf8_general_ci");
  860. entity.Property(e => e.SeoKeyword)
  861. .HasColumnType("varchar(200)")
  862. .HasCharSet("utf8")
  863. .HasCollation("utf8_general_ci");
  864. entity.Property(e => e.SeoTitle)
  865. .HasColumnType("varchar(100)")
  866. .HasCharSet("utf8")
  867. .HasCollation("utf8_general_ci");
  868. entity.Property(e => e.Sort).HasColumnType("int(11)");
  869. entity.Property(e => e.Status).HasColumnType("int(11)");
  870. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  871. entity.Property(e => e.UpdateMan)
  872. .HasColumnType("varchar(50)")
  873. .HasCharSet("utf8")
  874. .HasCollation("utf8_general_ci");
  875. entity.Property(e => e.Url)
  876. .HasColumnType("longtext")
  877. .HasCharSet("utf8")
  878. .HasCollation("utf8_general_ci");
  879. entity.Property(e => e.Version).HasColumnType("int(11)");
  880. });
  881. modelBuilder.Entity<ConsumerOpenIds>(entity =>
  882. {
  883. entity.HasKey(e => e.OpenId)
  884. .HasName("PRIMARY");
  885. entity.Property(e => e.OpenId)
  886. .HasColumnType("varchar(50)")
  887. .HasCharSet("utf8")
  888. .HasCollation("utf8_general_ci");
  889. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  890. });
  891. modelBuilder.Entity<ConsumerOrderForNo>(entity =>
  892. {
  893. entity.HasKey(e => e.OrderNo)
  894. .HasName("PRIMARY");
  895. entity.Property(e => e.OrderNo)
  896. .HasColumnType("varchar(50)")
  897. .HasCharSet("utf8")
  898. .HasCollation("utf8_general_ci");
  899. entity.Property(e => e.OrderIds).HasColumnType("int(11)");
  900. });
  901. modelBuilder.Entity<ConsumerOrders>(entity =>
  902. {
  903. entity.Property(e => e.Id).HasColumnType("int(11)");
  904. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  905. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  906. entity.Property(e => e.CreateMan)
  907. .HasColumnType("varchar(50)")
  908. .HasCharSet("utf8")
  909. .HasCollation("utf8_general_ci");
  910. entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
  911. entity.Property(e => e.IsAct)
  912. .HasColumnType("bit(1)")
  913. .HasDefaultValueSql("b'0'");
  914. entity.Property(e => e.MaxDivi).HasColumnType("decimal(18,2)");
  915. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  916. entity.Property(e => e.OrderNo)
  917. .HasColumnType("varchar(30)")
  918. .HasCharSet("utf8")
  919. .HasCollation("utf8_general_ci");
  920. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  921. entity.Property(e => e.PayMoney).HasColumnType("decimal(18,2)");
  922. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  923. entity.Property(e => e.ReturnMoney).HasColumnType("decimal(18,2)");
  924. entity.Property(e => e.SeoDescription)
  925. .HasColumnType("varchar(500)")
  926. .HasCharSet("utf8")
  927. .HasCollation("utf8_general_ci");
  928. entity.Property(e => e.SeoKeyword)
  929. .HasColumnType("varchar(200)")
  930. .HasCharSet("utf8")
  931. .HasCollation("utf8_general_ci");
  932. entity.Property(e => e.SeoTitle)
  933. .HasColumnType("varchar(100)")
  934. .HasCharSet("utf8")
  935. .HasCollation("utf8_general_ci");
  936. entity.Property(e => e.SnNo)
  937. .HasColumnType("varchar(50)")
  938. .HasCharSet("utf8")
  939. .HasCollation("utf8_general_ci");
  940. entity.Property(e => e.Sort).HasColumnType("int(11)");
  941. entity.Property(e => e.Status).HasColumnType("int(11)");
  942. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  943. entity.Property(e => e.UpdateMan)
  944. .HasColumnType("varchar(50)")
  945. .HasCharSet("utf8")
  946. .HasCollation("utf8_general_ci");
  947. entity.Property(e => e.Version).HasColumnType("int(11)");
  948. });
  949. modelBuilder.Entity<ConsumerProfit>(entity =>
  950. {
  951. entity.Property(e => e.Id).HasColumnType("int(11)");
  952. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  953. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  954. entity.Property(e => e.CreateMan)
  955. .HasColumnType("varchar(50)")
  956. .HasCharSet("utf8")
  957. .HasCollation("utf8_general_ci");
  958. entity.Property(e => e.GetMoney).HasColumnType("decimal(18,2)");
  959. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  960. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  961. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  962. entity.Property(e => e.SeoDescription)
  963. .HasColumnType("varchar(500)")
  964. .HasCharSet("utf8")
  965. .HasCollation("utf8_general_ci");
  966. entity.Property(e => e.SeoKeyword)
  967. .HasColumnType("varchar(200)")
  968. .HasCharSet("utf8")
  969. .HasCollation("utf8_general_ci");
  970. entity.Property(e => e.SeoTitle)
  971. .HasColumnType("varchar(100)")
  972. .HasCharSet("utf8")
  973. .HasCollation("utf8_general_ci");
  974. entity.Property(e => e.Sort).HasColumnType("int(11)");
  975. entity.Property(e => e.Status).HasColumnType("int(11)");
  976. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  977. entity.Property(e => e.UpdateMan)
  978. .HasColumnType("varchar(50)")
  979. .HasCharSet("utf8")
  980. .HasCollation("utf8_general_ci");
  981. entity.Property(e => e.Version).HasColumnType("int(11)");
  982. });
  983. modelBuilder.Entity<Consumers>(entity =>
  984. {
  985. entity.Property(e => e.Id).HasColumnType("int(11)");
  986. entity.Property(e => e.AlipayUserId)
  987. .HasColumnType("varchar(50)")
  988. .HasCharSet("utf8")
  989. .HasCollation("utf8_general_ci");
  990. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  991. entity.Property(e => e.CreateMan)
  992. .HasColumnType("varchar(50)")
  993. .HasCharSet("utf8")
  994. .HasCollation("utf8_general_ci");
  995. entity.Property(e => e.CurIntgegral).HasColumnType("int(11)");
  996. entity.Property(e => e.HeadPhoto)
  997. .HasColumnType("varchar(2000)")
  998. .HasCharSet("utf8")
  999. .HasCollation("utf8_general_ci");
  1000. entity.Property(e => e.LastConsumDate).HasColumnType("datetime");
  1001. entity.Property(e => e.Mobile)
  1002. .HasColumnType("varchar(11)")
  1003. .HasCharSet("utf8")
  1004. .HasCollation("utf8_general_ci");
  1005. entity.Property(e => e.NickName)
  1006. .HasColumnType("varchar(50)")
  1007. .HasCharSet("utf8")
  1008. .HasCollation("utf8_general_ci");
  1009. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1010. entity.Property(e => e.SeoDescription)
  1011. .HasColumnType("varchar(500)")
  1012. .HasCharSet("utf8")
  1013. .HasCollation("utf8_general_ci");
  1014. entity.Property(e => e.SeoKeyword)
  1015. .HasColumnType("varchar(200)")
  1016. .HasCharSet("utf8")
  1017. .HasCollation("utf8_general_ci");
  1018. entity.Property(e => e.SeoTitle)
  1019. .HasColumnType("varchar(100)")
  1020. .HasCharSet("utf8")
  1021. .HasCollation("utf8_general_ci");
  1022. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1023. entity.Property(e => e.Status).HasColumnType("int(11)");
  1024. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1025. entity.Property(e => e.TotalConsumCount).HasColumnType("int(11)");
  1026. entity.Property(e => e.TotalDividend).HasColumnType("decimal(18,2)");
  1027. entity.Property(e => e.TotalIntegral).HasColumnType("int(11)");
  1028. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1029. entity.Property(e => e.UpdateMan)
  1030. .HasColumnType("varchar(50)")
  1031. .HasCharSet("utf8")
  1032. .HasCollation("utf8_general_ci");
  1033. entity.Property(e => e.Version).HasColumnType("int(11)");
  1034. entity.Property(e => e.WechatOpenId)
  1035. .HasColumnType("varchar(50)")
  1036. .HasCharSet("utf8")
  1037. .HasCollation("utf8_general_ci");
  1038. entity.Property(e => e.WechatUnionid)
  1039. .HasColumnType("varchar(50)")
  1040. .HasCharSet("utf8")
  1041. .HasCollation("utf8_general_ci");
  1042. });
  1043. modelBuilder.Entity<CouponAssignRecords>(entity =>
  1044. {
  1045. entity.Property(e => e.Id).HasColumnType("int(11)");
  1046. entity.Property(e => e.Areas)
  1047. .HasColumnType("varchar(50)")
  1048. .HasCharSet("utf8")
  1049. .HasCollation("utf8_general_ci");
  1050. entity.Property(e => e.CouponIds)
  1051. .HasColumnType("varchar(200)")
  1052. .HasCharSet("utf8")
  1053. .HasCollation("utf8_general_ci");
  1054. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1055. entity.Property(e => e.CreateMan)
  1056. .HasColumnType("varchar(50)")
  1057. .HasCharSet("utf8")
  1058. .HasCollation("utf8_general_ci");
  1059. entity.Property(e => e.CurMoneyMax).HasColumnType("decimal(18,2)");
  1060. entity.Property(e => e.CurMoneyMin).HasColumnType("decimal(18,2)");
  1061. entity.Property(e => e.Mobile)
  1062. .HasColumnType("varchar(11)")
  1063. .HasCharSet("utf8")
  1064. .HasCollation("utf8_general_ci");
  1065. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1066. entity.Property(e => e.SeoDescription)
  1067. .HasColumnType("varchar(500)")
  1068. .HasCharSet("utf8")
  1069. .HasCollation("utf8_general_ci");
  1070. entity.Property(e => e.SeoKeyword)
  1071. .HasColumnType("varchar(200)")
  1072. .HasCharSet("utf8")
  1073. .HasCollation("utf8_general_ci");
  1074. entity.Property(e => e.SeoTitle)
  1075. .HasColumnType("varchar(100)")
  1076. .HasCharSet("utf8")
  1077. .HasCollation("utf8_general_ci");
  1078. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1079. entity.Property(e => e.Status).HasColumnType("int(11)");
  1080. entity.Property(e => e.TotalOrderMoneyMax).HasColumnType("decimal(18,2)");
  1081. entity.Property(e => e.TotalOrderMoneyMin).HasColumnType("decimal(18,2)");
  1082. entity.Property(e => e.TotalUseIntegralMax).HasColumnType("decimal(18,2)");
  1083. entity.Property(e => e.TotalUseIntegralMin).HasColumnType("decimal(18,2)");
  1084. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1085. entity.Property(e => e.UpdateMan)
  1086. .HasColumnType("varchar(50)")
  1087. .HasCharSet("utf8")
  1088. .HasCollation("utf8_general_ci");
  1089. entity.Property(e => e.UserGroupId)
  1090. .HasColumnType("varchar(50)")
  1091. .HasCharSet("utf8")
  1092. .HasCollation("utf8_general_ci");
  1093. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1094. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1095. entity.Property(e => e.Version).HasColumnType("int(11)");
  1096. });
  1097. modelBuilder.Entity<Coupons>(entity =>
  1098. {
  1099. entity.Property(e => e.Id).HasColumnType("int(11)");
  1100. entity.Property(e => e.AndPromotion)
  1101. .HasColumnType("bit(1)")
  1102. .HasDefaultValueSql("b'0'");
  1103. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1104. entity.Property(e => e.CreateMan)
  1105. .HasColumnType("varchar(50)")
  1106. .HasCharSet("utf8")
  1107. .HasCollation("utf8_general_ci");
  1108. entity.Property(e => e.ExpireEndDate).HasColumnType("datetime");
  1109. entity.Property(e => e.ExpireStartDate).HasColumnType("datetime");
  1110. entity.Property(e => e.Explanation)
  1111. .HasColumnType("varchar(200)")
  1112. .HasCharSet("utf8")
  1113. .HasCollation("utf8_general_ci");
  1114. entity.Property(e => e.FullReduceData).HasColumnType("decimal(18,2)");
  1115. entity.Property(e => e.FullReduceMoney).HasColumnType("decimal(18,2)");
  1116. entity.Property(e => e.IsNewUser)
  1117. .HasColumnType("bit(1)")
  1118. .HasDefaultValueSql("b'0'");
  1119. entity.Property(e => e.IsPublic)
  1120. .HasColumnType("bit(1)")
  1121. .HasDefaultValueSql("b'0'");
  1122. entity.Property(e => e.IsReUse)
  1123. .HasColumnType("bit(1)")
  1124. .HasDefaultValueSql("b'0'");
  1125. entity.Property(e => e.IsRepeat)
  1126. .HasColumnType("bit(1)")
  1127. .HasDefaultValueSql("b'0'");
  1128. entity.Property(e => e.IsSuperpose)
  1129. .HasColumnType("bit(1)")
  1130. .HasDefaultValueSql("b'0'");
  1131. entity.Property(e => e.Kind).HasColumnType("int(11)");
  1132. entity.Property(e => e.MerchantId)
  1133. .HasColumnType("varchar(200)")
  1134. .HasCharSet("utf8")
  1135. .HasCollation("utf8_general_ci");
  1136. entity.Property(e => e.Name)
  1137. .HasColumnType("varchar(50)")
  1138. .HasCharSet("utf8")
  1139. .HasCollation("utf8_general_ci");
  1140. entity.Property(e => e.ProductColId)
  1141. .HasColumnType("varchar(200)")
  1142. .HasCharSet("utf8")
  1143. .HasCollation("utf8_general_ci");
  1144. entity.Property(e => e.ProductId)
  1145. .HasColumnType("varchar(500)")
  1146. .HasCharSet("utf8")
  1147. .HasCollation("utf8_general_ci");
  1148. entity.Property(e => e.PublicEndDate).HasColumnType("datetime");
  1149. entity.Property(e => e.PublicMax).HasColumnType("int(11)");
  1150. entity.Property(e => e.PublicMaxByDay).HasColumnType("int(11)");
  1151. entity.Property(e => e.PublicStartDate).HasColumnType("datetime");
  1152. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1153. entity.Property(e => e.RepeatCondition)
  1154. .HasColumnType("varchar(50)")
  1155. .HasCharSet("utf8")
  1156. .HasCollation("utf8_general_ci");
  1157. entity.Property(e => e.RepeatType).HasColumnType("int(11)");
  1158. entity.Property(e => e.SeoDescription)
  1159. .HasColumnType("varchar(500)")
  1160. .HasCharSet("utf8")
  1161. .HasCollation("utf8_general_ci");
  1162. entity.Property(e => e.SeoKeyword)
  1163. .HasColumnType("varchar(200)")
  1164. .HasCharSet("utf8")
  1165. .HasCollation("utf8_general_ci");
  1166. entity.Property(e => e.SeoTitle)
  1167. .HasColumnType("varchar(100)")
  1168. .HasCharSet("utf8")
  1169. .HasCollation("utf8_general_ci");
  1170. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1171. entity.Property(e => e.Status).HasColumnType("int(11)");
  1172. entity.Property(e => e.Stock).HasColumnType("decimal(18,2)");
  1173. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1174. entity.Property(e => e.UpdateMan)
  1175. .HasColumnType("varchar(50)")
  1176. .HasCharSet("utf8")
  1177. .HasCollation("utf8_general_ci");
  1178. entity.Property(e => e.UseEndDate).HasColumnType("datetime");
  1179. entity.Property(e => e.UseStartDate).HasColumnType("datetime");
  1180. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1181. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1182. entity.Property(e => e.Version).HasColumnType("int(11)");
  1183. });
  1184. modelBuilder.Entity<CouponsForUser>(entity =>
  1185. {
  1186. entity.Property(e => e.Id).HasColumnType("int(11)");
  1187. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  1188. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1189. entity.Property(e => e.CreateMan)
  1190. .HasColumnType("varchar(50)")
  1191. .HasCharSet("utf8")
  1192. .HasCollation("utf8_general_ci");
  1193. entity.Property(e => e.IsLock)
  1194. .HasColumnType("bit(1)")
  1195. .HasDefaultValueSql("b'0'");
  1196. entity.Property(e => e.IsUse)
  1197. .HasColumnType("bit(1)")
  1198. .HasDefaultValueSql("b'0'");
  1199. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1200. entity.Property(e => e.SeoDescription)
  1201. .HasColumnType("varchar(500)")
  1202. .HasCharSet("utf8")
  1203. .HasCollation("utf8_general_ci");
  1204. entity.Property(e => e.SeoKeyword)
  1205. .HasColumnType("varchar(200)")
  1206. .HasCharSet("utf8")
  1207. .HasCollation("utf8_general_ci");
  1208. entity.Property(e => e.SeoTitle)
  1209. .HasColumnType("varchar(100)")
  1210. .HasCharSet("utf8")
  1211. .HasCollation("utf8_general_ci");
  1212. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1213. entity.Property(e => e.Status).HasColumnType("int(11)");
  1214. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1215. entity.Property(e => e.UpdateMan)
  1216. .HasColumnType("varchar(50)")
  1217. .HasCharSet("utf8")
  1218. .HasCollation("utf8_general_ci");
  1219. entity.Property(e => e.UseDate).HasColumnType("datetime");
  1220. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1221. entity.Property(e => e.Version).HasColumnType("int(11)");
  1222. });
  1223. modelBuilder.Entity<CustomTagSet>(entity =>
  1224. {
  1225. entity.Property(e => e.Id).HasColumnType("int(11)");
  1226. entity.Property(e => e.Contents)
  1227. .HasColumnType("varchar(500)")
  1228. .HasCharSet("utf8")
  1229. .HasCollation("utf8_general_ci");
  1230. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1231. entity.Property(e => e.CreateMan)
  1232. .HasColumnType("varchar(50)")
  1233. .HasCharSet("utf8")
  1234. .HasCollation("utf8_general_ci");
  1235. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1236. entity.Property(e => e.SeoDescription)
  1237. .HasColumnType("varchar(500)")
  1238. .HasCharSet("utf8")
  1239. .HasCollation("utf8_general_ci");
  1240. entity.Property(e => e.SeoKeyword)
  1241. .HasColumnType("varchar(200)")
  1242. .HasCharSet("utf8")
  1243. .HasCollation("utf8_general_ci");
  1244. entity.Property(e => e.SeoTitle)
  1245. .HasColumnType("varchar(100)")
  1246. .HasCharSet("utf8")
  1247. .HasCollation("utf8_general_ci");
  1248. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1249. entity.Property(e => e.Status).HasColumnType("int(11)");
  1250. entity.Property(e => e.Tags)
  1251. .HasColumnType("varchar(50)")
  1252. .HasCharSet("utf8")
  1253. .HasCollation("utf8_general_ci");
  1254. entity.Property(e => e.Title)
  1255. .HasColumnType("varchar(50)")
  1256. .HasCharSet("utf8")
  1257. .HasCollation("utf8_general_ci");
  1258. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1259. entity.Property(e => e.UpdateMan)
  1260. .HasColumnType("varchar(50)")
  1261. .HasCharSet("utf8")
  1262. .HasCollation("utf8_general_ci");
  1263. entity.Property(e => e.Version).HasColumnType("int(11)");
  1264. });
  1265. modelBuilder.Entity<ErpCompanys>(entity =>
  1266. {
  1267. entity.Property(e => e.Id).HasColumnType("int(11)");
  1268. entity.Property(e => e.Code)
  1269. .HasColumnType("varchar(50)")
  1270. .HasCharSet("utf8")
  1271. .HasCollation("utf8_general_ci");
  1272. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1273. entity.Property(e => e.CreateMan)
  1274. .HasColumnType("varchar(50)")
  1275. .HasCharSet("utf8")
  1276. .HasCollation("utf8_general_ci");
  1277. entity.Property(e => e.Name)
  1278. .HasColumnType("varchar(50)")
  1279. .HasCharSet("utf8")
  1280. .HasCollation("utf8_general_ci");
  1281. entity.Property(e => e.Phone)
  1282. .HasColumnType("varchar(30)")
  1283. .HasCharSet("utf8")
  1284. .HasCollation("utf8_general_ci");
  1285. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1286. entity.Property(e => e.SeoDescription)
  1287. .HasColumnType("varchar(500)")
  1288. .HasCharSet("utf8")
  1289. .HasCollation("utf8_general_ci");
  1290. entity.Property(e => e.SeoKeyword)
  1291. .HasColumnType("varchar(200)")
  1292. .HasCharSet("utf8")
  1293. .HasCollation("utf8_general_ci");
  1294. entity.Property(e => e.SeoTitle)
  1295. .HasColumnType("varchar(100)")
  1296. .HasCharSet("utf8")
  1297. .HasCollation("utf8_general_ci");
  1298. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1299. entity.Property(e => e.Status).HasColumnType("int(11)");
  1300. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1301. entity.Property(e => e.UpdateMan)
  1302. .HasColumnType("varchar(50)")
  1303. .HasCharSet("utf8")
  1304. .HasCollation("utf8_general_ci");
  1305. entity.Property(e => e.Version).HasColumnType("int(11)");
  1306. });
  1307. modelBuilder.Entity<FileUpdateInfo>(entity =>
  1308. {
  1309. entity.Property(e => e.Id).HasColumnType("int(11)");
  1310. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1311. entity.Property(e => e.CreateMan)
  1312. .HasColumnType("varchar(50)")
  1313. .HasCharSet("utf8")
  1314. .HasCollation("utf8_general_ci");
  1315. entity.Property(e => e.FileName)
  1316. .HasColumnType("varchar(50)")
  1317. .HasCharSet("utf8")
  1318. .HasCollation("utf8_general_ci");
  1319. entity.Property(e => e.Path)
  1320. .HasColumnType("varchar(200)")
  1321. .HasCharSet("utf8")
  1322. .HasCollation("utf8_general_ci");
  1323. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1324. entity.Property(e => e.SeoDescription)
  1325. .HasColumnType("varchar(500)")
  1326. .HasCharSet("utf8")
  1327. .HasCollation("utf8_general_ci");
  1328. entity.Property(e => e.SeoKeyword)
  1329. .HasColumnType("varchar(200)")
  1330. .HasCharSet("utf8")
  1331. .HasCollation("utf8_general_ci");
  1332. entity.Property(e => e.SeoTitle)
  1333. .HasColumnType("varchar(100)")
  1334. .HasCharSet("utf8")
  1335. .HasCollation("utf8_general_ci");
  1336. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1337. entity.Property(e => e.Status).HasColumnType("int(11)");
  1338. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1339. entity.Property(e => e.UpdateMan)
  1340. .HasColumnType("varchar(50)")
  1341. .HasCharSet("utf8")
  1342. .HasCollation("utf8_general_ci");
  1343. entity.Property(e => e.Version).HasColumnType("int(11)");
  1344. entity.Property(e => e.VersionNum).HasColumnType("int(11)");
  1345. });
  1346. modelBuilder.Entity<FluxProfitDetail>(entity =>
  1347. {
  1348. entity.Property(e => e.Id).HasColumnType("int(11)");
  1349. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1350. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1351. entity.Property(e => e.CreateMan)
  1352. .HasColumnType("varchar(50)")
  1353. .HasCharSet("utf8")
  1354. .HasCollation("utf8_general_ci");
  1355. entity.Property(e => e.FluxEndDate)
  1356. .HasColumnType("varchar(8)")
  1357. .HasCharSet("utf8")
  1358. .HasCollation("utf8_general_ci");
  1359. entity.Property(e => e.FluxFeeAmt).HasColumnType("decimal(18,2)");
  1360. entity.Property(e => e.FluxOrderNo)
  1361. .HasColumnType("varchar(64)")
  1362. .HasCharSet("utf8")
  1363. .HasCollation("utf8_general_ci");
  1364. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1365. entity.Property(e => e.FluxStartDate)
  1366. .HasColumnType("varchar(8)")
  1367. .HasCharSet("utf8")
  1368. .HasCollation("utf8_general_ci");
  1369. entity.Property(e => e.MerNo)
  1370. .HasColumnType("varchar(32)")
  1371. .HasCharSet("utf8")
  1372. .HasCollation("utf8_general_ci");
  1373. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1374. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1375. entity.Property(e => e.MerchantUserId).HasColumnType("int(11)");
  1376. entity.Property(e => e.PosType)
  1377. .HasColumnType("varchar(32)")
  1378. .HasCharSet("utf8")
  1379. .HasCollation("utf8_general_ci");
  1380. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  1381. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1382. entity.Property(e => e.RecordNo)
  1383. .HasColumnType("varchar(32)")
  1384. .HasCharSet("utf8")
  1385. .HasCollation("utf8_general_ci");
  1386. entity.Property(e => e.Remark)
  1387. .HasColumnType("varchar(128)")
  1388. .HasCharSet("utf8")
  1389. .HasCollation("utf8_general_ci");
  1390. entity.Property(e => e.SeoDescription)
  1391. .HasColumnType("varchar(500)")
  1392. .HasCharSet("utf8")
  1393. .HasCollation("utf8_general_ci");
  1394. entity.Property(e => e.SeoKeyword)
  1395. .HasColumnType("varchar(200)")
  1396. .HasCharSet("utf8")
  1397. .HasCollation("utf8_general_ci");
  1398. entity.Property(e => e.SeoTitle)
  1399. .HasColumnType("varchar(100)")
  1400. .HasCharSet("utf8")
  1401. .HasCollation("utf8_general_ci");
  1402. entity.Property(e => e.SnNo)
  1403. .HasColumnType("varchar(32)")
  1404. .HasCharSet("utf8")
  1405. .HasCollation("utf8_general_ci");
  1406. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1407. entity.Property(e => e.Status).HasColumnType("int(11)");
  1408. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1409. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  1410. entity.Property(e => e.TradeDate)
  1411. .HasColumnType("varchar(8)")
  1412. .HasCharSet("utf8")
  1413. .HasCollation("utf8_general_ci");
  1414. entity.Property(e => e.TradeMonth)
  1415. .HasColumnType("varchar(6)")
  1416. .HasCharSet("utf8")
  1417. .HasCollation("utf8_general_ci");
  1418. entity.Property(e => e.TradeOrderNo)
  1419. .HasColumnType("varchar(64)")
  1420. .HasCharSet("utf8")
  1421. .HasCollation("utf8_general_ci");
  1422. entity.Property(e => e.TradeTime)
  1423. .HasColumnType("varchar(6)")
  1424. .HasCharSet("utf8")
  1425. .HasCollation("utf8_general_ci");
  1426. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1427. entity.Property(e => e.UpdateMan)
  1428. .HasColumnType("varchar(50)")
  1429. .HasCharSet("utf8")
  1430. .HasCollation("utf8_general_ci");
  1431. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1432. entity.Property(e => e.Version).HasColumnType("int(11)");
  1433. });
  1434. modelBuilder.Entity<FluxProfitSummary>(entity =>
  1435. {
  1436. entity.Property(e => e.Id).HasColumnType("int(11)");
  1437. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1438. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  1439. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1440. entity.Property(e => e.CreateMan)
  1441. .HasColumnType("varchar(50)")
  1442. .HasCharSet("utf8")
  1443. .HasCollation("utf8_general_ci");
  1444. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1445. entity.Property(e => e.FluxTradeNum).HasColumnType("int(11)");
  1446. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1447. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1448. entity.Property(e => e.Remark)
  1449. .HasColumnType("varchar(64)")
  1450. .HasCharSet("utf8")
  1451. .HasCollation("utf8_general_ci");
  1452. entity.Property(e => e.SeoDescription)
  1453. .HasColumnType("varchar(500)")
  1454. .HasCharSet("utf8")
  1455. .HasCollation("utf8_general_ci");
  1456. entity.Property(e => e.SeoKeyword)
  1457. .HasColumnType("varchar(200)")
  1458. .HasCharSet("utf8")
  1459. .HasCollation("utf8_general_ci");
  1460. entity.Property(e => e.SeoTitle)
  1461. .HasColumnType("varchar(100)")
  1462. .HasCharSet("utf8")
  1463. .HasCollation("utf8_general_ci");
  1464. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1465. entity.Property(e => e.Status).HasColumnType("int(11)");
  1466. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1467. entity.Property(e => e.TradeMonth)
  1468. .HasColumnType("varchar(6)")
  1469. .HasCharSet("utf8")
  1470. .HasCollation("utf8_general_ci");
  1471. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1472. entity.Property(e => e.UpdateMan)
  1473. .HasColumnType("varchar(50)")
  1474. .HasCharSet("utf8")
  1475. .HasCollation("utf8_general_ci");
  1476. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1477. entity.Property(e => e.Version).HasColumnType("int(11)");
  1478. });
  1479. modelBuilder.Entity<IndexIconList>(entity =>
  1480. {
  1481. entity.Property(e => e.Id).HasColumnType("int(11)");
  1482. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1483. entity.Property(e => e.CreateMan)
  1484. .HasColumnType("varchar(50)")
  1485. .HasCharSet("utf8")
  1486. .HasCollation("utf8_general_ci");
  1487. entity.Property(e => e.Icon)
  1488. .HasColumnType("varchar(200)")
  1489. .HasCharSet("utf8")
  1490. .HasCollation("utf8_general_ci");
  1491. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1492. entity.Property(e => e.SeoDescription)
  1493. .HasColumnType("varchar(500)")
  1494. .HasCharSet("utf8")
  1495. .HasCollation("utf8_general_ci");
  1496. entity.Property(e => e.SeoKeyword)
  1497. .HasColumnType("varchar(200)")
  1498. .HasCharSet("utf8")
  1499. .HasCollation("utf8_general_ci");
  1500. entity.Property(e => e.SeoTitle)
  1501. .HasColumnType("varchar(100)")
  1502. .HasCharSet("utf8")
  1503. .HasCollation("utf8_general_ci");
  1504. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1505. entity.Property(e => e.Status).HasColumnType("int(11)");
  1506. entity.Property(e => e.Title)
  1507. .HasColumnType("varchar(50)")
  1508. .HasCharSet("utf8")
  1509. .HasCollation("utf8_general_ci");
  1510. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1511. entity.Property(e => e.UpdateMan)
  1512. .HasColumnType("varchar(50)")
  1513. .HasCharSet("utf8")
  1514. .HasCollation("utf8_general_ci");
  1515. entity.Property(e => e.Url)
  1516. .HasColumnType("varchar(50)")
  1517. .HasCharSet("utf8")
  1518. .HasCollation("utf8_general_ci");
  1519. entity.Property(e => e.Version).HasColumnType("int(11)");
  1520. });
  1521. modelBuilder.Entity<KqProductBrand>(entity =>
  1522. {
  1523. entity.Property(e => e.Id).HasColumnType("int(11)");
  1524. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1525. entity.Property(e => e.CreateMan)
  1526. .HasColumnType("varchar(50)")
  1527. .HasCharSet("utf8")
  1528. .HasCollation("utf8_general_ci");
  1529. entity.Property(e => e.Name)
  1530. .HasColumnType("varchar(50)")
  1531. .HasCharSet("utf8")
  1532. .HasCollation("utf8_general_ci");
  1533. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  1534. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1535. entity.Property(e => e.SeoDescription)
  1536. .HasColumnType("varchar(500)")
  1537. .HasCharSet("utf8")
  1538. .HasCollation("utf8_general_ci");
  1539. entity.Property(e => e.SeoKeyword)
  1540. .HasColumnType("varchar(200)")
  1541. .HasCharSet("utf8")
  1542. .HasCollation("utf8_general_ci");
  1543. entity.Property(e => e.SeoTitle)
  1544. .HasColumnType("varchar(100)")
  1545. .HasCharSet("utf8")
  1546. .HasCollation("utf8_general_ci");
  1547. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1548. entity.Property(e => e.Status).HasColumnType("int(11)");
  1549. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1550. entity.Property(e => e.UpdateMan)
  1551. .HasColumnType("varchar(50)")
  1552. .HasCharSet("utf8")
  1553. .HasCollation("utf8_general_ci");
  1554. entity.Property(e => e.Version).HasColumnType("int(11)");
  1555. });
  1556. modelBuilder.Entity<KqProductOrgs>(entity =>
  1557. {
  1558. entity.Property(e => e.Id).HasColumnType("int(11)");
  1559. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1560. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1561. entity.Property(e => e.CreateMan)
  1562. .HasColumnType("varchar(50)")
  1563. .HasCharSet("utf8")
  1564. .HasCollation("utf8_general_ci");
  1565. entity.Property(e => e.Name)
  1566. .HasColumnType("varchar(50)")
  1567. .HasCharSet("utf8")
  1568. .HasCollation("utf8_general_ci");
  1569. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1570. entity.Property(e => e.SeoDescription)
  1571. .HasColumnType("varchar(500)")
  1572. .HasCharSet("utf8")
  1573. .HasCollation("utf8_general_ci");
  1574. entity.Property(e => e.SeoKeyword)
  1575. .HasColumnType("varchar(200)")
  1576. .HasCharSet("utf8")
  1577. .HasCollation("utf8_general_ci");
  1578. entity.Property(e => e.SeoTitle)
  1579. .HasColumnType("varchar(100)")
  1580. .HasCharSet("utf8")
  1581. .HasCollation("utf8_general_ci");
  1582. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1583. entity.Property(e => e.Status).HasColumnType("int(11)");
  1584. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1585. entity.Property(e => e.UpdateMan)
  1586. .HasColumnType("varchar(50)")
  1587. .HasCharSet("utf8")
  1588. .HasCollation("utf8_general_ci");
  1589. entity.Property(e => e.Version).HasColumnType("int(11)");
  1590. });
  1591. modelBuilder.Entity<KqProductRuleSet>(entity =>
  1592. {
  1593. entity.Property(e => e.Id).HasColumnType("int(11)");
  1594. entity.Property(e => e.ActDeposit).HasColumnType("decimal(18,2)");
  1595. entity.Property(e => e.ActEndDate).HasColumnType("datetime");
  1596. entity.Property(e => e.ActFirst).HasColumnType("decimal(18,2)");
  1597. entity.Property(e => e.ActFirstDeposit).HasColumnType("decimal(18,2)");
  1598. entity.Property(e => e.ActPosCount).HasColumnType("int(11)");
  1599. entity.Property(e => e.ActPrize).HasColumnType("decimal(18,2)");
  1600. entity.Property(e => e.ActStartDate).HasColumnType("datetime");
  1601. entity.Property(e => e.ActiveCount).HasColumnType("int(11)");
  1602. entity.Property(e => e.ActivePrice).HasColumnType("decimal(18,2)");
  1603. entity.Property(e => e.BigExtendCycleDays).HasColumnType("int(11)");
  1604. entity.Property(e => e.BigTotalAmount).HasColumnType("decimal(18,2)");
  1605. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1606. entity.Property(e => e.CreateMan)
  1607. .HasColumnType("varchar(50)")
  1608. .HasCharSet("utf8")
  1609. .HasCollation("utf8_general_ci");
  1610. entity.Property(e => e.CycleEndDate).HasColumnType("datetime");
  1611. entity.Property(e => e.CycleIsOther)
  1612. .HasColumnType("bit(1)")
  1613. .HasDefaultValueSql("b'0'");
  1614. entity.Property(e => e.CyclePosDays).HasColumnType("int(11)");
  1615. entity.Property(e => e.CycleStartDate).HasColumnType("datetime");
  1616. entity.Property(e => e.Deposit).HasColumnType("decimal(18,2)");
  1617. entity.Property(e => e.FeeBindDays).HasColumnType("int(11)");
  1618. entity.Property(e => e.FeeFixed).HasColumnType("decimal(18,2)");
  1619. entity.Property(e => e.FeeOfDays).HasColumnType("datetime");
  1620. entity.Property(e => e.FeeRate).HasColumnType("decimal(18,2)");
  1621. entity.Property(e => e.FlowCardDirectProfit).HasColumnType("decimal(18,2)");
  1622. entity.Property(e => e.FlowCardEndDate).HasColumnType("datetime");
  1623. entity.Property(e => e.FlowCardFee).HasColumnType("decimal(18,2)");
  1624. entity.Property(e => e.FlowCardFreeDays).HasColumnType("int(11)");
  1625. entity.Property(e => e.FlowCardStartDate).HasColumnType("datetime");
  1626. entity.Property(e => e.HelpEndDate).HasColumnType("datetime");
  1627. entity.Property(e => e.HelpFee).HasColumnType("decimal(18,2)");
  1628. entity.Property(e => e.HelpMonths).HasColumnType("int(11)");
  1629. entity.Property(e => e.HelpStartDate).HasColumnType("datetime");
  1630. entity.Property(e => e.HelpSteadyFee).HasColumnType("decimal(18,2)");
  1631. entity.Property(e => e.MerStaEndDate).HasColumnType("datetime");
  1632. entity.Property(e => e.MerStaMonths).HasColumnType("int(11)");
  1633. entity.Property(e => e.MerStaProfit).HasColumnType("decimal(18,2)");
  1634. entity.Property(e => e.MerStaStartDate).HasColumnType("datetime");
  1635. entity.Property(e => e.MerStaTradeForMonth).HasColumnType("decimal(18,2)");
  1636. entity.Property(e => e.OpenEndDate).HasColumnType("datetime");
  1637. entity.Property(e => e.OpenStaDays).HasColumnType("int(11)");
  1638. entity.Property(e => e.OpenStaPrize).HasColumnType("decimal(18,2)");
  1639. entity.Property(e => e.OpenStaPrize2).HasColumnType("decimal(18,2)");
  1640. entity.Property(e => e.OpenStaTrade).HasColumnType("decimal(18,2)");
  1641. entity.Property(e => e.OpenStartDate).HasColumnType("datetime");
  1642. entity.Property(e => e.OrgId).HasColumnType("int(11)");
  1643. entity.Property(e => e.PullNewEndDate).HasColumnType("datetime");
  1644. entity.Property(e => e.PullNewExtendDays).HasColumnType("int(11)");
  1645. entity.Property(e => e.PullNewStartDate).HasColumnType("datetime");
  1646. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1647. entity.Property(e => e.SeoDescription)
  1648. .HasColumnType("varchar(500)")
  1649. .HasCharSet("utf8")
  1650. .HasCollation("utf8_general_ci");
  1651. entity.Property(e => e.SeoKeyword)
  1652. .HasColumnType("varchar(200)")
  1653. .HasCharSet("utf8")
  1654. .HasCollation("utf8_general_ci");
  1655. entity.Property(e => e.SeoTitle)
  1656. .HasColumnType("varchar(100)")
  1657. .HasCharSet("utf8")
  1658. .HasCollation("utf8_general_ci");
  1659. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1660. entity.Property(e => e.Status).HasColumnType("int(11)");
  1661. entity.Property(e => e.SubsidyEndDate).HasColumnType("datetime");
  1662. entity.Property(e => e.SubsidyStartDate).HasColumnType("datetime");
  1663. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1664. entity.Property(e => e.UpdateMan)
  1665. .HasColumnType("varchar(50)")
  1666. .HasCharSet("utf8")
  1667. .HasCollation("utf8_general_ci");
  1668. entity.Property(e => e.Version).HasColumnType("int(11)");
  1669. });
  1670. modelBuilder.Entity<KqProducts>(entity =>
  1671. {
  1672. entity.Property(e => e.Id).HasColumnType("int(11)");
  1673. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1674. entity.Property(e => e.CreateMan)
  1675. .HasColumnType("varchar(50)")
  1676. .HasCharSet("utf8")
  1677. .HasCollation("utf8_general_ci");
  1678. entity.Property(e => e.Name)
  1679. .HasColumnType("varchar(50)")
  1680. .HasCharSet("utf8")
  1681. .HasCollation("utf8_general_ci");
  1682. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1683. entity.Property(e => e.SeoDescription)
  1684. .HasColumnType("varchar(500)")
  1685. .HasCharSet("utf8")
  1686. .HasCollation("utf8_general_ci");
  1687. entity.Property(e => e.SeoKeyword)
  1688. .HasColumnType("varchar(200)")
  1689. .HasCharSet("utf8")
  1690. .HasCollation("utf8_general_ci");
  1691. entity.Property(e => e.SeoTitle)
  1692. .HasColumnType("varchar(100)")
  1693. .HasCharSet("utf8")
  1694. .HasCollation("utf8_general_ci");
  1695. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1696. entity.Property(e => e.Status).HasColumnType("int(11)");
  1697. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1698. entity.Property(e => e.UpdateMan)
  1699. .HasColumnType("varchar(50)")
  1700. .HasCharSet("utf8")
  1701. .HasCollation("utf8_general_ci");
  1702. entity.Property(e => e.Version).HasColumnType("int(11)");
  1703. });
  1704. modelBuilder.Entity<MachineApply>(entity =>
  1705. {
  1706. entity.Property(e => e.Id).HasColumnType("int(11)");
  1707. entity.Property(e => e.Address)
  1708. .HasColumnType("varchar(50)")
  1709. .HasCharSet("utf8")
  1710. .HasCollation("utf8_general_ci");
  1711. entity.Property(e => e.ApplyDeviceName)
  1712. .HasColumnType("varchar(32)")
  1713. .HasCharSet("utf8")
  1714. .HasCollation("utf8_general_ci");
  1715. entity.Property(e => e.ApplyDeviceNum).HasColumnType("int(11)");
  1716. entity.Property(e => e.ApplyNo)
  1717. .HasColumnType("varchar(32)")
  1718. .HasCharSet("utf8")
  1719. .HasCollation("utf8_general_ci");
  1720. entity.Property(e => e.ApplyTime).HasColumnType("datetime");
  1721. entity.Property(e => e.Areas)
  1722. .HasColumnType("varchar(30)")
  1723. .HasCharSet("utf8")
  1724. .HasCollation("utf8_general_ci");
  1725. entity.Property(e => e.AuditBy)
  1726. .HasColumnType("varchar(32)")
  1727. .HasCharSet("utf8")
  1728. .HasCollation("utf8_general_ci");
  1729. entity.Property(e => e.AuditRemark)
  1730. .HasColumnType("varchar(128)")
  1731. .HasCharSet("utf8")
  1732. .HasCollation("utf8_general_ci");
  1733. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1734. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1735. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1736. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1737. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1738. entity.Property(e => e.CreateMan)
  1739. .HasColumnType("varchar(50)")
  1740. .HasCharSet("utf8")
  1741. .HasCollation("utf8_general_ci");
  1742. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  1743. entity.Property(e => e.ExpressName)
  1744. .HasColumnType("varchar(32)")
  1745. .HasCharSet("utf8")
  1746. .HasCollation("utf8_general_ci");
  1747. entity.Property(e => e.ExpressNo)
  1748. .HasColumnType("varchar(32)")
  1749. .HasCharSet("utf8")
  1750. .HasCollation("utf8_general_ci");
  1751. entity.Property(e => e.Mobile)
  1752. .HasColumnType("varchar(11)")
  1753. .HasCharSet("utf8")
  1754. .HasCollation("utf8_general_ci");
  1755. entity.Property(e => e.OrderExpand)
  1756. .HasColumnType("mediumtext")
  1757. .HasCharSet("utf8")
  1758. .HasCollation("utf8_general_ci");
  1759. entity.Property(e => e.ProductName)
  1760. .HasColumnType("varchar(32)")
  1761. .HasCharSet("utf8")
  1762. .HasCollation("utf8_general_ci");
  1763. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1764. entity.Property(e => e.RealName)
  1765. .HasColumnType("varchar(30)")
  1766. .HasCharSet("utf8")
  1767. .HasCollation("utf8_general_ci");
  1768. entity.Property(e => e.Remark)
  1769. .HasColumnType("varchar(64)")
  1770. .HasCharSet("utf8")
  1771. .HasCollation("utf8_general_ci");
  1772. entity.Property(e => e.ReturnOrderNo)
  1773. .HasColumnType("varchar(32)")
  1774. .HasCharSet("utf8")
  1775. .HasCollation("utf8_general_ci");
  1776. entity.Property(e => e.ReturnStatus).HasColumnType("int(11)");
  1777. entity.Property(e => e.SendDate).HasColumnType("datetime");
  1778. entity.Property(e => e.SendSn)
  1779. .HasColumnType("varchar(32)")
  1780. .HasCharSet("utf8")
  1781. .HasCollation("utf8_general_ci");
  1782. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  1783. entity.Property(e => e.SeoDescription)
  1784. .HasColumnType("varchar(500)")
  1785. .HasCharSet("utf8")
  1786. .HasCollation("utf8_general_ci");
  1787. entity.Property(e => e.SeoKeyword)
  1788. .HasColumnType("varchar(200)")
  1789. .HasCharSet("utf8")
  1790. .HasCollation("utf8_general_ci");
  1791. entity.Property(e => e.SeoTitle)
  1792. .HasColumnType("varchar(100)")
  1793. .HasCharSet("utf8")
  1794. .HasCollation("utf8_general_ci");
  1795. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1796. entity.Property(e => e.Status).HasColumnType("int(11)");
  1797. entity.Property(e => e.StoreAddress)
  1798. .HasColumnType("varchar(50)")
  1799. .HasCharSet("utf8")
  1800. .HasCollation("utf8_general_ci");
  1801. entity.Property(e => e.StoreAreas)
  1802. .HasColumnType("varchar(30)")
  1803. .HasCharSet("utf8")
  1804. .HasCollation("utf8_general_ci");
  1805. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1806. entity.Property(e => e.StoreManager)
  1807. .HasColumnType("varchar(32)")
  1808. .HasCharSet("utf8")
  1809. .HasCollation("utf8_general_ci");
  1810. entity.Property(e => e.StoreManagerMobile)
  1811. .HasColumnType("varchar(11)")
  1812. .HasCharSet("utf8")
  1813. .HasCollation("utf8_general_ci");
  1814. entity.Property(e => e.StoreName)
  1815. .HasColumnType("varchar(32)")
  1816. .HasCharSet("utf8")
  1817. .HasCollation("utf8_general_ci");
  1818. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  1819. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  1820. entity.Property(e => e.SwapActProName)
  1821. .HasColumnType("varchar(32)")
  1822. .HasCharSet("utf8")
  1823. .HasCollation("utf8_general_ci");
  1824. entity.Property(e => e.SwapActProType).HasColumnType("int(11)");
  1825. entity.Property(e => e.SwapSnExpand)
  1826. .HasColumnType("mediumtext")
  1827. .HasCharSet("utf8")
  1828. .HasCollation("utf8_general_ci");
  1829. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1830. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1831. entity.Property(e => e.UpdateMan)
  1832. .HasColumnType("varchar(50)")
  1833. .HasCharSet("utf8")
  1834. .HasCollation("utf8_general_ci");
  1835. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1836. entity.Property(e => e.Version).HasColumnType("int(11)");
  1837. });
  1838. modelBuilder.Entity<MachineApplyDetail>(entity =>
  1839. {
  1840. entity.Property(e => e.Id).HasColumnType("int(11)");
  1841. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  1842. entity.Property(e => e.ApplyNo)
  1843. .HasColumnType("varchar(32)")
  1844. .HasCharSet("utf8")
  1845. .HasCollation("utf8_general_ci");
  1846. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1847. entity.Property(e => e.CreateMan)
  1848. .HasColumnType("varchar(50)")
  1849. .HasCharSet("utf8")
  1850. .HasCollation("utf8_general_ci");
  1851. entity.Property(e => e.DeviceDesc)
  1852. .HasColumnType("varchar(32)")
  1853. .HasCharSet("utf8")
  1854. .HasCollation("utf8_general_ci");
  1855. entity.Property(e => e.DeviceModel)
  1856. .HasColumnType("varchar(32)")
  1857. .HasCharSet("utf8")
  1858. .HasCollation("utf8_general_ci");
  1859. entity.Property(e => e.DeviceSnNo)
  1860. .HasColumnType("varchar(32)")
  1861. .HasCharSet("utf8")
  1862. .HasCollation("utf8_general_ci");
  1863. entity.Property(e => e.DeviceStatus).HasColumnType("int(11)");
  1864. entity.Property(e => e.DeviceVendor)
  1865. .HasColumnType("varchar(32)")
  1866. .HasCharSet("utf8")
  1867. .HasCollation("utf8_general_ci");
  1868. entity.Property(e => e.ProductName)
  1869. .HasColumnType("varchar(32)")
  1870. .HasCharSet("utf8")
  1871. .HasCollation("utf8_general_ci");
  1872. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  1873. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1874. entity.Property(e => e.Remark)
  1875. .HasColumnType("varchar(64)")
  1876. .HasCharSet("utf8")
  1877. .HasCollation("utf8_general_ci");
  1878. entity.Property(e => e.SeoDescription)
  1879. .HasColumnType("varchar(500)")
  1880. .HasCharSet("utf8")
  1881. .HasCollation("utf8_general_ci");
  1882. entity.Property(e => e.SeoKeyword)
  1883. .HasColumnType("varchar(200)")
  1884. .HasCharSet("utf8")
  1885. .HasCollation("utf8_general_ci");
  1886. entity.Property(e => e.SeoTitle)
  1887. .HasColumnType("varchar(100)")
  1888. .HasCharSet("utf8")
  1889. .HasCollation("utf8_general_ci");
  1890. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1891. entity.Property(e => e.SourceSnNo)
  1892. .HasColumnType("varchar(32)")
  1893. .HasCharSet("utf8")
  1894. .HasCollation("utf8_general_ci");
  1895. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  1896. entity.Property(e => e.Status).HasColumnType("int(11)");
  1897. entity.Property(e => e.UpSrcProName)
  1898. .HasColumnType("varchar(32)")
  1899. .HasCharSet("utf8")
  1900. .HasCollation("utf8_general_ci");
  1901. entity.Property(e => e.UpSrcProType).HasColumnType("int(11)");
  1902. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1903. entity.Property(e => e.UpdateMan)
  1904. .HasColumnType("varchar(50)")
  1905. .HasCharSet("utf8")
  1906. .HasCollation("utf8_general_ci");
  1907. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1908. entity.Property(e => e.Version).HasColumnType("int(11)");
  1909. });
  1910. modelBuilder.Entity<MachineChange>(entity =>
  1911. {
  1912. entity.Property(e => e.Id).HasColumnType("int(11)");
  1913. entity.Property(e => e.AuditBy)
  1914. .HasColumnType("varchar(32)")
  1915. .HasCharSet("utf8")
  1916. .HasCollation("utf8_general_ci");
  1917. entity.Property(e => e.AuditRemark)
  1918. .HasColumnType("varchar(128)")
  1919. .HasCharSet("utf8")
  1920. .HasCollation("utf8_general_ci");
  1921. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1922. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1923. entity.Property(e => e.BackProductName)
  1924. .HasColumnType("varchar(32)")
  1925. .HasCharSet("utf8")
  1926. .HasCollation("utf8_general_ci");
  1927. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  1928. entity.Property(e => e.BackStoreId).HasColumnType("int(11)");
  1929. entity.Property(e => e.BackStoreName)
  1930. .HasColumnType("varchar(32)")
  1931. .HasCharSet("utf8")
  1932. .HasCollation("utf8_general_ci");
  1933. entity.Property(e => e.BackStoreUserId).HasColumnType("int(11)");
  1934. entity.Property(e => e.ChangeDeviceName)
  1935. .HasColumnType("varchar(32)")
  1936. .HasCharSet("utf8")
  1937. .HasCollation("utf8_general_ci");
  1938. entity.Property(e => e.ChangeDeviceNum).HasColumnType("int(11)");
  1939. entity.Property(e => e.ChangeNo)
  1940. .HasColumnType("varchar(32)")
  1941. .HasCharSet("utf8")
  1942. .HasCollation("utf8_general_ci");
  1943. entity.Property(e => e.ChangeSnExpand)
  1944. .HasColumnType("mediumtext")
  1945. .HasCharSet("utf8")
  1946. .HasCollation("utf8_general_ci");
  1947. entity.Property(e => e.ChangeTime).HasColumnType("datetime");
  1948. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1949. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1950. entity.Property(e => e.CreateMan)
  1951. .HasColumnType("varchar(50)")
  1952. .HasCharSet("utf8")
  1953. .HasCollation("utf8_general_ci");
  1954. entity.Property(e => e.OrderExpand)
  1955. .HasColumnType("mediumtext")
  1956. .HasCharSet("utf8")
  1957. .HasCollation("utf8_general_ci");
  1958. entity.Property(e => e.OutProductName)
  1959. .HasColumnType("varchar(32)")
  1960. .HasCharSet("utf8")
  1961. .HasCollation("utf8_general_ci");
  1962. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  1963. entity.Property(e => e.OutStoreAddress)
  1964. .HasColumnType("varchar(128)")
  1965. .HasCharSet("utf8")
  1966. .HasCollation("utf8_general_ci");
  1967. entity.Property(e => e.OutStoreAreas)
  1968. .HasColumnType("varchar(30)")
  1969. .HasCharSet("utf8")
  1970. .HasCollation("utf8_general_ci");
  1971. entity.Property(e => e.OutStoreId).HasColumnType("int(11)");
  1972. entity.Property(e => e.OutStoreManager)
  1973. .HasColumnType("varchar(32)")
  1974. .HasCharSet("utf8")
  1975. .HasCollation("utf8_general_ci");
  1976. entity.Property(e => e.OutStoreManagerMobile)
  1977. .HasColumnType("varchar(11)")
  1978. .HasCharSet("utf8")
  1979. .HasCollation("utf8_general_ci");
  1980. entity.Property(e => e.OutStoreName)
  1981. .HasColumnType("varchar(32)")
  1982. .HasCharSet("utf8")
  1983. .HasCollation("utf8_general_ci");
  1984. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1985. entity.Property(e => e.Remark)
  1986. .HasColumnType("varchar(64)")
  1987. .HasCharSet("utf8")
  1988. .HasCollation("utf8_general_ci");
  1989. entity.Property(e => e.SeoDescription)
  1990. .HasColumnType("varchar(500)")
  1991. .HasCharSet("utf8")
  1992. .HasCollation("utf8_general_ci");
  1993. entity.Property(e => e.SeoKeyword)
  1994. .HasColumnType("varchar(200)")
  1995. .HasCharSet("utf8")
  1996. .HasCollation("utf8_general_ci");
  1997. entity.Property(e => e.SeoTitle)
  1998. .HasColumnType("varchar(100)")
  1999. .HasCharSet("utf8")
  2000. .HasCollation("utf8_general_ci");
  2001. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2002. entity.Property(e => e.Status).HasColumnType("int(11)");
  2003. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2004. entity.Property(e => e.UpdateMan)
  2005. .HasColumnType("varchar(50)")
  2006. .HasCharSet("utf8")
  2007. .HasCollation("utf8_general_ci");
  2008. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2009. entity.Property(e => e.Version).HasColumnType("int(11)");
  2010. });
  2011. modelBuilder.Entity<MachineChangeDetail>(entity =>
  2012. {
  2013. entity.Property(e => e.Id).HasColumnType("int(11)");
  2014. entity.Property(e => e.BackDeviceStatus).HasColumnType("int(11)");
  2015. entity.Property(e => e.BackProductName)
  2016. .HasColumnType("varchar(32)")
  2017. .HasCharSet("utf8")
  2018. .HasCollation("utf8_general_ci");
  2019. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2020. entity.Property(e => e.BackSnNo)
  2021. .HasColumnType("varchar(32)")
  2022. .HasCharSet("utf8")
  2023. .HasCollation("utf8_general_ci");
  2024. entity.Property(e => e.BackSnType).HasColumnType("int(11)");
  2025. entity.Property(e => e.ChangeId).HasColumnType("int(11)");
  2026. entity.Property(e => e.ChangeNo)
  2027. .HasColumnType("varchar(32)")
  2028. .HasCharSet("utf8")
  2029. .HasCollation("utf8_general_ci");
  2030. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2031. entity.Property(e => e.CreateMan)
  2032. .HasColumnType("varchar(50)")
  2033. .HasCharSet("utf8")
  2034. .HasCollation("utf8_general_ci");
  2035. entity.Property(e => e.OutProductName)
  2036. .HasColumnType("varchar(32)")
  2037. .HasCharSet("utf8")
  2038. .HasCollation("utf8_general_ci");
  2039. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2040. entity.Property(e => e.OutSnNo)
  2041. .HasColumnType("varchar(32)")
  2042. .HasCharSet("utf8")
  2043. .HasCollation("utf8_general_ci");
  2044. entity.Property(e => e.OutSnType).HasColumnType("int(11)");
  2045. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2046. entity.Property(e => e.Remark)
  2047. .HasColumnType("varchar(64)")
  2048. .HasCharSet("utf8")
  2049. .HasCollation("utf8_general_ci");
  2050. entity.Property(e => e.SeoDescription)
  2051. .HasColumnType("varchar(500)")
  2052. .HasCharSet("utf8")
  2053. .HasCollation("utf8_general_ci");
  2054. entity.Property(e => e.SeoKeyword)
  2055. .HasColumnType("varchar(200)")
  2056. .HasCharSet("utf8")
  2057. .HasCollation("utf8_general_ci");
  2058. entity.Property(e => e.SeoTitle)
  2059. .HasColumnType("varchar(100)")
  2060. .HasCharSet("utf8")
  2061. .HasCollation("utf8_general_ci");
  2062. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2063. entity.Property(e => e.Status).HasColumnType("int(11)");
  2064. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2065. entity.Property(e => e.UpdateMan)
  2066. .HasColumnType("varchar(50)")
  2067. .HasCharSet("utf8")
  2068. .HasCollation("utf8_general_ci");
  2069. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2070. entity.Property(e => e.Version).HasColumnType("int(11)");
  2071. });
  2072. modelBuilder.Entity<MachineForMerNo>(entity =>
  2073. {
  2074. entity.HasKey(e => e.MerNo)
  2075. .HasName("PRIMARY");
  2076. entity.Property(e => e.MerNo)
  2077. .HasColumnType("varchar(50)")
  2078. .HasCharSet("utf8")
  2079. .HasCollation("utf8_general_ci");
  2080. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2081. });
  2082. modelBuilder.Entity<MachineForQrCode>(entity =>
  2083. {
  2084. entity.HasKey(e => e.DataId)
  2085. .HasName("PRIMARY");
  2086. entity.Property(e => e.DataId)
  2087. .HasColumnType("varchar(20)")
  2088. .HasCharSet("utf8")
  2089. .HasCollation("utf8_general_ci");
  2090. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2091. entity.Property(e => e.MachineSnNo)
  2092. .HasColumnType("varchar(50)")
  2093. .HasCharSet("utf8")
  2094. .HasCollation("utf8_general_ci");
  2095. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2096. entity.Property(e => e.SnNo)
  2097. .HasColumnType("varchar(50)")
  2098. .HasCharSet("utf8")
  2099. .HasCollation("utf8_general_ci");
  2100. });
  2101. modelBuilder.Entity<MachineForSnNo>(entity =>
  2102. {
  2103. entity.HasKey(e => e.SnNo)
  2104. .HasName("PRIMARY");
  2105. entity.Property(e => e.SnNo)
  2106. .HasColumnType("varchar(50)")
  2107. .HasCharSet("utf8")
  2108. .HasCollation("utf8_general_ci");
  2109. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2110. });
  2111. modelBuilder.Entity<MachineRenew>(entity =>
  2112. {
  2113. entity.Property(e => e.Id).HasColumnType("int(11)");
  2114. entity.Property(e => e.ApplyDate)
  2115. .HasColumnType("varchar(8)")
  2116. .HasCharSet("utf8")
  2117. .HasCollation("utf8_general_ci");
  2118. entity.Property(e => e.ApplyNo)
  2119. .HasColumnType("varchar(32)")
  2120. .HasCharSet("utf8")
  2121. .HasCollation("utf8_general_ci");
  2122. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2123. entity.Property(e => e.AuditDesc)
  2124. .HasColumnType("varchar(256)")
  2125. .HasCharSet("utf8")
  2126. .HasCollation("utf8_general_ci");
  2127. entity.Property(e => e.AuditStatus)
  2128. .HasColumnName("audit_status")
  2129. .HasColumnType("int(11)");
  2130. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2131. entity.Property(e => e.CreateMan)
  2132. .HasColumnType("varchar(50)")
  2133. .HasCharSet("utf8")
  2134. .HasCollation("utf8_general_ci");
  2135. entity.Property(e => e.DamagedBrandId).HasColumnType("int(11)");
  2136. entity.Property(e => e.DamagedSnNo)
  2137. .HasColumnType("varchar(32)")
  2138. .HasCharSet("utf8")
  2139. .HasCollation("utf8_general_ci");
  2140. entity.Property(e => e.DamagedSnType).HasColumnType("int(11)");
  2141. entity.Property(e => e.DeliverBrandId).HasColumnType("int(11)");
  2142. entity.Property(e => e.DeliverSnNo)
  2143. .HasColumnType("varchar(32)")
  2144. .HasCharSet("utf8")
  2145. .HasCollation("utf8_general_ci");
  2146. entity.Property(e => e.DemandDesc)
  2147. .HasColumnType("varchar(256)")
  2148. .HasCharSet("utf8")
  2149. .HasCollation("utf8_general_ci");
  2150. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2151. entity.Property(e => e.ReplaceBrandId).HasColumnType("int(11)");
  2152. entity.Property(e => e.ReplaceSnNo)
  2153. .HasColumnType("varchar(32)")
  2154. .HasCharSet("utf8")
  2155. .HasCollation("utf8_general_ci");
  2156. entity.Property(e => e.ReplaceSnType).HasColumnType("int(11)");
  2157. entity.Property(e => e.SeoDescription)
  2158. .HasColumnType("varchar(500)")
  2159. .HasCharSet("utf8")
  2160. .HasCollation("utf8_general_ci");
  2161. entity.Property(e => e.SeoKeyword)
  2162. .HasColumnType("varchar(200)")
  2163. .HasCharSet("utf8")
  2164. .HasCollation("utf8_general_ci");
  2165. entity.Property(e => e.SeoTitle)
  2166. .HasColumnType("varchar(100)")
  2167. .HasCharSet("utf8")
  2168. .HasCollation("utf8_general_ci");
  2169. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2170. entity.Property(e => e.Status).HasColumnType("int(11)");
  2171. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2172. entity.Property(e => e.UpdateMan)
  2173. .HasColumnType("varchar(50)")
  2174. .HasCharSet("utf8")
  2175. .HasCollation("utf8_general_ci");
  2176. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2177. entity.Property(e => e.Version).HasColumnType("int(11)");
  2178. });
  2179. modelBuilder.Entity<MachineReturn>(entity =>
  2180. {
  2181. entity.Property(e => e.Id).HasColumnType("int(11)");
  2182. entity.Property(e => e.ApplyNo)
  2183. .HasColumnType("varchar(32)")
  2184. .HasCharSet("utf8")
  2185. .HasCollation("utf8_general_ci");
  2186. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2187. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2188. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2189. entity.Property(e => e.CreateMan)
  2190. .HasColumnType("varchar(50)")
  2191. .HasCharSet("utf8")
  2192. .HasCollation("utf8_general_ci");
  2193. entity.Property(e => e.DeviceDesc)
  2194. .HasColumnType("varchar(256)")
  2195. .HasCharSet("utf8")
  2196. .HasCollation("utf8_general_ci");
  2197. entity.Property(e => e.DeviceNum).HasColumnType("int(11)");
  2198. entity.Property(e => e.DeviceSnNos)
  2199. .HasColumnType("mediumtext")
  2200. .HasCharSet("utf8")
  2201. .HasCollation("utf8_general_ci");
  2202. entity.Property(e => e.Operator)
  2203. .HasColumnType("varchar(32)")
  2204. .HasCharSet("utf8")
  2205. .HasCollation("utf8_general_ci");
  2206. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2207. entity.Property(e => e.Remark)
  2208. .HasColumnType("varchar(64)")
  2209. .HasCharSet("utf8")
  2210. .HasCollation("utf8_general_ci");
  2211. entity.Property(e => e.SeoDescription)
  2212. .HasColumnType("varchar(500)")
  2213. .HasCharSet("utf8")
  2214. .HasCollation("utf8_general_ci");
  2215. entity.Property(e => e.SeoKeyword)
  2216. .HasColumnType("varchar(200)")
  2217. .HasCharSet("utf8")
  2218. .HasCollation("utf8_general_ci");
  2219. entity.Property(e => e.SeoTitle)
  2220. .HasColumnType("varchar(100)")
  2221. .HasCharSet("utf8")
  2222. .HasCollation("utf8_general_ci");
  2223. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2224. entity.Property(e => e.Status).HasColumnType("int(11)");
  2225. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  2226. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2227. entity.Property(e => e.UpdateMan)
  2228. .HasColumnType("varchar(50)")
  2229. .HasCharSet("utf8")
  2230. .HasCollation("utf8_general_ci");
  2231. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2232. entity.Property(e => e.Version).HasColumnType("int(11)");
  2233. });
  2234. modelBuilder.Entity<MachineUnBind>(entity =>
  2235. {
  2236. entity.Property(e => e.Id).HasColumnType("int(11)");
  2237. entity.Property(e => e.ApplyNo)
  2238. .HasColumnType("varchar(32)")
  2239. .HasCharSet("utf8")
  2240. .HasCollation("utf8_general_ci");
  2241. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2242. entity.Property(e => e.AuditDesc)
  2243. .HasColumnType("varchar(256)")
  2244. .HasCharSet("utf8")
  2245. .HasCollation("utf8_general_ci");
  2246. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2247. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2248. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2249. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2250. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2251. entity.Property(e => e.SeoDescription)
  2252. .HasColumnType("varchar(500)")
  2253. .HasCharSet("utf8")
  2254. .HasCollation("utf8_general_ci");
  2255. entity.Property(e => e.SeoKeyword)
  2256. .HasColumnType("varchar(200)")
  2257. .HasCharSet("utf8")
  2258. .HasCollation("utf8_general_ci");
  2259. entity.Property(e => e.SeoTitle)
  2260. .HasColumnType("varchar(100)")
  2261. .HasCharSet("utf8")
  2262. .HasCollation("utf8_general_ci");
  2263. entity.Property(e => e.SnNo)
  2264. .HasColumnType("varchar(32)")
  2265. .HasCharSet("utf8")
  2266. .HasCollation("utf8_general_ci");
  2267. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2268. entity.Property(e => e.Status).HasColumnType("int(11)");
  2269. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2270. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2271. });
  2272. modelBuilder.Entity<MenuRight>(entity =>
  2273. {
  2274. entity.HasKey(e => e.MenuId)
  2275. .HasName("PRIMARY");
  2276. entity.Property(e => e.MenuId)
  2277. .HasColumnType("varchar(50)")
  2278. .HasCharSet("utf8")
  2279. .HasCollation("utf8_general_ci");
  2280. entity.Property(e => e.Name)
  2281. .HasColumnType("varchar(50)")
  2282. .HasCharSet("utf8")
  2283. .HasCollation("utf8_general_ci");
  2284. });
  2285. modelBuilder.Entity<MerchantAddInfo>(entity =>
  2286. {
  2287. entity.Property(e => e.Id).HasColumnType("int(11)");
  2288. entity.Property(e => e.AccountBank)
  2289. .HasColumnType("varchar(30)")
  2290. .HasCharSet("utf8")
  2291. .HasCollation("utf8_general_ci");
  2292. entity.Property(e => e.AccountName)
  2293. .HasColumnType("varchar(50)")
  2294. .HasCharSet("utf8")
  2295. .HasCollation("utf8_general_ci");
  2296. entity.Property(e => e.AccountNumber)
  2297. .HasColumnType("varchar(50)")
  2298. .HasCharSet("utf8")
  2299. .HasCollation("utf8_general_ci");
  2300. entity.Property(e => e.ActivitiesId)
  2301. .HasColumnType("varchar(32)")
  2302. .HasCharSet("utf8")
  2303. .HasCollation("utf8_general_ci");
  2304. entity.Property(e => e.ActivitiesRate)
  2305. .HasColumnType("varchar(20)")
  2306. .HasCharSet("utf8")
  2307. .HasCollation("utf8_general_ci");
  2308. entity.Property(e => e.AppAppid)
  2309. .HasColumnType("varchar(50)")
  2310. .HasCharSet("utf8")
  2311. .HasCollation("utf8_general_ci");
  2312. entity.Property(e => e.AppPics)
  2313. .HasColumnType("varchar(200)")
  2314. .HasCharSet("utf8")
  2315. .HasCollation("utf8_general_ci");
  2316. entity.Property(e => e.AppSubAppid)
  2317. .HasColumnType("varchar(50)")
  2318. .HasCharSet("utf8")
  2319. .HasCollation("utf8_general_ci");
  2320. entity.Property(e => e.ApplymentId)
  2321. .HasColumnType("varchar(50)")
  2322. .HasCharSet("utf8")
  2323. .HasCollation("utf8_general_ci");
  2324. entity.Property(e => e.ApplymentState)
  2325. .HasColumnType("varchar(50)")
  2326. .HasCharSet("utf8")
  2327. .HasCollation("utf8_general_ci");
  2328. entity.Property(e => e.AuditDetail)
  2329. .HasColumnType("mediumtext")
  2330. .HasCharSet("utf8")
  2331. .HasCollation("utf8_general_ci");
  2332. entity.Property(e => e.BankAccountType)
  2333. .HasColumnType("varchar(50)")
  2334. .HasCharSet("utf8")
  2335. .HasCollation("utf8_general_ci");
  2336. entity.Property(e => e.BankAddressCode)
  2337. .HasColumnType("varchar(20)")
  2338. .HasCharSet("utf8")
  2339. .HasCollation("utf8_general_ci");
  2340. entity.Property(e => e.BankBranchId)
  2341. .HasColumnType("varchar(20)")
  2342. .HasCharSet("utf8")
  2343. .HasCollation("utf8_general_ci");
  2344. entity.Property(e => e.BankName)
  2345. .HasColumnType("varchar(50)")
  2346. .HasCharSet("utf8")
  2347. .HasCollation("utf8_general_ci");
  2348. entity.Property(e => e.BizAddressCode)
  2349. .HasColumnType("varchar(30)")
  2350. .HasCharSet("utf8")
  2351. .HasCollation("utf8_general_ci");
  2352. entity.Property(e => e.BizStoreAddress)
  2353. .HasColumnType("varchar(50)")
  2354. .HasCharSet("utf8")
  2355. .HasCollation("utf8_general_ci");
  2356. entity.Property(e => e.BizStoreName)
  2357. .HasColumnType("varchar(50)")
  2358. .HasCharSet("utf8")
  2359. .HasCollation("utf8_general_ci");
  2360. entity.Property(e => e.BizSubAppid)
  2361. .HasColumnType("varchar(32)")
  2362. .HasCharSet("utf8")
  2363. .HasCollation("utf8_general_ci");
  2364. entity.Property(e => e.BusinessCode)
  2365. .HasColumnType("varchar(50)")
  2366. .HasCharSet("utf8")
  2367. .HasCollation("utf8_general_ci");
  2368. entity.Property(e => e.CardPeriodBegin).HasColumnType("datetime");
  2369. entity.Property(e => e.CardPeriodEnd).HasColumnType("datetime");
  2370. entity.Property(e => e.CertCopy)
  2371. .HasColumnType("varchar(200)")
  2372. .HasCharSet("utf8")
  2373. .HasCollation("utf8_general_ci");
  2374. entity.Property(e => e.CertLegalPerson)
  2375. .HasColumnType("varchar(20)")
  2376. .HasCharSet("utf8")
  2377. .HasCollation("utf8_general_ci");
  2378. entity.Property(e => e.CertMerchantName)
  2379. .HasColumnType("varchar(30)")
  2380. .HasCharSet("utf8")
  2381. .HasCollation("utf8_general_ci");
  2382. entity.Property(e => e.CertNumber)
  2383. .HasColumnType("varchar(32)")
  2384. .HasCharSet("utf8")
  2385. .HasCollation("utf8_general_ci");
  2386. entity.Property(e => e.CertType)
  2387. .HasColumnType("varchar(30)")
  2388. .HasCharSet("utf8")
  2389. .HasCollation("utf8_general_ci");
  2390. entity.Property(e => e.CertificateLetterCopy)
  2391. .HasColumnType("varchar(200)")
  2392. .HasCharSet("utf8")
  2393. .HasCollation("utf8_general_ci");
  2394. entity.Property(e => e.CompanyAddress)
  2395. .HasColumnType("varchar(50)")
  2396. .HasCharSet("utf8")
  2397. .HasCollation("utf8_general_ci");
  2398. entity.Property(e => e.ContactEmail)
  2399. .HasColumnType("varchar(50)")
  2400. .HasCharSet("utf8")
  2401. .HasCollation("utf8_general_ci");
  2402. entity.Property(e => e.ContactIdNumber)
  2403. .HasColumnType("varchar(18)")
  2404. .HasCharSet("utf8")
  2405. .HasCollation("utf8_general_ci");
  2406. entity.Property(e => e.ContactName)
  2407. .HasColumnType("varchar(30)")
  2408. .HasCharSet("utf8")
  2409. .HasCollation("utf8_general_ci");
  2410. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2411. entity.Property(e => e.CreateMan)
  2412. .HasColumnType("varchar(50)")
  2413. .HasCharSet("utf8")
  2414. .HasCollation("utf8_general_ci");
  2415. entity.Property(e => e.IdCardCopy)
  2416. .HasColumnType("varchar(200)")
  2417. .HasCharSet("utf8")
  2418. .HasCollation("utf8_general_ci");
  2419. entity.Property(e => e.IdCardName)
  2420. .HasColumnType("varchar(20)")
  2421. .HasCharSet("utf8")
  2422. .HasCollation("utf8_general_ci");
  2423. entity.Property(e => e.IdCardNational)
  2424. .HasColumnType("varchar(200)")
  2425. .HasCharSet("utf8")
  2426. .HasCollation("utf8_general_ci");
  2427. entity.Property(e => e.IdCardNumber)
  2428. .HasColumnType("varchar(18)")
  2429. .HasCharSet("utf8")
  2430. .HasCollation("utf8_general_ci");
  2431. entity.Property(e => e.IdDocType)
  2432. .HasColumnType("varchar(50)")
  2433. .HasCharSet("utf8")
  2434. .HasCollation("utf8_general_ci");
  2435. entity.Property(e => e.IndoorPic)
  2436. .HasColumnType("varchar(200)")
  2437. .HasCharSet("utf8")
  2438. .HasCollation("utf8_general_ci");
  2439. entity.Property(e => e.LegalPerson)
  2440. .HasColumnType("varchar(20)")
  2441. .HasCharSet("utf8")
  2442. .HasCollation("utf8_general_ci");
  2443. entity.Property(e => e.LicenseCopy)
  2444. .HasColumnType("varchar(200)")
  2445. .HasCharSet("utf8")
  2446. .HasCollation("utf8_general_ci");
  2447. entity.Property(e => e.LicenseNumber)
  2448. .HasColumnType("varchar(32)")
  2449. .HasCharSet("utf8")
  2450. .HasCollation("utf8_general_ci");
  2451. entity.Property(e => e.MerchantShortname)
  2452. .HasColumnType("varchar(50)")
  2453. .HasCharSet("utf8")
  2454. .HasCollation("utf8_general_ci");
  2455. entity.Property(e => e.MiniProgramAppid)
  2456. .HasColumnType("varchar(50)")
  2457. .HasCharSet("utf8")
  2458. .HasCollation("utf8_general_ci");
  2459. entity.Property(e => e.MiniProgramPics)
  2460. .HasColumnType("varchar(200)")
  2461. .HasCharSet("utf8")
  2462. .HasCollation("utf8_general_ci");
  2463. entity.Property(e => e.MiniProgramSubAppid)
  2464. .HasColumnType("varchar(50)")
  2465. .HasCharSet("utf8")
  2466. .HasCollation("utf8_general_ci");
  2467. entity.Property(e => e.MobilePhone)
  2468. .HasColumnType("varchar(11)")
  2469. .HasCharSet("utf8")
  2470. .HasCollation("utf8_general_ci");
  2471. entity.Property(e => e.MpAppid)
  2472. .HasColumnType("varchar(50)")
  2473. .HasCharSet("utf8")
  2474. .HasCollation("utf8_general_ci");
  2475. entity.Property(e => e.MpPics)
  2476. .HasColumnType("varchar(200)")
  2477. .HasCharSet("utf8")
  2478. .HasCollation("utf8_general_ci");
  2479. entity.Property(e => e.MpSubAppid)
  2480. .HasColumnType("varchar(50)")
  2481. .HasCharSet("utf8")
  2482. .HasCollation("utf8_general_ci");
  2483. entity.Property(e => e.OpenId)
  2484. .HasColumnType("varchar(50)")
  2485. .HasCharSet("utf8")
  2486. .HasCollation("utf8_general_ci");
  2487. entity.Property(e => e.OrgPeriodBegin).HasColumnType("datetime");
  2488. entity.Property(e => e.OrgPeriodEnd).HasColumnType("datetime");
  2489. entity.Property(e => e.OrganizationCode)
  2490. .HasColumnType("varchar(32)")
  2491. .HasCharSet("utf8")
  2492. .HasCollation("utf8_general_ci");
  2493. entity.Property(e => e.OrganizationCopy)
  2494. .HasColumnType("varchar(200)")
  2495. .HasCharSet("utf8")
  2496. .HasCollation("utf8_general_ci");
  2497. entity.Property(e => e.Owner)
  2498. .HasColumnType("bit(1)")
  2499. .HasDefaultValueSql("b'0'");
  2500. entity.Property(e => e.PeriodBegin).HasColumnType("datetime");
  2501. entity.Property(e => e.PeriodEnd).HasColumnType("datetime");
  2502. entity.Property(e => e.QualificationType)
  2503. .HasColumnType("varchar(30)")
  2504. .HasCharSet("utf8")
  2505. .HasCollation("utf8_general_ci");
  2506. entity.Property(e => e.Qualifications)
  2507. .HasColumnType("varchar(200)")
  2508. .HasCharSet("utf8")
  2509. .HasCollation("utf8_general_ci");
  2510. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2511. entity.Property(e => e.SalesScenesType)
  2512. .HasColumnType("varchar(50)")
  2513. .HasCharSet("utf8")
  2514. .HasCollation("utf8_general_ci");
  2515. entity.Property(e => e.SeoDescription)
  2516. .HasColumnType("varchar(500)")
  2517. .HasCharSet("utf8")
  2518. .HasCollation("utf8_general_ci");
  2519. entity.Property(e => e.SeoKeyword)
  2520. .HasColumnType("varchar(200)")
  2521. .HasCharSet("utf8")
  2522. .HasCollation("utf8_general_ci");
  2523. entity.Property(e => e.SeoTitle)
  2524. .HasColumnType("varchar(100)")
  2525. .HasCharSet("utf8")
  2526. .HasCollation("utf8_general_ci");
  2527. entity.Property(e => e.ServicePhone)
  2528. .HasColumnType("varchar(30)")
  2529. .HasCharSet("utf8")
  2530. .HasCollation("utf8_general_ci");
  2531. entity.Property(e => e.SettlementId)
  2532. .HasColumnType("varchar(3)")
  2533. .HasCharSet("utf8")
  2534. .HasCollation("utf8_general_ci");
  2535. entity.Property(e => e.SignUrl)
  2536. .HasColumnType("varchar(1000)")
  2537. .HasCharSet("utf8")
  2538. .HasCollation("utf8_general_ci");
  2539. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2540. entity.Property(e => e.Status).HasColumnType("int(11)");
  2541. entity.Property(e => e.StoreEntrancePic)
  2542. .HasColumnType("varchar(200)")
  2543. .HasCharSet("utf8")
  2544. .HasCollation("utf8_general_ci");
  2545. entity.Property(e => e.SubCorpId)
  2546. .HasColumnType("varchar(50)")
  2547. .HasCharSet("utf8")
  2548. .HasCollation("utf8_general_ci");
  2549. entity.Property(e => e.SubMchid)
  2550. .HasColumnType("varchar(32)")
  2551. .HasCharSet("utf8")
  2552. .HasCollation("utf8_general_ci");
  2553. entity.Property(e => e.SubjectType)
  2554. .HasColumnType("varchar(50)")
  2555. .HasCharSet("utf8")
  2556. .HasCollation("utf8_general_ci");
  2557. entity.Property(e => e.UboInfoIdCardCopy)
  2558. .HasColumnType("varchar(200)")
  2559. .HasCharSet("utf8")
  2560. .HasCollation("utf8_general_ci");
  2561. entity.Property(e => e.UboInfoIdCardNational)
  2562. .HasColumnType("varchar(200)")
  2563. .HasCharSet("utf8")
  2564. .HasCollation("utf8_general_ci");
  2565. entity.Property(e => e.UboInfoIdDocCopy)
  2566. .HasColumnType("varchar(200)")
  2567. .HasCharSet("utf8")
  2568. .HasCollation("utf8_general_ci");
  2569. entity.Property(e => e.UboInfoIdNumber)
  2570. .HasColumnType("varchar(30)")
  2571. .HasCharSet("utf8")
  2572. .HasCollation("utf8_general_ci");
  2573. entity.Property(e => e.UboInfoIdPeriodBegin).HasColumnType("datetime");
  2574. entity.Property(e => e.UboInfoIdPeriodEnd).HasColumnType("datetime");
  2575. entity.Property(e => e.UboInfoIdType)
  2576. .HasColumnType("varchar(50)")
  2577. .HasCharSet("utf8")
  2578. .HasCollation("utf8_general_ci");
  2579. entity.Property(e => e.UboInfoName)
  2580. .HasColumnType("varchar(20)")
  2581. .HasCharSet("utf8")
  2582. .HasCollation("utf8_general_ci");
  2583. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2584. entity.Property(e => e.UpdateMan)
  2585. .HasColumnType("varchar(50)")
  2586. .HasCharSet("utf8")
  2587. .HasCollation("utf8_general_ci");
  2588. entity.Property(e => e.Version).HasColumnType("int(11)");
  2589. entity.Property(e => e.WebAppId)
  2590. .HasColumnType("varchar(50)")
  2591. .HasCharSet("utf8")
  2592. .HasCollation("utf8_general_ci");
  2593. entity.Property(e => e.WebAuthorisation)
  2594. .HasColumnType("varchar(200)")
  2595. .HasCharSet("utf8")
  2596. .HasCollation("utf8_general_ci");
  2597. entity.Property(e => e.WebDomain)
  2598. .HasColumnType("varchar(50)")
  2599. .HasCharSet("utf8")
  2600. .HasCollation("utf8_general_ci");
  2601. entity.Property(e => e.WeworkPics)
  2602. .HasColumnType("varchar(200)")
  2603. .HasCharSet("utf8")
  2604. .HasCollation("utf8_general_ci");
  2605. });
  2606. modelBuilder.Entity<MerchantAdmin>(entity =>
  2607. {
  2608. entity.Property(e => e.Id).HasColumnType("int(11)");
  2609. entity.Property(e => e.AdminName)
  2610. .HasColumnType("varchar(50)")
  2611. .HasCharSet("utf8")
  2612. .HasCollation("utf8_general_ci");
  2613. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2614. entity.Property(e => e.CreateMan)
  2615. .HasColumnType("varchar(50)")
  2616. .HasCharSet("utf8")
  2617. .HasCollation("utf8_general_ci");
  2618. entity.Property(e => e.Email)
  2619. .HasColumnType("varchar(50)")
  2620. .HasCharSet("utf8")
  2621. .HasCollation("utf8_general_ci");
  2622. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  2623. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2624. entity.Property(e => e.Mobile)
  2625. .HasColumnType("varchar(11)")
  2626. .HasCharSet("utf8")
  2627. .HasCollation("utf8_general_ci");
  2628. entity.Property(e => e.Note)
  2629. .HasColumnType("mediumtext")
  2630. .HasCharSet("utf8")
  2631. .HasCollation("utf8_general_ci");
  2632. entity.Property(e => e.Password)
  2633. .HasColumnType("varchar(32)")
  2634. .HasCharSet("utf8")
  2635. .HasCollation("utf8_general_ci");
  2636. entity.Property(e => e.Qq)
  2637. .HasColumnName("QQ")
  2638. .HasColumnType("varchar(20)")
  2639. .HasCharSet("utf8")
  2640. .HasCollation("utf8_general_ci");
  2641. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2642. entity.Property(e => e.RealName)
  2643. .HasColumnType("varchar(50)")
  2644. .HasCharSet("utf8")
  2645. .HasCollation("utf8_general_ci");
  2646. entity.Property(e => e.RightInfo)
  2647. .HasColumnType("varchar(500)")
  2648. .HasCharSet("utf8")
  2649. .HasCollation("utf8_general_ci");
  2650. entity.Property(e => e.SeoDescription)
  2651. .HasColumnType("varchar(500)")
  2652. .HasCharSet("utf8")
  2653. .HasCollation("utf8_general_ci");
  2654. entity.Property(e => e.SeoKeyword)
  2655. .HasColumnType("varchar(200)")
  2656. .HasCharSet("utf8")
  2657. .HasCollation("utf8_general_ci");
  2658. entity.Property(e => e.SeoTitle)
  2659. .HasColumnType("varchar(100)")
  2660. .HasCharSet("utf8")
  2661. .HasCollation("utf8_general_ci");
  2662. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2663. entity.Property(e => e.Status).HasColumnType("int(11)");
  2664. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2665. entity.Property(e => e.UpdateMan)
  2666. .HasColumnType("varchar(50)")
  2667. .HasCharSet("utf8")
  2668. .HasCollation("utf8_general_ci");
  2669. entity.Property(e => e.Version).HasColumnType("int(11)");
  2670. });
  2671. modelBuilder.Entity<MerchantAuth>(entity =>
  2672. {
  2673. entity.Property(e => e.Id).HasColumnType("int(11)");
  2674. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  2675. entity.Property(e => e.BankCardAccount)
  2676. .HasColumnType("varchar(32)")
  2677. .HasCharSet("utf8")
  2678. .HasCollation("utf8_general_ci");
  2679. entity.Property(e => e.BankMobile)
  2680. .HasColumnType("varchar(11)")
  2681. .HasCharSet("utf8")
  2682. .HasCollation("utf8_general_ci");
  2683. entity.Property(e => e.BankName)
  2684. .HasColumnType("varchar(64)")
  2685. .HasCharSet("utf8")
  2686. .HasCollation("utf8_general_ci");
  2687. entity.Property(e => e.ChannelCode)
  2688. .HasColumnType("varchar(16)")
  2689. .HasCharSet("utf8")
  2690. .HasCollation("utf8_general_ci");
  2691. entity.Property(e => e.ChannelName)
  2692. .HasColumnType("varchar(32)")
  2693. .HasCharSet("utf8")
  2694. .HasCollation("utf8_general_ci");
  2695. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2696. entity.Property(e => e.CreateMan)
  2697. .HasColumnType("varchar(50)")
  2698. .HasCharSet("utf8")
  2699. .HasCollation("utf8_general_ci");
  2700. entity.Property(e => e.IdCardNo)
  2701. .HasColumnType("varchar(18)")
  2702. .HasCharSet("utf8")
  2703. .HasCollation("utf8_general_ci");
  2704. entity.Property(e => e.MerNo)
  2705. .HasColumnType("varchar(20)")
  2706. .HasCharSet("utf8")
  2707. .HasCollation("utf8_general_ci");
  2708. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2709. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2710. entity.Property(e => e.RealName)
  2711. .HasColumnType("varchar(16)")
  2712. .HasCharSet("utf8")
  2713. .HasCollation("utf8_general_ci");
  2714. entity.Property(e => e.ReqData)
  2715. .HasColumnType("varchar(2000)")
  2716. .HasCharSet("utf8")
  2717. .HasCollation("utf8_general_ci");
  2718. entity.Property(e => e.RespData)
  2719. .HasColumnType("varchar(2000)")
  2720. .HasCharSet("utf8")
  2721. .HasCollation("utf8_general_ci");
  2722. entity.Property(e => e.ReturnCode)
  2723. .HasColumnType("varchar(30)")
  2724. .HasCharSet("utf8")
  2725. .HasCollation("utf8_general_ci");
  2726. entity.Property(e => e.ReturnMsg)
  2727. .HasColumnType("varchar(512)")
  2728. .HasCharSet("utf8")
  2729. .HasCollation("utf8_general_ci");
  2730. entity.Property(e => e.SeoDescription)
  2731. .HasColumnType("varchar(500)")
  2732. .HasCharSet("utf8")
  2733. .HasCollation("utf8_general_ci");
  2734. entity.Property(e => e.SeoKeyword)
  2735. .HasColumnType("varchar(200)")
  2736. .HasCharSet("utf8")
  2737. .HasCollation("utf8_general_ci");
  2738. entity.Property(e => e.SeoTitle)
  2739. .HasColumnType("varchar(100)")
  2740. .HasCharSet("utf8")
  2741. .HasCollation("utf8_general_ci");
  2742. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2743. entity.Property(e => e.Status).HasColumnType("int(11)");
  2744. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2745. entity.Property(e => e.UpdateMan)
  2746. .HasColumnType("varchar(50)")
  2747. .HasCharSet("utf8")
  2748. .HasCollation("utf8_general_ci");
  2749. entity.Property(e => e.Version).HasColumnType("int(11)");
  2750. });
  2751. modelBuilder.Entity<MerchantClass>(entity =>
  2752. {
  2753. entity.Property(e => e.Id).HasColumnType("int(11)");
  2754. entity.Property(e => e.ColName)
  2755. .HasColumnType("varchar(50)")
  2756. .HasCharSet("utf8")
  2757. .HasCollation("utf8_general_ci");
  2758. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2759. entity.Property(e => e.CreateMan)
  2760. .HasColumnType("varchar(50)")
  2761. .HasCharSet("utf8")
  2762. .HasCollation("utf8_general_ci");
  2763. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2764. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2765. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2766. entity.Property(e => e.SeoDescription)
  2767. .HasColumnType("varchar(500)")
  2768. .HasCharSet("utf8")
  2769. .HasCollation("utf8_general_ci");
  2770. entity.Property(e => e.SeoKeyword)
  2771. .HasColumnType("varchar(200)")
  2772. .HasCharSet("utf8")
  2773. .HasCollation("utf8_general_ci");
  2774. entity.Property(e => e.SeoTitle)
  2775. .HasColumnType("varchar(100)")
  2776. .HasCharSet("utf8")
  2777. .HasCollation("utf8_general_ci");
  2778. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2779. entity.Property(e => e.Status).HasColumnType("int(11)");
  2780. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2781. entity.Property(e => e.UpdateMan)
  2782. .HasColumnType("varchar(50)")
  2783. .HasCharSet("utf8")
  2784. .HasCollation("utf8_general_ci");
  2785. entity.Property(e => e.Version).HasColumnType("int(11)");
  2786. });
  2787. modelBuilder.Entity<MerchantCol>(entity =>
  2788. {
  2789. entity.Property(e => e.Id).HasColumnType("int(11)");
  2790. entity.Property(e => e.ColDetail)
  2791. .HasColumnType("varchar(50)")
  2792. .HasCharSet("utf8")
  2793. .HasCollation("utf8_general_ci");
  2794. entity.Property(e => e.ColEnName)
  2795. .HasColumnType("varchar(50)")
  2796. .HasCharSet("utf8")
  2797. .HasCollation("utf8_general_ci");
  2798. entity.Property(e => e.ColId)
  2799. .HasColumnType("varchar(30)")
  2800. .HasCharSet("utf8")
  2801. .HasCollation("utf8_general_ci");
  2802. entity.Property(e => e.ColName)
  2803. .HasColumnType("varchar(50)")
  2804. .HasCharSet("utf8")
  2805. .HasCollation("utf8_general_ci");
  2806. entity.Property(e => e.ColPicPath)
  2807. .HasColumnType("varchar(200)")
  2808. .HasCharSet("utf8")
  2809. .HasCollation("utf8_general_ci");
  2810. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2811. entity.Property(e => e.CreateMan)
  2812. .HasColumnType("varchar(50)")
  2813. .HasCharSet("utf8")
  2814. .HasCollation("utf8_general_ci");
  2815. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2816. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2817. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2818. entity.Property(e => e.Recommend)
  2819. .HasColumnType("bit(1)")
  2820. .HasDefaultValueSql("b'0'");
  2821. entity.Property(e => e.SeoDescription)
  2822. .HasColumnType("varchar(500)")
  2823. .HasCharSet("utf8")
  2824. .HasCollation("utf8_general_ci");
  2825. entity.Property(e => e.SeoKeyword)
  2826. .HasColumnType("varchar(200)")
  2827. .HasCharSet("utf8")
  2828. .HasCollation("utf8_general_ci");
  2829. entity.Property(e => e.SeoTitle)
  2830. .HasColumnType("varchar(100)")
  2831. .HasCharSet("utf8")
  2832. .HasCollation("utf8_general_ci");
  2833. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2834. entity.Property(e => e.Status).HasColumnType("int(11)");
  2835. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2836. entity.Property(e => e.UpdateMan)
  2837. .HasColumnType("varchar(50)")
  2838. .HasCharSet("utf8")
  2839. .HasCollation("utf8_general_ci");
  2840. entity.Property(e => e.Version).HasColumnType("int(11)");
  2841. });
  2842. modelBuilder.Entity<MerchantComment>(entity =>
  2843. {
  2844. entity.Property(e => e.Id).HasColumnType("int(11)");
  2845. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2846. entity.Property(e => e.CreateMan)
  2847. .HasColumnType("varchar(50)")
  2848. .HasCharSet("utf8")
  2849. .HasCollation("utf8_general_ci");
  2850. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2851. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  2852. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2853. entity.Property(e => e.SeoDescription)
  2854. .HasColumnType("varchar(500)")
  2855. .HasCharSet("utf8")
  2856. .HasCollation("utf8_general_ci");
  2857. entity.Property(e => e.SeoKeyword)
  2858. .HasColumnType("varchar(200)")
  2859. .HasCharSet("utf8")
  2860. .HasCollation("utf8_general_ci");
  2861. entity.Property(e => e.SeoTitle)
  2862. .HasColumnType("varchar(100)")
  2863. .HasCharSet("utf8")
  2864. .HasCollation("utf8_general_ci");
  2865. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2866. entity.Property(e => e.StarNum1).HasColumnType("int(11)");
  2867. entity.Property(e => e.StarNum2).HasColumnType("int(11)");
  2868. entity.Property(e => e.StarNum3).HasColumnType("int(11)");
  2869. entity.Property(e => e.Status).HasColumnType("int(11)");
  2870. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2871. entity.Property(e => e.UpdateMan)
  2872. .HasColumnType("varchar(50)")
  2873. .HasCharSet("utf8")
  2874. .HasCollation("utf8_general_ci");
  2875. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2876. entity.Property(e => e.Version).HasColumnType("int(11)");
  2877. });
  2878. modelBuilder.Entity<MerchantForCode>(entity =>
  2879. {
  2880. entity.HasKey(e => e.Code)
  2881. .HasName("PRIMARY");
  2882. entity.Property(e => e.Code)
  2883. .HasColumnType("varchar(30)")
  2884. .HasCharSet("utf8")
  2885. .HasCollation("utf8_general_ci");
  2886. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2887. });
  2888. modelBuilder.Entity<MerchantForMobile>(entity =>
  2889. {
  2890. entity.HasKey(e => e.Mobile)
  2891. .HasName("PRIMARY");
  2892. entity.Property(e => e.Mobile)
  2893. .HasColumnType("varchar(11)")
  2894. .HasCharSet("utf8")
  2895. .HasCollation("utf8_general_ci");
  2896. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2897. });
  2898. modelBuilder.Entity<MerchantForName>(entity =>
  2899. {
  2900. entity.HasKey(e => e.Name)
  2901. .HasName("PRIMARY");
  2902. entity.Property(e => e.Name)
  2903. .HasColumnType("varchar(30)")
  2904. .HasCharSet("utf8")
  2905. .HasCollation("utf8_general_ci");
  2906. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2907. });
  2908. modelBuilder.Entity<MerchantInfo>(entity =>
  2909. {
  2910. entity.Property(e => e.Id).HasColumnType("int(11)");
  2911. entity.Property(e => e.ActivationDate).HasColumnType("datetime");
  2912. entity.Property(e => e.ActivationStatus).HasColumnType("int(11)");
  2913. entity.Property(e => e.Address)
  2914. .HasColumnType("varchar(100)")
  2915. .HasCharSet("utf8")
  2916. .HasCollation("utf8_general_ci");
  2917. entity.Property(e => e.Areas)
  2918. .HasColumnType("varchar(50)")
  2919. .HasCharSet("utf8")
  2920. .HasCollation("utf8_general_ci");
  2921. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2922. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  2923. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2924. entity.Property(e => e.CreateMan)
  2925. .HasColumnType("varchar(50)")
  2926. .HasCharSet("utf8")
  2927. .HasCollation("utf8_general_ci");
  2928. entity.Property(e => e.IsAuth)
  2929. .HasColumnType("bit(1)")
  2930. .HasDefaultValueSql("b'0'");
  2931. entity.Property(e => e.LastAddConsumerDate).HasColumnType("datetime");
  2932. entity.Property(e => e.LastConsumeDate).HasColumnType("datetime");
  2933. entity.Property(e => e.LoginPwd)
  2934. .HasColumnType("varchar(32)")
  2935. .HasCharSet("utf8")
  2936. .HasCollation("utf8_general_ci");
  2937. entity.Property(e => e.Logo)
  2938. .HasColumnType("varchar(200)")
  2939. .HasCharSet("utf8")
  2940. .HasCollation("utf8_general_ci");
  2941. entity.Property(e => e.Mobile)
  2942. .HasColumnType("varchar(11)")
  2943. .HasCharSet("utf8")
  2944. .HasCollation("utf8_general_ci");
  2945. entity.Property(e => e.Name)
  2946. .HasColumnType("varchar(50)")
  2947. .HasCharSet("utf8")
  2948. .HasCollation("utf8_general_ci");
  2949. entity.Property(e => e.ParentUserNav)
  2950. .HasColumnType("varchar(500)")
  2951. .HasCharSet("utf8")
  2952. .HasCollation("utf8_general_ci");
  2953. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2954. entity.Property(e => e.SeoDescription)
  2955. .HasColumnType("varchar(500)")
  2956. .HasCharSet("utf8")
  2957. .HasCollation("utf8_general_ci");
  2958. entity.Property(e => e.SeoKeyword)
  2959. .HasColumnType("varchar(200)")
  2960. .HasCharSet("utf8")
  2961. .HasCollation("utf8_general_ci");
  2962. entity.Property(e => e.SeoTitle)
  2963. .HasColumnType("varchar(100)")
  2964. .HasCharSet("utf8")
  2965. .HasCollation("utf8_general_ci");
  2966. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2967. entity.Property(e => e.Status).HasColumnType("int(11)");
  2968. entity.Property(e => e.TotalActual).HasColumnType("decimal(18,2)");
  2969. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  2970. entity.Property(e => e.TotalConsumeCount).HasColumnType("int(11)");
  2971. entity.Property(e => e.TotalCustomer).HasColumnType("int(11)");
  2972. entity.Property(e => e.TotalOrder).HasColumnType("int(11)");
  2973. entity.Property(e => e.TotalUser).HasColumnType("int(11)");
  2974. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2975. entity.Property(e => e.UpdateMan)
  2976. .HasColumnType("varchar(50)")
  2977. .HasCharSet("utf8")
  2978. .HasCollation("utf8_general_ci");
  2979. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2980. entity.Property(e => e.Version).HasColumnType("int(11)");
  2981. });
  2982. modelBuilder.Entity<MerchantParamSet>(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.DiviPercent).HasColumnType("decimal(18,2)");
  2991. entity.Property(e => e.DiviPersons).HasColumnType("int(11)");
  2992. entity.Property(e => e.GetPercent).HasColumnType("decimal(18,2)");
  2993. entity.Property(e => e.IsAll).HasColumnType("int(11)");
  2994. entity.Property(e => e.MinPayMoney).HasColumnType("decimal(18,2)");
  2995. entity.Property(e => e.ProfitDays).HasColumnType("int(11)");
  2996. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2997. entity.Property(e => e.SeoDescription)
  2998. .HasColumnType("varchar(500)")
  2999. .HasCharSet("utf8")
  3000. .HasCollation("utf8_general_ci");
  3001. entity.Property(e => e.SeoKeyword)
  3002. .HasColumnType("varchar(200)")
  3003. .HasCharSet("utf8")
  3004. .HasCollation("utf8_general_ci");
  3005. entity.Property(e => e.SeoTitle)
  3006. .HasColumnType("varchar(100)")
  3007. .HasCharSet("utf8")
  3008. .HasCollation("utf8_general_ci");
  3009. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3010. entity.Property(e => e.Status).HasColumnType("int(11)");
  3011. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3012. entity.Property(e => e.UpdateMan)
  3013. .HasColumnType("varchar(50)")
  3014. .HasCharSet("utf8")
  3015. .HasCollation("utf8_general_ci");
  3016. entity.Property(e => e.Version).HasColumnType("int(11)");
  3017. });
  3018. modelBuilder.Entity<MerchantQrCode>(entity =>
  3019. {
  3020. entity.Property(e => e.Id).HasColumnType("int(11)");
  3021. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3022. entity.Property(e => e.MachineId).HasColumnType("int(11)");
  3023. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3024. entity.Property(e => e.QrCodeContent)
  3025. .HasColumnType("varchar(500)")
  3026. .HasCharSet("utf8")
  3027. .HasCollation("utf8_general_ci");
  3028. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3029. entity.Property(e => e.SeoDescription)
  3030. .HasColumnType("varchar(500)")
  3031. .HasCharSet("utf8")
  3032. .HasCollation("utf8_general_ci");
  3033. entity.Property(e => e.SeoKeyword)
  3034. .HasColumnType("varchar(200)")
  3035. .HasCharSet("utf8")
  3036. .HasCollation("utf8_general_ci");
  3037. entity.Property(e => e.SeoTitle)
  3038. .HasColumnType("varchar(100)")
  3039. .HasCharSet("utf8")
  3040. .HasCollation("utf8_general_ci");
  3041. entity.Property(e => e.SnNo)
  3042. .HasColumnType("varchar(50)")
  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. });
  3049. modelBuilder.Entity<MerchantRebateDetail>(entity =>
  3050. {
  3051. entity.Property(e => e.Id).HasColumnType("int(11)");
  3052. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3053. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3054. entity.Property(e => e.CreateMan)
  3055. .HasColumnType("varchar(50)")
  3056. .HasCharSet("utf8")
  3057. .HasCollation("utf8_general_ci");
  3058. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3059. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3060. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3061. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3062. entity.Property(e => e.MerNo)
  3063. .HasColumnType("varchar(32)")
  3064. .HasCharSet("utf8")
  3065. .HasCollation("utf8_general_ci");
  3066. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  3067. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  3068. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3069. entity.Property(e => e.MmpUserName)
  3070. .HasColumnType("varchar(32)")
  3071. .HasCharSet("utf8")
  3072. .HasCollation("utf8_general_ci");
  3073. entity.Property(e => e.MmpUserNo)
  3074. .HasColumnType("varchar(32)")
  3075. .HasCharSet("utf8")
  3076. .HasCollation("utf8_general_ci");
  3077. entity.Property(e => e.ProductName)
  3078. .HasColumnType("varchar(32)")
  3079. .HasCharSet("utf8")
  3080. .HasCollation("utf8_general_ci");
  3081. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3082. entity.Property(e => e.Remark)
  3083. .HasColumnType("varchar(64)")
  3084. .HasCharSet("utf8")
  3085. .HasCollation("utf8_general_ci");
  3086. entity.Property(e => e.RewardDesc)
  3087. .HasColumnType("varchar(128)")
  3088. .HasCharSet("utf8")
  3089. .HasCollation("utf8_general_ci");
  3090. entity.Property(e => e.SeoDescription)
  3091. .HasColumnType("varchar(500)")
  3092. .HasCharSet("utf8")
  3093. .HasCollation("utf8_general_ci");
  3094. entity.Property(e => e.SeoKeyword)
  3095. .HasColumnType("varchar(200)")
  3096. .HasCharSet("utf8")
  3097. .HasCollation("utf8_general_ci");
  3098. entity.Property(e => e.SeoTitle)
  3099. .HasColumnType("varchar(100)")
  3100. .HasCharSet("utf8")
  3101. .HasCollation("utf8_general_ci");
  3102. entity.Property(e => e.SnNo)
  3103. .HasColumnType("varchar(32)")
  3104. .HasCharSet("utf8")
  3105. .HasCollation("utf8_general_ci");
  3106. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3107. entity.Property(e => e.Status).HasColumnType("int(11)");
  3108. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  3109. entity.Property(e => e.TradeDate)
  3110. .HasColumnType("varchar(8)")
  3111. .HasCharSet("utf8")
  3112. .HasCollation("utf8_general_ci");
  3113. entity.Property(e => e.TradeMonth)
  3114. .HasColumnType("varchar(6)")
  3115. .HasCharSet("utf8")
  3116. .HasCollation("utf8_general_ci");
  3117. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3118. entity.Property(e => e.UpdateMan)
  3119. .HasColumnType("varchar(50)")
  3120. .HasCharSet("utf8")
  3121. .HasCollation("utf8_general_ci");
  3122. entity.Property(e => e.Version).HasColumnType("int(11)");
  3123. });
  3124. modelBuilder.Entity<Merchants>(entity =>
  3125. {
  3126. entity.Property(e => e.Id).HasColumnType("int(11)");
  3127. entity.Property(e => e.Address)
  3128. .HasColumnType("varchar(50)")
  3129. .HasCharSet("utf8")
  3130. .HasCollation("utf8_general_ci");
  3131. entity.Property(e => e.Areas)
  3132. .HasColumnType("varchar(30)")
  3133. .HasCharSet("utf8")
  3134. .HasCollation("utf8_general_ci");
  3135. entity.Property(e => e.BusinessLicense)
  3136. .HasColumnType("varchar(200)")
  3137. .HasCharSet("utf8")
  3138. .HasCollation("utf8_general_ci");
  3139. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  3140. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3141. entity.Property(e => e.CreateMan)
  3142. .HasColumnType("varchar(50)")
  3143. .HasCharSet("utf8")
  3144. .HasCollation("utf8_general_ci");
  3145. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  3146. entity.Property(e => e.IsAuth)
  3147. .HasColumnType("bit(1)")
  3148. .HasDefaultValueSql("b'0'");
  3149. entity.Property(e => e.IsRecommend)
  3150. .HasColumnType("bit(1)")
  3151. .HasDefaultValueSql("b'0'");
  3152. entity.Property(e => e.LoginPwd)
  3153. .HasColumnType("varchar(32)")
  3154. .HasCharSet("utf8")
  3155. .HasCollation("utf8_general_ci");
  3156. entity.Property(e => e.Logo)
  3157. .HasColumnType("varchar(200)")
  3158. .HasCharSet("utf8")
  3159. .HasCollation("utf8_general_ci");
  3160. entity.Property(e => e.Name)
  3161. .HasColumnType("varchar(50)")
  3162. .HasCharSet("utf8")
  3163. .HasCollation("utf8_general_ci");
  3164. entity.Property(e => e.PayPwd)
  3165. .HasColumnType("varchar(32)")
  3166. .HasCharSet("utf8")
  3167. .HasCollation("utf8_general_ci");
  3168. entity.Property(e => e.Phone)
  3169. .HasColumnType("varchar(30)")
  3170. .HasCharSet("utf8")
  3171. .HasCollation("utf8_general_ci");
  3172. entity.Property(e => e.Principal)
  3173. .HasColumnType("varchar(30)")
  3174. .HasCharSet("utf8")
  3175. .HasCollation("utf8_general_ci");
  3176. entity.Property(e => e.Province)
  3177. .HasColumnType("varchar(20)")
  3178. .HasCharSet("utf8")
  3179. .HasCollation("utf8_general_ci");
  3180. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3181. entity.Property(e => e.SeoDescription)
  3182. .HasColumnType("varchar(500)")
  3183. .HasCharSet("utf8")
  3184. .HasCollation("utf8_general_ci");
  3185. entity.Property(e => e.SeoKeyword)
  3186. .HasColumnType("varchar(200)")
  3187. .HasCharSet("utf8")
  3188. .HasCollation("utf8_general_ci");
  3189. entity.Property(e => e.SeoTitle)
  3190. .HasColumnType("varchar(100)")
  3191. .HasCharSet("utf8")
  3192. .HasCollation("utf8_general_ci");
  3193. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3194. entity.Property(e => e.StarNum1).HasColumnType("decimal(18,2)");
  3195. entity.Property(e => e.StarNum2).HasColumnType("decimal(18,2)");
  3196. entity.Property(e => e.StarNum3).HasColumnType("decimal(18,2)");
  3197. entity.Property(e => e.Status).HasColumnType("int(11)");
  3198. entity.Property(e => e.Title)
  3199. .HasColumnType("varchar(50)")
  3200. .HasCharSet("utf8")
  3201. .HasCollation("utf8_general_ci");
  3202. entity.Property(e => e.Title2)
  3203. .HasColumnType("varchar(50)")
  3204. .HasCharSet("utf8")
  3205. .HasCollation("utf8_general_ci");
  3206. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3207. entity.Property(e => e.UpdateMan)
  3208. .HasColumnType("varchar(50)")
  3209. .HasCharSet("utf8")
  3210. .HasCollation("utf8_general_ci");
  3211. entity.Property(e => e.UserName)
  3212. .HasColumnType("varchar(50)")
  3213. .HasCharSet("utf8")
  3214. .HasCollation("utf8_general_ci");
  3215. entity.Property(e => e.Version).HasColumnType("int(11)");
  3216. });
  3217. modelBuilder.Entity<MobileCodeCheck>(entity =>
  3218. {
  3219. entity.HasKey(e => e.Mobile)
  3220. .HasName("PRIMARY");
  3221. entity.Property(e => e.Mobile)
  3222. .HasColumnType("varchar(11)")
  3223. .HasCharSet("utf8")
  3224. .HasCollation("utf8_general_ci");
  3225. entity.Property(e => e.CheckCode)
  3226. .HasColumnType("varchar(6)")
  3227. .HasCharSet("utf8")
  3228. .HasCollation("utf8_general_ci");
  3229. entity.Property(e => e.CheckCodeTime).HasColumnType("datetime");
  3230. entity.Property(e => e.CheckNo)
  3231. .HasColumnType("varchar(6)")
  3232. .HasCharSet("utf8")
  3233. .HasCollation("utf8_general_ci");
  3234. });
  3235. modelBuilder.Entity<MsgBlackList>(entity =>
  3236. {
  3237. entity.Property(e => e.Id).HasColumnType("int(11)");
  3238. entity.Property(e => e.ColId)
  3239. .HasColumnType("varchar(30)")
  3240. .HasCharSet("utf8")
  3241. .HasCollation("utf8_general_ci");
  3242. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3243. entity.Property(e => e.CreateMan)
  3244. .HasColumnType("varchar(50)")
  3245. .HasCharSet("utf8")
  3246. .HasCollation("utf8_general_ci");
  3247. entity.Property(e => e.Extend)
  3248. .HasColumnType("varchar(2000)")
  3249. .HasCharSet("utf8")
  3250. .HasCollation("utf8_general_ci");
  3251. entity.Property(e => e.Ip)
  3252. .HasColumnType("varchar(64)")
  3253. .HasCharSet("utf8")
  3254. .HasCollation("utf8_general_ci");
  3255. entity.Property(e => e.Mobile)
  3256. .HasColumnType("varchar(11)")
  3257. .HasCharSet("utf8")
  3258. .HasCollation("utf8_general_ci");
  3259. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3260. entity.Property(e => e.Reason)
  3261. .HasColumnType("varchar(512)")
  3262. .HasCharSet("utf8")
  3263. .HasCollation("utf8_general_ci");
  3264. entity.Property(e => e.Remark)
  3265. .HasColumnType("varchar(64)")
  3266. .HasCharSet("utf8")
  3267. .HasCollation("utf8_general_ci");
  3268. entity.Property(e => e.SeoDescription)
  3269. .HasColumnType("varchar(500)")
  3270. .HasCharSet("utf8")
  3271. .HasCollation("utf8_general_ci");
  3272. entity.Property(e => e.SeoKeyword)
  3273. .HasColumnType("varchar(200)")
  3274. .HasCharSet("utf8")
  3275. .HasCollation("utf8_general_ci");
  3276. entity.Property(e => e.SeoTitle)
  3277. .HasColumnType("varchar(100)")
  3278. .HasCharSet("utf8")
  3279. .HasCollation("utf8_general_ci");
  3280. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3281. entity.Property(e => e.Status).HasColumnType("int(11)");
  3282. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3283. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3284. entity.Property(e => e.UpdateMan)
  3285. .HasColumnType("varchar(50)")
  3286. .HasCharSet("utf8")
  3287. .HasCollation("utf8_general_ci");
  3288. entity.Property(e => e.Version).HasColumnType("int(11)");
  3289. });
  3290. modelBuilder.Entity<MsgPersonal>(entity =>
  3291. {
  3292. entity.Property(e => e.Id).HasColumnType("int(11)");
  3293. entity.Property(e => e.BgPic)
  3294. .HasColumnType("varchar(200)")
  3295. .HasCharSet("utf8")
  3296. .HasCollation("utf8_general_ci");
  3297. entity.Property(e => e.Content)
  3298. .HasColumnType("longtext")
  3299. .HasCharSet("utf8")
  3300. .HasCollation("utf8_general_ci");
  3301. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3302. entity.Property(e => e.CreateMan)
  3303. .HasColumnType("varchar(50)")
  3304. .HasCharSet("utf8")
  3305. .HasCollation("utf8_general_ci");
  3306. entity.Property(e => e.ExtendColumn)
  3307. .HasColumnType("mediumtext")
  3308. .HasCharSet("utf8")
  3309. .HasCollation("utf8_general_ci");
  3310. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3311. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3312. entity.Property(e => e.PushParam)
  3313. .HasColumnType("varchar(255)")
  3314. .HasCharSet("utf8")
  3315. .HasCollation("utf8_general_ci");
  3316. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3317. entity.Property(e => e.ReadFlag)
  3318. .HasColumnType("bit(1)")
  3319. .HasDefaultValueSql("b'0'");
  3320. entity.Property(e => e.Remark)
  3321. .HasColumnType("varchar(255)")
  3322. .HasCharSet("utf8")
  3323. .HasCollation("utf8_general_ci");
  3324. entity.Property(e => e.SeoDescription)
  3325. .HasColumnType("varchar(500)")
  3326. .HasCharSet("utf8")
  3327. .HasCollation("utf8_general_ci");
  3328. entity.Property(e => e.SeoKeyword)
  3329. .HasColumnType("varchar(200)")
  3330. .HasCharSet("utf8")
  3331. .HasCollation("utf8_general_ci");
  3332. entity.Property(e => e.SeoTitle)
  3333. .HasColumnType("varchar(100)")
  3334. .HasCharSet("utf8")
  3335. .HasCollation("utf8_general_ci");
  3336. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3337. entity.Property(e => e.Status).HasColumnType("int(11)");
  3338. entity.Property(e => e.Summary)
  3339. .HasColumnType("varchar(500)")
  3340. .HasCharSet("utf8")
  3341. .HasCollation("utf8_general_ci");
  3342. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3343. entity.Property(e => e.Title)
  3344. .HasColumnType("varchar(50)")
  3345. .HasCharSet("utf8")
  3346. .HasCollation("utf8_general_ci");
  3347. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3348. entity.Property(e => e.UpdateMan)
  3349. .HasColumnType("varchar(50)")
  3350. .HasCharSet("utf8")
  3351. .HasCollation("utf8_general_ci");
  3352. entity.Property(e => e.Url)
  3353. .HasColumnType("varchar(500)")
  3354. .HasCharSet("utf8")
  3355. .HasCollation("utf8_general_ci");
  3356. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3357. entity.Property(e => e.Version).HasColumnType("int(11)");
  3358. });
  3359. modelBuilder.Entity<MsgPlacard>(entity =>
  3360. {
  3361. entity.Property(e => e.Id).HasColumnType("int(11)");
  3362. entity.Property(e => e.BgPic)
  3363. .HasColumnType("varchar(200)")
  3364. .HasCharSet("utf8")
  3365. .HasCollation("utf8_general_ci");
  3366. entity.Property(e => e.Content)
  3367. .HasColumnType("longtext")
  3368. .HasCharSet("utf8")
  3369. .HasCollation("utf8_general_ci");
  3370. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3371. entity.Property(e => e.CreateMan)
  3372. .HasColumnType("varchar(50)")
  3373. .HasCharSet("utf8")
  3374. .HasCollation("utf8_general_ci");
  3375. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  3376. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  3377. entity.Property(e => e.ExtendColumn)
  3378. .HasColumnType("mediumtext")
  3379. .HasCharSet("utf8")
  3380. .HasCollation("utf8_general_ci");
  3381. entity.Property(e => e.IsTop)
  3382. .HasColumnType("bit(1)")
  3383. .HasDefaultValueSql("b'0'");
  3384. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3385. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3386. entity.Property(e => e.PushParam)
  3387. .HasColumnType("varchar(255)")
  3388. .HasCharSet("utf8")
  3389. .HasCollation("utf8_general_ci");
  3390. entity.Property(e => e.PushTime).HasColumnType("datetime");
  3391. entity.Property(e => e.PushType).HasColumnType("int(11)");
  3392. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3393. entity.Property(e => e.Remark)
  3394. .HasColumnType("varchar(255)")
  3395. .HasCharSet("utf8")
  3396. .HasCollation("utf8_general_ci");
  3397. entity.Property(e => e.SeoDescription)
  3398. .HasColumnType("varchar(500)")
  3399. .HasCharSet("utf8")
  3400. .HasCollation("utf8_general_ci");
  3401. entity.Property(e => e.SeoKeyword)
  3402. .HasColumnType("varchar(200)")
  3403. .HasCharSet("utf8")
  3404. .HasCollation("utf8_general_ci");
  3405. entity.Property(e => e.SeoTitle)
  3406. .HasColumnType("varchar(100)")
  3407. .HasCharSet("utf8")
  3408. .HasCollation("utf8_general_ci");
  3409. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  3410. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3411. entity.Property(e => e.Status).HasColumnType("int(11)");
  3412. entity.Property(e => e.Summary)
  3413. .HasColumnType("varchar(500)")
  3414. .HasCharSet("utf8")
  3415. .HasCollation("utf8_general_ci");
  3416. entity.Property(e => e.Title)
  3417. .HasColumnType("varchar(50)")
  3418. .HasCharSet("utf8")
  3419. .HasCollation("utf8_general_ci");
  3420. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3421. entity.Property(e => e.UpdateMan)
  3422. .HasColumnType("varchar(50)")
  3423. .HasCharSet("utf8")
  3424. .HasCollation("utf8_general_ci");
  3425. entity.Property(e => e.Url)
  3426. .HasColumnType("varchar(500)")
  3427. .HasCharSet("utf8")
  3428. .HasCollation("utf8_general_ci");
  3429. entity.Property(e => e.Version).HasColumnType("int(11)");
  3430. });
  3431. modelBuilder.Entity<MsgPlacardRead>(entity =>
  3432. {
  3433. entity.Property(e => e.Id).HasColumnType("int(11)");
  3434. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3435. entity.Property(e => e.CreateMan)
  3436. .HasColumnType("varchar(50)")
  3437. .HasCharSet("utf8")
  3438. .HasCollation("utf8_general_ci");
  3439. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  3440. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3441. entity.Property(e => e.ReadFlag)
  3442. .HasColumnType("bit(1)")
  3443. .HasDefaultValueSql("b'0'");
  3444. entity.Property(e => e.Remark)
  3445. .HasColumnType("varchar(255)")
  3446. .HasCharSet("utf8")
  3447. .HasCollation("utf8_general_ci");
  3448. entity.Property(e => e.SeoDescription)
  3449. .HasColumnType("varchar(500)")
  3450. .HasCharSet("utf8")
  3451. .HasCollation("utf8_general_ci");
  3452. entity.Property(e => e.SeoKeyword)
  3453. .HasColumnType("varchar(200)")
  3454. .HasCharSet("utf8")
  3455. .HasCollation("utf8_general_ci");
  3456. entity.Property(e => e.SeoTitle)
  3457. .HasColumnType("varchar(100)")
  3458. .HasCharSet("utf8")
  3459. .HasCollation("utf8_general_ci");
  3460. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3461. entity.Property(e => e.Status).HasColumnType("int(11)");
  3462. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3463. entity.Property(e => e.UpdateMan)
  3464. .HasColumnType("varchar(50)")
  3465. .HasCharSet("utf8")
  3466. .HasCollation("utf8_general_ci");
  3467. entity.Property(e => e.UserId)
  3468. .HasColumnType("varchar(64)")
  3469. .HasCharSet("utf8")
  3470. .HasCollation("utf8_general_ci");
  3471. entity.Property(e => e.Version).HasColumnType("int(11)");
  3472. });
  3473. modelBuilder.Entity<MsgPush>(entity =>
  3474. {
  3475. entity.Property(e => e.Id).HasColumnType("int(11)");
  3476. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  3477. entity.Property(e => e.ClientType)
  3478. .HasColumnType("varchar(20)")
  3479. .HasCharSet("utf8")
  3480. .HasCollation("utf8_general_ci");
  3481. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3482. entity.Property(e => e.CreateMan)
  3483. .HasColumnType("varchar(50)")
  3484. .HasCharSet("utf8")
  3485. .HasCollation("utf8_general_ci");
  3486. entity.Property(e => e.Details)
  3487. .HasColumnType("varchar(200)")
  3488. .HasCharSet("utf8")
  3489. .HasCollation("utf8_general_ci");
  3490. entity.Property(e => e.Devices)
  3491. .HasColumnType("mediumtext")
  3492. .HasCharSet("utf8")
  3493. .HasCollation("utf8_general_ci");
  3494. entity.Property(e => e.IsSilent)
  3495. .HasColumnType("bit(1)")
  3496. .HasDefaultValueSql("b'0'");
  3497. entity.Property(e => e.MessageId)
  3498. .HasColumnType("varchar(50)")
  3499. .HasCharSet("utf8")
  3500. .HasCollation("utf8_general_ci");
  3501. entity.Property(e => e.Mobiles)
  3502. .HasColumnType("mediumtext")
  3503. .HasCharSet("utf8")
  3504. .HasCollation("utf8_general_ci");
  3505. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3506. entity.Property(e => e.SeoDescription)
  3507. .HasColumnType("varchar(500)")
  3508. .HasCharSet("utf8")
  3509. .HasCollation("utf8_general_ci");
  3510. entity.Property(e => e.SeoKeyword)
  3511. .HasColumnType("varchar(200)")
  3512. .HasCharSet("utf8")
  3513. .HasCollation("utf8_general_ci");
  3514. entity.Property(e => e.SeoTitle)
  3515. .HasColumnType("varchar(100)")
  3516. .HasCharSet("utf8")
  3517. .HasCollation("utf8_general_ci");
  3518. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3519. entity.Property(e => e.Status).HasColumnType("int(11)");
  3520. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3521. entity.Property(e => e.Title)
  3522. .HasColumnType("varchar(50)")
  3523. .HasCharSet("utf8")
  3524. .HasCollation("utf8_general_ci");
  3525. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3526. entity.Property(e => e.UpdateMan)
  3527. .HasColumnType("varchar(50)")
  3528. .HasCharSet("utf8")
  3529. .HasCollation("utf8_general_ci");
  3530. entity.Property(e => e.Url)
  3531. .HasColumnType("varchar(500)")
  3532. .HasCharSet("utf8")
  3533. .HasCollation("utf8_general_ci");
  3534. entity.Property(e => e.Version).HasColumnType("int(11)");
  3535. });
  3536. modelBuilder.Entity<MsgSms>(entity =>
  3537. {
  3538. entity.Property(e => e.Id).HasColumnType("int(11)");
  3539. entity.Property(e => e.Code).HasColumnType("int(11)");
  3540. entity.Property(e => e.ColId)
  3541. .HasColumnType("varchar(30)")
  3542. .HasCharSet("utf8")
  3543. .HasCollation("utf8_general_ci");
  3544. entity.Property(e => e.Content)
  3545. .HasColumnType("varchar(200)")
  3546. .HasCharSet("utf8")
  3547. .HasCollation("utf8_general_ci");
  3548. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3549. entity.Property(e => e.CreateMan)
  3550. .HasColumnType("varchar(50)")
  3551. .HasCharSet("utf8")
  3552. .HasCollation("utf8_general_ci");
  3553. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  3554. entity.Property(e => e.Ip)
  3555. .HasColumnType("varchar(15)")
  3556. .HasCharSet("utf8")
  3557. .HasCollation("utf8_general_ci");
  3558. entity.Property(e => e.Kind)
  3559. .HasColumnType("varchar(64)")
  3560. .HasCharSet("utf8")
  3561. .HasCollation("utf8_general_ci");
  3562. entity.Property(e => e.Mobile)
  3563. .HasColumnType("varchar(11)")
  3564. .HasCharSet("utf8")
  3565. .HasCollation("utf8_general_ci");
  3566. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3567. entity.Property(e => e.RespCode)
  3568. .HasColumnType("varchar(16)")
  3569. .HasCharSet("utf8")
  3570. .HasCollation("utf8_general_ci");
  3571. entity.Property(e => e.RespContent)
  3572. .HasColumnType("varchar(500)")
  3573. .HasCharSet("utf8")
  3574. .HasCollation("utf8_general_ci");
  3575. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  3576. entity.Property(e => e.SendTime).HasColumnType("datetime");
  3577. entity.Property(e => e.SendType).HasColumnType("int(11)");
  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.SignName)
  3591. .HasColumnType("varchar(10)")
  3592. .HasCharSet("utf8")
  3593. .HasCollation("utf8_general_ci");
  3594. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3595. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3596. entity.Property(e => e.Status).HasColumnType("int(11)");
  3597. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3598. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3599. entity.Property(e => e.UpdateMan)
  3600. .HasColumnType("varchar(50)")
  3601. .HasCharSet("utf8")
  3602. .HasCollation("utf8_general_ci");
  3603. entity.Property(e => e.VerifyCode)
  3604. .HasColumnType("varchar(6)")
  3605. .HasCharSet("utf8")
  3606. .HasCollation("utf8_general_ci");
  3607. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  3608. entity.Property(e => e.Version).HasColumnType("int(11)");
  3609. });
  3610. modelBuilder.Entity<MsgSmsSet>(entity =>
  3611. {
  3612. entity.Property(e => e.Id).HasColumnType("int(11)");
  3613. entity.Property(e => e.AuthPwd)
  3614. .HasColumnType("varchar(50)")
  3615. .HasCharSet("utf8")
  3616. .HasCollation("utf8_general_ci");
  3617. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3618. entity.Property(e => e.CreateMan)
  3619. .HasColumnType("varchar(50)")
  3620. .HasCharSet("utf8")
  3621. .HasCollation("utf8_general_ci");
  3622. entity.Property(e => e.Name)
  3623. .HasColumnType("varchar(50)")
  3624. .HasCharSet("utf8")
  3625. .HasCollation("utf8_general_ci");
  3626. entity.Property(e => e.Params)
  3627. .HasColumnType("varchar(200)")
  3628. .HasCharSet("utf8")
  3629. .HasCollation("utf8_general_ci");
  3630. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3631. entity.Property(e => e.ReqUrl)
  3632. .HasColumnType("varchar(200)")
  3633. .HasCharSet("utf8")
  3634. .HasCollation("utf8_general_ci");
  3635. entity.Property(e => e.SeoDescription)
  3636. .HasColumnType("varchar(500)")
  3637. .HasCharSet("utf8")
  3638. .HasCollation("utf8_general_ci");
  3639. entity.Property(e => e.SeoKeyword)
  3640. .HasColumnType("varchar(200)")
  3641. .HasCharSet("utf8")
  3642. .HasCollation("utf8_general_ci");
  3643. entity.Property(e => e.SeoTitle)
  3644. .HasColumnType("varchar(100)")
  3645. .HasCharSet("utf8")
  3646. .HasCollation("utf8_general_ci");
  3647. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3648. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3649. entity.Property(e => e.Status).HasColumnType("int(11)");
  3650. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3651. entity.Property(e => e.UpdateMan)
  3652. .HasColumnType("varchar(50)")
  3653. .HasCharSet("utf8")
  3654. .HasCollation("utf8_general_ci");
  3655. entity.Property(e => e.UserName)
  3656. .HasColumnType("varchar(50)")
  3657. .HasCharSet("utf8")
  3658. .HasCollation("utf8_general_ci");
  3659. entity.Property(e => e.Version).HasColumnType("int(11)");
  3660. });
  3661. modelBuilder.Entity<MsgTemplate>(entity =>
  3662. {
  3663. entity.Property(e => e.Id).HasColumnType("int(11)");
  3664. entity.Property(e => e.ColId)
  3665. .HasColumnType("varchar(30)")
  3666. .HasCharSet("utf8")
  3667. .HasCollation("utf8_general_ci");
  3668. entity.Property(e => e.Content)
  3669. .HasColumnType("varchar(200)")
  3670. .HasCharSet("utf8")
  3671. .HasCollation("utf8_general_ci");
  3672. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3673. entity.Property(e => e.CreateMan)
  3674. .HasColumnType("varchar(50)")
  3675. .HasCharSet("utf8")
  3676. .HasCollation("utf8_general_ci");
  3677. entity.Property(e => e.Extend)
  3678. .HasColumnType("varchar(2000)")
  3679. .HasCharSet("utf8")
  3680. .HasCollation("utf8_general_ci");
  3681. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3682. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3683. entity.Property(e => e.Remark)
  3684. .HasColumnType("varchar(64)")
  3685. .HasCharSet("utf8")
  3686. .HasCollation("utf8_general_ci");
  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.SignName)
  3700. .HasColumnType("varchar(10)")
  3701. .HasCharSet("utf8")
  3702. .HasCollation("utf8_general_ci");
  3703. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3704. entity.Property(e => e.Status).HasColumnType("int(11)");
  3705. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  3706. entity.Property(e => e.Title)
  3707. .HasColumnType("varchar(50)")
  3708. .HasCharSet("utf8")
  3709. .HasCollation("utf8_general_ci");
  3710. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3711. entity.Property(e => e.UpdateMan)
  3712. .HasColumnType("varchar(50)")
  3713. .HasCharSet("utf8")
  3714. .HasCollation("utf8_general_ci");
  3715. entity.Property(e => e.Version).HasColumnType("int(11)");
  3716. });
  3717. modelBuilder.Entity<OpenBankCityTable>(entity =>
  3718. {
  3719. entity.HasKey(e => e.CityName)
  3720. .HasName("PRIMARY");
  3721. entity.Property(e => e.CityName)
  3722. .HasColumnType("varchar(100)")
  3723. .HasCharSet("utf8")
  3724. .HasCollation("utf8_general_ci");
  3725. entity.Property(e => e.Code)
  3726. .HasColumnType("varchar(20)")
  3727. .HasCharSet("utf8")
  3728. .HasCollation("utf8_general_ci");
  3729. });
  3730. modelBuilder.Entity<OpenBankTable>(entity =>
  3731. {
  3732. entity.HasKey(e => e.BankName)
  3733. .HasName("PRIMARY");
  3734. entity.Property(e => e.BankName)
  3735. .HasColumnType("varchar(200)")
  3736. .HasCharSet("utf8")
  3737. .HasCollation("utf8_general_ci");
  3738. entity.Property(e => e.BankCode)
  3739. .HasColumnType("varchar(50)")
  3740. .HasCharSet("utf8")
  3741. .HasCollation("utf8_general_ci");
  3742. });
  3743. modelBuilder.Entity<OpenReward>(entity =>
  3744. {
  3745. entity.Property(e => e.Id).HasColumnType("int(11)");
  3746. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3747. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3748. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3749. entity.Property(e => e.CreateMan)
  3750. .HasColumnType("varchar(50)")
  3751. .HasCharSet("utf8")
  3752. .HasCollation("utf8_general_ci");
  3753. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3754. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3755. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3756. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3757. entity.Property(e => e.OpenRewardNo)
  3758. .HasColumnType("varchar(32)")
  3759. .HasCharSet("utf8")
  3760. .HasCollation("utf8_general_ci");
  3761. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3762. entity.Property(e => e.Remark)
  3763. .HasColumnType("varchar(128)")
  3764. .HasCharSet("utf8")
  3765. .HasCollation("utf8_general_ci");
  3766. entity.Property(e => e.RewardDesc)
  3767. .HasColumnType("varchar(128)")
  3768. .HasCharSet("utf8")
  3769. .HasCollation("utf8_general_ci");
  3770. entity.Property(e => e.RewardMerCount).HasColumnType("int(11)");
  3771. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3772. entity.Property(e => e.SeoDescription)
  3773. .HasColumnType("varchar(500)")
  3774. .HasCharSet("utf8")
  3775. .HasCollation("utf8_general_ci");
  3776. entity.Property(e => e.SeoKeyword)
  3777. .HasColumnType("varchar(200)")
  3778. .HasCharSet("utf8")
  3779. .HasCollation("utf8_general_ci");
  3780. entity.Property(e => e.SeoTitle)
  3781. .HasColumnType("varchar(100)")
  3782. .HasCharSet("utf8")
  3783. .HasCollation("utf8_general_ci");
  3784. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3785. entity.Property(e => e.Status).HasColumnType("int(11)");
  3786. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3787. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3788. entity.Property(e => e.TradeMonth)
  3789. .HasColumnType("varchar(6)")
  3790. .HasCharSet("utf8")
  3791. .HasCollation("utf8_general_ci");
  3792. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3793. entity.Property(e => e.UpdateMan)
  3794. .HasColumnType("varchar(50)")
  3795. .HasCharSet("utf8")
  3796. .HasCollation("utf8_general_ci");
  3797. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3798. entity.Property(e => e.Version).HasColumnType("int(11)");
  3799. });
  3800. modelBuilder.Entity<OpenRewardDetail>(entity =>
  3801. {
  3802. entity.Property(e => e.Id).HasColumnType("int(11)");
  3803. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3804. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3805. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3806. entity.Property(e => e.CreateMan)
  3807. .HasColumnType("varchar(50)")
  3808. .HasCharSet("utf8")
  3809. .HasCollation("utf8_general_ci");
  3810. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3811. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3812. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3813. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3814. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3815. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  3816. entity.Property(e => e.MerNo)
  3817. .HasColumnType("varchar(32)")
  3818. .HasCharSet("utf8")
  3819. .HasCollation("utf8_general_ci");
  3820. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3821. entity.Property(e => e.OpenDetailRec)
  3822. .HasColumnType("varchar(32)")
  3823. .HasCharSet("utf8")
  3824. .HasCollation("utf8_general_ci");
  3825. entity.Property(e => e.OpenRewardNo)
  3826. .HasColumnType("varchar(32)")
  3827. .HasCharSet("utf8")
  3828. .HasCollation("utf8_general_ci");
  3829. entity.Property(e => e.ProductName)
  3830. .HasColumnType("varchar(32)")
  3831. .HasCharSet("utf8")
  3832. .HasCollation("utf8_general_ci");
  3833. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3834. entity.Property(e => e.Remark)
  3835. .HasColumnType("varchar(128)")
  3836. .HasCharSet("utf8")
  3837. .HasCollation("utf8_general_ci");
  3838. entity.Property(e => e.RewardDesc)
  3839. .HasColumnType("varchar(128)")
  3840. .HasCharSet("utf8")
  3841. .HasCollation("utf8_general_ci");
  3842. entity.Property(e => e.RewardTips)
  3843. .HasColumnType("varchar(16)")
  3844. .HasCharSet("utf8")
  3845. .HasCollation("utf8_general_ci");
  3846. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3847. entity.Property(e => e.SeoDescription)
  3848. .HasColumnType("varchar(500)")
  3849. .HasCharSet("utf8")
  3850. .HasCollation("utf8_general_ci");
  3851. entity.Property(e => e.SeoKeyword)
  3852. .HasColumnType("varchar(200)")
  3853. .HasCharSet("utf8")
  3854. .HasCollation("utf8_general_ci");
  3855. entity.Property(e => e.SeoTitle)
  3856. .HasColumnType("varchar(100)")
  3857. .HasCharSet("utf8")
  3858. .HasCollation("utf8_general_ci");
  3859. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3860. entity.Property(e => e.SnNo)
  3861. .HasColumnType("varchar(32)")
  3862. .HasCharSet("utf8")
  3863. .HasCollation("utf8_general_ci");
  3864. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3865. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3866. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3867. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3868. entity.Property(e => e.Status).HasColumnType("int(11)");
  3869. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3870. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3871. entity.Property(e => e.TradeMonth)
  3872. .HasColumnType("varchar(6)")
  3873. .HasCharSet("utf8")
  3874. .HasCollation("utf8_general_ci");
  3875. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3876. entity.Property(e => e.UpdateMan)
  3877. .HasColumnType("varchar(50)")
  3878. .HasCharSet("utf8")
  3879. .HasCollation("utf8_general_ci");
  3880. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3881. entity.Property(e => e.Version).HasColumnType("int(11)");
  3882. });
  3883. modelBuilder.Entity<OpenSnSnapshot>(entity =>
  3884. {
  3885. entity.Property(e => e.Id).HasColumnType("int(11)");
  3886. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3887. entity.Property(e => e.BuySnNum).HasColumnType("int(11)");
  3888. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3889. entity.Property(e => e.CreateMan)
  3890. .HasColumnType("varchar(50)")
  3891. .HasCharSet("utf8")
  3892. .HasCollation("utf8_general_ci");
  3893. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3894. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3895. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3896. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3897. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3898. entity.Property(e => e.FailReason)
  3899. .HasColumnType("varchar(128)")
  3900. .HasCharSet("utf8")
  3901. .HasCollation("utf8_general_ci");
  3902. entity.Property(e => e.MerNo)
  3903. .HasColumnType("varchar(32)")
  3904. .HasCharSet("utf8")
  3905. .HasCollation("utf8_general_ci");
  3906. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  3907. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3908. entity.Property(e => e.OpenDetailRec)
  3909. .HasColumnType("varchar(32)")
  3910. .HasCharSet("utf8")
  3911. .HasCollation("utf8_general_ci");
  3912. entity.Property(e => e.OpenRewardNo)
  3913. .HasColumnType("varchar(32)")
  3914. .HasCharSet("utf8")
  3915. .HasCollation("utf8_general_ci");
  3916. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3917. entity.Property(e => e.Remark)
  3918. .HasColumnType("varchar(128)")
  3919. .HasCharSet("utf8")
  3920. .HasCollation("utf8_general_ci");
  3921. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  3922. entity.Property(e => e.RewardDesc)
  3923. .HasColumnType("varchar(128)")
  3924. .HasCharSet("utf8")
  3925. .HasCollation("utf8_general_ci");
  3926. entity.Property(e => e.RewardTips)
  3927. .HasColumnType("varchar(16)")
  3928. .HasCharSet("utf8")
  3929. .HasCollation("utf8_general_ci");
  3930. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3931. entity.Property(e => e.SeoDescription)
  3932. .HasColumnType("varchar(500)")
  3933. .HasCharSet("utf8")
  3934. .HasCollation("utf8_general_ci");
  3935. entity.Property(e => e.SeoKeyword)
  3936. .HasColumnType("varchar(200)")
  3937. .HasCharSet("utf8")
  3938. .HasCollation("utf8_general_ci");
  3939. entity.Property(e => e.SeoTitle)
  3940. .HasColumnType("varchar(100)")
  3941. .HasCharSet("utf8")
  3942. .HasCollation("utf8_general_ci");
  3943. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3944. entity.Property(e => e.SnNo)
  3945. .HasColumnType("varchar(32)")
  3946. .HasCharSet("utf8")
  3947. .HasCollation("utf8_general_ci");
  3948. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3949. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3950. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3951. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3952. entity.Property(e => e.Status).HasColumnType("int(11)");
  3953. entity.Property(e => e.StdBuySnNum).HasColumnType("int(11)");
  3954. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3955. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3956. entity.Property(e => e.TradeMonth)
  3957. .HasColumnType("varchar(6)")
  3958. .HasCharSet("utf8")
  3959. .HasCollation("utf8_general_ci");
  3960. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3961. entity.Property(e => e.UpdateMan)
  3962. .HasColumnType("varchar(50)")
  3963. .HasCharSet("utf8")
  3964. .HasCollation("utf8_general_ci");
  3965. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3966. entity.Property(e => e.UserNav)
  3967. .HasColumnType("varchar(300)")
  3968. .HasCharSet("utf8")
  3969. .HasCollation("utf8_general_ci");
  3970. entity.Property(e => e.Version).HasColumnType("int(11)");
  3971. });
  3972. modelBuilder.Entity<OperateLog>(entity =>
  3973. {
  3974. entity.Property(e => e.Id).HasColumnType("int(11)");
  3975. entity.Property(e => e.AfterOperate)
  3976. .HasColumnType("mediumtext")
  3977. .HasCharSet("utf8")
  3978. .HasCollation("utf8_general_ci");
  3979. entity.Property(e => e.BeforeOperate)
  3980. .HasColumnType("mediumtext")
  3981. .HasCharSet("utf8")
  3982. .HasCollation("utf8_general_ci");
  3983. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3984. entity.Property(e => e.CreateMan)
  3985. .HasColumnType("varchar(50)")
  3986. .HasCharSet("utf8")
  3987. .HasCollation("utf8_general_ci");
  3988. entity.Property(e => e.OpMode)
  3989. .HasColumnType("varchar(30)")
  3990. .HasCharSet("utf8")
  3991. .HasCollation("utf8_general_ci");
  3992. entity.Property(e => e.OperateMan)
  3993. .HasColumnType("varchar(50)")
  3994. .HasCharSet("utf8")
  3995. .HasCollation("utf8_general_ci");
  3996. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3997. entity.Property(e => e.SeoDescription)
  3998. .HasColumnType("varchar(500)")
  3999. .HasCharSet("utf8")
  4000. .HasCollation("utf8_general_ci");
  4001. entity.Property(e => e.SeoKeyword)
  4002. .HasColumnType("varchar(200)")
  4003. .HasCharSet("utf8")
  4004. .HasCollation("utf8_general_ci");
  4005. entity.Property(e => e.SeoTitle)
  4006. .HasColumnType("varchar(100)")
  4007. .HasCharSet("utf8")
  4008. .HasCollation("utf8_general_ci");
  4009. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4010. entity.Property(e => e.Status).HasColumnType("int(11)");
  4011. entity.Property(e => e.TableEnName)
  4012. .HasColumnType("varchar(50)")
  4013. .HasCharSet("utf8")
  4014. .HasCollation("utf8_general_ci");
  4015. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4016. entity.Property(e => e.UpdateMan)
  4017. .HasColumnType("varchar(50)")
  4018. .HasCharSet("utf8")
  4019. .HasCollation("utf8_general_ci");
  4020. entity.Property(e => e.Version).HasColumnType("int(11)");
  4021. });
  4022. modelBuilder.Entity<OperateRightList>(entity =>
  4023. {
  4024. entity.Property(e => e.Id).HasColumnType("int(11)");
  4025. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4026. entity.Property(e => e.CreateMan)
  4027. .HasColumnType("varchar(50)")
  4028. .HasCharSet("utf8")
  4029. .HasCollation("utf8_general_ci");
  4030. entity.Property(e => e.EnName)
  4031. .HasColumnType("varchar(50)")
  4032. .HasCharSet("utf8")
  4033. .HasCollation("utf8_general_ci");
  4034. entity.Property(e => e.Name)
  4035. .HasColumnType("varchar(50)")
  4036. .HasCharSet("utf8")
  4037. .HasCollation("utf8_general_ci");
  4038. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4039. entity.Property(e => e.SeoDescription)
  4040. .HasColumnType("varchar(500)")
  4041. .HasCharSet("utf8")
  4042. .HasCollation("utf8_general_ci");
  4043. entity.Property(e => e.SeoKeyword)
  4044. .HasColumnType("varchar(200)")
  4045. .HasCharSet("utf8")
  4046. .HasCollation("utf8_general_ci");
  4047. entity.Property(e => e.SeoTitle)
  4048. .HasColumnType("varchar(100)")
  4049. .HasCharSet("utf8")
  4050. .HasCollation("utf8_general_ci");
  4051. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4052. entity.Property(e => e.Status).HasColumnType("int(11)");
  4053. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4054. entity.Property(e => e.UpdateMan)
  4055. .HasColumnType("varchar(50)")
  4056. .HasCharSet("utf8")
  4057. .HasCollation("utf8_general_ci");
  4058. entity.Property(e => e.Version).HasColumnType("int(11)");
  4059. });
  4060. modelBuilder.Entity<OrderForNo>(entity =>
  4061. {
  4062. entity.HasKey(e => e.OrderNo)
  4063. .HasName("PRIMARY");
  4064. entity.Property(e => e.OrderNo)
  4065. .HasColumnType("varchar(50)")
  4066. .HasCharSet("utf8")
  4067. .HasCollation("utf8_general_ci");
  4068. entity.Property(e => e.OrderIds)
  4069. .HasColumnType("varchar(50)")
  4070. .HasCharSet("utf8")
  4071. .HasCollation("utf8_general_ci");
  4072. entity.Property(e => e.RspCode).HasColumnType("int(11)");
  4073. entity.Property(e => e.RspMsg)
  4074. .HasColumnType("varchar(500)")
  4075. .HasCharSet("utf8")
  4076. .HasCollation("utf8_general_ci");
  4077. });
  4078. modelBuilder.Entity<OrderProduct>(entity =>
  4079. {
  4080. entity.Property(e => e.Id).HasColumnType("int(11)");
  4081. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4082. entity.Property(e => e.CreateMan)
  4083. .HasColumnType("varchar(50)")
  4084. .HasCharSet("utf8")
  4085. .HasCollation("utf8_general_ci");
  4086. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4087. entity.Property(e => e.NormDetail)
  4088. .HasColumnType("varchar(200)")
  4089. .HasCharSet("utf8")
  4090. .HasCollation("utf8_general_ci");
  4091. entity.Property(e => e.NormId)
  4092. .HasColumnType("varchar(50)")
  4093. .HasCharSet("utf8")
  4094. .HasCollation("utf8_general_ci");
  4095. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4096. entity.Property(e => e.ProductCode)
  4097. .HasColumnType("varchar(30)")
  4098. .HasCharSet("utf8")
  4099. .HasCollation("utf8_general_ci");
  4100. entity.Property(e => e.ProductCount).HasColumnType("int(11)");
  4101. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4102. entity.Property(e => e.ProductIntegral).HasColumnType("decimal(18,2)");
  4103. entity.Property(e => e.ProductName)
  4104. .HasColumnType("varchar(100)")
  4105. .HasCharSet("utf8")
  4106. .HasCollation("utf8_general_ci");
  4107. entity.Property(e => e.ProductPhoto)
  4108. .HasColumnType("varchar(200)")
  4109. .HasCharSet("utf8")
  4110. .HasCollation("utf8_general_ci");
  4111. entity.Property(e => e.ProductPrice).HasColumnType("decimal(18,2)");
  4112. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4113. entity.Property(e => e.SeoDescription)
  4114. .HasColumnType("varchar(500)")
  4115. .HasCharSet("utf8")
  4116. .HasCollation("utf8_general_ci");
  4117. entity.Property(e => e.SeoKeyword)
  4118. .HasColumnType("varchar(200)")
  4119. .HasCharSet("utf8")
  4120. .HasCollation("utf8_general_ci");
  4121. entity.Property(e => e.SeoTitle)
  4122. .HasColumnType("varchar(100)")
  4123. .HasCharSet("utf8")
  4124. .HasCollation("utf8_general_ci");
  4125. entity.Property(e => e.SnNos)
  4126. .HasColumnType("mediumtext")
  4127. .HasCharSet("utf8")
  4128. .HasCollation("utf8_general_ci");
  4129. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4130. entity.Property(e => e.Status).HasColumnType("int(11)");
  4131. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4132. entity.Property(e => e.TotalIntegral).HasColumnType("decimal(18,2)");
  4133. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4134. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4135. entity.Property(e => e.UpdateMan)
  4136. .HasColumnType("varchar(50)")
  4137. .HasCharSet("utf8")
  4138. .HasCollation("utf8_general_ci");
  4139. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4140. entity.Property(e => e.Version).HasColumnType("int(11)");
  4141. });
  4142. modelBuilder.Entity<OrderRefund>(entity =>
  4143. {
  4144. entity.Property(e => e.Id).HasColumnType("int(11)");
  4145. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  4146. entity.Property(e => e.Contents)
  4147. .HasColumnType("longtext")
  4148. .HasCharSet("utf8")
  4149. .HasCollation("utf8_general_ci");
  4150. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4151. entity.Property(e => e.CreateMan)
  4152. .HasColumnType("varchar(50)")
  4153. .HasCharSet("utf8")
  4154. .HasCollation("utf8_general_ci");
  4155. entity.Property(e => e.ErpCode)
  4156. .HasColumnType("varchar(50)")
  4157. .HasCharSet("utf8")
  4158. .HasCollation("utf8_general_ci");
  4159. entity.Property(e => e.ErpCompany).HasColumnType("int(11)");
  4160. entity.Property(e => e.GoodStatus).HasColumnType("int(11)");
  4161. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4162. entity.Property(e => e.Mobile)
  4163. .HasColumnType("varchar(11)")
  4164. .HasCharSet("utf8")
  4165. .HasCollation("utf8_general_ci");
  4166. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4167. entity.Property(e => e.Photos)
  4168. .HasColumnType("varchar(500)")
  4169. .HasCharSet("utf8")
  4170. .HasCollation("utf8_general_ci");
  4171. entity.Property(e => e.ProductId)
  4172. .HasColumnType("varchar(50)")
  4173. .HasCharSet("utf8")
  4174. .HasCollation("utf8_general_ci");
  4175. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4176. entity.Property(e => e.Reason).HasColumnType("int(11)");
  4177. entity.Property(e => e.SeoDescription)
  4178. .HasColumnType("varchar(500)")
  4179. .HasCharSet("utf8")
  4180. .HasCollation("utf8_general_ci");
  4181. entity.Property(e => e.SeoKeyword)
  4182. .HasColumnType("varchar(200)")
  4183. .HasCharSet("utf8")
  4184. .HasCollation("utf8_general_ci");
  4185. entity.Property(e => e.SeoTitle)
  4186. .HasColumnType("varchar(100)")
  4187. .HasCharSet("utf8")
  4188. .HasCollation("utf8_general_ci");
  4189. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4190. entity.Property(e => e.Status).HasColumnType("int(11)");
  4191. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4192. entity.Property(e => e.UpdateMan)
  4193. .HasColumnType("varchar(50)")
  4194. .HasCharSet("utf8")
  4195. .HasCollation("utf8_general_ci");
  4196. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4197. entity.Property(e => e.Version).HasColumnType("int(11)");
  4198. });
  4199. modelBuilder.Entity<OrderRefundReason>(entity =>
  4200. {
  4201. entity.Property(e => e.Id).HasColumnType("int(11)");
  4202. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4203. entity.Property(e => e.CreateMan)
  4204. .HasColumnType("varchar(50)")
  4205. .HasCharSet("utf8")
  4206. .HasCollation("utf8_general_ci");
  4207. entity.Property(e => e.Name)
  4208. .HasColumnType("varchar(50)")
  4209. .HasCharSet("utf8")
  4210. .HasCollation("utf8_general_ci");
  4211. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4212. entity.Property(e => e.SeoDescription)
  4213. .HasColumnType("varchar(500)")
  4214. .HasCharSet("utf8")
  4215. .HasCollation("utf8_general_ci");
  4216. entity.Property(e => e.SeoKeyword)
  4217. .HasColumnType("varchar(200)")
  4218. .HasCharSet("utf8")
  4219. .HasCollation("utf8_general_ci");
  4220. entity.Property(e => e.SeoTitle)
  4221. .HasColumnType("varchar(100)")
  4222. .HasCharSet("utf8")
  4223. .HasCollation("utf8_general_ci");
  4224. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4225. entity.Property(e => e.Status).HasColumnType("int(11)");
  4226. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4227. entity.Property(e => e.UpdateMan)
  4228. .HasColumnType("varchar(50)")
  4229. .HasCharSet("utf8")
  4230. .HasCollation("utf8_general_ci");
  4231. entity.Property(e => e.Version).HasColumnType("int(11)");
  4232. });
  4233. modelBuilder.Entity<Orders>(entity =>
  4234. {
  4235. entity.Property(e => e.Id).HasColumnType("int(11)");
  4236. entity.Property(e => e.ActualPay).HasColumnType("decimal(18,2)");
  4237. entity.Property(e => e.Address)
  4238. .HasColumnType("varchar(50)")
  4239. .HasCharSet("utf8")
  4240. .HasCollation("utf8_general_ci");
  4241. entity.Property(e => e.Areas)
  4242. .HasColumnType("varchar(30)")
  4243. .HasCharSet("utf8")
  4244. .HasCollation("utf8_general_ci");
  4245. entity.Property(e => e.AutoConfirmDate).HasColumnType("datetime");
  4246. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4247. entity.Property(e => e.ChannelAmount).HasColumnType("decimal(18,2)");
  4248. entity.Property(e => e.ConfirmDate).HasColumnType("datetime");
  4249. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  4250. entity.Property(e => e.CouponMoney).HasColumnType("decimal(18,2)");
  4251. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4252. entity.Property(e => e.CreateMan)
  4253. .HasColumnType("varchar(50)")
  4254. .HasCharSet("utf8")
  4255. .HasCollation("utf8_general_ci");
  4256. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  4257. entity.Property(e => e.ErpCode)
  4258. .HasColumnType("varchar(50)")
  4259. .HasCharSet("utf8")
  4260. .HasCollation("utf8_general_ci");
  4261. entity.Property(e => e.ErpMode).HasColumnType("int(11)");
  4262. entity.Property(e => e.ErpName)
  4263. .HasColumnType("varchar(50)")
  4264. .HasCharSet("utf8")
  4265. .HasCollation("utf8_general_ci");
  4266. entity.Property(e => e.ErpPrice).HasColumnType("decimal(18,2)");
  4267. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4268. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4269. entity.Property(e => e.Mobile)
  4270. .HasColumnType("varchar(11)")
  4271. .HasCharSet("utf8")
  4272. .HasCollation("utf8_general_ci");
  4273. entity.Property(e => e.OrderNo)
  4274. .HasColumnType("varchar(30)")
  4275. .HasCharSet("utf8")
  4276. .HasCollation("utf8_general_ci");
  4277. entity.Property(e => e.PayDate).HasColumnType("datetime");
  4278. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  4279. entity.Property(e => e.PayStatus).HasColumnType("int(11)");
  4280. entity.Property(e => e.PostalCode)
  4281. .HasColumnType("varchar(6)")
  4282. .HasCharSet("utf8")
  4283. .HasCollation("utf8_general_ci");
  4284. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4285. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4286. entity.Property(e => e.RealName)
  4287. .HasColumnType("varchar(10)")
  4288. .HasCharSet("utf8")
  4289. .HasCollation("utf8_general_ci");
  4290. entity.Property(e => e.RefundActAmount).HasColumnType("decimal(18,2)");
  4291. entity.Property(e => e.RefundFeeAmount).HasColumnType("decimal(18,2)");
  4292. entity.Property(e => e.RefundReason)
  4293. .HasColumnType("varchar(64)")
  4294. .HasCharSet("utf8")
  4295. .HasCollation("utf8_general_ci");
  4296. entity.Property(e => e.RefundStatus).HasColumnType("int(11)");
  4297. entity.Property(e => e.Remark)
  4298. .HasColumnType("varchar(64)")
  4299. .HasCharSet("utf8")
  4300. .HasCollation("utf8_general_ci");
  4301. entity.Property(e => e.ReqData)
  4302. .HasColumnType("varchar(2048)")
  4303. .HasCharSet("utf8")
  4304. .HasCollation("utf8_general_ci");
  4305. entity.Property(e => e.ResData)
  4306. .HasColumnType("varchar(2048)")
  4307. .HasCharSet("utf8")
  4308. .HasCollation("utf8_general_ci");
  4309. entity.Property(e => e.ReturnCode)
  4310. .HasColumnType("varchar(32)")
  4311. .HasCharSet("utf8")
  4312. .HasCollation("utf8_general_ci");
  4313. entity.Property(e => e.ReturnMsg)
  4314. .HasColumnType("varchar(128)")
  4315. .HasCharSet("utf8")
  4316. .HasCollation("utf8_general_ci");
  4317. entity.Property(e => e.SendDate).HasColumnType("datetime");
  4318. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  4319. entity.Property(e => e.SeoDescription)
  4320. .HasColumnType("varchar(500)")
  4321. .HasCharSet("utf8")
  4322. .HasCollation("utf8_general_ci");
  4323. entity.Property(e => e.SeoKeyword)
  4324. .HasColumnType("varchar(200)")
  4325. .HasCharSet("utf8")
  4326. .HasCollation("utf8_general_ci");
  4327. entity.Property(e => e.SeoTitle)
  4328. .HasColumnType("varchar(100)")
  4329. .HasCharSet("utf8")
  4330. .HasCollation("utf8_general_ci");
  4331. entity.Property(e => e.SnNos)
  4332. .HasColumnType("mediumtext")
  4333. .HasCharSet("utf8")
  4334. .HasCollation("utf8_general_ci");
  4335. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4336. entity.Property(e => e.Status).HasColumnType("int(11)");
  4337. entity.Property(e => e.StoreContact)
  4338. .HasColumnType("varchar(30)")
  4339. .HasCharSet("utf8")
  4340. .HasCollation("utf8_general_ci");
  4341. entity.Property(e => e.StoreContactMobile)
  4342. .HasColumnType("varchar(11)")
  4343. .HasCharSet("utf8")
  4344. .HasCollation("utf8_general_ci");
  4345. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4346. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  4347. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  4348. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4349. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4350. entity.Property(e => e.TradeNo)
  4351. .HasColumnType("varchar(50)")
  4352. .HasCharSet("utf8")
  4353. .HasCollation("utf8_general_ci");
  4354. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4355. entity.Property(e => e.UpdateMan)
  4356. .HasColumnType("varchar(50)")
  4357. .HasCharSet("utf8")
  4358. .HasCollation("utf8_general_ci");
  4359. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4360. entity.Property(e => e.UserMessage)
  4361. .HasColumnType("varchar(50)")
  4362. .HasCharSet("utf8")
  4363. .HasCollation("utf8_general_ci");
  4364. entity.Property(e => e.Version).HasColumnType("int(11)");
  4365. });
  4366. modelBuilder.Entity<PageInfo>(entity =>
  4367. {
  4368. entity.Property(e => e.Id).HasColumnType("int(11)");
  4369. entity.Property(e => e.ColId)
  4370. .HasColumnType("varchar(30)")
  4371. .HasCharSet("utf8")
  4372. .HasCollation("utf8_general_ci");
  4373. entity.Property(e => e.Contents)
  4374. .HasColumnType("longtext")
  4375. .HasCharSet("utf8")
  4376. .HasCollation("utf8_general_ci");
  4377. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4378. entity.Property(e => e.CreateMan)
  4379. .HasColumnType("varchar(50)")
  4380. .HasCharSet("utf8")
  4381. .HasCollation("utf8_general_ci");
  4382. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4383. entity.Property(e => e.SeoDescription)
  4384. .HasColumnType("varchar(500)")
  4385. .HasCharSet("utf8")
  4386. .HasCollation("utf8_general_ci");
  4387. entity.Property(e => e.SeoKeyword)
  4388. .HasColumnType("varchar(200)")
  4389. .HasCharSet("utf8")
  4390. .HasCollation("utf8_general_ci");
  4391. entity.Property(e => e.SeoTitle)
  4392. .HasColumnType("varchar(100)")
  4393. .HasCharSet("utf8")
  4394. .HasCollation("utf8_general_ci");
  4395. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4396. entity.Property(e => e.Status).HasColumnType("int(11)");
  4397. entity.Property(e => e.Title)
  4398. .HasColumnType("varchar(200)")
  4399. .HasCharSet("utf8")
  4400. .HasCollation("utf8_general_ci");
  4401. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4402. entity.Property(e => e.UpdateMan)
  4403. .HasColumnType("varchar(50)")
  4404. .HasCharSet("utf8")
  4405. .HasCollation("utf8_general_ci");
  4406. entity.Property(e => e.Version).HasColumnType("int(11)");
  4407. });
  4408. modelBuilder.Entity<PageUpdateInfo>(entity =>
  4409. {
  4410. entity.Property(e => e.Id).HasColumnType("int(11)");
  4411. entity.Property(e => e.BgColor)
  4412. .HasColumnType("varchar(6)")
  4413. .HasCharSet("utf8")
  4414. .HasCollation("utf8_general_ci");
  4415. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4416. entity.Property(e => e.CreateMan)
  4417. .HasColumnType("varchar(50)")
  4418. .HasCharSet("utf8")
  4419. .HasCollation("utf8_general_ci");
  4420. entity.Property(e => e.GotoPages)
  4421. .HasColumnType("varchar(500)")
  4422. .HasCharSet("utf8")
  4423. .HasCollation("utf8_general_ci");
  4424. entity.Property(e => e.IsScrollBar)
  4425. .HasColumnType("bit(1)")
  4426. .HasDefaultValueSql("b'0'");
  4427. entity.Property(e => e.IsSkid)
  4428. .HasColumnType("bit(1)")
  4429. .HasDefaultValueSql("b'0'");
  4430. entity.Property(e => e.LeftAction1)
  4431. .HasColumnType("longtext")
  4432. .HasCharSet("utf8")
  4433. .HasCollation("utf8_general_ci");
  4434. entity.Property(e => e.LeftAction2)
  4435. .HasColumnType("longtext")
  4436. .HasCharSet("utf8")
  4437. .HasCollation("utf8_general_ci");
  4438. entity.Property(e => e.LeftBtn1)
  4439. .HasColumnType("varchar(100)")
  4440. .HasCharSet("utf8")
  4441. .HasCollation("utf8_general_ci");
  4442. entity.Property(e => e.LeftBtn2)
  4443. .HasColumnType("varchar(50)")
  4444. .HasCharSet("utf8")
  4445. .HasCollation("utf8_general_ci");
  4446. entity.Property(e => e.ModulePath)
  4447. .HasColumnType("varchar(200)")
  4448. .HasCharSet("utf8")
  4449. .HasCollation("utf8_general_ci");
  4450. entity.Property(e => e.ModuleVersion).HasColumnType("int(11)");
  4451. entity.Property(e => e.MustUpdate)
  4452. .HasColumnType("bit(1)")
  4453. .HasDefaultValueSql("b'0'");
  4454. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4455. entity.Property(e => e.RightAction1)
  4456. .HasColumnType("longtext")
  4457. .HasCharSet("utf8")
  4458. .HasCollation("utf8_general_ci");
  4459. entity.Property(e => e.RightAction2)
  4460. .HasColumnType("longtext")
  4461. .HasCharSet("utf8")
  4462. .HasCollation("utf8_general_ci");
  4463. entity.Property(e => e.RightBtn1)
  4464. .HasColumnType("varchar(50)")
  4465. .HasCharSet("utf8")
  4466. .HasCollation("utf8_general_ci");
  4467. entity.Property(e => e.RightBtn2)
  4468. .HasColumnType("varchar(50)")
  4469. .HasCharSet("utf8")
  4470. .HasCollation("utf8_general_ci");
  4471. entity.Property(e => e.SeoDescription)
  4472. .HasColumnType("varchar(500)")
  4473. .HasCharSet("utf8")
  4474. .HasCollation("utf8_general_ci");
  4475. entity.Property(e => e.SeoKeyword)
  4476. .HasColumnType("varchar(200)")
  4477. .HasCharSet("utf8")
  4478. .HasCollation("utf8_general_ci");
  4479. entity.Property(e => e.SeoTitle)
  4480. .HasColumnType("varchar(100)")
  4481. .HasCharSet("utf8")
  4482. .HasCollation("utf8_general_ci");
  4483. entity.Property(e => e.ShowTitle)
  4484. .HasColumnType("bit(1)")
  4485. .HasDefaultValueSql("b'0'");
  4486. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4487. entity.Property(e => e.Status).HasColumnType("int(11)");
  4488. entity.Property(e => e.StatusBarStyle)
  4489. .HasColumnType("varchar(10)")
  4490. .HasCharSet("utf8")
  4491. .HasCollation("utf8_general_ci");
  4492. entity.Property(e => e.TextColor)
  4493. .HasColumnType("varchar(6)")
  4494. .HasCharSet("utf8")
  4495. .HasCollation("utf8_general_ci");
  4496. entity.Property(e => e.Title)
  4497. .HasColumnType("varchar(50)")
  4498. .HasCharSet("utf8")
  4499. .HasCollation("utf8_general_ci");
  4500. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4501. entity.Property(e => e.UpdateMan)
  4502. .HasColumnType("varchar(50)")
  4503. .HasCharSet("utf8")
  4504. .HasCollation("utf8_general_ci");
  4505. entity.Property(e => e.Version).HasColumnType("int(11)");
  4506. });
  4507. modelBuilder.Entity<PosMachines>(entity =>
  4508. {
  4509. entity.Property(e => e.Id).HasColumnType("int(11)");
  4510. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4511. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4512. entity.Property(e => e.ActivityList)
  4513. .HasColumnType("varchar(200)")
  4514. .HasCharSet("utf8")
  4515. .HasCollation("utf8_general_ci");
  4516. entity.Property(e => e.BatchNo)
  4517. .HasColumnType("varchar(32)")
  4518. .HasCharSet("utf8")
  4519. .HasCollation("utf8_general_ci");
  4520. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4521. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4522. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4523. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4524. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4525. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4526. entity.Property(e => e.CreateMan)
  4527. .HasColumnType("varchar(50)")
  4528. .HasCharSet("utf8")
  4529. .HasCollation("utf8_general_ci");
  4530. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4531. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4532. entity.Property(e => e.Detail)
  4533. .HasColumnType("longtext")
  4534. .HasCharSet("utf8")
  4535. .HasCollation("utf8_general_ci");
  4536. entity.Property(e => e.DeviceKind)
  4537. .HasColumnType("varchar(32)")
  4538. .HasCharSet("utf8")
  4539. .HasCollation("utf8_general_ci");
  4540. entity.Property(e => e.DeviceName)
  4541. .HasColumnType("varchar(32)")
  4542. .HasCharSet("utf8")
  4543. .HasCollation("utf8_general_ci");
  4544. entity.Property(e => e.DeviceType)
  4545. .HasColumnType("varchar(20)")
  4546. .HasCharSet("utf8")
  4547. .HasCollation("utf8_general_ci");
  4548. entity.Property(e => e.IsPurchase)
  4549. .HasColumnType("bit(1)")
  4550. .HasDefaultValueSql("b'0'");
  4551. entity.Property(e => e.IsVip)
  4552. .HasColumnType("bit(1)")
  4553. .HasDefaultValueSql("b'0'");
  4554. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4555. entity.Property(e => e.PosSn)
  4556. .HasColumnType("varchar(50)")
  4557. .HasCharSet("utf8")
  4558. .HasCollation("utf8_general_ci");
  4559. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4560. entity.Property(e => e.PrizeParams)
  4561. .HasColumnType("varchar(200)")
  4562. .HasCharSet("utf8")
  4563. .HasCollation("utf8_general_ci");
  4564. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4565. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4566. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4567. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4568. entity.Property(e => e.SeoDescription)
  4569. .HasColumnType("varchar(500)")
  4570. .HasCharSet("utf8")
  4571. .HasCollation("utf8_general_ci");
  4572. entity.Property(e => e.SeoKeyword)
  4573. .HasColumnType("varchar(200)")
  4574. .HasCharSet("utf8")
  4575. .HasCollation("utf8_general_ci");
  4576. entity.Property(e => e.SeoTitle)
  4577. .HasColumnType("varchar(100)")
  4578. .HasCharSet("utf8")
  4579. .HasCollation("utf8_general_ci");
  4580. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4581. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4582. entity.Property(e => e.Status).HasColumnType("int(11)");
  4583. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4584. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4585. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4586. entity.Property(e => e.UpdateMan)
  4587. .HasColumnType("varchar(50)")
  4588. .HasCharSet("utf8")
  4589. .HasCollation("utf8_general_ci");
  4590. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4591. entity.Property(e => e.UserNav)
  4592. .HasColumnType("longtext")
  4593. .HasCharSet("utf8")
  4594. .HasCollation("utf8_general_ci");
  4595. entity.Property(e => e.Version).HasColumnType("int(11)");
  4596. });
  4597. modelBuilder.Entity<PosMachinesTwo>(entity =>
  4598. {
  4599. entity.Property(e => e.Id).HasColumnType("int(11)");
  4600. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4601. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4602. entity.Property(e => e.ActivityList)
  4603. .HasColumnType("varchar(200)")
  4604. .HasCharSet("utf8")
  4605. .HasCollation("utf8_general_ci");
  4606. entity.Property(e => e.BatchNo)
  4607. .HasColumnType("varchar(32)")
  4608. .HasCharSet("utf8")
  4609. .HasCollation("utf8_general_ci");
  4610. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4611. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4612. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4613. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4614. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4615. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4616. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4617. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4618. entity.Property(e => e.Detail)
  4619. .HasColumnType("longtext")
  4620. .HasCharSet("utf8")
  4621. .HasCollation("utf8_general_ci");
  4622. entity.Property(e => e.DeviceKind)
  4623. .HasColumnType("varchar(32)")
  4624. .HasCharSet("utf8")
  4625. .HasCollation("utf8_general_ci");
  4626. entity.Property(e => e.DeviceName)
  4627. .HasColumnType("varchar(32)")
  4628. .HasCharSet("utf8")
  4629. .HasCollation("utf8_general_ci");
  4630. entity.Property(e => e.DeviceType)
  4631. .HasColumnType("varchar(20)")
  4632. .HasCharSet("utf8")
  4633. .HasCollation("utf8_general_ci");
  4634. entity.Property(e => e.IsPurchase).HasColumnType("int(11)");
  4635. entity.Property(e => e.IsVip)
  4636. .HasColumnType("bit(1)")
  4637. .HasDefaultValueSql("b'0'");
  4638. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4639. entity.Property(e => e.PosSn)
  4640. .HasColumnType("varchar(50)")
  4641. .HasCharSet("utf8")
  4642. .HasCollation("utf8_general_ci");
  4643. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4644. entity.Property(e => e.PrizeParams)
  4645. .HasColumnType("varchar(200)")
  4646. .HasCharSet("utf8")
  4647. .HasCollation("utf8_general_ci");
  4648. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4649. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4650. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4651. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  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.Sort).HasColumnType("int(11)");
  4665. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4666. entity.Property(e => e.Status).HasColumnType("int(11)");
  4667. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4668. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4669. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4670. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4671. entity.Property(e => e.UserNav)
  4672. .HasColumnType("longtext")
  4673. .HasCharSet("utf8")
  4674. .HasCollation("utf8_general_ci");
  4675. });
  4676. modelBuilder.Entity<PosMerchantInfo>(entity =>
  4677. {
  4678. entity.Property(e => e.Id).HasColumnType("int(11)");
  4679. entity.Property(e => e.ActType).HasColumnType("int(11)");
  4680. entity.Property(e => e.ActTypeDesc)
  4681. .HasColumnType("varchar(64)")
  4682. .HasCharSet("utf8")
  4683. .HasCollation("utf8_general_ci");
  4684. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  4685. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4686. entity.Property(e => e.City)
  4687. .HasColumnType("varchar(32)")
  4688. .HasCharSet("utf8")
  4689. .HasCollation("utf8_general_ci");
  4690. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4691. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  4692. entity.Property(e => e.KqMerNo)
  4693. .HasColumnType("varchar(32)")
  4694. .HasCharSet("utf8")
  4695. .HasCollation("utf8_general_ci");
  4696. entity.Property(e => e.KqRegTime).HasColumnType("datetime");
  4697. entity.Property(e => e.KqSnNo)
  4698. .HasColumnType("varchar(32)")
  4699. .HasCharSet("utf8")
  4700. .HasCollation("utf8_general_ci");
  4701. entity.Property(e => e.MatchTime).HasColumnType("datetime");
  4702. entity.Property(e => e.MerIdcardNo)
  4703. .HasColumnType("varchar(18)")
  4704. .HasCharSet("utf8")
  4705. .HasCollation("utf8_general_ci");
  4706. entity.Property(e => e.MerRealName)
  4707. .HasColumnType("varchar(16)")
  4708. .HasCharSet("utf8")
  4709. .HasCollation("utf8_general_ci");
  4710. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  4711. entity.Property(e => e.MerStatus).HasColumnType("int(11)");
  4712. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  4713. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  4714. entity.Property(e => e.MerchantMobile)
  4715. .HasColumnType("varchar(11)")
  4716. .HasCharSet("utf8")
  4717. .HasCollation("utf8_general_ci");
  4718. entity.Property(e => e.MerchantName)
  4719. .HasColumnType("varchar(32)")
  4720. .HasCharSet("utf8")
  4721. .HasCollation("utf8_general_ci");
  4722. entity.Property(e => e.MerchantNo)
  4723. .HasColumnType("varchar(16)")
  4724. .HasCharSet("utf8")
  4725. .HasCollation("utf8_general_ci");
  4726. entity.Property(e => e.MgrName)
  4727. .HasColumnType("varchar(32)")
  4728. .HasCharSet("utf8")
  4729. .HasCollation("utf8_general_ci");
  4730. entity.Property(e => e.MgrNo)
  4731. .HasColumnType("varchar(16)")
  4732. .HasCharSet("utf8")
  4733. .HasCollation("utf8_general_ci");
  4734. entity.Property(e => e.Province)
  4735. .HasColumnType("varchar(32)")
  4736. .HasCharSet("utf8")
  4737. .HasCollation("utf8_general_ci");
  4738. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4739. entity.Property(e => e.RebateQual).HasColumnType("int(11)");
  4740. entity.Property(e => e.Remark)
  4741. .HasColumnType("varchar(64)")
  4742. .HasCharSet("utf8")
  4743. .HasCollation("utf8_general_ci");
  4744. entity.Property(e => e.SeoDescription)
  4745. .HasColumnType("varchar(500)")
  4746. .HasCharSet("utf8")
  4747. .HasCollation("utf8_general_ci");
  4748. entity.Property(e => e.SeoKeyword)
  4749. .HasColumnType("varchar(200)")
  4750. .HasCharSet("utf8")
  4751. .HasCollation("utf8_general_ci");
  4752. entity.Property(e => e.SeoTitle)
  4753. .HasColumnType("varchar(100)")
  4754. .HasCharSet("utf8")
  4755. .HasCollation("utf8_general_ci");
  4756. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  4757. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  4758. entity.Property(e => e.SnType).HasColumnType("int(11)");
  4759. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4760. entity.Property(e => e.Status).HasColumnType("int(11)");
  4761. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4762. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4763. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4764. });
  4765. modelBuilder.Entity<PosMerchantOtherInfo>(entity =>
  4766. {
  4767. entity.HasKey(e => e.CertId)
  4768. .HasName("PRIMARY");
  4769. entity.Property(e => e.CertId)
  4770. .HasColumnType("varchar(18)")
  4771. .HasCharSet("utf8")
  4772. .HasCollation("utf8_general_ci");
  4773. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4774. entity.Property(e => e.MerNo)
  4775. .HasColumnType("varchar(50)")
  4776. .HasCharSet("utf8")
  4777. .HasCollation("utf8_general_ci");
  4778. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4779. entity.Property(e => e.PrizeFlag1).HasColumnType("int(11)");
  4780. entity.Property(e => e.PrizeFlag2).HasColumnType("int(11)");
  4781. entity.Property(e => e.PrizeFlag3).HasColumnType("int(11)");
  4782. entity.Property(e => e.PrizeFlag4).HasColumnType("int(11)");
  4783. entity.Property(e => e.RealName)
  4784. .HasColumnType("varchar(30)")
  4785. .HasCharSet("utf8")
  4786. .HasCollation("utf8_general_ci");
  4787. });
  4788. modelBuilder.Entity<PosMerchantTradeSummay>(entity =>
  4789. {
  4790. entity.Property(e => e.Id).HasColumnType("int(11)");
  4791. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4792. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4793. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4794. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4795. entity.Property(e => e.SeoDescription)
  4796. .HasColumnType("varchar(500)")
  4797. .HasCharSet("utf8")
  4798. .HasCollation("utf8_general_ci");
  4799. entity.Property(e => e.SeoKeyword)
  4800. .HasColumnType("varchar(200)")
  4801. .HasCharSet("utf8")
  4802. .HasCollation("utf8_general_ci");
  4803. entity.Property(e => e.SeoTitle)
  4804. .HasColumnType("varchar(100)")
  4805. .HasCharSet("utf8")
  4806. .HasCollation("utf8_general_ci");
  4807. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4808. entity.Property(e => e.Status).HasColumnType("int(11)");
  4809. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  4810. entity.Property(e => e.TradeDate)
  4811. .HasColumnType("varchar(8)")
  4812. .HasCharSet("utf8")
  4813. .HasCollation("utf8_general_ci");
  4814. entity.Property(e => e.TradeMonth)
  4815. .HasColumnType("varchar(6)")
  4816. .HasCharSet("utf8")
  4817. .HasCollation("utf8_general_ci");
  4818. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4819. });
  4820. modelBuilder.Entity<ProductComment>(entity =>
  4821. {
  4822. entity.Property(e => e.Id).HasColumnType("int(11)");
  4823. entity.Property(e => e.AgreeCount).HasColumnType("int(11)");
  4824. entity.Property(e => e.BackCount).HasColumnType("int(11)");
  4825. entity.Property(e => e.Contents)
  4826. .HasColumnType("varchar(200)")
  4827. .HasCharSet("utf8")
  4828. .HasCollation("utf8_general_ci");
  4829. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4830. entity.Property(e => e.CreateMan)
  4831. .HasColumnType("varchar(50)")
  4832. .HasCharSet("utf8")
  4833. .HasCollation("utf8_general_ci");
  4834. entity.Property(e => e.HasPhoto)
  4835. .HasColumnType("bit(1)")
  4836. .HasDefaultValueSql("b'0'");
  4837. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4838. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4839. entity.Property(e => e.PhotoList)
  4840. .HasColumnType("mediumtext")
  4841. .HasCharSet("utf8")
  4842. .HasCollation("utf8_general_ci");
  4843. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4844. entity.Property(e => e.ProductNormId).HasColumnType("int(11)");
  4845. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4846. entity.Property(e => e.SeoDescription)
  4847. .HasColumnType("varchar(500)")
  4848. .HasCharSet("utf8")
  4849. .HasCollation("utf8_general_ci");
  4850. entity.Property(e => e.SeoKeyword)
  4851. .HasColumnType("varchar(200)")
  4852. .HasCharSet("utf8")
  4853. .HasCollation("utf8_general_ci");
  4854. entity.Property(e => e.SeoTitle)
  4855. .HasColumnType("varchar(100)")
  4856. .HasCharSet("utf8")
  4857. .HasCollation("utf8_general_ci");
  4858. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4859. entity.Property(e => e.StarNum).HasColumnType("int(11)");
  4860. entity.Property(e => e.Status).HasColumnType("int(11)");
  4861. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4862. entity.Property(e => e.UpdateMan)
  4863. .HasColumnType("varchar(50)")
  4864. .HasCharSet("utf8")
  4865. .HasCollation("utf8_general_ci");
  4866. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4867. entity.Property(e => e.Version).HasColumnType("int(11)");
  4868. });
  4869. modelBuilder.Entity<ProductCommentAgree>(entity =>
  4870. {
  4871. entity.Property(e => e.Id).HasColumnType("int(11)");
  4872. entity.Property(e => e.ProductCommentId).HasColumnType("int(11)");
  4873. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4874. });
  4875. modelBuilder.Entity<ProductFareAreas>(entity =>
  4876. {
  4877. entity.Property(e => e.Id).HasColumnType("int(11)");
  4878. entity.Property(e => e.Areas)
  4879. .HasColumnType("longtext")
  4880. .HasCharSet("utf8")
  4881. .HasCollation("utf8_general_ci");
  4882. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4883. entity.Property(e => e.CreateMan)
  4884. .HasColumnType("varchar(50)")
  4885. .HasCharSet("utf8")
  4886. .HasCollation("utf8_general_ci");
  4887. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4888. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4889. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4890. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4891. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4892. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4893. entity.Property(e => e.SeoDescription)
  4894. .HasColumnType("varchar(500)")
  4895. .HasCharSet("utf8")
  4896. .HasCollation("utf8_general_ci");
  4897. entity.Property(e => e.SeoKeyword)
  4898. .HasColumnType("varchar(200)")
  4899. .HasCharSet("utf8")
  4900. .HasCollation("utf8_general_ci");
  4901. entity.Property(e => e.SeoTitle)
  4902. .HasColumnType("varchar(100)")
  4903. .HasCharSet("utf8")
  4904. .HasCollation("utf8_general_ci");
  4905. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4906. entity.Property(e => e.Status).HasColumnType("int(11)");
  4907. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  4908. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4909. entity.Property(e => e.UpdateMan)
  4910. .HasColumnType("varchar(50)")
  4911. .HasCharSet("utf8")
  4912. .HasCollation("utf8_general_ci");
  4913. entity.Property(e => e.Version).HasColumnType("int(11)");
  4914. });
  4915. modelBuilder.Entity<ProductFareTemp>(entity =>
  4916. {
  4917. entity.Property(e => e.Id).HasColumnType("int(11)");
  4918. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4919. entity.Property(e => e.CreateMan)
  4920. .HasColumnType("varchar(50)")
  4921. .HasCharSet("utf8")
  4922. .HasCollation("utf8_general_ci");
  4923. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4924. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4925. entity.Property(e => e.IsFree)
  4926. .HasColumnType("bit(1)")
  4927. .HasDefaultValueSql("b'0'");
  4928. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4929. entity.Property(e => e.MeterMode).HasColumnType("int(11)");
  4930. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4931. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4932. entity.Property(e => e.Name)
  4933. .HasColumnType("varchar(50)")
  4934. .HasCharSet("utf8")
  4935. .HasCollation("utf8_general_ci");
  4936. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4937. entity.Property(e => e.SendAddress)
  4938. .HasColumnType("varchar(50)")
  4939. .HasCharSet("utf8")
  4940. .HasCollation("utf8_general_ci");
  4941. entity.Property(e => e.SendAreas)
  4942. .HasColumnType("varchar(30)")
  4943. .HasCharSet("utf8")
  4944. .HasCollation("utf8_general_ci");
  4945. entity.Property(e => e.SendDate).HasColumnType("int(11)");
  4946. entity.Property(e => e.SeoDescription)
  4947. .HasColumnType("varchar(500)")
  4948. .HasCharSet("utf8")
  4949. .HasCollation("utf8_general_ci");
  4950. entity.Property(e => e.SeoKeyword)
  4951. .HasColumnType("varchar(200)")
  4952. .HasCharSet("utf8")
  4953. .HasCollation("utf8_general_ci");
  4954. entity.Property(e => e.SeoTitle)
  4955. .HasColumnType("varchar(100)")
  4956. .HasCharSet("utf8")
  4957. .HasCollation("utf8_general_ci");
  4958. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4959. entity.Property(e => e.Status).HasColumnType("int(11)");
  4960. entity.Property(e => e.TransportMode).HasColumnType("int(11)");
  4961. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4962. entity.Property(e => e.UpdateMan)
  4963. .HasColumnType("varchar(50)")
  4964. .HasCharSet("utf8")
  4965. .HasCollation("utf8_general_ci");
  4966. entity.Property(e => e.Version).HasColumnType("int(11)");
  4967. });
  4968. modelBuilder.Entity<ProductKeys>(entity =>
  4969. {
  4970. entity.HasKey(e => e.Name)
  4971. .HasName("PRIMARY");
  4972. entity.Property(e => e.Name)
  4973. .HasColumnType("varchar(10)")
  4974. .HasCharSet("utf8")
  4975. .HasCollation("utf8_general_ci");
  4976. entity.Property(e => e.ColIds)
  4977. .HasColumnType("longtext")
  4978. .HasCharSet("utf8")
  4979. .HasCollation("utf8_general_ci");
  4980. entity.Property(e => e.ProductIds)
  4981. .HasColumnType("longtext")
  4982. .HasCharSet("utf8")
  4983. .HasCollation("utf8_general_ci");
  4984. });
  4985. modelBuilder.Entity<ProductNorm>(entity =>
  4986. {
  4987. entity.Property(e => e.Id).HasColumnType("int(11)");
  4988. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4989. entity.Property(e => e.Code)
  4990. .HasColumnType("varchar(50)")
  4991. .HasCharSet("utf8")
  4992. .HasCollation("utf8_general_ci");
  4993. entity.Property(e => e.ColName)
  4994. .HasColumnType("varchar(50)")
  4995. .HasCharSet("utf8")
  4996. .HasCollation("utf8_general_ci");
  4997. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  4998. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4999. entity.Property(e => e.CreateMan)
  5000. .HasColumnType("varchar(50)")
  5001. .HasCharSet("utf8")
  5002. .HasCollation("utf8_general_ci");
  5003. entity.Property(e => e.IdList)
  5004. .HasColumnType("varchar(50)")
  5005. .HasCharSet("utf8")
  5006. .HasCollation("utf8_general_ci");
  5007. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5008. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5009. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5010. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5011. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5012. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5013. entity.Property(e => e.SeoDescription)
  5014. .HasColumnType("varchar(500)")
  5015. .HasCharSet("utf8")
  5016. .HasCollation("utf8_general_ci");
  5017. entity.Property(e => e.SeoKeyword)
  5018. .HasColumnType("varchar(200)")
  5019. .HasCharSet("utf8")
  5020. .HasCollation("utf8_general_ci");
  5021. entity.Property(e => e.SeoTitle)
  5022. .HasColumnType("varchar(100)")
  5023. .HasCharSet("utf8")
  5024. .HasCollation("utf8_general_ci");
  5025. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5026. entity.Property(e => e.Status).HasColumnType("int(11)");
  5027. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5028. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5029. entity.Property(e => e.UpdateMan)
  5030. .HasColumnType("varchar(50)")
  5031. .HasCharSet("utf8")
  5032. .HasCollation("utf8_general_ci");
  5033. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5034. entity.Property(e => e.UserPrice).HasColumnType("decimal(18,2)");
  5035. entity.Property(e => e.Version).HasColumnType("int(11)");
  5036. });
  5037. modelBuilder.Entity<ProductNormItem>(entity =>
  5038. {
  5039. entity.Property(e => e.Id).HasColumnType("int(11)");
  5040. entity.Property(e => e.ColName)
  5041. .HasColumnType("varchar(50)")
  5042. .HasCharSet("utf8")
  5043. .HasCollation("utf8_general_ci");
  5044. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5045. entity.Property(e => e.CreateMan)
  5046. .HasColumnType("varchar(50)")
  5047. .HasCharSet("utf8")
  5048. .HasCollation("utf8_general_ci");
  5049. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5050. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  5051. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5052. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5053. entity.Property(e => e.SeoDescription)
  5054. .HasColumnType("varchar(500)")
  5055. .HasCharSet("utf8")
  5056. .HasCollation("utf8_general_ci");
  5057. entity.Property(e => e.SeoKeyword)
  5058. .HasColumnType("varchar(200)")
  5059. .HasCharSet("utf8")
  5060. .HasCollation("utf8_general_ci");
  5061. entity.Property(e => e.SeoTitle)
  5062. .HasColumnType("varchar(100)")
  5063. .HasCharSet("utf8")
  5064. .HasCollation("utf8_general_ci");
  5065. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5066. entity.Property(e => e.Status).HasColumnType("int(11)");
  5067. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5068. entity.Property(e => e.UpdateMan)
  5069. .HasColumnType("varchar(50)")
  5070. .HasCharSet("utf8")
  5071. .HasCollation("utf8_general_ci");
  5072. entity.Property(e => e.Version).HasColumnType("int(11)");
  5073. });
  5074. modelBuilder.Entity<ProductNormTemp>(entity =>
  5075. {
  5076. entity.Property(e => e.Id).HasColumnType("int(11)");
  5077. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5078. entity.Property(e => e.CreateMan)
  5079. .HasColumnType("varchar(50)")
  5080. .HasCharSet("utf8")
  5081. .HasCollation("utf8_general_ci");
  5082. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5083. entity.Property(e => e.Name)
  5084. .HasColumnType("varchar(50)")
  5085. .HasCharSet("utf8")
  5086. .HasCollation("utf8_general_ci");
  5087. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5088. entity.Property(e => e.SeoDescription)
  5089. .HasColumnType("varchar(500)")
  5090. .HasCharSet("utf8")
  5091. .HasCollation("utf8_general_ci");
  5092. entity.Property(e => e.SeoKeyword)
  5093. .HasColumnType("varchar(200)")
  5094. .HasCharSet("utf8")
  5095. .HasCollation("utf8_general_ci");
  5096. entity.Property(e => e.SeoTitle)
  5097. .HasColumnType("varchar(100)")
  5098. .HasCharSet("utf8")
  5099. .HasCollation("utf8_general_ci");
  5100. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5101. entity.Property(e => e.Status).HasColumnType("int(11)");
  5102. entity.Property(e => e.TempJsonData)
  5103. .HasColumnType("longtext")
  5104. .HasCharSet("utf8")
  5105. .HasCollation("utf8_general_ci");
  5106. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5107. entity.Property(e => e.UpdateMan)
  5108. .HasColumnType("varchar(50)")
  5109. .HasCharSet("utf8")
  5110. .HasCollation("utf8_general_ci");
  5111. entity.Property(e => e.Version).HasColumnType("int(11)");
  5112. });
  5113. modelBuilder.Entity<Products>(entity =>
  5114. {
  5115. entity.Property(e => e.Id).HasColumnType("int(11)");
  5116. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5117. entity.Property(e => e.ColId)
  5118. .HasColumnType("varchar(30)")
  5119. .HasCharSet("utf8")
  5120. .HasCollation("utf8_general_ci");
  5121. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  5122. entity.Property(e => e.Contents)
  5123. .HasColumnType("longtext")
  5124. .HasCharSet("utf8")
  5125. .HasCollation("utf8_general_ci");
  5126. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5127. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5128. entity.Property(e => e.CreateMan)
  5129. .HasColumnType("varchar(50)")
  5130. .HasCharSet("utf8")
  5131. .HasCollation("utf8_general_ci");
  5132. entity.Property(e => e.DetailPicPath)
  5133. .HasColumnType("varchar(500)")
  5134. .HasCharSet("utf8")
  5135. .HasCollation("utf8_general_ci");
  5136. entity.Property(e => e.Details)
  5137. .HasColumnType("longtext")
  5138. .HasCharSet("utf8")
  5139. .HasCollation("utf8_general_ci");
  5140. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5141. entity.Property(e => e.FareTemplateId).HasColumnType("int(11)");
  5142. entity.Property(e => e.GoodPercent).HasColumnType("decimal(18,2)");
  5143. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5144. entity.Property(e => e.IsLimit)
  5145. .HasColumnType("bit(1)")
  5146. .HasDefaultValueSql("b'0'");
  5147. entity.Property(e => e.IsRecommend)
  5148. .HasColumnType("bit(1)")
  5149. .HasDefaultValueSql("b'0'");
  5150. entity.Property(e => e.IsRecommend2)
  5151. .HasColumnType("bit(1)")
  5152. .HasDefaultValueSql("b'0'");
  5153. entity.Property(e => e.IsRecommend3)
  5154. .HasColumnType("bit(1)")
  5155. .HasDefaultValueSql("b'0'");
  5156. entity.Property(e => e.KeyWord)
  5157. .HasColumnType("varchar(500)")
  5158. .HasCharSet("utf8")
  5159. .HasCollation("utf8_general_ci");
  5160. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5161. entity.Property(e => e.LinkUrl)
  5162. .HasColumnType("varchar(500)")
  5163. .HasCharSet("utf8")
  5164. .HasCollation("utf8_general_ci");
  5165. entity.Property(e => e.ListPicPath)
  5166. .HasColumnType("varchar(200)")
  5167. .HasCharSet("utf8")
  5168. .HasCollation("utf8_general_ci");
  5169. entity.Property(e => e.MemberPrice).HasColumnType("decimal(18,2)");
  5170. entity.Property(e => e.MerchantClassId).HasColumnType("int(11)");
  5171. entity.Property(e => e.MerchantColId)
  5172. .HasColumnType("varchar(30)")
  5173. .HasCharSet("utf8")
  5174. .HasCollation("utf8_general_ci");
  5175. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5176. entity.Property(e => e.MonthSale).HasColumnType("int(11)");
  5177. entity.Property(e => e.NormIds)
  5178. .HasColumnType("varchar(100)")
  5179. .HasCharSet("utf8")
  5180. .HasCollation("utf8_general_ci");
  5181. entity.Property(e => e.NormJson)
  5182. .HasColumnType("longtext")
  5183. .HasCharSet("utf8")
  5184. .HasCollation("utf8_general_ci");
  5185. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5186. entity.Property(e => e.ProductCode)
  5187. .HasColumnType("varchar(30)")
  5188. .HasCharSet("utf8")
  5189. .HasCollation("utf8_general_ci");
  5190. entity.Property(e => e.ProductName)
  5191. .HasColumnType("varchar(100)")
  5192. .HasCharSet("utf8")
  5193. .HasCollation("utf8_general_ci");
  5194. entity.Property(e => e.PublishDate).HasColumnType("datetime");
  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.ShareDetail)
  5209. .HasColumnType("varchar(200)")
  5210. .HasCharSet("utf8")
  5211. .HasCollation("utf8_general_ci");
  5212. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5213. entity.Property(e => e.SourcePrice).HasColumnType("decimal(18,2)");
  5214. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5215. entity.Property(e => e.Status).HasColumnType("int(11)");
  5216. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5217. entity.Property(e => e.Title)
  5218. .HasColumnType("varchar(50)")
  5219. .HasCharSet("utf8")
  5220. .HasCollation("utf8_general_ci");
  5221. entity.Property(e => e.Title2)
  5222. .HasColumnType("varchar(50)")
  5223. .HasCharSet("utf8")
  5224. .HasCollation("utf8_general_ci");
  5225. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5226. entity.Property(e => e.UpdateMan)
  5227. .HasColumnType("varchar(50)")
  5228. .HasCharSet("utf8")
  5229. .HasCollation("utf8_general_ci");
  5230. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5231. entity.Property(e => e.Version).HasColumnType("int(11)");
  5232. });
  5233. modelBuilder.Entity<ProfitObjectActivations>(entity =>
  5234. {
  5235. entity.Property(e => e.Id).HasColumnType("int(11)");
  5236. entity.Property(e => e.Code)
  5237. .HasColumnType("varchar(32)")
  5238. .HasCharSet("utf8")
  5239. .HasCollation("utf8_general_ci");
  5240. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5241. entity.Property(e => e.CreateMan)
  5242. .HasColumnType("varchar(50)")
  5243. .HasCharSet("utf8")
  5244. .HasCollation("utf8_general_ci");
  5245. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5246. entity.Property(e => e.ExpiredNumber).HasColumnType("decimal(18,6)");
  5247. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5248. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5249. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5250. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5251. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5252. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5253. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5254. entity.Property(e => e.SeoDescription)
  5255. .HasColumnType("varchar(500)")
  5256. .HasCharSet("utf8")
  5257. .HasCollation("utf8_general_ci");
  5258. entity.Property(e => e.SeoKeyword)
  5259. .HasColumnType("varchar(200)")
  5260. .HasCharSet("utf8")
  5261. .HasCollation("utf8_general_ci");
  5262. entity.Property(e => e.SeoTitle)
  5263. .HasColumnType("varchar(100)")
  5264. .HasCharSet("utf8")
  5265. .HasCollation("utf8_general_ci");
  5266. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5267. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5268. entity.Property(e => e.Status).HasColumnType("int(11)");
  5269. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5270. entity.Property(e => e.UpdateMan)
  5271. .HasColumnType("varchar(50)")
  5272. .HasCharSet("utf8")
  5273. .HasCollation("utf8_general_ci");
  5274. entity.Property(e => e.Version).HasColumnType("int(11)");
  5275. });
  5276. modelBuilder.Entity<ProfitObjectContinueFloors>(entity =>
  5277. {
  5278. entity.Property(e => e.Id).HasColumnType("int(11)");
  5279. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5280. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5281. entity.Property(e => e.CreateMan)
  5282. .HasColumnType("varchar(50)")
  5283. .HasCharSet("utf8")
  5284. .HasCollation("utf8_general_ci");
  5285. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5286. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5287. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5288. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5289. entity.Property(e => e.SeoDescription)
  5290. .HasColumnType("varchar(500)")
  5291. .HasCharSet("utf8")
  5292. .HasCollation("utf8_general_ci");
  5293. entity.Property(e => e.SeoKeyword)
  5294. .HasColumnType("varchar(200)")
  5295. .HasCharSet("utf8")
  5296. .HasCollation("utf8_general_ci");
  5297. entity.Property(e => e.SeoTitle)
  5298. .HasColumnType("varchar(100)")
  5299. .HasCharSet("utf8")
  5300. .HasCollation("utf8_general_ci");
  5301. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5302. entity.Property(e => e.Status).HasColumnType("int(11)");
  5303. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5304. entity.Property(e => e.UpdateMan)
  5305. .HasColumnType("varchar(50)")
  5306. .HasCharSet("utf8")
  5307. .HasCollation("utf8_general_ci");
  5308. entity.Property(e => e.Version).HasColumnType("int(11)");
  5309. });
  5310. modelBuilder.Entity<ProfitObjectFloors>(entity =>
  5311. {
  5312. entity.Property(e => e.Id).HasColumnType("int(11)");
  5313. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5314. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5315. entity.Property(e => e.CreateMan)
  5316. .HasColumnType("varchar(50)")
  5317. .HasCharSet("utf8")
  5318. .HasCollation("utf8_general_ci");
  5319. entity.Property(e => e.FloorDiff)
  5320. .HasColumnType("bit(1)")
  5321. .HasDefaultValueSql("b'0'");
  5322. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5323. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5324. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5325. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5326. entity.Property(e => e.SeoDescription)
  5327. .HasColumnType("varchar(500)")
  5328. .HasCharSet("utf8")
  5329. .HasCollation("utf8_general_ci");
  5330. entity.Property(e => e.SeoKeyword)
  5331. .HasColumnType("varchar(200)")
  5332. .HasCharSet("utf8")
  5333. .HasCollation("utf8_general_ci");
  5334. entity.Property(e => e.SeoTitle)
  5335. .HasColumnType("varchar(100)")
  5336. .HasCharSet("utf8")
  5337. .HasCollation("utf8_general_ci");
  5338. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5339. entity.Property(e => e.Status).HasColumnType("int(11)");
  5340. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5341. entity.Property(e => e.UpdateMan)
  5342. .HasColumnType("varchar(50)")
  5343. .HasCharSet("utf8")
  5344. .HasCollation("utf8_general_ci");
  5345. entity.Property(e => e.Version).HasColumnType("int(11)");
  5346. });
  5347. modelBuilder.Entity<ProfitObjectLevelKinds>(entity =>
  5348. {
  5349. entity.Property(e => e.Id).HasColumnType("int(11)");
  5350. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  5351. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5352. entity.Property(e => e.CreateMan)
  5353. .HasColumnType("varchar(50)")
  5354. .HasCharSet("utf8")
  5355. .HasCollation("utf8_general_ci");
  5356. entity.Property(e => e.IsHelp)
  5357. .HasColumnType("bit(1)")
  5358. .HasDefaultValueSql("b'0'");
  5359. entity.Property(e => e.Name)
  5360. .HasColumnType("varchar(50)")
  5361. .HasCharSet("utf8")
  5362. .HasCollation("utf8_general_ci");
  5363. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5364. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5365. entity.Property(e => e.SeoDescription)
  5366. .HasColumnType("varchar(500)")
  5367. .HasCharSet("utf8")
  5368. .HasCollation("utf8_general_ci");
  5369. entity.Property(e => e.SeoKeyword)
  5370. .HasColumnType("varchar(200)")
  5371. .HasCharSet("utf8")
  5372. .HasCollation("utf8_general_ci");
  5373. entity.Property(e => e.SeoTitle)
  5374. .HasColumnType("varchar(100)")
  5375. .HasCharSet("utf8")
  5376. .HasCollation("utf8_general_ci");
  5377. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5378. entity.Property(e => e.Status).HasColumnType("int(11)");
  5379. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5380. entity.Property(e => e.UpdateMan)
  5381. .HasColumnType("varchar(50)")
  5382. .HasCharSet("utf8")
  5383. .HasCollation("utf8_general_ci");
  5384. entity.Property(e => e.Version).HasColumnType("int(11)");
  5385. });
  5386. modelBuilder.Entity<ProfitObjectLevels>(entity =>
  5387. {
  5388. entity.Property(e => e.Id).HasColumnType("int(11)");
  5389. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5390. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5391. entity.Property(e => e.CreateMan)
  5392. .HasColumnType("varchar(50)")
  5393. .HasCharSet("utf8")
  5394. .HasCollation("utf8_general_ci");
  5395. entity.Property(e => e.DebitAddProfitVal).HasColumnType("decimal(18,2)");
  5396. entity.Property(e => e.DebitPercents).HasColumnType("decimal(18,2)");
  5397. entity.Property(e => e.KindId).HasColumnType("int(11)");
  5398. entity.Property(e => e.LevelDiff)
  5399. .HasColumnType("bit(1)")
  5400. .HasDefaultValueSql("b'0'");
  5401. entity.Property(e => e.LevelNumber).HasColumnType("int(11)");
  5402. entity.Property(e => e.Name)
  5403. .HasColumnType("varchar(50)")
  5404. .HasCharSet("utf8")
  5405. .HasCollation("utf8_general_ci");
  5406. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5407. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5408. entity.Property(e => e.SeoDescription)
  5409. .HasColumnType("varchar(500)")
  5410. .HasCharSet("utf8")
  5411. .HasCollation("utf8_general_ci");
  5412. entity.Property(e => e.SeoKeyword)
  5413. .HasColumnType("varchar(200)")
  5414. .HasCharSet("utf8")
  5415. .HasCollation("utf8_general_ci");
  5416. entity.Property(e => e.SeoTitle)
  5417. .HasColumnType("varchar(100)")
  5418. .HasCharSet("utf8")
  5419. .HasCollation("utf8_general_ci");
  5420. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5421. entity.Property(e => e.Status).HasColumnType("int(11)");
  5422. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5423. entity.Property(e => e.UpdateMan)
  5424. .HasColumnType("varchar(50)")
  5425. .HasCharSet("utf8")
  5426. .HasCollation("utf8_general_ci");
  5427. entity.Property(e => e.Version).HasColumnType("int(11)");
  5428. });
  5429. modelBuilder.Entity<ProfitObjects>(entity =>
  5430. {
  5431. entity.Property(e => e.Id).HasColumnType("int(11)");
  5432. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5433. entity.Property(e => e.CreateMan)
  5434. .HasColumnType("varchar(50)")
  5435. .HasCharSet("utf8")
  5436. .HasCollation("utf8_general_ci");
  5437. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5438. entity.Property(e => e.MaxFloor).HasColumnType("int(11)");
  5439. entity.Property(e => e.MaxLevel).HasColumnType("int(11)");
  5440. entity.Property(e => e.MaxLevelContinue)
  5441. .HasColumnType("bit(1)")
  5442. .HasDefaultValueSql("b'0'");
  5443. entity.Property(e => e.MinProfitVal).HasColumnType("decimal(18,5)");
  5444. entity.Property(e => e.Name)
  5445. .HasColumnType("varchar(50)")
  5446. .HasCharSet("utf8")
  5447. .HasCollation("utf8_general_ci");
  5448. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5449. entity.Property(e => e.SeoDescription)
  5450. .HasColumnType("varchar(500)")
  5451. .HasCharSet("utf8")
  5452. .HasCollation("utf8_general_ci");
  5453. entity.Property(e => e.SeoKeyword)
  5454. .HasColumnType("varchar(200)")
  5455. .HasCharSet("utf8")
  5456. .HasCollation("utf8_general_ci");
  5457. entity.Property(e => e.SeoTitle)
  5458. .HasColumnType("varchar(100)")
  5459. .HasCharSet("utf8")
  5460. .HasCollation("utf8_general_ci");
  5461. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5462. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5463. entity.Property(e => e.Status).HasColumnType("int(11)");
  5464. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5465. entity.Property(e => e.UpdateMan)
  5466. .HasColumnType("varchar(50)")
  5467. .HasCharSet("utf8")
  5468. .HasCollation("utf8_general_ci");
  5469. entity.Property(e => e.Version).HasColumnType("int(11)");
  5470. });
  5471. modelBuilder.Entity<ProfitObjectsActiveCheck>(entity =>
  5472. {
  5473. entity.HasKey(e => e.CheckData)
  5474. .HasName("PRIMARY");
  5475. entity.Property(e => e.CheckData)
  5476. .HasColumnType("varchar(100)")
  5477. .HasCharSet("utf8")
  5478. .HasCollation("utf8_general_ci");
  5479. });
  5480. modelBuilder.Entity<ProfitObjectsActiveParams>(entity =>
  5481. {
  5482. entity.Property(e => e.Id).HasColumnType("int(11)");
  5483. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5484. entity.Property(e => e.CreateMan)
  5485. .HasColumnType("varchar(50)")
  5486. .HasCharSet("utf8")
  5487. .HasCollation("utf8_general_ci");
  5488. entity.Property(e => e.Name)
  5489. .HasColumnType("varchar(50)")
  5490. .HasCharSet("utf8")
  5491. .HasCollation("utf8_general_ci");
  5492. entity.Property(e => e.ProfitObjectsActiveId).HasColumnType("int(11)");
  5493. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5494. entity.Property(e => e.Remark)
  5495. .HasColumnType("varchar(200)")
  5496. .HasCharSet("utf8")
  5497. .HasCollation("utf8_general_ci");
  5498. entity.Property(e => e.SeoDescription)
  5499. .HasColumnType("varchar(500)")
  5500. .HasCharSet("utf8")
  5501. .HasCollation("utf8_general_ci");
  5502. entity.Property(e => e.SeoKeyword)
  5503. .HasColumnType("varchar(200)")
  5504. .HasCharSet("utf8")
  5505. .HasCollation("utf8_general_ci");
  5506. entity.Property(e => e.SeoTitle)
  5507. .HasColumnType("varchar(100)")
  5508. .HasCharSet("utf8")
  5509. .HasCollation("utf8_general_ci");
  5510. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5511. entity.Property(e => e.Status).HasColumnType("int(11)");
  5512. entity.Property(e => e.TextValue)
  5513. .HasColumnType("varchar(20)")
  5514. .HasCharSet("utf8")
  5515. .HasCollation("utf8_general_ci");
  5516. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5517. entity.Property(e => e.UpdateMan)
  5518. .HasColumnType("varchar(50)")
  5519. .HasCharSet("utf8")
  5520. .HasCollation("utf8_general_ci");
  5521. entity.Property(e => e.Version).HasColumnType("int(11)");
  5522. });
  5523. modelBuilder.Entity<ProfitObjectsActives>(entity =>
  5524. {
  5525. entity.Property(e => e.Id).HasColumnType("int(11)");
  5526. entity.Property(e => e.CardType).HasColumnType("int(11)");
  5527. entity.Property(e => e.Code)
  5528. .HasColumnType("varchar(50)")
  5529. .HasCharSet("utf8")
  5530. .HasCollation("utf8_general_ci");
  5531. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5532. entity.Property(e => e.CreateMan)
  5533. .HasColumnType("varchar(50)")
  5534. .HasCharSet("utf8")
  5535. .HasCollation("utf8_general_ci");
  5536. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5537. entity.Property(e => e.FinishNumber).HasColumnType("decimal(18,6)");
  5538. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5539. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5540. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5541. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5542. entity.Property(e => e.Name)
  5543. .HasColumnType("varchar(50)")
  5544. .HasCharSet("utf8")
  5545. .HasCollation("utf8_general_ci");
  5546. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5547. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5548. entity.Property(e => e.ProfitNumber2).HasColumnType("decimal(18,2)");
  5549. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5550. entity.Property(e => e.SeoDescription)
  5551. .HasColumnType("varchar(500)")
  5552. .HasCharSet("utf8")
  5553. .HasCollation("utf8_general_ci");
  5554. entity.Property(e => e.SeoKeyword)
  5555. .HasColumnType("varchar(200)")
  5556. .HasCharSet("utf8")
  5557. .HasCollation("utf8_general_ci");
  5558. entity.Property(e => e.SeoTitle)
  5559. .HasColumnType("varchar(100)")
  5560. .HasCharSet("utf8")
  5561. .HasCollation("utf8_general_ci");
  5562. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5563. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5564. entity.Property(e => e.Status).HasColumnType("int(11)");
  5565. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5566. entity.Property(e => e.UpdateMan)
  5567. .HasColumnType("varchar(50)")
  5568. .HasCharSet("utf8")
  5569. .HasCollation("utf8_general_ci");
  5570. entity.Property(e => e.Version).HasColumnType("int(11)");
  5571. });
  5572. modelBuilder.Entity<ProfitObjectsActivesForId>(entity =>
  5573. {
  5574. entity.HasKey(e => e.Name)
  5575. .HasName("PRIMARY");
  5576. entity.Property(e => e.Name)
  5577. .HasColumnType("varchar(50)")
  5578. .HasCharSet("utf8")
  5579. .HasCollation("utf8_general_ci");
  5580. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  5581. });
  5582. modelBuilder.Entity<ProfitObjectsRule>(entity =>
  5583. {
  5584. entity.Property(e => e.Id).HasColumnType("int(11)");
  5585. entity.Property(e => e.Code)
  5586. .HasColumnType("varchar(50)")
  5587. .HasCharSet("utf8")
  5588. .HasCollation("utf8_general_ci");
  5589. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5590. entity.Property(e => e.CreateMan)
  5591. .HasColumnType("varchar(50)")
  5592. .HasCharSet("utf8")
  5593. .HasCollation("utf8_general_ci");
  5594. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5595. entity.Property(e => e.Name)
  5596. .HasColumnType("varchar(50)")
  5597. .HasCharSet("utf8")
  5598. .HasCollation("utf8_general_ci");
  5599. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5600. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5601. entity.Property(e => e.SeoDescription)
  5602. .HasColumnType("varchar(500)")
  5603. .HasCharSet("utf8")
  5604. .HasCollation("utf8_general_ci");
  5605. entity.Property(e => e.SeoKeyword)
  5606. .HasColumnType("varchar(200)")
  5607. .HasCharSet("utf8")
  5608. .HasCollation("utf8_general_ci");
  5609. entity.Property(e => e.SeoTitle)
  5610. .HasColumnType("varchar(100)")
  5611. .HasCharSet("utf8")
  5612. .HasCollation("utf8_general_ci");
  5613. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5614. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5615. entity.Property(e => e.Status).HasColumnType("int(11)");
  5616. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5617. entity.Property(e => e.UpdateMan)
  5618. .HasColumnType("varchar(50)")
  5619. .HasCharSet("utf8")
  5620. .HasCollation("utf8_general_ci");
  5621. entity.Property(e => e.Version).HasColumnType("int(11)");
  5622. });
  5623. modelBuilder.Entity<ProfitObjectsRuleDetails>(entity =>
  5624. {
  5625. entity.Property(e => e.Id).HasColumnType("int(11)");
  5626. entity.Property(e => e.Code)
  5627. .HasColumnType("varchar(50)")
  5628. .HasCharSet("utf8")
  5629. .HasCollation("utf8_general_ci");
  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.DataValue)
  5636. .HasColumnType("varchar(50)")
  5637. .HasCharSet("utf8")
  5638. .HasCollation("utf8_general_ci");
  5639. entity.Property(e => e.Name)
  5640. .HasColumnType("varchar(50)")
  5641. .HasCharSet("utf8")
  5642. .HasCollation("utf8_general_ci");
  5643. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5644. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  5645. entity.Property(e => e.SeoDescription)
  5646. .HasColumnType("varchar(500)")
  5647. .HasCharSet("utf8")
  5648. .HasCollation("utf8_general_ci");
  5649. entity.Property(e => e.SeoKeyword)
  5650. .HasColumnType("varchar(200)")
  5651. .HasCharSet("utf8")
  5652. .HasCollation("utf8_general_ci");
  5653. entity.Property(e => e.SeoTitle)
  5654. .HasColumnType("varchar(100)")
  5655. .HasCharSet("utf8")
  5656. .HasCollation("utf8_general_ci");
  5657. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5658. entity.Property(e => e.Status).HasColumnType("int(11)");
  5659. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5660. entity.Property(e => e.UpdateMan)
  5661. .HasColumnType("varchar(50)")
  5662. .HasCharSet("utf8")
  5663. .HasCollation("utf8_general_ci");
  5664. entity.Property(e => e.Version).HasColumnType("int(11)");
  5665. });
  5666. modelBuilder.Entity<ProfitReceiveRecord>(entity =>
  5667. {
  5668. entity.Property(e => e.Id).HasColumnType("int(11)");
  5669. entity.Property(e => e.Account)
  5670. .HasColumnType("varchar(32)")
  5671. .HasCharSet("utf8")
  5672. .HasCollation("utf8_general_ci");
  5673. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  5674. entity.Property(e => e.AppId)
  5675. .HasColumnType("varchar(32)")
  5676. .HasCharSet("utf8")
  5677. .HasCollation("utf8_general_ci");
  5678. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5679. entity.Property(e => e.CreateMan)
  5680. .HasColumnType("varchar(50)")
  5681. .HasCharSet("utf8")
  5682. .HasCollation("utf8_general_ci");
  5683. entity.Property(e => e.CustomRelation)
  5684. .HasColumnType("varchar(10)")
  5685. .HasCharSet("utf8")
  5686. .HasCollation("utf8_general_ci");
  5687. entity.Property(e => e.Description)
  5688. .HasColumnType("varchar(50)")
  5689. .HasCharSet("utf8")
  5690. .HasCollation("utf8_general_ci");
  5691. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5692. entity.Property(e => e.Name)
  5693. .HasColumnType("varchar(32)")
  5694. .HasCharSet("utf8")
  5695. .HasCollation("utf8_general_ci");
  5696. entity.Property(e => e.OrderId)
  5697. .HasColumnType("varchar(32)")
  5698. .HasCharSet("utf8")
  5699. .HasCollation("utf8_general_ci");
  5700. entity.Property(e => e.OutOrderNo)
  5701. .HasColumnType("varchar(32)")
  5702. .HasCharSet("utf8")
  5703. .HasCollation("utf8_general_ci");
  5704. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5705. entity.Property(e => e.RelationType)
  5706. .HasColumnType("varchar(30)")
  5707. .HasCharSet("utf8")
  5708. .HasCollation("utf8_general_ci");
  5709. entity.Property(e => e.SeoDescription)
  5710. .HasColumnType("varchar(500)")
  5711. .HasCharSet("utf8")
  5712. .HasCollation("utf8_general_ci");
  5713. entity.Property(e => e.SeoKeyword)
  5714. .HasColumnType("varchar(200)")
  5715. .HasCharSet("utf8")
  5716. .HasCollation("utf8_general_ci");
  5717. entity.Property(e => e.SeoTitle)
  5718. .HasColumnType("varchar(100)")
  5719. .HasCharSet("utf8")
  5720. .HasCollation("utf8_general_ci");
  5721. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5722. entity.Property(e => e.State)
  5723. .HasColumnType("varchar(20)")
  5724. .HasCharSet("utf8")
  5725. .HasCollation("utf8_general_ci");
  5726. entity.Property(e => e.Status).HasColumnType("int(11)");
  5727. entity.Property(e => e.SubAppId)
  5728. .HasColumnType("varchar(32)")
  5729. .HasCharSet("utf8")
  5730. .HasCollation("utf8_general_ci");
  5731. entity.Property(e => e.SubMchid)
  5732. .HasColumnType("varchar(32)")
  5733. .HasCharSet("utf8")
  5734. .HasCollation("utf8_general_ci");
  5735. entity.Property(e => e.TransactionId)
  5736. .HasColumnType("varchar(32)")
  5737. .HasCharSet("utf8")
  5738. .HasCollation("utf8_general_ci");
  5739. entity.Property(e => e.Type)
  5740. .HasColumnType("varchar(30)")
  5741. .HasCharSet("utf8")
  5742. .HasCollation("utf8_general_ci");
  5743. entity.Property(e => e.UnfreezeUnsplit)
  5744. .HasColumnType("bit(1)")
  5745. .HasDefaultValueSql("b'0'");
  5746. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5747. entity.Property(e => e.UpdateMan)
  5748. .HasColumnType("varchar(50)")
  5749. .HasCharSet("utf8")
  5750. .HasCollation("utf8_general_ci");
  5751. entity.Property(e => e.Version).HasColumnType("int(11)");
  5752. });
  5753. modelBuilder.Entity<ProfitReceives>(entity =>
  5754. {
  5755. entity.Property(e => e.Id).HasColumnType("int(11)");
  5756. entity.Property(e => e.Account)
  5757. .HasColumnType("varchar(32)")
  5758. .HasCharSet("utf8")
  5759. .HasCollation("utf8_general_ci");
  5760. entity.Property(e => e.AppId)
  5761. .HasColumnType("varchar(32)")
  5762. .HasCharSet("utf8")
  5763. .HasCollation("utf8_general_ci");
  5764. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5765. entity.Property(e => e.CreateMan)
  5766. .HasColumnType("varchar(50)")
  5767. .HasCharSet("utf8")
  5768. .HasCollation("utf8_general_ci");
  5769. entity.Property(e => e.CustomRelation)
  5770. .HasColumnType("varchar(10)")
  5771. .HasCharSet("utf8")
  5772. .HasCollation("utf8_general_ci");
  5773. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5774. entity.Property(e => e.Name)
  5775. .HasColumnType("varchar(32)")
  5776. .HasCharSet("utf8")
  5777. .HasCollation("utf8_general_ci");
  5778. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5779. entity.Property(e => e.RelationType)
  5780. .HasColumnType("varchar(30)")
  5781. .HasCharSet("utf8")
  5782. .HasCollation("utf8_general_ci");
  5783. entity.Property(e => e.SeoDescription)
  5784. .HasColumnType("varchar(500)")
  5785. .HasCharSet("utf8")
  5786. .HasCollation("utf8_general_ci");
  5787. entity.Property(e => e.SeoKeyword)
  5788. .HasColumnType("varchar(200)")
  5789. .HasCharSet("utf8")
  5790. .HasCollation("utf8_general_ci");
  5791. entity.Property(e => e.SeoTitle)
  5792. .HasColumnType("varchar(100)")
  5793. .HasCharSet("utf8")
  5794. .HasCollation("utf8_general_ci");
  5795. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5796. entity.Property(e => e.Status).HasColumnType("int(11)");
  5797. entity.Property(e => e.SubAppId)
  5798. .HasColumnType("varchar(32)")
  5799. .HasCharSet("utf8")
  5800. .HasCollation("utf8_general_ci");
  5801. entity.Property(e => e.SubMchid)
  5802. .HasColumnType("varchar(32)")
  5803. .HasCharSet("utf8")
  5804. .HasCollation("utf8_general_ci");
  5805. entity.Property(e => e.Type)
  5806. .HasColumnType("varchar(30)")
  5807. .HasCharSet("utf8")
  5808. .HasCollation("utf8_general_ci");
  5809. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5810. entity.Property(e => e.UpdateMan)
  5811. .HasColumnType("varchar(50)")
  5812. .HasCharSet("utf8")
  5813. .HasCollation("utf8_general_ci");
  5814. entity.Property(e => e.Version).HasColumnType("int(11)");
  5815. });
  5816. modelBuilder.Entity<ProfitRecord>(entity =>
  5817. {
  5818. entity.Property(e => e.Id).HasColumnType("int(11)");
  5819. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5820. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  5821. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  5822. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5823. entity.Property(e => e.CreateMan)
  5824. .HasColumnType("varchar(50)")
  5825. .HasCharSet("utf8")
  5826. .HasCollation("utf8_general_ci");
  5827. entity.Property(e => e.DirectFlag)
  5828. .HasColumnType("bit(1)")
  5829. .HasDefaultValueSql("b'0'");
  5830. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  5831. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  5832. entity.Property(e => e.MerHelpFlag)
  5833. .HasColumnType("bit(1)")
  5834. .HasDefaultValueSql("b'0'");
  5835. entity.Property(e => e.MerNo)
  5836. .HasColumnType("varchar(32)")
  5837. .HasCharSet("utf8")
  5838. .HasCollation("utf8_general_ci");
  5839. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5840. entity.Property(e => e.ParentNav)
  5841. .HasColumnType("varchar(1000)")
  5842. .HasCharSet("utf8")
  5843. .HasCollation("utf8_general_ci");
  5844. entity.Property(e => e.ProfitAmount).HasColumnType("decimal(18,2)");
  5845. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  5846. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5847. entity.Property(e => e.Remark)
  5848. .HasColumnType("varchar(64)")
  5849. .HasCharSet("utf8")
  5850. .HasCollation("utf8_general_ci");
  5851. entity.Property(e => e.SeoDescription)
  5852. .HasColumnType("varchar(500)")
  5853. .HasCharSet("utf8")
  5854. .HasCollation("utf8_general_ci");
  5855. entity.Property(e => e.SeoKeyword)
  5856. .HasColumnType("varchar(200)")
  5857. .HasCharSet("utf8")
  5858. .HasCollation("utf8_general_ci");
  5859. entity.Property(e => e.SeoTitle)
  5860. .HasColumnType("varchar(100)")
  5861. .HasCharSet("utf8")
  5862. .HasCollation("utf8_general_ci");
  5863. entity.Property(e => e.SnNo)
  5864. .HasColumnType("varchar(32)")
  5865. .HasCharSet("utf8")
  5866. .HasCollation("utf8_general_ci");
  5867. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5868. entity.Property(e => e.Status).HasColumnType("int(11)");
  5869. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  5870. entity.Property(e => e.TradeId).HasColumnType("int(11)");
  5871. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5872. entity.Property(e => e.UpdateMan)
  5873. .HasColumnType("varchar(50)")
  5874. .HasCharSet("utf8")
  5875. .HasCollation("utf8_general_ci");
  5876. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5877. entity.Property(e => e.Version).HasColumnType("int(11)");
  5878. });
  5879. modelBuilder.Entity<ProfitRewardRecord>(entity =>
  5880. {
  5881. entity.Property(e => e.Id).HasColumnType("int(11)");
  5882. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5883. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  5884. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5885. entity.Property(e => e.CreateMan)
  5886. .HasColumnType("varchar(50)")
  5887. .HasCharSet("utf8")
  5888. .HasCollation("utf8_general_ci");
  5889. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5890. entity.Property(e => e.CreditTradeProfit).HasColumnType("decimal(18,2)");
  5891. entity.Property(e => e.DebitCapSingleReward).HasColumnType("decimal(18,2)");
  5892. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  5893. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  5894. entity.Property(e => e.DebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5895. entity.Property(e => e.DebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5896. entity.Property(e => e.DebitTradeCapProfit).HasColumnType("decimal(18,2)");
  5897. entity.Property(e => e.HelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5898. entity.Property(e => e.HelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5899. entity.Property(e => e.HelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5900. entity.Property(e => e.HelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5901. entity.Property(e => e.HelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5902. entity.Property(e => e.HelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5903. entity.Property(e => e.HelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5904. entity.Property(e => e.HelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5905. entity.Property(e => e.HelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5906. entity.Property(e => e.HelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5907. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5908. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5909. entity.Property(e => e.NonQrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5910. entity.Property(e => e.NonQrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5911. entity.Property(e => e.NonQrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5912. entity.Property(e => e.NotHelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5913. entity.Property(e => e.NotHelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5914. entity.Property(e => e.NotHelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5915. entity.Property(e => e.NotHelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5916. entity.Property(e => e.NotHelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5917. entity.Property(e => e.NotHelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5918. entity.Property(e => e.NotHelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5919. entity.Property(e => e.NotHelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5920. entity.Property(e => e.NotHelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5921. entity.Property(e => e.NotHelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5922. entity.Property(e => e.OtherCreditTradeAmt).HasColumnType("decimal(18,2)");
  5923. entity.Property(e => e.OtherDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5924. entity.Property(e => e.OtherTradeAmt).HasColumnType("decimal(18,2)");
  5925. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  5926. entity.Property(e => e.QrCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5927. entity.Property(e => e.QrCreditProfitRate).HasColumnType("decimal(18,2)");
  5928. entity.Property(e => e.QrCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5929. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5930. entity.Property(e => e.QrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5931. entity.Property(e => e.QrDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5932. entity.Property(e => e.QrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5933. entity.Property(e => e.QrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5934. entity.Property(e => e.QrDebitProfitRate).HasColumnType("decimal(18,2)");
  5935. entity.Property(e => e.QrDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5936. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5937. entity.Property(e => e.RecordNo)
  5938. .HasColumnType("varchar(32)")
  5939. .HasCharSet("utf8")
  5940. .HasCollation("utf8_general_ci");
  5941. entity.Property(e => e.Remark)
  5942. .HasColumnType("varchar(64)")
  5943. .HasCharSet("utf8")
  5944. .HasCollation("utf8_general_ci");
  5945. entity.Property(e => e.SeoDescription)
  5946. .HasColumnType("varchar(500)")
  5947. .HasCharSet("utf8")
  5948. .HasCollation("utf8_general_ci");
  5949. entity.Property(e => e.SeoKeyword)
  5950. .HasColumnType("varchar(200)")
  5951. .HasCharSet("utf8")
  5952. .HasCollation("utf8_general_ci");
  5953. entity.Property(e => e.SeoTitle)
  5954. .HasColumnType("varchar(100)")
  5955. .HasCharSet("utf8")
  5956. .HasCollation("utf8_general_ci");
  5957. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5958. entity.Property(e => e.Status).HasColumnType("int(11)");
  5959. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  5960. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  5961. entity.Property(e => e.TradeMonth)
  5962. .HasColumnType("varchar(6)")
  5963. .HasCharSet("utf8")
  5964. .HasCollation("utf8_general_ci");
  5965. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  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.UserId).HasColumnType("int(11)");
  5972. entity.Property(e => e.Version).HasColumnType("int(11)");
  5973. });
  5974. modelBuilder.Entity<ProfitSubsidyDetail>(entity =>
  5975. {
  5976. entity.Property(e => e.Id).HasColumnType("int(11)");
  5977. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  5978. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5979. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5980. entity.Property(e => e.CreateMan)
  5981. .HasColumnType("varchar(50)")
  5982. .HasCharSet("utf8")
  5983. .HasCollation("utf8_general_ci");
  5984. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  5985. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5986. entity.Property(e => e.MerHelpFlag)
  5987. .HasColumnType("bit(1)")
  5988. .HasDefaultValueSql("b'0'");
  5989. entity.Property(e => e.MerNo)
  5990. .HasColumnType("varchar(32)")
  5991. .HasCharSet("utf8")
  5992. .HasCollation("utf8_general_ci");
  5993. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  5994. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  5995. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5996. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5997. entity.Property(e => e.ProductName)
  5998. .HasColumnType("varchar(16)")
  5999. .HasCharSet("utf8")
  6000. .HasCollation("utf8_general_ci");
  6001. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6002. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6003. entity.Property(e => e.RecordNo)
  6004. .HasColumnType("varchar(32)")
  6005. .HasCharSet("utf8")
  6006. .HasCollation("utf8_general_ci");
  6007. entity.Property(e => e.Remark)
  6008. .HasColumnType("varchar(64)")
  6009. .HasCharSet("utf8")
  6010. .HasCollation("utf8_general_ci");
  6011. entity.Property(e => e.SeoDescription)
  6012. .HasColumnType("varchar(500)")
  6013. .HasCharSet("utf8")
  6014. .HasCollation("utf8_general_ci");
  6015. entity.Property(e => e.SeoKeyword)
  6016. .HasColumnType("varchar(200)")
  6017. .HasCharSet("utf8")
  6018. .HasCollation("utf8_general_ci");
  6019. entity.Property(e => e.SeoTitle)
  6020. .HasColumnType("varchar(100)")
  6021. .HasCharSet("utf8")
  6022. .HasCollation("utf8_general_ci");
  6023. entity.Property(e => e.SnNo)
  6024. .HasColumnType("varchar(32)")
  6025. .HasCharSet("utf8")
  6026. .HasCollation("utf8_general_ci");
  6027. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6028. entity.Property(e => e.Status).HasColumnType("int(11)");
  6029. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  6030. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  6031. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  6032. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  6033. entity.Property(e => e.TradeMonth)
  6034. .HasColumnType("varchar(6)")
  6035. .HasCharSet("utf8")
  6036. .HasCollation("utf8_general_ci");
  6037. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6038. entity.Property(e => e.UpdateMan)
  6039. .HasColumnType("varchar(50)")
  6040. .HasCharSet("utf8")
  6041. .HasCollation("utf8_general_ci");
  6042. entity.Property(e => e.Version).HasColumnType("int(11)");
  6043. });
  6044. modelBuilder.Entity<PublicAccountSet>(entity =>
  6045. {
  6046. entity.Property(e => e.Id).HasColumnType("int(11)");
  6047. entity.Property(e => e.AlipayAppId)
  6048. .HasColumnType("varchar(50)")
  6049. .HasCharSet("utf8")
  6050. .HasCollation("utf8_general_ci");
  6051. entity.Property(e => e.AlipayPartnerId)
  6052. .HasColumnType("varchar(50)")
  6053. .HasCharSet("utf8")
  6054. .HasCollation("utf8_general_ci");
  6055. entity.Property(e => e.AlipayPrivateKey)
  6056. .HasColumnType("mediumtext")
  6057. .HasCharSet("utf8")
  6058. .HasCollation("utf8_general_ci");
  6059. entity.Property(e => e.AlipayPublicKey)
  6060. .HasColumnType("mediumtext")
  6061. .HasCharSet("utf8")
  6062. .HasCollation("utf8_general_ci");
  6063. entity.Property(e => e.AliyunAccessKeyId)
  6064. .HasColumnType("varchar(50)")
  6065. .HasCharSet("utf8")
  6066. .HasCollation("utf8_general_ci");
  6067. entity.Property(e => e.AliyunAccessKeySecret)
  6068. .HasColumnType("varchar(50)")
  6069. .HasCharSet("utf8")
  6070. .HasCollation("utf8_general_ci");
  6071. entity.Property(e => e.AliyunAndroidActivity)
  6072. .HasColumnType("varchar(100)")
  6073. .HasCharSet("utf8")
  6074. .HasCollation("utf8_general_ci");
  6075. entity.Property(e => e.AliyunAndroidNotifyTitle)
  6076. .HasColumnType("varchar(20)")
  6077. .HasCharSet("utf8")
  6078. .HasCollation("utf8_general_ci");
  6079. entity.Property(e => e.AliyunPushAndroidAppId)
  6080. .HasColumnType("varchar(50)")
  6081. .HasCharSet("utf8")
  6082. .HasCollation("utf8_general_ci");
  6083. entity.Property(e => e.AliyunPushAndroidAppSecret)
  6084. .HasColumnType("varchar(50)")
  6085. .HasCharSet("utf8")
  6086. .HasCollation("utf8_general_ci");
  6087. entity.Property(e => e.AliyunPushIosAppId)
  6088. .HasColumnType("varchar(500)")
  6089. .HasCharSet("utf8")
  6090. .HasCollation("utf8_general_ci");
  6091. entity.Property(e => e.AliyunPushIosAppSecret)
  6092. .HasColumnType("varchar(50)")
  6093. .HasCharSet("utf8")
  6094. .HasCollation("utf8_general_ci");
  6095. entity.Property(e => e.AliyunRegionId)
  6096. .HasColumnType("varchar(30)")
  6097. .HasCharSet("utf8")
  6098. .HasCollation("utf8_general_ci");
  6099. entity.Property(e => e.ErpApiUrl)
  6100. .HasColumnType("varchar(200)")
  6101. .HasCharSet("utf8")
  6102. .HasCollation("utf8_general_ci");
  6103. entity.Property(e => e.ErpAppCode)
  6104. .HasColumnType("varchar(100)")
  6105. .HasCharSet("utf8")
  6106. .HasCollation("utf8_general_ci");
  6107. entity.Property(e => e.MeiQiaAppKey)
  6108. .HasColumnType("varchar(50)")
  6109. .HasCharSet("utf8")
  6110. .HasCollation("utf8_general_ci");
  6111. entity.Property(e => e.MobAppKey)
  6112. .HasColumnType("varchar(50)")
  6113. .HasCharSet("utf8")
  6114. .HasCollation("utf8_general_ci");
  6115. entity.Property(e => e.MobAppSecret)
  6116. .HasColumnType("varchar(50)")
  6117. .HasCharSet("utf8")
  6118. .HasCollation("utf8_general_ci");
  6119. entity.Property(e => e.QqAndroidAppId)
  6120. .HasColumnType("varchar(50)")
  6121. .HasCharSet("utf8")
  6122. .HasCollation("utf8_general_ci");
  6123. entity.Property(e => e.QqAndroidAppKey)
  6124. .HasColumnType("varchar(50)")
  6125. .HasCharSet("utf8")
  6126. .HasCollation("utf8_general_ci");
  6127. entity.Property(e => e.QqIosAppId)
  6128. .HasColumnType("varchar(50)")
  6129. .HasCharSet("utf8")
  6130. .HasCollation("utf8_general_ci");
  6131. entity.Property(e => e.QqIosAppKey)
  6132. .HasColumnType("varchar(50)")
  6133. .HasCharSet("utf8")
  6134. .HasCollation("utf8_general_ci");
  6135. entity.Property(e => e.ServerIp)
  6136. .HasColumnType("varchar(15)")
  6137. .HasCharSet("utf8")
  6138. .HasCollation("utf8_general_ci");
  6139. entity.Property(e => e.SmsApiDefaultTemplate)
  6140. .HasColumnType("varchar(200)")
  6141. .HasCharSet("utf8")
  6142. .HasCollation("utf8_general_ci");
  6143. entity.Property(e => e.SmsApiPwd)
  6144. .HasColumnType("varchar(50)")
  6145. .HasCharSet("utf8")
  6146. .HasCollation("utf8_general_ci");
  6147. entity.Property(e => e.SmsApiSign)
  6148. .HasColumnType("varchar(10)")
  6149. .HasCharSet("utf8")
  6150. .HasCollation("utf8_general_ci");
  6151. entity.Property(e => e.SmsApiUserId)
  6152. .HasColumnType("varchar(50)")
  6153. .HasCharSet("utf8")
  6154. .HasCollation("utf8_general_ci");
  6155. entity.Property(e => e.WeChatAppId)
  6156. .HasColumnType("varchar(50)")
  6157. .HasCharSet("utf8")
  6158. .HasCollation("utf8_general_ci");
  6159. entity.Property(e => e.WeChatAppSecret)
  6160. .HasColumnType("varchar(50)")
  6161. .HasCharSet("utf8")
  6162. .HasCollation("utf8_general_ci");
  6163. entity.Property(e => e.WeChatMchId)
  6164. .HasColumnType("varchar(20)")
  6165. .HasCharSet("utf8")
  6166. .HasCollation("utf8_general_ci");
  6167. entity.Property(e => e.WeChatMiniAppId)
  6168. .HasColumnType("varchar(50)")
  6169. .HasCharSet("utf8")
  6170. .HasCollation("utf8_general_ci");
  6171. entity.Property(e => e.WeChatMiniAppSecret)
  6172. .HasColumnType("varchar(50)")
  6173. .HasCharSet("utf8")
  6174. .HasCollation("utf8_general_ci");
  6175. entity.Property(e => e.WeChatOpenAppId)
  6176. .HasColumnType("varchar(50)")
  6177. .HasCharSet("utf8")
  6178. .HasCollation("utf8_general_ci");
  6179. entity.Property(e => e.WeChatOpenAppSecret)
  6180. .HasColumnType("varchar(50)")
  6181. .HasCharSet("utf8")
  6182. .HasCollation("utf8_general_ci");
  6183. entity.Property(e => e.WeChatPayKey)
  6184. .HasColumnType("varchar(50)")
  6185. .HasCharSet("utf8")
  6186. .HasCollation("utf8_general_ci");
  6187. });
  6188. modelBuilder.Entity<PullNewAct>(entity =>
  6189. {
  6190. entity.Property(e => e.Id).HasColumnType("int(11)");
  6191. entity.Property(e => e.ActEffectEndDate).HasColumnType("datetime");
  6192. entity.Property(e => e.ActEffectStartDate).HasColumnType("datetime");
  6193. entity.Property(e => e.ActStdCond)
  6194. .HasColumnType("varchar(32)")
  6195. .HasCharSet("utf8")
  6196. .HasCollation("utf8_general_ci");
  6197. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6198. entity.Property(e => e.CreateMan)
  6199. .HasColumnType("varchar(50)")
  6200. .HasCharSet("utf8")
  6201. .HasCollation("utf8_general_ci");
  6202. entity.Property(e => e.ProductName)
  6203. .HasColumnType("varchar(32)")
  6204. .HasCharSet("utf8")
  6205. .HasCollation("utf8_general_ci");
  6206. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6207. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6208. entity.Property(e => e.Remark)
  6209. .HasColumnType("varchar(128)")
  6210. .HasCharSet("utf8")
  6211. .HasCollation("utf8_general_ci");
  6212. entity.Property(e => e.SeoDescription)
  6213. .HasColumnType("varchar(500)")
  6214. .HasCharSet("utf8")
  6215. .HasCollation("utf8_general_ci");
  6216. entity.Property(e => e.SeoKeyword)
  6217. .HasColumnType("varchar(200)")
  6218. .HasCharSet("utf8")
  6219. .HasCollation("utf8_general_ci");
  6220. entity.Property(e => e.SeoTitle)
  6221. .HasColumnType("varchar(100)")
  6222. .HasCharSet("utf8")
  6223. .HasCollation("utf8_general_ci");
  6224. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  6225. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6226. entity.Property(e => e.Status).HasColumnType("int(11)");
  6227. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6228. entity.Property(e => e.UpdateMan)
  6229. .HasColumnType("varchar(50)")
  6230. .HasCharSet("utf8")
  6231. .HasCollation("utf8_general_ci");
  6232. entity.Property(e => e.Version).HasColumnType("int(11)");
  6233. });
  6234. modelBuilder.Entity<PullNewDetail>(entity =>
  6235. {
  6236. entity.Property(e => e.Id).HasColumnType("int(11)");
  6237. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6238. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6239. entity.Property(e => e.CreateMan)
  6240. .HasColumnType("varchar(50)")
  6241. .HasCharSet("utf8")
  6242. .HasCollation("utf8_general_ci");
  6243. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6244. entity.Property(e => e.RecMallBrandId).HasColumnType("int(11)");
  6245. entity.Property(e => e.RecMallOrder)
  6246. .HasColumnType("varchar(32)")
  6247. .HasCharSet("utf8")
  6248. .HasCollation("utf8_general_ci");
  6249. entity.Property(e => e.RecMallOrderTime).HasColumnType("datetime");
  6250. entity.Property(e => e.RecMallProductName)
  6251. .HasColumnType("varchar(32)")
  6252. .HasCharSet("utf8")
  6253. .HasCollation("utf8_general_ci");
  6254. entity.Property(e => e.RecMallProductNum).HasColumnType("int(11)");
  6255. entity.Property(e => e.RecMallSendTime).HasColumnType("datetime");
  6256. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  6257. entity.Property(e => e.RecUserType).HasColumnType("int(11)");
  6258. entity.Property(e => e.RegDate).HasColumnType("datetime");
  6259. entity.Property(e => e.Remark)
  6260. .HasColumnType("varchar(64)")
  6261. .HasCharSet("utf8")
  6262. .HasCollation("utf8_general_ci");
  6263. entity.Property(e => e.RewardStatus).HasColumnType("int(11)");
  6264. entity.Property(e => e.SeoDescription)
  6265. .HasColumnType("varchar(500)")
  6266. .HasCharSet("utf8")
  6267. .HasCollation("utf8_general_ci");
  6268. entity.Property(e => e.SeoKeyword)
  6269. .HasColumnType("varchar(200)")
  6270. .HasCharSet("utf8")
  6271. .HasCollation("utf8_general_ci");
  6272. entity.Property(e => e.SeoTitle)
  6273. .HasColumnType("varchar(100)")
  6274. .HasCharSet("utf8")
  6275. .HasCollation("utf8_general_ci");
  6276. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6277. entity.Property(e => e.StatDate)
  6278. .HasColumnType("varchar(8)")
  6279. .HasCharSet("utf8")
  6280. .HasCollation("utf8_general_ci");
  6281. entity.Property(e => e.StatMonth)
  6282. .HasColumnType("varchar(6)")
  6283. .HasCharSet("utf8")
  6284. .HasCollation("utf8_general_ci");
  6285. entity.Property(e => e.StatType).HasColumnType("int(11)");
  6286. entity.Property(e => e.Status).HasColumnType("int(11)");
  6287. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6288. entity.Property(e => e.UpdateMan)
  6289. .HasColumnType("varchar(50)")
  6290. .HasCharSet("utf8")
  6291. .HasCollation("utf8_general_ci");
  6292. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6293. entity.Property(e => e.Version).HasColumnType("int(11)");
  6294. });
  6295. modelBuilder.Entity<PullnewSummary>(entity =>
  6296. {
  6297. entity.Property(e => e.Id).HasColumnType("int(11)");
  6298. entity.Property(e => e.BizSnDelayDay).HasColumnType("int(11)");
  6299. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6300. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6301. entity.Property(e => e.CreateMan)
  6302. .HasColumnType("varchar(50)")
  6303. .HasCharSet("utf8")
  6304. .HasCollation("utf8_general_ci");
  6305. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6306. entity.Property(e => e.RecUserAuthNum).HasColumnType("int(11)");
  6307. entity.Property(e => e.RecUserDeliveryStdNum).HasColumnType("int(11)");
  6308. entity.Property(e => e.Remark)
  6309. .HasColumnType("varchar(64)")
  6310. .HasCharSet("utf8")
  6311. .HasCollation("utf8_general_ci");
  6312. entity.Property(e => e.RuleSnDelayDay).HasColumnType("int(11)");
  6313. entity.Property(e => e.SeoDescription)
  6314. .HasColumnType("varchar(500)")
  6315. .HasCharSet("utf8")
  6316. .HasCollation("utf8_general_ci");
  6317. entity.Property(e => e.SeoKeyword)
  6318. .HasColumnType("varchar(200)")
  6319. .HasCharSet("utf8")
  6320. .HasCollation("utf8_general_ci");
  6321. entity.Property(e => e.SeoTitle)
  6322. .HasColumnType("varchar(100)")
  6323. .HasCharSet("utf8")
  6324. .HasCollation("utf8_general_ci");
  6325. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6326. entity.Property(e => e.StatDate)
  6327. .HasColumnType("varchar(8)")
  6328. .HasCharSet("utf8")
  6329. .HasCollation("utf8_general_ci");
  6330. entity.Property(e => e.StatMonth)
  6331. .HasColumnType("varchar(6)")
  6332. .HasCharSet("utf8")
  6333. .HasCollation("utf8_general_ci");
  6334. entity.Property(e => e.Status).HasColumnType("int(11)");
  6335. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6336. entity.Property(e => e.UpdateMan)
  6337. .HasColumnType("varchar(50)")
  6338. .HasCharSet("utf8")
  6339. .HasCollation("utf8_general_ci");
  6340. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6341. entity.Property(e => e.Version).HasColumnType("int(11)");
  6342. });
  6343. modelBuilder.Entity<RightDic>(entity =>
  6344. {
  6345. entity.Property(e => e.Id)
  6346. .HasColumnName("ID")
  6347. .HasColumnType("varchar(50)")
  6348. .HasCharSet("utf8")
  6349. .HasCollation("utf8_general_ci");
  6350. entity.Property(e => e.Icon)
  6351. .HasColumnType("varchar(50)")
  6352. .HasCharSet("utf8")
  6353. .HasCollation("utf8_general_ci");
  6354. entity.Property(e => e.MainDataList)
  6355. .HasColumnType("bit(1)")
  6356. .HasDefaultValueSql("b'0'");
  6357. entity.Property(e => e.MainMenu)
  6358. .HasColumnType("bit(1)")
  6359. .HasDefaultValueSql("b'0'");
  6360. entity.Property(e => e.MainStat)
  6361. .HasColumnType("bit(1)")
  6362. .HasDefaultValueSql("b'0'");
  6363. entity.Property(e => e.Name)
  6364. .HasColumnType("varchar(50)")
  6365. .HasCharSet("utf8")
  6366. .HasCollation("utf8_general_ci");
  6367. entity.Property(e => e.OtherRight)
  6368. .HasColumnType("varchar(500)")
  6369. .HasCharSet("utf8")
  6370. .HasCollation("utf8_general_ci");
  6371. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  6372. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6373. entity.Property(e => e.Url)
  6374. .HasColumnType("varchar(200)")
  6375. .HasCharSet("utf8")
  6376. .HasCollation("utf8_general_ci");
  6377. });
  6378. modelBuilder.Entity<ServiceCenter>(entity =>
  6379. {
  6380. entity.Property(e => e.Id).HasColumnType("int(11)");
  6381. entity.Property(e => e.CategoryId).HasColumnType("int(11)");
  6382. entity.Property(e => e.Content)
  6383. .HasColumnType("longtext")
  6384. .HasCharSet("utf8")
  6385. .HasCollation("utf8_general_ci");
  6386. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6387. entity.Property(e => e.CreateMan)
  6388. .HasColumnType("varchar(50)")
  6389. .HasCharSet("utf8")
  6390. .HasCollation("utf8_general_ci");
  6391. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6392. entity.Property(e => e.SeoDescription)
  6393. .HasColumnType("varchar(500)")
  6394. .HasCharSet("utf8")
  6395. .HasCollation("utf8_general_ci");
  6396. entity.Property(e => e.SeoKeyword)
  6397. .HasColumnType("varchar(200)")
  6398. .HasCharSet("utf8")
  6399. .HasCollation("utf8_general_ci");
  6400. entity.Property(e => e.SeoTitle)
  6401. .HasColumnType("varchar(100)")
  6402. .HasCharSet("utf8")
  6403. .HasCollation("utf8_general_ci");
  6404. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6405. entity.Property(e => e.Status).HasColumnType("int(11)");
  6406. entity.Property(e => e.SubTitle)
  6407. .HasColumnType("varchar(50)")
  6408. .HasCharSet("utf8")
  6409. .HasCollation("utf8_general_ci");
  6410. entity.Property(e => e.Title)
  6411. .HasColumnType("varchar(50)")
  6412. .HasCharSet("utf8")
  6413. .HasCollation("utf8_general_ci");
  6414. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6415. entity.Property(e => e.UpdateMan)
  6416. .HasColumnType("varchar(50)")
  6417. .HasCharSet("utf8")
  6418. .HasCollation("utf8_general_ci");
  6419. entity.Property(e => e.Version).HasColumnType("int(11)");
  6420. });
  6421. modelBuilder.Entity<StoreBalance>(entity =>
  6422. {
  6423. entity.Property(e => e.Id).HasColumnType("int(11)");
  6424. entity.Property(e => e.AfterLaveNum).HasColumnType("int(11)");
  6425. entity.Property(e => e.AfterOutNum).HasColumnType("int(11)");
  6426. entity.Property(e => e.AfterTotalNum).HasColumnType("int(11)");
  6427. entity.Property(e => e.BeforeLaveNum).HasColumnType("int(11)");
  6428. entity.Property(e => e.BeforeOutNum).HasColumnType("int(11)");
  6429. entity.Property(e => e.BeforeTotalNum).HasColumnType("int(11)");
  6430. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6431. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6432. entity.Property(e => e.CreateMan)
  6433. .HasColumnType("varchar(50)")
  6434. .HasCharSet("utf8")
  6435. .HasCollation("utf8_general_ci");
  6436. entity.Property(e => e.OpStoreNum).HasColumnType("int(11)");
  6437. entity.Property(e => e.OpSymbol)
  6438. .HasColumnType("varchar(1)")
  6439. .HasCharSet("utf8")
  6440. .HasCollation("utf8_general_ci");
  6441. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6442. entity.Property(e => e.SeoDescription)
  6443. .HasColumnType("varchar(500)")
  6444. .HasCharSet("utf8")
  6445. .HasCollation("utf8_general_ci");
  6446. entity.Property(e => e.SeoKeyword)
  6447. .HasColumnType("varchar(200)")
  6448. .HasCharSet("utf8")
  6449. .HasCollation("utf8_general_ci");
  6450. entity.Property(e => e.SeoTitle)
  6451. .HasColumnType("varchar(100)")
  6452. .HasCharSet("utf8")
  6453. .HasCollation("utf8_general_ci");
  6454. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6455. entity.Property(e => e.Status).HasColumnType("int(11)");
  6456. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6457. entity.Property(e => e.TransRecordNo)
  6458. .HasColumnType("varchar(32)")
  6459. .HasCharSet("utf8")
  6460. .HasCollation("utf8_general_ci");
  6461. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6462. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6463. entity.Property(e => e.UpdateMan)
  6464. .HasColumnType("varchar(50)")
  6465. .HasCharSet("utf8")
  6466. .HasCollation("utf8_general_ci");
  6467. entity.Property(e => e.Version).HasColumnType("int(11)");
  6468. });
  6469. modelBuilder.Entity<StoreChangeHistory>(entity =>
  6470. {
  6471. entity.Property(e => e.Id).HasColumnType("int(11)");
  6472. entity.Property(e => e.BizBatchNo)
  6473. .HasColumnType("varchar(32)")
  6474. .HasCharSet("utf8")
  6475. .HasCollation("utf8_general_ci");
  6476. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6477. entity.Property(e => e.ChangeRecordNo)
  6478. .HasColumnType("varchar(32)")
  6479. .HasCharSet("utf8")
  6480. .HasCollation("utf8_general_ci");
  6481. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6482. entity.Property(e => e.CreateMan)
  6483. .HasColumnType("varchar(50)")
  6484. .HasCharSet("utf8")
  6485. .HasCollation("utf8_general_ci");
  6486. entity.Property(e => e.DeviceModel)
  6487. .HasColumnType("varchar(32)")
  6488. .HasCharSet("utf8")
  6489. .HasCollation("utf8_general_ci");
  6490. entity.Property(e => e.DeviceType)
  6491. .HasColumnType("varchar(32)")
  6492. .HasCharSet("utf8")
  6493. .HasCollation("utf8_general_ci");
  6494. entity.Property(e => e.DeviceVendor)
  6495. .HasColumnType("varchar(32)")
  6496. .HasCharSet("utf8")
  6497. .HasCollation("utf8_general_ci");
  6498. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6499. entity.Property(e => e.FromRemark)
  6500. .HasColumnType("varchar(64)")
  6501. .HasCharSet("utf8")
  6502. .HasCollation("utf8_general_ci");
  6503. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6504. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6505. entity.Property(e => e.SeoDescription)
  6506. .HasColumnType("varchar(500)")
  6507. .HasCharSet("utf8")
  6508. .HasCollation("utf8_general_ci");
  6509. entity.Property(e => e.SeoKeyword)
  6510. .HasColumnType("varchar(200)")
  6511. .HasCharSet("utf8")
  6512. .HasCollation("utf8_general_ci");
  6513. entity.Property(e => e.SeoTitle)
  6514. .HasColumnType("varchar(100)")
  6515. .HasCharSet("utf8")
  6516. .HasCollation("utf8_general_ci");
  6517. entity.Property(e => e.SnNo)
  6518. .HasColumnType("varchar(32)")
  6519. .HasCharSet("utf8")
  6520. .HasCollation("utf8_general_ci");
  6521. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6522. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6523. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6524. entity.Property(e => e.Status).HasColumnType("int(11)");
  6525. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6526. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6527. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6528. entity.Property(e => e.ToRemark)
  6529. .HasColumnType("varchar(64)")
  6530. .HasCharSet("utf8")
  6531. .HasCollation("utf8_general_ci");
  6532. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6533. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6534. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6535. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6536. entity.Property(e => e.UpdateMan)
  6537. .HasColumnType("varchar(50)")
  6538. .HasCharSet("utf8")
  6539. .HasCollation("utf8_general_ci");
  6540. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6541. entity.Property(e => e.Version).HasColumnType("int(11)");
  6542. });
  6543. modelBuilder.Entity<StoreForCode>(entity =>
  6544. {
  6545. entity.HasKey(e => e.Code)
  6546. .HasName("PRIMARY");
  6547. entity.Property(e => e.Code)
  6548. .HasColumnType("varchar(30)")
  6549. .HasCharSet("utf8")
  6550. .HasCollation("utf8_general_ci");
  6551. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6552. });
  6553. modelBuilder.Entity<StoreForName>(entity =>
  6554. {
  6555. entity.HasKey(e => e.Name)
  6556. .HasName("PRIMARY");
  6557. entity.Property(e => e.Name)
  6558. .HasColumnType("varchar(30)")
  6559. .HasCharSet("utf8")
  6560. .HasCollation("utf8_general_ci");
  6561. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6562. });
  6563. modelBuilder.Entity<StoreHouse>(entity =>
  6564. {
  6565. entity.Property(e => e.Id).HasColumnType("int(11)");
  6566. entity.Property(e => e.Address)
  6567. .HasColumnType("varchar(128)")
  6568. .HasCharSet("utf8")
  6569. .HasCollation("utf8_general_ci");
  6570. entity.Property(e => e.Areas)
  6571. .HasColumnType("varchar(30)")
  6572. .HasCharSet("utf8")
  6573. .HasCollation("utf8_general_ci");
  6574. entity.Property(e => e.BrandId)
  6575. .HasColumnType("varchar(30)")
  6576. .HasCharSet("utf8")
  6577. .HasCollation("utf8_general_ci");
  6578. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6579. entity.Property(e => e.CreateMan)
  6580. .HasColumnType("varchar(50)")
  6581. .HasCharSet("utf8")
  6582. .HasCollation("utf8_general_ci");
  6583. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  6584. entity.Property(e => e.LimitTopUserId)
  6585. .HasColumnType("varchar(100)")
  6586. .HasCharSet("utf8")
  6587. .HasCollation("utf8_general_ci");
  6588. entity.Property(e => e.ManageMobile)
  6589. .HasColumnType("varchar(11)")
  6590. .HasCharSet("utf8")
  6591. .HasCollation("utf8_general_ci");
  6592. entity.Property(e => e.ManageUserId).HasColumnType("int(11)");
  6593. entity.Property(e => e.ManagerEmail)
  6594. .HasColumnType("varchar(32)")
  6595. .HasCharSet("utf8")
  6596. .HasCollation("utf8_general_ci");
  6597. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  6598. entity.Property(e => e.ParentNav)
  6599. .HasColumnType("longtext")
  6600. .HasCharSet("utf8")
  6601. .HasCollation("utf8_general_ci");
  6602. entity.Property(e => e.ParentStoreId).HasColumnType("int(11)");
  6603. entity.Property(e => e.ProductName)
  6604. .HasColumnType("varchar(32)")
  6605. .HasCharSet("utf8")
  6606. .HasCollation("utf8_general_ci");
  6607. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6608. entity.Property(e => e.Remark)
  6609. .HasColumnType("varchar(128)")
  6610. .HasCharSet("utf8")
  6611. .HasCollation("utf8_general_ci");
  6612. entity.Property(e => e.SeoDescription)
  6613. .HasColumnType("varchar(500)")
  6614. .HasCharSet("utf8")
  6615. .HasCollation("utf8_general_ci");
  6616. entity.Property(e => e.SeoKeyword)
  6617. .HasColumnType("varchar(200)")
  6618. .HasCharSet("utf8")
  6619. .HasCollation("utf8_general_ci");
  6620. entity.Property(e => e.SeoTitle)
  6621. .HasColumnType("varchar(100)")
  6622. .HasCharSet("utf8")
  6623. .HasCollation("utf8_general_ci");
  6624. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6625. entity.Property(e => e.Status).HasColumnType("int(11)");
  6626. entity.Property(e => e.StoreKind).HasColumnType("int(11)");
  6627. entity.Property(e => e.StoreName)
  6628. .HasColumnType("varchar(32)")
  6629. .HasCharSet("utf8")
  6630. .HasCollation("utf8_general_ci");
  6631. entity.Property(e => e.StoreNo)
  6632. .HasColumnType("varchar(16)")
  6633. .HasCharSet("utf8")
  6634. .HasCollation("utf8_general_ci");
  6635. entity.Property(e => e.StoreStatus).HasColumnType("int(11)");
  6636. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  6637. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  6638. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6639. entity.Property(e => e.UpdateMan)
  6640. .HasColumnType("varchar(50)")
  6641. .HasCharSet("utf8")
  6642. .HasCollation("utf8_general_ci");
  6643. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6644. entity.Property(e => e.Version).HasColumnType("int(11)");
  6645. });
  6646. modelBuilder.Entity<StoreMallOrderSummary>(entity =>
  6647. {
  6648. entity.Property(e => e.Id).HasColumnType("int(11)");
  6649. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6650. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6651. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6652. entity.Property(e => e.CreateMan)
  6653. .HasColumnType("varchar(50)")
  6654. .HasCharSet("utf8")
  6655. .HasCollation("utf8_general_ci");
  6656. entity.Property(e => e.OrderAmt).HasColumnType("int(11)");
  6657. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  6658. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6659. entity.Property(e => e.RefundAmt).HasColumnType("decimal(18,2)");
  6660. entity.Property(e => e.RefundOrderNum).HasColumnType("int(11)");
  6661. entity.Property(e => e.Remark)
  6662. .HasColumnType("varchar(64)")
  6663. .HasCharSet("utf8")
  6664. .HasCollation("utf8_general_ci");
  6665. entity.Property(e => e.SeoDescription)
  6666. .HasColumnType("varchar(500)")
  6667. .HasCharSet("utf8")
  6668. .HasCollation("utf8_general_ci");
  6669. entity.Property(e => e.SeoKeyword)
  6670. .HasColumnType("varchar(200)")
  6671. .HasCharSet("utf8")
  6672. .HasCollation("utf8_general_ci");
  6673. entity.Property(e => e.SeoTitle)
  6674. .HasColumnType("varchar(100)")
  6675. .HasCharSet("utf8")
  6676. .HasCollation("utf8_general_ci");
  6677. entity.Property(e => e.SettleAmt).HasColumnType("decimal(18,2)");
  6678. entity.Property(e => e.SettleStatus).HasColumnType("int(11)");
  6679. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6680. entity.Property(e => e.Status).HasColumnType("int(11)");
  6681. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6682. entity.Property(e => e.TradeMonth)
  6683. .HasColumnType("varchar(6)")
  6684. .HasCharSet("utf8")
  6685. .HasCollation("utf8_general_ci");
  6686. entity.Property(e => e.UnitPrice).HasColumnType("decimal(18,2)");
  6687. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6688. entity.Property(e => e.UpdateMan)
  6689. .HasColumnType("varchar(50)")
  6690. .HasCharSet("utf8")
  6691. .HasCollation("utf8_general_ci");
  6692. entity.Property(e => e.Version).HasColumnType("int(11)");
  6693. });
  6694. modelBuilder.Entity<StoreSnActivateSummary>(entity =>
  6695. {
  6696. entity.Property(e => e.Id).HasColumnType("int(11)");
  6697. entity.Property(e => e.ActivateNum).HasColumnType("int(11)");
  6698. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6699. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6700. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6701. entity.Property(e => e.CreateMan)
  6702. .HasColumnType("varchar(50)")
  6703. .HasCharSet("utf8")
  6704. .HasCollation("utf8_general_ci");
  6705. entity.Property(e => e.EffectActNum).HasColumnType("int(11)");
  6706. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6707. entity.Property(e => e.RejectActNum).HasColumnType("int(11)");
  6708. entity.Property(e => e.Remark)
  6709. .HasColumnType("varchar(64)")
  6710. .HasCharSet("utf8")
  6711. .HasCollation("utf8_general_ci");
  6712. entity.Property(e => e.SeoDescription)
  6713. .HasColumnType("varchar(500)")
  6714. .HasCharSet("utf8")
  6715. .HasCollation("utf8_general_ci");
  6716. entity.Property(e => e.SeoKeyword)
  6717. .HasColumnType("varchar(200)")
  6718. .HasCharSet("utf8")
  6719. .HasCollation("utf8_general_ci");
  6720. entity.Property(e => e.SeoTitle)
  6721. .HasColumnType("varchar(100)")
  6722. .HasCharSet("utf8")
  6723. .HasCollation("utf8_general_ci");
  6724. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6725. entity.Property(e => e.Status).HasColumnType("int(11)");
  6726. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6727. entity.Property(e => e.TradeDate)
  6728. .HasColumnType("varchar(8)")
  6729. .HasCharSet("utf8")
  6730. .HasCollation("utf8_general_ci");
  6731. entity.Property(e => e.TradeMonth)
  6732. .HasColumnType("varchar(6)")
  6733. .HasCharSet("utf8")
  6734. .HasCollation("utf8_general_ci");
  6735. entity.Property(e => e.TransferActNum).HasColumnType("int(11)");
  6736. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6737. entity.Property(e => e.UpdateMan)
  6738. .HasColumnType("varchar(50)")
  6739. .HasCharSet("utf8")
  6740. .HasCollation("utf8_general_ci");
  6741. entity.Property(e => e.UserApplyNum).HasColumnType("int(11)");
  6742. entity.Property(e => e.Version).HasColumnType("int(11)");
  6743. });
  6744. modelBuilder.Entity<StoreStockChange>(entity =>
  6745. {
  6746. entity.Property(e => e.Id).HasColumnType("int(11)");
  6747. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  6748. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  6749. entity.Property(e => e.BindMerchant).HasColumnType("int(11)");
  6750. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  6751. entity.Property(e => e.BizBatchNo)
  6752. .HasColumnType("varchar(32)")
  6753. .HasCharSet("utf8")
  6754. .HasCollation("utf8_general_ci");
  6755. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6756. entity.Property(e => e.BrandType)
  6757. .HasColumnType("varchar(10)")
  6758. .HasCharSet("utf8")
  6759. .HasCollation("utf8_general_ci");
  6760. entity.Property(e => e.ChangeNo)
  6761. .HasColumnType("varchar(32)")
  6762. .HasCharSet("utf8")
  6763. .HasCollation("utf8_general_ci");
  6764. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6765. entity.Property(e => e.CreateMan)
  6766. .HasColumnType("varchar(50)")
  6767. .HasCharSet("utf8")
  6768. .HasCollation("utf8_general_ci");
  6769. entity.Property(e => e.DeviceModel)
  6770. .HasColumnType("varchar(32)")
  6771. .HasCharSet("utf8")
  6772. .HasCollation("utf8_general_ci");
  6773. entity.Property(e => e.DeviceType)
  6774. .HasColumnType("varchar(32)")
  6775. .HasCharSet("utf8")
  6776. .HasCollation("utf8_general_ci");
  6777. entity.Property(e => e.DeviceVendor)
  6778. .HasColumnType("varchar(32)")
  6779. .HasCharSet("utf8")
  6780. .HasCollation("utf8_general_ci");
  6781. entity.Property(e => e.ExpressNo)
  6782. .HasColumnType("varchar(32)")
  6783. .HasCharSet("utf8")
  6784. .HasCollation("utf8_general_ci");
  6785. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6786. entity.Property(e => e.FromRemark)
  6787. .HasColumnType("varchar(64)")
  6788. .HasCharSet("utf8")
  6789. .HasCollation("utf8_general_ci");
  6790. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6791. entity.Property(e => e.ProductName)
  6792. .HasColumnType("varchar(32)")
  6793. .HasCharSet("utf8")
  6794. .HasCollation("utf8_general_ci");
  6795. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6796. entity.Property(e => e.SeoDescription)
  6797. .HasColumnType("varchar(500)")
  6798. .HasCharSet("utf8")
  6799. .HasCollation("utf8_general_ci");
  6800. entity.Property(e => e.SeoKeyword)
  6801. .HasColumnType("varchar(200)")
  6802. .HasCharSet("utf8")
  6803. .HasCollation("utf8_general_ci");
  6804. entity.Property(e => e.SeoTitle)
  6805. .HasColumnType("varchar(100)")
  6806. .HasCharSet("utf8")
  6807. .HasCollation("utf8_general_ci");
  6808. entity.Property(e => e.SnNo)
  6809. .HasColumnType("varchar(32)")
  6810. .HasCharSet("utf8")
  6811. .HasCollation("utf8_general_ci");
  6812. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  6813. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6814. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6815. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6816. entity.Property(e => e.Status).HasColumnType("int(11)");
  6817. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6818. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6819. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6820. entity.Property(e => e.ToRemark)
  6821. .HasColumnType("varchar(64)")
  6822. .HasCharSet("utf8")
  6823. .HasCollation("utf8_general_ci");
  6824. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6825. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6826. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6827. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6828. entity.Property(e => e.UpdateMan)
  6829. .HasColumnType("varchar(50)")
  6830. .HasCharSet("utf8")
  6831. .HasCollation("utf8_general_ci");
  6832. entity.Property(e => e.Version).HasColumnType("int(11)");
  6833. });
  6834. modelBuilder.Entity<StoreSwapSn>(entity =>
  6835. {
  6836. entity.Property(e => e.Id).HasColumnType("int(11)");
  6837. entity.Property(e => e.ActType).HasColumnType("int(11)");
  6838. entity.Property(e => e.ActTypeDesc)
  6839. .HasColumnType("varchar(64)")
  6840. .HasCharSet("utf8")
  6841. .HasCollation("utf8_general_ci");
  6842. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6843. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6844. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6845. entity.Property(e => e.CreateMan)
  6846. .HasColumnType("varchar(50)")
  6847. .HasCharSet("utf8")
  6848. .HasCollation("utf8_general_ci");
  6849. entity.Property(e => e.PosType)
  6850. .HasColumnType("varchar(32)")
  6851. .HasCharSet("utf8")
  6852. .HasCollation("utf8_general_ci");
  6853. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6854. entity.Property(e => e.Remark)
  6855. .HasColumnType("varchar(128)")
  6856. .HasCharSet("utf8")
  6857. .HasCollation("utf8_general_ci");
  6858. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  6859. entity.Property(e => e.SeoDescription)
  6860. .HasColumnType("varchar(500)")
  6861. .HasCharSet("utf8")
  6862. .HasCollation("utf8_general_ci");
  6863. entity.Property(e => e.SeoKeyword)
  6864. .HasColumnType("varchar(200)")
  6865. .HasCharSet("utf8")
  6866. .HasCollation("utf8_general_ci");
  6867. entity.Property(e => e.SeoTitle)
  6868. .HasColumnType("varchar(100)")
  6869. .HasCharSet("utf8")
  6870. .HasCollation("utf8_general_ci");
  6871. entity.Property(e => e.SnNo)
  6872. .HasColumnType("varchar(32)")
  6873. .HasCharSet("utf8")
  6874. .HasCollation("utf8_general_ci");
  6875. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  6876. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6877. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6878. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  6879. entity.Property(e => e.Status).HasColumnType("int(11)");
  6880. entity.Property(e => e.SwapApplyDate).HasColumnType("datetime");
  6881. entity.Property(e => e.SwapApplyOrderNo)
  6882. .HasColumnType("varchar(32)")
  6883. .HasCharSet("utf8")
  6884. .HasCollation("utf8_general_ci");
  6885. entity.Property(e => e.SwapExtProductTypes)
  6886. .HasColumnType("varchar(16)")
  6887. .HasCharSet("utf8")
  6888. .HasCollation("utf8_general_ci");
  6889. entity.Property(e => e.SwapSnNo)
  6890. .HasColumnType("varchar(32)")
  6891. .HasCharSet("utf8")
  6892. .HasCollation("utf8_general_ci");
  6893. entity.Property(e => e.SwapStatus).HasColumnType("int(11)");
  6894. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6895. entity.Property(e => e.UpdateMan)
  6896. .HasColumnType("varchar(50)")
  6897. .HasCharSet("utf8")
  6898. .HasCollation("utf8_general_ci");
  6899. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6900. entity.Property(e => e.Version).HasColumnType("int(11)");
  6901. });
  6902. modelBuilder.Entity<SysAdmin>(entity =>
  6903. {
  6904. entity.Property(e => e.Id).HasColumnType("int(11)");
  6905. entity.Property(e => e.AdminName)
  6906. .HasColumnType("varchar(50)")
  6907. .HasCharSet("utf8")
  6908. .HasCollation("utf8_general_ci");
  6909. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6910. entity.Property(e => e.CreateMan)
  6911. .HasColumnType("varchar(50)")
  6912. .HasCharSet("utf8")
  6913. .HasCollation("utf8_general_ci");
  6914. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  6915. entity.Property(e => e.Password)
  6916. .HasColumnType("varchar(32)")
  6917. .HasCharSet("utf8")
  6918. .HasCollation("utf8_general_ci");
  6919. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6920. entity.Property(e => e.RealName)
  6921. .HasColumnType("varchar(50)")
  6922. .HasCharSet("utf8")
  6923. .HasCollation("utf8_general_ci");
  6924. entity.Property(e => e.Role)
  6925. .HasColumnType("varchar(30)")
  6926. .HasCharSet("utf8")
  6927. .HasCollation("utf8_general_ci");
  6928. entity.Property(e => e.SeoDescription)
  6929. .HasColumnType("varchar(500)")
  6930. .HasCharSet("utf8")
  6931. .HasCollation("utf8_general_ci");
  6932. entity.Property(e => e.SeoKeyword)
  6933. .HasColumnType("varchar(200)")
  6934. .HasCharSet("utf8")
  6935. .HasCollation("utf8_general_ci");
  6936. entity.Property(e => e.SeoTitle)
  6937. .HasColumnType("varchar(100)")
  6938. .HasCharSet("utf8")
  6939. .HasCollation("utf8_general_ci");
  6940. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6941. entity.Property(e => e.Status).HasColumnType("int(11)");
  6942. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6943. entity.Property(e => e.UpdateMan)
  6944. .HasColumnType("varchar(50)")
  6945. .HasCharSet("utf8")
  6946. .HasCollation("utf8_general_ci");
  6947. entity.Property(e => e.Version).HasColumnType("int(11)");
  6948. });
  6949. modelBuilder.Entity<SysAdminRole>(entity =>
  6950. {
  6951. entity.Property(e => e.Id).HasColumnType("int(11)");
  6952. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6953. entity.Property(e => e.CreateMan)
  6954. .HasColumnType("varchar(50)")
  6955. .HasCharSet("utf8")
  6956. .HasCollation("utf8_general_ci");
  6957. entity.Property(e => e.Details)
  6958. .HasColumnType("longtext")
  6959. .HasCharSet("utf8")
  6960. .HasCollation("utf8_general_ci");
  6961. entity.Property(e => e.Name)
  6962. .HasColumnType("varchar(50)")
  6963. .HasCharSet("utf8")
  6964. .HasCollation("utf8_general_ci");
  6965. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6966. entity.Property(e => e.RightInfo)
  6967. .HasColumnType("longtext")
  6968. .HasCharSet("utf8")
  6969. .HasCollation("utf8_general_ci");
  6970. entity.Property(e => e.SeoDescription)
  6971. .HasColumnType("varchar(500)")
  6972. .HasCharSet("utf8")
  6973. .HasCollation("utf8_general_ci");
  6974. entity.Property(e => e.SeoKeyword)
  6975. .HasColumnType("varchar(200)")
  6976. .HasCharSet("utf8")
  6977. .HasCollation("utf8_general_ci");
  6978. entity.Property(e => e.SeoTitle)
  6979. .HasColumnType("varchar(100)")
  6980. .HasCharSet("utf8")
  6981. .HasCollation("utf8_general_ci");
  6982. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6983. entity.Property(e => e.Status).HasColumnType("int(11)");
  6984. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6985. entity.Property(e => e.UpdateMan)
  6986. .HasColumnType("varchar(50)")
  6987. .HasCharSet("utf8")
  6988. .HasCollation("utf8_general_ci");
  6989. entity.Property(e => e.Version).HasColumnType("int(11)");
  6990. });
  6991. modelBuilder.Entity<SysLog>(entity =>
  6992. {
  6993. entity.Property(e => e.Id).HasColumnType("int(11)");
  6994. entity.Property(e => e.Contents)
  6995. .HasColumnType("varchar(200)")
  6996. .HasCharSet("utf8")
  6997. .HasCollation("utf8_general_ci");
  6998. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6999. entity.Property(e => e.CreateMan)
  7000. .HasColumnType("varchar(50)")
  7001. .HasCharSet("utf8")
  7002. .HasCollation("utf8_general_ci");
  7003. });
  7004. modelBuilder.Entity<SysRechargeRecord>(entity =>
  7005. {
  7006. entity.Property(e => e.Id).HasColumnType("int(11)");
  7007. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  7008. entity.Property(e => e.BatchCode)
  7009. .HasColumnType("varchar(32)")
  7010. .HasCharSet("utf8")
  7011. .HasCollation("utf8_general_ci");
  7012. entity.Property(e => e.BizTime).HasColumnType("datetime");
  7013. entity.Property(e => e.BizType).HasColumnType("int(11)");
  7014. entity.Property(e => e.ClientIp)
  7015. .HasColumnType("varchar(15)")
  7016. .HasCharSet("utf8")
  7017. .HasCollation("utf8_general_ci");
  7018. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7019. entity.Property(e => e.CreateMan)
  7020. .HasColumnType("varchar(50)")
  7021. .HasCharSet("utf8")
  7022. .HasCollation("utf8_general_ci");
  7023. entity.Property(e => e.PartnerTradeNo)
  7024. .HasColumnType("varchar(32)")
  7025. .HasCharSet("utf8")
  7026. .HasCollation("utf8_general_ci");
  7027. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7028. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7029. entity.Property(e => e.RechargeRecNo)
  7030. .HasColumnType("varchar(32)")
  7031. .HasCharSet("utf8")
  7032. .HasCollation("utf8_general_ci");
  7033. entity.Property(e => e.SeoDescription)
  7034. .HasColumnType("varchar(500)")
  7035. .HasCharSet("utf8")
  7036. .HasCollation("utf8_general_ci");
  7037. entity.Property(e => e.SeoKeyword)
  7038. .HasColumnType("varchar(200)")
  7039. .HasCharSet("utf8")
  7040. .HasCollation("utf8_general_ci");
  7041. entity.Property(e => e.SeoTitle)
  7042. .HasColumnType("varchar(100)")
  7043. .HasCharSet("utf8")
  7044. .HasCollation("utf8_general_ci");
  7045. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7046. entity.Property(e => e.Status).HasColumnType("int(11)");
  7047. entity.Property(e => e.SyncStatus).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<SystemSet>(entity =>
  7057. {
  7058. entity.Property(e => e.Id).HasColumnType("int(11)");
  7059. entity.Property(e => e.Address)
  7060. .HasColumnType("varchar(100)")
  7061. .HasCharSet("utf8")
  7062. .HasCollation("utf8_general_ci");
  7063. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7064. entity.Property(e => e.CreateMan)
  7065. .HasColumnType("varchar(50)")
  7066. .HasCharSet("utf8")
  7067. .HasCollation("utf8_general_ci");
  7068. entity.Property(e => e.IndexDescription)
  7069. .HasColumnType("longtext")
  7070. .HasCharSet("utf8")
  7071. .HasCollation("utf8_general_ci");
  7072. entity.Property(e => e.IndexKeyword)
  7073. .HasColumnType("varchar(200)")
  7074. .HasCharSet("utf8")
  7075. .HasCollation("utf8_general_ci");
  7076. entity.Property(e => e.Logo)
  7077. .HasColumnType("varchar(200)")
  7078. .HasCharSet("utf8")
  7079. .HasCollation("utf8_general_ci");
  7080. entity.Property(e => e.Phone)
  7081. .HasColumnType("varchar(100)")
  7082. .HasCharSet("utf8")
  7083. .HasCollation("utf8_general_ci");
  7084. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7085. entity.Property(e => e.RightInfo)
  7086. .HasColumnType("longtext")
  7087. .HasCharSet("utf8")
  7088. .HasCollation("utf8_general_ci");
  7089. entity.Property(e => e.SeoDescription)
  7090. .HasColumnType("varchar(500)")
  7091. .HasCharSet("utf8")
  7092. .HasCollation("utf8_general_ci");
  7093. entity.Property(e => e.SeoKeyword)
  7094. .HasColumnType("varchar(200)")
  7095. .HasCharSet("utf8")
  7096. .HasCollation("utf8_general_ci");
  7097. entity.Property(e => e.SeoTitle)
  7098. .HasColumnType("varchar(100)")
  7099. .HasCharSet("utf8")
  7100. .HasCollation("utf8_general_ci");
  7101. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7102. entity.Property(e => e.StartAdPhoto)
  7103. .HasColumnType("varchar(200)")
  7104. .HasCharSet("utf8")
  7105. .HasCollation("utf8_general_ci");
  7106. entity.Property(e => e.Status).HasColumnType("int(11)");
  7107. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7108. entity.Property(e => e.UpdateMan)
  7109. .HasColumnType("varchar(50)")
  7110. .HasCharSet("utf8")
  7111. .HasCollation("utf8_general_ci");
  7112. entity.Property(e => e.UploadAutoWater)
  7113. .HasColumnType("bit(1)")
  7114. .HasDefaultValueSql("b'0'");
  7115. entity.Property(e => e.UploadAutoZoom)
  7116. .HasColumnType("bit(1)")
  7117. .HasDefaultValueSql("b'0'");
  7118. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  7119. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  7120. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  7121. entity.Property(e => e.UploadExt)
  7122. .HasColumnType("varchar(100)")
  7123. .HasCharSet("utf8")
  7124. .HasCollation("utf8_general_ci");
  7125. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  7126. entity.Property(e => e.UploadOss)
  7127. .HasColumnType("bit(1)")
  7128. .HasDefaultValueSql("b'0'");
  7129. entity.Property(e => e.UploadWaterPath)
  7130. .HasColumnType("varchar(200)")
  7131. .HasCharSet("utf8")
  7132. .HasCollation("utf8_general_ci");
  7133. entity.Property(e => e.UploadWaterPosition)
  7134. .HasColumnType("varchar(15)")
  7135. .HasCharSet("utf8")
  7136. .HasCollation("utf8_general_ci");
  7137. entity.Property(e => e.Version).HasColumnType("int(11)");
  7138. entity.Property(e => e.WebName)
  7139. .HasColumnType("varchar(50)")
  7140. .HasCharSet("utf8")
  7141. .HasCollation("utf8_general_ci");
  7142. entity.Property(e => e.WebStatCode)
  7143. .HasColumnType("longtext")
  7144. .HasCharSet("utf8")
  7145. .HasCollation("utf8_general_ci");
  7146. entity.Property(e => e.WebUrl)
  7147. .HasColumnType("varchar(200)")
  7148. .HasCharSet("utf8")
  7149. .HasCollation("utf8_general_ci");
  7150. });
  7151. modelBuilder.Entity<TeamApply>(entity =>
  7152. {
  7153. entity.Property(e => e.Id).HasColumnType("int(11)");
  7154. entity.Property(e => e.Areas)
  7155. .HasColumnType("varchar(30)")
  7156. .HasCharSet("utf8")
  7157. .HasCollation("utf8_general_ci");
  7158. entity.Property(e => e.AuditRemark)
  7159. .HasColumnType("varchar(64)")
  7160. .HasCharSet("utf8")
  7161. .HasCollation("utf8_general_ci");
  7162. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7163. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7164. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7165. entity.Property(e => e.CreateMan)
  7166. .HasColumnType("varchar(50)")
  7167. .HasCharSet("utf8")
  7168. .HasCollation("utf8_general_ci");
  7169. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7170. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7171. entity.Property(e => e.EnterEndDate).HasColumnType("datetime");
  7172. entity.Property(e => e.EnterStartDate).HasColumnType("datetime");
  7173. entity.Property(e => e.ManagerName)
  7174. .HasColumnType("varchar(32)")
  7175. .HasCharSet("utf8")
  7176. .HasCollation("utf8_general_ci");
  7177. entity.Property(e => e.ManagerNo)
  7178. .HasColumnType("varchar(32)")
  7179. .HasCharSet("utf8")
  7180. .HasCollation("utf8_general_ci");
  7181. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7182. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7183. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7184. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7185. entity.Property(e => e.Remark)
  7186. .HasColumnType("varchar(64)")
  7187. .HasCharSet("utf8")
  7188. .HasCollation("utf8_general_ci");
  7189. entity.Property(e => e.SeoDescription)
  7190. .HasColumnType("varchar(500)")
  7191. .HasCharSet("utf8")
  7192. .HasCollation("utf8_general_ci");
  7193. entity.Property(e => e.SeoKeyword)
  7194. .HasColumnType("varchar(200)")
  7195. .HasCharSet("utf8")
  7196. .HasCollation("utf8_general_ci");
  7197. entity.Property(e => e.SeoTitle)
  7198. .HasColumnType("varchar(100)")
  7199. .HasCharSet("utf8")
  7200. .HasCollation("utf8_general_ci");
  7201. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7202. entity.Property(e => e.Status).HasColumnType("int(11)");
  7203. entity.Property(e => e.TeamName)
  7204. .HasColumnType("varchar(32)")
  7205. .HasCharSet("utf8")
  7206. .HasCollation("utf8_general_ci");
  7207. entity.Property(e => e.TeamNo)
  7208. .HasColumnType("varchar(32)")
  7209. .HasCharSet("utf8")
  7210. .HasCollation("utf8_general_ci");
  7211. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7212. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7213. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7214. entity.Property(e => e.UpdateMan)
  7215. .HasColumnType("varchar(50)")
  7216. .HasCharSet("utf8")
  7217. .HasCollation("utf8_general_ci");
  7218. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7219. entity.Property(e => e.Version).HasColumnType("int(11)");
  7220. entity.Property(e => e.WatchWord)
  7221. .HasColumnType("varchar(32)")
  7222. .HasCharSet("utf8")
  7223. .HasCollation("utf8_general_ci");
  7224. });
  7225. modelBuilder.Entity<TeamApplyForTeamName>(entity =>
  7226. {
  7227. entity.HasKey(e => e.TeamName)
  7228. .HasName("PRIMARY");
  7229. entity.Property(e => e.TeamName)
  7230. .HasColumnType("varchar(32)")
  7231. .HasCharSet("utf8")
  7232. .HasCollation("utf8_general_ci");
  7233. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7234. });
  7235. modelBuilder.Entity<TeamApplyForTeamNo>(entity =>
  7236. {
  7237. entity.HasKey(e => e.TeamNo)
  7238. .HasName("PRIMARY");
  7239. entity.Property(e => e.TeamNo)
  7240. .HasColumnType("varchar(32)")
  7241. .HasCharSet("utf8")
  7242. .HasCollation("utf8_general_ci");
  7243. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7244. });
  7245. modelBuilder.Entity<TeamBlackList>(entity =>
  7246. {
  7247. entity.Property(e => e.Id).HasColumnType("int(11)");
  7248. entity.Property(e => e.BlackStatus).HasColumnType("int(11)");
  7249. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7250. entity.Property(e => e.CreateMan)
  7251. .HasColumnType("varchar(50)")
  7252. .HasCharSet("utf8")
  7253. .HasCollation("utf8_general_ci");
  7254. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7255. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7256. entity.Property(e => e.ManagerName)
  7257. .HasColumnType("varchar(32)")
  7258. .HasCharSet("utf8")
  7259. .HasCollation("utf8_general_ci");
  7260. entity.Property(e => e.ManagerNo)
  7261. .HasColumnType("varchar(32)")
  7262. .HasCharSet("utf8")
  7263. .HasCollation("utf8_general_ci");
  7264. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7265. entity.Property(e => e.Remark)
  7266. .HasColumnType("varchar(64)")
  7267. .HasCharSet("utf8")
  7268. .HasCollation("utf8_general_ci");
  7269. entity.Property(e => e.SeoDescription)
  7270. .HasColumnType("varchar(500)")
  7271. .HasCharSet("utf8")
  7272. .HasCollation("utf8_general_ci");
  7273. entity.Property(e => e.SeoKeyword)
  7274. .HasColumnType("varchar(200)")
  7275. .HasCharSet("utf8")
  7276. .HasCollation("utf8_general_ci");
  7277. entity.Property(e => e.SeoTitle)
  7278. .HasColumnType("varchar(100)")
  7279. .HasCharSet("utf8")
  7280. .HasCollation("utf8_general_ci");
  7281. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7282. entity.Property(e => e.Status).HasColumnType("int(11)");
  7283. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7284. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7285. entity.Property(e => e.UpdateMan)
  7286. .HasColumnType("varchar(50)")
  7287. .HasCharSet("utf8")
  7288. .HasCollation("utf8_general_ci");
  7289. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7290. entity.Property(e => e.Version).HasColumnType("int(11)");
  7291. });
  7292. modelBuilder.Entity<TeamConfig>(entity =>
  7293. {
  7294. entity.Property(e => e.Id).HasColumnType("int(11)");
  7295. entity.Property(e => e.BlacklistCycle).HasColumnType("int(11)");
  7296. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7297. entity.Property(e => e.CreateMan)
  7298. .HasColumnType("varchar(50)")
  7299. .HasCharSet("utf8")
  7300. .HasCollation("utf8_general_ci");
  7301. entity.Property(e => e.EnterEndMin).HasColumnType("int(11)");
  7302. entity.Property(e => e.LimitBuddyNo)
  7303. .HasColumnType("varchar(128)")
  7304. .HasCharSet("utf8")
  7305. .HasCollation("utf8_general_ci");
  7306. entity.Property(e => e.MaxCycleNum).HasColumnType("int(11)");
  7307. entity.Property(e => e.MaxStartDayLimit).HasColumnType("int(11)");
  7308. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7309. entity.Property(e => e.MinCycleNum).HasColumnType("int(11)");
  7310. entity.Property(e => e.MinStartDayLimit).HasColumnType("int(11)");
  7311. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7312. entity.Property(e => e.OverlineStatus)
  7313. .HasColumnType("bit(1)")
  7314. .HasDefaultValueSql("b'0'");
  7315. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7316. entity.Property(e => e.Remark)
  7317. .HasColumnType("varchar(64)")
  7318. .HasCharSet("utf8")
  7319. .HasCollation("utf8_general_ci");
  7320. entity.Property(e => e.SeoDescription)
  7321. .HasColumnType("varchar(500)")
  7322. .HasCharSet("utf8")
  7323. .HasCollation("utf8_general_ci");
  7324. entity.Property(e => e.SeoKeyword)
  7325. .HasColumnType("varchar(200)")
  7326. .HasCharSet("utf8")
  7327. .HasCollation("utf8_general_ci");
  7328. entity.Property(e => e.SeoTitle)
  7329. .HasColumnType("varchar(100)")
  7330. .HasCharSet("utf8")
  7331. .HasCollation("utf8_general_ci");
  7332. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7333. entity.Property(e => e.Status).HasColumnType("int(11)");
  7334. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7335. entity.Property(e => e.UpdateMan)
  7336. .HasColumnType("varchar(50)")
  7337. .HasCharSet("utf8")
  7338. .HasCollation("utf8_general_ci");
  7339. entity.Property(e => e.Version).HasColumnType("int(11)");
  7340. });
  7341. modelBuilder.Entity<TeamDayTop>(entity =>
  7342. {
  7343. entity.Property(e => e.Id).HasColumnType("int(11)");
  7344. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7345. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7346. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7347. entity.Property(e => e.CreateMan)
  7348. .HasColumnType("varchar(50)")
  7349. .HasCharSet("utf8")
  7350. .HasCollation("utf8_general_ci");
  7351. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7352. entity.Property(e => e.Remark)
  7353. .HasColumnType("varchar(64)")
  7354. .HasCharSet("utf8")
  7355. .HasCollation("utf8_general_ci");
  7356. entity.Property(e => e.SeoDescription)
  7357. .HasColumnType("varchar(500)")
  7358. .HasCharSet("utf8")
  7359. .HasCollation("utf8_general_ci");
  7360. entity.Property(e => e.SeoKeyword)
  7361. .HasColumnType("varchar(200)")
  7362. .HasCharSet("utf8")
  7363. .HasCollation("utf8_general_ci");
  7364. entity.Property(e => e.SeoTitle)
  7365. .HasColumnType("varchar(100)")
  7366. .HasCharSet("utf8")
  7367. .HasCollation("utf8_general_ci");
  7368. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7369. entity.Property(e => e.StatDate)
  7370. .HasColumnType("varchar(8)")
  7371. .HasCharSet("utf8")
  7372. .HasCollation("utf8_general_ci");
  7373. entity.Property(e => e.StatMonth)
  7374. .HasColumnType("varchar(6)")
  7375. .HasCharSet("utf8")
  7376. .HasCollation("utf8_general_ci");
  7377. entity.Property(e => e.Status).HasColumnType("int(11)");
  7378. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7379. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7380. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7381. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7382. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7383. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7384. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7385. entity.Property(e => e.UpdateMan)
  7386. .HasColumnType("varchar(50)")
  7387. .HasCharSet("utf8")
  7388. .HasCollation("utf8_general_ci");
  7389. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7390. entity.Property(e => e.Version).HasColumnType("int(11)");
  7391. });
  7392. modelBuilder.Entity<TeamOfferApply>(entity =>
  7393. {
  7394. entity.Property(e => e.Id).HasColumnType("int(11)");
  7395. entity.Property(e => e.Areas)
  7396. .HasColumnType("varchar(30)")
  7397. .HasCharSet("utf8")
  7398. .HasCollation("utf8_general_ci");
  7399. entity.Property(e => e.AuditRemark)
  7400. .HasColumnType("varchar(64)")
  7401. .HasCharSet("utf8")
  7402. .HasCollation("utf8_general_ci");
  7403. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7404. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7405. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7406. entity.Property(e => e.CreateMan)
  7407. .HasColumnType("varchar(50)")
  7408. .HasCharSet("utf8")
  7409. .HasCollation("utf8_general_ci");
  7410. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7411. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7412. entity.Property(e => e.EnterDate).HasColumnType("datetime");
  7413. entity.Property(e => e.ManagerName)
  7414. .HasColumnType("varchar(32)")
  7415. .HasCharSet("utf8")
  7416. .HasCollation("utf8_general_ci");
  7417. entity.Property(e => e.ManagerNo)
  7418. .HasColumnType("varchar(32)")
  7419. .HasCharSet("utf8")
  7420. .HasCollation("utf8_general_ci");
  7421. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7422. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7423. entity.Property(e => e.Remark)
  7424. .HasColumnType("varchar(64)")
  7425. .HasCharSet("utf8")
  7426. .HasCollation("utf8_general_ci");
  7427. entity.Property(e => e.SeoDescription)
  7428. .HasColumnType("varchar(500)")
  7429. .HasCharSet("utf8")
  7430. .HasCollation("utf8_general_ci");
  7431. entity.Property(e => e.SeoKeyword)
  7432. .HasColumnType("varchar(200)")
  7433. .HasCharSet("utf8")
  7434. .HasCollation("utf8_general_ci");
  7435. entity.Property(e => e.SeoTitle)
  7436. .HasColumnType("varchar(100)")
  7437. .HasCharSet("utf8")
  7438. .HasCollation("utf8_general_ci");
  7439. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7440. entity.Property(e => e.Status).HasColumnType("int(11)");
  7441. entity.Property(e => e.TeamApplyStatus).HasColumnType("int(11)");
  7442. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7443. entity.Property(e => e.TeamLeader).HasColumnType("int(11)");
  7444. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7445. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7446. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7447. entity.Property(e => e.UpdateMan)
  7448. .HasColumnType("varchar(50)")
  7449. .HasCharSet("utf8")
  7450. .HasCollation("utf8_general_ci");
  7451. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7452. entity.Property(e => e.Version).HasColumnType("int(11)");
  7453. });
  7454. modelBuilder.Entity<TeamPersonDayTop>(entity =>
  7455. {
  7456. entity.Property(e => e.Id).HasColumnType("int(11)");
  7457. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7458. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7459. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7460. entity.Property(e => e.CreateMan)
  7461. .HasColumnType("varchar(50)")
  7462. .HasCharSet("utf8")
  7463. .HasCollation("utf8_general_ci");
  7464. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7465. entity.Property(e => e.Remark)
  7466. .HasColumnType("varchar(64)")
  7467. .HasCharSet("utf8")
  7468. .HasCollation("utf8_general_ci");
  7469. entity.Property(e => e.SeoDescription)
  7470. .HasColumnType("varchar(500)")
  7471. .HasCharSet("utf8")
  7472. .HasCollation("utf8_general_ci");
  7473. entity.Property(e => e.SeoKeyword)
  7474. .HasColumnType("varchar(200)")
  7475. .HasCharSet("utf8")
  7476. .HasCollation("utf8_general_ci");
  7477. entity.Property(e => e.SeoTitle)
  7478. .HasColumnType("varchar(100)")
  7479. .HasCharSet("utf8")
  7480. .HasCollation("utf8_general_ci");
  7481. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7482. entity.Property(e => e.StatDate)
  7483. .HasColumnType("varchar(8)")
  7484. .HasCharSet("utf8")
  7485. .HasCollation("utf8_general_ci");
  7486. entity.Property(e => e.StatMonth)
  7487. .HasColumnType("varchar(6)")
  7488. .HasCharSet("utf8")
  7489. .HasCollation("utf8_general_ci");
  7490. entity.Property(e => e.Status).HasColumnType("int(11)");
  7491. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7492. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7493. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7494. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7495. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7496. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7497. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7498. entity.Property(e => e.UpdateMan)
  7499. .HasColumnType("varchar(50)")
  7500. .HasCharSet("utf8")
  7501. .HasCollation("utf8_general_ci");
  7502. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7503. entity.Property(e => e.Version).HasColumnType("int(11)");
  7504. });
  7505. modelBuilder.Entity<TmpTradeNo>(entity =>
  7506. {
  7507. entity.HasKey(e => e.RecordNo)
  7508. .HasName("PRIMARY");
  7509. entity.Property(e => e.RecordNo)
  7510. .HasColumnType("varchar(50)")
  7511. .HasCharSet("latin1")
  7512. .HasCollation("latin1_swedish_ci");
  7513. });
  7514. modelBuilder.Entity<TradeDaySummary>(entity =>
  7515. {
  7516. entity.Property(e => e.Id).HasColumnType("int(11)");
  7517. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7518. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7519. entity.Property(e => e.CreateMan)
  7520. .HasColumnType("varchar(50)")
  7521. .HasCharSet("utf8")
  7522. .HasCollation("utf8_general_ci");
  7523. entity.Property(e => e.HelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7524. entity.Property(e => e.HelpDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7525. entity.Property(e => e.HelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7526. entity.Property(e => e.HelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7527. entity.Property(e => e.HelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7528. entity.Property(e => e.HelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7529. entity.Property(e => e.HelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7530. entity.Property(e => e.HelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7531. entity.Property(e => e.HelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7532. entity.Property(e => e.HelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7533. entity.Property(e => e.HelpNonDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7534. entity.Property(e => e.HelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7535. entity.Property(e => e.HelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7536. entity.Property(e => e.HelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7537. entity.Property(e => e.HelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7538. entity.Property(e => e.HelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7539. entity.Property(e => e.HelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7540. entity.Property(e => e.HelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7541. entity.Property(e => e.MgrName)
  7542. .HasColumnType("varchar(32)")
  7543. .HasCharSet("utf8")
  7544. .HasCollation("utf8_general_ci");
  7545. entity.Property(e => e.MgrNo)
  7546. .HasColumnType("varchar(16)")
  7547. .HasCharSet("utf8")
  7548. .HasCollation("utf8_general_ci");
  7549. entity.Property(e => e.NotHelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7550. entity.Property(e => e.NotHelpDirectDebitCapNum).HasColumnType("int(11)");
  7551. entity.Property(e => e.NotHelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7552. entity.Property(e => e.NotHelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7553. entity.Property(e => e.NotHelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7554. entity.Property(e => e.NotHelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7555. entity.Property(e => e.NotHelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7556. entity.Property(e => e.NotHelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7557. entity.Property(e => e.NotHelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7558. entity.Property(e => e.NotHelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7559. entity.Property(e => e.NotHelpNonDirectDebitCapNum).HasColumnType("int(11)");
  7560. entity.Property(e => e.NotHelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7561. entity.Property(e => e.NotHelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7562. entity.Property(e => e.NotHelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7563. entity.Property(e => e.NotHelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7564. entity.Property(e => e.NotHelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7565. entity.Property(e => e.NotHelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7566. entity.Property(e => e.NotHelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7567. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7568. entity.Property(e => e.SeoDescription)
  7569. .HasColumnType("varchar(500)")
  7570. .HasCharSet("utf8")
  7571. .HasCollation("utf8_general_ci");
  7572. entity.Property(e => e.SeoKeyword)
  7573. .HasColumnType("varchar(200)")
  7574. .HasCharSet("utf8")
  7575. .HasCollation("utf8_general_ci");
  7576. entity.Property(e => e.SeoTitle)
  7577. .HasColumnType("varchar(100)")
  7578. .HasCharSet("utf8")
  7579. .HasCollation("utf8_general_ci");
  7580. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7581. entity.Property(e => e.Status).HasColumnType("int(11)");
  7582. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7583. entity.Property(e => e.TradeDate)
  7584. .HasColumnType("varchar(8)")
  7585. .HasCharSet("utf8")
  7586. .HasCollation("utf8_general_ci");
  7587. entity.Property(e => e.TradeMonth)
  7588. .HasColumnType("varchar(6)")
  7589. .HasCharSet("utf8")
  7590. .HasCollation("utf8_general_ci");
  7591. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7592. entity.Property(e => e.UpdateMan)
  7593. .HasColumnType("varchar(50)")
  7594. .HasCharSet("utf8")
  7595. .HasCollation("utf8_general_ci");
  7596. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7597. entity.Property(e => e.Version).HasColumnType("int(11)");
  7598. });
  7599. modelBuilder.Entity<TradeRecord>(entity =>
  7600. {
  7601. entity.Property(e => e.Id).HasColumnType("int(11)");
  7602. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  7603. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7604. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  7605. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  7606. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7607. entity.Property(e => e.CreateMan)
  7608. .HasColumnType("varchar(50)")
  7609. .HasCharSet("utf8")
  7610. .HasCollation("utf8_general_ci");
  7611. entity.Property(e => e.DirectFlag)
  7612. .HasColumnType("bit(1)")
  7613. .HasDefaultValueSql("b'0'");
  7614. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  7615. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  7616. entity.Property(e => e.MerHelpFlag)
  7617. .HasColumnType("bit(1)")
  7618. .HasDefaultValueSql("b'0'");
  7619. entity.Property(e => e.MerNo)
  7620. .HasColumnType("varchar(32)")
  7621. .HasCharSet("utf8")
  7622. .HasCollation("utf8_general_ci");
  7623. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  7624. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7625. entity.Property(e => e.ParentNav)
  7626. .HasColumnType("mediumtext")
  7627. .HasCharSet("utf8")
  7628. .HasCollation("utf8_general_ci");
  7629. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  7630. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7631. entity.Property(e => e.RecordNo)
  7632. .HasColumnType("varchar(32)")
  7633. .HasCharSet("utf8")
  7634. .HasCollation("utf8_general_ci");
  7635. entity.Property(e => e.Remark)
  7636. .HasColumnType("varchar(64)")
  7637. .HasCharSet("utf8")
  7638. .HasCollation("utf8_general_ci");
  7639. entity.Property(e => e.SeoDescription)
  7640. .HasColumnType("varchar(500)")
  7641. .HasCharSet("utf8")
  7642. .HasCollation("utf8_general_ci");
  7643. entity.Property(e => e.SeoKeyword)
  7644. .HasColumnType("varchar(200)")
  7645. .HasCharSet("utf8")
  7646. .HasCollation("utf8_general_ci");
  7647. entity.Property(e => e.SeoTitle)
  7648. .HasColumnType("varchar(100)")
  7649. .HasCharSet("utf8")
  7650. .HasCollation("utf8_general_ci");
  7651. entity.Property(e => e.SnNo)
  7652. .HasColumnType("varchar(32)")
  7653. .HasCharSet("utf8")
  7654. .HasCollation("utf8_general_ci");
  7655. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7656. entity.Property(e => e.Status).HasColumnType("int(11)");
  7657. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7658. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  7659. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  7660. entity.Property(e => e.TradeSerialNo)
  7661. .HasColumnType("varchar(48)")
  7662. .HasCharSet("utf8")
  7663. .HasCollation("utf8_general_ci");
  7664. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7665. entity.Property(e => e.UpdateMan)
  7666. .HasColumnType("varchar(50)")
  7667. .HasCharSet("utf8")
  7668. .HasCollation("utf8_general_ci");
  7669. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7670. entity.Property(e => e.Version).HasColumnType("int(11)");
  7671. });
  7672. modelBuilder.Entity<UploadParams>(entity =>
  7673. {
  7674. entity.Property(e => e.Id).HasColumnType("int(11)");
  7675. entity.Property(e => e.ColumnEnName)
  7676. .HasColumnType("varchar(50)")
  7677. .HasCharSet("utf8")
  7678. .HasCollation("utf8_general_ci");
  7679. entity.Property(e => e.ColumnName)
  7680. .HasColumnType("varchar(50)")
  7681. .HasCharSet("utf8")
  7682. .HasCollation("utf8_general_ci");
  7683. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7684. entity.Property(e => e.CreateMan)
  7685. .HasColumnType("varchar(50)")
  7686. .HasCharSet("utf8")
  7687. .HasCollation("utf8_general_ci");
  7688. entity.Property(e => e.ParamString)
  7689. .HasColumnType("varchar(200)")
  7690. .HasCharSet("utf8")
  7691. .HasCollation("utf8_general_ci");
  7692. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7693. entity.Property(e => e.SeoDescription)
  7694. .HasColumnType("varchar(500)")
  7695. .HasCharSet("utf8")
  7696. .HasCollation("utf8_general_ci");
  7697. entity.Property(e => e.SeoKeyword)
  7698. .HasColumnType("varchar(200)")
  7699. .HasCharSet("utf8")
  7700. .HasCollation("utf8_general_ci");
  7701. entity.Property(e => e.SeoTitle)
  7702. .HasColumnType("varchar(100)")
  7703. .HasCharSet("utf8")
  7704. .HasCollation("utf8_general_ci");
  7705. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7706. entity.Property(e => e.Status).HasColumnType("int(11)");
  7707. entity.Property(e => e.TableEnName)
  7708. .HasColumnType("varchar(50)")
  7709. .HasCharSet("utf8")
  7710. .HasCollation("utf8_general_ci");
  7711. entity.Property(e => e.TableName)
  7712. .HasColumnType("varchar(50)")
  7713. .HasCharSet("utf8")
  7714. .HasCollation("utf8_general_ci");
  7715. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7716. entity.Property(e => e.UpdateMan)
  7717. .HasColumnType("varchar(50)")
  7718. .HasCharSet("utf8")
  7719. .HasCollation("utf8_general_ci");
  7720. entity.Property(e => e.Version).HasColumnType("int(11)");
  7721. });
  7722. modelBuilder.Entity<UserAccount>(entity =>
  7723. {
  7724. entity.Property(e => e.Id).HasColumnType("int(11)");
  7725. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  7726. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  7727. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7728. entity.Property(e => e.CreateMan)
  7729. .HasColumnType("varchar(50)")
  7730. .HasCharSet("utf8")
  7731. .HasCollation("utf8_general_ci");
  7732. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  7733. entity.Property(e => e.LockStatus).HasColumnType("int(11)");
  7734. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7735. entity.Property(e => e.SeoDescription)
  7736. .HasColumnType("varchar(500)")
  7737. .HasCharSet("utf8")
  7738. .HasCollation("utf8_general_ci");
  7739. entity.Property(e => e.SeoKeyword)
  7740. .HasColumnType("varchar(200)")
  7741. .HasCharSet("utf8")
  7742. .HasCollation("utf8_general_ci");
  7743. entity.Property(e => e.SeoTitle)
  7744. .HasColumnType("varchar(100)")
  7745. .HasCharSet("utf8")
  7746. .HasCollation("utf8_general_ci");
  7747. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7748. entity.Property(e => e.Status).HasColumnType("int(11)");
  7749. entity.Property(e => e.TeamTotalOverProfit).HasColumnType("decimal(18,2)");
  7750. entity.Property(e => e.TeamTotalProfit).HasColumnType("decimal(18,2)");
  7751. entity.Property(e => e.TeamTotalServiceProfit).HasColumnType("decimal(18,2)");
  7752. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  7753. entity.Property(e => e.TotalOverProfit).HasColumnType("decimal(18,2)");
  7754. entity.Property(e => e.TotalProfit).HasColumnType("decimal(18,2)");
  7755. entity.Property(e => e.TotalServiceProfit).HasColumnType("decimal(18,2)");
  7756. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7757. entity.Property(e => e.UpdateMan)
  7758. .HasColumnType("varchar(50)")
  7759. .HasCharSet("utf8")
  7760. .HasCollation("utf8_general_ci");
  7761. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7762. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  7763. entity.Property(e => e.UserType).HasColumnType("int(11)");
  7764. entity.Property(e => e.Version).HasColumnType("int(11)");
  7765. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  7766. });
  7767. modelBuilder.Entity<UserAccountRecord>(entity =>
  7768. {
  7769. entity.Property(e => e.Id).HasColumnType("int(11)");
  7770. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  7771. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  7772. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  7773. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  7774. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  7775. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  7776. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  7777. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  7778. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7779. entity.Property(e => e.CreateMan)
  7780. .HasColumnType("varchar(50)")
  7781. .HasCharSet("utf8")
  7782. .HasCollation("utf8_general_ci");
  7783. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7784. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7785. entity.Property(e => e.Remark)
  7786. .HasColumnType("varchar(64)")
  7787. .HasCharSet("utf8")
  7788. .HasCollation("utf8_general_ci");
  7789. entity.Property(e => e.SeoDescription)
  7790. .HasColumnType("varchar(500)")
  7791. .HasCharSet("utf8")
  7792. .HasCollation("utf8_general_ci");
  7793. entity.Property(e => e.SeoKeyword)
  7794. .HasColumnType("varchar(200)")
  7795. .HasCharSet("utf8")
  7796. .HasCollation("utf8_general_ci");
  7797. entity.Property(e => e.SeoTitle)
  7798. .HasColumnType("varchar(100)")
  7799. .HasCharSet("utf8")
  7800. .HasCollation("utf8_general_ci");
  7801. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7802. entity.Property(e => e.Status).HasColumnType("int(11)");
  7803. entity.Property(e => e.TransRecordNo)
  7804. .HasColumnType("varchar(32)")
  7805. .HasCharSet("utf8")
  7806. .HasCollation("utf8_general_ci");
  7807. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7808. entity.Property(e => e.UpdateMan)
  7809. .HasColumnType("varchar(50)")
  7810. .HasCharSet("utf8")
  7811. .HasCollation("utf8_general_ci");
  7812. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7813. entity.Property(e => e.Version).HasColumnType("int(11)");
  7814. });
  7815. modelBuilder.Entity<UserAddress>(entity =>
  7816. {
  7817. entity.Property(e => e.Id).HasColumnType("int(11)");
  7818. entity.Property(e => e.Address)
  7819. .HasColumnType("varchar(100)")
  7820. .HasCharSet("utf8")
  7821. .HasCollation("utf8_general_ci");
  7822. entity.Property(e => e.Areas)
  7823. .HasColumnType("varchar(30)")
  7824. .HasCharSet("utf8")
  7825. .HasCollation("utf8_general_ci");
  7826. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7827. entity.Property(e => e.CreateMan)
  7828. .HasColumnType("varchar(50)")
  7829. .HasCharSet("utf8")
  7830. .HasCollation("utf8_general_ci");
  7831. entity.Property(e => e.IsDefault)
  7832. .HasColumnType("bit(1)")
  7833. .HasDefaultValueSql("b'0'");
  7834. entity.Property(e => e.Mobile)
  7835. .HasColumnType("varchar(11)")
  7836. .HasCharSet("utf8")
  7837. .HasCollation("utf8_general_ci");
  7838. entity.Property(e => e.PostalCode)
  7839. .HasColumnType("varchar(6)")
  7840. .HasCharSet("utf8")
  7841. .HasCollation("utf8_general_ci");
  7842. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7843. entity.Property(e => e.RealName)
  7844. .HasColumnType("varchar(10)")
  7845. .HasCharSet("utf8")
  7846. .HasCollation("utf8_general_ci");
  7847. entity.Property(e => e.SeoDescription)
  7848. .HasColumnType("varchar(500)")
  7849. .HasCharSet("utf8")
  7850. .HasCollation("utf8_general_ci");
  7851. entity.Property(e => e.SeoKeyword)
  7852. .HasColumnType("varchar(200)")
  7853. .HasCharSet("utf8")
  7854. .HasCollation("utf8_general_ci");
  7855. entity.Property(e => e.SeoTitle)
  7856. .HasColumnType("varchar(100)")
  7857. .HasCharSet("utf8")
  7858. .HasCollation("utf8_general_ci");
  7859. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7860. entity.Property(e => e.Status).HasColumnType("int(11)");
  7861. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7862. entity.Property(e => e.UpdateMan)
  7863. .HasColumnType("varchar(50)")
  7864. .HasCharSet("utf8")
  7865. .HasCollation("utf8_general_ci");
  7866. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7867. entity.Property(e => e.Version).HasColumnType("int(11)");
  7868. });
  7869. modelBuilder.Entity<UserAuthRecord>(entity =>
  7870. {
  7871. entity.Property(e => e.Id).HasColumnType("int(11)");
  7872. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  7873. entity.Property(e => e.BankCardAccount)
  7874. .HasColumnType("varchar(32)")
  7875. .HasCharSet("utf8")
  7876. .HasCollation("utf8_general_ci");
  7877. entity.Property(e => e.BankMobile)
  7878. .HasColumnType("varchar(11)")
  7879. .HasCharSet("utf8")
  7880. .HasCollation("utf8_general_ci");
  7881. entity.Property(e => e.BankName)
  7882. .HasColumnType("varchar(64)")
  7883. .HasCharSet("utf8")
  7884. .HasCollation("utf8_general_ci");
  7885. entity.Property(e => e.ChannelCode)
  7886. .HasColumnType("varchar(16)")
  7887. .HasCharSet("utf8")
  7888. .HasCollation("utf8_general_ci");
  7889. entity.Property(e => e.ChannelName)
  7890. .HasColumnType("varchar(32)")
  7891. .HasCharSet("utf8")
  7892. .HasCollation("utf8_general_ci");
  7893. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7894. entity.Property(e => e.CreateMan)
  7895. .HasColumnType("varchar(50)")
  7896. .HasCharSet("utf8")
  7897. .HasCollation("utf8_general_ci");
  7898. entity.Property(e => e.IdcardNo)
  7899. .HasColumnType("varchar(18)")
  7900. .HasCharSet("utf8")
  7901. .HasCollation("utf8_general_ci");
  7902. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7903. entity.Property(e => e.RealName)
  7904. .HasColumnType("varchar(32)")
  7905. .HasCharSet("utf8")
  7906. .HasCollation("utf8_general_ci");
  7907. entity.Property(e => e.ReqData)
  7908. .HasColumnType("varchar(2048)")
  7909. .HasCharSet("utf8")
  7910. .HasCollation("utf8_general_ci");
  7911. entity.Property(e => e.ResData)
  7912. .HasColumnType("varchar(2048)")
  7913. .HasCharSet("utf8")
  7914. .HasCollation("utf8_general_ci");
  7915. entity.Property(e => e.ReturnCode)
  7916. .HasColumnType("varchar(32)")
  7917. .HasCharSet("utf8")
  7918. .HasCollation("utf8_general_ci");
  7919. entity.Property(e => e.ReturnMsg)
  7920. .HasColumnType("varchar(128)")
  7921. .HasCharSet("utf8")
  7922. .HasCollation("utf8_general_ci");
  7923. entity.Property(e => e.SeoDescription)
  7924. .HasColumnType("varchar(500)")
  7925. .HasCharSet("utf8")
  7926. .HasCollation("utf8_general_ci");
  7927. entity.Property(e => e.SeoKeyword)
  7928. .HasColumnType("varchar(200)")
  7929. .HasCharSet("utf8")
  7930. .HasCollation("utf8_general_ci");
  7931. entity.Property(e => e.SeoTitle)
  7932. .HasColumnType("varchar(100)")
  7933. .HasCharSet("utf8")
  7934. .HasCollation("utf8_general_ci");
  7935. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7936. entity.Property(e => e.Status).HasColumnType("int(11)");
  7937. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7938. entity.Property(e => e.UpdateMan)
  7939. .HasColumnType("varchar(50)")
  7940. .HasCharSet("utf8")
  7941. .HasCollation("utf8_general_ci");
  7942. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7943. entity.Property(e => e.Version).HasColumnType("int(11)");
  7944. });
  7945. modelBuilder.Entity<UserBack>(entity =>
  7946. {
  7947. entity.Property(e => e.Id).HasColumnType("int(11)");
  7948. entity.Property(e => e.BackKind).HasColumnType("int(11)");
  7949. entity.Property(e => e.BackStatus).HasColumnType("int(11)");
  7950. entity.Property(e => e.Content)
  7951. .HasColumnType("varchar(100)")
  7952. .HasCharSet("utf8")
  7953. .HasCollation("utf8_general_ci");
  7954. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7955. entity.Property(e => e.CreateMan)
  7956. .HasColumnType("varchar(50)")
  7957. .HasCharSet("utf8")
  7958. .HasCollation("utf8_general_ci");
  7959. entity.Property(e => e.IsPhoneCallBack)
  7960. .HasColumnType("bit(1)")
  7961. .HasDefaultValueSql("b'0'");
  7962. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7963. entity.Property(e => e.ReplyContent)
  7964. .HasColumnType("mediumtext")
  7965. .HasCharSet("utf8")
  7966. .HasCollation("utf8_general_ci");
  7967. entity.Property(e => e.SeoDescription)
  7968. .HasColumnType("varchar(500)")
  7969. .HasCharSet("utf8")
  7970. .HasCollation("utf8_general_ci");
  7971. entity.Property(e => e.SeoKeyword)
  7972. .HasColumnType("varchar(200)")
  7973. .HasCharSet("utf8")
  7974. .HasCollation("utf8_general_ci");
  7975. entity.Property(e => e.SeoTitle)
  7976. .HasColumnType("varchar(100)")
  7977. .HasCharSet("utf8")
  7978. .HasCollation("utf8_general_ci");
  7979. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7980. entity.Property(e => e.Status).HasColumnType("int(11)");
  7981. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7982. entity.Property(e => e.UpdateMan)
  7983. .HasColumnType("varchar(50)")
  7984. .HasCharSet("utf8")
  7985. .HasCollation("utf8_general_ci");
  7986. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7987. entity.Property(e => e.Version).HasColumnType("int(11)");
  7988. });
  7989. modelBuilder.Entity<UserBackKind>(entity =>
  7990. {
  7991. entity.Property(e => e.Id).HasColumnType("int(11)");
  7992. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7993. entity.Property(e => e.CreateMan)
  7994. .HasColumnType("varchar(50)")
  7995. .HasCharSet("utf8")
  7996. .HasCollation("utf8_general_ci");
  7997. entity.Property(e => e.Name)
  7998. .HasColumnType("varchar(50)")
  7999. .HasCharSet("utf8")
  8000. .HasCollation("utf8_general_ci");
  8001. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8002. entity.Property(e => e.SeoDescription)
  8003. .HasColumnType("varchar(500)")
  8004. .HasCharSet("utf8")
  8005. .HasCollation("utf8_general_ci");
  8006. entity.Property(e => e.SeoKeyword)
  8007. .HasColumnType("varchar(200)")
  8008. .HasCharSet("utf8")
  8009. .HasCollation("utf8_general_ci");
  8010. entity.Property(e => e.SeoTitle)
  8011. .HasColumnType("varchar(100)")
  8012. .HasCharSet("utf8")
  8013. .HasCollation("utf8_general_ci");
  8014. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8015. entity.Property(e => e.Status).HasColumnType("int(11)");
  8016. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8017. entity.Property(e => e.UpdateMan)
  8018. .HasColumnType("varchar(50)")
  8019. .HasCharSet("utf8")
  8020. .HasCollation("utf8_general_ci");
  8021. entity.Property(e => e.Version).HasColumnType("int(11)");
  8022. });
  8023. modelBuilder.Entity<UserBalanceTop>(entity =>
  8024. {
  8025. entity.Property(e => e.Id).HasColumnType("int(11)");
  8026. entity.Property(e => e.Balance).HasColumnType("decimal(18,2)");
  8027. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8028. entity.Property(e => e.CreateMan)
  8029. .HasColumnType("varchar(50)")
  8030. .HasCharSet("utf8")
  8031. .HasCollation("utf8_general_ci");
  8032. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8033. entity.Property(e => e.SeoDescription)
  8034. .HasColumnType("varchar(500)")
  8035. .HasCharSet("utf8")
  8036. .HasCollation("utf8_general_ci");
  8037. entity.Property(e => e.SeoKeyword)
  8038. .HasColumnType("varchar(200)")
  8039. .HasCharSet("utf8")
  8040. .HasCollation("utf8_general_ci");
  8041. entity.Property(e => e.SeoTitle)
  8042. .HasColumnType("varchar(100)")
  8043. .HasCharSet("utf8")
  8044. .HasCollation("utf8_general_ci");
  8045. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8046. entity.Property(e => e.StatDate)
  8047. .HasColumnType("varchar(8)")
  8048. .HasCharSet("utf8")
  8049. .HasCollation("utf8_general_ci");
  8050. entity.Property(e => e.StatMonth)
  8051. .HasColumnType("varchar(6)")
  8052. .HasCharSet("utf8")
  8053. .HasCollation("utf8_general_ci");
  8054. entity.Property(e => e.Status).HasColumnType("int(11)");
  8055. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8056. entity.Property(e => e.UpdateMan)
  8057. .HasColumnType("varchar(50)")
  8058. .HasCharSet("utf8")
  8059. .HasCollation("utf8_general_ci");
  8060. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8061. entity.Property(e => e.Version).HasColumnType("int(11)");
  8062. });
  8063. modelBuilder.Entity<UserCar>(entity =>
  8064. {
  8065. entity.Property(e => e.Id).HasColumnType("int(11)");
  8066. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  8067. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8068. entity.Property(e => e.CreateMan)
  8069. .HasColumnType("varchar(50)")
  8070. .HasCharSet("utf8")
  8071. .HasCollation("utf8_general_ci");
  8072. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8073. entity.Property(e => e.NormId).HasColumnType("int(11)");
  8074. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  8075. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8076. entity.Property(e => e.SeoDescription)
  8077. .HasColumnType("varchar(500)")
  8078. .HasCharSet("utf8")
  8079. .HasCollation("utf8_general_ci");
  8080. entity.Property(e => e.SeoKeyword)
  8081. .HasColumnType("varchar(200)")
  8082. .HasCharSet("utf8")
  8083. .HasCollation("utf8_general_ci");
  8084. entity.Property(e => e.SeoTitle)
  8085. .HasColumnType("varchar(100)")
  8086. .HasCharSet("utf8")
  8087. .HasCollation("utf8_general_ci");
  8088. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8089. entity.Property(e => e.Status).HasColumnType("int(11)");
  8090. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8091. entity.Property(e => e.UpdateMan)
  8092. .HasColumnType("varchar(50)")
  8093. .HasCharSet("utf8")
  8094. .HasCollation("utf8_general_ci");
  8095. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8096. entity.Property(e => e.Version).HasColumnType("int(11)");
  8097. });
  8098. modelBuilder.Entity<UserCardForWeChat>(entity =>
  8099. {
  8100. entity.Property(e => e.Id).HasColumnType("int(11)");
  8101. entity.Property(e => e.BrandName)
  8102. .HasColumnType("varchar(12)")
  8103. .HasCharSet("utf8")
  8104. .HasCollation("utf8_general_ci");
  8105. entity.Property(e => e.CardId)
  8106. .HasColumnType("varchar(50)")
  8107. .HasCharSet("utf8")
  8108. .HasCollation("utf8_general_ci");
  8109. entity.Property(e => e.CardType)
  8110. .HasColumnType("varchar(30)")
  8111. .HasCharSet("utf8")
  8112. .HasCollation("utf8_general_ci");
  8113. entity.Property(e => e.CodeType)
  8114. .HasColumnType("varchar(50)")
  8115. .HasCharSet("utf8")
  8116. .HasCollation("utf8_general_ci");
  8117. entity.Property(e => e.Color)
  8118. .HasColumnType("varchar(20)")
  8119. .HasCharSet("utf8")
  8120. .HasCollation("utf8_general_ci");
  8121. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8122. entity.Property(e => e.CreateMan)
  8123. .HasColumnType("varchar(50)")
  8124. .HasCharSet("utf8")
  8125. .HasCollation("utf8_general_ci");
  8126. entity.Property(e => e.DateType)
  8127. .HasColumnType("varchar(50)")
  8128. .HasCharSet("utf8")
  8129. .HasCollation("utf8_general_ci");
  8130. entity.Property(e => e.Description)
  8131. .HasColumnType("varchar(1024)")
  8132. .HasCharSet("utf8")
  8133. .HasCollation("utf8_general_ci");
  8134. entity.Property(e => e.EnterName)
  8135. .HasColumnType("varchar(15)")
  8136. .HasCharSet("utf8")
  8137. .HasCollation("utf8_general_ci");
  8138. entity.Property(e => e.EnterTips)
  8139. .HasColumnType("varchar(6)")
  8140. .HasCharSet("utf8")
  8141. .HasCollation("utf8_general_ci");
  8142. entity.Property(e => e.EnterUrl)
  8143. .HasColumnType("varchar(200)")
  8144. .HasCharSet("utf8")
  8145. .HasCollation("utf8_general_ci");
  8146. entity.Property(e => e.LogoUrl)
  8147. .HasColumnType("varchar(200)")
  8148. .HasCharSet("utf8")
  8149. .HasCollation("utf8_general_ci");
  8150. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8151. entity.Property(e => e.Notice)
  8152. .HasColumnType("varchar(16)")
  8153. .HasCharSet("utf8")
  8154. .HasCollation("utf8_general_ci");
  8155. entity.Property(e => e.Prerogative)
  8156. .HasColumnType("varchar(1024)")
  8157. .HasCharSet("utf8")
  8158. .HasCollation("utf8_general_ci");
  8159. entity.Property(e => e.Quantity).HasColumnType("int(11)");
  8160. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8161. entity.Property(e => e.SeoDescription)
  8162. .HasColumnType("varchar(500)")
  8163. .HasCharSet("utf8")
  8164. .HasCollation("utf8_general_ci");
  8165. entity.Property(e => e.SeoKeyword)
  8166. .HasColumnType("varchar(200)")
  8167. .HasCharSet("utf8")
  8168. .HasCollation("utf8_general_ci");
  8169. entity.Property(e => e.SeoTitle)
  8170. .HasColumnType("varchar(100)")
  8171. .HasCharSet("utf8")
  8172. .HasCollation("utf8_general_ci");
  8173. entity.Property(e => e.Sku)
  8174. .HasColumnType("mediumtext")
  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.SupplyBalance)
  8180. .HasColumnType("bit(1)")
  8181. .HasDefaultValueSql("b'0'");
  8182. entity.Property(e => e.SupplyBonus)
  8183. .HasColumnType("bit(1)")
  8184. .HasDefaultValueSql("b'0'");
  8185. entity.Property(e => e.Title)
  8186. .HasColumnType("varchar(9)")
  8187. .HasCharSet("utf8")
  8188. .HasCollation("utf8_general_ci");
  8189. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8190. entity.Property(e => e.UpdateMan)
  8191. .HasColumnType("varchar(50)")
  8192. .HasCharSet("utf8")
  8193. .HasCollation("utf8_general_ci");
  8194. entity.Property(e => e.Version).HasColumnType("int(11)");
  8195. });
  8196. modelBuilder.Entity<UserCardRecord>(entity =>
  8197. {
  8198. entity.Property(e => e.Id).HasColumnType("int(11)");
  8199. entity.Property(e => e.CardId).HasColumnType("int(11)");
  8200. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  8201. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8202. entity.Property(e => e.CreateMan)
  8203. .HasColumnType("varchar(50)")
  8204. .HasCharSet("utf8")
  8205. .HasCollation("utf8_general_ci");
  8206. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8207. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8208. entity.Property(e => e.SeoDescription)
  8209. .HasColumnType("varchar(500)")
  8210. .HasCharSet("utf8")
  8211. .HasCollation("utf8_general_ci");
  8212. entity.Property(e => e.SeoKeyword)
  8213. .HasColumnType("varchar(200)")
  8214. .HasCharSet("utf8")
  8215. .HasCollation("utf8_general_ci");
  8216. entity.Property(e => e.SeoTitle)
  8217. .HasColumnType("varchar(100)")
  8218. .HasCharSet("utf8")
  8219. .HasCollation("utf8_general_ci");
  8220. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8221. entity.Property(e => e.Status).HasColumnType("int(11)");
  8222. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8223. entity.Property(e => e.UpdateMan)
  8224. .HasColumnType("varchar(50)")
  8225. .HasCharSet("utf8")
  8226. .HasCollation("utf8_general_ci");
  8227. entity.Property(e => e.Version).HasColumnType("int(11)");
  8228. });
  8229. modelBuilder.Entity<UserCashRecord>(entity =>
  8230. {
  8231. entity.Property(e => e.Id).HasColumnType("int(11)");
  8232. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  8233. entity.Property(e => e.CashOrderNo)
  8234. .HasColumnType("varchar(32)")
  8235. .HasCharSet("utf8")
  8236. .HasCollation("utf8_general_ci");
  8237. entity.Property(e => e.ChanelName)
  8238. .HasColumnType("varchar(32)")
  8239. .HasCharSet("utf8")
  8240. .HasCollation("utf8_general_ci");
  8241. entity.Property(e => e.ChannelCode)
  8242. .HasColumnType("varchar(16)")
  8243. .HasCharSet("utf8")
  8244. .HasCollation("utf8_general_ci");
  8245. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8246. entity.Property(e => e.CreateMan)
  8247. .HasColumnType("varchar(50)")
  8248. .HasCharSet("utf8")
  8249. .HasCollation("utf8_general_ci");
  8250. entity.Property(e => e.IdCardNo)
  8251. .HasColumnType("varchar(18)")
  8252. .HasCharSet("utf8")
  8253. .HasCollation("utf8_general_ci");
  8254. entity.Property(e => e.Ip)
  8255. .HasColumnType("varchar(15)")
  8256. .HasCharSet("utf8")
  8257. .HasCollation("utf8_general_ci");
  8258. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  8259. entity.Property(e => e.MediaSource)
  8260. .HasColumnType("varchar(16)")
  8261. .HasCharSet("utf8")
  8262. .HasCollation("utf8_general_ci");
  8263. entity.Property(e => e.PayTradeNo)
  8264. .HasColumnType("varchar(32)")
  8265. .HasCharSet("utf8")
  8266. .HasCollation("utf8_general_ci");
  8267. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  8268. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8269. entity.Property(e => e.Remark)
  8270. .HasColumnType("varchar(128)")
  8271. .HasCharSet("utf8")
  8272. .HasCollation("utf8_general_ci");
  8273. entity.Property(e => e.ReqData)
  8274. .HasColumnType("varchar(2048)")
  8275. .HasCharSet("utf8")
  8276. .HasCollation("utf8_general_ci");
  8277. entity.Property(e => e.ResData)
  8278. .HasColumnType("varchar(2048)")
  8279. .HasCharSet("utf8")
  8280. .HasCollation("utf8_general_ci");
  8281. entity.Property(e => e.ReturnCode)
  8282. .HasColumnType("varchar(32)")
  8283. .HasCharSet("utf8")
  8284. .HasCollation("utf8_general_ci");
  8285. entity.Property(e => e.ReturnMsg)
  8286. .HasColumnType("varchar(128)")
  8287. .HasCharSet("utf8")
  8288. .HasCollation("utf8_general_ci");
  8289. entity.Property(e => e.SeoDescription)
  8290. .HasColumnType("varchar(500)")
  8291. .HasCharSet("utf8")
  8292. .HasCollation("utf8_general_ci");
  8293. entity.Property(e => e.SeoKeyword)
  8294. .HasColumnType("varchar(200)")
  8295. .HasCharSet("utf8")
  8296. .HasCollation("utf8_general_ci");
  8297. entity.Property(e => e.SeoTitle)
  8298. .HasColumnType("varchar(100)")
  8299. .HasCharSet("utf8")
  8300. .HasCollation("utf8_general_ci");
  8301. entity.Property(e => e.SettleBankCardNo)
  8302. .HasColumnType("varchar(32)")
  8303. .HasCharSet("utf8")
  8304. .HasCollation("utf8_general_ci");
  8305. entity.Property(e => e.SettleBankName)
  8306. .HasColumnType("varchar(64)")
  8307. .HasCharSet("utf8")
  8308. .HasCollation("utf8_general_ci");
  8309. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8310. entity.Property(e => e.Status).HasColumnType("int(11)");
  8311. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8312. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  8313. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  8314. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8315. entity.Property(e => e.UpdateMan)
  8316. .HasColumnType("varchar(50)")
  8317. .HasCharSet("utf8")
  8318. .HasCollation("utf8_general_ci");
  8319. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8320. entity.Property(e => e.Version).HasColumnType("int(11)");
  8321. });
  8322. modelBuilder.Entity<UserCenterIconList>(entity =>
  8323. {
  8324. entity.Property(e => e.Id).HasColumnType("int(11)");
  8325. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8326. entity.Property(e => e.CreateMan)
  8327. .HasColumnType("varchar(50)")
  8328. .HasCharSet("utf8")
  8329. .HasCollation("utf8_general_ci");
  8330. entity.Property(e => e.Icon)
  8331. .HasColumnType("varchar(200)")
  8332. .HasCharSet("utf8")
  8333. .HasCollation("utf8_general_ci");
  8334. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8335. entity.Property(e => e.SeoDescription)
  8336. .HasColumnType("varchar(500)")
  8337. .HasCharSet("utf8")
  8338. .HasCollation("utf8_general_ci");
  8339. entity.Property(e => e.SeoKeyword)
  8340. .HasColumnType("varchar(200)")
  8341. .HasCharSet("utf8")
  8342. .HasCollation("utf8_general_ci");
  8343. entity.Property(e => e.SeoTitle)
  8344. .HasColumnType("varchar(100)")
  8345. .HasCharSet("utf8")
  8346. .HasCollation("utf8_general_ci");
  8347. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8348. entity.Property(e => e.Status).HasColumnType("int(11)");
  8349. entity.Property(e => e.Title)
  8350. .HasColumnType("varchar(50)")
  8351. .HasCharSet("utf8")
  8352. .HasCollation("utf8_general_ci");
  8353. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8354. entity.Property(e => e.UpdateMan)
  8355. .HasColumnType("varchar(50)")
  8356. .HasCharSet("utf8")
  8357. .HasCollation("utf8_general_ci");
  8358. entity.Property(e => e.Url)
  8359. .HasColumnType("varchar(50)")
  8360. .HasCharSet("utf8")
  8361. .HasCollation("utf8_general_ci");
  8362. entity.Property(e => e.Version).HasColumnType("int(11)");
  8363. });
  8364. modelBuilder.Entity<UserCollection>(entity =>
  8365. {
  8366. entity.Property(e => e.Id).HasColumnType("int(11)");
  8367. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8368. entity.Property(e => e.CreateMan)
  8369. .HasColumnType("varchar(50)")
  8370. .HasCharSet("utf8")
  8371. .HasCollation("utf8_general_ci");
  8372. entity.Property(e => e.DataId).HasColumnType("int(11)");
  8373. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8374. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8375. entity.Property(e => e.SeoDescription)
  8376. .HasColumnType("varchar(500)")
  8377. .HasCharSet("utf8")
  8378. .HasCollation("utf8_general_ci");
  8379. entity.Property(e => e.SeoKeyword)
  8380. .HasColumnType("varchar(200)")
  8381. .HasCharSet("utf8")
  8382. .HasCollation("utf8_general_ci");
  8383. entity.Property(e => e.SeoTitle)
  8384. .HasColumnType("varchar(100)")
  8385. .HasCharSet("utf8")
  8386. .HasCollation("utf8_general_ci");
  8387. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8388. entity.Property(e => e.Status).HasColumnType("int(11)");
  8389. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8390. entity.Property(e => e.UpdateMan)
  8391. .HasColumnType("varchar(50)")
  8392. .HasCharSet("utf8")
  8393. .HasCollation("utf8_general_ci");
  8394. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8395. entity.Property(e => e.Version).HasColumnType("int(11)");
  8396. });
  8397. modelBuilder.Entity<UserData>(entity =>
  8398. {
  8399. entity.HasKey(e => e.UserId)
  8400. .HasName("PRIMARY");
  8401. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8402. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  8403. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  8404. entity.Property(e => e.CollectionCount).HasColumnType("int(11)");
  8405. entity.Property(e => e.Coupons).HasColumnType("decimal(18,2)");
  8406. entity.Property(e => e.CurMoney).HasColumnType("decimal(18,2)");
  8407. entity.Property(e => e.FansCount).HasColumnType("int(11)");
  8408. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  8409. entity.Property(e => e.GrowthValue).HasColumnType("int(11)");
  8410. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  8411. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  8412. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  8413. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  8414. entity.Property(e => e.ToCommentOrderCount).HasColumnType("int(11)");
  8415. entity.Property(e => e.ToPayOrderCount).HasColumnType("int(11)");
  8416. entity.Property(e => e.ToReceiveOrderCount).HasColumnType("int(11)");
  8417. entity.Property(e => e.ToRefundOrderCount).HasColumnType("int(11)");
  8418. entity.Property(e => e.ToSendOrderCount).HasColumnType("int(11)");
  8419. entity.Property(e => e.TotalOrderMoney).HasColumnType("decimal(18,2)");
  8420. entity.Property(e => e.TotalUseIntegral).HasColumnType("decimal(18,2)");
  8421. });
  8422. modelBuilder.Entity<UserDetail>(entity =>
  8423. {
  8424. entity.Property(e => e.Id).HasColumnType("int(11)");
  8425. entity.Property(e => e.AddMan).HasColumnType("int(11)");
  8426. entity.Property(e => e.Birthday).HasColumnType("datetime");
  8427. entity.Property(e => e.CardAddAddress).HasColumnType("int(11)");
  8428. entity.Property(e => e.CardExpireDate).HasColumnType("datetime");
  8429. entity.Property(e => e.EduLevel).HasColumnType("int(11)");
  8430. entity.Property(e => e.Email)
  8431. .HasColumnType("varchar(50)")
  8432. .HasCharSet("utf8")
  8433. .HasCollation("utf8_general_ci");
  8434. entity.Property(e => e.FamilyIncome).HasColumnType("int(11)");
  8435. entity.Property(e => e.Interests)
  8436. .HasColumnType("varchar(200)")
  8437. .HasCharSet("utf8")
  8438. .HasCollation("utf8_general_ci");
  8439. entity.Property(e => e.Note)
  8440. .HasColumnType("longtext")
  8441. .HasCharSet("utf8")
  8442. .HasCollation("utf8_general_ci");
  8443. entity.Property(e => e.OfficePhone)
  8444. .HasColumnType("varchar(50)")
  8445. .HasCharSet("utf8")
  8446. .HasCollation("utf8_general_ci");
  8447. entity.Property(e => e.PostalCode)
  8448. .HasColumnType("varchar(6)")
  8449. .HasCharSet("utf8")
  8450. .HasCollation("utf8_general_ci");
  8451. entity.Property(e => e.PrivatePhone)
  8452. .HasColumnType("varchar(50)")
  8453. .HasCharSet("utf8")
  8454. .HasCollation("utf8_general_ci");
  8455. entity.Property(e => e.ToShopDate).HasColumnType("datetime");
  8456. entity.Property(e => e.TrafficTool).HasColumnType("int(11)");
  8457. entity.Property(e => e.UpdateMan).HasColumnType("int(11)");
  8458. entity.Property(e => e.UserJob).HasColumnType("int(11)");
  8459. });
  8460. modelBuilder.Entity<UserFamilyMember>(entity =>
  8461. {
  8462. entity.Property(e => e.Id).HasColumnType("int(11)");
  8463. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8464. entity.Property(e => e.CreateMan)
  8465. .HasColumnType("varchar(50)")
  8466. .HasCharSet("utf8")
  8467. .HasCollation("utf8_general_ci");
  8468. entity.Property(e => e.IdCardNo)
  8469. .HasColumnType("varchar(18)")
  8470. .HasCharSet("utf8")
  8471. .HasCollation("utf8_general_ci");
  8472. entity.Property(e => e.Job).HasColumnType("int(11)");
  8473. entity.Property(e => e.MemberKind).HasColumnType("int(11)");
  8474. entity.Property(e => e.Mobile)
  8475. .HasColumnType("varchar(11)")
  8476. .HasCharSet("utf8")
  8477. .HasCollation("utf8_general_ci");
  8478. entity.Property(e => e.Name)
  8479. .HasColumnType("varchar(20)")
  8480. .HasCharSet("utf8")
  8481. .HasCollation("utf8_general_ci");
  8482. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8483. entity.Property(e => e.SeoDescription)
  8484. .HasColumnType("varchar(500)")
  8485. .HasCharSet("utf8")
  8486. .HasCollation("utf8_general_ci");
  8487. entity.Property(e => e.SeoKeyword)
  8488. .HasColumnType("varchar(200)")
  8489. .HasCharSet("utf8")
  8490. .HasCollation("utf8_general_ci");
  8491. entity.Property(e => e.SeoTitle)
  8492. .HasColumnType("varchar(100)")
  8493. .HasCharSet("utf8")
  8494. .HasCollation("utf8_general_ci");
  8495. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8496. entity.Property(e => e.Status).HasColumnType("int(11)");
  8497. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8498. entity.Property(e => e.UpdateMan)
  8499. .HasColumnType("varchar(50)")
  8500. .HasCharSet("utf8")
  8501. .HasCollation("utf8_general_ci");
  8502. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8503. entity.Property(e => e.Version).HasColumnType("int(11)");
  8504. });
  8505. modelBuilder.Entity<UserForMakerCode>(entity =>
  8506. {
  8507. entity.HasKey(e => e.MakerCode)
  8508. .HasName("PRIMARY");
  8509. entity.Property(e => e.MakerCode)
  8510. .HasColumnType("varchar(30)")
  8511. .HasCharSet("utf8")
  8512. .HasCollation("utf8_general_ci");
  8513. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8514. });
  8515. modelBuilder.Entity<UserForMobile>(entity =>
  8516. {
  8517. entity.HasKey(e => e.Mobile)
  8518. .HasName("PRIMARY");
  8519. entity.Property(e => e.Mobile)
  8520. .HasColumnType("varchar(11)")
  8521. .HasCharSet("utf8")
  8522. .HasCollation("utf8_general_ci");
  8523. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8524. });
  8525. modelBuilder.Entity<UserForRealName>(entity =>
  8526. {
  8527. entity.HasKey(e => e.RealName)
  8528. .HasName("PRIMARY");
  8529. entity.Property(e => e.RealName)
  8530. .HasColumnType("varchar(30)")
  8531. .HasCharSet("utf8")
  8532. .HasCollation("utf8_general_ci");
  8533. entity.Property(e => e.UserId)
  8534. .HasColumnType("varchar(100)")
  8535. .HasCharSet("utf8")
  8536. .HasCollation("utf8_general_ci");
  8537. });
  8538. modelBuilder.Entity<UserFriend>(entity =>
  8539. {
  8540. entity.Property(e => e.Id).HasColumnType("int(11)");
  8541. entity.Property(e => e.FriendId).HasColumnType("int(11)");
  8542. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8543. });
  8544. modelBuilder.Entity<UserGroup>(entity =>
  8545. {
  8546. entity.Property(e => e.Id).HasColumnType("int(11)");
  8547. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8548. entity.Property(e => e.CreateMan)
  8549. .HasColumnType("varchar(50)")
  8550. .HasCharSet("utf8")
  8551. .HasCollation("utf8_general_ci");
  8552. entity.Property(e => e.Details)
  8553. .HasColumnType("varchar(200)")
  8554. .HasCharSet("utf8")
  8555. .HasCollation("utf8_general_ci");
  8556. entity.Property(e => e.Name)
  8557. .HasColumnType("varchar(20)")
  8558. .HasCharSet("utf8")
  8559. .HasCollation("utf8_general_ci");
  8560. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8561. entity.Property(e => e.SeoDescription)
  8562. .HasColumnType("varchar(500)")
  8563. .HasCharSet("utf8")
  8564. .HasCollation("utf8_general_ci");
  8565. entity.Property(e => e.SeoKeyword)
  8566. .HasColumnType("varchar(200)")
  8567. .HasCharSet("utf8")
  8568. .HasCollation("utf8_general_ci");
  8569. entity.Property(e => e.SeoTitle)
  8570. .HasColumnType("varchar(100)")
  8571. .HasCharSet("utf8")
  8572. .HasCollation("utf8_general_ci");
  8573. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8574. entity.Property(e => e.Status).HasColumnType("int(11)");
  8575. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8576. entity.Property(e => e.UpdateMan)
  8577. .HasColumnType("varchar(50)")
  8578. .HasCharSet("utf8")
  8579. .HasCollation("utf8_general_ci");
  8580. entity.Property(e => e.Version).HasColumnType("int(11)");
  8581. });
  8582. modelBuilder.Entity<UserLevelSet>(entity =>
  8583. {
  8584. entity.Property(e => e.Id).HasColumnType("int(11)");
  8585. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8586. entity.Property(e => e.CreateMan)
  8587. .HasColumnType("varchar(50)")
  8588. .HasCharSet("utf8")
  8589. .HasCollation("utf8_general_ci");
  8590. entity.Property(e => e.Details)
  8591. .HasColumnType("varchar(200)")
  8592. .HasCharSet("utf8")
  8593. .HasCollation("utf8_general_ci");
  8594. entity.Property(e => e.Name)
  8595. .HasColumnType("varchar(20)")
  8596. .HasCharSet("utf8")
  8597. .HasCollation("utf8_general_ci");
  8598. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8599. entity.Property(e => e.SeoDescription)
  8600. .HasColumnType("varchar(500)")
  8601. .HasCharSet("utf8")
  8602. .HasCollation("utf8_general_ci");
  8603. entity.Property(e => e.SeoKeyword)
  8604. .HasColumnType("varchar(200)")
  8605. .HasCharSet("utf8")
  8606. .HasCollation("utf8_general_ci");
  8607. entity.Property(e => e.SeoTitle)
  8608. .HasColumnType("varchar(100)")
  8609. .HasCharSet("utf8")
  8610. .HasCollation("utf8_general_ci");
  8611. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8612. entity.Property(e => e.Status).HasColumnType("int(11)");
  8613. entity.Property(e => e.UpLevelDays).HasColumnType("int(11)");
  8614. entity.Property(e => e.UpLevelGrowth).HasColumnType("int(11)");
  8615. entity.Property(e => e.UpLevelIntegral).HasColumnType("decimal(10,0)");
  8616. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8617. entity.Property(e => e.UpdateMan)
  8618. .HasColumnType("varchar(50)")
  8619. .HasCharSet("utf8")
  8620. .HasCollation("utf8_general_ci");
  8621. entity.Property(e => e.Version).HasColumnType("int(11)");
  8622. });
  8623. modelBuilder.Entity<UserLoginRecord>(entity =>
  8624. {
  8625. entity.Property(e => e.Id).HasColumnType("int(11)");
  8626. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8627. entity.Property(e => e.CreateMan)
  8628. .HasColumnType("varchar(50)")
  8629. .HasCharSet("utf8")
  8630. .HasCollation("utf8_general_ci");
  8631. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8632. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8633. entity.Property(e => e.SeoDescription)
  8634. .HasColumnType("varchar(500)")
  8635. .HasCharSet("utf8")
  8636. .HasCollation("utf8_general_ci");
  8637. entity.Property(e => e.SeoKeyword)
  8638. .HasColumnType("varchar(200)")
  8639. .HasCharSet("utf8")
  8640. .HasCollation("utf8_general_ci");
  8641. entity.Property(e => e.SeoTitle)
  8642. .HasColumnType("varchar(100)")
  8643. .HasCharSet("utf8")
  8644. .HasCollation("utf8_general_ci");
  8645. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8646. entity.Property(e => e.Status).HasColumnType("int(11)");
  8647. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8648. entity.Property(e => e.UpdateMan)
  8649. .HasColumnType("varchar(50)")
  8650. .HasCharSet("utf8")
  8651. .HasCollation("utf8_general_ci");
  8652. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8653. entity.Property(e => e.Version).HasColumnType("int(11)");
  8654. });
  8655. modelBuilder.Entity<UserMachineData>(entity =>
  8656. {
  8657. entity.HasKey(e => e.IdBrand)
  8658. .HasName("PRIMARY");
  8659. entity.Property(e => e.IdBrand)
  8660. .HasColumnType("varchar(50)")
  8661. .HasCharSet("utf8")
  8662. .HasCollation("utf8_general_ci");
  8663. entity.Property(e => e.ActProfit).HasColumnType("decimal(18,2)");
  8664. entity.Property(e => e.BindCount).HasColumnType("int(11)");
  8665. entity.Property(e => e.DividendsProfit).HasColumnType("decimal(18,2)");
  8666. entity.Property(e => e.FluxProfit).HasColumnType("decimal(18,2)");
  8667. entity.Property(e => e.OpenProfit).HasColumnType("decimal(18,2)");
  8668. entity.Property(e => e.OtherProfit).HasColumnType("decimal(18,2)");
  8669. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  8670. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  8671. entity.Property(e => e.UnBindCount).HasColumnType("int(11)");
  8672. });
  8673. modelBuilder.Entity<UserMallLargeSn>(entity =>
  8674. {
  8675. entity.Property(e => e.Id).HasColumnType("int(11)");
  8676. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8677. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8678. entity.Property(e => e.CreateMan)
  8679. .HasColumnType("varchar(50)")
  8680. .HasCharSet("utf8")
  8681. .HasCollation("utf8_general_ci");
  8682. entity.Property(e => e.OrderAmount).HasColumnType("decimal(18,2)");
  8683. entity.Property(e => e.OrderNo)
  8684. .HasColumnType("varchar(32)")
  8685. .HasCharSet("utf8")
  8686. .HasCollation("utf8_general_ci");
  8687. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  8688. entity.Property(e => e.ProductName)
  8689. .HasColumnType("varchar(32)")
  8690. .HasCharSet("utf8")
  8691. .HasCollation("utf8_general_ci");
  8692. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8693. entity.Property(e => e.Remark)
  8694. .HasColumnType("varchar(64)")
  8695. .HasCharSet("utf8")
  8696. .HasCollation("utf8_general_ci");
  8697. entity.Property(e => e.RuleOrderAmt).HasColumnType("decimal(18,2)");
  8698. entity.Property(e => e.SeoDescription)
  8699. .HasColumnType("varchar(500)")
  8700. .HasCharSet("utf8")
  8701. .HasCollation("utf8_general_ci");
  8702. entity.Property(e => e.SeoKeyword)
  8703. .HasColumnType("varchar(200)")
  8704. .HasCharSet("utf8")
  8705. .HasCollation("utf8_general_ci");
  8706. entity.Property(e => e.SeoTitle)
  8707. .HasColumnType("varchar(100)")
  8708. .HasCharSet("utf8")
  8709. .HasCollation("utf8_general_ci");
  8710. entity.Property(e => e.SnNo)
  8711. .HasColumnType("varchar(32)")
  8712. .HasCharSet("utf8")
  8713. .HasCollation("utf8_general_ci");
  8714. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8715. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  8716. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8717. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8718. entity.Property(e => e.Status).HasColumnType("int(11)");
  8719. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  8720. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8721. entity.Property(e => e.UpdateMan)
  8722. .HasColumnType("varchar(50)")
  8723. .HasCharSet("utf8")
  8724. .HasCollation("utf8_general_ci");
  8725. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8726. entity.Property(e => e.Version).HasColumnType("int(11)");
  8727. });
  8728. modelBuilder.Entity<UserOfflineSignInRecords>(entity =>
  8729. {
  8730. entity.Property(e => e.Id).HasColumnType("int(11)");
  8731. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8732. entity.Property(e => e.CreateMan)
  8733. .HasColumnType("varchar(50)")
  8734. .HasCharSet("utf8")
  8735. .HasCollation("utf8_general_ci");
  8736. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8737. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8738. entity.Property(e => e.SeoDescription)
  8739. .HasColumnType("varchar(500)")
  8740. .HasCharSet("utf8")
  8741. .HasCollation("utf8_general_ci");
  8742. entity.Property(e => e.SeoKeyword)
  8743. .HasColumnType("varchar(200)")
  8744. .HasCharSet("utf8")
  8745. .HasCollation("utf8_general_ci");
  8746. entity.Property(e => e.SeoTitle)
  8747. .HasColumnType("varchar(100)")
  8748. .HasCharSet("utf8")
  8749. .HasCollation("utf8_general_ci");
  8750. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8751. entity.Property(e => e.Status).HasColumnType("int(11)");
  8752. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8753. entity.Property(e => e.UpdateMan)
  8754. .HasColumnType("varchar(50)")
  8755. .HasCharSet("utf8")
  8756. .HasCollation("utf8_general_ci");
  8757. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8758. entity.Property(e => e.Version).HasColumnType("int(11)");
  8759. });
  8760. modelBuilder.Entity<UserProfit>(entity =>
  8761. {
  8762. entity.Property(e => e.Id).HasColumnType("int(11)");
  8763. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8764. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8765. entity.Property(e => e.CardType)
  8766. .HasColumnType("varchar(10)")
  8767. .HasCharSet("utf8")
  8768. .HasCollation("utf8_general_ci");
  8769. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8770. entity.Property(e => e.CreateMan)
  8771. .HasColumnType("varchar(50)")
  8772. .HasCharSet("utf8")
  8773. .HasCollation("utf8_general_ci");
  8774. entity.Property(e => e.HelpAddOrSubRate).HasColumnType("decimal(18,2)");
  8775. entity.Property(e => e.HelpProfitPercent).HasColumnType("decimal(18,2)");
  8776. entity.Property(e => e.HelpProfitRate).HasColumnType("decimal(18,2)");
  8777. entity.Property(e => e.HelpProfitRateBase).HasColumnType("decimal(18,2)");
  8778. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8779. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8780. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8781. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8782. entity.Property(e => e.Remark)
  8783. .HasColumnType("varchar(64)")
  8784. .HasCharSet("utf8")
  8785. .HasCollation("utf8_general_ci");
  8786. entity.Property(e => e.SeoDescription)
  8787. .HasColumnType("varchar(500)")
  8788. .HasCharSet("utf8")
  8789. .HasCollation("utf8_general_ci");
  8790. entity.Property(e => e.SeoKeyword)
  8791. .HasColumnType("varchar(200)")
  8792. .HasCharSet("utf8")
  8793. .HasCollation("utf8_general_ci");
  8794. entity.Property(e => e.SeoTitle)
  8795. .HasColumnType("varchar(100)")
  8796. .HasCharSet("utf8")
  8797. .HasCollation("utf8_general_ci");
  8798. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8799. entity.Property(e => e.Status).HasColumnType("int(11)");
  8800. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8801. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8802. entity.Property(e => e.UpdateMan)
  8803. .HasColumnType("varchar(50)")
  8804. .HasCharSet("utf8")
  8805. .HasCollation("utf8_general_ci");
  8806. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8807. entity.Property(e => e.Version).HasColumnType("int(11)");
  8808. });
  8809. modelBuilder.Entity<UserProfitSet>(entity =>
  8810. {
  8811. entity.Property(e => e.Id).HasColumnType("int(11)");
  8812. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8813. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8814. entity.Property(e => e.CardType).HasColumnType("int(11)");
  8815. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8816. entity.Property(e => e.CreateMan)
  8817. .HasColumnType("varchar(50)")
  8818. .HasCharSet("utf8")
  8819. .HasCollation("utf8_general_ci");
  8820. entity.Property(e => e.HelpFlag).HasColumnType("int(11)");
  8821. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8822. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8823. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8824. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8825. entity.Property(e => e.Remark)
  8826. .HasColumnType("varchar(64)")
  8827. .HasCharSet("utf8")
  8828. .HasCollation("utf8_general_ci");
  8829. entity.Property(e => e.SeoDescription)
  8830. .HasColumnType("varchar(500)")
  8831. .HasCharSet("utf8")
  8832. .HasCollation("utf8_general_ci");
  8833. entity.Property(e => e.SeoKeyword)
  8834. .HasColumnType("varchar(200)")
  8835. .HasCharSet("utf8")
  8836. .HasCollation("utf8_general_ci");
  8837. entity.Property(e => e.SeoTitle)
  8838. .HasColumnType("varchar(100)")
  8839. .HasCharSet("utf8")
  8840. .HasCollation("utf8_general_ci");
  8841. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8842. entity.Property(e => e.Status).HasColumnType("int(11)");
  8843. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8844. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8845. entity.Property(e => e.UpdateMan)
  8846. .HasColumnType("varchar(50)")
  8847. .HasCharSet("utf8")
  8848. .HasCollation("utf8_general_ci");
  8849. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8850. entity.Property(e => e.Version).HasColumnType("int(11)");
  8851. });
  8852. modelBuilder.Entity<UserProfitSubsidySummary>(entity =>
  8853. {
  8854. entity.Property(e => e.Id).HasColumnType("int(11)");
  8855. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8856. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  8857. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8858. entity.Property(e => e.CreateMan)
  8859. .HasColumnType("varchar(50)")
  8860. .HasCharSet("utf8")
  8861. .HasCollation("utf8_general_ci");
  8862. entity.Property(e => e.MgrName)
  8863. .HasColumnType("varchar(32)")
  8864. .HasCharSet("utf8")
  8865. .HasCollation("utf8_general_ci");
  8866. entity.Property(e => e.MgrNo)
  8867. .HasColumnType("varchar(16)")
  8868. .HasCharSet("utf8")
  8869. .HasCollation("utf8_general_ci");
  8870. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8871. entity.Property(e => e.SeoDescription)
  8872. .HasColumnType("varchar(500)")
  8873. .HasCharSet("utf8")
  8874. .HasCollation("utf8_general_ci");
  8875. entity.Property(e => e.SeoKeyword)
  8876. .HasColumnType("varchar(200)")
  8877. .HasCharSet("utf8")
  8878. .HasCollation("utf8_general_ci");
  8879. entity.Property(e => e.SeoTitle)
  8880. .HasColumnType("varchar(100)")
  8881. .HasCharSet("utf8")
  8882. .HasCollation("utf8_general_ci");
  8883. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8884. entity.Property(e => e.Status).HasColumnType("int(11)");
  8885. entity.Property(e => e.SubsidyDirectProfit).HasColumnType("decimal(18,2)");
  8886. entity.Property(e => e.SubsidyJuniorProfit).HasColumnType("decimal(18,2)");
  8887. entity.Property(e => e.SubsidyTotalProfit).HasColumnType("decimal(18,2)");
  8888. entity.Property(e => e.TradeMonth)
  8889. .HasColumnType("varchar(6)")
  8890. .HasCharSet("utf8")
  8891. .HasCollation("utf8_general_ci");
  8892. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8893. entity.Property(e => e.UpdateMan)
  8894. .HasColumnType("varchar(50)")
  8895. .HasCharSet("utf8")
  8896. .HasCollation("utf8_general_ci");
  8897. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8898. entity.Property(e => e.Version).HasColumnType("int(11)");
  8899. });
  8900. modelBuilder.Entity<UserRank>(entity =>
  8901. {
  8902. entity.Property(e => e.Id).HasColumnType("int(11)");
  8903. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8904. entity.Property(e => e.CreateMan)
  8905. .HasColumnType("varchar(50)")
  8906. .HasCharSet("utf8")
  8907. .HasCollation("utf8_general_ci");
  8908. entity.Property(e => e.ExceedVal).HasColumnType("int(11)");
  8909. entity.Property(e => e.NextRank).HasColumnType("int(11)");
  8910. entity.Property(e => e.OperateDate).HasColumnType("datetime");
  8911. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8912. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8913. entity.Property(e => e.SeoDescription)
  8914. .HasColumnType("varchar(500)")
  8915. .HasCharSet("utf8")
  8916. .HasCollation("utf8_general_ci");
  8917. entity.Property(e => e.SeoKeyword)
  8918. .HasColumnType("varchar(200)")
  8919. .HasCharSet("utf8")
  8920. .HasCollation("utf8_general_ci");
  8921. entity.Property(e => e.SeoTitle)
  8922. .HasColumnType("varchar(100)")
  8923. .HasCharSet("utf8")
  8924. .HasCollation("utf8_general_ci");
  8925. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8926. entity.Property(e => e.StatMonth).HasColumnType("int(11)");
  8927. entity.Property(e => e.StatYear).HasColumnType("int(11)");
  8928. entity.Property(e => e.Status).HasColumnType("int(11)");
  8929. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  8930. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8931. entity.Property(e => e.UpdateMan)
  8932. .HasColumnType("varchar(50)")
  8933. .HasCharSet("utf8")
  8934. .HasCollation("utf8_general_ci");
  8935. entity.Property(e => e.UpgradeFlag)
  8936. .HasColumnType("bit(1)")
  8937. .HasDefaultValueSql("b'0'");
  8938. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8939. entity.Property(e => e.Version).HasColumnType("int(11)");
  8940. entity.Property(e => e.WhiteRank).HasColumnType("int(11)");
  8941. });
  8942. modelBuilder.Entity<UserRankWhite>(entity =>
  8943. {
  8944. entity.Property(e => e.Id).HasColumnType("int(11)");
  8945. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8946. entity.Property(e => e.CreateMan)
  8947. .HasColumnType("varchar(50)")
  8948. .HasCharSet("utf8")
  8949. .HasCollation("utf8_general_ci");
  8950. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8951. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8952. entity.Property(e => e.SeoDescription)
  8953. .HasColumnType("varchar(500)")
  8954. .HasCharSet("utf8")
  8955. .HasCollation("utf8_general_ci");
  8956. entity.Property(e => e.SeoKeyword)
  8957. .HasColumnType("varchar(200)")
  8958. .HasCharSet("utf8")
  8959. .HasCollation("utf8_general_ci");
  8960. entity.Property(e => e.SeoTitle)
  8961. .HasColumnType("varchar(100)")
  8962. .HasCharSet("utf8")
  8963. .HasCollation("utf8_general_ci");
  8964. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8965. entity.Property(e => e.Status).HasColumnType("int(11)");
  8966. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8967. entity.Property(e => e.UpdateMan)
  8968. .HasColumnType("varchar(50)")
  8969. .HasCharSet("utf8")
  8970. .HasCollation("utf8_general_ci");
  8971. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8972. entity.Property(e => e.Version).HasColumnType("int(11)");
  8973. });
  8974. modelBuilder.Entity<UserRebateDetail>(entity =>
  8975. {
  8976. entity.Property(e => e.Id).HasColumnType("int(11)");
  8977. entity.Property(e => e.ChannelMerNo)
  8978. .HasColumnType("varchar(32)")
  8979. .HasCharSet("utf8")
  8980. .HasCollation("utf8_general_ci");
  8981. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8982. entity.Property(e => e.CreateMan)
  8983. .HasColumnType("varchar(50)")
  8984. .HasCharSet("utf8")
  8985. .HasCollation("utf8_general_ci");
  8986. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  8987. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  8988. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  8989. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  8990. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8991. entity.Property(e => e.MgrName)
  8992. .HasColumnType("varchar(32)")
  8993. .HasCharSet("utf8")
  8994. .HasCollation("utf8_general_ci");
  8995. entity.Property(e => e.MgrNo)
  8996. .HasColumnType("varchar(16)")
  8997. .HasCharSet("utf8")
  8998. .HasCollation("utf8_general_ci");
  8999. entity.Property(e => e.ProductName)
  9000. .HasColumnType("varchar(32)")
  9001. .HasCharSet("utf8")
  9002. .HasCollation("utf8_general_ci");
  9003. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  9004. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9005. entity.Property(e => e.RebateMonthCount).HasColumnType("int(11)");
  9006. entity.Property(e => e.RebateRewardNo)
  9007. .HasColumnType("varchar(32)")
  9008. .HasCharSet("utf8")
  9009. .HasCollation("utf8_general_ci");
  9010. entity.Property(e => e.RebateType).HasColumnType("int(11)");
  9011. entity.Property(e => e.Remark)
  9012. .HasColumnType("varchar(64)")
  9013. .HasCharSet("utf8")
  9014. .HasCollation("utf8_general_ci");
  9015. entity.Property(e => e.SeoDescription)
  9016. .HasColumnType("varchar(500)")
  9017. .HasCharSet("utf8")
  9018. .HasCollation("utf8_general_ci");
  9019. entity.Property(e => e.SeoKeyword)
  9020. .HasColumnType("varchar(200)")
  9021. .HasCharSet("utf8")
  9022. .HasCollation("utf8_general_ci");
  9023. entity.Property(e => e.SeoTitle)
  9024. .HasColumnType("varchar(100)")
  9025. .HasCharSet("utf8")
  9026. .HasCollation("utf8_general_ci");
  9027. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9028. entity.Property(e => e.Status).HasColumnType("int(11)");
  9029. entity.Property(e => e.TradeDate)
  9030. .HasColumnType("varchar(8)")
  9031. .HasCharSet("utf8")
  9032. .HasCollation("utf8_general_ci");
  9033. entity.Property(e => e.TradeMonth)
  9034. .HasColumnType("varchar(6)")
  9035. .HasCharSet("utf8")
  9036. .HasCollation("utf8_general_ci");
  9037. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9038. entity.Property(e => e.UpdateMan)
  9039. .HasColumnType("varchar(50)")
  9040. .HasCharSet("utf8")
  9041. .HasCollation("utf8_general_ci");
  9042. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9043. entity.Property(e => e.Version).HasColumnType("int(11)");
  9044. });
  9045. modelBuilder.Entity<UserSnActInfo>(entity =>
  9046. {
  9047. entity.Property(e => e.Id).HasColumnType("int(11)");
  9048. entity.Property(e => e.ActUserId).HasColumnType("int(11)");
  9049. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9050. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9051. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9052. entity.Property(e => e.CreateMan)
  9053. .HasColumnType("varchar(50)")
  9054. .HasCharSet("utf8")
  9055. .HasCollation("utf8_general_ci");
  9056. entity.Property(e => e.EffectEndActDate)
  9057. .HasColumnType("varchar(8)")
  9058. .HasCharSet("utf8")
  9059. .HasCollation("utf8_general_ci");
  9060. entity.Property(e => e.EffectEndCycleDate)
  9061. .HasColumnType("varchar(8)")
  9062. .HasCharSet("utf8")
  9063. .HasCollation("utf8_general_ci");
  9064. entity.Property(e => e.EffectStartActDate)
  9065. .HasColumnType("varchar(8)")
  9066. .HasCharSet("utf8")
  9067. .HasCollation("utf8_general_ci");
  9068. entity.Property(e => e.EffectStartCycleDate)
  9069. .HasColumnType("varchar(8)")
  9070. .HasCharSet("utf8")
  9071. .HasCollation("utf8_general_ci");
  9072. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9073. entity.Property(e => e.Remark)
  9074. .HasColumnType("varchar(128)")
  9075. .HasCharSet("utf8")
  9076. .HasCollation("utf8_general_ci");
  9077. entity.Property(e => e.SeoDescription)
  9078. .HasColumnType("varchar(500)")
  9079. .HasCharSet("utf8")
  9080. .HasCollation("utf8_general_ci");
  9081. entity.Property(e => e.SeoKeyword)
  9082. .HasColumnType("varchar(200)")
  9083. .HasCharSet("utf8")
  9084. .HasCollation("utf8_general_ci");
  9085. entity.Property(e => e.SeoTitle)
  9086. .HasColumnType("varchar(100)")
  9087. .HasCharSet("utf8")
  9088. .HasCollation("utf8_general_ci");
  9089. entity.Property(e => e.SnNo)
  9090. .HasColumnType("varchar(32)")
  9091. .HasCharSet("utf8")
  9092. .HasCollation("utf8_general_ci");
  9093. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  9094. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9095. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9096. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9097. entity.Property(e => e.SourceShipDate).HasColumnType("datetime");
  9098. entity.Property(e => e.SourceSnNo)
  9099. .HasColumnType("varchar(32)")
  9100. .HasCharSet("utf8")
  9101. .HasCollation("utf8_general_ci");
  9102. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9103. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9104. entity.Property(e => e.StandardDate)
  9105. .HasColumnType("varchar(8)")
  9106. .HasCharSet("utf8")
  9107. .HasCollation("utf8_general_ci");
  9108. entity.Property(e => e.Status).HasColumnType("int(11)");
  9109. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9110. entity.Property(e => e.UpdateMan)
  9111. .HasColumnType("varchar(50)")
  9112. .HasCharSet("utf8")
  9113. .HasCollation("utf8_general_ci");
  9114. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9115. entity.Property(e => e.Version).HasColumnType("int(11)");
  9116. });
  9117. modelBuilder.Entity<UserSnDelayChange>(entity =>
  9118. {
  9119. entity.Property(e => e.Id).HasColumnType("int(11)");
  9120. entity.Property(e => e.ActivityRuleId).HasColumnType("int(11)");
  9121. entity.Property(e => e.AfterEndCycleDate)
  9122. .HasColumnType("varchar(8)")
  9123. .HasCharSet("utf8")
  9124. .HasCollation("utf8_general_ci");
  9125. entity.Property(e => e.BeforeEndCycleDate)
  9126. .HasColumnType("varchar(8)")
  9127. .HasCharSet("utf8")
  9128. .HasCollation("utf8_general_ci");
  9129. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9130. entity.Property(e => e.ChangeRecordNo)
  9131. .HasColumnType("varchar(32)")
  9132. .HasCharSet("utf8")
  9133. .HasCollation("utf8_general_ci");
  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.InitCycleDate)
  9140. .HasColumnType("varchar(8)")
  9141. .HasCharSet("utf8")
  9142. .HasCollation("utf8_general_ci");
  9143. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9144. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  9145. entity.Property(e => e.Remark)
  9146. .HasColumnType("varchar(128)")
  9147. .HasCharSet("utf8")
  9148. .HasCollation("utf8_general_ci");
  9149. entity.Property(e => e.SeoDescription)
  9150. .HasColumnType("varchar(500)")
  9151. .HasCharSet("utf8")
  9152. .HasCollation("utf8_general_ci");
  9153. entity.Property(e => e.SeoKeyword)
  9154. .HasColumnType("varchar(200)")
  9155. .HasCharSet("utf8")
  9156. .HasCollation("utf8_general_ci");
  9157. entity.Property(e => e.SeoTitle)
  9158. .HasColumnType("varchar(100)")
  9159. .HasCharSet("utf8")
  9160. .HasCollation("utf8_general_ci");
  9161. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  9162. entity.Property(e => e.SnNo)
  9163. .HasColumnType("varchar(32)")
  9164. .HasCharSet("utf8")
  9165. .HasCollation("utf8_general_ci");
  9166. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9167. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9168. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9169. entity.Property(e => e.SourceSnNo)
  9170. .HasColumnType("varchar(32)")
  9171. .HasCharSet("utf8")
  9172. .HasCollation("utf8_general_ci");
  9173. entity.Property(e => e.SourceSnShipDate).HasColumnType("datetime");
  9174. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9175. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9176. entity.Property(e => e.Status).HasColumnType("int(11)");
  9177. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9178. entity.Property(e => e.UpdateMan)
  9179. .HasColumnType("varchar(50)")
  9180. .HasCharSet("utf8")
  9181. .HasCollation("utf8_general_ci");
  9182. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9183. entity.Property(e => e.Version).HasColumnType("int(11)");
  9184. });
  9185. modelBuilder.Entity<UserStoreChange>(entity =>
  9186. {
  9187. entity.Property(e => e.Id).HasColumnType("int(11)");
  9188. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  9189. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9190. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  9191. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  9192. entity.Property(e => e.BizBatchNo)
  9193. .HasColumnType("varchar(32)")
  9194. .HasCharSet("utf8")
  9195. .HasCollation("utf8_general_ci");
  9196. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9197. entity.Property(e => e.BrandType)
  9198. .HasColumnType("varchar(10)")
  9199. .HasCharSet("utf8")
  9200. .HasCollation("utf8_general_ci");
  9201. entity.Property(e => e.ChangeRecordNo)
  9202. .HasColumnType("varchar(32)")
  9203. .HasCharSet("utf8")
  9204. .HasCollation("utf8_general_ci");
  9205. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9206. entity.Property(e => e.CreateMan)
  9207. .HasColumnType("varchar(50)")
  9208. .HasCharSet("utf8")
  9209. .HasCollation("utf8_general_ci");
  9210. entity.Property(e => e.DeviceModel)
  9211. .HasColumnType("varchar(32)")
  9212. .HasCharSet("utf8")
  9213. .HasCollation("utf8_general_ci");
  9214. entity.Property(e => e.DeviceType)
  9215. .HasColumnType("varchar(32)")
  9216. .HasCharSet("utf8")
  9217. .HasCollation("utf8_general_ci");
  9218. entity.Property(e => e.DeviceVendor)
  9219. .HasColumnType("varchar(32)")
  9220. .HasCharSet("utf8")
  9221. .HasCollation("utf8_general_ci");
  9222. entity.Property(e => e.FromDate).HasColumnType("datetime");
  9223. entity.Property(e => e.FromRemark)
  9224. .HasColumnType("varchar(64)")
  9225. .HasCharSet("utf8")
  9226. .HasCollation("utf8_general_ci");
  9227. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  9228. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9229. entity.Property(e => e.SeoDescription)
  9230. .HasColumnType("varchar(500)")
  9231. .HasCharSet("utf8")
  9232. .HasCollation("utf8_general_ci");
  9233. entity.Property(e => e.SeoKeyword)
  9234. .HasColumnType("varchar(200)")
  9235. .HasCharSet("utf8")
  9236. .HasCollation("utf8_general_ci");
  9237. entity.Property(e => e.SeoTitle)
  9238. .HasColumnType("varchar(100)")
  9239. .HasCharSet("utf8")
  9240. .HasCollation("utf8_general_ci");
  9241. entity.Property(e => e.SnNo)
  9242. .HasColumnType("varchar(32)")
  9243. .HasCharSet("utf8")
  9244. .HasCollation("utf8_general_ci");
  9245. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  9246. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9247. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9248. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9249. entity.Property(e => e.Status).HasColumnType("int(11)");
  9250. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  9251. entity.Property(e => e.ToDate).HasColumnType("datetime");
  9252. entity.Property(e => e.ToRemark)
  9253. .HasColumnType("varchar(64)")
  9254. .HasCharSet("utf8")
  9255. .HasCollation("utf8_general_ci");
  9256. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  9257. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  9258. entity.Property(e => e.TransType).HasColumnType("int(11)");
  9259. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9260. entity.Property(e => e.UpdateMan)
  9261. .HasColumnType("varchar(50)")
  9262. .HasCharSet("utf8")
  9263. .HasCollation("utf8_general_ci");
  9264. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9265. entity.Property(e => e.Version).HasColumnType("int(11)");
  9266. });
  9267. modelBuilder.Entity<UserSwapDetail>(entity =>
  9268. {
  9269. entity.Property(e => e.Id).HasColumnType("int(11)");
  9270. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9271. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9272. entity.Property(e => e.CreateMan)
  9273. .HasColumnType("varchar(50)")
  9274. .HasCharSet("utf8")
  9275. .HasCollation("utf8_general_ci");
  9276. entity.Property(e => e.DirectSnTradeAmt).HasColumnType("decimal(18,2)");
  9277. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9278. entity.Property(e => e.RecordNo)
  9279. .HasColumnType("varchar(32)")
  9280. .HasCharSet("utf8")
  9281. .HasCollation("utf8_general_ci");
  9282. entity.Property(e => e.Remark)
  9283. .HasColumnType("varchar(64)")
  9284. .HasCharSet("utf8")
  9285. .HasCollation("utf8_general_ci");
  9286. entity.Property(e => e.RiskResult).HasColumnType("int(11)");
  9287. entity.Property(e => e.SeoDescription)
  9288. .HasColumnType("varchar(500)")
  9289. .HasCharSet("utf8")
  9290. .HasCollation("utf8_general_ci");
  9291. entity.Property(e => e.SeoKeyword)
  9292. .HasColumnType("varchar(200)")
  9293. .HasCharSet("utf8")
  9294. .HasCollation("utf8_general_ci");
  9295. entity.Property(e => e.SeoTitle)
  9296. .HasColumnType("varchar(100)")
  9297. .HasCharSet("utf8")
  9298. .HasCollation("utf8_general_ci");
  9299. entity.Property(e => e.SnNo)
  9300. .HasColumnType("varchar(32)")
  9301. .HasCharSet("utf8")
  9302. .HasCollation("utf8_general_ci");
  9303. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9304. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9305. entity.Property(e => e.SourceSnNo)
  9306. .HasColumnType("varchar(32)")
  9307. .HasCharSet("utf8")
  9308. .HasCollation("utf8_general_ci");
  9309. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9310. entity.Property(e => e.Status).HasColumnType("int(11)");
  9311. entity.Property(e => e.SwapExtProductTypes)
  9312. .HasColumnType("varchar(16)")
  9313. .HasCharSet("utf8")
  9314. .HasCollation("utf8_general_ci");
  9315. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9316. entity.Property(e => e.TradeDate)
  9317. .HasColumnType("varchar(8)")
  9318. .HasCharSet("utf8")
  9319. .HasCollation("utf8_general_ci");
  9320. entity.Property(e => e.TradeMonth)
  9321. .HasColumnType("varchar(6)")
  9322. .HasCharSet("utf8")
  9323. .HasCollation("utf8_general_ci");
  9324. entity.Property(e => e.UpSourceSnNo)
  9325. .HasColumnType("varchar(32)")
  9326. .HasCharSet("utf8")
  9327. .HasCollation("utf8_general_ci");
  9328. entity.Property(e => e.UpSourceSnType).HasColumnType("int(11)");
  9329. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9330. entity.Property(e => e.UpdateMan)
  9331. .HasColumnType("varchar(50)")
  9332. .HasCharSet("utf8")
  9333. .HasCollation("utf8_general_ci");
  9334. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9335. entity.Property(e => e.Version).HasColumnType("int(11)");
  9336. });
  9337. modelBuilder.Entity<UserSwapSummary>(entity =>
  9338. {
  9339. entity.Property(e => e.Id).HasColumnType("int(11)");
  9340. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9341. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9342. entity.Property(e => e.CreateMan)
  9343. .HasColumnType("varchar(50)")
  9344. .HasCharSet("utf8")
  9345. .HasCollation("utf8_general_ci");
  9346. entity.Property(e => e.DirAvgTradeAmt).HasColumnType("decimal(18,2)");
  9347. entity.Property(e => e.DirectActMerCount).HasColumnType("int(11)");
  9348. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9349. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9350. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  9351. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  9352. entity.Property(e => e.SeoDescription)
  9353. .HasColumnType("varchar(500)")
  9354. .HasCharSet("utf8")
  9355. .HasCollation("utf8_general_ci");
  9356. entity.Property(e => e.SeoKeyword)
  9357. .HasColumnType("varchar(200)")
  9358. .HasCharSet("utf8")
  9359. .HasCollation("utf8_general_ci");
  9360. entity.Property(e => e.SeoTitle)
  9361. .HasColumnType("varchar(100)")
  9362. .HasCharSet("utf8")
  9363. .HasCollation("utf8_general_ci");
  9364. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9365. entity.Property(e => e.Status).HasColumnType("int(11)");
  9366. entity.Property(e => e.SwapExtProductTypes)
  9367. .HasColumnType("varchar(16)")
  9368. .HasCharSet("utf8")
  9369. .HasCollation("utf8_general_ci");
  9370. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9371. entity.Property(e => e.TradeMonth)
  9372. .HasColumnType("varchar(6)")
  9373. .HasCharSet("utf8")
  9374. .HasCollation("utf8_general_ci");
  9375. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9376. entity.Property(e => e.UpdateMan)
  9377. .HasColumnType("varchar(50)")
  9378. .HasCharSet("utf8")
  9379. .HasCollation("utf8_general_ci");
  9380. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9381. entity.Property(e => e.Version).HasColumnType("int(11)");
  9382. });
  9383. modelBuilder.Entity<UserSwapWhite>(entity =>
  9384. {
  9385. entity.Property(e => e.Id).HasColumnType("int(11)");
  9386. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9387. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9388. entity.Property(e => e.CreateMan)
  9389. .HasColumnType("varchar(50)")
  9390. .HasCharSet("utf8")
  9391. .HasCollation("utf8_general_ci");
  9392. entity.Property(e => e.EndEffectTime).HasColumnType("datetime");
  9393. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9394. entity.Property(e => e.Remark)
  9395. .HasColumnType("varchar(64)")
  9396. .HasCharSet("utf8")
  9397. .HasCollation("utf8_general_ci");
  9398. entity.Property(e => e.RiskType).HasColumnType("int(11)");
  9399. entity.Property(e => e.SeoDescription)
  9400. .HasColumnType("varchar(500)")
  9401. .HasCharSet("utf8")
  9402. .HasCollation("utf8_general_ci");
  9403. entity.Property(e => e.SeoKeyword)
  9404. .HasColumnType("varchar(200)")
  9405. .HasCharSet("utf8")
  9406. .HasCollation("utf8_general_ci");
  9407. entity.Property(e => e.SeoTitle)
  9408. .HasColumnType("varchar(100)")
  9409. .HasCharSet("utf8")
  9410. .HasCollation("utf8_general_ci");
  9411. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9412. entity.Property(e => e.StartEffectTime).HasColumnType("datetime");
  9413. entity.Property(e => e.Status).HasColumnType("int(11)");
  9414. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9415. entity.Property(e => e.UpdateMan)
  9416. .HasColumnType("varchar(50)")
  9417. .HasCharSet("utf8")
  9418. .HasCollation("utf8_general_ci");
  9419. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9420. entity.Property(e => e.Version).HasColumnType("int(11)");
  9421. });
  9422. modelBuilder.Entity<UserTradeDaySummary>(entity =>
  9423. {
  9424. entity.Property(e => e.Id).HasColumnType("int(11)");
  9425. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9426. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9427. entity.Property(e => e.CreateMan)
  9428. .HasColumnType("varchar(50)")
  9429. .HasCharSet("utf8")
  9430. .HasCollation("utf8_general_ci");
  9431. entity.Property(e => e.DirectDebitCapNum).HasColumnType("int(11)");
  9432. entity.Property(e => e.DirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9433. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9434. entity.Property(e => e.NonDirectDebitCapNum).HasColumnType("int(11)");
  9435. entity.Property(e => e.NonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9436. entity.Property(e => e.NonDirectTradeAmt).HasColumnType("decimal(18,2)");
  9437. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9438. entity.Property(e => e.Remark)
  9439. .HasColumnType("varchar(64)")
  9440. .HasCharSet("utf8")
  9441. .HasCollation("utf8_general_ci");
  9442. entity.Property(e => e.SeoDescription)
  9443. .HasColumnType("varchar(500)")
  9444. .HasCharSet("utf8")
  9445. .HasCollation("utf8_general_ci");
  9446. entity.Property(e => e.SeoKeyword)
  9447. .HasColumnType("varchar(200)")
  9448. .HasCharSet("utf8")
  9449. .HasCollation("utf8_general_ci");
  9450. entity.Property(e => e.SeoTitle)
  9451. .HasColumnType("varchar(100)")
  9452. .HasCharSet("utf8")
  9453. .HasCollation("utf8_general_ci");
  9454. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9455. entity.Property(e => e.Status).HasColumnType("int(11)");
  9456. entity.Property(e => e.TradeDate)
  9457. .HasColumnType("varchar(8)")
  9458. .HasCharSet("utf8")
  9459. .HasCollation("utf8_general_ci");
  9460. entity.Property(e => e.TradeMonth)
  9461. .HasColumnType("varchar(6)")
  9462. .HasCharSet("utf8")
  9463. .HasCollation("utf8_general_ci");
  9464. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9465. entity.Property(e => e.UpdateMan)
  9466. .HasColumnType("varchar(50)")
  9467. .HasCharSet("utf8")
  9468. .HasCollation("utf8_general_ci");
  9469. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9470. entity.Property(e => e.Version).HasColumnType("int(11)");
  9471. });
  9472. modelBuilder.Entity<UserTradeMonthSummary>(entity =>
  9473. {
  9474. entity.Property(e => e.Id).HasColumnType("int(11)");
  9475. entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
  9476. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9477. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9478. entity.Property(e => e.CreateMan)
  9479. .HasColumnType("varchar(50)")
  9480. .HasCharSet("utf8")
  9481. .HasCollation("utf8_general_ci");
  9482. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9483. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  9484. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  9485. entity.Property(e => e.DebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  9486. entity.Property(e => e.MallPosOrderStatus).HasColumnType("int(11)");
  9487. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9488. entity.Property(e => e.Remark)
  9489. .HasColumnType("varchar(64)")
  9490. .HasCharSet("utf8")
  9491. .HasCollation("utf8_general_ci");
  9492. entity.Property(e => e.SeoDescription)
  9493. .HasColumnType("varchar(500)")
  9494. .HasCharSet("utf8")
  9495. .HasCollation("utf8_general_ci");
  9496. entity.Property(e => e.SeoKeyword)
  9497. .HasColumnType("varchar(200)")
  9498. .HasCharSet("utf8")
  9499. .HasCollation("utf8_general_ci");
  9500. entity.Property(e => e.SeoTitle)
  9501. .HasColumnType("varchar(100)")
  9502. .HasCharSet("utf8")
  9503. .HasCollation("utf8_general_ci");
  9504. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9505. entity.Property(e => e.StatType).HasColumnType("int(11)");
  9506. entity.Property(e => e.Status).HasColumnType("int(11)");
  9507. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9508. entity.Property(e => e.TradeMonth)
  9509. .HasColumnType("varchar(6)")
  9510. .HasCharSet("utf8")
  9511. .HasCollation("utf8_general_ci");
  9512. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9513. entity.Property(e => e.UpdateMan)
  9514. .HasColumnType("varchar(50)")
  9515. .HasCharSet("utf8")
  9516. .HasCollation("utf8_general_ci");
  9517. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9518. entity.Property(e => e.Version).HasColumnType("int(11)");
  9519. });
  9520. modelBuilder.Entity<Users>(entity =>
  9521. {
  9522. entity.Property(e => e.Id).HasColumnType("int(11)");
  9523. entity.Property(e => e.AccessToken)
  9524. .HasColumnType("varchar(64)")
  9525. .HasCharSet("utf8")
  9526. .HasCollation("utf8_general_ci");
  9527. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  9528. entity.Property(e => e.Address)
  9529. .HasColumnType("varchar(50)")
  9530. .HasCharSet("utf8")
  9531. .HasCollation("utf8_general_ci");
  9532. entity.Property(e => e.AgentAreas)
  9533. .HasColumnType("varchar(50)")
  9534. .HasCharSet("utf8")
  9535. .HasCollation("utf8_general_ci");
  9536. entity.Property(e => e.AgentLevel).HasColumnType("int(11)");
  9537. entity.Property(e => e.AlipayUserId)
  9538. .HasColumnType("varchar(50)")
  9539. .HasCharSet("utf8")
  9540. .HasCollation("utf8_general_ci");
  9541. entity.Property(e => e.Areas)
  9542. .HasColumnType("varchar(30)")
  9543. .HasCharSet("utf8")
  9544. .HasCollation("utf8_general_ci");
  9545. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  9546. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  9547. entity.Property(e => e.AuthFlag)
  9548. .HasColumnType("bit(1)")
  9549. .HasDefaultValueSql("b'0'");
  9550. entity.Property(e => e.BankCardPositiveImage)
  9551. .HasColumnType("varchar(200)")
  9552. .HasCharSet("utf8")
  9553. .HasCollation("utf8_general_ci");
  9554. entity.Property(e => e.CarIds)
  9555. .HasColumnType("varchar(100)")
  9556. .HasCharSet("utf8")
  9557. .HasCollation("utf8_general_ci");
  9558. entity.Property(e => e.CardNo)
  9559. .HasColumnType("varchar(30)")
  9560. .HasCharSet("utf8")
  9561. .HasCollation("utf8_general_ci");
  9562. entity.Property(e => e.CardRecCode)
  9563. .HasColumnType("varchar(200)")
  9564. .HasCharSet("utf8")
  9565. .HasCollation("utf8_general_ci");
  9566. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  9567. entity.Property(e => e.CertFrontImage)
  9568. .HasColumnType("varchar(200)")
  9569. .HasCharSet("utf8")
  9570. .HasCollation("utf8_general_ci");
  9571. entity.Property(e => e.CertId)
  9572. .HasColumnType("varchar(18)")
  9573. .HasCharSet("utf8")
  9574. .HasCollation("utf8_general_ci");
  9575. entity.Property(e => e.CertReverseImage)
  9576. .HasColumnType("varchar(200)")
  9577. .HasCharSet("utf8")
  9578. .HasCollation("utf8_general_ci");
  9579. entity.Property(e => e.CertValidEndDate).HasColumnType("datetime");
  9580. entity.Property(e => e.CertValidStartDate).HasColumnType("datetime");
  9581. entity.Property(e => e.CitySetDate).HasColumnType("datetime");
  9582. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9583. entity.Property(e => e.CreateMan)
  9584. .HasColumnType("varchar(50)")
  9585. .HasCharSet("utf8")
  9586. .HasCollation("utf8_general_ci");
  9587. entity.Property(e => e.DeviceId)
  9588. .HasColumnType("varchar(128)")
  9589. .HasCharSet("utf8")
  9590. .HasCollation("utf8_general_ci");
  9591. entity.Property(e => e.DeviceToken)
  9592. .HasColumnType("varchar(64)")
  9593. .HasCharSet("utf8")
  9594. .HasCollation("utf8_general_ci");
  9595. entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
  9596. entity.Property(e => e.GroupId)
  9597. .HasColumnType("varchar(200)")
  9598. .HasCharSet("utf8")
  9599. .HasCollation("utf8_general_ci");
  9600. entity.Property(e => e.HandCertImage)
  9601. .HasColumnType("varchar(200)")
  9602. .HasCharSet("utf8")
  9603. .HasCollation("utf8_general_ci");
  9604. entity.Property(e => e.HandPwd)
  9605. .HasColumnType("varchar(32)")
  9606. .HasCharSet("utf8")
  9607. .HasCollation("utf8_general_ci");
  9608. entity.Property(e => e.HeadPhoto)
  9609. .HasColumnType("varchar(2000)")
  9610. .HasCharSet("utf8")
  9611. .HasCollation("utf8_general_ci");
  9612. entity.Property(e => e.IdCardEndNo)
  9613. .HasColumnType("varchar(4)")
  9614. .HasCharSet("utf8")
  9615. .HasCollation("utf8_general_ci");
  9616. entity.Property(e => e.IsNewUser)
  9617. .HasColumnType("bit(1)")
  9618. .HasDefaultValueSql("b'0'");
  9619. entity.Property(e => e.LockStatus)
  9620. .HasColumnType("bit(1)")
  9621. .HasDefaultValueSql("b'0'");
  9622. entity.Property(e => e.LoginPwd)
  9623. .HasColumnType("varchar(32)")
  9624. .HasCharSet("utf8")
  9625. .HasCollation("utf8_general_ci");
  9626. entity.Property(e => e.LoginStatus).HasColumnType("int(11)");
  9627. entity.Property(e => e.MakerCode)
  9628. .HasColumnType("varchar(32)")
  9629. .HasCharSet("utf8")
  9630. .HasCollation("utf8_general_ci");
  9631. entity.Property(e => e.MerchantDate).HasColumnType("datetime");
  9632. entity.Property(e => e.MerchantType).HasColumnType("int(11)");
  9633. entity.Property(e => e.Mobile)
  9634. .HasColumnType("varchar(11)")
  9635. .HasCharSet("utf8")
  9636. .HasCollation("utf8_general_ci");
  9637. entity.Property(e => e.NickName)
  9638. .HasColumnType("varchar(300)")
  9639. .HasCharSet("utf8")
  9640. .HasCollation("utf8_general_ci");
  9641. entity.Property(e => e.OpenId)
  9642. .HasColumnType("varchar(50)")
  9643. .HasCharSet("utf8")
  9644. .HasCollation("utf8_general_ci");
  9645. entity.Property(e => e.ParentNav)
  9646. .HasColumnType("longtext")
  9647. .HasCharSet("utf8")
  9648. .HasCollation("utf8_general_ci");
  9649. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  9650. entity.Property(e => e.PayPwd)
  9651. .HasColumnType("varchar(32)")
  9652. .HasCharSet("utf8")
  9653. .HasCollation("utf8_general_ci");
  9654. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  9655. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9656. entity.Property(e => e.RealName)
  9657. .HasColumnType("varchar(30)")
  9658. .HasCharSet("utf8")
  9659. .HasCollation("utf8_general_ci");
  9660. entity.Property(e => e.ReferenceCode)
  9661. .HasColumnType("varchar(200)")
  9662. .HasCharSet("utf8")
  9663. .HasCollation("utf8_general_ci");
  9664. entity.Property(e => e.ReferenceQrCode)
  9665. .HasColumnType("varchar(200)")
  9666. .HasCharSet("utf8")
  9667. .HasCollation("utf8_general_ci");
  9668. entity.Property(e => e.ReferralUserId).HasColumnType("int(11)");
  9669. entity.Property(e => e.Remark)
  9670. .HasColumnType("mediumtext")
  9671. .HasCharSet("utf8")
  9672. .HasCollation("utf8_general_ci");
  9673. entity.Property(e => e.RiskFlag)
  9674. .HasColumnType("bit(1)")
  9675. .HasDefaultValueSql("b'0'");
  9676. entity.Property(e => e.RiskRemark)
  9677. .HasColumnType("varchar(64)")
  9678. .HasCharSet("utf8")
  9679. .HasCollation("utf8_general_ci");
  9680. entity.Property(e => e.RreezeRemark)
  9681. .HasColumnType("varchar(64)")
  9682. .HasCharSet("utf8")
  9683. .HasCollation("utf8_general_ci");
  9684. entity.Property(e => e.SeoDescription)
  9685. .HasColumnType("varchar(500)")
  9686. .HasCharSet("utf8")
  9687. .HasCollation("utf8_general_ci");
  9688. entity.Property(e => e.SeoKeyword)
  9689. .HasColumnType("varchar(200)")
  9690. .HasCharSet("utf8")
  9691. .HasCollation("utf8_general_ci");
  9692. entity.Property(e => e.SeoTitle)
  9693. .HasColumnType("varchar(100)")
  9694. .HasCharSet("utf8")
  9695. .HasCollation("utf8_general_ci");
  9696. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  9697. entity.Property(e => e.SettleBankCardName)
  9698. .HasColumnType("varchar(20)")
  9699. .HasCharSet("utf8")
  9700. .HasCollation("utf8_general_ci");
  9701. entity.Property(e => e.SettleBankCardNo)
  9702. .HasColumnType("varchar(32)")
  9703. .HasCharSet("utf8")
  9704. .HasCollation("utf8_general_ci");
  9705. entity.Property(e => e.SettleBankName)
  9706. .HasColumnType("varchar(32)")
  9707. .HasCharSet("utf8")
  9708. .HasCollation("utf8_general_ci");
  9709. entity.Property(e => e.SettleRemark)
  9710. .HasColumnType("varchar(64)")
  9711. .HasCharSet("utf8")
  9712. .HasCollation("utf8_general_ci");
  9713. entity.Property(e => e.Sex).HasColumnType("int(11)");
  9714. entity.Property(e => e.SignImgUrl)
  9715. .HasColumnType("varchar(200)")
  9716. .HasCharSet("utf8")
  9717. .HasCollation("utf8_general_ci");
  9718. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9719. entity.Property(e => e.Status).HasColumnType("int(11)");
  9720. entity.Property(e => e.Tags)
  9721. .HasColumnType("varchar(200)")
  9722. .HasCharSet("utf8")
  9723. .HasCollation("utf8_general_ci");
  9724. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9725. entity.Property(e => e.UpdateMan)
  9726. .HasColumnType("varchar(50)")
  9727. .HasCharSet("utf8")
  9728. .HasCollation("utf8_general_ci");
  9729. entity.Property(e => e.UserLevel).HasColumnType("int(11)");
  9730. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  9731. entity.Property(e => e.UserType).HasColumnType("int(11)");
  9732. entity.Property(e => e.Version).HasColumnType("int(11)");
  9733. });
  9734. OnModelCreatingPartial(modelBuilder);
  9735. }
  9736. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  9737. }
  9738. }