WebCMSEntities.cs 509 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337
  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<MachineForQrCode> MachineForQrCode { get; set; }
  50. public virtual DbSet<MachineForSnNo> MachineForSnNo { get; set; }
  51. public virtual DbSet<MachineRenew> MachineRenew { get; set; }
  52. public virtual DbSet<MachineReturn> MachineReturn { get; set; }
  53. public virtual DbSet<MenuRight> MenuRight { get; set; }
  54. public virtual DbSet<MerchantAddInfo> MerchantAddInfo { get; set; }
  55. public virtual DbSet<MerchantAdmin> MerchantAdmin { get; set; }
  56. public virtual DbSet<MerchantAuth> MerchantAuth { get; set; }
  57. public virtual DbSet<MerchantClass> MerchantClass { get; set; }
  58. public virtual DbSet<MerchantCol> MerchantCol { get; set; }
  59. public virtual DbSet<MerchantComment> MerchantComment { get; set; }
  60. public virtual DbSet<MerchantForCode> MerchantForCode { get; set; }
  61. public virtual DbSet<MerchantForMobile> MerchantForMobile { get; set; }
  62. public virtual DbSet<MerchantForName> MerchantForName { get; set; }
  63. public virtual DbSet<MerchantInfo> MerchantInfo { get; set; }
  64. public virtual DbSet<MerchantParamSet> MerchantParamSet { get; set; }
  65. public virtual DbSet<MerchantQrCode> MerchantQrCode { get; set; }
  66. public virtual DbSet<MerchantRebateDetail> MerchantRebateDetail { get; set; }
  67. public virtual DbSet<Merchants> Merchants { get; set; }
  68. public virtual DbSet<MobileCodeCheck> MobileCodeCheck { get; set; }
  69. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  70. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  71. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  72. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  73. public virtual DbSet<MsgPush> MsgPush { get; set; }
  74. public virtual DbSet<MsgSms> MsgSms { get; set; }
  75. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  76. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  77. public virtual DbSet<OpenBankCityTable> OpenBankCityTable { get; set; }
  78. public virtual DbSet<OpenBankTable> OpenBankTable { get; set; }
  79. public virtual DbSet<OpenReward> OpenReward { get; set; }
  80. public virtual DbSet<OpenRewardDetail> OpenRewardDetail { get; set; }
  81. public virtual DbSet<OpenSnSnapshot> OpenSnSnapshot { get; set; }
  82. public virtual DbSet<OperateLog> OperateLog { get; set; }
  83. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  84. public virtual DbSet<OrderForNo> OrderForNo { get; set; }
  85. public virtual DbSet<OrderProduct> OrderProduct { get; set; }
  86. public virtual DbSet<OrderRefund> OrderRefund { get; set; }
  87. public virtual DbSet<OrderRefundReason> OrderRefundReason { get; set; }
  88. public virtual DbSet<Orders> Orders { get; set; }
  89. public virtual DbSet<PageInfo> PageInfo { get; set; }
  90. public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
  91. public virtual DbSet<PosMachines> PosMachines { get; set; }
  92. public virtual DbSet<PosMachinesTwo> PosMachinesTwo { get; set; }
  93. public virtual DbSet<ProductComment> ProductComment { get; set; }
  94. public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
  95. public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
  96. public virtual DbSet<ProductFareTemp> ProductFareTemp { get; set; }
  97. public virtual DbSet<ProductKeys> ProductKeys { get; set; }
  98. public virtual DbSet<ProductNorm> ProductNorm { get; set; }
  99. public virtual DbSet<ProductNormItem> ProductNormItem { get; set; }
  100. public virtual DbSet<ProductNormTemp> ProductNormTemp { get; set; }
  101. public virtual DbSet<Products> Products { get; set; }
  102. public virtual DbSet<ProfitObjectActivations> ProfitObjectActivations { get; set; }
  103. public virtual DbSet<ProfitObjectContinueFloors> ProfitObjectContinueFloors { get; set; }
  104. public virtual DbSet<ProfitObjectFloors> ProfitObjectFloors { get; set; }
  105. public virtual DbSet<ProfitObjectLevelKinds> ProfitObjectLevelKinds { get; set; }
  106. public virtual DbSet<ProfitObjectLevels> ProfitObjectLevels { get; set; }
  107. public virtual DbSet<ProfitObjects> ProfitObjects { get; set; }
  108. public virtual DbSet<ProfitObjectsActiveCheck> ProfitObjectsActiveCheck { get; set; }
  109. public virtual DbSet<ProfitObjectsActiveParams> ProfitObjectsActiveParams { get; set; }
  110. public virtual DbSet<ProfitObjectsActives> ProfitObjectsActives { get; set; }
  111. public virtual DbSet<ProfitObjectsActivesForId> ProfitObjectsActivesForId { get; set; }
  112. public virtual DbSet<ProfitObjectsRule> ProfitObjectsRule { get; set; }
  113. public virtual DbSet<ProfitObjectsRuleDetails> ProfitObjectsRuleDetails { get; set; }
  114. public virtual DbSet<ProfitReceiveRecord> ProfitReceiveRecord { get; set; }
  115. public virtual DbSet<ProfitReceives> ProfitReceives { get; set; }
  116. public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
  117. public virtual DbSet<ProfitRewardRecord> ProfitRewardRecord { get; set; }
  118. public virtual DbSet<ProfitSubsidyDetail> ProfitSubsidyDetail { get; set; }
  119. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  120. public virtual DbSet<PullNewAct> PullNewAct { get; set; }
  121. public virtual DbSet<PullNewDetail> PullNewDetail { get; set; }
  122. public virtual DbSet<PullnewSummary> PullnewSummary { get; set; }
  123. public virtual DbSet<RightDic> RightDic { get; set; }
  124. public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
  125. public virtual DbSet<StoreBalance> StoreBalance { get; set; }
  126. public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
  127. public virtual DbSet<StoreForCode> StoreForCode { get; set; }
  128. public virtual DbSet<StoreForName> StoreForName { get; set; }
  129. public virtual DbSet<StoreHouse> StoreHouse { get; set; }
  130. public virtual DbSet<StoreMallOrderSummary> StoreMallOrderSummary { get; set; }
  131. public virtual DbSet<StoreSnActivateSummary> StoreSnActivateSummary { get; set; }
  132. public virtual DbSet<StoreStockChange> StoreStockChange { get; set; }
  133. public virtual DbSet<StoreSwapSn> StoreSwapSn { get; set; }
  134. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  135. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  136. public virtual DbSet<SysLog> SysLog { get; set; }
  137. public virtual DbSet<SysRechargeRecord> SysRechargeRecord { get; set; }
  138. public virtual DbSet<SystemSet> SystemSet { get; set; }
  139. public virtual DbSet<TeamApply> TeamApply { get; set; }
  140. public virtual DbSet<TeamApplyForTeamName> TeamApplyForTeamName { get; set; }
  141. public virtual DbSet<TeamApplyForTeamNo> TeamApplyForTeamNo { get; set; }
  142. public virtual DbSet<TeamBlackList> TeamBlackList { get; set; }
  143. public virtual DbSet<TeamConfig> TeamConfig { get; set; }
  144. public virtual DbSet<TeamDayTop> TeamDayTop { get; set; }
  145. public virtual DbSet<TeamOfferApply> TeamOfferApply { get; set; }
  146. public virtual DbSet<TeamPersonDayTop> TeamPersonDayTop { get; set; }
  147. public virtual DbSet<TradeDaySummary> TradeDaySummary { get; set; }
  148. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  149. public virtual DbSet<UploadParams> UploadParams { get; set; }
  150. public virtual DbSet<UserAccount> UserAccount { get; set; }
  151. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  152. public virtual DbSet<UserAddress> UserAddress { get; set; }
  153. public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
  154. public virtual DbSet<UserBack> UserBack { get; set; }
  155. public virtual DbSet<UserBackKind> UserBackKind { get; set; }
  156. public virtual DbSet<UserBalanceTop> UserBalanceTop { get; set; }
  157. public virtual DbSet<UserCar> UserCar { get; set; }
  158. public virtual DbSet<UserCardForWeChat> UserCardForWeChat { get; set; }
  159. public virtual DbSet<UserCardRecord> UserCardRecord { get; set; }
  160. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  161. public virtual DbSet<UserCenterIconList> UserCenterIconList { get; set; }
  162. public virtual DbSet<UserCollection> UserCollection { get; set; }
  163. public virtual DbSet<UserData> UserData { get; set; }
  164. public virtual DbSet<UserDetail> UserDetail { get; set; }
  165. public virtual DbSet<UserFamilyMember> UserFamilyMember { get; set; }
  166. public virtual DbSet<UserForMakerCode> UserForMakerCode { get; set; }
  167. public virtual DbSet<UserForMobile> UserForMobile { get; set; }
  168. public virtual DbSet<UserForRealName> UserForRealName { get; set; }
  169. public virtual DbSet<UserFriend> UserFriend { get; set; }
  170. public virtual DbSet<UserGroup> UserGroup { get; set; }
  171. public virtual DbSet<UserLevelSet> UserLevelSet { get; set; }
  172. public virtual DbSet<UserLoginRecord> UserLoginRecord { get; set; }
  173. public virtual DbSet<UserMachineData> UserMachineData { get; set; }
  174. public virtual DbSet<UserMallLargeSn> UserMallLargeSn { get; set; }
  175. public virtual DbSet<UserOfflineSignInRecords> UserOfflineSignInRecords { get; set; }
  176. public virtual DbSet<UserProfit> UserProfit { get; set; }
  177. public virtual DbSet<UserProfitSet> UserProfitSet { get; set; }
  178. public virtual DbSet<UserProfitSubsidySummary> UserProfitSubsidySummary { get; set; }
  179. public virtual DbSet<UserRank> UserRank { get; set; }
  180. public virtual DbSet<UserRankWhite> UserRankWhite { get; set; }
  181. public virtual DbSet<UserRebateDetail> UserRebateDetail { get; set; }
  182. public virtual DbSet<UserSnActInfo> UserSnActInfo { get; set; }
  183. public virtual DbSet<UserSnDelayChange> UserSnDelayChange { get; set; }
  184. public virtual DbSet<UserStoreChange> UserStoreChange { get; set; }
  185. public virtual DbSet<UserSwapDetail> UserSwapDetail { get; set; }
  186. public virtual DbSet<UserSwapSummary> UserSwapSummary { get; set; }
  187. public virtual DbSet<UserSwapWhite> UserSwapWhite { get; set; }
  188. public virtual DbSet<UserTradeDaySummary> UserTradeDaySummary { get; set; }
  189. public virtual DbSet<UserTradeMonthSummary> UserTradeMonthSummary { get; set; }
  190. public virtual DbSet<Users> Users { get; set; }
  191. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  192. {
  193. if (!optionsBuilder.IsConfigured)
  194. {
  195. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  196. }
  197. }
  198. protected override void OnModelCreating(ModelBuilder modelBuilder)
  199. {
  200. modelBuilder.Entity<ActiveReward>(entity =>
  201. {
  202. entity.Property(e => e.Id).HasColumnType("int(11)");
  203. entity.Property(e => e.ActDate).HasColumnType("datetime");
  204. entity.Property(e => e.ActType).HasColumnType("int(11)");
  205. entity.Property(e => e.ActTypeDesc)
  206. .HasColumnType("varchar(64)")
  207. .HasCharSet("utf8")
  208. .HasCollation("utf8_general_ci");
  209. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  210. entity.Property(e => e.City)
  211. .HasColumnType("varchar(32)")
  212. .HasCharSet("utf8")
  213. .HasCollation("utf8_general_ci");
  214. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  215. entity.Property(e => e.CreateMan)
  216. .HasColumnType("varchar(50)")
  217. .HasCharSet("utf8")
  218. .HasCollation("utf8_general_ci");
  219. entity.Property(e => e.DirectBuddyNo).HasColumnType("int(11)");
  220. entity.Property(e => e.DivideAmount).HasColumnType("decimal(18,2)");
  221. entity.Property(e => e.KqMerNo)
  222. .HasColumnType("varchar(32)")
  223. .HasCharSet("utf8")
  224. .HasCollation("utf8_general_ci");
  225. entity.Property(e => e.KqSnNo)
  226. .HasColumnType("varchar(32)")
  227. .HasCharSet("utf8")
  228. .HasCollation("utf8_general_ci");
  229. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  230. entity.Property(e => e.MerUserNav)
  231. .HasColumnType("varchar(200)")
  232. .HasCharSet("utf8")
  233. .HasCollation("utf8_general_ci");
  234. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  235. entity.Property(e => e.ParentParentUserId).HasColumnType("int(11)");
  236. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  237. entity.Property(e => e.Province)
  238. .HasColumnType("varchar(32)")
  239. .HasCharSet("utf8")
  240. .HasCollation("utf8_general_ci");
  241. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  242. entity.Property(e => e.Remark)
  243. .HasColumnType("varchar(64)")
  244. .HasCharSet("utf8")
  245. .HasCollation("utf8_general_ci");
  246. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  247. entity.Property(e => e.RewardRef).HasColumnType("int(11)");
  248. entity.Property(e => e.RewardSourceUserId).HasColumnType("int(11)");
  249. entity.Property(e => e.RewardTips)
  250. .HasColumnType("varchar(16)")
  251. .HasCharSet("utf8")
  252. .HasCollation("utf8_general_ci");
  253. entity.Property(e => e.RuleRewardAmount).HasColumnType("decimal(18,2)");
  254. entity.Property(e => e.SeoDescription)
  255. .HasColumnType("varchar(500)")
  256. .HasCharSet("utf8")
  257. .HasCollation("utf8_general_ci");
  258. entity.Property(e => e.SeoKeyword)
  259. .HasColumnType("varchar(200)")
  260. .HasCharSet("utf8")
  261. .HasCollation("utf8_general_ci");
  262. entity.Property(e => e.SeoTitle)
  263. .HasColumnType("varchar(100)")
  264. .HasCharSet("utf8")
  265. .HasCollation("utf8_general_ci");
  266. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  267. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  268. entity.Property(e => e.SnType).HasColumnType("int(11)");
  269. entity.Property(e => e.Sort).HasColumnType("int(11)");
  270. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  271. entity.Property(e => e.Status).HasColumnType("int(11)");
  272. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  273. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  274. entity.Property(e => e.UpdateMan)
  275. .HasColumnType("varchar(50)")
  276. .HasCharSet("utf8")
  277. .HasCollation("utf8_general_ci");
  278. entity.Property(e => e.UserId).HasColumnType("int(11)");
  279. entity.Property(e => e.UserNav)
  280. .HasColumnType("varchar(200)")
  281. .HasCharSet("utf8")
  282. .HasCollation("utf8_general_ci");
  283. entity.Property(e => e.Version).HasColumnType("int(11)");
  284. });
  285. modelBuilder.Entity<ActivityEnrolRecord>(entity =>
  286. {
  287. entity.Property(e => e.Id).HasColumnType("int(11)");
  288. entity.Property(e => e.ActId).HasColumnType("int(11)");
  289. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  290. entity.Property(e => e.CreateMan)
  291. .HasColumnType("varchar(50)")
  292. .HasCharSet("utf8")
  293. .HasCollation("utf8_general_ci");
  294. entity.Property(e => e.EffectEndTime)
  295. .HasColumnType("varchar(8)")
  296. .HasCharSet("utf8")
  297. .HasCollation("utf8_general_ci");
  298. entity.Property(e => e.EffectStartTime)
  299. .HasColumnType("varchar(8)")
  300. .HasCharSet("utf8")
  301. .HasCollation("utf8_general_ci");
  302. entity.Property(e => e.EnrolMonth)
  303. .HasColumnType("varchar(80)")
  304. .HasCharSet("utf8")
  305. .HasCollation("utf8_general_ci");
  306. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  307. entity.Property(e => e.SeoDescription)
  308. .HasColumnType("varchar(500)")
  309. .HasCharSet("utf8")
  310. .HasCollation("utf8_general_ci");
  311. entity.Property(e => e.SeoKeyword)
  312. .HasColumnType("varchar(200)")
  313. .HasCharSet("utf8")
  314. .HasCollation("utf8_general_ci");
  315. entity.Property(e => e.SeoTitle)
  316. .HasColumnType("varchar(100)")
  317. .HasCharSet("utf8")
  318. .HasCollation("utf8_general_ci");
  319. entity.Property(e => e.Sort).HasColumnType("int(11)");
  320. entity.Property(e => e.Status).HasColumnType("int(11)");
  321. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  322. entity.Property(e => e.UpdateMan)
  323. .HasColumnType("varchar(50)")
  324. .HasCharSet("utf8")
  325. .HasCollation("utf8_general_ci");
  326. entity.Property(e => e.UserId).HasColumnType("int(11)");
  327. entity.Property(e => e.Version).HasColumnType("int(11)");
  328. });
  329. modelBuilder.Entity<ActivityInfo>(entity =>
  330. {
  331. entity.Property(e => e.Id).HasColumnType("int(11)");
  332. entity.Property(e => e.ActBanner)
  333. .HasColumnType("varchar(200)")
  334. .HasCharSet("utf8")
  335. .HasCollation("utf8_general_ci");
  336. entity.Property(e => e.ActCode)
  337. .HasColumnType("varchar(32)")
  338. .HasCharSet("utf8")
  339. .HasCollation("utf8_general_ci");
  340. entity.Property(e => e.ActContent)
  341. .HasColumnType("longtext")
  342. .HasCharSet("utf8")
  343. .HasCollation("utf8_general_ci");
  344. entity.Property(e => e.ActName)
  345. .HasColumnType("varchar(128)")
  346. .HasCharSet("utf8")
  347. .HasCollation("utf8_general_ci");
  348. entity.Property(e => e.ActReferUrl)
  349. .HasColumnType("varchar(255)")
  350. .HasCharSet("utf8")
  351. .HasCollation("utf8_general_ci");
  352. entity.Property(e => e.ActType).HasColumnType("int(11)");
  353. entity.Property(e => e.BrandId)
  354. .HasColumnType("varchar(100)")
  355. .HasCharSet("utf8")
  356. .HasCollation("utf8_general_ci");
  357. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  358. entity.Property(e => e.CreateMan)
  359. .HasColumnType("varchar(50)")
  360. .HasCharSet("utf8")
  361. .HasCollation("utf8_general_ci");
  362. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  363. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  364. entity.Property(e => e.EnrolEndDate).HasColumnType("datetime");
  365. entity.Property(e => e.EnrolEndTime)
  366. .HasColumnType("varchar(8)")
  367. .HasCharSet("utf8")
  368. .HasCollation("utf8_general_ci");
  369. entity.Property(e => e.EnrolStartDate).HasColumnType("datetime");
  370. entity.Property(e => e.EnrolStartTime)
  371. .HasColumnType("varchar(8)")
  372. .HasCharSet("utf8")
  373. .HasCollation("utf8_general_ci");
  374. entity.Property(e => e.IsTop).HasColumnType("int(11)");
  375. entity.Property(e => e.LimitTopBuddy)
  376. .HasColumnType("varchar(255)")
  377. .HasCharSet("utf8")
  378. .HasCollation("utf8_general_ci");
  379. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  380. entity.Property(e => e.Remark)
  381. .HasColumnType("varchar(128)")
  382. .HasCharSet("utf8")
  383. .HasCollation("utf8_general_ci");
  384. entity.Property(e => e.SeoDescription)
  385. .HasColumnType("varchar(500)")
  386. .HasCharSet("utf8")
  387. .HasCollation("utf8_general_ci");
  388. entity.Property(e => e.SeoKeyword)
  389. .HasColumnType("varchar(200)")
  390. .HasCharSet("utf8")
  391. .HasCollation("utf8_general_ci");
  392. entity.Property(e => e.SeoTitle)
  393. .HasColumnType("varchar(100)")
  394. .HasCharSet("utf8")
  395. .HasCollation("utf8_general_ci");
  396. entity.Property(e => e.Sort).HasColumnType("int(11)");
  397. entity.Property(e => e.Status).HasColumnType("int(11)");
  398. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  399. entity.Property(e => e.UpdateMan)
  400. .HasColumnType("varchar(50)")
  401. .HasCharSet("utf8")
  402. .HasCollation("utf8_general_ci");
  403. entity.Property(e => e.Version).HasColumnType("int(11)");
  404. });
  405. modelBuilder.Entity<ActivityPrizeDetail>(entity =>
  406. {
  407. entity.Property(e => e.Id).HasColumnType("int(11)");
  408. entity.Property(e => e.ActRewardAmt).HasColumnType("decimal(18,2)");
  409. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  410. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  411. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  412. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  413. entity.Property(e => e.CreateMan)
  414. .HasColumnType("varchar(50)")
  415. .HasCharSet("utf8")
  416. .HasCollation("utf8_general_ci");
  417. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  418. entity.Property(e => e.OtherProdCreditTradeAmt).HasColumnType("decimal(18,2)");
  419. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  420. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  421. entity.Property(e => e.SeoDescription)
  422. .HasColumnType("varchar(500)")
  423. .HasCharSet("utf8")
  424. .HasCollation("utf8_general_ci");
  425. entity.Property(e => e.SeoKeyword)
  426. .HasColumnType("varchar(200)")
  427. .HasCharSet("utf8")
  428. .HasCollation("utf8_general_ci");
  429. entity.Property(e => e.SeoTitle)
  430. .HasColumnType("varchar(100)")
  431. .HasCharSet("utf8")
  432. .HasCollation("utf8_general_ci");
  433. entity.Property(e => e.Sort).HasColumnType("int(11)");
  434. entity.Property(e => e.Status).HasColumnType("int(11)");
  435. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  436. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  437. entity.Property(e => e.TradeMonth)
  438. .HasColumnType("varchar(6)")
  439. .HasCharSet("utf8")
  440. .HasCollation("utf8_general_ci");
  441. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  442. entity.Property(e => e.UpdateMan)
  443. .HasColumnType("varchar(50)")
  444. .HasCharSet("utf8")
  445. .HasCollation("utf8_general_ci");
  446. entity.Property(e => e.UserId).HasColumnType("int(11)");
  447. entity.Property(e => e.Version).HasColumnType("int(11)");
  448. });
  449. modelBuilder.Entity<Advertisment>(entity =>
  450. {
  451. entity.Property(e => e.Id).HasColumnType("int(11)");
  452. entity.Property(e => e.ColId)
  453. .HasColumnType("varchar(30)")
  454. .HasCharSet("utf8")
  455. .HasCollation("utf8_general_ci");
  456. entity.Property(e => e.Contents)
  457. .HasColumnType("longtext")
  458. .HasCharSet("utf8")
  459. .HasCollation("utf8_general_ci");
  460. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  461. entity.Property(e => e.CreateMan)
  462. .HasColumnType("varchar(50)")
  463. .HasCharSet("utf8")
  464. .HasCollation("utf8_general_ci");
  465. entity.Property(e => e.PicPath)
  466. .HasColumnType("varchar(200)")
  467. .HasCharSet("utf8")
  468. .HasCollation("utf8_general_ci");
  469. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  470. entity.Property(e => e.SeoDescription)
  471. .HasColumnType("varchar(500)")
  472. .HasCharSet("utf8")
  473. .HasCollation("utf8_general_ci");
  474. entity.Property(e => e.SeoKeyword)
  475. .HasColumnType("varchar(200)")
  476. .HasCharSet("utf8")
  477. .HasCollation("utf8_general_ci");
  478. entity.Property(e => e.SeoTitle)
  479. .HasColumnType("varchar(100)")
  480. .HasCharSet("utf8")
  481. .HasCollation("utf8_general_ci");
  482. entity.Property(e => e.Sort).HasColumnType("int(11)");
  483. entity.Property(e => e.Status).HasColumnType("int(11)");
  484. entity.Property(e => e.Title)
  485. .HasColumnType("varchar(50)")
  486. .HasCharSet("utf8")
  487. .HasCollation("utf8_general_ci");
  488. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  489. entity.Property(e => e.UpdateMan)
  490. .HasColumnType("varchar(50)")
  491. .HasCharSet("utf8")
  492. .HasCollation("utf8_general_ci");
  493. entity.Property(e => e.Url)
  494. .HasColumnType("longtext")
  495. .HasCharSet("utf8")
  496. .HasCollation("utf8_general_ci");
  497. entity.Property(e => e.Version).HasColumnType("int(11)");
  498. });
  499. modelBuilder.Entity<AgentLevelSet>(entity =>
  500. {
  501. entity.Property(e => e.Id).HasColumnType("int(11)");
  502. entity.Property(e => e.AreasProfitPercent).HasColumnType("decimal(18,2)");
  503. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  504. entity.Property(e => e.LevelDiff)
  505. .HasColumnType("bit(1)")
  506. .HasDefaultValueSql("b'0'");
  507. entity.Property(e => e.Name)
  508. .HasColumnType("varchar(50)")
  509. .HasCharSet("utf8")
  510. .HasCollation("utf8_general_ci");
  511. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  512. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  513. entity.Property(e => e.SeoDescription)
  514. .HasColumnType("varchar(500)")
  515. .HasCharSet("utf8")
  516. .HasCollation("utf8_general_ci");
  517. entity.Property(e => e.SeoKeyword)
  518. .HasColumnType("varchar(200)")
  519. .HasCharSet("utf8")
  520. .HasCollation("utf8_general_ci");
  521. entity.Property(e => e.SeoTitle)
  522. .HasColumnType("varchar(100)")
  523. .HasCharSet("utf8")
  524. .HasCollation("utf8_general_ci");
  525. entity.Property(e => e.Sort).HasColumnType("int(11)");
  526. entity.Property(e => e.Status).HasColumnType("int(11)");
  527. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  528. });
  529. modelBuilder.Entity<AppBottomNavs>(entity =>
  530. {
  531. entity.Property(e => e.Id).HasColumnType("int(11)");
  532. entity.Property(e => e.BgColor)
  533. .HasColumnType("varchar(6)")
  534. .HasCharSet("utf8")
  535. .HasCollation("utf8_general_ci");
  536. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  537. entity.Property(e => e.CreateMan)
  538. .HasColumnType("varchar(50)")
  539. .HasCharSet("utf8")
  540. .HasCollation("utf8_general_ci");
  541. entity.Property(e => e.NoPageHint)
  542. .HasColumnType("varchar(50)")
  543. .HasCharSet("utf8")
  544. .HasCollation("utf8_general_ci");
  545. entity.Property(e => e.NormalIcon)
  546. .HasColumnType("varchar(200)")
  547. .HasCharSet("utf8")
  548. .HasCollation("utf8_general_ci");
  549. entity.Property(e => e.NormalTextColor)
  550. .HasColumnType("varchar(6)")
  551. .HasCharSet("utf8")
  552. .HasCollation("utf8_general_ci");
  553. entity.Property(e => e.PageName)
  554. .HasColumnType("varchar(50)")
  555. .HasCharSet("utf8")
  556. .HasCollation("utf8_general_ci");
  557. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  558. entity.Property(e => e.SelectIcon)
  559. .HasColumnType("varchar(200)")
  560. .HasCharSet("utf8")
  561. .HasCollation("utf8_general_ci");
  562. entity.Property(e => e.SelectTextColor)
  563. .HasColumnType("varchar(6)")
  564. .HasCharSet("utf8")
  565. .HasCollation("utf8_general_ci");
  566. entity.Property(e => e.SeoDescription)
  567. .HasColumnType("varchar(500)")
  568. .HasCharSet("utf8")
  569. .HasCollation("utf8_general_ci");
  570. entity.Property(e => e.SeoKeyword)
  571. .HasColumnType("varchar(200)")
  572. .HasCharSet("utf8")
  573. .HasCollation("utf8_general_ci");
  574. entity.Property(e => e.SeoTitle)
  575. .HasColumnType("varchar(100)")
  576. .HasCharSet("utf8")
  577. .HasCollation("utf8_general_ci");
  578. entity.Property(e => e.Sort).HasColumnType("int(11)");
  579. entity.Property(e => e.Status).HasColumnType("int(11)");
  580. entity.Property(e => e.Title)
  581. .HasColumnType("varchar(10)")
  582. .HasCharSet("utf8")
  583. .HasCollation("utf8_general_ci");
  584. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  585. entity.Property(e => e.UpdateMan)
  586. .HasColumnType("varchar(50)")
  587. .HasCharSet("utf8")
  588. .HasCollation("utf8_general_ci");
  589. entity.Property(e => e.Version).HasColumnType("int(11)");
  590. });
  591. modelBuilder.Entity<AppVersion>(entity =>
  592. {
  593. entity.Property(e => e.Id).HasColumnType("int(11)");
  594. entity.Property(e => e.CancelText)
  595. .HasColumnType("varchar(10)")
  596. .HasCharSet("utf8")
  597. .HasCollation("utf8_general_ci");
  598. entity.Property(e => e.ConfirmText)
  599. .HasColumnType("varchar(10)")
  600. .HasCharSet("utf8")
  601. .HasCollation("utf8_general_ci");
  602. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  603. entity.Property(e => e.CreateMan)
  604. .HasColumnType("varchar(50)")
  605. .HasCharSet("utf8")
  606. .HasCollation("utf8_general_ci");
  607. entity.Property(e => e.DownloadUrl)
  608. .HasColumnType("varchar(500)")
  609. .HasCharSet("utf8")
  610. .HasCollation("utf8_general_ci");
  611. entity.Property(e => e.Info)
  612. .HasColumnType("varchar(200)")
  613. .HasCharSet("utf8")
  614. .HasCollation("utf8_general_ci");
  615. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  616. entity.Property(e => e.SeoDescription)
  617. .HasColumnType("varchar(500)")
  618. .HasCharSet("utf8")
  619. .HasCollation("utf8_general_ci");
  620. entity.Property(e => e.SeoKeyword)
  621. .HasColumnType("varchar(200)")
  622. .HasCharSet("utf8")
  623. .HasCollation("utf8_general_ci");
  624. entity.Property(e => e.SeoTitle)
  625. .HasColumnType("varchar(100)")
  626. .HasCharSet("utf8")
  627. .HasCollation("utf8_general_ci");
  628. entity.Property(e => e.Sort).HasColumnType("int(11)");
  629. entity.Property(e => e.Status).HasColumnType("int(11)");
  630. entity.Property(e => e.TerminalKind)
  631. .HasColumnType("varchar(10)")
  632. .HasCharSet("utf8")
  633. .HasCollation("utf8_general_ci");
  634. entity.Property(e => e.Title)
  635. .HasColumnType("varchar(50)")
  636. .HasCharSet("utf8")
  637. .HasCollation("utf8_general_ci");
  638. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  639. entity.Property(e => e.UpdateMan)
  640. .HasColumnType("varchar(50)")
  641. .HasCharSet("utf8")
  642. .HasCollation("utf8_general_ci");
  643. entity.Property(e => e.Version).HasColumnType("int(11)");
  644. entity.Property(e => e.VersionNum)
  645. .HasColumnType("varchar(20)")
  646. .HasCharSet("utf8")
  647. .HasCollation("utf8_general_ci");
  648. });
  649. modelBuilder.Entity<AppVideo>(entity =>
  650. {
  651. entity.Property(e => e.Id).HasColumnType("int(11)");
  652. entity.Property(e => e.BannerPic)
  653. .HasColumnType("varchar(200)")
  654. .HasCharSet("utf8")
  655. .HasCollation("utf8_general_ci");
  656. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  657. entity.Property(e => e.CreateMan)
  658. .HasColumnType("varchar(50)")
  659. .HasCharSet("utf8")
  660. .HasCollation("utf8_general_ci");
  661. entity.Property(e => e.Name)
  662. .HasColumnType("varchar(50)")
  663. .HasCharSet("utf8")
  664. .HasCollation("utf8_general_ci");
  665. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  666. entity.Property(e => e.Remark)
  667. .HasColumnType("varchar(200)")
  668. .HasCharSet("utf8")
  669. .HasCollation("utf8_general_ci");
  670. entity.Property(e => e.SeoDescription)
  671. .HasColumnType("varchar(500)")
  672. .HasCharSet("utf8")
  673. .HasCollation("utf8_general_ci");
  674. entity.Property(e => e.SeoKeyword)
  675. .HasColumnType("varchar(200)")
  676. .HasCharSet("utf8")
  677. .HasCollation("utf8_general_ci");
  678. entity.Property(e => e.SeoTitle)
  679. .HasColumnType("varchar(100)")
  680. .HasCharSet("utf8")
  681. .HasCollation("utf8_general_ci");
  682. entity.Property(e => e.Sort).HasColumnType("int(11)");
  683. entity.Property(e => e.Status).HasColumnType("int(11)");
  684. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  685. entity.Property(e => e.UpdateMan)
  686. .HasColumnType("varchar(50)")
  687. .HasCharSet("utf8")
  688. .HasCollation("utf8_general_ci");
  689. entity.Property(e => e.Version).HasColumnType("int(11)");
  690. });
  691. modelBuilder.Entity<AppVideoList>(entity =>
  692. {
  693. entity.Property(e => e.Id).HasColumnType("int(11)");
  694. entity.Property(e => e.BgPic)
  695. .HasColumnType("varchar(200)")
  696. .HasCharSet("utf8")
  697. .HasCollation("utf8_general_ci");
  698. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  699. entity.Property(e => e.CreateMan)
  700. .HasColumnType("varchar(50)")
  701. .HasCharSet("utf8")
  702. .HasCollation("utf8_general_ci");
  703. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  704. entity.Property(e => e.Remark)
  705. .HasColumnType("varchar(200)")
  706. .HasCharSet("utf8")
  707. .HasCollation("utf8_general_ci");
  708. entity.Property(e => e.SeoDescription)
  709. .HasColumnType("varchar(500)")
  710. .HasCharSet("utf8")
  711. .HasCollation("utf8_general_ci");
  712. entity.Property(e => e.SeoKeyword)
  713. .HasColumnType("varchar(200)")
  714. .HasCharSet("utf8")
  715. .HasCollation("utf8_general_ci");
  716. entity.Property(e => e.SeoTitle)
  717. .HasColumnType("varchar(100)")
  718. .HasCharSet("utf8")
  719. .HasCollation("utf8_general_ci");
  720. entity.Property(e => e.Sort).HasColumnType("int(11)");
  721. entity.Property(e => e.Status).HasColumnType("int(11)");
  722. entity.Property(e => e.Title)
  723. .HasColumnType("varchar(50)")
  724. .HasCharSet("utf8")
  725. .HasCollation("utf8_general_ci");
  726. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  727. entity.Property(e => e.UpdateMan)
  728. .HasColumnType("varchar(50)")
  729. .HasCharSet("utf8")
  730. .HasCollation("utf8_general_ci");
  731. entity.Property(e => e.Version).HasColumnType("int(11)");
  732. entity.Property(e => e.VideoId).HasColumnType("int(11)");
  733. entity.Property(e => e.VideoUrl)
  734. .HasColumnType("varchar(500)")
  735. .HasCharSet("utf8")
  736. .HasCollation("utf8_general_ci");
  737. });
  738. modelBuilder.Entity<BankInfo>(entity =>
  739. {
  740. entity.Property(e => e.Id).HasColumnType("int(11)");
  741. entity.Property(e => e.BankCode)
  742. .HasColumnType("varchar(16)")
  743. .HasCharSet("utf8")
  744. .HasCollation("utf8_general_ci");
  745. entity.Property(e => e.BankName)
  746. .HasColumnType("varchar(100)")
  747. .HasCharSet("utf8")
  748. .HasCollation("utf8_general_ci");
  749. entity.Property(e => e.BankNameAbbr)
  750. .HasColumnType("varchar(60)")
  751. .HasCharSet("utf8")
  752. .HasCollation("utf8_general_ci");
  753. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  754. entity.Property(e => e.CreateMan)
  755. .HasColumnType("varchar(50)")
  756. .HasCharSet("utf8")
  757. .HasCollation("utf8_general_ci");
  758. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  759. entity.Property(e => e.SeoDescription)
  760. .HasColumnType("varchar(500)")
  761. .HasCharSet("utf8")
  762. .HasCollation("utf8_general_ci");
  763. entity.Property(e => e.SeoKeyword)
  764. .HasColumnType("varchar(200)")
  765. .HasCharSet("utf8")
  766. .HasCollation("utf8_general_ci");
  767. entity.Property(e => e.SeoTitle)
  768. .HasColumnType("varchar(100)")
  769. .HasCharSet("utf8")
  770. .HasCollation("utf8_general_ci");
  771. entity.Property(e => e.Sort).HasColumnType("int(11)");
  772. entity.Property(e => e.Status).HasColumnType("int(11)");
  773. entity.Property(e => e.UnitedBankName)
  774. .HasColumnType("varchar(100)")
  775. .HasCharSet("utf8")
  776. .HasCollation("utf8_general_ci");
  777. entity.Property(e => e.UnitedBankNo)
  778. .HasColumnType("varchar(16)")
  779. .HasCharSet("utf8")
  780. .HasCollation("utf8_general_ci");
  781. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  782. entity.Property(e => e.UpdateMan)
  783. .HasColumnType("varchar(50)")
  784. .HasCharSet("utf8")
  785. .HasCollation("utf8_general_ci");
  786. entity.Property(e => e.Version).HasColumnType("int(11)");
  787. });
  788. modelBuilder.Entity<Col>(entity =>
  789. {
  790. entity.Property(e => e.Id).HasColumnType("int(11)");
  791. entity.Property(e => e.ClassName)
  792. .HasColumnType("varchar(50)")
  793. .HasCharSet("utf8")
  794. .HasCollation("utf8_general_ci");
  795. entity.Property(e => e.ColDetail)
  796. .HasColumnType("varchar(50)")
  797. .HasCharSet("utf8")
  798. .HasCollation("utf8_general_ci");
  799. entity.Property(e => e.ColEnName)
  800. .HasColumnType("varchar(50)")
  801. .HasCharSet("utf8")
  802. .HasCollation("utf8_general_ci");
  803. entity.Property(e => e.ColEnNav)
  804. .HasColumnType("varchar(200)")
  805. .HasCharSet("utf8")
  806. .HasCollation("utf8_general_ci");
  807. entity.Property(e => e.ColId)
  808. .HasColumnType("varchar(30)")
  809. .HasCharSet("utf8")
  810. .HasCollation("utf8_general_ci");
  811. entity.Property(e => e.ColName)
  812. .HasColumnType("varchar(50)")
  813. .HasCharSet("utf8")
  814. .HasCollation("utf8_general_ci");
  815. entity.Property(e => e.ColPicPath)
  816. .HasColumnType("varchar(200)")
  817. .HasCharSet("utf8")
  818. .HasCollation("utf8_general_ci");
  819. entity.Property(e => e.Contents)
  820. .HasColumnType("longtext")
  821. .HasCharSet("utf8")
  822. .HasCollation("utf8_general_ci");
  823. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  824. entity.Property(e => e.CreateMan)
  825. .HasColumnType("varchar(50)")
  826. .HasCharSet("utf8")
  827. .HasCollation("utf8_general_ci");
  828. entity.Property(e => e.DetailTemp)
  829. .HasColumnType("varchar(100)")
  830. .HasCharSet("utf8")
  831. .HasCollation("utf8_general_ci");
  832. entity.Property(e => e.DetailTempM)
  833. .HasColumnType("varchar(100)")
  834. .HasCharSet("utf8")
  835. .HasCollation("utf8_general_ci");
  836. entity.Property(e => e.ListPageCount).HasColumnType("int(11)");
  837. entity.Property(e => e.ListTemp)
  838. .HasColumnType("varchar(100)")
  839. .HasCharSet("utf8")
  840. .HasCollation("utf8_general_ci");
  841. entity.Property(e => e.ListTempM)
  842. .HasColumnType("varchar(100)")
  843. .HasCharSet("utf8")
  844. .HasCollation("utf8_general_ci");
  845. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  846. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  847. entity.Property(e => e.Recommend)
  848. .HasColumnType("bit(1)")
  849. .HasDefaultValueSql("b'0'");
  850. entity.Property(e => e.SeoDescription)
  851. .HasColumnType("varchar(500)")
  852. .HasCharSet("utf8")
  853. .HasCollation("utf8_general_ci");
  854. entity.Property(e => e.SeoKeyword)
  855. .HasColumnType("varchar(200)")
  856. .HasCharSet("utf8")
  857. .HasCollation("utf8_general_ci");
  858. entity.Property(e => e.SeoTitle)
  859. .HasColumnType("varchar(100)")
  860. .HasCharSet("utf8")
  861. .HasCollation("utf8_general_ci");
  862. entity.Property(e => e.Sort).HasColumnType("int(11)");
  863. entity.Property(e => e.Status).HasColumnType("int(11)");
  864. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  865. entity.Property(e => e.UpdateMan)
  866. .HasColumnType("varchar(50)")
  867. .HasCharSet("utf8")
  868. .HasCollation("utf8_general_ci");
  869. entity.Property(e => e.Url)
  870. .HasColumnType("longtext")
  871. .HasCharSet("utf8")
  872. .HasCollation("utf8_general_ci");
  873. entity.Property(e => e.Version).HasColumnType("int(11)");
  874. });
  875. modelBuilder.Entity<ConsumerOpenIds>(entity =>
  876. {
  877. entity.HasKey(e => e.OpenId)
  878. .HasName("PRIMARY");
  879. entity.Property(e => e.OpenId)
  880. .HasColumnType("varchar(50)")
  881. .HasCharSet("utf8")
  882. .HasCollation("utf8_general_ci");
  883. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  884. });
  885. modelBuilder.Entity<ConsumerOrderForNo>(entity =>
  886. {
  887. entity.HasKey(e => e.OrderNo)
  888. .HasName("PRIMARY");
  889. entity.Property(e => e.OrderNo)
  890. .HasColumnType("varchar(50)")
  891. .HasCharSet("utf8")
  892. .HasCollation("utf8_general_ci");
  893. entity.Property(e => e.OrderIds).HasColumnType("int(11)");
  894. });
  895. modelBuilder.Entity<ConsumerOrders>(entity =>
  896. {
  897. entity.Property(e => e.Id).HasColumnType("int(11)");
  898. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  899. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  900. entity.Property(e => e.CreateMan)
  901. .HasColumnType("varchar(50)")
  902. .HasCharSet("utf8")
  903. .HasCollation("utf8_general_ci");
  904. entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
  905. entity.Property(e => e.IsAct)
  906. .HasColumnType("bit(1)")
  907. .HasDefaultValueSql("b'0'");
  908. entity.Property(e => e.MaxDivi).HasColumnType("decimal(18,2)");
  909. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  910. entity.Property(e => e.OrderNo)
  911. .HasColumnType("varchar(30)")
  912. .HasCharSet("utf8")
  913. .HasCollation("utf8_general_ci");
  914. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  915. entity.Property(e => e.PayMoney).HasColumnType("decimal(18,2)");
  916. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  917. entity.Property(e => e.ReturnMoney).HasColumnType("decimal(18,2)");
  918. entity.Property(e => e.SeoDescription)
  919. .HasColumnType("varchar(500)")
  920. .HasCharSet("utf8")
  921. .HasCollation("utf8_general_ci");
  922. entity.Property(e => e.SeoKeyword)
  923. .HasColumnType("varchar(200)")
  924. .HasCharSet("utf8")
  925. .HasCollation("utf8_general_ci");
  926. entity.Property(e => e.SeoTitle)
  927. .HasColumnType("varchar(100)")
  928. .HasCharSet("utf8")
  929. .HasCollation("utf8_general_ci");
  930. entity.Property(e => e.SnNo)
  931. .HasColumnType("varchar(50)")
  932. .HasCharSet("utf8")
  933. .HasCollation("utf8_general_ci");
  934. entity.Property(e => e.Sort).HasColumnType("int(11)");
  935. entity.Property(e => e.Status).HasColumnType("int(11)");
  936. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  937. entity.Property(e => e.UpdateMan)
  938. .HasColumnType("varchar(50)")
  939. .HasCharSet("utf8")
  940. .HasCollation("utf8_general_ci");
  941. entity.Property(e => e.Version).HasColumnType("int(11)");
  942. });
  943. modelBuilder.Entity<ConsumerProfit>(entity =>
  944. {
  945. entity.Property(e => e.Id).HasColumnType("int(11)");
  946. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  947. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  948. entity.Property(e => e.CreateMan)
  949. .HasColumnType("varchar(50)")
  950. .HasCharSet("utf8")
  951. .HasCollation("utf8_general_ci");
  952. entity.Property(e => e.GetMoney).HasColumnType("decimal(18,2)");
  953. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  954. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  955. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  956. entity.Property(e => e.SeoDescription)
  957. .HasColumnType("varchar(500)")
  958. .HasCharSet("utf8")
  959. .HasCollation("utf8_general_ci");
  960. entity.Property(e => e.SeoKeyword)
  961. .HasColumnType("varchar(200)")
  962. .HasCharSet("utf8")
  963. .HasCollation("utf8_general_ci");
  964. entity.Property(e => e.SeoTitle)
  965. .HasColumnType("varchar(100)")
  966. .HasCharSet("utf8")
  967. .HasCollation("utf8_general_ci");
  968. entity.Property(e => e.Sort).HasColumnType("int(11)");
  969. entity.Property(e => e.Status).HasColumnType("int(11)");
  970. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  971. entity.Property(e => e.UpdateMan)
  972. .HasColumnType("varchar(50)")
  973. .HasCharSet("utf8")
  974. .HasCollation("utf8_general_ci");
  975. entity.Property(e => e.Version).HasColumnType("int(11)");
  976. });
  977. modelBuilder.Entity<Consumers>(entity =>
  978. {
  979. entity.Property(e => e.Id).HasColumnType("int(11)");
  980. entity.Property(e => e.AlipayUserId)
  981. .HasColumnType("varchar(50)")
  982. .HasCharSet("utf8")
  983. .HasCollation("utf8_general_ci");
  984. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  985. entity.Property(e => e.CreateMan)
  986. .HasColumnType("varchar(50)")
  987. .HasCharSet("utf8")
  988. .HasCollation("utf8_general_ci");
  989. entity.Property(e => e.CurIntgegral).HasColumnType("int(11)");
  990. entity.Property(e => e.HeadPhoto)
  991. .HasColumnType("varchar(2000)")
  992. .HasCharSet("utf8")
  993. .HasCollation("utf8_general_ci");
  994. entity.Property(e => e.LastConsumDate).HasColumnType("datetime");
  995. entity.Property(e => e.Mobile)
  996. .HasColumnType("varchar(11)")
  997. .HasCharSet("utf8")
  998. .HasCollation("utf8_general_ci");
  999. entity.Property(e => e.NickName)
  1000. .HasColumnType("varchar(50)")
  1001. .HasCharSet("utf8")
  1002. .HasCollation("utf8_general_ci");
  1003. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1004. entity.Property(e => e.SeoDescription)
  1005. .HasColumnType("varchar(500)")
  1006. .HasCharSet("utf8")
  1007. .HasCollation("utf8_general_ci");
  1008. entity.Property(e => e.SeoKeyword)
  1009. .HasColumnType("varchar(200)")
  1010. .HasCharSet("utf8")
  1011. .HasCollation("utf8_general_ci");
  1012. entity.Property(e => e.SeoTitle)
  1013. .HasColumnType("varchar(100)")
  1014. .HasCharSet("utf8")
  1015. .HasCollation("utf8_general_ci");
  1016. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1017. entity.Property(e => e.Status).HasColumnType("int(11)");
  1018. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1019. entity.Property(e => e.TotalConsumCount).HasColumnType("int(11)");
  1020. entity.Property(e => e.TotalDividend).HasColumnType("decimal(18,2)");
  1021. entity.Property(e => e.TotalIntegral).HasColumnType("int(11)");
  1022. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1023. entity.Property(e => e.UpdateMan)
  1024. .HasColumnType("varchar(50)")
  1025. .HasCharSet("utf8")
  1026. .HasCollation("utf8_general_ci");
  1027. entity.Property(e => e.Version).HasColumnType("int(11)");
  1028. entity.Property(e => e.WechatOpenId)
  1029. .HasColumnType("varchar(50)")
  1030. .HasCharSet("utf8")
  1031. .HasCollation("utf8_general_ci");
  1032. entity.Property(e => e.WechatUnionid)
  1033. .HasColumnType("varchar(50)")
  1034. .HasCharSet("utf8")
  1035. .HasCollation("utf8_general_ci");
  1036. });
  1037. modelBuilder.Entity<CouponAssignRecords>(entity =>
  1038. {
  1039. entity.Property(e => e.Id).HasColumnType("int(11)");
  1040. entity.Property(e => e.Areas)
  1041. .HasColumnType("varchar(50)")
  1042. .HasCharSet("utf8")
  1043. .HasCollation("utf8_general_ci");
  1044. entity.Property(e => e.CouponIds)
  1045. .HasColumnType("varchar(200)")
  1046. .HasCharSet("utf8")
  1047. .HasCollation("utf8_general_ci");
  1048. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1049. entity.Property(e => e.CreateMan)
  1050. .HasColumnType("varchar(50)")
  1051. .HasCharSet("utf8")
  1052. .HasCollation("utf8_general_ci");
  1053. entity.Property(e => e.CurMoneyMax).HasColumnType("decimal(18,2)");
  1054. entity.Property(e => e.CurMoneyMin).HasColumnType("decimal(18,2)");
  1055. entity.Property(e => e.Mobile)
  1056. .HasColumnType("varchar(11)")
  1057. .HasCharSet("utf8")
  1058. .HasCollation("utf8_general_ci");
  1059. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1060. entity.Property(e => e.SeoDescription)
  1061. .HasColumnType("varchar(500)")
  1062. .HasCharSet("utf8")
  1063. .HasCollation("utf8_general_ci");
  1064. entity.Property(e => e.SeoKeyword)
  1065. .HasColumnType("varchar(200)")
  1066. .HasCharSet("utf8")
  1067. .HasCollation("utf8_general_ci");
  1068. entity.Property(e => e.SeoTitle)
  1069. .HasColumnType("varchar(100)")
  1070. .HasCharSet("utf8")
  1071. .HasCollation("utf8_general_ci");
  1072. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1073. entity.Property(e => e.Status).HasColumnType("int(11)");
  1074. entity.Property(e => e.TotalOrderMoneyMax).HasColumnType("decimal(18,2)");
  1075. entity.Property(e => e.TotalOrderMoneyMin).HasColumnType("decimal(18,2)");
  1076. entity.Property(e => e.TotalUseIntegralMax).HasColumnType("decimal(18,2)");
  1077. entity.Property(e => e.TotalUseIntegralMin).HasColumnType("decimal(18,2)");
  1078. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1079. entity.Property(e => e.UpdateMan)
  1080. .HasColumnType("varchar(50)")
  1081. .HasCharSet("utf8")
  1082. .HasCollation("utf8_general_ci");
  1083. entity.Property(e => e.UserGroupId)
  1084. .HasColumnType("varchar(50)")
  1085. .HasCharSet("utf8")
  1086. .HasCollation("utf8_general_ci");
  1087. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1088. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1089. entity.Property(e => e.Version).HasColumnType("int(11)");
  1090. });
  1091. modelBuilder.Entity<Coupons>(entity =>
  1092. {
  1093. entity.Property(e => e.Id).HasColumnType("int(11)");
  1094. entity.Property(e => e.AndPromotion)
  1095. .HasColumnType("bit(1)")
  1096. .HasDefaultValueSql("b'0'");
  1097. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1098. entity.Property(e => e.CreateMan)
  1099. .HasColumnType("varchar(50)")
  1100. .HasCharSet("utf8")
  1101. .HasCollation("utf8_general_ci");
  1102. entity.Property(e => e.ExpireEndDate).HasColumnType("datetime");
  1103. entity.Property(e => e.ExpireStartDate).HasColumnType("datetime");
  1104. entity.Property(e => e.Explanation)
  1105. .HasColumnType("varchar(200)")
  1106. .HasCharSet("utf8")
  1107. .HasCollation("utf8_general_ci");
  1108. entity.Property(e => e.FullReduceData).HasColumnType("decimal(18,2)");
  1109. entity.Property(e => e.FullReduceMoney).HasColumnType("decimal(18,2)");
  1110. entity.Property(e => e.IsNewUser)
  1111. .HasColumnType("bit(1)")
  1112. .HasDefaultValueSql("b'0'");
  1113. entity.Property(e => e.IsPublic)
  1114. .HasColumnType("bit(1)")
  1115. .HasDefaultValueSql("b'0'");
  1116. entity.Property(e => e.IsReUse)
  1117. .HasColumnType("bit(1)")
  1118. .HasDefaultValueSql("b'0'");
  1119. entity.Property(e => e.IsRepeat)
  1120. .HasColumnType("bit(1)")
  1121. .HasDefaultValueSql("b'0'");
  1122. entity.Property(e => e.IsSuperpose)
  1123. .HasColumnType("bit(1)")
  1124. .HasDefaultValueSql("b'0'");
  1125. entity.Property(e => e.Kind).HasColumnType("int(11)");
  1126. entity.Property(e => e.MerchantId)
  1127. .HasColumnType("varchar(200)")
  1128. .HasCharSet("utf8")
  1129. .HasCollation("utf8_general_ci");
  1130. entity.Property(e => e.Name)
  1131. .HasColumnType("varchar(50)")
  1132. .HasCharSet("utf8")
  1133. .HasCollation("utf8_general_ci");
  1134. entity.Property(e => e.ProductColId)
  1135. .HasColumnType("varchar(200)")
  1136. .HasCharSet("utf8")
  1137. .HasCollation("utf8_general_ci");
  1138. entity.Property(e => e.ProductId)
  1139. .HasColumnType("varchar(500)")
  1140. .HasCharSet("utf8")
  1141. .HasCollation("utf8_general_ci");
  1142. entity.Property(e => e.PublicEndDate).HasColumnType("datetime");
  1143. entity.Property(e => e.PublicMax).HasColumnType("int(11)");
  1144. entity.Property(e => e.PublicMaxByDay).HasColumnType("int(11)");
  1145. entity.Property(e => e.PublicStartDate).HasColumnType("datetime");
  1146. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1147. entity.Property(e => e.RepeatCondition)
  1148. .HasColumnType("varchar(50)")
  1149. .HasCharSet("utf8")
  1150. .HasCollation("utf8_general_ci");
  1151. entity.Property(e => e.RepeatType).HasColumnType("int(11)");
  1152. entity.Property(e => e.SeoDescription)
  1153. .HasColumnType("varchar(500)")
  1154. .HasCharSet("utf8")
  1155. .HasCollation("utf8_general_ci");
  1156. entity.Property(e => e.SeoKeyword)
  1157. .HasColumnType("varchar(200)")
  1158. .HasCharSet("utf8")
  1159. .HasCollation("utf8_general_ci");
  1160. entity.Property(e => e.SeoTitle)
  1161. .HasColumnType("varchar(100)")
  1162. .HasCharSet("utf8")
  1163. .HasCollation("utf8_general_ci");
  1164. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1165. entity.Property(e => e.Status).HasColumnType("int(11)");
  1166. entity.Property(e => e.Stock).HasColumnType("decimal(18,2)");
  1167. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1168. entity.Property(e => e.UpdateMan)
  1169. .HasColumnType("varchar(50)")
  1170. .HasCharSet("utf8")
  1171. .HasCollation("utf8_general_ci");
  1172. entity.Property(e => e.UseEndDate).HasColumnType("datetime");
  1173. entity.Property(e => e.UseStartDate).HasColumnType("datetime");
  1174. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1175. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1176. entity.Property(e => e.Version).HasColumnType("int(11)");
  1177. });
  1178. modelBuilder.Entity<CouponsForUser>(entity =>
  1179. {
  1180. entity.Property(e => e.Id).HasColumnType("int(11)");
  1181. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  1182. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1183. entity.Property(e => e.CreateMan)
  1184. .HasColumnType("varchar(50)")
  1185. .HasCharSet("utf8")
  1186. .HasCollation("utf8_general_ci");
  1187. entity.Property(e => e.IsLock)
  1188. .HasColumnType("bit(1)")
  1189. .HasDefaultValueSql("b'0'");
  1190. entity.Property(e => e.IsUse)
  1191. .HasColumnType("bit(1)")
  1192. .HasDefaultValueSql("b'0'");
  1193. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1194. entity.Property(e => e.SeoDescription)
  1195. .HasColumnType("varchar(500)")
  1196. .HasCharSet("utf8")
  1197. .HasCollation("utf8_general_ci");
  1198. entity.Property(e => e.SeoKeyword)
  1199. .HasColumnType("varchar(200)")
  1200. .HasCharSet("utf8")
  1201. .HasCollation("utf8_general_ci");
  1202. entity.Property(e => e.SeoTitle)
  1203. .HasColumnType("varchar(100)")
  1204. .HasCharSet("utf8")
  1205. .HasCollation("utf8_general_ci");
  1206. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1207. entity.Property(e => e.Status).HasColumnType("int(11)");
  1208. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1209. entity.Property(e => e.UpdateMan)
  1210. .HasColumnType("varchar(50)")
  1211. .HasCharSet("utf8")
  1212. .HasCollation("utf8_general_ci");
  1213. entity.Property(e => e.UseDate).HasColumnType("datetime");
  1214. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1215. entity.Property(e => e.Version).HasColumnType("int(11)");
  1216. });
  1217. modelBuilder.Entity<CustomTagSet>(entity =>
  1218. {
  1219. entity.Property(e => e.Id).HasColumnType("int(11)");
  1220. entity.Property(e => e.Contents)
  1221. .HasColumnType("varchar(500)")
  1222. .HasCharSet("utf8")
  1223. .HasCollation("utf8_general_ci");
  1224. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1225. entity.Property(e => e.CreateMan)
  1226. .HasColumnType("varchar(50)")
  1227. .HasCharSet("utf8")
  1228. .HasCollation("utf8_general_ci");
  1229. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1230. entity.Property(e => e.SeoDescription)
  1231. .HasColumnType("varchar(500)")
  1232. .HasCharSet("utf8")
  1233. .HasCollation("utf8_general_ci");
  1234. entity.Property(e => e.SeoKeyword)
  1235. .HasColumnType("varchar(200)")
  1236. .HasCharSet("utf8")
  1237. .HasCollation("utf8_general_ci");
  1238. entity.Property(e => e.SeoTitle)
  1239. .HasColumnType("varchar(100)")
  1240. .HasCharSet("utf8")
  1241. .HasCollation("utf8_general_ci");
  1242. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1243. entity.Property(e => e.Status).HasColumnType("int(11)");
  1244. entity.Property(e => e.Tags)
  1245. .HasColumnType("varchar(50)")
  1246. .HasCharSet("utf8")
  1247. .HasCollation("utf8_general_ci");
  1248. entity.Property(e => e.Title)
  1249. .HasColumnType("varchar(50)")
  1250. .HasCharSet("utf8")
  1251. .HasCollation("utf8_general_ci");
  1252. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1253. entity.Property(e => e.UpdateMan)
  1254. .HasColumnType("varchar(50)")
  1255. .HasCharSet("utf8")
  1256. .HasCollation("utf8_general_ci");
  1257. entity.Property(e => e.Version).HasColumnType("int(11)");
  1258. });
  1259. modelBuilder.Entity<ErpCompanys>(entity =>
  1260. {
  1261. entity.Property(e => e.Id).HasColumnType("int(11)");
  1262. entity.Property(e => e.Code)
  1263. .HasColumnType("varchar(50)")
  1264. .HasCharSet("utf8")
  1265. .HasCollation("utf8_general_ci");
  1266. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1267. entity.Property(e => e.CreateMan)
  1268. .HasColumnType("varchar(50)")
  1269. .HasCharSet("utf8")
  1270. .HasCollation("utf8_general_ci");
  1271. entity.Property(e => e.Name)
  1272. .HasColumnType("varchar(50)")
  1273. .HasCharSet("utf8")
  1274. .HasCollation("utf8_general_ci");
  1275. entity.Property(e => e.Phone)
  1276. .HasColumnType("varchar(30)")
  1277. .HasCharSet("utf8")
  1278. .HasCollation("utf8_general_ci");
  1279. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1280. entity.Property(e => e.SeoDescription)
  1281. .HasColumnType("varchar(500)")
  1282. .HasCharSet("utf8")
  1283. .HasCollation("utf8_general_ci");
  1284. entity.Property(e => e.SeoKeyword)
  1285. .HasColumnType("varchar(200)")
  1286. .HasCharSet("utf8")
  1287. .HasCollation("utf8_general_ci");
  1288. entity.Property(e => e.SeoTitle)
  1289. .HasColumnType("varchar(100)")
  1290. .HasCharSet("utf8")
  1291. .HasCollation("utf8_general_ci");
  1292. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1293. entity.Property(e => e.Status).HasColumnType("int(11)");
  1294. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1295. entity.Property(e => e.UpdateMan)
  1296. .HasColumnType("varchar(50)")
  1297. .HasCharSet("utf8")
  1298. .HasCollation("utf8_general_ci");
  1299. entity.Property(e => e.Version).HasColumnType("int(11)");
  1300. });
  1301. modelBuilder.Entity<FileUpdateInfo>(entity =>
  1302. {
  1303. entity.Property(e => e.Id).HasColumnType("int(11)");
  1304. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1305. entity.Property(e => e.CreateMan)
  1306. .HasColumnType("varchar(50)")
  1307. .HasCharSet("utf8")
  1308. .HasCollation("utf8_general_ci");
  1309. entity.Property(e => e.FileName)
  1310. .HasColumnType("varchar(50)")
  1311. .HasCharSet("utf8")
  1312. .HasCollation("utf8_general_ci");
  1313. entity.Property(e => e.Path)
  1314. .HasColumnType("varchar(200)")
  1315. .HasCharSet("utf8")
  1316. .HasCollation("utf8_general_ci");
  1317. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1318. entity.Property(e => e.SeoDescription)
  1319. .HasColumnType("varchar(500)")
  1320. .HasCharSet("utf8")
  1321. .HasCollation("utf8_general_ci");
  1322. entity.Property(e => e.SeoKeyword)
  1323. .HasColumnType("varchar(200)")
  1324. .HasCharSet("utf8")
  1325. .HasCollation("utf8_general_ci");
  1326. entity.Property(e => e.SeoTitle)
  1327. .HasColumnType("varchar(100)")
  1328. .HasCharSet("utf8")
  1329. .HasCollation("utf8_general_ci");
  1330. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1331. entity.Property(e => e.Status).HasColumnType("int(11)");
  1332. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1333. entity.Property(e => e.UpdateMan)
  1334. .HasColumnType("varchar(50)")
  1335. .HasCharSet("utf8")
  1336. .HasCollation("utf8_general_ci");
  1337. entity.Property(e => e.Version).HasColumnType("int(11)");
  1338. entity.Property(e => e.VersionNum).HasColumnType("int(11)");
  1339. });
  1340. modelBuilder.Entity<FluxProfitDetail>(entity =>
  1341. {
  1342. entity.Property(e => e.Id).HasColumnType("int(11)");
  1343. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1344. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1345. entity.Property(e => e.CreateMan)
  1346. .HasColumnType("varchar(50)")
  1347. .HasCharSet("utf8")
  1348. .HasCollation("utf8_general_ci");
  1349. entity.Property(e => e.FluxEndDate)
  1350. .HasColumnType("varchar(8)")
  1351. .HasCharSet("utf8")
  1352. .HasCollation("utf8_general_ci");
  1353. entity.Property(e => e.FluxFeeAmt).HasColumnType("decimal(18,2)");
  1354. entity.Property(e => e.FluxOrderNo)
  1355. .HasColumnType("varchar(64)")
  1356. .HasCharSet("utf8")
  1357. .HasCollation("utf8_general_ci");
  1358. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1359. entity.Property(e => e.FluxStartDate)
  1360. .HasColumnType("varchar(8)")
  1361. .HasCharSet("utf8")
  1362. .HasCollation("utf8_general_ci");
  1363. entity.Property(e => e.MerNo)
  1364. .HasColumnType("varchar(32)")
  1365. .HasCharSet("utf8")
  1366. .HasCollation("utf8_general_ci");
  1367. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1368. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1369. entity.Property(e => e.MerchantUserId).HasColumnType("int(11)");
  1370. entity.Property(e => e.PosType)
  1371. .HasColumnType("varchar(32)")
  1372. .HasCharSet("utf8")
  1373. .HasCollation("utf8_general_ci");
  1374. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  1375. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1376. entity.Property(e => e.RecordNo)
  1377. .HasColumnType("varchar(32)")
  1378. .HasCharSet("utf8")
  1379. .HasCollation("utf8_general_ci");
  1380. entity.Property(e => e.Remark)
  1381. .HasColumnType("varchar(128)")
  1382. .HasCharSet("utf8")
  1383. .HasCollation("utf8_general_ci");
  1384. entity.Property(e => e.SeoDescription)
  1385. .HasColumnType("varchar(500)")
  1386. .HasCharSet("utf8")
  1387. .HasCollation("utf8_general_ci");
  1388. entity.Property(e => e.SeoKeyword)
  1389. .HasColumnType("varchar(200)")
  1390. .HasCharSet("utf8")
  1391. .HasCollation("utf8_general_ci");
  1392. entity.Property(e => e.SeoTitle)
  1393. .HasColumnType("varchar(100)")
  1394. .HasCharSet("utf8")
  1395. .HasCollation("utf8_general_ci");
  1396. entity.Property(e => e.SnNo)
  1397. .HasColumnType("varchar(32)")
  1398. .HasCharSet("utf8")
  1399. .HasCollation("utf8_general_ci");
  1400. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1401. entity.Property(e => e.Status).HasColumnType("int(11)");
  1402. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1403. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  1404. entity.Property(e => e.TradeDate)
  1405. .HasColumnType("varchar(8)")
  1406. .HasCharSet("utf8")
  1407. .HasCollation("utf8_general_ci");
  1408. entity.Property(e => e.TradeMonth)
  1409. .HasColumnType("varchar(6)")
  1410. .HasCharSet("utf8")
  1411. .HasCollation("utf8_general_ci");
  1412. entity.Property(e => e.TradeOrderNo)
  1413. .HasColumnType("varchar(64)")
  1414. .HasCharSet("utf8")
  1415. .HasCollation("utf8_general_ci");
  1416. entity.Property(e => e.TradeTime)
  1417. .HasColumnType("varchar(6)")
  1418. .HasCharSet("utf8")
  1419. .HasCollation("utf8_general_ci");
  1420. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1421. entity.Property(e => e.UpdateMan)
  1422. .HasColumnType("varchar(50)")
  1423. .HasCharSet("utf8")
  1424. .HasCollation("utf8_general_ci");
  1425. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1426. entity.Property(e => e.Version).HasColumnType("int(11)");
  1427. });
  1428. modelBuilder.Entity<FluxProfitSummary>(entity =>
  1429. {
  1430. entity.Property(e => e.Id).HasColumnType("int(11)");
  1431. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1432. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  1433. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1434. entity.Property(e => e.CreateMan)
  1435. .HasColumnType("varchar(50)")
  1436. .HasCharSet("utf8")
  1437. .HasCollation("utf8_general_ci");
  1438. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1439. entity.Property(e => e.FluxTradeNum).HasColumnType("int(11)");
  1440. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1441. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1442. entity.Property(e => e.Remark)
  1443. .HasColumnType("varchar(64)")
  1444. .HasCharSet("utf8")
  1445. .HasCollation("utf8_general_ci");
  1446. entity.Property(e => e.SeoDescription)
  1447. .HasColumnType("varchar(500)")
  1448. .HasCharSet("utf8")
  1449. .HasCollation("utf8_general_ci");
  1450. entity.Property(e => e.SeoKeyword)
  1451. .HasColumnType("varchar(200)")
  1452. .HasCharSet("utf8")
  1453. .HasCollation("utf8_general_ci");
  1454. entity.Property(e => e.SeoTitle)
  1455. .HasColumnType("varchar(100)")
  1456. .HasCharSet("utf8")
  1457. .HasCollation("utf8_general_ci");
  1458. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1459. entity.Property(e => e.Status).HasColumnType("int(11)");
  1460. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1461. entity.Property(e => e.TradeMonth)
  1462. .HasColumnType("varchar(6)")
  1463. .HasCharSet("utf8")
  1464. .HasCollation("utf8_general_ci");
  1465. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1466. entity.Property(e => e.UpdateMan)
  1467. .HasColumnType("varchar(50)")
  1468. .HasCharSet("utf8")
  1469. .HasCollation("utf8_general_ci");
  1470. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1471. entity.Property(e => e.Version).HasColumnType("int(11)");
  1472. });
  1473. modelBuilder.Entity<IndexIconList>(entity =>
  1474. {
  1475. entity.Property(e => e.Id).HasColumnType("int(11)");
  1476. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1477. entity.Property(e => e.CreateMan)
  1478. .HasColumnType("varchar(50)")
  1479. .HasCharSet("utf8")
  1480. .HasCollation("utf8_general_ci");
  1481. entity.Property(e => e.Icon)
  1482. .HasColumnType("varchar(200)")
  1483. .HasCharSet("utf8")
  1484. .HasCollation("utf8_general_ci");
  1485. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1486. entity.Property(e => e.SeoDescription)
  1487. .HasColumnType("varchar(500)")
  1488. .HasCharSet("utf8")
  1489. .HasCollation("utf8_general_ci");
  1490. entity.Property(e => e.SeoKeyword)
  1491. .HasColumnType("varchar(200)")
  1492. .HasCharSet("utf8")
  1493. .HasCollation("utf8_general_ci");
  1494. entity.Property(e => e.SeoTitle)
  1495. .HasColumnType("varchar(100)")
  1496. .HasCharSet("utf8")
  1497. .HasCollation("utf8_general_ci");
  1498. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1499. entity.Property(e => e.Status).HasColumnType("int(11)");
  1500. entity.Property(e => e.Title)
  1501. .HasColumnType("varchar(50)")
  1502. .HasCharSet("utf8")
  1503. .HasCollation("utf8_general_ci");
  1504. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1505. entity.Property(e => e.UpdateMan)
  1506. .HasColumnType("varchar(50)")
  1507. .HasCharSet("utf8")
  1508. .HasCollation("utf8_general_ci");
  1509. entity.Property(e => e.Url)
  1510. .HasColumnType("varchar(50)")
  1511. .HasCharSet("utf8")
  1512. .HasCollation("utf8_general_ci");
  1513. entity.Property(e => e.Version).HasColumnType("int(11)");
  1514. });
  1515. modelBuilder.Entity<KqProductBrand>(entity =>
  1516. {
  1517. entity.Property(e => e.Id).HasColumnType("int(11)");
  1518. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1519. entity.Property(e => e.CreateMan)
  1520. .HasColumnType("varchar(50)")
  1521. .HasCharSet("utf8")
  1522. .HasCollation("utf8_general_ci");
  1523. entity.Property(e => e.Name)
  1524. .HasColumnType("varchar(50)")
  1525. .HasCharSet("utf8")
  1526. .HasCollation("utf8_general_ci");
  1527. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  1528. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1529. entity.Property(e => e.SeoDescription)
  1530. .HasColumnType("varchar(500)")
  1531. .HasCharSet("utf8")
  1532. .HasCollation("utf8_general_ci");
  1533. entity.Property(e => e.SeoKeyword)
  1534. .HasColumnType("varchar(200)")
  1535. .HasCharSet("utf8")
  1536. .HasCollation("utf8_general_ci");
  1537. entity.Property(e => e.SeoTitle)
  1538. .HasColumnType("varchar(100)")
  1539. .HasCharSet("utf8")
  1540. .HasCollation("utf8_general_ci");
  1541. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1542. entity.Property(e => e.Status).HasColumnType("int(11)");
  1543. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1544. entity.Property(e => e.UpdateMan)
  1545. .HasColumnType("varchar(50)")
  1546. .HasCharSet("utf8")
  1547. .HasCollation("utf8_general_ci");
  1548. entity.Property(e => e.Version).HasColumnType("int(11)");
  1549. });
  1550. modelBuilder.Entity<KqProductOrgs>(entity =>
  1551. {
  1552. entity.Property(e => e.Id).HasColumnType("int(11)");
  1553. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1554. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1555. entity.Property(e => e.CreateMan)
  1556. .HasColumnType("varchar(50)")
  1557. .HasCharSet("utf8")
  1558. .HasCollation("utf8_general_ci");
  1559. entity.Property(e => e.Name)
  1560. .HasColumnType("varchar(50)")
  1561. .HasCharSet("utf8")
  1562. .HasCollation("utf8_general_ci");
  1563. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1564. entity.Property(e => e.SeoDescription)
  1565. .HasColumnType("varchar(500)")
  1566. .HasCharSet("utf8")
  1567. .HasCollation("utf8_general_ci");
  1568. entity.Property(e => e.SeoKeyword)
  1569. .HasColumnType("varchar(200)")
  1570. .HasCharSet("utf8")
  1571. .HasCollation("utf8_general_ci");
  1572. entity.Property(e => e.SeoTitle)
  1573. .HasColumnType("varchar(100)")
  1574. .HasCharSet("utf8")
  1575. .HasCollation("utf8_general_ci");
  1576. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1577. entity.Property(e => e.Status).HasColumnType("int(11)");
  1578. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1579. entity.Property(e => e.UpdateMan)
  1580. .HasColumnType("varchar(50)")
  1581. .HasCharSet("utf8")
  1582. .HasCollation("utf8_general_ci");
  1583. entity.Property(e => e.Version).HasColumnType("int(11)");
  1584. });
  1585. modelBuilder.Entity<KqProductRuleSet>(entity =>
  1586. {
  1587. entity.Property(e => e.Id).HasColumnType("int(11)");
  1588. entity.Property(e => e.ActDeposit).HasColumnType("decimal(18,2)");
  1589. entity.Property(e => e.ActEndDate).HasColumnType("datetime");
  1590. entity.Property(e => e.ActFirst).HasColumnType("decimal(18,2)");
  1591. entity.Property(e => e.ActFirstDeposit).HasColumnType("decimal(18,2)");
  1592. entity.Property(e => e.ActPosCount).HasColumnType("int(11)");
  1593. entity.Property(e => e.ActPrize).HasColumnType("decimal(18,2)");
  1594. entity.Property(e => e.ActStartDate).HasColumnType("datetime");
  1595. entity.Property(e => e.ActiveCount).HasColumnType("int(11)");
  1596. entity.Property(e => e.ActivePrice).HasColumnType("decimal(18,2)");
  1597. entity.Property(e => e.BigExtendCycleDays).HasColumnType("int(11)");
  1598. entity.Property(e => e.BigTotalAmount).HasColumnType("decimal(18,2)");
  1599. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1600. entity.Property(e => e.CreateMan)
  1601. .HasColumnType("varchar(50)")
  1602. .HasCharSet("utf8")
  1603. .HasCollation("utf8_general_ci");
  1604. entity.Property(e => e.CycleEndDate).HasColumnType("datetime");
  1605. entity.Property(e => e.CycleIsOther)
  1606. .HasColumnType("bit(1)")
  1607. .HasDefaultValueSql("b'0'");
  1608. entity.Property(e => e.CyclePosDays).HasColumnType("int(11)");
  1609. entity.Property(e => e.CycleStartDate).HasColumnType("datetime");
  1610. entity.Property(e => e.Deposit).HasColumnType("decimal(18,2)");
  1611. entity.Property(e => e.FeeBindDays).HasColumnType("int(11)");
  1612. entity.Property(e => e.FeeFixed).HasColumnType("decimal(18,2)");
  1613. entity.Property(e => e.FeeOfDays).HasColumnType("datetime");
  1614. entity.Property(e => e.FeeRate).HasColumnType("decimal(18,2)");
  1615. entity.Property(e => e.FlowCardDirectProfit).HasColumnType("decimal(18,2)");
  1616. entity.Property(e => e.FlowCardEndDate).HasColumnType("datetime");
  1617. entity.Property(e => e.FlowCardFee).HasColumnType("decimal(18,2)");
  1618. entity.Property(e => e.FlowCardFreeDays).HasColumnType("int(11)");
  1619. entity.Property(e => e.FlowCardStartDate).HasColumnType("datetime");
  1620. entity.Property(e => e.HelpEndDate).HasColumnType("datetime");
  1621. entity.Property(e => e.HelpFee).HasColumnType("decimal(18,2)");
  1622. entity.Property(e => e.HelpMonths).HasColumnType("int(11)");
  1623. entity.Property(e => e.HelpStartDate).HasColumnType("datetime");
  1624. entity.Property(e => e.HelpSteadyFee).HasColumnType("decimal(18,2)");
  1625. entity.Property(e => e.MerStaEndDate).HasColumnType("datetime");
  1626. entity.Property(e => e.MerStaMonths).HasColumnType("int(11)");
  1627. entity.Property(e => e.MerStaProfit).HasColumnType("decimal(18,2)");
  1628. entity.Property(e => e.MerStaStartDate).HasColumnType("datetime");
  1629. entity.Property(e => e.MerStaTradeForMonth).HasColumnType("decimal(18,2)");
  1630. entity.Property(e => e.OpenEndDate).HasColumnType("datetime");
  1631. entity.Property(e => e.OpenStaDays).HasColumnType("int(11)");
  1632. entity.Property(e => e.OpenStaPrize).HasColumnType("decimal(18,2)");
  1633. entity.Property(e => e.OpenStaPrize2).HasColumnType("decimal(18,2)");
  1634. entity.Property(e => e.OpenStaTrade).HasColumnType("decimal(18,2)");
  1635. entity.Property(e => e.OpenStartDate).HasColumnType("datetime");
  1636. entity.Property(e => e.OrgId).HasColumnType("int(11)");
  1637. entity.Property(e => e.PullNewEndDate).HasColumnType("datetime");
  1638. entity.Property(e => e.PullNewExtendDays).HasColumnType("int(11)");
  1639. entity.Property(e => e.PullNewStartDate).HasColumnType("datetime");
  1640. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1641. entity.Property(e => e.SeoDescription)
  1642. .HasColumnType("varchar(500)")
  1643. .HasCharSet("utf8")
  1644. .HasCollation("utf8_general_ci");
  1645. entity.Property(e => e.SeoKeyword)
  1646. .HasColumnType("varchar(200)")
  1647. .HasCharSet("utf8")
  1648. .HasCollation("utf8_general_ci");
  1649. entity.Property(e => e.SeoTitle)
  1650. .HasColumnType("varchar(100)")
  1651. .HasCharSet("utf8")
  1652. .HasCollation("utf8_general_ci");
  1653. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1654. entity.Property(e => e.Status).HasColumnType("int(11)");
  1655. entity.Property(e => e.SubsidyEndDate).HasColumnType("datetime");
  1656. entity.Property(e => e.SubsidyStartDate).HasColumnType("datetime");
  1657. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1658. entity.Property(e => e.UpdateMan)
  1659. .HasColumnType("varchar(50)")
  1660. .HasCharSet("utf8")
  1661. .HasCollation("utf8_general_ci");
  1662. entity.Property(e => e.Version).HasColumnType("int(11)");
  1663. });
  1664. modelBuilder.Entity<KqProducts>(entity =>
  1665. {
  1666. entity.Property(e => e.Id).HasColumnType("int(11)");
  1667. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1668. entity.Property(e => e.CreateMan)
  1669. .HasColumnType("varchar(50)")
  1670. .HasCharSet("utf8")
  1671. .HasCollation("utf8_general_ci");
  1672. entity.Property(e => e.Name)
  1673. .HasColumnType("varchar(50)")
  1674. .HasCharSet("utf8")
  1675. .HasCollation("utf8_general_ci");
  1676. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1677. entity.Property(e => e.SeoDescription)
  1678. .HasColumnType("varchar(500)")
  1679. .HasCharSet("utf8")
  1680. .HasCollation("utf8_general_ci");
  1681. entity.Property(e => e.SeoKeyword)
  1682. .HasColumnType("varchar(200)")
  1683. .HasCharSet("utf8")
  1684. .HasCollation("utf8_general_ci");
  1685. entity.Property(e => e.SeoTitle)
  1686. .HasColumnType("varchar(100)")
  1687. .HasCharSet("utf8")
  1688. .HasCollation("utf8_general_ci");
  1689. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1690. entity.Property(e => e.Status).HasColumnType("int(11)");
  1691. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1692. entity.Property(e => e.UpdateMan)
  1693. .HasColumnType("varchar(50)")
  1694. .HasCharSet("utf8")
  1695. .HasCollation("utf8_general_ci");
  1696. entity.Property(e => e.Version).HasColumnType("int(11)");
  1697. });
  1698. modelBuilder.Entity<MachineApply>(entity =>
  1699. {
  1700. entity.Property(e => e.Id).HasColumnType("int(11)");
  1701. entity.Property(e => e.Address)
  1702. .HasColumnType("varchar(50)")
  1703. .HasCharSet("utf8")
  1704. .HasCollation("utf8_general_ci");
  1705. entity.Property(e => e.ApplyDeviceName)
  1706. .HasColumnType("varchar(32)")
  1707. .HasCharSet("utf8")
  1708. .HasCollation("utf8_general_ci");
  1709. entity.Property(e => e.ApplyDeviceNum).HasColumnType("int(11)");
  1710. entity.Property(e => e.ApplyNo)
  1711. .HasColumnType("varchar(32)")
  1712. .HasCharSet("utf8")
  1713. .HasCollation("utf8_general_ci");
  1714. entity.Property(e => e.ApplyTime).HasColumnType("datetime");
  1715. entity.Property(e => e.Areas)
  1716. .HasColumnType("varchar(30)")
  1717. .HasCharSet("utf8")
  1718. .HasCollation("utf8_general_ci");
  1719. entity.Property(e => e.AuditBy)
  1720. .HasColumnType("varchar(32)")
  1721. .HasCharSet("utf8")
  1722. .HasCollation("utf8_general_ci");
  1723. entity.Property(e => e.AuditRemark)
  1724. .HasColumnType("varchar(128)")
  1725. .HasCharSet("utf8")
  1726. .HasCollation("utf8_general_ci");
  1727. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1728. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1729. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1730. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1731. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1732. entity.Property(e => e.CreateMan)
  1733. .HasColumnType("varchar(50)")
  1734. .HasCharSet("utf8")
  1735. .HasCollation("utf8_general_ci");
  1736. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  1737. entity.Property(e => e.ExpressName)
  1738. .HasColumnType("varchar(32)")
  1739. .HasCharSet("utf8")
  1740. .HasCollation("utf8_general_ci");
  1741. entity.Property(e => e.ExpressNo)
  1742. .HasColumnType("varchar(32)")
  1743. .HasCharSet("utf8")
  1744. .HasCollation("utf8_general_ci");
  1745. entity.Property(e => e.Mobile)
  1746. .HasColumnType("varchar(11)")
  1747. .HasCharSet("utf8")
  1748. .HasCollation("utf8_general_ci");
  1749. entity.Property(e => e.OrderExpand)
  1750. .HasColumnType("mediumtext")
  1751. .HasCharSet("utf8")
  1752. .HasCollation("utf8_general_ci");
  1753. entity.Property(e => e.ProductName)
  1754. .HasColumnType("varchar(32)")
  1755. .HasCharSet("utf8")
  1756. .HasCollation("utf8_general_ci");
  1757. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1758. entity.Property(e => e.RealName)
  1759. .HasColumnType("varchar(30)")
  1760. .HasCharSet("utf8")
  1761. .HasCollation("utf8_general_ci");
  1762. entity.Property(e => e.Remark)
  1763. .HasColumnType("varchar(64)")
  1764. .HasCharSet("utf8")
  1765. .HasCollation("utf8_general_ci");
  1766. entity.Property(e => e.ReturnOrderNo)
  1767. .HasColumnType("varchar(32)")
  1768. .HasCharSet("utf8")
  1769. .HasCollation("utf8_general_ci");
  1770. entity.Property(e => e.ReturnStatus).HasColumnType("int(11)");
  1771. entity.Property(e => e.SendDate).HasColumnType("datetime");
  1772. entity.Property(e => e.SendSn)
  1773. .HasColumnType("varchar(32)")
  1774. .HasCharSet("utf8")
  1775. .HasCollation("utf8_general_ci");
  1776. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  1777. entity.Property(e => e.SeoDescription)
  1778. .HasColumnType("varchar(500)")
  1779. .HasCharSet("utf8")
  1780. .HasCollation("utf8_general_ci");
  1781. entity.Property(e => e.SeoKeyword)
  1782. .HasColumnType("varchar(200)")
  1783. .HasCharSet("utf8")
  1784. .HasCollation("utf8_general_ci");
  1785. entity.Property(e => e.SeoTitle)
  1786. .HasColumnType("varchar(100)")
  1787. .HasCharSet("utf8")
  1788. .HasCollation("utf8_general_ci");
  1789. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1790. entity.Property(e => e.Status).HasColumnType("int(11)");
  1791. entity.Property(e => e.StoreAddress)
  1792. .HasColumnType("varchar(50)")
  1793. .HasCharSet("utf8")
  1794. .HasCollation("utf8_general_ci");
  1795. entity.Property(e => e.StoreAreas)
  1796. .HasColumnType("varchar(30)")
  1797. .HasCharSet("utf8")
  1798. .HasCollation("utf8_general_ci");
  1799. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1800. entity.Property(e => e.StoreManager)
  1801. .HasColumnType("varchar(32)")
  1802. .HasCharSet("utf8")
  1803. .HasCollation("utf8_general_ci");
  1804. entity.Property(e => e.StoreManagerMobile)
  1805. .HasColumnType("varchar(11)")
  1806. .HasCharSet("utf8")
  1807. .HasCollation("utf8_general_ci");
  1808. entity.Property(e => e.StoreName)
  1809. .HasColumnType("varchar(32)")
  1810. .HasCharSet("utf8")
  1811. .HasCollation("utf8_general_ci");
  1812. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  1813. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  1814. entity.Property(e => e.SwapActProName)
  1815. .HasColumnType("varchar(32)")
  1816. .HasCharSet("utf8")
  1817. .HasCollation("utf8_general_ci");
  1818. entity.Property(e => e.SwapActProType).HasColumnType("int(11)");
  1819. entity.Property(e => e.SwapSnExpand)
  1820. .HasColumnType("mediumtext")
  1821. .HasCharSet("utf8")
  1822. .HasCollation("utf8_general_ci");
  1823. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1824. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1825. entity.Property(e => e.UpdateMan)
  1826. .HasColumnType("varchar(50)")
  1827. .HasCharSet("utf8")
  1828. .HasCollation("utf8_general_ci");
  1829. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1830. entity.Property(e => e.Version).HasColumnType("int(11)");
  1831. });
  1832. modelBuilder.Entity<MachineApplyDetail>(entity =>
  1833. {
  1834. entity.Property(e => e.Id).HasColumnType("int(11)");
  1835. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  1836. entity.Property(e => e.ApplyNo)
  1837. .HasColumnType("varchar(32)")
  1838. .HasCharSet("utf8")
  1839. .HasCollation("utf8_general_ci");
  1840. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1841. entity.Property(e => e.CreateMan)
  1842. .HasColumnType("varchar(50)")
  1843. .HasCharSet("utf8")
  1844. .HasCollation("utf8_general_ci");
  1845. entity.Property(e => e.DeviceDesc)
  1846. .HasColumnType("varchar(32)")
  1847. .HasCharSet("utf8")
  1848. .HasCollation("utf8_general_ci");
  1849. entity.Property(e => e.DeviceModel)
  1850. .HasColumnType("varchar(32)")
  1851. .HasCharSet("utf8")
  1852. .HasCollation("utf8_general_ci");
  1853. entity.Property(e => e.DeviceSnNo)
  1854. .HasColumnType("varchar(32)")
  1855. .HasCharSet("utf8")
  1856. .HasCollation("utf8_general_ci");
  1857. entity.Property(e => e.DeviceStatus).HasColumnType("int(11)");
  1858. entity.Property(e => e.DeviceVendor)
  1859. .HasColumnType("varchar(32)")
  1860. .HasCharSet("utf8")
  1861. .HasCollation("utf8_general_ci");
  1862. entity.Property(e => e.ProductName)
  1863. .HasColumnType("varchar(32)")
  1864. .HasCharSet("utf8")
  1865. .HasCollation("utf8_general_ci");
  1866. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  1867. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1868. entity.Property(e => e.Remark)
  1869. .HasColumnType("varchar(64)")
  1870. .HasCharSet("utf8")
  1871. .HasCollation("utf8_general_ci");
  1872. entity.Property(e => e.SeoDescription)
  1873. .HasColumnType("varchar(500)")
  1874. .HasCharSet("utf8")
  1875. .HasCollation("utf8_general_ci");
  1876. entity.Property(e => e.SeoKeyword)
  1877. .HasColumnType("varchar(200)")
  1878. .HasCharSet("utf8")
  1879. .HasCollation("utf8_general_ci");
  1880. entity.Property(e => e.SeoTitle)
  1881. .HasColumnType("varchar(100)")
  1882. .HasCharSet("utf8")
  1883. .HasCollation("utf8_general_ci");
  1884. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1885. entity.Property(e => e.SourceSnNo)
  1886. .HasColumnType("varchar(32)")
  1887. .HasCharSet("utf8")
  1888. .HasCollation("utf8_general_ci");
  1889. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  1890. entity.Property(e => e.Status).HasColumnType("int(11)");
  1891. entity.Property(e => e.UpSrcProName)
  1892. .HasColumnType("varchar(32)")
  1893. .HasCharSet("utf8")
  1894. .HasCollation("utf8_general_ci");
  1895. entity.Property(e => e.UpSrcProType).HasColumnType("int(11)");
  1896. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1897. entity.Property(e => e.UpdateMan)
  1898. .HasColumnType("varchar(50)")
  1899. .HasCharSet("utf8")
  1900. .HasCollation("utf8_general_ci");
  1901. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1902. entity.Property(e => e.Version).HasColumnType("int(11)");
  1903. });
  1904. modelBuilder.Entity<MachineChange>(entity =>
  1905. {
  1906. entity.Property(e => e.Id).HasColumnType("int(11)");
  1907. entity.Property(e => e.AuditBy)
  1908. .HasColumnType("varchar(32)")
  1909. .HasCharSet("utf8")
  1910. .HasCollation("utf8_general_ci");
  1911. entity.Property(e => e.AuditRemark)
  1912. .HasColumnType("varchar(128)")
  1913. .HasCharSet("utf8")
  1914. .HasCollation("utf8_general_ci");
  1915. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1916. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1917. entity.Property(e => e.BackProductName)
  1918. .HasColumnType("varchar(32)")
  1919. .HasCharSet("utf8")
  1920. .HasCollation("utf8_general_ci");
  1921. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  1922. entity.Property(e => e.BackStoreId).HasColumnType("int(11)");
  1923. entity.Property(e => e.BackStoreName)
  1924. .HasColumnType("varchar(32)")
  1925. .HasCharSet("utf8")
  1926. .HasCollation("utf8_general_ci");
  1927. entity.Property(e => e.BackStoreUserId).HasColumnType("int(11)");
  1928. entity.Property(e => e.ChangeDeviceName)
  1929. .HasColumnType("varchar(32)")
  1930. .HasCharSet("utf8")
  1931. .HasCollation("utf8_general_ci");
  1932. entity.Property(e => e.ChangeDeviceNum).HasColumnType("int(11)");
  1933. entity.Property(e => e.ChangeNo)
  1934. .HasColumnType("varchar(32)")
  1935. .HasCharSet("utf8")
  1936. .HasCollation("utf8_general_ci");
  1937. entity.Property(e => e.ChangeSnExpand)
  1938. .HasColumnType("mediumtext")
  1939. .HasCharSet("utf8")
  1940. .HasCollation("utf8_general_ci");
  1941. entity.Property(e => e.ChangeTime).HasColumnType("datetime");
  1942. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1943. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1944. entity.Property(e => e.CreateMan)
  1945. .HasColumnType("varchar(50)")
  1946. .HasCharSet("utf8")
  1947. .HasCollation("utf8_general_ci");
  1948. entity.Property(e => e.OrderExpand)
  1949. .HasColumnType("mediumtext")
  1950. .HasCharSet("utf8")
  1951. .HasCollation("utf8_general_ci");
  1952. entity.Property(e => e.OutProductName)
  1953. .HasColumnType("varchar(32)")
  1954. .HasCharSet("utf8")
  1955. .HasCollation("utf8_general_ci");
  1956. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  1957. entity.Property(e => e.OutStoreAddress)
  1958. .HasColumnType("varchar(128)")
  1959. .HasCharSet("utf8")
  1960. .HasCollation("utf8_general_ci");
  1961. entity.Property(e => e.OutStoreAreas)
  1962. .HasColumnType("varchar(30)")
  1963. .HasCharSet("utf8")
  1964. .HasCollation("utf8_general_ci");
  1965. entity.Property(e => e.OutStoreId).HasColumnType("int(11)");
  1966. entity.Property(e => e.OutStoreManager)
  1967. .HasColumnType("varchar(32)")
  1968. .HasCharSet("utf8")
  1969. .HasCollation("utf8_general_ci");
  1970. entity.Property(e => e.OutStoreManagerMobile)
  1971. .HasColumnType("varchar(11)")
  1972. .HasCharSet("utf8")
  1973. .HasCollation("utf8_general_ci");
  1974. entity.Property(e => e.OutStoreName)
  1975. .HasColumnType("varchar(32)")
  1976. .HasCharSet("utf8")
  1977. .HasCollation("utf8_general_ci");
  1978. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1979. entity.Property(e => e.Remark)
  1980. .HasColumnType("varchar(64)")
  1981. .HasCharSet("utf8")
  1982. .HasCollation("utf8_general_ci");
  1983. entity.Property(e => e.SeoDescription)
  1984. .HasColumnType("varchar(500)")
  1985. .HasCharSet("utf8")
  1986. .HasCollation("utf8_general_ci");
  1987. entity.Property(e => e.SeoKeyword)
  1988. .HasColumnType("varchar(200)")
  1989. .HasCharSet("utf8")
  1990. .HasCollation("utf8_general_ci");
  1991. entity.Property(e => e.SeoTitle)
  1992. .HasColumnType("varchar(100)")
  1993. .HasCharSet("utf8")
  1994. .HasCollation("utf8_general_ci");
  1995. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1996. entity.Property(e => e.Status).HasColumnType("int(11)");
  1997. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1998. entity.Property(e => e.UpdateMan)
  1999. .HasColumnType("varchar(50)")
  2000. .HasCharSet("utf8")
  2001. .HasCollation("utf8_general_ci");
  2002. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2003. entity.Property(e => e.Version).HasColumnType("int(11)");
  2004. });
  2005. modelBuilder.Entity<MachineChangeDetail>(entity =>
  2006. {
  2007. entity.Property(e => e.Id).HasColumnType("int(11)");
  2008. entity.Property(e => e.BackDeviceStatus).HasColumnType("int(11)");
  2009. entity.Property(e => e.BackProductName)
  2010. .HasColumnType("varchar(32)")
  2011. .HasCharSet("utf8")
  2012. .HasCollation("utf8_general_ci");
  2013. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2014. entity.Property(e => e.BackSnNo)
  2015. .HasColumnType("varchar(32)")
  2016. .HasCharSet("utf8")
  2017. .HasCollation("utf8_general_ci");
  2018. entity.Property(e => e.BackSnType).HasColumnType("int(11)");
  2019. entity.Property(e => e.ChangeId).HasColumnType("int(11)");
  2020. entity.Property(e => e.ChangeNo)
  2021. .HasColumnType("varchar(32)")
  2022. .HasCharSet("utf8")
  2023. .HasCollation("utf8_general_ci");
  2024. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2025. entity.Property(e => e.CreateMan)
  2026. .HasColumnType("varchar(50)")
  2027. .HasCharSet("utf8")
  2028. .HasCollation("utf8_general_ci");
  2029. entity.Property(e => e.OutProductName)
  2030. .HasColumnType("varchar(32)")
  2031. .HasCharSet("utf8")
  2032. .HasCollation("utf8_general_ci");
  2033. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2034. entity.Property(e => e.OutSnNo)
  2035. .HasColumnType("varchar(32)")
  2036. .HasCharSet("utf8")
  2037. .HasCollation("utf8_general_ci");
  2038. entity.Property(e => e.OutSnType).HasColumnType("int(11)");
  2039. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2040. entity.Property(e => e.Remark)
  2041. .HasColumnType("varchar(64)")
  2042. .HasCharSet("utf8")
  2043. .HasCollation("utf8_general_ci");
  2044. entity.Property(e => e.SeoDescription)
  2045. .HasColumnType("varchar(500)")
  2046. .HasCharSet("utf8")
  2047. .HasCollation("utf8_general_ci");
  2048. entity.Property(e => e.SeoKeyword)
  2049. .HasColumnType("varchar(200)")
  2050. .HasCharSet("utf8")
  2051. .HasCollation("utf8_general_ci");
  2052. entity.Property(e => e.SeoTitle)
  2053. .HasColumnType("varchar(100)")
  2054. .HasCharSet("utf8")
  2055. .HasCollation("utf8_general_ci");
  2056. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2057. entity.Property(e => e.Status).HasColumnType("int(11)");
  2058. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2059. entity.Property(e => e.UpdateMan)
  2060. .HasColumnType("varchar(50)")
  2061. .HasCharSet("utf8")
  2062. .HasCollation("utf8_general_ci");
  2063. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2064. entity.Property(e => e.Version).HasColumnType("int(11)");
  2065. });
  2066. modelBuilder.Entity<MachineForQrCode>(entity =>
  2067. {
  2068. entity.HasKey(e => e.DataId)
  2069. .HasName("PRIMARY");
  2070. entity.Property(e => e.DataId)
  2071. .HasColumnType("varchar(20)")
  2072. .HasCharSet("utf8")
  2073. .HasCollation("utf8_general_ci");
  2074. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2075. entity.Property(e => e.MachineSnNo)
  2076. .HasColumnType("varchar(50)")
  2077. .HasCharSet("utf8")
  2078. .HasCollation("utf8_general_ci");
  2079. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2080. entity.Property(e => e.SnNo)
  2081. .HasColumnType("varchar(50)")
  2082. .HasCharSet("utf8")
  2083. .HasCollation("utf8_general_ci");
  2084. });
  2085. modelBuilder.Entity<MachineForSnNo>(entity =>
  2086. {
  2087. entity.HasKey(e => e.SnNo)
  2088. .HasName("PRIMARY");
  2089. entity.Property(e => e.SnNo)
  2090. .HasColumnType("varchar(50)")
  2091. .HasCharSet("utf8")
  2092. .HasCollation("utf8_general_ci");
  2093. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2094. });
  2095. modelBuilder.Entity<MachineRenew>(entity =>
  2096. {
  2097. entity.Property(e => e.Id).HasColumnType("int(11)");
  2098. entity.Property(e => e.ApplyDate)
  2099. .HasColumnType("varchar(8)")
  2100. .HasCharSet("utf8")
  2101. .HasCollation("utf8_general_ci");
  2102. entity.Property(e => e.ApplyNo)
  2103. .HasColumnType("varchar(32)")
  2104. .HasCharSet("utf8")
  2105. .HasCollation("utf8_general_ci");
  2106. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2107. entity.Property(e => e.AuditDesc)
  2108. .HasColumnType("varchar(256)")
  2109. .HasCharSet("utf8")
  2110. .HasCollation("utf8_general_ci");
  2111. entity.Property(e => e.AuditStatus)
  2112. .HasColumnName("audit_status")
  2113. .HasColumnType("int(11)");
  2114. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2115. entity.Property(e => e.CreateMan)
  2116. .HasColumnType("varchar(50)")
  2117. .HasCharSet("utf8")
  2118. .HasCollation("utf8_general_ci");
  2119. entity.Property(e => e.DamagedBrandId).HasColumnType("int(11)");
  2120. entity.Property(e => e.DamagedSnNo)
  2121. .HasColumnType("varchar(32)")
  2122. .HasCharSet("utf8")
  2123. .HasCollation("utf8_general_ci");
  2124. entity.Property(e => e.DamagedSnType).HasColumnType("int(11)");
  2125. entity.Property(e => e.DeliverBrandId).HasColumnType("int(11)");
  2126. entity.Property(e => e.DeliverSnNo)
  2127. .HasColumnType("varchar(32)")
  2128. .HasCharSet("utf8")
  2129. .HasCollation("utf8_general_ci");
  2130. entity.Property(e => e.DemandDesc)
  2131. .HasColumnType("varchar(256)")
  2132. .HasCharSet("utf8")
  2133. .HasCollation("utf8_general_ci");
  2134. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2135. entity.Property(e => e.ReplaceBrandId).HasColumnType("int(11)");
  2136. entity.Property(e => e.ReplaceSnNo)
  2137. .HasColumnType("varchar(32)")
  2138. .HasCharSet("utf8")
  2139. .HasCollation("utf8_general_ci");
  2140. entity.Property(e => e.ReplaceSnType).HasColumnType("int(11)");
  2141. entity.Property(e => e.SeoDescription)
  2142. .HasColumnType("varchar(500)")
  2143. .HasCharSet("utf8")
  2144. .HasCollation("utf8_general_ci");
  2145. entity.Property(e => e.SeoKeyword)
  2146. .HasColumnType("varchar(200)")
  2147. .HasCharSet("utf8")
  2148. .HasCollation("utf8_general_ci");
  2149. entity.Property(e => e.SeoTitle)
  2150. .HasColumnType("varchar(100)")
  2151. .HasCharSet("utf8")
  2152. .HasCollation("utf8_general_ci");
  2153. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2154. entity.Property(e => e.Status).HasColumnType("int(11)");
  2155. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2156. entity.Property(e => e.UpdateMan)
  2157. .HasColumnType("varchar(50)")
  2158. .HasCharSet("utf8")
  2159. .HasCollation("utf8_general_ci");
  2160. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2161. entity.Property(e => e.Version).HasColumnType("int(11)");
  2162. });
  2163. modelBuilder.Entity<MachineReturn>(entity =>
  2164. {
  2165. entity.Property(e => e.Id).HasColumnType("int(11)");
  2166. entity.Property(e => e.ApplyNo)
  2167. .HasColumnType("varchar(32)")
  2168. .HasCharSet("utf8")
  2169. .HasCollation("utf8_general_ci");
  2170. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2171. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2172. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2173. entity.Property(e => e.CreateMan)
  2174. .HasColumnType("varchar(50)")
  2175. .HasCharSet("utf8")
  2176. .HasCollation("utf8_general_ci");
  2177. entity.Property(e => e.DeviceDesc)
  2178. .HasColumnType("varchar(256)")
  2179. .HasCharSet("utf8")
  2180. .HasCollation("utf8_general_ci");
  2181. entity.Property(e => e.DeviceNum).HasColumnType("int(11)");
  2182. entity.Property(e => e.DeviceSnNos)
  2183. .HasColumnType("mediumtext")
  2184. .HasCharSet("utf8")
  2185. .HasCollation("utf8_general_ci");
  2186. entity.Property(e => e.Operator)
  2187. .HasColumnType("varchar(32)")
  2188. .HasCharSet("utf8")
  2189. .HasCollation("utf8_general_ci");
  2190. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2191. entity.Property(e => e.Remark)
  2192. .HasColumnType("varchar(64)")
  2193. .HasCharSet("utf8")
  2194. .HasCollation("utf8_general_ci");
  2195. entity.Property(e => e.SeoDescription)
  2196. .HasColumnType("varchar(500)")
  2197. .HasCharSet("utf8")
  2198. .HasCollation("utf8_general_ci");
  2199. entity.Property(e => e.SeoKeyword)
  2200. .HasColumnType("varchar(200)")
  2201. .HasCharSet("utf8")
  2202. .HasCollation("utf8_general_ci");
  2203. entity.Property(e => e.SeoTitle)
  2204. .HasColumnType("varchar(100)")
  2205. .HasCharSet("utf8")
  2206. .HasCollation("utf8_general_ci");
  2207. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2208. entity.Property(e => e.Status).HasColumnType("int(11)");
  2209. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  2210. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2211. entity.Property(e => e.UpdateMan)
  2212. .HasColumnType("varchar(50)")
  2213. .HasCharSet("utf8")
  2214. .HasCollation("utf8_general_ci");
  2215. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2216. entity.Property(e => e.Version).HasColumnType("int(11)");
  2217. });
  2218. modelBuilder.Entity<MenuRight>(entity =>
  2219. {
  2220. entity.HasKey(e => e.MenuId)
  2221. .HasName("PRIMARY");
  2222. entity.Property(e => e.MenuId)
  2223. .HasColumnType("varchar(50)")
  2224. .HasCharSet("utf8")
  2225. .HasCollation("utf8_general_ci");
  2226. entity.Property(e => e.Name)
  2227. .HasColumnType("varchar(50)")
  2228. .HasCharSet("utf8")
  2229. .HasCollation("utf8_general_ci");
  2230. });
  2231. modelBuilder.Entity<MerchantAddInfo>(entity =>
  2232. {
  2233. entity.Property(e => e.Id).HasColumnType("int(11)");
  2234. entity.Property(e => e.AccountBank)
  2235. .HasColumnType("varchar(30)")
  2236. .HasCharSet("utf8")
  2237. .HasCollation("utf8_general_ci");
  2238. entity.Property(e => e.AccountName)
  2239. .HasColumnType("varchar(50)")
  2240. .HasCharSet("utf8")
  2241. .HasCollation("utf8_general_ci");
  2242. entity.Property(e => e.AccountNumber)
  2243. .HasColumnType("varchar(50)")
  2244. .HasCharSet("utf8")
  2245. .HasCollation("utf8_general_ci");
  2246. entity.Property(e => e.ActivitiesId)
  2247. .HasColumnType("varchar(32)")
  2248. .HasCharSet("utf8")
  2249. .HasCollation("utf8_general_ci");
  2250. entity.Property(e => e.ActivitiesRate)
  2251. .HasColumnType("varchar(20)")
  2252. .HasCharSet("utf8")
  2253. .HasCollation("utf8_general_ci");
  2254. entity.Property(e => e.AppAppid)
  2255. .HasColumnType("varchar(50)")
  2256. .HasCharSet("utf8")
  2257. .HasCollation("utf8_general_ci");
  2258. entity.Property(e => e.AppPics)
  2259. .HasColumnType("varchar(200)")
  2260. .HasCharSet("utf8")
  2261. .HasCollation("utf8_general_ci");
  2262. entity.Property(e => e.AppSubAppid)
  2263. .HasColumnType("varchar(50)")
  2264. .HasCharSet("utf8")
  2265. .HasCollation("utf8_general_ci");
  2266. entity.Property(e => e.ApplymentId)
  2267. .HasColumnType("varchar(50)")
  2268. .HasCharSet("utf8")
  2269. .HasCollation("utf8_general_ci");
  2270. entity.Property(e => e.ApplymentState)
  2271. .HasColumnType("varchar(50)")
  2272. .HasCharSet("utf8")
  2273. .HasCollation("utf8_general_ci");
  2274. entity.Property(e => e.AuditDetail)
  2275. .HasColumnType("mediumtext")
  2276. .HasCharSet("utf8")
  2277. .HasCollation("utf8_general_ci");
  2278. entity.Property(e => e.BankAccountType)
  2279. .HasColumnType("varchar(50)")
  2280. .HasCharSet("utf8")
  2281. .HasCollation("utf8_general_ci");
  2282. entity.Property(e => e.BankAddressCode)
  2283. .HasColumnType("varchar(20)")
  2284. .HasCharSet("utf8")
  2285. .HasCollation("utf8_general_ci");
  2286. entity.Property(e => e.BankBranchId)
  2287. .HasColumnType("varchar(20)")
  2288. .HasCharSet("utf8")
  2289. .HasCollation("utf8_general_ci");
  2290. entity.Property(e => e.BankName)
  2291. .HasColumnType("varchar(50)")
  2292. .HasCharSet("utf8")
  2293. .HasCollation("utf8_general_ci");
  2294. entity.Property(e => e.BizAddressCode)
  2295. .HasColumnType("varchar(30)")
  2296. .HasCharSet("utf8")
  2297. .HasCollation("utf8_general_ci");
  2298. entity.Property(e => e.BizStoreAddress)
  2299. .HasColumnType("varchar(50)")
  2300. .HasCharSet("utf8")
  2301. .HasCollation("utf8_general_ci");
  2302. entity.Property(e => e.BizStoreName)
  2303. .HasColumnType("varchar(50)")
  2304. .HasCharSet("utf8")
  2305. .HasCollation("utf8_general_ci");
  2306. entity.Property(e => e.BizSubAppid)
  2307. .HasColumnType("varchar(32)")
  2308. .HasCharSet("utf8")
  2309. .HasCollation("utf8_general_ci");
  2310. entity.Property(e => e.BusinessCode)
  2311. .HasColumnType("varchar(50)")
  2312. .HasCharSet("utf8")
  2313. .HasCollation("utf8_general_ci");
  2314. entity.Property(e => e.CardPeriodBegin).HasColumnType("datetime");
  2315. entity.Property(e => e.CardPeriodEnd).HasColumnType("datetime");
  2316. entity.Property(e => e.CertCopy)
  2317. .HasColumnType("varchar(200)")
  2318. .HasCharSet("utf8")
  2319. .HasCollation("utf8_general_ci");
  2320. entity.Property(e => e.CertLegalPerson)
  2321. .HasColumnType("varchar(20)")
  2322. .HasCharSet("utf8")
  2323. .HasCollation("utf8_general_ci");
  2324. entity.Property(e => e.CertMerchantName)
  2325. .HasColumnType("varchar(30)")
  2326. .HasCharSet("utf8")
  2327. .HasCollation("utf8_general_ci");
  2328. entity.Property(e => e.CertNumber)
  2329. .HasColumnType("varchar(32)")
  2330. .HasCharSet("utf8")
  2331. .HasCollation("utf8_general_ci");
  2332. entity.Property(e => e.CertType)
  2333. .HasColumnType("varchar(30)")
  2334. .HasCharSet("utf8")
  2335. .HasCollation("utf8_general_ci");
  2336. entity.Property(e => e.CertificateLetterCopy)
  2337. .HasColumnType("varchar(200)")
  2338. .HasCharSet("utf8")
  2339. .HasCollation("utf8_general_ci");
  2340. entity.Property(e => e.CompanyAddress)
  2341. .HasColumnType("varchar(50)")
  2342. .HasCharSet("utf8")
  2343. .HasCollation("utf8_general_ci");
  2344. entity.Property(e => e.ContactEmail)
  2345. .HasColumnType("varchar(50)")
  2346. .HasCharSet("utf8")
  2347. .HasCollation("utf8_general_ci");
  2348. entity.Property(e => e.ContactIdNumber)
  2349. .HasColumnType("varchar(18)")
  2350. .HasCharSet("utf8")
  2351. .HasCollation("utf8_general_ci");
  2352. entity.Property(e => e.ContactName)
  2353. .HasColumnType("varchar(30)")
  2354. .HasCharSet("utf8")
  2355. .HasCollation("utf8_general_ci");
  2356. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2357. entity.Property(e => e.CreateMan)
  2358. .HasColumnType("varchar(50)")
  2359. .HasCharSet("utf8")
  2360. .HasCollation("utf8_general_ci");
  2361. entity.Property(e => e.IdCardCopy)
  2362. .HasColumnType("varchar(200)")
  2363. .HasCharSet("utf8")
  2364. .HasCollation("utf8_general_ci");
  2365. entity.Property(e => e.IdCardName)
  2366. .HasColumnType("varchar(20)")
  2367. .HasCharSet("utf8")
  2368. .HasCollation("utf8_general_ci");
  2369. entity.Property(e => e.IdCardNational)
  2370. .HasColumnType("varchar(200)")
  2371. .HasCharSet("utf8")
  2372. .HasCollation("utf8_general_ci");
  2373. entity.Property(e => e.IdCardNumber)
  2374. .HasColumnType("varchar(18)")
  2375. .HasCharSet("utf8")
  2376. .HasCollation("utf8_general_ci");
  2377. entity.Property(e => e.IdDocType)
  2378. .HasColumnType("varchar(50)")
  2379. .HasCharSet("utf8")
  2380. .HasCollation("utf8_general_ci");
  2381. entity.Property(e => e.IndoorPic)
  2382. .HasColumnType("varchar(200)")
  2383. .HasCharSet("utf8")
  2384. .HasCollation("utf8_general_ci");
  2385. entity.Property(e => e.LegalPerson)
  2386. .HasColumnType("varchar(20)")
  2387. .HasCharSet("utf8")
  2388. .HasCollation("utf8_general_ci");
  2389. entity.Property(e => e.LicenseCopy)
  2390. .HasColumnType("varchar(200)")
  2391. .HasCharSet("utf8")
  2392. .HasCollation("utf8_general_ci");
  2393. entity.Property(e => e.LicenseNumber)
  2394. .HasColumnType("varchar(32)")
  2395. .HasCharSet("utf8")
  2396. .HasCollation("utf8_general_ci");
  2397. entity.Property(e => e.MerchantShortname)
  2398. .HasColumnType("varchar(50)")
  2399. .HasCharSet("utf8")
  2400. .HasCollation("utf8_general_ci");
  2401. entity.Property(e => e.MiniProgramAppid)
  2402. .HasColumnType("varchar(50)")
  2403. .HasCharSet("utf8")
  2404. .HasCollation("utf8_general_ci");
  2405. entity.Property(e => e.MiniProgramPics)
  2406. .HasColumnType("varchar(200)")
  2407. .HasCharSet("utf8")
  2408. .HasCollation("utf8_general_ci");
  2409. entity.Property(e => e.MiniProgramSubAppid)
  2410. .HasColumnType("varchar(50)")
  2411. .HasCharSet("utf8")
  2412. .HasCollation("utf8_general_ci");
  2413. entity.Property(e => e.MobilePhone)
  2414. .HasColumnType("varchar(11)")
  2415. .HasCharSet("utf8")
  2416. .HasCollation("utf8_general_ci");
  2417. entity.Property(e => e.MpAppid)
  2418. .HasColumnType("varchar(50)")
  2419. .HasCharSet("utf8")
  2420. .HasCollation("utf8_general_ci");
  2421. entity.Property(e => e.MpPics)
  2422. .HasColumnType("varchar(200)")
  2423. .HasCharSet("utf8")
  2424. .HasCollation("utf8_general_ci");
  2425. entity.Property(e => e.MpSubAppid)
  2426. .HasColumnType("varchar(50)")
  2427. .HasCharSet("utf8")
  2428. .HasCollation("utf8_general_ci");
  2429. entity.Property(e => e.OpenId)
  2430. .HasColumnType("varchar(50)")
  2431. .HasCharSet("utf8")
  2432. .HasCollation("utf8_general_ci");
  2433. entity.Property(e => e.OrgPeriodBegin).HasColumnType("datetime");
  2434. entity.Property(e => e.OrgPeriodEnd).HasColumnType("datetime");
  2435. entity.Property(e => e.OrganizationCode)
  2436. .HasColumnType("varchar(32)")
  2437. .HasCharSet("utf8")
  2438. .HasCollation("utf8_general_ci");
  2439. entity.Property(e => e.OrganizationCopy)
  2440. .HasColumnType("varchar(200)")
  2441. .HasCharSet("utf8")
  2442. .HasCollation("utf8_general_ci");
  2443. entity.Property(e => e.Owner)
  2444. .HasColumnType("bit(1)")
  2445. .HasDefaultValueSql("b'0'");
  2446. entity.Property(e => e.PeriodBegin).HasColumnType("datetime");
  2447. entity.Property(e => e.PeriodEnd).HasColumnType("datetime");
  2448. entity.Property(e => e.QualificationType)
  2449. .HasColumnType("varchar(30)")
  2450. .HasCharSet("utf8")
  2451. .HasCollation("utf8_general_ci");
  2452. entity.Property(e => e.Qualifications)
  2453. .HasColumnType("varchar(200)")
  2454. .HasCharSet("utf8")
  2455. .HasCollation("utf8_general_ci");
  2456. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2457. entity.Property(e => e.SalesScenesType)
  2458. .HasColumnType("varchar(50)")
  2459. .HasCharSet("utf8")
  2460. .HasCollation("utf8_general_ci");
  2461. entity.Property(e => e.SeoDescription)
  2462. .HasColumnType("varchar(500)")
  2463. .HasCharSet("utf8")
  2464. .HasCollation("utf8_general_ci");
  2465. entity.Property(e => e.SeoKeyword)
  2466. .HasColumnType("varchar(200)")
  2467. .HasCharSet("utf8")
  2468. .HasCollation("utf8_general_ci");
  2469. entity.Property(e => e.SeoTitle)
  2470. .HasColumnType("varchar(100)")
  2471. .HasCharSet("utf8")
  2472. .HasCollation("utf8_general_ci");
  2473. entity.Property(e => e.ServicePhone)
  2474. .HasColumnType("varchar(30)")
  2475. .HasCharSet("utf8")
  2476. .HasCollation("utf8_general_ci");
  2477. entity.Property(e => e.SettlementId)
  2478. .HasColumnType("varchar(3)")
  2479. .HasCharSet("utf8")
  2480. .HasCollation("utf8_general_ci");
  2481. entity.Property(e => e.SignUrl)
  2482. .HasColumnType("varchar(1000)")
  2483. .HasCharSet("utf8")
  2484. .HasCollation("utf8_general_ci");
  2485. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2486. entity.Property(e => e.Status).HasColumnType("int(11)");
  2487. entity.Property(e => e.StoreEntrancePic)
  2488. .HasColumnType("varchar(200)")
  2489. .HasCharSet("utf8")
  2490. .HasCollation("utf8_general_ci");
  2491. entity.Property(e => e.SubCorpId)
  2492. .HasColumnType("varchar(50)")
  2493. .HasCharSet("utf8")
  2494. .HasCollation("utf8_general_ci");
  2495. entity.Property(e => e.SubMchid)
  2496. .HasColumnType("varchar(32)")
  2497. .HasCharSet("utf8")
  2498. .HasCollation("utf8_general_ci");
  2499. entity.Property(e => e.SubjectType)
  2500. .HasColumnType("varchar(50)")
  2501. .HasCharSet("utf8")
  2502. .HasCollation("utf8_general_ci");
  2503. entity.Property(e => e.UboInfoIdCardCopy)
  2504. .HasColumnType("varchar(200)")
  2505. .HasCharSet("utf8")
  2506. .HasCollation("utf8_general_ci");
  2507. entity.Property(e => e.UboInfoIdCardNational)
  2508. .HasColumnType("varchar(200)")
  2509. .HasCharSet("utf8")
  2510. .HasCollation("utf8_general_ci");
  2511. entity.Property(e => e.UboInfoIdDocCopy)
  2512. .HasColumnType("varchar(200)")
  2513. .HasCharSet("utf8")
  2514. .HasCollation("utf8_general_ci");
  2515. entity.Property(e => e.UboInfoIdNumber)
  2516. .HasColumnType("varchar(30)")
  2517. .HasCharSet("utf8")
  2518. .HasCollation("utf8_general_ci");
  2519. entity.Property(e => e.UboInfoIdPeriodBegin).HasColumnType("datetime");
  2520. entity.Property(e => e.UboInfoIdPeriodEnd).HasColumnType("datetime");
  2521. entity.Property(e => e.UboInfoIdType)
  2522. .HasColumnType("varchar(50)")
  2523. .HasCharSet("utf8")
  2524. .HasCollation("utf8_general_ci");
  2525. entity.Property(e => e.UboInfoName)
  2526. .HasColumnType("varchar(20)")
  2527. .HasCharSet("utf8")
  2528. .HasCollation("utf8_general_ci");
  2529. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2530. entity.Property(e => e.UpdateMan)
  2531. .HasColumnType("varchar(50)")
  2532. .HasCharSet("utf8")
  2533. .HasCollation("utf8_general_ci");
  2534. entity.Property(e => e.Version).HasColumnType("int(11)");
  2535. entity.Property(e => e.WebAppId)
  2536. .HasColumnType("varchar(50)")
  2537. .HasCharSet("utf8")
  2538. .HasCollation("utf8_general_ci");
  2539. entity.Property(e => e.WebAuthorisation)
  2540. .HasColumnType("varchar(200)")
  2541. .HasCharSet("utf8")
  2542. .HasCollation("utf8_general_ci");
  2543. entity.Property(e => e.WebDomain)
  2544. .HasColumnType("varchar(50)")
  2545. .HasCharSet("utf8")
  2546. .HasCollation("utf8_general_ci");
  2547. entity.Property(e => e.WeworkPics)
  2548. .HasColumnType("varchar(200)")
  2549. .HasCharSet("utf8")
  2550. .HasCollation("utf8_general_ci");
  2551. });
  2552. modelBuilder.Entity<MerchantAdmin>(entity =>
  2553. {
  2554. entity.Property(e => e.Id).HasColumnType("int(11)");
  2555. entity.Property(e => e.AdminName)
  2556. .HasColumnType("varchar(50)")
  2557. .HasCharSet("utf8")
  2558. .HasCollation("utf8_general_ci");
  2559. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2560. entity.Property(e => e.CreateMan)
  2561. .HasColumnType("varchar(50)")
  2562. .HasCharSet("utf8")
  2563. .HasCollation("utf8_general_ci");
  2564. entity.Property(e => e.Email)
  2565. .HasColumnType("varchar(50)")
  2566. .HasCharSet("utf8")
  2567. .HasCollation("utf8_general_ci");
  2568. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  2569. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2570. entity.Property(e => e.Mobile)
  2571. .HasColumnType("varchar(11)")
  2572. .HasCharSet("utf8")
  2573. .HasCollation("utf8_general_ci");
  2574. entity.Property(e => e.Note)
  2575. .HasColumnType("mediumtext")
  2576. .HasCharSet("utf8")
  2577. .HasCollation("utf8_general_ci");
  2578. entity.Property(e => e.Password)
  2579. .HasColumnType("varchar(32)")
  2580. .HasCharSet("utf8")
  2581. .HasCollation("utf8_general_ci");
  2582. entity.Property(e => e.Qq)
  2583. .HasColumnName("QQ")
  2584. .HasColumnType("varchar(20)")
  2585. .HasCharSet("utf8")
  2586. .HasCollation("utf8_general_ci");
  2587. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2588. entity.Property(e => e.RealName)
  2589. .HasColumnType("varchar(50)")
  2590. .HasCharSet("utf8")
  2591. .HasCollation("utf8_general_ci");
  2592. entity.Property(e => e.RightInfo)
  2593. .HasColumnType("varchar(500)")
  2594. .HasCharSet("utf8")
  2595. .HasCollation("utf8_general_ci");
  2596. entity.Property(e => e.SeoDescription)
  2597. .HasColumnType("varchar(500)")
  2598. .HasCharSet("utf8")
  2599. .HasCollation("utf8_general_ci");
  2600. entity.Property(e => e.SeoKeyword)
  2601. .HasColumnType("varchar(200)")
  2602. .HasCharSet("utf8")
  2603. .HasCollation("utf8_general_ci");
  2604. entity.Property(e => e.SeoTitle)
  2605. .HasColumnType("varchar(100)")
  2606. .HasCharSet("utf8")
  2607. .HasCollation("utf8_general_ci");
  2608. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2609. entity.Property(e => e.Status).HasColumnType("int(11)");
  2610. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2611. entity.Property(e => e.UpdateMan)
  2612. .HasColumnType("varchar(50)")
  2613. .HasCharSet("utf8")
  2614. .HasCollation("utf8_general_ci");
  2615. entity.Property(e => e.Version).HasColumnType("int(11)");
  2616. });
  2617. modelBuilder.Entity<MerchantAuth>(entity =>
  2618. {
  2619. entity.Property(e => e.Id).HasColumnType("int(11)");
  2620. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  2621. entity.Property(e => e.BankCardAccount)
  2622. .HasColumnType("varchar(32)")
  2623. .HasCharSet("utf8")
  2624. .HasCollation("utf8_general_ci");
  2625. entity.Property(e => e.BankMobile)
  2626. .HasColumnType("varchar(11)")
  2627. .HasCharSet("utf8")
  2628. .HasCollation("utf8_general_ci");
  2629. entity.Property(e => e.BankName)
  2630. .HasColumnType("varchar(64)")
  2631. .HasCharSet("utf8")
  2632. .HasCollation("utf8_general_ci");
  2633. entity.Property(e => e.ChannelCode)
  2634. .HasColumnType("varchar(16)")
  2635. .HasCharSet("utf8")
  2636. .HasCollation("utf8_general_ci");
  2637. entity.Property(e => e.ChannelName)
  2638. .HasColumnType("varchar(32)")
  2639. .HasCharSet("utf8")
  2640. .HasCollation("utf8_general_ci");
  2641. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2642. entity.Property(e => e.CreateMan)
  2643. .HasColumnType("varchar(50)")
  2644. .HasCharSet("utf8")
  2645. .HasCollation("utf8_general_ci");
  2646. entity.Property(e => e.IdCardNo)
  2647. .HasColumnType("varchar(18)")
  2648. .HasCharSet("utf8")
  2649. .HasCollation("utf8_general_ci");
  2650. entity.Property(e => e.MerNo)
  2651. .HasColumnType("varchar(20)")
  2652. .HasCharSet("utf8")
  2653. .HasCollation("utf8_general_ci");
  2654. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2655. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2656. entity.Property(e => e.RealName)
  2657. .HasColumnType("varchar(16)")
  2658. .HasCharSet("utf8")
  2659. .HasCollation("utf8_general_ci");
  2660. entity.Property(e => e.ReqData)
  2661. .HasColumnType("varchar(2000)")
  2662. .HasCharSet("utf8")
  2663. .HasCollation("utf8_general_ci");
  2664. entity.Property(e => e.RespData)
  2665. .HasColumnType("varchar(2000)")
  2666. .HasCharSet("utf8")
  2667. .HasCollation("utf8_general_ci");
  2668. entity.Property(e => e.ReturnCode)
  2669. .HasColumnType("varchar(30)")
  2670. .HasCharSet("utf8")
  2671. .HasCollation("utf8_general_ci");
  2672. entity.Property(e => e.ReturnMsg)
  2673. .HasColumnType("varchar(512)")
  2674. .HasCharSet("utf8")
  2675. .HasCollation("utf8_general_ci");
  2676. entity.Property(e => e.SeoDescription)
  2677. .HasColumnType("varchar(500)")
  2678. .HasCharSet("utf8")
  2679. .HasCollation("utf8_general_ci");
  2680. entity.Property(e => e.SeoKeyword)
  2681. .HasColumnType("varchar(200)")
  2682. .HasCharSet("utf8")
  2683. .HasCollation("utf8_general_ci");
  2684. entity.Property(e => e.SeoTitle)
  2685. .HasColumnType("varchar(100)")
  2686. .HasCharSet("utf8")
  2687. .HasCollation("utf8_general_ci");
  2688. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2689. entity.Property(e => e.Status).HasColumnType("int(11)");
  2690. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2691. entity.Property(e => e.UpdateMan)
  2692. .HasColumnType("varchar(50)")
  2693. .HasCharSet("utf8")
  2694. .HasCollation("utf8_general_ci");
  2695. entity.Property(e => e.Version).HasColumnType("int(11)");
  2696. });
  2697. modelBuilder.Entity<MerchantClass>(entity =>
  2698. {
  2699. entity.Property(e => e.Id).HasColumnType("int(11)");
  2700. entity.Property(e => e.ColName)
  2701. .HasColumnType("varchar(50)")
  2702. .HasCharSet("utf8")
  2703. .HasCollation("utf8_general_ci");
  2704. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2705. entity.Property(e => e.CreateMan)
  2706. .HasColumnType("varchar(50)")
  2707. .HasCharSet("utf8")
  2708. .HasCollation("utf8_general_ci");
  2709. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2710. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2711. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2712. entity.Property(e => e.SeoDescription)
  2713. .HasColumnType("varchar(500)")
  2714. .HasCharSet("utf8")
  2715. .HasCollation("utf8_general_ci");
  2716. entity.Property(e => e.SeoKeyword)
  2717. .HasColumnType("varchar(200)")
  2718. .HasCharSet("utf8")
  2719. .HasCollation("utf8_general_ci");
  2720. entity.Property(e => e.SeoTitle)
  2721. .HasColumnType("varchar(100)")
  2722. .HasCharSet("utf8")
  2723. .HasCollation("utf8_general_ci");
  2724. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2725. entity.Property(e => e.Status).HasColumnType("int(11)");
  2726. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2727. entity.Property(e => e.UpdateMan)
  2728. .HasColumnType("varchar(50)")
  2729. .HasCharSet("utf8")
  2730. .HasCollation("utf8_general_ci");
  2731. entity.Property(e => e.Version).HasColumnType("int(11)");
  2732. });
  2733. modelBuilder.Entity<MerchantCol>(entity =>
  2734. {
  2735. entity.Property(e => e.Id).HasColumnType("int(11)");
  2736. entity.Property(e => e.ColDetail)
  2737. .HasColumnType("varchar(50)")
  2738. .HasCharSet("utf8")
  2739. .HasCollation("utf8_general_ci");
  2740. entity.Property(e => e.ColEnName)
  2741. .HasColumnType("varchar(50)")
  2742. .HasCharSet("utf8")
  2743. .HasCollation("utf8_general_ci");
  2744. entity.Property(e => e.ColId)
  2745. .HasColumnType("varchar(30)")
  2746. .HasCharSet("utf8")
  2747. .HasCollation("utf8_general_ci");
  2748. entity.Property(e => e.ColName)
  2749. .HasColumnType("varchar(50)")
  2750. .HasCharSet("utf8")
  2751. .HasCollation("utf8_general_ci");
  2752. entity.Property(e => e.ColPicPath)
  2753. .HasColumnType("varchar(200)")
  2754. .HasCharSet("utf8")
  2755. .HasCollation("utf8_general_ci");
  2756. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2757. entity.Property(e => e.CreateMan)
  2758. .HasColumnType("varchar(50)")
  2759. .HasCharSet("utf8")
  2760. .HasCollation("utf8_general_ci");
  2761. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2762. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2763. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2764. entity.Property(e => e.Recommend)
  2765. .HasColumnType("bit(1)")
  2766. .HasDefaultValueSql("b'0'");
  2767. entity.Property(e => e.SeoDescription)
  2768. .HasColumnType("varchar(500)")
  2769. .HasCharSet("utf8")
  2770. .HasCollation("utf8_general_ci");
  2771. entity.Property(e => e.SeoKeyword)
  2772. .HasColumnType("varchar(200)")
  2773. .HasCharSet("utf8")
  2774. .HasCollation("utf8_general_ci");
  2775. entity.Property(e => e.SeoTitle)
  2776. .HasColumnType("varchar(100)")
  2777. .HasCharSet("utf8")
  2778. .HasCollation("utf8_general_ci");
  2779. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2780. entity.Property(e => e.Status).HasColumnType("int(11)");
  2781. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2782. entity.Property(e => e.UpdateMan)
  2783. .HasColumnType("varchar(50)")
  2784. .HasCharSet("utf8")
  2785. .HasCollation("utf8_general_ci");
  2786. entity.Property(e => e.Version).HasColumnType("int(11)");
  2787. });
  2788. modelBuilder.Entity<MerchantComment>(entity =>
  2789. {
  2790. entity.Property(e => e.Id).HasColumnType("int(11)");
  2791. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2792. entity.Property(e => e.CreateMan)
  2793. .HasColumnType("varchar(50)")
  2794. .HasCharSet("utf8")
  2795. .HasCollation("utf8_general_ci");
  2796. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2797. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  2798. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2799. entity.Property(e => e.SeoDescription)
  2800. .HasColumnType("varchar(500)")
  2801. .HasCharSet("utf8")
  2802. .HasCollation("utf8_general_ci");
  2803. entity.Property(e => e.SeoKeyword)
  2804. .HasColumnType("varchar(200)")
  2805. .HasCharSet("utf8")
  2806. .HasCollation("utf8_general_ci");
  2807. entity.Property(e => e.SeoTitle)
  2808. .HasColumnType("varchar(100)")
  2809. .HasCharSet("utf8")
  2810. .HasCollation("utf8_general_ci");
  2811. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2812. entity.Property(e => e.StarNum1).HasColumnType("int(11)");
  2813. entity.Property(e => e.StarNum2).HasColumnType("int(11)");
  2814. entity.Property(e => e.StarNum3).HasColumnType("int(11)");
  2815. entity.Property(e => e.Status).HasColumnType("int(11)");
  2816. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2817. entity.Property(e => e.UpdateMan)
  2818. .HasColumnType("varchar(50)")
  2819. .HasCharSet("utf8")
  2820. .HasCollation("utf8_general_ci");
  2821. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2822. entity.Property(e => e.Version).HasColumnType("int(11)");
  2823. });
  2824. modelBuilder.Entity<MerchantForCode>(entity =>
  2825. {
  2826. entity.HasKey(e => e.Code)
  2827. .HasName("PRIMARY");
  2828. entity.Property(e => e.Code)
  2829. .HasColumnType("varchar(30)")
  2830. .HasCharSet("utf8")
  2831. .HasCollation("utf8_general_ci");
  2832. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2833. });
  2834. modelBuilder.Entity<MerchantForMobile>(entity =>
  2835. {
  2836. entity.HasKey(e => e.Mobile)
  2837. .HasName("PRIMARY");
  2838. entity.Property(e => e.Mobile)
  2839. .HasColumnType("varchar(11)")
  2840. .HasCharSet("utf8")
  2841. .HasCollation("utf8_general_ci");
  2842. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2843. });
  2844. modelBuilder.Entity<MerchantForName>(entity =>
  2845. {
  2846. entity.HasKey(e => e.Name)
  2847. .HasName("PRIMARY");
  2848. entity.Property(e => e.Name)
  2849. .HasColumnType("varchar(30)")
  2850. .HasCharSet("utf8")
  2851. .HasCollation("utf8_general_ci");
  2852. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2853. });
  2854. modelBuilder.Entity<MerchantInfo>(entity =>
  2855. {
  2856. entity.Property(e => e.Id).HasColumnType("int(11)");
  2857. entity.Property(e => e.ActivationDate).HasColumnType("datetime");
  2858. entity.Property(e => e.ActivationStatus).HasColumnType("int(11)");
  2859. entity.Property(e => e.Address)
  2860. .HasColumnType("varchar(100)")
  2861. .HasCharSet("utf8")
  2862. .HasCollation("utf8_general_ci");
  2863. entity.Property(e => e.Areas)
  2864. .HasColumnType("varchar(50)")
  2865. .HasCharSet("utf8")
  2866. .HasCollation("utf8_general_ci");
  2867. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2868. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  2869. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2870. entity.Property(e => e.CreateMan)
  2871. .HasColumnType("varchar(50)")
  2872. .HasCharSet("utf8")
  2873. .HasCollation("utf8_general_ci");
  2874. entity.Property(e => e.IsAuth)
  2875. .HasColumnType("bit(1)")
  2876. .HasDefaultValueSql("b'0'");
  2877. entity.Property(e => e.LastAddConsumerDate).HasColumnType("datetime");
  2878. entity.Property(e => e.LastConsumeDate).HasColumnType("datetime");
  2879. entity.Property(e => e.LoginPwd)
  2880. .HasColumnType("varchar(32)")
  2881. .HasCharSet("utf8")
  2882. .HasCollation("utf8_general_ci");
  2883. entity.Property(e => e.Logo)
  2884. .HasColumnType("varchar(200)")
  2885. .HasCharSet("utf8")
  2886. .HasCollation("utf8_general_ci");
  2887. entity.Property(e => e.Mobile)
  2888. .HasColumnType("varchar(11)")
  2889. .HasCharSet("utf8")
  2890. .HasCollation("utf8_general_ci");
  2891. entity.Property(e => e.Name)
  2892. .HasColumnType("varchar(50)")
  2893. .HasCharSet("utf8")
  2894. .HasCollation("utf8_general_ci");
  2895. entity.Property(e => e.ParentUserNav)
  2896. .HasColumnType("varchar(500)")
  2897. .HasCharSet("utf8")
  2898. .HasCollation("utf8_general_ci");
  2899. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2900. entity.Property(e => e.SeoDescription)
  2901. .HasColumnType("varchar(500)")
  2902. .HasCharSet("utf8")
  2903. .HasCollation("utf8_general_ci");
  2904. entity.Property(e => e.SeoKeyword)
  2905. .HasColumnType("varchar(200)")
  2906. .HasCharSet("utf8")
  2907. .HasCollation("utf8_general_ci");
  2908. entity.Property(e => e.SeoTitle)
  2909. .HasColumnType("varchar(100)")
  2910. .HasCharSet("utf8")
  2911. .HasCollation("utf8_general_ci");
  2912. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2913. entity.Property(e => e.Status).HasColumnType("int(11)");
  2914. entity.Property(e => e.TotalActual).HasColumnType("decimal(18,2)");
  2915. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  2916. entity.Property(e => e.TotalConsumeCount).HasColumnType("int(11)");
  2917. entity.Property(e => e.TotalCustomer).HasColumnType("int(11)");
  2918. entity.Property(e => e.TotalOrder).HasColumnType("int(11)");
  2919. entity.Property(e => e.TotalUser).HasColumnType("int(11)");
  2920. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2921. entity.Property(e => e.UpdateMan)
  2922. .HasColumnType("varchar(50)")
  2923. .HasCharSet("utf8")
  2924. .HasCollation("utf8_general_ci");
  2925. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2926. entity.Property(e => e.Version).HasColumnType("int(11)");
  2927. });
  2928. modelBuilder.Entity<MerchantParamSet>(entity =>
  2929. {
  2930. entity.Property(e => e.Id).HasColumnType("int(11)");
  2931. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2932. entity.Property(e => e.CreateMan)
  2933. .HasColumnType("varchar(50)")
  2934. .HasCharSet("utf8")
  2935. .HasCollation("utf8_general_ci");
  2936. entity.Property(e => e.DiviPercent).HasColumnType("decimal(18,2)");
  2937. entity.Property(e => e.DiviPersons).HasColumnType("int(11)");
  2938. entity.Property(e => e.GetPercent).HasColumnType("decimal(18,2)");
  2939. entity.Property(e => e.IsAll).HasColumnType("int(11)");
  2940. entity.Property(e => e.MinPayMoney).HasColumnType("decimal(18,2)");
  2941. entity.Property(e => e.ProfitDays).HasColumnType("int(11)");
  2942. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2943. entity.Property(e => e.SeoDescription)
  2944. .HasColumnType("varchar(500)")
  2945. .HasCharSet("utf8")
  2946. .HasCollation("utf8_general_ci");
  2947. entity.Property(e => e.SeoKeyword)
  2948. .HasColumnType("varchar(200)")
  2949. .HasCharSet("utf8")
  2950. .HasCollation("utf8_general_ci");
  2951. entity.Property(e => e.SeoTitle)
  2952. .HasColumnType("varchar(100)")
  2953. .HasCharSet("utf8")
  2954. .HasCollation("utf8_general_ci");
  2955. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2956. entity.Property(e => e.Status).HasColumnType("int(11)");
  2957. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2958. entity.Property(e => e.UpdateMan)
  2959. .HasColumnType("varchar(50)")
  2960. .HasCharSet("utf8")
  2961. .HasCollation("utf8_general_ci");
  2962. entity.Property(e => e.Version).HasColumnType("int(11)");
  2963. });
  2964. modelBuilder.Entity<MerchantQrCode>(entity =>
  2965. {
  2966. entity.Property(e => e.Id).HasColumnType("int(11)");
  2967. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2968. entity.Property(e => e.MachineId).HasColumnType("int(11)");
  2969. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2970. entity.Property(e => e.QrCodeContent)
  2971. .HasColumnType("varchar(500)")
  2972. .HasCharSet("utf8")
  2973. .HasCollation("utf8_general_ci");
  2974. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2975. entity.Property(e => e.SeoDescription)
  2976. .HasColumnType("varchar(500)")
  2977. .HasCharSet("utf8")
  2978. .HasCollation("utf8_general_ci");
  2979. entity.Property(e => e.SeoKeyword)
  2980. .HasColumnType("varchar(200)")
  2981. .HasCharSet("utf8")
  2982. .HasCollation("utf8_general_ci");
  2983. entity.Property(e => e.SeoTitle)
  2984. .HasColumnType("varchar(100)")
  2985. .HasCharSet("utf8")
  2986. .HasCollation("utf8_general_ci");
  2987. entity.Property(e => e.SnNo)
  2988. .HasColumnType("varchar(50)")
  2989. .HasCharSet("utf8")
  2990. .HasCollation("utf8_general_ci");
  2991. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2992. entity.Property(e => e.Status).HasColumnType("int(11)");
  2993. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2994. });
  2995. modelBuilder.Entity<MerchantRebateDetail>(entity =>
  2996. {
  2997. entity.Property(e => e.Id).HasColumnType("int(11)");
  2998. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2999. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3000. entity.Property(e => e.CreateMan)
  3001. .HasColumnType("varchar(50)")
  3002. .HasCharSet("utf8")
  3003. .HasCollation("utf8_general_ci");
  3004. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3005. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3006. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3007. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3008. entity.Property(e => e.MerNo)
  3009. .HasColumnType("varchar(32)")
  3010. .HasCharSet("utf8")
  3011. .HasCollation("utf8_general_ci");
  3012. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  3013. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  3014. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3015. entity.Property(e => e.MmpUserName)
  3016. .HasColumnType("varchar(32)")
  3017. .HasCharSet("utf8")
  3018. .HasCollation("utf8_general_ci");
  3019. entity.Property(e => e.MmpUserNo)
  3020. .HasColumnType("varchar(32)")
  3021. .HasCharSet("utf8")
  3022. .HasCollation("utf8_general_ci");
  3023. entity.Property(e => e.ProductName)
  3024. .HasColumnType("varchar(32)")
  3025. .HasCharSet("utf8")
  3026. .HasCollation("utf8_general_ci");
  3027. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3028. entity.Property(e => e.Remark)
  3029. .HasColumnType("varchar(64)")
  3030. .HasCharSet("utf8")
  3031. .HasCollation("utf8_general_ci");
  3032. entity.Property(e => e.RewardDesc)
  3033. .HasColumnType("varchar(128)")
  3034. .HasCharSet("utf8")
  3035. .HasCollation("utf8_general_ci");
  3036. entity.Property(e => e.SeoDescription)
  3037. .HasColumnType("varchar(500)")
  3038. .HasCharSet("utf8")
  3039. .HasCollation("utf8_general_ci");
  3040. entity.Property(e => e.SeoKeyword)
  3041. .HasColumnType("varchar(200)")
  3042. .HasCharSet("utf8")
  3043. .HasCollation("utf8_general_ci");
  3044. entity.Property(e => e.SeoTitle)
  3045. .HasColumnType("varchar(100)")
  3046. .HasCharSet("utf8")
  3047. .HasCollation("utf8_general_ci");
  3048. entity.Property(e => e.SnNo)
  3049. .HasColumnType("varchar(32)")
  3050. .HasCharSet("utf8")
  3051. .HasCollation("utf8_general_ci");
  3052. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3053. entity.Property(e => e.Status).HasColumnType("int(11)");
  3054. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  3055. entity.Property(e => e.TradeDate)
  3056. .HasColumnType("varchar(8)")
  3057. .HasCharSet("utf8")
  3058. .HasCollation("utf8_general_ci");
  3059. entity.Property(e => e.TradeMonth)
  3060. .HasColumnType("varchar(6)")
  3061. .HasCharSet("utf8")
  3062. .HasCollation("utf8_general_ci");
  3063. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3064. entity.Property(e => e.UpdateMan)
  3065. .HasColumnType("varchar(50)")
  3066. .HasCharSet("utf8")
  3067. .HasCollation("utf8_general_ci");
  3068. entity.Property(e => e.Version).HasColumnType("int(11)");
  3069. });
  3070. modelBuilder.Entity<Merchants>(entity =>
  3071. {
  3072. entity.Property(e => e.Id).HasColumnType("int(11)");
  3073. entity.Property(e => e.Address)
  3074. .HasColumnType("varchar(50)")
  3075. .HasCharSet("utf8")
  3076. .HasCollation("utf8_general_ci");
  3077. entity.Property(e => e.Areas)
  3078. .HasColumnType("varchar(30)")
  3079. .HasCharSet("utf8")
  3080. .HasCollation("utf8_general_ci");
  3081. entity.Property(e => e.BusinessLicense)
  3082. .HasColumnType("varchar(200)")
  3083. .HasCharSet("utf8")
  3084. .HasCollation("utf8_general_ci");
  3085. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  3086. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3087. entity.Property(e => e.CreateMan)
  3088. .HasColumnType("varchar(50)")
  3089. .HasCharSet("utf8")
  3090. .HasCollation("utf8_general_ci");
  3091. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  3092. entity.Property(e => e.IsAuth)
  3093. .HasColumnType("bit(1)")
  3094. .HasDefaultValueSql("b'0'");
  3095. entity.Property(e => e.IsRecommend)
  3096. .HasColumnType("bit(1)")
  3097. .HasDefaultValueSql("b'0'");
  3098. entity.Property(e => e.LoginPwd)
  3099. .HasColumnType("varchar(32)")
  3100. .HasCharSet("utf8")
  3101. .HasCollation("utf8_general_ci");
  3102. entity.Property(e => e.Logo)
  3103. .HasColumnType("varchar(200)")
  3104. .HasCharSet("utf8")
  3105. .HasCollation("utf8_general_ci");
  3106. entity.Property(e => e.Name)
  3107. .HasColumnType("varchar(50)")
  3108. .HasCharSet("utf8")
  3109. .HasCollation("utf8_general_ci");
  3110. entity.Property(e => e.PayPwd)
  3111. .HasColumnType("varchar(32)")
  3112. .HasCharSet("utf8")
  3113. .HasCollation("utf8_general_ci");
  3114. entity.Property(e => e.Phone)
  3115. .HasColumnType("varchar(30)")
  3116. .HasCharSet("utf8")
  3117. .HasCollation("utf8_general_ci");
  3118. entity.Property(e => e.Principal)
  3119. .HasColumnType("varchar(30)")
  3120. .HasCharSet("utf8")
  3121. .HasCollation("utf8_general_ci");
  3122. entity.Property(e => e.Province)
  3123. .HasColumnType("varchar(20)")
  3124. .HasCharSet("utf8")
  3125. .HasCollation("utf8_general_ci");
  3126. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3127. entity.Property(e => e.SeoDescription)
  3128. .HasColumnType("varchar(500)")
  3129. .HasCharSet("utf8")
  3130. .HasCollation("utf8_general_ci");
  3131. entity.Property(e => e.SeoKeyword)
  3132. .HasColumnType("varchar(200)")
  3133. .HasCharSet("utf8")
  3134. .HasCollation("utf8_general_ci");
  3135. entity.Property(e => e.SeoTitle)
  3136. .HasColumnType("varchar(100)")
  3137. .HasCharSet("utf8")
  3138. .HasCollation("utf8_general_ci");
  3139. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3140. entity.Property(e => e.StarNum1).HasColumnType("decimal(18,2)");
  3141. entity.Property(e => e.StarNum2).HasColumnType("decimal(18,2)");
  3142. entity.Property(e => e.StarNum3).HasColumnType("decimal(18,2)");
  3143. entity.Property(e => e.Status).HasColumnType("int(11)");
  3144. entity.Property(e => e.Title)
  3145. .HasColumnType("varchar(50)")
  3146. .HasCharSet("utf8")
  3147. .HasCollation("utf8_general_ci");
  3148. entity.Property(e => e.Title2)
  3149. .HasColumnType("varchar(50)")
  3150. .HasCharSet("utf8")
  3151. .HasCollation("utf8_general_ci");
  3152. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3153. entity.Property(e => e.UpdateMan)
  3154. .HasColumnType("varchar(50)")
  3155. .HasCharSet("utf8")
  3156. .HasCollation("utf8_general_ci");
  3157. entity.Property(e => e.UserName)
  3158. .HasColumnType("varchar(50)")
  3159. .HasCharSet("utf8")
  3160. .HasCollation("utf8_general_ci");
  3161. entity.Property(e => e.Version).HasColumnType("int(11)");
  3162. });
  3163. modelBuilder.Entity<MobileCodeCheck>(entity =>
  3164. {
  3165. entity.HasKey(e => e.Mobile)
  3166. .HasName("PRIMARY");
  3167. entity.Property(e => e.Mobile)
  3168. .HasColumnType("varchar(11)")
  3169. .HasCharSet("utf8")
  3170. .HasCollation("utf8_general_ci");
  3171. entity.Property(e => e.CheckCode)
  3172. .HasColumnType("varchar(6)")
  3173. .HasCharSet("utf8")
  3174. .HasCollation("utf8_general_ci");
  3175. entity.Property(e => e.CheckCodeTime).HasColumnType("datetime");
  3176. entity.Property(e => e.CheckNo)
  3177. .HasColumnType("varchar(6)")
  3178. .HasCharSet("utf8")
  3179. .HasCollation("utf8_general_ci");
  3180. });
  3181. modelBuilder.Entity<MsgBlackList>(entity =>
  3182. {
  3183. entity.Property(e => e.Id).HasColumnType("int(11)");
  3184. entity.Property(e => e.ColId)
  3185. .HasColumnType("varchar(30)")
  3186. .HasCharSet("utf8")
  3187. .HasCollation("utf8_general_ci");
  3188. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3189. entity.Property(e => e.CreateMan)
  3190. .HasColumnType("varchar(50)")
  3191. .HasCharSet("utf8")
  3192. .HasCollation("utf8_general_ci");
  3193. entity.Property(e => e.Extend)
  3194. .HasColumnType("varchar(2000)")
  3195. .HasCharSet("utf8")
  3196. .HasCollation("utf8_general_ci");
  3197. entity.Property(e => e.Ip)
  3198. .HasColumnType("varchar(64)")
  3199. .HasCharSet("utf8")
  3200. .HasCollation("utf8_general_ci");
  3201. entity.Property(e => e.Mobile)
  3202. .HasColumnType("varchar(11)")
  3203. .HasCharSet("utf8")
  3204. .HasCollation("utf8_general_ci");
  3205. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3206. entity.Property(e => e.Reason)
  3207. .HasColumnType("varchar(512)")
  3208. .HasCharSet("utf8")
  3209. .HasCollation("utf8_general_ci");
  3210. entity.Property(e => e.Remark)
  3211. .HasColumnType("varchar(64)")
  3212. .HasCharSet("utf8")
  3213. .HasCollation("utf8_general_ci");
  3214. entity.Property(e => e.SeoDescription)
  3215. .HasColumnType("varchar(500)")
  3216. .HasCharSet("utf8")
  3217. .HasCollation("utf8_general_ci");
  3218. entity.Property(e => e.SeoKeyword)
  3219. .HasColumnType("varchar(200)")
  3220. .HasCharSet("utf8")
  3221. .HasCollation("utf8_general_ci");
  3222. entity.Property(e => e.SeoTitle)
  3223. .HasColumnType("varchar(100)")
  3224. .HasCharSet("utf8")
  3225. .HasCollation("utf8_general_ci");
  3226. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3227. entity.Property(e => e.Status).HasColumnType("int(11)");
  3228. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3229. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3230. entity.Property(e => e.UpdateMan)
  3231. .HasColumnType("varchar(50)")
  3232. .HasCharSet("utf8")
  3233. .HasCollation("utf8_general_ci");
  3234. entity.Property(e => e.Version).HasColumnType("int(11)");
  3235. });
  3236. modelBuilder.Entity<MsgPersonal>(entity =>
  3237. {
  3238. entity.Property(e => e.Id).HasColumnType("int(11)");
  3239. entity.Property(e => e.BgPic)
  3240. .HasColumnType("varchar(200)")
  3241. .HasCharSet("utf8")
  3242. .HasCollation("utf8_general_ci");
  3243. entity.Property(e => e.Content)
  3244. .HasColumnType("longtext")
  3245. .HasCharSet("utf8")
  3246. .HasCollation("utf8_general_ci");
  3247. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3248. entity.Property(e => e.CreateMan)
  3249. .HasColumnType("varchar(50)")
  3250. .HasCharSet("utf8")
  3251. .HasCollation("utf8_general_ci");
  3252. entity.Property(e => e.ExtendColumn)
  3253. .HasColumnType("mediumtext")
  3254. .HasCharSet("utf8")
  3255. .HasCollation("utf8_general_ci");
  3256. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3257. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3258. entity.Property(e => e.PushParam)
  3259. .HasColumnType("varchar(255)")
  3260. .HasCharSet("utf8")
  3261. .HasCollation("utf8_general_ci");
  3262. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3263. entity.Property(e => e.ReadFlag)
  3264. .HasColumnType("bit(1)")
  3265. .HasDefaultValueSql("b'0'");
  3266. entity.Property(e => e.Remark)
  3267. .HasColumnType("varchar(255)")
  3268. .HasCharSet("utf8")
  3269. .HasCollation("utf8_general_ci");
  3270. entity.Property(e => e.SeoDescription)
  3271. .HasColumnType("varchar(500)")
  3272. .HasCharSet("utf8")
  3273. .HasCollation("utf8_general_ci");
  3274. entity.Property(e => e.SeoKeyword)
  3275. .HasColumnType("varchar(200)")
  3276. .HasCharSet("utf8")
  3277. .HasCollation("utf8_general_ci");
  3278. entity.Property(e => e.SeoTitle)
  3279. .HasColumnType("varchar(100)")
  3280. .HasCharSet("utf8")
  3281. .HasCollation("utf8_general_ci");
  3282. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3283. entity.Property(e => e.Status).HasColumnType("int(11)");
  3284. entity.Property(e => e.Summary)
  3285. .HasColumnType("varchar(500)")
  3286. .HasCharSet("utf8")
  3287. .HasCollation("utf8_general_ci");
  3288. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3289. entity.Property(e => e.Title)
  3290. .HasColumnType("varchar(50)")
  3291. .HasCharSet("utf8")
  3292. .HasCollation("utf8_general_ci");
  3293. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3294. entity.Property(e => e.UpdateMan)
  3295. .HasColumnType("varchar(50)")
  3296. .HasCharSet("utf8")
  3297. .HasCollation("utf8_general_ci");
  3298. entity.Property(e => e.Url)
  3299. .HasColumnType("varchar(500)")
  3300. .HasCharSet("utf8")
  3301. .HasCollation("utf8_general_ci");
  3302. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3303. entity.Property(e => e.Version).HasColumnType("int(11)");
  3304. });
  3305. modelBuilder.Entity<MsgPlacard>(entity =>
  3306. {
  3307. entity.Property(e => e.Id).HasColumnType("int(11)");
  3308. entity.Property(e => e.BgPic)
  3309. .HasColumnType("varchar(200)")
  3310. .HasCharSet("utf8")
  3311. .HasCollation("utf8_general_ci");
  3312. entity.Property(e => e.Content)
  3313. .HasColumnType("longtext")
  3314. .HasCharSet("utf8")
  3315. .HasCollation("utf8_general_ci");
  3316. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3317. entity.Property(e => e.CreateMan)
  3318. .HasColumnType("varchar(50)")
  3319. .HasCharSet("utf8")
  3320. .HasCollation("utf8_general_ci");
  3321. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  3322. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  3323. entity.Property(e => e.ExtendColumn)
  3324. .HasColumnType("mediumtext")
  3325. .HasCharSet("utf8")
  3326. .HasCollation("utf8_general_ci");
  3327. entity.Property(e => e.IsTop)
  3328. .HasColumnType("bit(1)")
  3329. .HasDefaultValueSql("b'0'");
  3330. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3331. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3332. entity.Property(e => e.PushParam)
  3333. .HasColumnType("varchar(255)")
  3334. .HasCharSet("utf8")
  3335. .HasCollation("utf8_general_ci");
  3336. entity.Property(e => e.PushTime).HasColumnType("datetime");
  3337. entity.Property(e => e.PushType).HasColumnType("int(11)");
  3338. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3339. entity.Property(e => e.Remark)
  3340. .HasColumnType("varchar(255)")
  3341. .HasCharSet("utf8")
  3342. .HasCollation("utf8_general_ci");
  3343. entity.Property(e => e.SeoDescription)
  3344. .HasColumnType("varchar(500)")
  3345. .HasCharSet("utf8")
  3346. .HasCollation("utf8_general_ci");
  3347. entity.Property(e => e.SeoKeyword)
  3348. .HasColumnType("varchar(200)")
  3349. .HasCharSet("utf8")
  3350. .HasCollation("utf8_general_ci");
  3351. entity.Property(e => e.SeoTitle)
  3352. .HasColumnType("varchar(100)")
  3353. .HasCharSet("utf8")
  3354. .HasCollation("utf8_general_ci");
  3355. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  3356. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3357. entity.Property(e => e.Status).HasColumnType("int(11)");
  3358. entity.Property(e => e.Summary)
  3359. .HasColumnType("varchar(500)")
  3360. .HasCharSet("utf8")
  3361. .HasCollation("utf8_general_ci");
  3362. entity.Property(e => e.Title)
  3363. .HasColumnType("varchar(50)")
  3364. .HasCharSet("utf8")
  3365. .HasCollation("utf8_general_ci");
  3366. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3367. entity.Property(e => e.UpdateMan)
  3368. .HasColumnType("varchar(50)")
  3369. .HasCharSet("utf8")
  3370. .HasCollation("utf8_general_ci");
  3371. entity.Property(e => e.Url)
  3372. .HasColumnType("varchar(500)")
  3373. .HasCharSet("utf8")
  3374. .HasCollation("utf8_general_ci");
  3375. entity.Property(e => e.Version).HasColumnType("int(11)");
  3376. });
  3377. modelBuilder.Entity<MsgPlacardRead>(entity =>
  3378. {
  3379. entity.Property(e => e.Id).HasColumnType("int(11)");
  3380. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3381. entity.Property(e => e.CreateMan)
  3382. .HasColumnType("varchar(50)")
  3383. .HasCharSet("utf8")
  3384. .HasCollation("utf8_general_ci");
  3385. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  3386. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3387. entity.Property(e => e.ReadFlag)
  3388. .HasColumnType("bit(1)")
  3389. .HasDefaultValueSql("b'0'");
  3390. entity.Property(e => e.Remark)
  3391. .HasColumnType("varchar(255)")
  3392. .HasCharSet("utf8")
  3393. .HasCollation("utf8_general_ci");
  3394. entity.Property(e => e.SeoDescription)
  3395. .HasColumnType("varchar(500)")
  3396. .HasCharSet("utf8")
  3397. .HasCollation("utf8_general_ci");
  3398. entity.Property(e => e.SeoKeyword)
  3399. .HasColumnType("varchar(200)")
  3400. .HasCharSet("utf8")
  3401. .HasCollation("utf8_general_ci");
  3402. entity.Property(e => e.SeoTitle)
  3403. .HasColumnType("varchar(100)")
  3404. .HasCharSet("utf8")
  3405. .HasCollation("utf8_general_ci");
  3406. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3407. entity.Property(e => e.Status).HasColumnType("int(11)");
  3408. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3409. entity.Property(e => e.UpdateMan)
  3410. .HasColumnType("varchar(50)")
  3411. .HasCharSet("utf8")
  3412. .HasCollation("utf8_general_ci");
  3413. entity.Property(e => e.UserId)
  3414. .HasColumnType("varchar(64)")
  3415. .HasCharSet("utf8")
  3416. .HasCollation("utf8_general_ci");
  3417. entity.Property(e => e.Version).HasColumnType("int(11)");
  3418. });
  3419. modelBuilder.Entity<MsgPush>(entity =>
  3420. {
  3421. entity.Property(e => e.Id).HasColumnType("int(11)");
  3422. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  3423. entity.Property(e => e.ClientType)
  3424. .HasColumnType("varchar(20)")
  3425. .HasCharSet("utf8")
  3426. .HasCollation("utf8_general_ci");
  3427. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3428. entity.Property(e => e.CreateMan)
  3429. .HasColumnType("varchar(50)")
  3430. .HasCharSet("utf8")
  3431. .HasCollation("utf8_general_ci");
  3432. entity.Property(e => e.Details)
  3433. .HasColumnType("varchar(200)")
  3434. .HasCharSet("utf8")
  3435. .HasCollation("utf8_general_ci");
  3436. entity.Property(e => e.Devices)
  3437. .HasColumnType("mediumtext")
  3438. .HasCharSet("utf8")
  3439. .HasCollation("utf8_general_ci");
  3440. entity.Property(e => e.IsSilent)
  3441. .HasColumnType("bit(1)")
  3442. .HasDefaultValueSql("b'0'");
  3443. entity.Property(e => e.MessageId)
  3444. .HasColumnType("varchar(50)")
  3445. .HasCharSet("utf8")
  3446. .HasCollation("utf8_general_ci");
  3447. entity.Property(e => e.Mobiles)
  3448. .HasColumnType("mediumtext")
  3449. .HasCharSet("utf8")
  3450. .HasCollation("utf8_general_ci");
  3451. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3452. entity.Property(e => e.SeoDescription)
  3453. .HasColumnType("varchar(500)")
  3454. .HasCharSet("utf8")
  3455. .HasCollation("utf8_general_ci");
  3456. entity.Property(e => e.SeoKeyword)
  3457. .HasColumnType("varchar(200)")
  3458. .HasCharSet("utf8")
  3459. .HasCollation("utf8_general_ci");
  3460. entity.Property(e => e.SeoTitle)
  3461. .HasColumnType("varchar(100)")
  3462. .HasCharSet("utf8")
  3463. .HasCollation("utf8_general_ci");
  3464. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3465. entity.Property(e => e.Status).HasColumnType("int(11)");
  3466. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3467. entity.Property(e => e.Title)
  3468. .HasColumnType("varchar(50)")
  3469. .HasCharSet("utf8")
  3470. .HasCollation("utf8_general_ci");
  3471. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3472. entity.Property(e => e.UpdateMan)
  3473. .HasColumnType("varchar(50)")
  3474. .HasCharSet("utf8")
  3475. .HasCollation("utf8_general_ci");
  3476. entity.Property(e => e.Url)
  3477. .HasColumnType("varchar(500)")
  3478. .HasCharSet("utf8")
  3479. .HasCollation("utf8_general_ci");
  3480. entity.Property(e => e.Version).HasColumnType("int(11)");
  3481. });
  3482. modelBuilder.Entity<MsgSms>(entity =>
  3483. {
  3484. entity.Property(e => e.Id).HasColumnType("int(11)");
  3485. entity.Property(e => e.Code).HasColumnType("int(11)");
  3486. entity.Property(e => e.ColId)
  3487. .HasColumnType("varchar(30)")
  3488. .HasCharSet("utf8")
  3489. .HasCollation("utf8_general_ci");
  3490. entity.Property(e => e.Content)
  3491. .HasColumnType("varchar(200)")
  3492. .HasCharSet("utf8")
  3493. .HasCollation("utf8_general_ci");
  3494. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3495. entity.Property(e => e.CreateMan)
  3496. .HasColumnType("varchar(50)")
  3497. .HasCharSet("utf8")
  3498. .HasCollation("utf8_general_ci");
  3499. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  3500. entity.Property(e => e.Ip)
  3501. .HasColumnType("varchar(15)")
  3502. .HasCharSet("utf8")
  3503. .HasCollation("utf8_general_ci");
  3504. entity.Property(e => e.Kind)
  3505. .HasColumnType("varchar(64)")
  3506. .HasCharSet("utf8")
  3507. .HasCollation("utf8_general_ci");
  3508. entity.Property(e => e.Mobile)
  3509. .HasColumnType("varchar(11)")
  3510. .HasCharSet("utf8")
  3511. .HasCollation("utf8_general_ci");
  3512. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3513. entity.Property(e => e.RespCode)
  3514. .HasColumnType("varchar(16)")
  3515. .HasCharSet("utf8")
  3516. .HasCollation("utf8_general_ci");
  3517. entity.Property(e => e.RespContent)
  3518. .HasColumnType("varchar(500)")
  3519. .HasCharSet("utf8")
  3520. .HasCollation("utf8_general_ci");
  3521. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  3522. entity.Property(e => e.SendTime).HasColumnType("datetime");
  3523. entity.Property(e => e.SendType).HasColumnType("int(11)");
  3524. entity.Property(e => e.SeoDescription)
  3525. .HasColumnType("varchar(500)")
  3526. .HasCharSet("utf8")
  3527. .HasCollation("utf8_general_ci");
  3528. entity.Property(e => e.SeoKeyword)
  3529. .HasColumnType("varchar(200)")
  3530. .HasCharSet("utf8")
  3531. .HasCollation("utf8_general_ci");
  3532. entity.Property(e => e.SeoTitle)
  3533. .HasColumnType("varchar(100)")
  3534. .HasCharSet("utf8")
  3535. .HasCollation("utf8_general_ci");
  3536. entity.Property(e => e.SignName)
  3537. .HasColumnType("varchar(10)")
  3538. .HasCharSet("utf8")
  3539. .HasCollation("utf8_general_ci");
  3540. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3541. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3542. entity.Property(e => e.Status).HasColumnType("int(11)");
  3543. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3544. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3545. entity.Property(e => e.UpdateMan)
  3546. .HasColumnType("varchar(50)")
  3547. .HasCharSet("utf8")
  3548. .HasCollation("utf8_general_ci");
  3549. entity.Property(e => e.VerifyCode)
  3550. .HasColumnType("varchar(6)")
  3551. .HasCharSet("utf8")
  3552. .HasCollation("utf8_general_ci");
  3553. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  3554. entity.Property(e => e.Version).HasColumnType("int(11)");
  3555. });
  3556. modelBuilder.Entity<MsgSmsSet>(entity =>
  3557. {
  3558. entity.Property(e => e.Id).HasColumnType("int(11)");
  3559. entity.Property(e => e.AuthPwd)
  3560. .HasColumnType("varchar(50)")
  3561. .HasCharSet("utf8")
  3562. .HasCollation("utf8_general_ci");
  3563. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3564. entity.Property(e => e.CreateMan)
  3565. .HasColumnType("varchar(50)")
  3566. .HasCharSet("utf8")
  3567. .HasCollation("utf8_general_ci");
  3568. entity.Property(e => e.Name)
  3569. .HasColumnType("varchar(50)")
  3570. .HasCharSet("utf8")
  3571. .HasCollation("utf8_general_ci");
  3572. entity.Property(e => e.Params)
  3573. .HasColumnType("varchar(200)")
  3574. .HasCharSet("utf8")
  3575. .HasCollation("utf8_general_ci");
  3576. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3577. entity.Property(e => e.ReqUrl)
  3578. .HasColumnType("varchar(200)")
  3579. .HasCharSet("utf8")
  3580. .HasCollation("utf8_general_ci");
  3581. entity.Property(e => e.SeoDescription)
  3582. .HasColumnType("varchar(500)")
  3583. .HasCharSet("utf8")
  3584. .HasCollation("utf8_general_ci");
  3585. entity.Property(e => e.SeoKeyword)
  3586. .HasColumnType("varchar(200)")
  3587. .HasCharSet("utf8")
  3588. .HasCollation("utf8_general_ci");
  3589. entity.Property(e => e.SeoTitle)
  3590. .HasColumnType("varchar(100)")
  3591. .HasCharSet("utf8")
  3592. .HasCollation("utf8_general_ci");
  3593. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3594. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3595. entity.Property(e => e.Status).HasColumnType("int(11)");
  3596. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3597. entity.Property(e => e.UpdateMan)
  3598. .HasColumnType("varchar(50)")
  3599. .HasCharSet("utf8")
  3600. .HasCollation("utf8_general_ci");
  3601. entity.Property(e => e.UserName)
  3602. .HasColumnType("varchar(50)")
  3603. .HasCharSet("utf8")
  3604. .HasCollation("utf8_general_ci");
  3605. entity.Property(e => e.Version).HasColumnType("int(11)");
  3606. });
  3607. modelBuilder.Entity<MsgTemplate>(entity =>
  3608. {
  3609. entity.Property(e => e.Id).HasColumnType("int(11)");
  3610. entity.Property(e => e.ColId)
  3611. .HasColumnType("varchar(30)")
  3612. .HasCharSet("utf8")
  3613. .HasCollation("utf8_general_ci");
  3614. entity.Property(e => e.Content)
  3615. .HasColumnType("varchar(200)")
  3616. .HasCharSet("utf8")
  3617. .HasCollation("utf8_general_ci");
  3618. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3619. entity.Property(e => e.CreateMan)
  3620. .HasColumnType("varchar(50)")
  3621. .HasCharSet("utf8")
  3622. .HasCollation("utf8_general_ci");
  3623. entity.Property(e => e.Extend)
  3624. .HasColumnType("varchar(2000)")
  3625. .HasCharSet("utf8")
  3626. .HasCollation("utf8_general_ci");
  3627. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3628. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3629. entity.Property(e => e.Remark)
  3630. .HasColumnType("varchar(64)")
  3631. .HasCharSet("utf8")
  3632. .HasCollation("utf8_general_ci");
  3633. entity.Property(e => e.SeoDescription)
  3634. .HasColumnType("varchar(500)")
  3635. .HasCharSet("utf8")
  3636. .HasCollation("utf8_general_ci");
  3637. entity.Property(e => e.SeoKeyword)
  3638. .HasColumnType("varchar(200)")
  3639. .HasCharSet("utf8")
  3640. .HasCollation("utf8_general_ci");
  3641. entity.Property(e => e.SeoTitle)
  3642. .HasColumnType("varchar(100)")
  3643. .HasCharSet("utf8")
  3644. .HasCollation("utf8_general_ci");
  3645. entity.Property(e => e.SignName)
  3646. .HasColumnType("varchar(10)")
  3647. .HasCharSet("utf8")
  3648. .HasCollation("utf8_general_ci");
  3649. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3650. entity.Property(e => e.Status).HasColumnType("int(11)");
  3651. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  3652. entity.Property(e => e.Title)
  3653. .HasColumnType("varchar(50)")
  3654. .HasCharSet("utf8")
  3655. .HasCollation("utf8_general_ci");
  3656. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3657. entity.Property(e => e.UpdateMan)
  3658. .HasColumnType("varchar(50)")
  3659. .HasCharSet("utf8")
  3660. .HasCollation("utf8_general_ci");
  3661. entity.Property(e => e.Version).HasColumnType("int(11)");
  3662. });
  3663. modelBuilder.Entity<OpenBankCityTable>(entity =>
  3664. {
  3665. entity.HasKey(e => e.CityName)
  3666. .HasName("PRIMARY");
  3667. entity.Property(e => e.CityName)
  3668. .HasColumnType("varchar(100)")
  3669. .HasCharSet("utf8")
  3670. .HasCollation("utf8_general_ci");
  3671. entity.Property(e => e.Code)
  3672. .HasColumnType("varchar(20)")
  3673. .HasCharSet("utf8")
  3674. .HasCollation("utf8_general_ci");
  3675. });
  3676. modelBuilder.Entity<OpenBankTable>(entity =>
  3677. {
  3678. entity.HasKey(e => e.BankName)
  3679. .HasName("PRIMARY");
  3680. entity.Property(e => e.BankName)
  3681. .HasColumnType("varchar(200)")
  3682. .HasCharSet("utf8")
  3683. .HasCollation("utf8_general_ci");
  3684. entity.Property(e => e.BankCode)
  3685. .HasColumnType("varchar(50)")
  3686. .HasCharSet("utf8")
  3687. .HasCollation("utf8_general_ci");
  3688. });
  3689. modelBuilder.Entity<OpenReward>(entity =>
  3690. {
  3691. entity.Property(e => e.Id).HasColumnType("int(11)");
  3692. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3693. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3694. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3695. entity.Property(e => e.CreateMan)
  3696. .HasColumnType("varchar(50)")
  3697. .HasCharSet("utf8")
  3698. .HasCollation("utf8_general_ci");
  3699. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3700. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3701. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3702. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3703. entity.Property(e => e.OpenRewardNo)
  3704. .HasColumnType("varchar(32)")
  3705. .HasCharSet("utf8")
  3706. .HasCollation("utf8_general_ci");
  3707. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3708. entity.Property(e => e.Remark)
  3709. .HasColumnType("varchar(128)")
  3710. .HasCharSet("utf8")
  3711. .HasCollation("utf8_general_ci");
  3712. entity.Property(e => e.RewardDesc)
  3713. .HasColumnType("varchar(128)")
  3714. .HasCharSet("utf8")
  3715. .HasCollation("utf8_general_ci");
  3716. entity.Property(e => e.RewardMerCount).HasColumnType("int(11)");
  3717. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3718. entity.Property(e => e.SeoDescription)
  3719. .HasColumnType("varchar(500)")
  3720. .HasCharSet("utf8")
  3721. .HasCollation("utf8_general_ci");
  3722. entity.Property(e => e.SeoKeyword)
  3723. .HasColumnType("varchar(200)")
  3724. .HasCharSet("utf8")
  3725. .HasCollation("utf8_general_ci");
  3726. entity.Property(e => e.SeoTitle)
  3727. .HasColumnType("varchar(100)")
  3728. .HasCharSet("utf8")
  3729. .HasCollation("utf8_general_ci");
  3730. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3731. entity.Property(e => e.Status).HasColumnType("int(11)");
  3732. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3733. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3734. entity.Property(e => e.TradeMonth)
  3735. .HasColumnType("varchar(6)")
  3736. .HasCharSet("utf8")
  3737. .HasCollation("utf8_general_ci");
  3738. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3739. entity.Property(e => e.UpdateMan)
  3740. .HasColumnType("varchar(50)")
  3741. .HasCharSet("utf8")
  3742. .HasCollation("utf8_general_ci");
  3743. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3744. entity.Property(e => e.Version).HasColumnType("int(11)");
  3745. });
  3746. modelBuilder.Entity<OpenRewardDetail>(entity =>
  3747. {
  3748. entity.Property(e => e.Id).HasColumnType("int(11)");
  3749. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3750. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3751. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3752. entity.Property(e => e.CreateMan)
  3753. .HasColumnType("varchar(50)")
  3754. .HasCharSet("utf8")
  3755. .HasCollation("utf8_general_ci");
  3756. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3757. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3758. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3759. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3760. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3761. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  3762. entity.Property(e => e.MerNo)
  3763. .HasColumnType("varchar(32)")
  3764. .HasCharSet("utf8")
  3765. .HasCollation("utf8_general_ci");
  3766. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3767. entity.Property(e => e.OpenDetailRec)
  3768. .HasColumnType("varchar(32)")
  3769. .HasCharSet("utf8")
  3770. .HasCollation("utf8_general_ci");
  3771. entity.Property(e => e.OpenRewardNo)
  3772. .HasColumnType("varchar(32)")
  3773. .HasCharSet("utf8")
  3774. .HasCollation("utf8_general_ci");
  3775. entity.Property(e => e.ProductName)
  3776. .HasColumnType("varchar(32)")
  3777. .HasCharSet("utf8")
  3778. .HasCollation("utf8_general_ci");
  3779. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3780. entity.Property(e => e.Remark)
  3781. .HasColumnType("varchar(128)")
  3782. .HasCharSet("utf8")
  3783. .HasCollation("utf8_general_ci");
  3784. entity.Property(e => e.RewardDesc)
  3785. .HasColumnType("varchar(128)")
  3786. .HasCharSet("utf8")
  3787. .HasCollation("utf8_general_ci");
  3788. entity.Property(e => e.RewardTips)
  3789. .HasColumnType("varchar(16)")
  3790. .HasCharSet("utf8")
  3791. .HasCollation("utf8_general_ci");
  3792. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3793. entity.Property(e => e.SeoDescription)
  3794. .HasColumnType("varchar(500)")
  3795. .HasCharSet("utf8")
  3796. .HasCollation("utf8_general_ci");
  3797. entity.Property(e => e.SeoKeyword)
  3798. .HasColumnType("varchar(200)")
  3799. .HasCharSet("utf8")
  3800. .HasCollation("utf8_general_ci");
  3801. entity.Property(e => e.SeoTitle)
  3802. .HasColumnType("varchar(100)")
  3803. .HasCharSet("utf8")
  3804. .HasCollation("utf8_general_ci");
  3805. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3806. entity.Property(e => e.SnNo)
  3807. .HasColumnType("varchar(32)")
  3808. .HasCharSet("utf8")
  3809. .HasCollation("utf8_general_ci");
  3810. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3811. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3812. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3813. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3814. entity.Property(e => e.Status).HasColumnType("int(11)");
  3815. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3816. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3817. entity.Property(e => e.TradeMonth)
  3818. .HasColumnType("varchar(6)")
  3819. .HasCharSet("utf8")
  3820. .HasCollation("utf8_general_ci");
  3821. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3822. entity.Property(e => e.UpdateMan)
  3823. .HasColumnType("varchar(50)")
  3824. .HasCharSet("utf8")
  3825. .HasCollation("utf8_general_ci");
  3826. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3827. entity.Property(e => e.Version).HasColumnType("int(11)");
  3828. });
  3829. modelBuilder.Entity<OpenSnSnapshot>(entity =>
  3830. {
  3831. entity.Property(e => e.Id).HasColumnType("int(11)");
  3832. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3833. entity.Property(e => e.BuySnNum).HasColumnType("int(11)");
  3834. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3835. entity.Property(e => e.CreateMan)
  3836. .HasColumnType("varchar(50)")
  3837. .HasCharSet("utf8")
  3838. .HasCollation("utf8_general_ci");
  3839. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3840. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3841. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3842. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3843. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3844. entity.Property(e => e.FailReason)
  3845. .HasColumnType("varchar(128)")
  3846. .HasCharSet("utf8")
  3847. .HasCollation("utf8_general_ci");
  3848. entity.Property(e => e.MerNo)
  3849. .HasColumnType("varchar(32)")
  3850. .HasCharSet("utf8")
  3851. .HasCollation("utf8_general_ci");
  3852. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  3853. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3854. entity.Property(e => e.OpenDetailRec)
  3855. .HasColumnType("varchar(32)")
  3856. .HasCharSet("utf8")
  3857. .HasCollation("utf8_general_ci");
  3858. entity.Property(e => e.OpenRewardNo)
  3859. .HasColumnType("varchar(32)")
  3860. .HasCharSet("utf8")
  3861. .HasCollation("utf8_general_ci");
  3862. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3863. entity.Property(e => e.Remark)
  3864. .HasColumnType("varchar(128)")
  3865. .HasCharSet("utf8")
  3866. .HasCollation("utf8_general_ci");
  3867. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  3868. entity.Property(e => e.RewardDesc)
  3869. .HasColumnType("varchar(128)")
  3870. .HasCharSet("utf8")
  3871. .HasCollation("utf8_general_ci");
  3872. entity.Property(e => e.RewardTips)
  3873. .HasColumnType("varchar(16)")
  3874. .HasCharSet("utf8")
  3875. .HasCollation("utf8_general_ci");
  3876. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3877. entity.Property(e => e.SeoDescription)
  3878. .HasColumnType("varchar(500)")
  3879. .HasCharSet("utf8")
  3880. .HasCollation("utf8_general_ci");
  3881. entity.Property(e => e.SeoKeyword)
  3882. .HasColumnType("varchar(200)")
  3883. .HasCharSet("utf8")
  3884. .HasCollation("utf8_general_ci");
  3885. entity.Property(e => e.SeoTitle)
  3886. .HasColumnType("varchar(100)")
  3887. .HasCharSet("utf8")
  3888. .HasCollation("utf8_general_ci");
  3889. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3890. entity.Property(e => e.SnNo)
  3891. .HasColumnType("varchar(32)")
  3892. .HasCharSet("utf8")
  3893. .HasCollation("utf8_general_ci");
  3894. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3895. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3896. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3897. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3898. entity.Property(e => e.Status).HasColumnType("int(11)");
  3899. entity.Property(e => e.StdBuySnNum).HasColumnType("int(11)");
  3900. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3901. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3902. entity.Property(e => e.TradeMonth)
  3903. .HasColumnType("varchar(6)")
  3904. .HasCharSet("utf8")
  3905. .HasCollation("utf8_general_ci");
  3906. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3907. entity.Property(e => e.UpdateMan)
  3908. .HasColumnType("varchar(50)")
  3909. .HasCharSet("utf8")
  3910. .HasCollation("utf8_general_ci");
  3911. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3912. entity.Property(e => e.UserNav)
  3913. .HasColumnType("varchar(300)")
  3914. .HasCharSet("utf8")
  3915. .HasCollation("utf8_general_ci");
  3916. entity.Property(e => e.Version).HasColumnType("int(11)");
  3917. });
  3918. modelBuilder.Entity<OperateLog>(entity =>
  3919. {
  3920. entity.Property(e => e.Id).HasColumnType("int(11)");
  3921. entity.Property(e => e.AfterOperate)
  3922. .HasColumnType("mediumtext")
  3923. .HasCharSet("utf8")
  3924. .HasCollation("utf8_general_ci");
  3925. entity.Property(e => e.BeforeOperate)
  3926. .HasColumnType("mediumtext")
  3927. .HasCharSet("utf8")
  3928. .HasCollation("utf8_general_ci");
  3929. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3930. entity.Property(e => e.CreateMan)
  3931. .HasColumnType("varchar(50)")
  3932. .HasCharSet("utf8")
  3933. .HasCollation("utf8_general_ci");
  3934. entity.Property(e => e.OpMode)
  3935. .HasColumnType("varchar(30)")
  3936. .HasCharSet("utf8")
  3937. .HasCollation("utf8_general_ci");
  3938. entity.Property(e => e.OperateMan)
  3939. .HasColumnType("varchar(50)")
  3940. .HasCharSet("utf8")
  3941. .HasCollation("utf8_general_ci");
  3942. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3943. entity.Property(e => e.SeoDescription)
  3944. .HasColumnType("varchar(500)")
  3945. .HasCharSet("utf8")
  3946. .HasCollation("utf8_general_ci");
  3947. entity.Property(e => e.SeoKeyword)
  3948. .HasColumnType("varchar(200)")
  3949. .HasCharSet("utf8")
  3950. .HasCollation("utf8_general_ci");
  3951. entity.Property(e => e.SeoTitle)
  3952. .HasColumnType("varchar(100)")
  3953. .HasCharSet("utf8")
  3954. .HasCollation("utf8_general_ci");
  3955. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3956. entity.Property(e => e.Status).HasColumnType("int(11)");
  3957. entity.Property(e => e.TableEnName)
  3958. .HasColumnType("varchar(50)")
  3959. .HasCharSet("utf8")
  3960. .HasCollation("utf8_general_ci");
  3961. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3962. entity.Property(e => e.UpdateMan)
  3963. .HasColumnType("varchar(50)")
  3964. .HasCharSet("utf8")
  3965. .HasCollation("utf8_general_ci");
  3966. entity.Property(e => e.Version).HasColumnType("int(11)");
  3967. });
  3968. modelBuilder.Entity<OperateRightList>(entity =>
  3969. {
  3970. entity.Property(e => e.Id).HasColumnType("int(11)");
  3971. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3972. entity.Property(e => e.CreateMan)
  3973. .HasColumnType("varchar(50)")
  3974. .HasCharSet("utf8")
  3975. .HasCollation("utf8_general_ci");
  3976. entity.Property(e => e.EnName)
  3977. .HasColumnType("varchar(50)")
  3978. .HasCharSet("utf8")
  3979. .HasCollation("utf8_general_ci");
  3980. entity.Property(e => e.Name)
  3981. .HasColumnType("varchar(50)")
  3982. .HasCharSet("utf8")
  3983. .HasCollation("utf8_general_ci");
  3984. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3985. entity.Property(e => e.SeoDescription)
  3986. .HasColumnType("varchar(500)")
  3987. .HasCharSet("utf8")
  3988. .HasCollation("utf8_general_ci");
  3989. entity.Property(e => e.SeoKeyword)
  3990. .HasColumnType("varchar(200)")
  3991. .HasCharSet("utf8")
  3992. .HasCollation("utf8_general_ci");
  3993. entity.Property(e => e.SeoTitle)
  3994. .HasColumnType("varchar(100)")
  3995. .HasCharSet("utf8")
  3996. .HasCollation("utf8_general_ci");
  3997. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3998. entity.Property(e => e.Status).HasColumnType("int(11)");
  3999. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4000. entity.Property(e => e.UpdateMan)
  4001. .HasColumnType("varchar(50)")
  4002. .HasCharSet("utf8")
  4003. .HasCollation("utf8_general_ci");
  4004. entity.Property(e => e.Version).HasColumnType("int(11)");
  4005. });
  4006. modelBuilder.Entity<OrderForNo>(entity =>
  4007. {
  4008. entity.HasKey(e => e.OrderNo)
  4009. .HasName("PRIMARY");
  4010. entity.Property(e => e.OrderNo)
  4011. .HasColumnType("varchar(50)")
  4012. .HasCharSet("utf8")
  4013. .HasCollation("utf8_general_ci");
  4014. entity.Property(e => e.OrderIds)
  4015. .HasColumnType("varchar(50)")
  4016. .HasCharSet("utf8")
  4017. .HasCollation("utf8_general_ci");
  4018. entity.Property(e => e.RspCode).HasColumnType("int(11)");
  4019. entity.Property(e => e.RspMsg)
  4020. .HasColumnType("varchar(500)")
  4021. .HasCharSet("utf8")
  4022. .HasCollation("utf8_general_ci");
  4023. });
  4024. modelBuilder.Entity<OrderProduct>(entity =>
  4025. {
  4026. entity.Property(e => e.Id).HasColumnType("int(11)");
  4027. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4028. entity.Property(e => e.CreateMan)
  4029. .HasColumnType("varchar(50)")
  4030. .HasCharSet("utf8")
  4031. .HasCollation("utf8_general_ci");
  4032. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4033. entity.Property(e => e.NormDetail)
  4034. .HasColumnType("varchar(200)")
  4035. .HasCharSet("utf8")
  4036. .HasCollation("utf8_general_ci");
  4037. entity.Property(e => e.NormId)
  4038. .HasColumnType("varchar(50)")
  4039. .HasCharSet("utf8")
  4040. .HasCollation("utf8_general_ci");
  4041. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4042. entity.Property(e => e.ProductCode)
  4043. .HasColumnType("varchar(30)")
  4044. .HasCharSet("utf8")
  4045. .HasCollation("utf8_general_ci");
  4046. entity.Property(e => e.ProductCount).HasColumnType("int(11)");
  4047. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4048. entity.Property(e => e.ProductIntegral).HasColumnType("decimal(18,2)");
  4049. entity.Property(e => e.ProductName)
  4050. .HasColumnType("varchar(100)")
  4051. .HasCharSet("utf8")
  4052. .HasCollation("utf8_general_ci");
  4053. entity.Property(e => e.ProductPhoto)
  4054. .HasColumnType("varchar(200)")
  4055. .HasCharSet("utf8")
  4056. .HasCollation("utf8_general_ci");
  4057. entity.Property(e => e.ProductPrice).HasColumnType("decimal(18,2)");
  4058. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4059. entity.Property(e => e.SeoDescription)
  4060. .HasColumnType("varchar(500)")
  4061. .HasCharSet("utf8")
  4062. .HasCollation("utf8_general_ci");
  4063. entity.Property(e => e.SeoKeyword)
  4064. .HasColumnType("varchar(200)")
  4065. .HasCharSet("utf8")
  4066. .HasCollation("utf8_general_ci");
  4067. entity.Property(e => e.SeoTitle)
  4068. .HasColumnType("varchar(100)")
  4069. .HasCharSet("utf8")
  4070. .HasCollation("utf8_general_ci");
  4071. entity.Property(e => e.SnNos)
  4072. .HasColumnType("mediumtext")
  4073. .HasCharSet("utf8")
  4074. .HasCollation("utf8_general_ci");
  4075. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4076. entity.Property(e => e.Status).HasColumnType("int(11)");
  4077. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4078. entity.Property(e => e.TotalIntegral).HasColumnType("decimal(18,2)");
  4079. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4080. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4081. entity.Property(e => e.UpdateMan)
  4082. .HasColumnType("varchar(50)")
  4083. .HasCharSet("utf8")
  4084. .HasCollation("utf8_general_ci");
  4085. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4086. entity.Property(e => e.Version).HasColumnType("int(11)");
  4087. });
  4088. modelBuilder.Entity<OrderRefund>(entity =>
  4089. {
  4090. entity.Property(e => e.Id).HasColumnType("int(11)");
  4091. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  4092. entity.Property(e => e.Contents)
  4093. .HasColumnType("longtext")
  4094. .HasCharSet("utf8")
  4095. .HasCollation("utf8_general_ci");
  4096. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4097. entity.Property(e => e.CreateMan)
  4098. .HasColumnType("varchar(50)")
  4099. .HasCharSet("utf8")
  4100. .HasCollation("utf8_general_ci");
  4101. entity.Property(e => e.ErpCode)
  4102. .HasColumnType("varchar(50)")
  4103. .HasCharSet("utf8")
  4104. .HasCollation("utf8_general_ci");
  4105. entity.Property(e => e.ErpCompany).HasColumnType("int(11)");
  4106. entity.Property(e => e.GoodStatus).HasColumnType("int(11)");
  4107. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4108. entity.Property(e => e.Mobile)
  4109. .HasColumnType("varchar(11)")
  4110. .HasCharSet("utf8")
  4111. .HasCollation("utf8_general_ci");
  4112. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4113. entity.Property(e => e.Photos)
  4114. .HasColumnType("varchar(500)")
  4115. .HasCharSet("utf8")
  4116. .HasCollation("utf8_general_ci");
  4117. entity.Property(e => e.ProductId)
  4118. .HasColumnType("varchar(50)")
  4119. .HasCharSet("utf8")
  4120. .HasCollation("utf8_general_ci");
  4121. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4122. entity.Property(e => e.Reason).HasColumnType("int(11)");
  4123. entity.Property(e => e.SeoDescription)
  4124. .HasColumnType("varchar(500)")
  4125. .HasCharSet("utf8")
  4126. .HasCollation("utf8_general_ci");
  4127. entity.Property(e => e.SeoKeyword)
  4128. .HasColumnType("varchar(200)")
  4129. .HasCharSet("utf8")
  4130. .HasCollation("utf8_general_ci");
  4131. entity.Property(e => e.SeoTitle)
  4132. .HasColumnType("varchar(100)")
  4133. .HasCharSet("utf8")
  4134. .HasCollation("utf8_general_ci");
  4135. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4136. entity.Property(e => e.Status).HasColumnType("int(11)");
  4137. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4138. entity.Property(e => e.UpdateMan)
  4139. .HasColumnType("varchar(50)")
  4140. .HasCharSet("utf8")
  4141. .HasCollation("utf8_general_ci");
  4142. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4143. entity.Property(e => e.Version).HasColumnType("int(11)");
  4144. });
  4145. modelBuilder.Entity<OrderRefundReason>(entity =>
  4146. {
  4147. entity.Property(e => e.Id).HasColumnType("int(11)");
  4148. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4149. entity.Property(e => e.CreateMan)
  4150. .HasColumnType("varchar(50)")
  4151. .HasCharSet("utf8")
  4152. .HasCollation("utf8_general_ci");
  4153. entity.Property(e => e.Name)
  4154. .HasColumnType("varchar(50)")
  4155. .HasCharSet("utf8")
  4156. .HasCollation("utf8_general_ci");
  4157. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4158. entity.Property(e => e.SeoDescription)
  4159. .HasColumnType("varchar(500)")
  4160. .HasCharSet("utf8")
  4161. .HasCollation("utf8_general_ci");
  4162. entity.Property(e => e.SeoKeyword)
  4163. .HasColumnType("varchar(200)")
  4164. .HasCharSet("utf8")
  4165. .HasCollation("utf8_general_ci");
  4166. entity.Property(e => e.SeoTitle)
  4167. .HasColumnType("varchar(100)")
  4168. .HasCharSet("utf8")
  4169. .HasCollation("utf8_general_ci");
  4170. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4171. entity.Property(e => e.Status).HasColumnType("int(11)");
  4172. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4173. entity.Property(e => e.UpdateMan)
  4174. .HasColumnType("varchar(50)")
  4175. .HasCharSet("utf8")
  4176. .HasCollation("utf8_general_ci");
  4177. entity.Property(e => e.Version).HasColumnType("int(11)");
  4178. });
  4179. modelBuilder.Entity<Orders>(entity =>
  4180. {
  4181. entity.Property(e => e.Id).HasColumnType("int(11)");
  4182. entity.Property(e => e.ActualPay).HasColumnType("decimal(18,2)");
  4183. entity.Property(e => e.Address)
  4184. .HasColumnType("varchar(50)")
  4185. .HasCharSet("utf8")
  4186. .HasCollation("utf8_general_ci");
  4187. entity.Property(e => e.Areas)
  4188. .HasColumnType("varchar(30)")
  4189. .HasCharSet("utf8")
  4190. .HasCollation("utf8_general_ci");
  4191. entity.Property(e => e.AutoConfirmDate).HasColumnType("datetime");
  4192. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4193. entity.Property(e => e.ChannelAmount).HasColumnType("decimal(18,2)");
  4194. entity.Property(e => e.ConfirmDate).HasColumnType("datetime");
  4195. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  4196. entity.Property(e => e.CouponMoney).HasColumnType("decimal(18,2)");
  4197. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4198. entity.Property(e => e.CreateMan)
  4199. .HasColumnType("varchar(50)")
  4200. .HasCharSet("utf8")
  4201. .HasCollation("utf8_general_ci");
  4202. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  4203. entity.Property(e => e.ErpCode)
  4204. .HasColumnType("varchar(50)")
  4205. .HasCharSet("utf8")
  4206. .HasCollation("utf8_general_ci");
  4207. entity.Property(e => e.ErpMode).HasColumnType("int(11)");
  4208. entity.Property(e => e.ErpName)
  4209. .HasColumnType("varchar(50)")
  4210. .HasCharSet("utf8")
  4211. .HasCollation("utf8_general_ci");
  4212. entity.Property(e => e.ErpPrice).HasColumnType("decimal(18,2)");
  4213. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4214. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4215. entity.Property(e => e.Mobile)
  4216. .HasColumnType("varchar(11)")
  4217. .HasCharSet("utf8")
  4218. .HasCollation("utf8_general_ci");
  4219. entity.Property(e => e.OrderNo)
  4220. .HasColumnType("varchar(30)")
  4221. .HasCharSet("utf8")
  4222. .HasCollation("utf8_general_ci");
  4223. entity.Property(e => e.PayDate).HasColumnType("datetime");
  4224. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  4225. entity.Property(e => e.PayStatus).HasColumnType("int(11)");
  4226. entity.Property(e => e.PostalCode)
  4227. .HasColumnType("varchar(6)")
  4228. .HasCharSet("utf8")
  4229. .HasCollation("utf8_general_ci");
  4230. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4231. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4232. entity.Property(e => e.RealName)
  4233. .HasColumnType("varchar(10)")
  4234. .HasCharSet("utf8")
  4235. .HasCollation("utf8_general_ci");
  4236. entity.Property(e => e.RefundActAmount).HasColumnType("decimal(18,2)");
  4237. entity.Property(e => e.RefundFeeAmount).HasColumnType("decimal(18,2)");
  4238. entity.Property(e => e.RefundReason)
  4239. .HasColumnType("varchar(64)")
  4240. .HasCharSet("utf8")
  4241. .HasCollation("utf8_general_ci");
  4242. entity.Property(e => e.RefundStatus).HasColumnType("int(11)");
  4243. entity.Property(e => e.Remark)
  4244. .HasColumnType("varchar(64)")
  4245. .HasCharSet("utf8")
  4246. .HasCollation("utf8_general_ci");
  4247. entity.Property(e => e.ReqData)
  4248. .HasColumnType("varchar(2048)")
  4249. .HasCharSet("utf8")
  4250. .HasCollation("utf8_general_ci");
  4251. entity.Property(e => e.ResData)
  4252. .HasColumnType("varchar(2048)")
  4253. .HasCharSet("utf8")
  4254. .HasCollation("utf8_general_ci");
  4255. entity.Property(e => e.ReturnCode)
  4256. .HasColumnType("varchar(32)")
  4257. .HasCharSet("utf8")
  4258. .HasCollation("utf8_general_ci");
  4259. entity.Property(e => e.ReturnMsg)
  4260. .HasColumnType("varchar(128)")
  4261. .HasCharSet("utf8")
  4262. .HasCollation("utf8_general_ci");
  4263. entity.Property(e => e.SendDate).HasColumnType("datetime");
  4264. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  4265. entity.Property(e => e.SeoDescription)
  4266. .HasColumnType("varchar(500)")
  4267. .HasCharSet("utf8")
  4268. .HasCollation("utf8_general_ci");
  4269. entity.Property(e => e.SeoKeyword)
  4270. .HasColumnType("varchar(200)")
  4271. .HasCharSet("utf8")
  4272. .HasCollation("utf8_general_ci");
  4273. entity.Property(e => e.SeoTitle)
  4274. .HasColumnType("varchar(100)")
  4275. .HasCharSet("utf8")
  4276. .HasCollation("utf8_general_ci");
  4277. entity.Property(e => e.SnNos)
  4278. .HasColumnType("mediumtext")
  4279. .HasCharSet("utf8")
  4280. .HasCollation("utf8_general_ci");
  4281. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4282. entity.Property(e => e.Status).HasColumnType("int(11)");
  4283. entity.Property(e => e.StoreContact)
  4284. .HasColumnType("varchar(30)")
  4285. .HasCharSet("utf8")
  4286. .HasCollation("utf8_general_ci");
  4287. entity.Property(e => e.StoreContactMobile)
  4288. .HasColumnType("varchar(11)")
  4289. .HasCharSet("utf8")
  4290. .HasCollation("utf8_general_ci");
  4291. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4292. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  4293. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  4294. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4295. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4296. entity.Property(e => e.TradeNo)
  4297. .HasColumnType("varchar(50)")
  4298. .HasCharSet("utf8")
  4299. .HasCollation("utf8_general_ci");
  4300. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4301. entity.Property(e => e.UpdateMan)
  4302. .HasColumnType("varchar(50)")
  4303. .HasCharSet("utf8")
  4304. .HasCollation("utf8_general_ci");
  4305. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4306. entity.Property(e => e.UserMessage)
  4307. .HasColumnType("varchar(50)")
  4308. .HasCharSet("utf8")
  4309. .HasCollation("utf8_general_ci");
  4310. entity.Property(e => e.Version).HasColumnType("int(11)");
  4311. });
  4312. modelBuilder.Entity<PageInfo>(entity =>
  4313. {
  4314. entity.Property(e => e.Id).HasColumnType("int(11)");
  4315. entity.Property(e => e.ColId)
  4316. .HasColumnType("varchar(30)")
  4317. .HasCharSet("utf8")
  4318. .HasCollation("utf8_general_ci");
  4319. entity.Property(e => e.Contents)
  4320. .HasColumnType("longtext")
  4321. .HasCharSet("utf8")
  4322. .HasCollation("utf8_general_ci");
  4323. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4324. entity.Property(e => e.CreateMan)
  4325. .HasColumnType("varchar(50)")
  4326. .HasCharSet("utf8")
  4327. .HasCollation("utf8_general_ci");
  4328. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4329. entity.Property(e => e.SeoDescription)
  4330. .HasColumnType("varchar(500)")
  4331. .HasCharSet("utf8")
  4332. .HasCollation("utf8_general_ci");
  4333. entity.Property(e => e.SeoKeyword)
  4334. .HasColumnType("varchar(200)")
  4335. .HasCharSet("utf8")
  4336. .HasCollation("utf8_general_ci");
  4337. entity.Property(e => e.SeoTitle)
  4338. .HasColumnType("varchar(100)")
  4339. .HasCharSet("utf8")
  4340. .HasCollation("utf8_general_ci");
  4341. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4342. entity.Property(e => e.Status).HasColumnType("int(11)");
  4343. entity.Property(e => e.Title)
  4344. .HasColumnType("varchar(200)")
  4345. .HasCharSet("utf8")
  4346. .HasCollation("utf8_general_ci");
  4347. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4348. entity.Property(e => e.UpdateMan)
  4349. .HasColumnType("varchar(50)")
  4350. .HasCharSet("utf8")
  4351. .HasCollation("utf8_general_ci");
  4352. entity.Property(e => e.Version).HasColumnType("int(11)");
  4353. });
  4354. modelBuilder.Entity<PageUpdateInfo>(entity =>
  4355. {
  4356. entity.Property(e => e.Id).HasColumnType("int(11)");
  4357. entity.Property(e => e.BgColor)
  4358. .HasColumnType("varchar(6)")
  4359. .HasCharSet("utf8")
  4360. .HasCollation("utf8_general_ci");
  4361. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4362. entity.Property(e => e.CreateMan)
  4363. .HasColumnType("varchar(50)")
  4364. .HasCharSet("utf8")
  4365. .HasCollation("utf8_general_ci");
  4366. entity.Property(e => e.GotoPages)
  4367. .HasColumnType("varchar(500)")
  4368. .HasCharSet("utf8")
  4369. .HasCollation("utf8_general_ci");
  4370. entity.Property(e => e.IsScrollBar)
  4371. .HasColumnType("bit(1)")
  4372. .HasDefaultValueSql("b'0'");
  4373. entity.Property(e => e.IsSkid)
  4374. .HasColumnType("bit(1)")
  4375. .HasDefaultValueSql("b'0'");
  4376. entity.Property(e => e.LeftAction1)
  4377. .HasColumnType("longtext")
  4378. .HasCharSet("utf8")
  4379. .HasCollation("utf8_general_ci");
  4380. entity.Property(e => e.LeftAction2)
  4381. .HasColumnType("longtext")
  4382. .HasCharSet("utf8")
  4383. .HasCollation("utf8_general_ci");
  4384. entity.Property(e => e.LeftBtn1)
  4385. .HasColumnType("varchar(100)")
  4386. .HasCharSet("utf8")
  4387. .HasCollation("utf8_general_ci");
  4388. entity.Property(e => e.LeftBtn2)
  4389. .HasColumnType("varchar(50)")
  4390. .HasCharSet("utf8")
  4391. .HasCollation("utf8_general_ci");
  4392. entity.Property(e => e.ModulePath)
  4393. .HasColumnType("varchar(200)")
  4394. .HasCharSet("utf8")
  4395. .HasCollation("utf8_general_ci");
  4396. entity.Property(e => e.ModuleVersion).HasColumnType("int(11)");
  4397. entity.Property(e => e.MustUpdate)
  4398. .HasColumnType("bit(1)")
  4399. .HasDefaultValueSql("b'0'");
  4400. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4401. entity.Property(e => e.RightAction1)
  4402. .HasColumnType("longtext")
  4403. .HasCharSet("utf8")
  4404. .HasCollation("utf8_general_ci");
  4405. entity.Property(e => e.RightAction2)
  4406. .HasColumnType("longtext")
  4407. .HasCharSet("utf8")
  4408. .HasCollation("utf8_general_ci");
  4409. entity.Property(e => e.RightBtn1)
  4410. .HasColumnType("varchar(50)")
  4411. .HasCharSet("utf8")
  4412. .HasCollation("utf8_general_ci");
  4413. entity.Property(e => e.RightBtn2)
  4414. .HasColumnType("varchar(50)")
  4415. .HasCharSet("utf8")
  4416. .HasCollation("utf8_general_ci");
  4417. entity.Property(e => e.SeoDescription)
  4418. .HasColumnType("varchar(500)")
  4419. .HasCharSet("utf8")
  4420. .HasCollation("utf8_general_ci");
  4421. entity.Property(e => e.SeoKeyword)
  4422. .HasColumnType("varchar(200)")
  4423. .HasCharSet("utf8")
  4424. .HasCollation("utf8_general_ci");
  4425. entity.Property(e => e.SeoTitle)
  4426. .HasColumnType("varchar(100)")
  4427. .HasCharSet("utf8")
  4428. .HasCollation("utf8_general_ci");
  4429. entity.Property(e => e.ShowTitle)
  4430. .HasColumnType("bit(1)")
  4431. .HasDefaultValueSql("b'0'");
  4432. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4433. entity.Property(e => e.Status).HasColumnType("int(11)");
  4434. entity.Property(e => e.StatusBarStyle)
  4435. .HasColumnType("varchar(10)")
  4436. .HasCharSet("utf8")
  4437. .HasCollation("utf8_general_ci");
  4438. entity.Property(e => e.TextColor)
  4439. .HasColumnType("varchar(6)")
  4440. .HasCharSet("utf8")
  4441. .HasCollation("utf8_general_ci");
  4442. entity.Property(e => e.Title)
  4443. .HasColumnType("varchar(50)")
  4444. .HasCharSet("utf8")
  4445. .HasCollation("utf8_general_ci");
  4446. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4447. entity.Property(e => e.UpdateMan)
  4448. .HasColumnType("varchar(50)")
  4449. .HasCharSet("utf8")
  4450. .HasCollation("utf8_general_ci");
  4451. entity.Property(e => e.Version).HasColumnType("int(11)");
  4452. });
  4453. modelBuilder.Entity<PosMachines>(entity =>
  4454. {
  4455. entity.Property(e => e.Id).HasColumnType("int(11)");
  4456. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4457. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4458. entity.Property(e => e.ActivityList)
  4459. .HasColumnType("varchar(200)")
  4460. .HasCharSet("utf8")
  4461. .HasCollation("utf8_general_ci");
  4462. entity.Property(e => e.BatchNo)
  4463. .HasColumnType("varchar(32)")
  4464. .HasCharSet("utf8")
  4465. .HasCollation("utf8_general_ci");
  4466. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4467. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4468. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4469. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4470. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4471. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4472. entity.Property(e => e.CreateMan)
  4473. .HasColumnType("varchar(50)")
  4474. .HasCharSet("utf8")
  4475. .HasCollation("utf8_general_ci");
  4476. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4477. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4478. entity.Property(e => e.Detail)
  4479. .HasColumnType("longtext")
  4480. .HasCharSet("utf8")
  4481. .HasCollation("utf8_general_ci");
  4482. entity.Property(e => e.DeviceKind)
  4483. .HasColumnType("varchar(32)")
  4484. .HasCharSet("utf8")
  4485. .HasCollation("utf8_general_ci");
  4486. entity.Property(e => e.DeviceName)
  4487. .HasColumnType("varchar(32)")
  4488. .HasCharSet("utf8")
  4489. .HasCollation("utf8_general_ci");
  4490. entity.Property(e => e.DeviceType)
  4491. .HasColumnType("varchar(20)")
  4492. .HasCharSet("utf8")
  4493. .HasCollation("utf8_general_ci");
  4494. entity.Property(e => e.IsPurchase)
  4495. .HasColumnType("bit(1)")
  4496. .HasDefaultValueSql("b'0'");
  4497. entity.Property(e => e.IsVip)
  4498. .HasColumnType("bit(1)")
  4499. .HasDefaultValueSql("b'0'");
  4500. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4501. entity.Property(e => e.PosSn)
  4502. .HasColumnType("varchar(50)")
  4503. .HasCharSet("utf8")
  4504. .HasCollation("utf8_general_ci");
  4505. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4506. entity.Property(e => e.PrizeParams)
  4507. .HasColumnType("varchar(200)")
  4508. .HasCharSet("utf8")
  4509. .HasCollation("utf8_general_ci");
  4510. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4511. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4512. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4513. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4514. entity.Property(e => e.SeoDescription)
  4515. .HasColumnType("varchar(500)")
  4516. .HasCharSet("utf8")
  4517. .HasCollation("utf8_general_ci");
  4518. entity.Property(e => e.SeoKeyword)
  4519. .HasColumnType("varchar(200)")
  4520. .HasCharSet("utf8")
  4521. .HasCollation("utf8_general_ci");
  4522. entity.Property(e => e.SeoTitle)
  4523. .HasColumnType("varchar(100)")
  4524. .HasCharSet("utf8")
  4525. .HasCollation("utf8_general_ci");
  4526. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4527. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4528. entity.Property(e => e.Status).HasColumnType("int(11)");
  4529. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4530. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4531. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4532. entity.Property(e => e.UpdateMan)
  4533. .HasColumnType("varchar(50)")
  4534. .HasCharSet("utf8")
  4535. .HasCollation("utf8_general_ci");
  4536. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4537. entity.Property(e => e.UserNav)
  4538. .HasColumnType("longtext")
  4539. .HasCharSet("utf8")
  4540. .HasCollation("utf8_general_ci");
  4541. entity.Property(e => e.Version).HasColumnType("int(11)");
  4542. });
  4543. modelBuilder.Entity<PosMachinesTwo>(entity =>
  4544. {
  4545. entity.Property(e => e.Id).HasColumnType("int(11)");
  4546. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4547. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4548. entity.Property(e => e.ActivityList)
  4549. .HasColumnType("varchar(200)")
  4550. .HasCharSet("utf8")
  4551. .HasCollation("utf8_general_ci");
  4552. entity.Property(e => e.BatchNo)
  4553. .HasColumnType("varchar(32)")
  4554. .HasCharSet("utf8")
  4555. .HasCollation("utf8_general_ci");
  4556. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4557. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4558. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4559. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4560. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4561. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4562. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4563. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4564. entity.Property(e => e.Detail)
  4565. .HasColumnType("longtext")
  4566. .HasCharSet("utf8")
  4567. .HasCollation("utf8_general_ci");
  4568. entity.Property(e => e.DeviceKind)
  4569. .HasColumnType("varchar(32)")
  4570. .HasCharSet("utf8")
  4571. .HasCollation("utf8_general_ci");
  4572. entity.Property(e => e.DeviceName)
  4573. .HasColumnType("varchar(32)")
  4574. .HasCharSet("utf8")
  4575. .HasCollation("utf8_general_ci");
  4576. entity.Property(e => e.DeviceType)
  4577. .HasColumnType("varchar(20)")
  4578. .HasCharSet("utf8")
  4579. .HasCollation("utf8_general_ci");
  4580. entity.Property(e => e.IsPurchase)
  4581. .HasColumnType("bit(1)")
  4582. .HasDefaultValueSql("b'0'");
  4583. entity.Property(e => e.IsVip)
  4584. .HasColumnType("bit(1)")
  4585. .HasDefaultValueSql("b'0'");
  4586. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4587. entity.Property(e => e.PosSn)
  4588. .HasColumnType("varchar(50)")
  4589. .HasCharSet("utf8")
  4590. .HasCollation("utf8_general_ci");
  4591. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4592. entity.Property(e => e.PrizeParams)
  4593. .HasColumnType("varchar(200)")
  4594. .HasCharSet("utf8")
  4595. .HasCollation("utf8_general_ci");
  4596. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4597. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4598. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4599. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4600. entity.Property(e => e.SeoDescription)
  4601. .HasColumnType("varchar(500)")
  4602. .HasCharSet("utf8")
  4603. .HasCollation("utf8_general_ci");
  4604. entity.Property(e => e.SeoKeyword)
  4605. .HasColumnType("varchar(200)")
  4606. .HasCharSet("utf8")
  4607. .HasCollation("utf8_general_ci");
  4608. entity.Property(e => e.SeoTitle)
  4609. .HasColumnType("varchar(100)")
  4610. .HasCharSet("utf8")
  4611. .HasCollation("utf8_general_ci");
  4612. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4613. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4614. entity.Property(e => e.Status).HasColumnType("int(11)");
  4615. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4616. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4617. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4618. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4619. entity.Property(e => e.UserNav)
  4620. .HasColumnType("longtext")
  4621. .HasCharSet("utf8")
  4622. .HasCollation("utf8_general_ci");
  4623. });
  4624. modelBuilder.Entity<ProductComment>(entity =>
  4625. {
  4626. entity.Property(e => e.Id).HasColumnType("int(11)");
  4627. entity.Property(e => e.AgreeCount).HasColumnType("int(11)");
  4628. entity.Property(e => e.BackCount).HasColumnType("int(11)");
  4629. entity.Property(e => e.Contents)
  4630. .HasColumnType("varchar(200)")
  4631. .HasCharSet("utf8")
  4632. .HasCollation("utf8_general_ci");
  4633. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4634. entity.Property(e => e.CreateMan)
  4635. .HasColumnType("varchar(50)")
  4636. .HasCharSet("utf8")
  4637. .HasCollation("utf8_general_ci");
  4638. entity.Property(e => e.HasPhoto)
  4639. .HasColumnType("bit(1)")
  4640. .HasDefaultValueSql("b'0'");
  4641. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4642. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4643. entity.Property(e => e.PhotoList)
  4644. .HasColumnType("mediumtext")
  4645. .HasCharSet("utf8")
  4646. .HasCollation("utf8_general_ci");
  4647. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4648. entity.Property(e => e.ProductNormId).HasColumnType("int(11)");
  4649. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4650. entity.Property(e => e.SeoDescription)
  4651. .HasColumnType("varchar(500)")
  4652. .HasCharSet("utf8")
  4653. .HasCollation("utf8_general_ci");
  4654. entity.Property(e => e.SeoKeyword)
  4655. .HasColumnType("varchar(200)")
  4656. .HasCharSet("utf8")
  4657. .HasCollation("utf8_general_ci");
  4658. entity.Property(e => e.SeoTitle)
  4659. .HasColumnType("varchar(100)")
  4660. .HasCharSet("utf8")
  4661. .HasCollation("utf8_general_ci");
  4662. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4663. entity.Property(e => e.StarNum).HasColumnType("int(11)");
  4664. entity.Property(e => e.Status).HasColumnType("int(11)");
  4665. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4666. entity.Property(e => e.UpdateMan)
  4667. .HasColumnType("varchar(50)")
  4668. .HasCharSet("utf8")
  4669. .HasCollation("utf8_general_ci");
  4670. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4671. entity.Property(e => e.Version).HasColumnType("int(11)");
  4672. });
  4673. modelBuilder.Entity<ProductCommentAgree>(entity =>
  4674. {
  4675. entity.Property(e => e.Id).HasColumnType("int(11)");
  4676. entity.Property(e => e.ProductCommentId).HasColumnType("int(11)");
  4677. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4678. });
  4679. modelBuilder.Entity<ProductFareAreas>(entity =>
  4680. {
  4681. entity.Property(e => e.Id).HasColumnType("int(11)");
  4682. entity.Property(e => e.Areas)
  4683. .HasColumnType("longtext")
  4684. .HasCharSet("utf8")
  4685. .HasCollation("utf8_general_ci");
  4686. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4687. entity.Property(e => e.CreateMan)
  4688. .HasColumnType("varchar(50)")
  4689. .HasCharSet("utf8")
  4690. .HasCollation("utf8_general_ci");
  4691. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4692. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4693. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4694. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4695. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4696. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4697. entity.Property(e => e.SeoDescription)
  4698. .HasColumnType("varchar(500)")
  4699. .HasCharSet("utf8")
  4700. .HasCollation("utf8_general_ci");
  4701. entity.Property(e => e.SeoKeyword)
  4702. .HasColumnType("varchar(200)")
  4703. .HasCharSet("utf8")
  4704. .HasCollation("utf8_general_ci");
  4705. entity.Property(e => e.SeoTitle)
  4706. .HasColumnType("varchar(100)")
  4707. .HasCharSet("utf8")
  4708. .HasCollation("utf8_general_ci");
  4709. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4710. entity.Property(e => e.Status).HasColumnType("int(11)");
  4711. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  4712. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4713. entity.Property(e => e.UpdateMan)
  4714. .HasColumnType("varchar(50)")
  4715. .HasCharSet("utf8")
  4716. .HasCollation("utf8_general_ci");
  4717. entity.Property(e => e.Version).HasColumnType("int(11)");
  4718. });
  4719. modelBuilder.Entity<ProductFareTemp>(entity =>
  4720. {
  4721. entity.Property(e => e.Id).HasColumnType("int(11)");
  4722. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4723. entity.Property(e => e.CreateMan)
  4724. .HasColumnType("varchar(50)")
  4725. .HasCharSet("utf8")
  4726. .HasCollation("utf8_general_ci");
  4727. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4728. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4729. entity.Property(e => e.IsFree)
  4730. .HasColumnType("bit(1)")
  4731. .HasDefaultValueSql("b'0'");
  4732. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4733. entity.Property(e => e.MeterMode).HasColumnType("int(11)");
  4734. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4735. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4736. entity.Property(e => e.Name)
  4737. .HasColumnType("varchar(50)")
  4738. .HasCharSet("utf8")
  4739. .HasCollation("utf8_general_ci");
  4740. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4741. entity.Property(e => e.SendAddress)
  4742. .HasColumnType("varchar(50)")
  4743. .HasCharSet("utf8")
  4744. .HasCollation("utf8_general_ci");
  4745. entity.Property(e => e.SendAreas)
  4746. .HasColumnType("varchar(30)")
  4747. .HasCharSet("utf8")
  4748. .HasCollation("utf8_general_ci");
  4749. entity.Property(e => e.SendDate).HasColumnType("int(11)");
  4750. entity.Property(e => e.SeoDescription)
  4751. .HasColumnType("varchar(500)")
  4752. .HasCharSet("utf8")
  4753. .HasCollation("utf8_general_ci");
  4754. entity.Property(e => e.SeoKeyword)
  4755. .HasColumnType("varchar(200)")
  4756. .HasCharSet("utf8")
  4757. .HasCollation("utf8_general_ci");
  4758. entity.Property(e => e.SeoTitle)
  4759. .HasColumnType("varchar(100)")
  4760. .HasCharSet("utf8")
  4761. .HasCollation("utf8_general_ci");
  4762. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4763. entity.Property(e => e.Status).HasColumnType("int(11)");
  4764. entity.Property(e => e.TransportMode).HasColumnType("int(11)");
  4765. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4766. entity.Property(e => e.UpdateMan)
  4767. .HasColumnType("varchar(50)")
  4768. .HasCharSet("utf8")
  4769. .HasCollation("utf8_general_ci");
  4770. entity.Property(e => e.Version).HasColumnType("int(11)");
  4771. });
  4772. modelBuilder.Entity<ProductKeys>(entity =>
  4773. {
  4774. entity.HasKey(e => e.Name)
  4775. .HasName("PRIMARY");
  4776. entity.Property(e => e.Name)
  4777. .HasColumnType("varchar(10)")
  4778. .HasCharSet("utf8")
  4779. .HasCollation("utf8_general_ci");
  4780. entity.Property(e => e.ColIds)
  4781. .HasColumnType("longtext")
  4782. .HasCharSet("utf8")
  4783. .HasCollation("utf8_general_ci");
  4784. entity.Property(e => e.ProductIds)
  4785. .HasColumnType("longtext")
  4786. .HasCharSet("utf8")
  4787. .HasCollation("utf8_general_ci");
  4788. });
  4789. modelBuilder.Entity<ProductNorm>(entity =>
  4790. {
  4791. entity.Property(e => e.Id).HasColumnType("int(11)");
  4792. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4793. entity.Property(e => e.Code)
  4794. .HasColumnType("varchar(50)")
  4795. .HasCharSet("utf8")
  4796. .HasCollation("utf8_general_ci");
  4797. entity.Property(e => e.ColName)
  4798. .HasColumnType("varchar(50)")
  4799. .HasCharSet("utf8")
  4800. .HasCollation("utf8_general_ci");
  4801. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  4802. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4803. entity.Property(e => e.CreateMan)
  4804. .HasColumnType("varchar(50)")
  4805. .HasCharSet("utf8")
  4806. .HasCollation("utf8_general_ci");
  4807. entity.Property(e => e.IdList)
  4808. .HasColumnType("varchar(50)")
  4809. .HasCharSet("utf8")
  4810. .HasCollation("utf8_general_ci");
  4811. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4812. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  4813. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4814. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  4815. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4816. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4817. entity.Property(e => e.SeoDescription)
  4818. .HasColumnType("varchar(500)")
  4819. .HasCharSet("utf8")
  4820. .HasCollation("utf8_general_ci");
  4821. entity.Property(e => e.SeoKeyword)
  4822. .HasColumnType("varchar(200)")
  4823. .HasCharSet("utf8")
  4824. .HasCollation("utf8_general_ci");
  4825. entity.Property(e => e.SeoTitle)
  4826. .HasColumnType("varchar(100)")
  4827. .HasCharSet("utf8")
  4828. .HasCollation("utf8_general_ci");
  4829. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4830. entity.Property(e => e.Status).HasColumnType("int(11)");
  4831. entity.Property(e => e.Stock).HasColumnType("int(11)");
  4832. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4833. entity.Property(e => e.UpdateMan)
  4834. .HasColumnType("varchar(50)")
  4835. .HasCharSet("utf8")
  4836. .HasCollation("utf8_general_ci");
  4837. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  4838. entity.Property(e => e.UserPrice).HasColumnType("decimal(18,2)");
  4839. entity.Property(e => e.Version).HasColumnType("int(11)");
  4840. });
  4841. modelBuilder.Entity<ProductNormItem>(entity =>
  4842. {
  4843. entity.Property(e => e.Id).HasColumnType("int(11)");
  4844. entity.Property(e => e.ColName)
  4845. .HasColumnType("varchar(50)")
  4846. .HasCharSet("utf8")
  4847. .HasCollation("utf8_general_ci");
  4848. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4849. entity.Property(e => e.CreateMan)
  4850. .HasColumnType("varchar(50)")
  4851. .HasCharSet("utf8")
  4852. .HasCollation("utf8_general_ci");
  4853. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4854. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  4855. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4856. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4857. entity.Property(e => e.SeoDescription)
  4858. .HasColumnType("varchar(500)")
  4859. .HasCharSet("utf8")
  4860. .HasCollation("utf8_general_ci");
  4861. entity.Property(e => e.SeoKeyword)
  4862. .HasColumnType("varchar(200)")
  4863. .HasCharSet("utf8")
  4864. .HasCollation("utf8_general_ci");
  4865. entity.Property(e => e.SeoTitle)
  4866. .HasColumnType("varchar(100)")
  4867. .HasCharSet("utf8")
  4868. .HasCollation("utf8_general_ci");
  4869. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4870. entity.Property(e => e.Status).HasColumnType("int(11)");
  4871. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4872. entity.Property(e => e.UpdateMan)
  4873. .HasColumnType("varchar(50)")
  4874. .HasCharSet("utf8")
  4875. .HasCollation("utf8_general_ci");
  4876. entity.Property(e => e.Version).HasColumnType("int(11)");
  4877. });
  4878. modelBuilder.Entity<ProductNormTemp>(entity =>
  4879. {
  4880. entity.Property(e => e.Id).HasColumnType("int(11)");
  4881. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4882. entity.Property(e => e.CreateMan)
  4883. .HasColumnType("varchar(50)")
  4884. .HasCharSet("utf8")
  4885. .HasCollation("utf8_general_ci");
  4886. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4887. entity.Property(e => e.Name)
  4888. .HasColumnType("varchar(50)")
  4889. .HasCharSet("utf8")
  4890. .HasCollation("utf8_general_ci");
  4891. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4892. entity.Property(e => e.SeoDescription)
  4893. .HasColumnType("varchar(500)")
  4894. .HasCharSet("utf8")
  4895. .HasCollation("utf8_general_ci");
  4896. entity.Property(e => e.SeoKeyword)
  4897. .HasColumnType("varchar(200)")
  4898. .HasCharSet("utf8")
  4899. .HasCollation("utf8_general_ci");
  4900. entity.Property(e => e.SeoTitle)
  4901. .HasColumnType("varchar(100)")
  4902. .HasCharSet("utf8")
  4903. .HasCollation("utf8_general_ci");
  4904. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4905. entity.Property(e => e.Status).HasColumnType("int(11)");
  4906. entity.Property(e => e.TempJsonData)
  4907. .HasColumnType("longtext")
  4908. .HasCharSet("utf8")
  4909. .HasCollation("utf8_general_ci");
  4910. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4911. entity.Property(e => e.UpdateMan)
  4912. .HasColumnType("varchar(50)")
  4913. .HasCharSet("utf8")
  4914. .HasCollation("utf8_general_ci");
  4915. entity.Property(e => e.Version).HasColumnType("int(11)");
  4916. });
  4917. modelBuilder.Entity<Products>(entity =>
  4918. {
  4919. entity.Property(e => e.Id).HasColumnType("int(11)");
  4920. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4921. entity.Property(e => e.ColId)
  4922. .HasColumnType("varchar(30)")
  4923. .HasCharSet("utf8")
  4924. .HasCollation("utf8_general_ci");
  4925. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  4926. entity.Property(e => e.Contents)
  4927. .HasColumnType("longtext")
  4928. .HasCharSet("utf8")
  4929. .HasCollation("utf8_general_ci");
  4930. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  4931. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4932. entity.Property(e => e.CreateMan)
  4933. .HasColumnType("varchar(50)")
  4934. .HasCharSet("utf8")
  4935. .HasCollation("utf8_general_ci");
  4936. entity.Property(e => e.DetailPicPath)
  4937. .HasColumnType("varchar(500)")
  4938. .HasCharSet("utf8")
  4939. .HasCollation("utf8_general_ci");
  4940. entity.Property(e => e.Details)
  4941. .HasColumnType("longtext")
  4942. .HasCharSet("utf8")
  4943. .HasCollation("utf8_general_ci");
  4944. entity.Property(e => e.EndDate).HasColumnType("datetime");
  4945. entity.Property(e => e.FareTemplateId).HasColumnType("int(11)");
  4946. entity.Property(e => e.GoodPercent).HasColumnType("decimal(18,2)");
  4947. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4948. entity.Property(e => e.IsLimit)
  4949. .HasColumnType("bit(1)")
  4950. .HasDefaultValueSql("b'0'");
  4951. entity.Property(e => e.IsRecommend)
  4952. .HasColumnType("bit(1)")
  4953. .HasDefaultValueSql("b'0'");
  4954. entity.Property(e => e.IsRecommend2)
  4955. .HasColumnType("bit(1)")
  4956. .HasDefaultValueSql("b'0'");
  4957. entity.Property(e => e.IsRecommend3)
  4958. .HasColumnType("bit(1)")
  4959. .HasDefaultValueSql("b'0'");
  4960. entity.Property(e => e.KeyWord)
  4961. .HasColumnType("varchar(500)")
  4962. .HasCharSet("utf8")
  4963. .HasCollation("utf8_general_ci");
  4964. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  4965. entity.Property(e => e.LinkUrl)
  4966. .HasColumnType("varchar(500)")
  4967. .HasCharSet("utf8")
  4968. .HasCollation("utf8_general_ci");
  4969. entity.Property(e => e.ListPicPath)
  4970. .HasColumnType("varchar(200)")
  4971. .HasCharSet("utf8")
  4972. .HasCollation("utf8_general_ci");
  4973. entity.Property(e => e.MemberPrice).HasColumnType("decimal(18,2)");
  4974. entity.Property(e => e.MerchantClassId).HasColumnType("int(11)");
  4975. entity.Property(e => e.MerchantColId)
  4976. .HasColumnType("varchar(30)")
  4977. .HasCharSet("utf8")
  4978. .HasCollation("utf8_general_ci");
  4979. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4980. entity.Property(e => e.MonthSale).HasColumnType("int(11)");
  4981. entity.Property(e => e.NormIds)
  4982. .HasColumnType("varchar(100)")
  4983. .HasCharSet("utf8")
  4984. .HasCollation("utf8_general_ci");
  4985. entity.Property(e => e.NormJson)
  4986. .HasColumnType("longtext")
  4987. .HasCharSet("utf8")
  4988. .HasCollation("utf8_general_ci");
  4989. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  4990. entity.Property(e => e.ProductCode)
  4991. .HasColumnType("varchar(30)")
  4992. .HasCharSet("utf8")
  4993. .HasCollation("utf8_general_ci");
  4994. entity.Property(e => e.ProductName)
  4995. .HasColumnType("varchar(100)")
  4996. .HasCharSet("utf8")
  4997. .HasCollation("utf8_general_ci");
  4998. entity.Property(e => e.PublishDate).HasColumnType("datetime");
  4999. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5000. entity.Property(e => e.SeoDescription)
  5001. .HasColumnType("varchar(500)")
  5002. .HasCharSet("utf8")
  5003. .HasCollation("utf8_general_ci");
  5004. entity.Property(e => e.SeoKeyword)
  5005. .HasColumnType("varchar(200)")
  5006. .HasCharSet("utf8")
  5007. .HasCollation("utf8_general_ci");
  5008. entity.Property(e => e.SeoTitle)
  5009. .HasColumnType("varchar(100)")
  5010. .HasCharSet("utf8")
  5011. .HasCollation("utf8_general_ci");
  5012. entity.Property(e => e.ShareDetail)
  5013. .HasColumnType("varchar(200)")
  5014. .HasCharSet("utf8")
  5015. .HasCollation("utf8_general_ci");
  5016. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5017. entity.Property(e => e.SourcePrice).HasColumnType("decimal(18,2)");
  5018. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5019. entity.Property(e => e.Status).HasColumnType("int(11)");
  5020. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5021. entity.Property(e => e.Title)
  5022. .HasColumnType("varchar(50)")
  5023. .HasCharSet("utf8")
  5024. .HasCollation("utf8_general_ci");
  5025. entity.Property(e => e.Title2)
  5026. .HasColumnType("varchar(50)")
  5027. .HasCharSet("utf8")
  5028. .HasCollation("utf8_general_ci");
  5029. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5030. entity.Property(e => e.UpdateMan)
  5031. .HasColumnType("varchar(50)")
  5032. .HasCharSet("utf8")
  5033. .HasCollation("utf8_general_ci");
  5034. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5035. entity.Property(e => e.Version).HasColumnType("int(11)");
  5036. });
  5037. modelBuilder.Entity<ProfitObjectActivations>(entity =>
  5038. {
  5039. entity.Property(e => e.Id).HasColumnType("int(11)");
  5040. entity.Property(e => e.Code)
  5041. .HasColumnType("varchar(32)")
  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.EndDate).HasColumnType("datetime");
  5050. entity.Property(e => e.ExpiredNumber).HasColumnType("decimal(18,6)");
  5051. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5052. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5053. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5054. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5055. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5056. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5057. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5058. entity.Property(e => e.SeoDescription)
  5059. .HasColumnType("varchar(500)")
  5060. .HasCharSet("utf8")
  5061. .HasCollation("utf8_general_ci");
  5062. entity.Property(e => e.SeoKeyword)
  5063. .HasColumnType("varchar(200)")
  5064. .HasCharSet("utf8")
  5065. .HasCollation("utf8_general_ci");
  5066. entity.Property(e => e.SeoTitle)
  5067. .HasColumnType("varchar(100)")
  5068. .HasCharSet("utf8")
  5069. .HasCollation("utf8_general_ci");
  5070. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5071. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5072. entity.Property(e => e.Status).HasColumnType("int(11)");
  5073. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5074. entity.Property(e => e.UpdateMan)
  5075. .HasColumnType("varchar(50)")
  5076. .HasCharSet("utf8")
  5077. .HasCollation("utf8_general_ci");
  5078. entity.Property(e => e.Version).HasColumnType("int(11)");
  5079. });
  5080. modelBuilder.Entity<ProfitObjectContinueFloors>(entity =>
  5081. {
  5082. entity.Property(e => e.Id).HasColumnType("int(11)");
  5083. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5084. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5085. entity.Property(e => e.CreateMan)
  5086. .HasColumnType("varchar(50)")
  5087. .HasCharSet("utf8")
  5088. .HasCollation("utf8_general_ci");
  5089. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5090. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5091. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5092. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5093. entity.Property(e => e.SeoDescription)
  5094. .HasColumnType("varchar(500)")
  5095. .HasCharSet("utf8")
  5096. .HasCollation("utf8_general_ci");
  5097. entity.Property(e => e.SeoKeyword)
  5098. .HasColumnType("varchar(200)")
  5099. .HasCharSet("utf8")
  5100. .HasCollation("utf8_general_ci");
  5101. entity.Property(e => e.SeoTitle)
  5102. .HasColumnType("varchar(100)")
  5103. .HasCharSet("utf8")
  5104. .HasCollation("utf8_general_ci");
  5105. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5106. entity.Property(e => e.Status).HasColumnType("int(11)");
  5107. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5108. entity.Property(e => e.UpdateMan)
  5109. .HasColumnType("varchar(50)")
  5110. .HasCharSet("utf8")
  5111. .HasCollation("utf8_general_ci");
  5112. entity.Property(e => e.Version).HasColumnType("int(11)");
  5113. });
  5114. modelBuilder.Entity<ProfitObjectFloors>(entity =>
  5115. {
  5116. entity.Property(e => e.Id).HasColumnType("int(11)");
  5117. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5118. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5119. entity.Property(e => e.CreateMan)
  5120. .HasColumnType("varchar(50)")
  5121. .HasCharSet("utf8")
  5122. .HasCollation("utf8_general_ci");
  5123. entity.Property(e => e.FloorDiff)
  5124. .HasColumnType("bit(1)")
  5125. .HasDefaultValueSql("b'0'");
  5126. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5127. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5128. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5129. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5130. entity.Property(e => e.SeoDescription)
  5131. .HasColumnType("varchar(500)")
  5132. .HasCharSet("utf8")
  5133. .HasCollation("utf8_general_ci");
  5134. entity.Property(e => e.SeoKeyword)
  5135. .HasColumnType("varchar(200)")
  5136. .HasCharSet("utf8")
  5137. .HasCollation("utf8_general_ci");
  5138. entity.Property(e => e.SeoTitle)
  5139. .HasColumnType("varchar(100)")
  5140. .HasCharSet("utf8")
  5141. .HasCollation("utf8_general_ci");
  5142. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5143. entity.Property(e => e.Status).HasColumnType("int(11)");
  5144. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5145. entity.Property(e => e.UpdateMan)
  5146. .HasColumnType("varchar(50)")
  5147. .HasCharSet("utf8")
  5148. .HasCollation("utf8_general_ci");
  5149. entity.Property(e => e.Version).HasColumnType("int(11)");
  5150. });
  5151. modelBuilder.Entity<ProfitObjectLevelKinds>(entity =>
  5152. {
  5153. entity.Property(e => e.Id).HasColumnType("int(11)");
  5154. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5155. entity.Property(e => e.CreateMan)
  5156. .HasColumnType("varchar(50)")
  5157. .HasCharSet("utf8")
  5158. .HasCollation("utf8_general_ci");
  5159. entity.Property(e => e.Name)
  5160. .HasColumnType("varchar(50)")
  5161. .HasCharSet("utf8")
  5162. .HasCollation("utf8_general_ci");
  5163. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5164. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5165. entity.Property(e => e.SeoDescription)
  5166. .HasColumnType("varchar(500)")
  5167. .HasCharSet("utf8")
  5168. .HasCollation("utf8_general_ci");
  5169. entity.Property(e => e.SeoKeyword)
  5170. .HasColumnType("varchar(200)")
  5171. .HasCharSet("utf8")
  5172. .HasCollation("utf8_general_ci");
  5173. entity.Property(e => e.SeoTitle)
  5174. .HasColumnType("varchar(100)")
  5175. .HasCharSet("utf8")
  5176. .HasCollation("utf8_general_ci");
  5177. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5178. entity.Property(e => e.Status).HasColumnType("int(11)");
  5179. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5180. entity.Property(e => e.UpdateMan)
  5181. .HasColumnType("varchar(50)")
  5182. .HasCharSet("utf8")
  5183. .HasCollation("utf8_general_ci");
  5184. entity.Property(e => e.Version).HasColumnType("int(11)");
  5185. });
  5186. modelBuilder.Entity<ProfitObjectLevels>(entity =>
  5187. {
  5188. entity.Property(e => e.Id).HasColumnType("int(11)");
  5189. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5190. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5191. entity.Property(e => e.CreateMan)
  5192. .HasColumnType("varchar(50)")
  5193. .HasCharSet("utf8")
  5194. .HasCollation("utf8_general_ci");
  5195. entity.Property(e => e.DebitAddProfitVal).HasColumnType("decimal(18,2)");
  5196. entity.Property(e => e.DebitPercents).HasColumnType("decimal(18,2)");
  5197. entity.Property(e => e.KindId).HasColumnType("int(11)");
  5198. entity.Property(e => e.LevelDiff)
  5199. .HasColumnType("bit(1)")
  5200. .HasDefaultValueSql("b'0'");
  5201. entity.Property(e => e.LevelNumber).HasColumnType("int(11)");
  5202. entity.Property(e => e.Name)
  5203. .HasColumnType("varchar(50)")
  5204. .HasCharSet("utf8")
  5205. .HasCollation("utf8_general_ci");
  5206. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5207. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5208. entity.Property(e => e.SeoDescription)
  5209. .HasColumnType("varchar(500)")
  5210. .HasCharSet("utf8")
  5211. .HasCollation("utf8_general_ci");
  5212. entity.Property(e => e.SeoKeyword)
  5213. .HasColumnType("varchar(200)")
  5214. .HasCharSet("utf8")
  5215. .HasCollation("utf8_general_ci");
  5216. entity.Property(e => e.SeoTitle)
  5217. .HasColumnType("varchar(100)")
  5218. .HasCharSet("utf8")
  5219. .HasCollation("utf8_general_ci");
  5220. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5221. entity.Property(e => e.Status).HasColumnType("int(11)");
  5222. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5223. entity.Property(e => e.UpdateMan)
  5224. .HasColumnType("varchar(50)")
  5225. .HasCharSet("utf8")
  5226. .HasCollation("utf8_general_ci");
  5227. entity.Property(e => e.Version).HasColumnType("int(11)");
  5228. });
  5229. modelBuilder.Entity<ProfitObjects>(entity =>
  5230. {
  5231. entity.Property(e => e.Id).HasColumnType("int(11)");
  5232. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5233. entity.Property(e => e.CreateMan)
  5234. .HasColumnType("varchar(50)")
  5235. .HasCharSet("utf8")
  5236. .HasCollation("utf8_general_ci");
  5237. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5238. entity.Property(e => e.MaxFloor).HasColumnType("int(11)");
  5239. entity.Property(e => e.MaxLevel).HasColumnType("int(11)");
  5240. entity.Property(e => e.MaxLevelContinue)
  5241. .HasColumnType("bit(1)")
  5242. .HasDefaultValueSql("b'0'");
  5243. entity.Property(e => e.MinProfitVal).HasColumnType("decimal(18,5)");
  5244. entity.Property(e => e.Name)
  5245. .HasColumnType("varchar(50)")
  5246. .HasCharSet("utf8")
  5247. .HasCollation("utf8_general_ci");
  5248. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5249. entity.Property(e => e.SeoDescription)
  5250. .HasColumnType("varchar(500)")
  5251. .HasCharSet("utf8")
  5252. .HasCollation("utf8_general_ci");
  5253. entity.Property(e => e.SeoKeyword)
  5254. .HasColumnType("varchar(200)")
  5255. .HasCharSet("utf8")
  5256. .HasCollation("utf8_general_ci");
  5257. entity.Property(e => e.SeoTitle)
  5258. .HasColumnType("varchar(100)")
  5259. .HasCharSet("utf8")
  5260. .HasCollation("utf8_general_ci");
  5261. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5262. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5263. entity.Property(e => e.Status).HasColumnType("int(11)");
  5264. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5265. entity.Property(e => e.UpdateMan)
  5266. .HasColumnType("varchar(50)")
  5267. .HasCharSet("utf8")
  5268. .HasCollation("utf8_general_ci");
  5269. entity.Property(e => e.Version).HasColumnType("int(11)");
  5270. });
  5271. modelBuilder.Entity<ProfitObjectsActiveCheck>(entity =>
  5272. {
  5273. entity.HasKey(e => e.CheckData)
  5274. .HasName("PRIMARY");
  5275. entity.Property(e => e.CheckData)
  5276. .HasColumnType("varchar(100)")
  5277. .HasCharSet("utf8")
  5278. .HasCollation("utf8_general_ci");
  5279. });
  5280. modelBuilder.Entity<ProfitObjectsActiveParams>(entity =>
  5281. {
  5282. entity.Property(e => e.Id).HasColumnType("int(11)");
  5283. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5284. entity.Property(e => e.CreateMan)
  5285. .HasColumnType("varchar(50)")
  5286. .HasCharSet("utf8")
  5287. .HasCollation("utf8_general_ci");
  5288. entity.Property(e => e.Name)
  5289. .HasColumnType("varchar(50)")
  5290. .HasCharSet("utf8")
  5291. .HasCollation("utf8_general_ci");
  5292. entity.Property(e => e.ProfitObjectsActiveId).HasColumnType("int(11)");
  5293. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5294. entity.Property(e => e.Remark)
  5295. .HasColumnType("varchar(200)")
  5296. .HasCharSet("utf8")
  5297. .HasCollation("utf8_general_ci");
  5298. entity.Property(e => e.SeoDescription)
  5299. .HasColumnType("varchar(500)")
  5300. .HasCharSet("utf8")
  5301. .HasCollation("utf8_general_ci");
  5302. entity.Property(e => e.SeoKeyword)
  5303. .HasColumnType("varchar(200)")
  5304. .HasCharSet("utf8")
  5305. .HasCollation("utf8_general_ci");
  5306. entity.Property(e => e.SeoTitle)
  5307. .HasColumnType("varchar(100)")
  5308. .HasCharSet("utf8")
  5309. .HasCollation("utf8_general_ci");
  5310. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5311. entity.Property(e => e.Status).HasColumnType("int(11)");
  5312. entity.Property(e => e.TextValue)
  5313. .HasColumnType("varchar(20)")
  5314. .HasCharSet("utf8")
  5315. .HasCollation("utf8_general_ci");
  5316. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5317. entity.Property(e => e.UpdateMan)
  5318. .HasColumnType("varchar(50)")
  5319. .HasCharSet("utf8")
  5320. .HasCollation("utf8_general_ci");
  5321. entity.Property(e => e.Version).HasColumnType("int(11)");
  5322. });
  5323. modelBuilder.Entity<ProfitObjectsActives>(entity =>
  5324. {
  5325. entity.Property(e => e.Id).HasColumnType("int(11)");
  5326. entity.Property(e => e.CardType).HasColumnType("int(11)");
  5327. entity.Property(e => e.Code)
  5328. .HasColumnType("varchar(50)")
  5329. .HasCharSet("utf8")
  5330. .HasCollation("utf8_general_ci");
  5331. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5332. entity.Property(e => e.CreateMan)
  5333. .HasColumnType("varchar(50)")
  5334. .HasCharSet("utf8")
  5335. .HasCollation("utf8_general_ci");
  5336. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5337. entity.Property(e => e.FinishNumber).HasColumnType("decimal(18,6)");
  5338. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5339. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5340. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5341. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5342. entity.Property(e => e.Name)
  5343. .HasColumnType("varchar(50)")
  5344. .HasCharSet("utf8")
  5345. .HasCollation("utf8_general_ci");
  5346. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5347. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5348. entity.Property(e => e.ProfitNumber2).HasColumnType("decimal(18,2)");
  5349. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5350. entity.Property(e => e.SeoDescription)
  5351. .HasColumnType("varchar(500)")
  5352. .HasCharSet("utf8")
  5353. .HasCollation("utf8_general_ci");
  5354. entity.Property(e => e.SeoKeyword)
  5355. .HasColumnType("varchar(200)")
  5356. .HasCharSet("utf8")
  5357. .HasCollation("utf8_general_ci");
  5358. entity.Property(e => e.SeoTitle)
  5359. .HasColumnType("varchar(100)")
  5360. .HasCharSet("utf8")
  5361. .HasCollation("utf8_general_ci");
  5362. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5363. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5364. entity.Property(e => e.Status).HasColumnType("int(11)");
  5365. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5366. entity.Property(e => e.UpdateMan)
  5367. .HasColumnType("varchar(50)")
  5368. .HasCharSet("utf8")
  5369. .HasCollation("utf8_general_ci");
  5370. entity.Property(e => e.Version).HasColumnType("int(11)");
  5371. });
  5372. modelBuilder.Entity<ProfitObjectsActivesForId>(entity =>
  5373. {
  5374. entity.HasKey(e => e.Name)
  5375. .HasName("PRIMARY");
  5376. entity.Property(e => e.Name)
  5377. .HasColumnType("varchar(50)")
  5378. .HasCharSet("utf8")
  5379. .HasCollation("utf8_general_ci");
  5380. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  5381. });
  5382. modelBuilder.Entity<ProfitObjectsRule>(entity =>
  5383. {
  5384. entity.Property(e => e.Id).HasColumnType("int(11)");
  5385. entity.Property(e => e.Code)
  5386. .HasColumnType("varchar(50)")
  5387. .HasCharSet("utf8")
  5388. .HasCollation("utf8_general_ci");
  5389. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5390. entity.Property(e => e.CreateMan)
  5391. .HasColumnType("varchar(50)")
  5392. .HasCharSet("utf8")
  5393. .HasCollation("utf8_general_ci");
  5394. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5395. entity.Property(e => e.Name)
  5396. .HasColumnType("varchar(50)")
  5397. .HasCharSet("utf8")
  5398. .HasCollation("utf8_general_ci");
  5399. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5400. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5401. entity.Property(e => e.SeoDescription)
  5402. .HasColumnType("varchar(500)")
  5403. .HasCharSet("utf8")
  5404. .HasCollation("utf8_general_ci");
  5405. entity.Property(e => e.SeoKeyword)
  5406. .HasColumnType("varchar(200)")
  5407. .HasCharSet("utf8")
  5408. .HasCollation("utf8_general_ci");
  5409. entity.Property(e => e.SeoTitle)
  5410. .HasColumnType("varchar(100)")
  5411. .HasCharSet("utf8")
  5412. .HasCollation("utf8_general_ci");
  5413. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5414. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5415. entity.Property(e => e.Status).HasColumnType("int(11)");
  5416. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5417. entity.Property(e => e.UpdateMan)
  5418. .HasColumnType("varchar(50)")
  5419. .HasCharSet("utf8")
  5420. .HasCollation("utf8_general_ci");
  5421. entity.Property(e => e.Version).HasColumnType("int(11)");
  5422. });
  5423. modelBuilder.Entity<ProfitObjectsRuleDetails>(entity =>
  5424. {
  5425. entity.Property(e => e.Id).HasColumnType("int(11)");
  5426. entity.Property(e => e.Code)
  5427. .HasColumnType("varchar(50)")
  5428. .HasCharSet("utf8")
  5429. .HasCollation("utf8_general_ci");
  5430. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5431. entity.Property(e => e.CreateMan)
  5432. .HasColumnType("varchar(50)")
  5433. .HasCharSet("utf8")
  5434. .HasCollation("utf8_general_ci");
  5435. entity.Property(e => e.DataValue)
  5436. .HasColumnType("varchar(50)")
  5437. .HasCharSet("utf8")
  5438. .HasCollation("utf8_general_ci");
  5439. entity.Property(e => e.Name)
  5440. .HasColumnType("varchar(50)")
  5441. .HasCharSet("utf8")
  5442. .HasCollation("utf8_general_ci");
  5443. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5444. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  5445. entity.Property(e => e.SeoDescription)
  5446. .HasColumnType("varchar(500)")
  5447. .HasCharSet("utf8")
  5448. .HasCollation("utf8_general_ci");
  5449. entity.Property(e => e.SeoKeyword)
  5450. .HasColumnType("varchar(200)")
  5451. .HasCharSet("utf8")
  5452. .HasCollation("utf8_general_ci");
  5453. entity.Property(e => e.SeoTitle)
  5454. .HasColumnType("varchar(100)")
  5455. .HasCharSet("utf8")
  5456. .HasCollation("utf8_general_ci");
  5457. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5458. entity.Property(e => e.Status).HasColumnType("int(11)");
  5459. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5460. entity.Property(e => e.UpdateMan)
  5461. .HasColumnType("varchar(50)")
  5462. .HasCharSet("utf8")
  5463. .HasCollation("utf8_general_ci");
  5464. entity.Property(e => e.Version).HasColumnType("int(11)");
  5465. });
  5466. modelBuilder.Entity<ProfitReceiveRecord>(entity =>
  5467. {
  5468. entity.Property(e => e.Id).HasColumnType("int(11)");
  5469. entity.Property(e => e.Account)
  5470. .HasColumnType("varchar(32)")
  5471. .HasCharSet("utf8")
  5472. .HasCollation("utf8_general_ci");
  5473. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  5474. entity.Property(e => e.AppId)
  5475. .HasColumnType("varchar(32)")
  5476. .HasCharSet("utf8")
  5477. .HasCollation("utf8_general_ci");
  5478. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5479. entity.Property(e => e.CreateMan)
  5480. .HasColumnType("varchar(50)")
  5481. .HasCharSet("utf8")
  5482. .HasCollation("utf8_general_ci");
  5483. entity.Property(e => e.CustomRelation)
  5484. .HasColumnType("varchar(10)")
  5485. .HasCharSet("utf8")
  5486. .HasCollation("utf8_general_ci");
  5487. entity.Property(e => e.Description)
  5488. .HasColumnType("varchar(50)")
  5489. .HasCharSet("utf8")
  5490. .HasCollation("utf8_general_ci");
  5491. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5492. entity.Property(e => e.Name)
  5493. .HasColumnType("varchar(32)")
  5494. .HasCharSet("utf8")
  5495. .HasCollation("utf8_general_ci");
  5496. entity.Property(e => e.OrderId)
  5497. .HasColumnType("varchar(32)")
  5498. .HasCharSet("utf8")
  5499. .HasCollation("utf8_general_ci");
  5500. entity.Property(e => e.OutOrderNo)
  5501. .HasColumnType("varchar(32)")
  5502. .HasCharSet("utf8")
  5503. .HasCollation("utf8_general_ci");
  5504. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5505. entity.Property(e => e.RelationType)
  5506. .HasColumnType("varchar(30)")
  5507. .HasCharSet("utf8")
  5508. .HasCollation("utf8_general_ci");
  5509. entity.Property(e => e.SeoDescription)
  5510. .HasColumnType("varchar(500)")
  5511. .HasCharSet("utf8")
  5512. .HasCollation("utf8_general_ci");
  5513. entity.Property(e => e.SeoKeyword)
  5514. .HasColumnType("varchar(200)")
  5515. .HasCharSet("utf8")
  5516. .HasCollation("utf8_general_ci");
  5517. entity.Property(e => e.SeoTitle)
  5518. .HasColumnType("varchar(100)")
  5519. .HasCharSet("utf8")
  5520. .HasCollation("utf8_general_ci");
  5521. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5522. entity.Property(e => e.State)
  5523. .HasColumnType("varchar(20)")
  5524. .HasCharSet("utf8")
  5525. .HasCollation("utf8_general_ci");
  5526. entity.Property(e => e.Status).HasColumnType("int(11)");
  5527. entity.Property(e => e.SubAppId)
  5528. .HasColumnType("varchar(32)")
  5529. .HasCharSet("utf8")
  5530. .HasCollation("utf8_general_ci");
  5531. entity.Property(e => e.SubMchid)
  5532. .HasColumnType("varchar(32)")
  5533. .HasCharSet("utf8")
  5534. .HasCollation("utf8_general_ci");
  5535. entity.Property(e => e.TransactionId)
  5536. .HasColumnType("varchar(32)")
  5537. .HasCharSet("utf8")
  5538. .HasCollation("utf8_general_ci");
  5539. entity.Property(e => e.Type)
  5540. .HasColumnType("varchar(30)")
  5541. .HasCharSet("utf8")
  5542. .HasCollation("utf8_general_ci");
  5543. entity.Property(e => e.UnfreezeUnsplit)
  5544. .HasColumnType("bit(1)")
  5545. .HasDefaultValueSql("b'0'");
  5546. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5547. entity.Property(e => e.UpdateMan)
  5548. .HasColumnType("varchar(50)")
  5549. .HasCharSet("utf8")
  5550. .HasCollation("utf8_general_ci");
  5551. entity.Property(e => e.Version).HasColumnType("int(11)");
  5552. });
  5553. modelBuilder.Entity<ProfitReceives>(entity =>
  5554. {
  5555. entity.Property(e => e.Id).HasColumnType("int(11)");
  5556. entity.Property(e => e.Account)
  5557. .HasColumnType("varchar(32)")
  5558. .HasCharSet("utf8")
  5559. .HasCollation("utf8_general_ci");
  5560. entity.Property(e => e.AppId)
  5561. .HasColumnType("varchar(32)")
  5562. .HasCharSet("utf8")
  5563. .HasCollation("utf8_general_ci");
  5564. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5565. entity.Property(e => e.CreateMan)
  5566. .HasColumnType("varchar(50)")
  5567. .HasCharSet("utf8")
  5568. .HasCollation("utf8_general_ci");
  5569. entity.Property(e => e.CustomRelation)
  5570. .HasColumnType("varchar(10)")
  5571. .HasCharSet("utf8")
  5572. .HasCollation("utf8_general_ci");
  5573. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5574. entity.Property(e => e.Name)
  5575. .HasColumnType("varchar(32)")
  5576. .HasCharSet("utf8")
  5577. .HasCollation("utf8_general_ci");
  5578. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5579. entity.Property(e => e.RelationType)
  5580. .HasColumnType("varchar(30)")
  5581. .HasCharSet("utf8")
  5582. .HasCollation("utf8_general_ci");
  5583. entity.Property(e => e.SeoDescription)
  5584. .HasColumnType("varchar(500)")
  5585. .HasCharSet("utf8")
  5586. .HasCollation("utf8_general_ci");
  5587. entity.Property(e => e.SeoKeyword)
  5588. .HasColumnType("varchar(200)")
  5589. .HasCharSet("utf8")
  5590. .HasCollation("utf8_general_ci");
  5591. entity.Property(e => e.SeoTitle)
  5592. .HasColumnType("varchar(100)")
  5593. .HasCharSet("utf8")
  5594. .HasCollation("utf8_general_ci");
  5595. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5596. entity.Property(e => e.Status).HasColumnType("int(11)");
  5597. entity.Property(e => e.SubAppId)
  5598. .HasColumnType("varchar(32)")
  5599. .HasCharSet("utf8")
  5600. .HasCollation("utf8_general_ci");
  5601. entity.Property(e => e.SubMchid)
  5602. .HasColumnType("varchar(32)")
  5603. .HasCharSet("utf8")
  5604. .HasCollation("utf8_general_ci");
  5605. entity.Property(e => e.Type)
  5606. .HasColumnType("varchar(30)")
  5607. .HasCharSet("utf8")
  5608. .HasCollation("utf8_general_ci");
  5609. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5610. entity.Property(e => e.UpdateMan)
  5611. .HasColumnType("varchar(50)")
  5612. .HasCharSet("utf8")
  5613. .HasCollation("utf8_general_ci");
  5614. entity.Property(e => e.Version).HasColumnType("int(11)");
  5615. });
  5616. modelBuilder.Entity<ProfitRecord>(entity =>
  5617. {
  5618. entity.Property(e => e.Id).HasColumnType("int(11)");
  5619. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5620. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  5621. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  5622. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5623. entity.Property(e => e.CreateMan)
  5624. .HasColumnType("varchar(50)")
  5625. .HasCharSet("utf8")
  5626. .HasCollation("utf8_general_ci");
  5627. entity.Property(e => e.DirectFlag)
  5628. .HasColumnType("bit(1)")
  5629. .HasDefaultValueSql("b'0'");
  5630. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  5631. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  5632. entity.Property(e => e.MerHelpFlag)
  5633. .HasColumnType("bit(1)")
  5634. .HasDefaultValueSql("b'0'");
  5635. entity.Property(e => e.MerNo)
  5636. .HasColumnType("varchar(32)")
  5637. .HasCharSet("utf8")
  5638. .HasCollation("utf8_general_ci");
  5639. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5640. entity.Property(e => e.ParentNav)
  5641. .HasColumnType("varchar(1000)")
  5642. .HasCharSet("utf8")
  5643. .HasCollation("utf8_general_ci");
  5644. entity.Property(e => e.ProfitAmount).HasColumnType("decimal(18,2)");
  5645. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  5646. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5647. entity.Property(e => e.Remark)
  5648. .HasColumnType("varchar(64)")
  5649. .HasCharSet("utf8")
  5650. .HasCollation("utf8_general_ci");
  5651. entity.Property(e => e.SeoDescription)
  5652. .HasColumnType("varchar(500)")
  5653. .HasCharSet("utf8")
  5654. .HasCollation("utf8_general_ci");
  5655. entity.Property(e => e.SeoKeyword)
  5656. .HasColumnType("varchar(200)")
  5657. .HasCharSet("utf8")
  5658. .HasCollation("utf8_general_ci");
  5659. entity.Property(e => e.SeoTitle)
  5660. .HasColumnType("varchar(100)")
  5661. .HasCharSet("utf8")
  5662. .HasCollation("utf8_general_ci");
  5663. entity.Property(e => e.SnNo)
  5664. .HasColumnType("varchar(32)")
  5665. .HasCharSet("utf8")
  5666. .HasCollation("utf8_general_ci");
  5667. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5668. entity.Property(e => e.Status).HasColumnType("int(11)");
  5669. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  5670. entity.Property(e => e.TradeId).HasColumnType("int(11)");
  5671. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5672. entity.Property(e => e.UpdateMan)
  5673. .HasColumnType("varchar(50)")
  5674. .HasCharSet("utf8")
  5675. .HasCollation("utf8_general_ci");
  5676. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5677. entity.Property(e => e.Version).HasColumnType("int(11)");
  5678. });
  5679. modelBuilder.Entity<ProfitRewardRecord>(entity =>
  5680. {
  5681. entity.Property(e => e.Id).HasColumnType("int(11)");
  5682. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5683. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  5684. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5685. entity.Property(e => e.CreateMan)
  5686. .HasColumnType("varchar(50)")
  5687. .HasCharSet("utf8")
  5688. .HasCollation("utf8_general_ci");
  5689. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5690. entity.Property(e => e.CreditTradeProfit).HasColumnType("decimal(18,2)");
  5691. entity.Property(e => e.DebitCapSingleReward).HasColumnType("decimal(18,2)");
  5692. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  5693. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  5694. entity.Property(e => e.DebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5695. entity.Property(e => e.DebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5696. entity.Property(e => e.DebitTradeCapProfit).HasColumnType("decimal(18,2)");
  5697. entity.Property(e => e.HelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5698. entity.Property(e => e.HelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5699. entity.Property(e => e.HelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5700. entity.Property(e => e.HelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5701. entity.Property(e => e.HelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5702. entity.Property(e => e.HelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5703. entity.Property(e => e.HelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5704. entity.Property(e => e.HelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5705. entity.Property(e => e.HelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5706. entity.Property(e => e.HelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5707. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5708. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5709. entity.Property(e => e.NonQrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5710. entity.Property(e => e.NonQrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5711. entity.Property(e => e.NonQrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5712. entity.Property(e => e.NotHelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5713. entity.Property(e => e.NotHelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5714. entity.Property(e => e.NotHelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5715. entity.Property(e => e.NotHelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5716. entity.Property(e => e.NotHelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5717. entity.Property(e => e.NotHelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5718. entity.Property(e => e.NotHelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5719. entity.Property(e => e.NotHelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5720. entity.Property(e => e.NotHelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5721. entity.Property(e => e.NotHelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5722. entity.Property(e => e.OtherCreditTradeAmt).HasColumnType("decimal(18,2)");
  5723. entity.Property(e => e.OtherDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5724. entity.Property(e => e.OtherTradeAmt).HasColumnType("decimal(18,2)");
  5725. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  5726. entity.Property(e => e.QrCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5727. entity.Property(e => e.QrCreditProfitRate).HasColumnType("decimal(18,2)");
  5728. entity.Property(e => e.QrCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5729. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5730. entity.Property(e => e.QrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5731. entity.Property(e => e.QrDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5732. entity.Property(e => e.QrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5733. entity.Property(e => e.QrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5734. entity.Property(e => e.QrDebitProfitRate).HasColumnType("decimal(18,2)");
  5735. entity.Property(e => e.QrDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5736. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5737. entity.Property(e => e.RecordNo)
  5738. .HasColumnType("varchar(32)")
  5739. .HasCharSet("utf8")
  5740. .HasCollation("utf8_general_ci");
  5741. entity.Property(e => e.Remark)
  5742. .HasColumnType("varchar(64)")
  5743. .HasCharSet("utf8")
  5744. .HasCollation("utf8_general_ci");
  5745. entity.Property(e => e.SeoDescription)
  5746. .HasColumnType("varchar(500)")
  5747. .HasCharSet("utf8")
  5748. .HasCollation("utf8_general_ci");
  5749. entity.Property(e => e.SeoKeyword)
  5750. .HasColumnType("varchar(200)")
  5751. .HasCharSet("utf8")
  5752. .HasCollation("utf8_general_ci");
  5753. entity.Property(e => e.SeoTitle)
  5754. .HasColumnType("varchar(100)")
  5755. .HasCharSet("utf8")
  5756. .HasCollation("utf8_general_ci");
  5757. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5758. entity.Property(e => e.Status).HasColumnType("int(11)");
  5759. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  5760. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  5761. entity.Property(e => e.TradeMonth)
  5762. .HasColumnType("varchar(6)")
  5763. .HasCharSet("utf8")
  5764. .HasCollation("utf8_general_ci");
  5765. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  5766. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5767. entity.Property(e => e.UpdateMan)
  5768. .HasColumnType("varchar(50)")
  5769. .HasCharSet("utf8")
  5770. .HasCollation("utf8_general_ci");
  5771. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5772. entity.Property(e => e.Version).HasColumnType("int(11)");
  5773. });
  5774. modelBuilder.Entity<ProfitSubsidyDetail>(entity =>
  5775. {
  5776. entity.Property(e => e.Id).HasColumnType("int(11)");
  5777. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  5778. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5779. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5780. entity.Property(e => e.CreateMan)
  5781. .HasColumnType("varchar(50)")
  5782. .HasCharSet("utf8")
  5783. .HasCollation("utf8_general_ci");
  5784. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  5785. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5786. entity.Property(e => e.MerHelpFlag)
  5787. .HasColumnType("bit(1)")
  5788. .HasDefaultValueSql("b'0'");
  5789. entity.Property(e => e.MerNo)
  5790. .HasColumnType("varchar(32)")
  5791. .HasCharSet("utf8")
  5792. .HasCollation("utf8_general_ci");
  5793. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  5794. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  5795. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5796. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5797. entity.Property(e => e.ProductName)
  5798. .HasColumnType("varchar(16)")
  5799. .HasCharSet("utf8")
  5800. .HasCollation("utf8_general_ci");
  5801. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5802. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5803. entity.Property(e => e.RecordNo)
  5804. .HasColumnType("varchar(32)")
  5805. .HasCharSet("utf8")
  5806. .HasCollation("utf8_general_ci");
  5807. entity.Property(e => e.Remark)
  5808. .HasColumnType("varchar(64)")
  5809. .HasCharSet("utf8")
  5810. .HasCollation("utf8_general_ci");
  5811. entity.Property(e => e.SeoDescription)
  5812. .HasColumnType("varchar(500)")
  5813. .HasCharSet("utf8")
  5814. .HasCollation("utf8_general_ci");
  5815. entity.Property(e => e.SeoKeyword)
  5816. .HasColumnType("varchar(200)")
  5817. .HasCharSet("utf8")
  5818. .HasCollation("utf8_general_ci");
  5819. entity.Property(e => e.SeoTitle)
  5820. .HasColumnType("varchar(100)")
  5821. .HasCharSet("utf8")
  5822. .HasCollation("utf8_general_ci");
  5823. entity.Property(e => e.SnNo)
  5824. .HasColumnType("varchar(32)")
  5825. .HasCharSet("utf8")
  5826. .HasCollation("utf8_general_ci");
  5827. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5828. entity.Property(e => e.Status).HasColumnType("int(11)");
  5829. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  5830. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  5831. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  5832. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  5833. entity.Property(e => e.TradeMonth)
  5834. .HasColumnType("varchar(6)")
  5835. .HasCharSet("utf8")
  5836. .HasCollation("utf8_general_ci");
  5837. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5838. entity.Property(e => e.UpdateMan)
  5839. .HasColumnType("varchar(50)")
  5840. .HasCharSet("utf8")
  5841. .HasCollation("utf8_general_ci");
  5842. entity.Property(e => e.Version).HasColumnType("int(11)");
  5843. });
  5844. modelBuilder.Entity<PublicAccountSet>(entity =>
  5845. {
  5846. entity.Property(e => e.Id).HasColumnType("int(11)");
  5847. entity.Property(e => e.AlipayAppId)
  5848. .HasColumnType("varchar(50)")
  5849. .HasCharSet("utf8")
  5850. .HasCollation("utf8_general_ci");
  5851. entity.Property(e => e.AlipayPartnerId)
  5852. .HasColumnType("varchar(50)")
  5853. .HasCharSet("utf8")
  5854. .HasCollation("utf8_general_ci");
  5855. entity.Property(e => e.AlipayPrivateKey)
  5856. .HasColumnType("mediumtext")
  5857. .HasCharSet("utf8")
  5858. .HasCollation("utf8_general_ci");
  5859. entity.Property(e => e.AlipayPublicKey)
  5860. .HasColumnType("mediumtext")
  5861. .HasCharSet("utf8")
  5862. .HasCollation("utf8_general_ci");
  5863. entity.Property(e => e.AliyunAccessKeyId)
  5864. .HasColumnType("varchar(50)")
  5865. .HasCharSet("utf8")
  5866. .HasCollation("utf8_general_ci");
  5867. entity.Property(e => e.AliyunAccessKeySecret)
  5868. .HasColumnType("varchar(50)")
  5869. .HasCharSet("utf8")
  5870. .HasCollation("utf8_general_ci");
  5871. entity.Property(e => e.AliyunAndroidActivity)
  5872. .HasColumnType("varchar(100)")
  5873. .HasCharSet("utf8")
  5874. .HasCollation("utf8_general_ci");
  5875. entity.Property(e => e.AliyunAndroidNotifyTitle)
  5876. .HasColumnType("varchar(20)")
  5877. .HasCharSet("utf8")
  5878. .HasCollation("utf8_general_ci");
  5879. entity.Property(e => e.AliyunPushAndroidAppId)
  5880. .HasColumnType("varchar(50)")
  5881. .HasCharSet("utf8")
  5882. .HasCollation("utf8_general_ci");
  5883. entity.Property(e => e.AliyunPushAndroidAppSecret)
  5884. .HasColumnType("varchar(50)")
  5885. .HasCharSet("utf8")
  5886. .HasCollation("utf8_general_ci");
  5887. entity.Property(e => e.AliyunPushIosAppId)
  5888. .HasColumnType("varchar(500)")
  5889. .HasCharSet("utf8")
  5890. .HasCollation("utf8_general_ci");
  5891. entity.Property(e => e.AliyunPushIosAppSecret)
  5892. .HasColumnType("varchar(50)")
  5893. .HasCharSet("utf8")
  5894. .HasCollation("utf8_general_ci");
  5895. entity.Property(e => e.AliyunRegionId)
  5896. .HasColumnType("varchar(30)")
  5897. .HasCharSet("utf8")
  5898. .HasCollation("utf8_general_ci");
  5899. entity.Property(e => e.ErpApiUrl)
  5900. .HasColumnType("varchar(200)")
  5901. .HasCharSet("utf8")
  5902. .HasCollation("utf8_general_ci");
  5903. entity.Property(e => e.ErpAppCode)
  5904. .HasColumnType("varchar(100)")
  5905. .HasCharSet("utf8")
  5906. .HasCollation("utf8_general_ci");
  5907. entity.Property(e => e.MeiQiaAppKey)
  5908. .HasColumnType("varchar(50)")
  5909. .HasCharSet("utf8")
  5910. .HasCollation("utf8_general_ci");
  5911. entity.Property(e => e.MobAppKey)
  5912. .HasColumnType("varchar(50)")
  5913. .HasCharSet("utf8")
  5914. .HasCollation("utf8_general_ci");
  5915. entity.Property(e => e.MobAppSecret)
  5916. .HasColumnType("varchar(50)")
  5917. .HasCharSet("utf8")
  5918. .HasCollation("utf8_general_ci");
  5919. entity.Property(e => e.QqAndroidAppId)
  5920. .HasColumnType("varchar(50)")
  5921. .HasCharSet("utf8")
  5922. .HasCollation("utf8_general_ci");
  5923. entity.Property(e => e.QqAndroidAppKey)
  5924. .HasColumnType("varchar(50)")
  5925. .HasCharSet("utf8")
  5926. .HasCollation("utf8_general_ci");
  5927. entity.Property(e => e.QqIosAppId)
  5928. .HasColumnType("varchar(50)")
  5929. .HasCharSet("utf8")
  5930. .HasCollation("utf8_general_ci");
  5931. entity.Property(e => e.QqIosAppKey)
  5932. .HasColumnType("varchar(50)")
  5933. .HasCharSet("utf8")
  5934. .HasCollation("utf8_general_ci");
  5935. entity.Property(e => e.ServerIp)
  5936. .HasColumnType("varchar(15)")
  5937. .HasCharSet("utf8")
  5938. .HasCollation("utf8_general_ci");
  5939. entity.Property(e => e.SmsApiDefaultTemplate)
  5940. .HasColumnType("varchar(200)")
  5941. .HasCharSet("utf8")
  5942. .HasCollation("utf8_general_ci");
  5943. entity.Property(e => e.SmsApiPwd)
  5944. .HasColumnType("varchar(50)")
  5945. .HasCharSet("utf8")
  5946. .HasCollation("utf8_general_ci");
  5947. entity.Property(e => e.SmsApiSign)
  5948. .HasColumnType("varchar(10)")
  5949. .HasCharSet("utf8")
  5950. .HasCollation("utf8_general_ci");
  5951. entity.Property(e => e.SmsApiUserId)
  5952. .HasColumnType("varchar(50)")
  5953. .HasCharSet("utf8")
  5954. .HasCollation("utf8_general_ci");
  5955. entity.Property(e => e.WeChatAppId)
  5956. .HasColumnType("varchar(50)")
  5957. .HasCharSet("utf8")
  5958. .HasCollation("utf8_general_ci");
  5959. entity.Property(e => e.WeChatAppSecret)
  5960. .HasColumnType("varchar(50)")
  5961. .HasCharSet("utf8")
  5962. .HasCollation("utf8_general_ci");
  5963. entity.Property(e => e.WeChatMchId)
  5964. .HasColumnType("varchar(20)")
  5965. .HasCharSet("utf8")
  5966. .HasCollation("utf8_general_ci");
  5967. entity.Property(e => e.WeChatMiniAppId)
  5968. .HasColumnType("varchar(50)")
  5969. .HasCharSet("utf8")
  5970. .HasCollation("utf8_general_ci");
  5971. entity.Property(e => e.WeChatMiniAppSecret)
  5972. .HasColumnType("varchar(50)")
  5973. .HasCharSet("utf8")
  5974. .HasCollation("utf8_general_ci");
  5975. entity.Property(e => e.WeChatOpenAppId)
  5976. .HasColumnType("varchar(50)")
  5977. .HasCharSet("utf8")
  5978. .HasCollation("utf8_general_ci");
  5979. entity.Property(e => e.WeChatOpenAppSecret)
  5980. .HasColumnType("varchar(50)")
  5981. .HasCharSet("utf8")
  5982. .HasCollation("utf8_general_ci");
  5983. entity.Property(e => e.WeChatPayKey)
  5984. .HasColumnType("varchar(50)")
  5985. .HasCharSet("utf8")
  5986. .HasCollation("utf8_general_ci");
  5987. });
  5988. modelBuilder.Entity<PullNewAct>(entity =>
  5989. {
  5990. entity.Property(e => e.Id).HasColumnType("int(11)");
  5991. entity.Property(e => e.ActEffectEndDate).HasColumnType("datetime");
  5992. entity.Property(e => e.ActEffectStartDate).HasColumnType("datetime");
  5993. entity.Property(e => e.ActStdCond)
  5994. .HasColumnType("varchar(32)")
  5995. .HasCharSet("utf8")
  5996. .HasCollation("utf8_general_ci");
  5997. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5998. entity.Property(e => e.CreateMan)
  5999. .HasColumnType("varchar(50)")
  6000. .HasCharSet("utf8")
  6001. .HasCollation("utf8_general_ci");
  6002. entity.Property(e => e.ProductName)
  6003. .HasColumnType("varchar(32)")
  6004. .HasCharSet("utf8")
  6005. .HasCollation("utf8_general_ci");
  6006. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6007. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6008. entity.Property(e => e.Remark)
  6009. .HasColumnType("varchar(128)")
  6010. .HasCharSet("utf8")
  6011. .HasCollation("utf8_general_ci");
  6012. entity.Property(e => e.SeoDescription)
  6013. .HasColumnType("varchar(500)")
  6014. .HasCharSet("utf8")
  6015. .HasCollation("utf8_general_ci");
  6016. entity.Property(e => e.SeoKeyword)
  6017. .HasColumnType("varchar(200)")
  6018. .HasCharSet("utf8")
  6019. .HasCollation("utf8_general_ci");
  6020. entity.Property(e => e.SeoTitle)
  6021. .HasColumnType("varchar(100)")
  6022. .HasCharSet("utf8")
  6023. .HasCollation("utf8_general_ci");
  6024. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  6025. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6026. entity.Property(e => e.Status).HasColumnType("int(11)");
  6027. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6028. entity.Property(e => e.UpdateMan)
  6029. .HasColumnType("varchar(50)")
  6030. .HasCharSet("utf8")
  6031. .HasCollation("utf8_general_ci");
  6032. entity.Property(e => e.Version).HasColumnType("int(11)");
  6033. });
  6034. modelBuilder.Entity<PullNewDetail>(entity =>
  6035. {
  6036. entity.Property(e => e.Id).HasColumnType("int(11)");
  6037. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6038. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6039. entity.Property(e => e.CreateMan)
  6040. .HasColumnType("varchar(50)")
  6041. .HasCharSet("utf8")
  6042. .HasCollation("utf8_general_ci");
  6043. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6044. entity.Property(e => e.RecMallBrandId).HasColumnType("int(11)");
  6045. entity.Property(e => e.RecMallOrder)
  6046. .HasColumnType("varchar(32)")
  6047. .HasCharSet("utf8")
  6048. .HasCollation("utf8_general_ci");
  6049. entity.Property(e => e.RecMallOrderTime).HasColumnType("datetime");
  6050. entity.Property(e => e.RecMallProductName)
  6051. .HasColumnType("varchar(32)")
  6052. .HasCharSet("utf8")
  6053. .HasCollation("utf8_general_ci");
  6054. entity.Property(e => e.RecMallProductNum).HasColumnType("int(11)");
  6055. entity.Property(e => e.RecMallSendTime).HasColumnType("datetime");
  6056. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  6057. entity.Property(e => e.RecUserType).HasColumnType("int(11)");
  6058. entity.Property(e => e.RegDate).HasColumnType("datetime");
  6059. entity.Property(e => e.Remark)
  6060. .HasColumnType("varchar(64)")
  6061. .HasCharSet("utf8")
  6062. .HasCollation("utf8_general_ci");
  6063. entity.Property(e => e.RewardStatus).HasColumnType("int(11)");
  6064. entity.Property(e => e.SeoDescription)
  6065. .HasColumnType("varchar(500)")
  6066. .HasCharSet("utf8")
  6067. .HasCollation("utf8_general_ci");
  6068. entity.Property(e => e.SeoKeyword)
  6069. .HasColumnType("varchar(200)")
  6070. .HasCharSet("utf8")
  6071. .HasCollation("utf8_general_ci");
  6072. entity.Property(e => e.SeoTitle)
  6073. .HasColumnType("varchar(100)")
  6074. .HasCharSet("utf8")
  6075. .HasCollation("utf8_general_ci");
  6076. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6077. entity.Property(e => e.StatDate)
  6078. .HasColumnType("varchar(8)")
  6079. .HasCharSet("utf8")
  6080. .HasCollation("utf8_general_ci");
  6081. entity.Property(e => e.StatMonth)
  6082. .HasColumnType("varchar(6)")
  6083. .HasCharSet("utf8")
  6084. .HasCollation("utf8_general_ci");
  6085. entity.Property(e => e.StatType).HasColumnType("int(11)");
  6086. entity.Property(e => e.Status).HasColumnType("int(11)");
  6087. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6088. entity.Property(e => e.UpdateMan)
  6089. .HasColumnType("varchar(50)")
  6090. .HasCharSet("utf8")
  6091. .HasCollation("utf8_general_ci");
  6092. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6093. entity.Property(e => e.Version).HasColumnType("int(11)");
  6094. });
  6095. modelBuilder.Entity<PullnewSummary>(entity =>
  6096. {
  6097. entity.Property(e => e.Id).HasColumnType("int(11)");
  6098. entity.Property(e => e.BizSnDelayDay).HasColumnType("int(11)");
  6099. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6100. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6101. entity.Property(e => e.CreateMan)
  6102. .HasColumnType("varchar(50)")
  6103. .HasCharSet("utf8")
  6104. .HasCollation("utf8_general_ci");
  6105. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6106. entity.Property(e => e.RecUserAuthNum).HasColumnType("int(11)");
  6107. entity.Property(e => e.RecUserDeliveryStdNum).HasColumnType("int(11)");
  6108. entity.Property(e => e.Remark)
  6109. .HasColumnType("varchar(64)")
  6110. .HasCharSet("utf8")
  6111. .HasCollation("utf8_general_ci");
  6112. entity.Property(e => e.RuleSnDelayDay).HasColumnType("int(11)");
  6113. entity.Property(e => e.SeoDescription)
  6114. .HasColumnType("varchar(500)")
  6115. .HasCharSet("utf8")
  6116. .HasCollation("utf8_general_ci");
  6117. entity.Property(e => e.SeoKeyword)
  6118. .HasColumnType("varchar(200)")
  6119. .HasCharSet("utf8")
  6120. .HasCollation("utf8_general_ci");
  6121. entity.Property(e => e.SeoTitle)
  6122. .HasColumnType("varchar(100)")
  6123. .HasCharSet("utf8")
  6124. .HasCollation("utf8_general_ci");
  6125. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6126. entity.Property(e => e.StatDate)
  6127. .HasColumnType("varchar(8)")
  6128. .HasCharSet("utf8")
  6129. .HasCollation("utf8_general_ci");
  6130. entity.Property(e => e.StatMonth)
  6131. .HasColumnType("varchar(6)")
  6132. .HasCharSet("utf8")
  6133. .HasCollation("utf8_general_ci");
  6134. entity.Property(e => e.Status).HasColumnType("int(11)");
  6135. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6136. entity.Property(e => e.UpdateMan)
  6137. .HasColumnType("varchar(50)")
  6138. .HasCharSet("utf8")
  6139. .HasCollation("utf8_general_ci");
  6140. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6141. entity.Property(e => e.Version).HasColumnType("int(11)");
  6142. });
  6143. modelBuilder.Entity<RightDic>(entity =>
  6144. {
  6145. entity.Property(e => e.Id)
  6146. .HasColumnName("ID")
  6147. .HasColumnType("varchar(50)")
  6148. .HasCharSet("utf8")
  6149. .HasCollation("utf8_general_ci");
  6150. entity.Property(e => e.Icon)
  6151. .HasColumnType("varchar(50)")
  6152. .HasCharSet("utf8")
  6153. .HasCollation("utf8_general_ci");
  6154. entity.Property(e => e.MainDataList)
  6155. .HasColumnType("bit(1)")
  6156. .HasDefaultValueSql("b'0'");
  6157. entity.Property(e => e.MainMenu)
  6158. .HasColumnType("bit(1)")
  6159. .HasDefaultValueSql("b'0'");
  6160. entity.Property(e => e.MainStat)
  6161. .HasColumnType("bit(1)")
  6162. .HasDefaultValueSql("b'0'");
  6163. entity.Property(e => e.Name)
  6164. .HasColumnType("varchar(50)")
  6165. .HasCharSet("utf8")
  6166. .HasCollation("utf8_general_ci");
  6167. entity.Property(e => e.OtherRight)
  6168. .HasColumnType("varchar(500)")
  6169. .HasCharSet("utf8")
  6170. .HasCollation("utf8_general_ci");
  6171. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  6172. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6173. entity.Property(e => e.Url)
  6174. .HasColumnType("varchar(200)")
  6175. .HasCharSet("utf8")
  6176. .HasCollation("utf8_general_ci");
  6177. });
  6178. modelBuilder.Entity<ServiceCenter>(entity =>
  6179. {
  6180. entity.Property(e => e.Id).HasColumnType("int(11)");
  6181. entity.Property(e => e.CategoryId).HasColumnType("int(11)");
  6182. entity.Property(e => e.Content)
  6183. .HasColumnType("longtext")
  6184. .HasCharSet("utf8")
  6185. .HasCollation("utf8_general_ci");
  6186. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6187. entity.Property(e => e.CreateMan)
  6188. .HasColumnType("varchar(50)")
  6189. .HasCharSet("utf8")
  6190. .HasCollation("utf8_general_ci");
  6191. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6192. entity.Property(e => e.SeoDescription)
  6193. .HasColumnType("varchar(500)")
  6194. .HasCharSet("utf8")
  6195. .HasCollation("utf8_general_ci");
  6196. entity.Property(e => e.SeoKeyword)
  6197. .HasColumnType("varchar(200)")
  6198. .HasCharSet("utf8")
  6199. .HasCollation("utf8_general_ci");
  6200. entity.Property(e => e.SeoTitle)
  6201. .HasColumnType("varchar(100)")
  6202. .HasCharSet("utf8")
  6203. .HasCollation("utf8_general_ci");
  6204. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6205. entity.Property(e => e.Status).HasColumnType("int(11)");
  6206. entity.Property(e => e.SubTitle)
  6207. .HasColumnType("varchar(50)")
  6208. .HasCharSet("utf8")
  6209. .HasCollation("utf8_general_ci");
  6210. entity.Property(e => e.Title)
  6211. .HasColumnType("varchar(50)")
  6212. .HasCharSet("utf8")
  6213. .HasCollation("utf8_general_ci");
  6214. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6215. entity.Property(e => e.UpdateMan)
  6216. .HasColumnType("varchar(50)")
  6217. .HasCharSet("utf8")
  6218. .HasCollation("utf8_general_ci");
  6219. entity.Property(e => e.Version).HasColumnType("int(11)");
  6220. });
  6221. modelBuilder.Entity<StoreBalance>(entity =>
  6222. {
  6223. entity.Property(e => e.Id).HasColumnType("int(11)");
  6224. entity.Property(e => e.AfterLaveNum).HasColumnType("int(11)");
  6225. entity.Property(e => e.AfterOutNum).HasColumnType("int(11)");
  6226. entity.Property(e => e.AfterTotalNum).HasColumnType("int(11)");
  6227. entity.Property(e => e.BeforeLaveNum).HasColumnType("int(11)");
  6228. entity.Property(e => e.BeforeOutNum).HasColumnType("int(11)");
  6229. entity.Property(e => e.BeforeTotalNum).HasColumnType("int(11)");
  6230. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6231. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6232. entity.Property(e => e.CreateMan)
  6233. .HasColumnType("varchar(50)")
  6234. .HasCharSet("utf8")
  6235. .HasCollation("utf8_general_ci");
  6236. entity.Property(e => e.OpStoreNum).HasColumnType("int(11)");
  6237. entity.Property(e => e.OpSymbol)
  6238. .HasColumnType("varchar(1)")
  6239. .HasCharSet("utf8")
  6240. .HasCollation("utf8_general_ci");
  6241. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6242. entity.Property(e => e.SeoDescription)
  6243. .HasColumnType("varchar(500)")
  6244. .HasCharSet("utf8")
  6245. .HasCollation("utf8_general_ci");
  6246. entity.Property(e => e.SeoKeyword)
  6247. .HasColumnType("varchar(200)")
  6248. .HasCharSet("utf8")
  6249. .HasCollation("utf8_general_ci");
  6250. entity.Property(e => e.SeoTitle)
  6251. .HasColumnType("varchar(100)")
  6252. .HasCharSet("utf8")
  6253. .HasCollation("utf8_general_ci");
  6254. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6255. entity.Property(e => e.Status).HasColumnType("int(11)");
  6256. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6257. entity.Property(e => e.TransRecordNo)
  6258. .HasColumnType("varchar(32)")
  6259. .HasCharSet("utf8")
  6260. .HasCollation("utf8_general_ci");
  6261. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6262. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6263. entity.Property(e => e.UpdateMan)
  6264. .HasColumnType("varchar(50)")
  6265. .HasCharSet("utf8")
  6266. .HasCollation("utf8_general_ci");
  6267. entity.Property(e => e.Version).HasColumnType("int(11)");
  6268. });
  6269. modelBuilder.Entity<StoreChangeHistory>(entity =>
  6270. {
  6271. entity.Property(e => e.Id).HasColumnType("int(11)");
  6272. entity.Property(e => e.BizBatchNo)
  6273. .HasColumnType("varchar(32)")
  6274. .HasCharSet("utf8")
  6275. .HasCollation("utf8_general_ci");
  6276. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6277. entity.Property(e => e.ChangeRecordNo)
  6278. .HasColumnType("varchar(32)")
  6279. .HasCharSet("utf8")
  6280. .HasCollation("utf8_general_ci");
  6281. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6282. entity.Property(e => e.CreateMan)
  6283. .HasColumnType("varchar(50)")
  6284. .HasCharSet("utf8")
  6285. .HasCollation("utf8_general_ci");
  6286. entity.Property(e => e.DeviceModel)
  6287. .HasColumnType("varchar(32)")
  6288. .HasCharSet("utf8")
  6289. .HasCollation("utf8_general_ci");
  6290. entity.Property(e => e.DeviceType)
  6291. .HasColumnType("varchar(32)")
  6292. .HasCharSet("utf8")
  6293. .HasCollation("utf8_general_ci");
  6294. entity.Property(e => e.DeviceVendor)
  6295. .HasColumnType("varchar(32)")
  6296. .HasCharSet("utf8")
  6297. .HasCollation("utf8_general_ci");
  6298. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6299. entity.Property(e => e.FromRemark)
  6300. .HasColumnType("varchar(64)")
  6301. .HasCharSet("utf8")
  6302. .HasCollation("utf8_general_ci");
  6303. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6304. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6305. entity.Property(e => e.SeoDescription)
  6306. .HasColumnType("varchar(500)")
  6307. .HasCharSet("utf8")
  6308. .HasCollation("utf8_general_ci");
  6309. entity.Property(e => e.SeoKeyword)
  6310. .HasColumnType("varchar(200)")
  6311. .HasCharSet("utf8")
  6312. .HasCollation("utf8_general_ci");
  6313. entity.Property(e => e.SeoTitle)
  6314. .HasColumnType("varchar(100)")
  6315. .HasCharSet("utf8")
  6316. .HasCollation("utf8_general_ci");
  6317. entity.Property(e => e.SnNo)
  6318. .HasColumnType("varchar(32)")
  6319. .HasCharSet("utf8")
  6320. .HasCollation("utf8_general_ci");
  6321. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6322. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6323. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6324. entity.Property(e => e.Status).HasColumnType("int(11)");
  6325. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6326. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6327. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6328. entity.Property(e => e.ToRemark)
  6329. .HasColumnType("varchar(64)")
  6330. .HasCharSet("utf8")
  6331. .HasCollation("utf8_general_ci");
  6332. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6333. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6334. entity.Property(e => e.TransType).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<StoreForCode>(entity =>
  6344. {
  6345. entity.HasKey(e => e.Code)
  6346. .HasName("PRIMARY");
  6347. entity.Property(e => e.Code)
  6348. .HasColumnType("varchar(30)")
  6349. .HasCharSet("utf8")
  6350. .HasCollation("utf8_general_ci");
  6351. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6352. });
  6353. modelBuilder.Entity<StoreForName>(entity =>
  6354. {
  6355. entity.HasKey(e => e.Name)
  6356. .HasName("PRIMARY");
  6357. entity.Property(e => e.Name)
  6358. .HasColumnType("varchar(30)")
  6359. .HasCharSet("utf8")
  6360. .HasCollation("utf8_general_ci");
  6361. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6362. });
  6363. modelBuilder.Entity<StoreHouse>(entity =>
  6364. {
  6365. entity.Property(e => e.Id).HasColumnType("int(11)");
  6366. entity.Property(e => e.Address)
  6367. .HasColumnType("varchar(128)")
  6368. .HasCharSet("utf8")
  6369. .HasCollation("utf8_general_ci");
  6370. entity.Property(e => e.Areas)
  6371. .HasColumnType("varchar(30)")
  6372. .HasCharSet("utf8")
  6373. .HasCollation("utf8_general_ci");
  6374. entity.Property(e => e.BrandId)
  6375. .HasColumnType("varchar(30)")
  6376. .HasCharSet("utf8")
  6377. .HasCollation("utf8_general_ci");
  6378. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6379. entity.Property(e => e.CreateMan)
  6380. .HasColumnType("varchar(50)")
  6381. .HasCharSet("utf8")
  6382. .HasCollation("utf8_general_ci");
  6383. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  6384. entity.Property(e => e.LimitTopUserId)
  6385. .HasColumnType("varchar(100)")
  6386. .HasCharSet("utf8")
  6387. .HasCollation("utf8_general_ci");
  6388. entity.Property(e => e.ManageMobile)
  6389. .HasColumnType("varchar(11)")
  6390. .HasCharSet("utf8")
  6391. .HasCollation("utf8_general_ci");
  6392. entity.Property(e => e.ManageUserId).HasColumnType("int(11)");
  6393. entity.Property(e => e.ManagerEmail)
  6394. .HasColumnType("varchar(32)")
  6395. .HasCharSet("utf8")
  6396. .HasCollation("utf8_general_ci");
  6397. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  6398. entity.Property(e => e.ParentNav)
  6399. .HasColumnType("longtext")
  6400. .HasCharSet("utf8")
  6401. .HasCollation("utf8_general_ci");
  6402. entity.Property(e => e.ParentStoreId).HasColumnType("int(11)");
  6403. entity.Property(e => e.ProductName)
  6404. .HasColumnType("varchar(32)")
  6405. .HasCharSet("utf8")
  6406. .HasCollation("utf8_general_ci");
  6407. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6408. entity.Property(e => e.Remark)
  6409. .HasColumnType("varchar(128)")
  6410. .HasCharSet("utf8")
  6411. .HasCollation("utf8_general_ci");
  6412. entity.Property(e => e.SeoDescription)
  6413. .HasColumnType("varchar(500)")
  6414. .HasCharSet("utf8")
  6415. .HasCollation("utf8_general_ci");
  6416. entity.Property(e => e.SeoKeyword)
  6417. .HasColumnType("varchar(200)")
  6418. .HasCharSet("utf8")
  6419. .HasCollation("utf8_general_ci");
  6420. entity.Property(e => e.SeoTitle)
  6421. .HasColumnType("varchar(100)")
  6422. .HasCharSet("utf8")
  6423. .HasCollation("utf8_general_ci");
  6424. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6425. entity.Property(e => e.Status).HasColumnType("int(11)");
  6426. entity.Property(e => e.StoreKind).HasColumnType("int(11)");
  6427. entity.Property(e => e.StoreName)
  6428. .HasColumnType("varchar(32)")
  6429. .HasCharSet("utf8")
  6430. .HasCollation("utf8_general_ci");
  6431. entity.Property(e => e.StoreNo)
  6432. .HasColumnType("varchar(16)")
  6433. .HasCharSet("utf8")
  6434. .HasCollation("utf8_general_ci");
  6435. entity.Property(e => e.StoreStatus).HasColumnType("int(11)");
  6436. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  6437. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  6438. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6439. entity.Property(e => e.UpdateMan)
  6440. .HasColumnType("varchar(50)")
  6441. .HasCharSet("utf8")
  6442. .HasCollation("utf8_general_ci");
  6443. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6444. entity.Property(e => e.Version).HasColumnType("int(11)");
  6445. });
  6446. modelBuilder.Entity<StoreMallOrderSummary>(entity =>
  6447. {
  6448. entity.Property(e => e.Id).HasColumnType("int(11)");
  6449. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6450. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6451. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6452. entity.Property(e => e.CreateMan)
  6453. .HasColumnType("varchar(50)")
  6454. .HasCharSet("utf8")
  6455. .HasCollation("utf8_general_ci");
  6456. entity.Property(e => e.OrderAmt).HasColumnType("int(11)");
  6457. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  6458. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6459. entity.Property(e => e.RefundAmt).HasColumnType("decimal(18,2)");
  6460. entity.Property(e => e.RefundOrderNum).HasColumnType("int(11)");
  6461. entity.Property(e => e.Remark)
  6462. .HasColumnType("varchar(64)")
  6463. .HasCharSet("utf8")
  6464. .HasCollation("utf8_general_ci");
  6465. entity.Property(e => e.SeoDescription)
  6466. .HasColumnType("varchar(500)")
  6467. .HasCharSet("utf8")
  6468. .HasCollation("utf8_general_ci");
  6469. entity.Property(e => e.SeoKeyword)
  6470. .HasColumnType("varchar(200)")
  6471. .HasCharSet("utf8")
  6472. .HasCollation("utf8_general_ci");
  6473. entity.Property(e => e.SeoTitle)
  6474. .HasColumnType("varchar(100)")
  6475. .HasCharSet("utf8")
  6476. .HasCollation("utf8_general_ci");
  6477. entity.Property(e => e.SettleAmt).HasColumnType("decimal(18,2)");
  6478. entity.Property(e => e.SettleStatus).HasColumnType("int(11)");
  6479. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6480. entity.Property(e => e.Status).HasColumnType("int(11)");
  6481. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6482. entity.Property(e => e.TradeMonth)
  6483. .HasColumnType("varchar(6)")
  6484. .HasCharSet("utf8")
  6485. .HasCollation("utf8_general_ci");
  6486. entity.Property(e => e.UnitPrice).HasColumnType("decimal(18,2)");
  6487. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6488. entity.Property(e => e.UpdateMan)
  6489. .HasColumnType("varchar(50)")
  6490. .HasCharSet("utf8")
  6491. .HasCollation("utf8_general_ci");
  6492. entity.Property(e => e.Version).HasColumnType("int(11)");
  6493. });
  6494. modelBuilder.Entity<StoreSnActivateSummary>(entity =>
  6495. {
  6496. entity.Property(e => e.Id).HasColumnType("int(11)");
  6497. entity.Property(e => e.ActivateNum).HasColumnType("int(11)");
  6498. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6499. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6500. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6501. entity.Property(e => e.CreateMan)
  6502. .HasColumnType("varchar(50)")
  6503. .HasCharSet("utf8")
  6504. .HasCollation("utf8_general_ci");
  6505. entity.Property(e => e.EffectActNum).HasColumnType("int(11)");
  6506. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6507. entity.Property(e => e.RejectActNum).HasColumnType("int(11)");
  6508. entity.Property(e => e.Remark)
  6509. .HasColumnType("varchar(64)")
  6510. .HasCharSet("utf8")
  6511. .HasCollation("utf8_general_ci");
  6512. entity.Property(e => e.SeoDescription)
  6513. .HasColumnType("varchar(500)")
  6514. .HasCharSet("utf8")
  6515. .HasCollation("utf8_general_ci");
  6516. entity.Property(e => e.SeoKeyword)
  6517. .HasColumnType("varchar(200)")
  6518. .HasCharSet("utf8")
  6519. .HasCollation("utf8_general_ci");
  6520. entity.Property(e => e.SeoTitle)
  6521. .HasColumnType("varchar(100)")
  6522. .HasCharSet("utf8")
  6523. .HasCollation("utf8_general_ci");
  6524. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6525. entity.Property(e => e.Status).HasColumnType("int(11)");
  6526. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6527. entity.Property(e => e.TradeDate)
  6528. .HasColumnType("varchar(8)")
  6529. .HasCharSet("utf8")
  6530. .HasCollation("utf8_general_ci");
  6531. entity.Property(e => e.TradeMonth)
  6532. .HasColumnType("varchar(6)")
  6533. .HasCharSet("utf8")
  6534. .HasCollation("utf8_general_ci");
  6535. entity.Property(e => e.TransferActNum).HasColumnType("int(11)");
  6536. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6537. entity.Property(e => e.UpdateMan)
  6538. .HasColumnType("varchar(50)")
  6539. .HasCharSet("utf8")
  6540. .HasCollation("utf8_general_ci");
  6541. entity.Property(e => e.UserApplyNum).HasColumnType("int(11)");
  6542. entity.Property(e => e.Version).HasColumnType("int(11)");
  6543. });
  6544. modelBuilder.Entity<StoreStockChange>(entity =>
  6545. {
  6546. entity.Property(e => e.Id).HasColumnType("int(11)");
  6547. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  6548. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  6549. entity.Property(e => e.BindMerchant).HasColumnType("int(11)");
  6550. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  6551. entity.Property(e => e.BizBatchNo)
  6552. .HasColumnType("varchar(32)")
  6553. .HasCharSet("utf8")
  6554. .HasCollation("utf8_general_ci");
  6555. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6556. entity.Property(e => e.BrandType)
  6557. .HasColumnType("varchar(10)")
  6558. .HasCharSet("utf8")
  6559. .HasCollation("utf8_general_ci");
  6560. entity.Property(e => e.ChangeNo)
  6561. .HasColumnType("varchar(32)")
  6562. .HasCharSet("utf8")
  6563. .HasCollation("utf8_general_ci");
  6564. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6565. entity.Property(e => e.CreateMan)
  6566. .HasColumnType("varchar(50)")
  6567. .HasCharSet("utf8")
  6568. .HasCollation("utf8_general_ci");
  6569. entity.Property(e => e.DeviceModel)
  6570. .HasColumnType("varchar(32)")
  6571. .HasCharSet("utf8")
  6572. .HasCollation("utf8_general_ci");
  6573. entity.Property(e => e.DeviceType)
  6574. .HasColumnType("varchar(32)")
  6575. .HasCharSet("utf8")
  6576. .HasCollation("utf8_general_ci");
  6577. entity.Property(e => e.DeviceVendor)
  6578. .HasColumnType("varchar(32)")
  6579. .HasCharSet("utf8")
  6580. .HasCollation("utf8_general_ci");
  6581. entity.Property(e => e.ExpressNo)
  6582. .HasColumnType("varchar(32)")
  6583. .HasCharSet("utf8")
  6584. .HasCollation("utf8_general_ci");
  6585. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6586. entity.Property(e => e.FromRemark)
  6587. .HasColumnType("varchar(64)")
  6588. .HasCharSet("utf8")
  6589. .HasCollation("utf8_general_ci");
  6590. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6591. entity.Property(e => e.ProductName)
  6592. .HasColumnType("varchar(32)")
  6593. .HasCharSet("utf8")
  6594. .HasCollation("utf8_general_ci");
  6595. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6596. entity.Property(e => e.SeoDescription)
  6597. .HasColumnType("varchar(500)")
  6598. .HasCharSet("utf8")
  6599. .HasCollation("utf8_general_ci");
  6600. entity.Property(e => e.SeoKeyword)
  6601. .HasColumnType("varchar(200)")
  6602. .HasCharSet("utf8")
  6603. .HasCollation("utf8_general_ci");
  6604. entity.Property(e => e.SeoTitle)
  6605. .HasColumnType("varchar(100)")
  6606. .HasCharSet("utf8")
  6607. .HasCollation("utf8_general_ci");
  6608. entity.Property(e => e.SnNo)
  6609. .HasColumnType("varchar(32)")
  6610. .HasCharSet("utf8")
  6611. .HasCollation("utf8_general_ci");
  6612. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  6613. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6614. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6615. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6616. entity.Property(e => e.Status).HasColumnType("int(11)");
  6617. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6618. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6619. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6620. entity.Property(e => e.ToRemark)
  6621. .HasColumnType("varchar(64)")
  6622. .HasCharSet("utf8")
  6623. .HasCollation("utf8_general_ci");
  6624. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6625. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6626. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6627. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6628. entity.Property(e => e.UpdateMan)
  6629. .HasColumnType("varchar(50)")
  6630. .HasCharSet("utf8")
  6631. .HasCollation("utf8_general_ci");
  6632. entity.Property(e => e.Version).HasColumnType("int(11)");
  6633. });
  6634. modelBuilder.Entity<StoreSwapSn>(entity =>
  6635. {
  6636. entity.Property(e => e.Id).HasColumnType("int(11)");
  6637. entity.Property(e => e.ActType).HasColumnType("int(11)");
  6638. entity.Property(e => e.ActTypeDesc)
  6639. .HasColumnType("varchar(64)")
  6640. .HasCharSet("utf8")
  6641. .HasCollation("utf8_general_ci");
  6642. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6643. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6644. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6645. entity.Property(e => e.CreateMan)
  6646. .HasColumnType("varchar(50)")
  6647. .HasCharSet("utf8")
  6648. .HasCollation("utf8_general_ci");
  6649. entity.Property(e => e.PosType)
  6650. .HasColumnType("varchar(32)")
  6651. .HasCharSet("utf8")
  6652. .HasCollation("utf8_general_ci");
  6653. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6654. entity.Property(e => e.Remark)
  6655. .HasColumnType("varchar(128)")
  6656. .HasCharSet("utf8")
  6657. .HasCollation("utf8_general_ci");
  6658. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  6659. entity.Property(e => e.SeoDescription)
  6660. .HasColumnType("varchar(500)")
  6661. .HasCharSet("utf8")
  6662. .HasCollation("utf8_general_ci");
  6663. entity.Property(e => e.SeoKeyword)
  6664. .HasColumnType("varchar(200)")
  6665. .HasCharSet("utf8")
  6666. .HasCollation("utf8_general_ci");
  6667. entity.Property(e => e.SeoTitle)
  6668. .HasColumnType("varchar(100)")
  6669. .HasCharSet("utf8")
  6670. .HasCollation("utf8_general_ci");
  6671. entity.Property(e => e.SnNo)
  6672. .HasColumnType("varchar(32)")
  6673. .HasCharSet("utf8")
  6674. .HasCollation("utf8_general_ci");
  6675. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  6676. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6677. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6678. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  6679. entity.Property(e => e.Status).HasColumnType("int(11)");
  6680. entity.Property(e => e.SwapApplyDate).HasColumnType("datetime");
  6681. entity.Property(e => e.SwapApplyOrderNo)
  6682. .HasColumnType("varchar(32)")
  6683. .HasCharSet("utf8")
  6684. .HasCollation("utf8_general_ci");
  6685. entity.Property(e => e.SwapExtProductTypes)
  6686. .HasColumnType("varchar(16)")
  6687. .HasCharSet("utf8")
  6688. .HasCollation("utf8_general_ci");
  6689. entity.Property(e => e.SwapSnNo)
  6690. .HasColumnType("varchar(32)")
  6691. .HasCharSet("utf8")
  6692. .HasCollation("utf8_general_ci");
  6693. entity.Property(e => e.SwapStatus).HasColumnType("int(11)");
  6694. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6695. entity.Property(e => e.UpdateMan)
  6696. .HasColumnType("varchar(50)")
  6697. .HasCharSet("utf8")
  6698. .HasCollation("utf8_general_ci");
  6699. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6700. entity.Property(e => e.Version).HasColumnType("int(11)");
  6701. });
  6702. modelBuilder.Entity<SysAdmin>(entity =>
  6703. {
  6704. entity.Property(e => e.Id).HasColumnType("int(11)");
  6705. entity.Property(e => e.AdminName)
  6706. .HasColumnType("varchar(50)")
  6707. .HasCharSet("utf8")
  6708. .HasCollation("utf8_general_ci");
  6709. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6710. entity.Property(e => e.CreateMan)
  6711. .HasColumnType("varchar(50)")
  6712. .HasCharSet("utf8")
  6713. .HasCollation("utf8_general_ci");
  6714. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  6715. entity.Property(e => e.Password)
  6716. .HasColumnType("varchar(32)")
  6717. .HasCharSet("utf8")
  6718. .HasCollation("utf8_general_ci");
  6719. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6720. entity.Property(e => e.RealName)
  6721. .HasColumnType("varchar(50)")
  6722. .HasCharSet("utf8")
  6723. .HasCollation("utf8_general_ci");
  6724. entity.Property(e => e.Role)
  6725. .HasColumnType("varchar(30)")
  6726. .HasCharSet("utf8")
  6727. .HasCollation("utf8_general_ci");
  6728. entity.Property(e => e.SeoDescription)
  6729. .HasColumnType("varchar(500)")
  6730. .HasCharSet("utf8")
  6731. .HasCollation("utf8_general_ci");
  6732. entity.Property(e => e.SeoKeyword)
  6733. .HasColumnType("varchar(200)")
  6734. .HasCharSet("utf8")
  6735. .HasCollation("utf8_general_ci");
  6736. entity.Property(e => e.SeoTitle)
  6737. .HasColumnType("varchar(100)")
  6738. .HasCharSet("utf8")
  6739. .HasCollation("utf8_general_ci");
  6740. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6741. entity.Property(e => e.Status).HasColumnType("int(11)");
  6742. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6743. entity.Property(e => e.UpdateMan)
  6744. .HasColumnType("varchar(50)")
  6745. .HasCharSet("utf8")
  6746. .HasCollation("utf8_general_ci");
  6747. entity.Property(e => e.Version).HasColumnType("int(11)");
  6748. });
  6749. modelBuilder.Entity<SysAdminRole>(entity =>
  6750. {
  6751. entity.Property(e => e.Id).HasColumnType("int(11)");
  6752. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6753. entity.Property(e => e.CreateMan)
  6754. .HasColumnType("varchar(50)")
  6755. .HasCharSet("utf8")
  6756. .HasCollation("utf8_general_ci");
  6757. entity.Property(e => e.Details)
  6758. .HasColumnType("longtext")
  6759. .HasCharSet("utf8")
  6760. .HasCollation("utf8_general_ci");
  6761. entity.Property(e => e.Name)
  6762. .HasColumnType("varchar(50)")
  6763. .HasCharSet("utf8")
  6764. .HasCollation("utf8_general_ci");
  6765. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6766. entity.Property(e => e.RightInfo)
  6767. .HasColumnType("longtext")
  6768. .HasCharSet("utf8")
  6769. .HasCollation("utf8_general_ci");
  6770. entity.Property(e => e.SeoDescription)
  6771. .HasColumnType("varchar(500)")
  6772. .HasCharSet("utf8")
  6773. .HasCollation("utf8_general_ci");
  6774. entity.Property(e => e.SeoKeyword)
  6775. .HasColumnType("varchar(200)")
  6776. .HasCharSet("utf8")
  6777. .HasCollation("utf8_general_ci");
  6778. entity.Property(e => e.SeoTitle)
  6779. .HasColumnType("varchar(100)")
  6780. .HasCharSet("utf8")
  6781. .HasCollation("utf8_general_ci");
  6782. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6783. entity.Property(e => e.Status).HasColumnType("int(11)");
  6784. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6785. entity.Property(e => e.UpdateMan)
  6786. .HasColumnType("varchar(50)")
  6787. .HasCharSet("utf8")
  6788. .HasCollation("utf8_general_ci");
  6789. entity.Property(e => e.Version).HasColumnType("int(11)");
  6790. });
  6791. modelBuilder.Entity<SysLog>(entity =>
  6792. {
  6793. entity.Property(e => e.Id).HasColumnType("int(11)");
  6794. entity.Property(e => e.Contents)
  6795. .HasColumnType("varchar(200)")
  6796. .HasCharSet("utf8")
  6797. .HasCollation("utf8_general_ci");
  6798. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6799. entity.Property(e => e.CreateMan)
  6800. .HasColumnType("varchar(50)")
  6801. .HasCharSet("utf8")
  6802. .HasCollation("utf8_general_ci");
  6803. });
  6804. modelBuilder.Entity<SysRechargeRecord>(entity =>
  6805. {
  6806. entity.Property(e => e.Id).HasColumnType("int(11)");
  6807. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  6808. entity.Property(e => e.BatchCode)
  6809. .HasColumnType("varchar(32)")
  6810. .HasCharSet("utf8")
  6811. .HasCollation("utf8_general_ci");
  6812. entity.Property(e => e.BizTime).HasColumnType("datetime");
  6813. entity.Property(e => e.BizType).HasColumnType("int(11)");
  6814. entity.Property(e => e.ClientIp)
  6815. .HasColumnType("varchar(15)")
  6816. .HasCharSet("utf8")
  6817. .HasCollation("utf8_general_ci");
  6818. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6819. entity.Property(e => e.CreateMan)
  6820. .HasColumnType("varchar(50)")
  6821. .HasCharSet("utf8")
  6822. .HasCollation("utf8_general_ci");
  6823. entity.Property(e => e.PartnerTradeNo)
  6824. .HasColumnType("varchar(32)")
  6825. .HasCharSet("utf8")
  6826. .HasCollation("utf8_general_ci");
  6827. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6828. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6829. entity.Property(e => e.RechargeRecNo)
  6830. .HasColumnType("varchar(32)")
  6831. .HasCharSet("utf8")
  6832. .HasCollation("utf8_general_ci");
  6833. entity.Property(e => e.SeoDescription)
  6834. .HasColumnType("varchar(500)")
  6835. .HasCharSet("utf8")
  6836. .HasCollation("utf8_general_ci");
  6837. entity.Property(e => e.SeoKeyword)
  6838. .HasColumnType("varchar(200)")
  6839. .HasCharSet("utf8")
  6840. .HasCollation("utf8_general_ci");
  6841. entity.Property(e => e.SeoTitle)
  6842. .HasColumnType("varchar(100)")
  6843. .HasCharSet("utf8")
  6844. .HasCollation("utf8_general_ci");
  6845. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6846. entity.Property(e => e.Status).HasColumnType("int(11)");
  6847. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  6848. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6849. entity.Property(e => e.UpdateMan)
  6850. .HasColumnType("varchar(50)")
  6851. .HasCharSet("utf8")
  6852. .HasCollation("utf8_general_ci");
  6853. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6854. entity.Property(e => e.Version).HasColumnType("int(11)");
  6855. });
  6856. modelBuilder.Entity<SystemSet>(entity =>
  6857. {
  6858. entity.Property(e => e.Id).HasColumnType("int(11)");
  6859. entity.Property(e => e.Address)
  6860. .HasColumnType("varchar(100)")
  6861. .HasCharSet("utf8")
  6862. .HasCollation("utf8_general_ci");
  6863. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6864. entity.Property(e => e.CreateMan)
  6865. .HasColumnType("varchar(50)")
  6866. .HasCharSet("utf8")
  6867. .HasCollation("utf8_general_ci");
  6868. entity.Property(e => e.IndexDescription)
  6869. .HasColumnType("longtext")
  6870. .HasCharSet("utf8")
  6871. .HasCollation("utf8_general_ci");
  6872. entity.Property(e => e.IndexKeyword)
  6873. .HasColumnType("varchar(200)")
  6874. .HasCharSet("utf8")
  6875. .HasCollation("utf8_general_ci");
  6876. entity.Property(e => e.Logo)
  6877. .HasColumnType("varchar(200)")
  6878. .HasCharSet("utf8")
  6879. .HasCollation("utf8_general_ci");
  6880. entity.Property(e => e.Phone)
  6881. .HasColumnType("varchar(100)")
  6882. .HasCharSet("utf8")
  6883. .HasCollation("utf8_general_ci");
  6884. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6885. entity.Property(e => e.RightInfo)
  6886. .HasColumnType("longtext")
  6887. .HasCharSet("utf8")
  6888. .HasCollation("utf8_general_ci");
  6889. entity.Property(e => e.SeoDescription)
  6890. .HasColumnType("varchar(500)")
  6891. .HasCharSet("utf8")
  6892. .HasCollation("utf8_general_ci");
  6893. entity.Property(e => e.SeoKeyword)
  6894. .HasColumnType("varchar(200)")
  6895. .HasCharSet("utf8")
  6896. .HasCollation("utf8_general_ci");
  6897. entity.Property(e => e.SeoTitle)
  6898. .HasColumnType("varchar(100)")
  6899. .HasCharSet("utf8")
  6900. .HasCollation("utf8_general_ci");
  6901. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6902. entity.Property(e => e.StartAdPhoto)
  6903. .HasColumnType("varchar(200)")
  6904. .HasCharSet("utf8")
  6905. .HasCollation("utf8_general_ci");
  6906. entity.Property(e => e.Status).HasColumnType("int(11)");
  6907. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6908. entity.Property(e => e.UpdateMan)
  6909. .HasColumnType("varchar(50)")
  6910. .HasCharSet("utf8")
  6911. .HasCollation("utf8_general_ci");
  6912. entity.Property(e => e.UploadAutoWater)
  6913. .HasColumnType("bit(1)")
  6914. .HasDefaultValueSql("b'0'");
  6915. entity.Property(e => e.UploadAutoZoom)
  6916. .HasColumnType("bit(1)")
  6917. .HasDefaultValueSql("b'0'");
  6918. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  6919. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  6920. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  6921. entity.Property(e => e.UploadExt)
  6922. .HasColumnType("varchar(100)")
  6923. .HasCharSet("utf8")
  6924. .HasCollation("utf8_general_ci");
  6925. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  6926. entity.Property(e => e.UploadOss)
  6927. .HasColumnType("bit(1)")
  6928. .HasDefaultValueSql("b'0'");
  6929. entity.Property(e => e.UploadWaterPath)
  6930. .HasColumnType("varchar(200)")
  6931. .HasCharSet("utf8")
  6932. .HasCollation("utf8_general_ci");
  6933. entity.Property(e => e.UploadWaterPosition)
  6934. .HasColumnType("varchar(15)")
  6935. .HasCharSet("utf8")
  6936. .HasCollation("utf8_general_ci");
  6937. entity.Property(e => e.Version).HasColumnType("int(11)");
  6938. entity.Property(e => e.WebName)
  6939. .HasColumnType("varchar(50)")
  6940. .HasCharSet("utf8")
  6941. .HasCollation("utf8_general_ci");
  6942. entity.Property(e => e.WebStatCode)
  6943. .HasColumnType("longtext")
  6944. .HasCharSet("utf8")
  6945. .HasCollation("utf8_general_ci");
  6946. entity.Property(e => e.WebUrl)
  6947. .HasColumnType("varchar(200)")
  6948. .HasCharSet("utf8")
  6949. .HasCollation("utf8_general_ci");
  6950. });
  6951. modelBuilder.Entity<TeamApply>(entity =>
  6952. {
  6953. entity.Property(e => e.Id).HasColumnType("int(11)");
  6954. entity.Property(e => e.Areas)
  6955. .HasColumnType("varchar(30)")
  6956. .HasCharSet("utf8")
  6957. .HasCollation("utf8_general_ci");
  6958. entity.Property(e => e.AuditRemark)
  6959. .HasColumnType("varchar(64)")
  6960. .HasCharSet("utf8")
  6961. .HasCollation("utf8_general_ci");
  6962. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  6963. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  6964. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6965. entity.Property(e => e.CreateMan)
  6966. .HasColumnType("varchar(50)")
  6967. .HasCharSet("utf8")
  6968. .HasCollation("utf8_general_ci");
  6969. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  6970. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  6971. entity.Property(e => e.EnterEndDate).HasColumnType("datetime");
  6972. entity.Property(e => e.EnterStartDate).HasColumnType("datetime");
  6973. entity.Property(e => e.ManagerName)
  6974. .HasColumnType("varchar(32)")
  6975. .HasCharSet("utf8")
  6976. .HasCollation("utf8_general_ci");
  6977. entity.Property(e => e.ManagerNo)
  6978. .HasColumnType("varchar(32)")
  6979. .HasCharSet("utf8")
  6980. .HasCollation("utf8_general_ci");
  6981. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  6982. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  6983. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  6984. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6985. entity.Property(e => e.Remark)
  6986. .HasColumnType("varchar(64)")
  6987. .HasCharSet("utf8")
  6988. .HasCollation("utf8_general_ci");
  6989. entity.Property(e => e.SeoDescription)
  6990. .HasColumnType("varchar(500)")
  6991. .HasCharSet("utf8")
  6992. .HasCollation("utf8_general_ci");
  6993. entity.Property(e => e.SeoKeyword)
  6994. .HasColumnType("varchar(200)")
  6995. .HasCharSet("utf8")
  6996. .HasCollation("utf8_general_ci");
  6997. entity.Property(e => e.SeoTitle)
  6998. .HasColumnType("varchar(100)")
  6999. .HasCharSet("utf8")
  7000. .HasCollation("utf8_general_ci");
  7001. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7002. entity.Property(e => e.Status).HasColumnType("int(11)");
  7003. entity.Property(e => e.TeamName)
  7004. .HasColumnType("varchar(32)")
  7005. .HasCharSet("utf8")
  7006. .HasCollation("utf8_general_ci");
  7007. entity.Property(e => e.TeamNo)
  7008. .HasColumnType("varchar(32)")
  7009. .HasCharSet("utf8")
  7010. .HasCollation("utf8_general_ci");
  7011. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7012. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7013. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7014. entity.Property(e => e.UpdateMan)
  7015. .HasColumnType("varchar(50)")
  7016. .HasCharSet("utf8")
  7017. .HasCollation("utf8_general_ci");
  7018. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7019. entity.Property(e => e.Version).HasColumnType("int(11)");
  7020. entity.Property(e => e.WatchWord)
  7021. .HasColumnType("varchar(32)")
  7022. .HasCharSet("utf8")
  7023. .HasCollation("utf8_general_ci");
  7024. });
  7025. modelBuilder.Entity<TeamApplyForTeamName>(entity =>
  7026. {
  7027. entity.HasKey(e => e.TeamName)
  7028. .HasName("PRIMARY");
  7029. entity.Property(e => e.TeamName)
  7030. .HasColumnType("varchar(32)")
  7031. .HasCharSet("utf8")
  7032. .HasCollation("utf8_general_ci");
  7033. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7034. });
  7035. modelBuilder.Entity<TeamApplyForTeamNo>(entity =>
  7036. {
  7037. entity.HasKey(e => e.TeamNo)
  7038. .HasName("PRIMARY");
  7039. entity.Property(e => e.TeamNo)
  7040. .HasColumnType("varchar(32)")
  7041. .HasCharSet("utf8")
  7042. .HasCollation("utf8_general_ci");
  7043. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7044. });
  7045. modelBuilder.Entity<TeamBlackList>(entity =>
  7046. {
  7047. entity.Property(e => e.Id).HasColumnType("int(11)");
  7048. entity.Property(e => e.BlackStatus).HasColumnType("int(11)");
  7049. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7050. entity.Property(e => e.CreateMan)
  7051. .HasColumnType("varchar(50)")
  7052. .HasCharSet("utf8")
  7053. .HasCollation("utf8_general_ci");
  7054. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7055. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7056. entity.Property(e => e.ManagerName)
  7057. .HasColumnType("varchar(32)")
  7058. .HasCharSet("utf8")
  7059. .HasCollation("utf8_general_ci");
  7060. entity.Property(e => e.ManagerNo)
  7061. .HasColumnType("varchar(32)")
  7062. .HasCharSet("utf8")
  7063. .HasCollation("utf8_general_ci");
  7064. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7065. entity.Property(e => e.Remark)
  7066. .HasColumnType("varchar(64)")
  7067. .HasCharSet("utf8")
  7068. .HasCollation("utf8_general_ci");
  7069. entity.Property(e => e.SeoDescription)
  7070. .HasColumnType("varchar(500)")
  7071. .HasCharSet("utf8")
  7072. .HasCollation("utf8_general_ci");
  7073. entity.Property(e => e.SeoKeyword)
  7074. .HasColumnType("varchar(200)")
  7075. .HasCharSet("utf8")
  7076. .HasCollation("utf8_general_ci");
  7077. entity.Property(e => e.SeoTitle)
  7078. .HasColumnType("varchar(100)")
  7079. .HasCharSet("utf8")
  7080. .HasCollation("utf8_general_ci");
  7081. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7082. entity.Property(e => e.Status).HasColumnType("int(11)");
  7083. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7084. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7085. entity.Property(e => e.UpdateMan)
  7086. .HasColumnType("varchar(50)")
  7087. .HasCharSet("utf8")
  7088. .HasCollation("utf8_general_ci");
  7089. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7090. entity.Property(e => e.Version).HasColumnType("int(11)");
  7091. });
  7092. modelBuilder.Entity<TeamConfig>(entity =>
  7093. {
  7094. entity.Property(e => e.Id).HasColumnType("int(11)");
  7095. entity.Property(e => e.BlacklistCycle).HasColumnType("int(11)");
  7096. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7097. entity.Property(e => e.CreateMan)
  7098. .HasColumnType("varchar(50)")
  7099. .HasCharSet("utf8")
  7100. .HasCollation("utf8_general_ci");
  7101. entity.Property(e => e.EnterEndMin).HasColumnType("int(11)");
  7102. entity.Property(e => e.LimitBuddyNo)
  7103. .HasColumnType("varchar(128)")
  7104. .HasCharSet("utf8")
  7105. .HasCollation("utf8_general_ci");
  7106. entity.Property(e => e.MaxCycleNum).HasColumnType("int(11)");
  7107. entity.Property(e => e.MaxStartDayLimit).HasColumnType("int(11)");
  7108. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7109. entity.Property(e => e.MinCycleNum).HasColumnType("int(11)");
  7110. entity.Property(e => e.MinStartDayLimit).HasColumnType("int(11)");
  7111. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7112. entity.Property(e => e.OverlineStatus)
  7113. .HasColumnType("bit(1)")
  7114. .HasDefaultValueSql("b'0'");
  7115. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7116. entity.Property(e => e.Remark)
  7117. .HasColumnType("varchar(64)")
  7118. .HasCharSet("utf8")
  7119. .HasCollation("utf8_general_ci");
  7120. entity.Property(e => e.SeoDescription)
  7121. .HasColumnType("varchar(500)")
  7122. .HasCharSet("utf8")
  7123. .HasCollation("utf8_general_ci");
  7124. entity.Property(e => e.SeoKeyword)
  7125. .HasColumnType("varchar(200)")
  7126. .HasCharSet("utf8")
  7127. .HasCollation("utf8_general_ci");
  7128. entity.Property(e => e.SeoTitle)
  7129. .HasColumnType("varchar(100)")
  7130. .HasCharSet("utf8")
  7131. .HasCollation("utf8_general_ci");
  7132. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7133. entity.Property(e => e.Status).HasColumnType("int(11)");
  7134. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7135. entity.Property(e => e.UpdateMan)
  7136. .HasColumnType("varchar(50)")
  7137. .HasCharSet("utf8")
  7138. .HasCollation("utf8_general_ci");
  7139. entity.Property(e => e.Version).HasColumnType("int(11)");
  7140. });
  7141. modelBuilder.Entity<TeamDayTop>(entity =>
  7142. {
  7143. entity.Property(e => e.Id).HasColumnType("int(11)");
  7144. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7145. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7146. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7147. entity.Property(e => e.CreateMan)
  7148. .HasColumnType("varchar(50)")
  7149. .HasCharSet("utf8")
  7150. .HasCollation("utf8_general_ci");
  7151. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7152. entity.Property(e => e.Remark)
  7153. .HasColumnType("varchar(64)")
  7154. .HasCharSet("utf8")
  7155. .HasCollation("utf8_general_ci");
  7156. entity.Property(e => e.SeoDescription)
  7157. .HasColumnType("varchar(500)")
  7158. .HasCharSet("utf8")
  7159. .HasCollation("utf8_general_ci");
  7160. entity.Property(e => e.SeoKeyword)
  7161. .HasColumnType("varchar(200)")
  7162. .HasCharSet("utf8")
  7163. .HasCollation("utf8_general_ci");
  7164. entity.Property(e => e.SeoTitle)
  7165. .HasColumnType("varchar(100)")
  7166. .HasCharSet("utf8")
  7167. .HasCollation("utf8_general_ci");
  7168. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7169. entity.Property(e => e.StatDate)
  7170. .HasColumnType("varchar(8)")
  7171. .HasCharSet("utf8")
  7172. .HasCollation("utf8_general_ci");
  7173. entity.Property(e => e.StatMonth)
  7174. .HasColumnType("varchar(6)")
  7175. .HasCharSet("utf8")
  7176. .HasCollation("utf8_general_ci");
  7177. entity.Property(e => e.Status).HasColumnType("int(11)");
  7178. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7179. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7180. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7181. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7182. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7183. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7184. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7185. entity.Property(e => e.UpdateMan)
  7186. .HasColumnType("varchar(50)")
  7187. .HasCharSet("utf8")
  7188. .HasCollation("utf8_general_ci");
  7189. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7190. entity.Property(e => e.Version).HasColumnType("int(11)");
  7191. });
  7192. modelBuilder.Entity<TeamOfferApply>(entity =>
  7193. {
  7194. entity.Property(e => e.Id).HasColumnType("int(11)");
  7195. entity.Property(e => e.Areas)
  7196. .HasColumnType("varchar(30)")
  7197. .HasCharSet("utf8")
  7198. .HasCollation("utf8_general_ci");
  7199. entity.Property(e => e.AuditRemark)
  7200. .HasColumnType("varchar(64)")
  7201. .HasCharSet("utf8")
  7202. .HasCollation("utf8_general_ci");
  7203. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7204. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7205. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7206. entity.Property(e => e.CreateMan)
  7207. .HasColumnType("varchar(50)")
  7208. .HasCharSet("utf8")
  7209. .HasCollation("utf8_general_ci");
  7210. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7211. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7212. entity.Property(e => e.EnterDate).HasColumnType("datetime");
  7213. entity.Property(e => e.ManagerName)
  7214. .HasColumnType("varchar(32)")
  7215. .HasCharSet("utf8")
  7216. .HasCollation("utf8_general_ci");
  7217. entity.Property(e => e.ManagerNo)
  7218. .HasColumnType("varchar(32)")
  7219. .HasCharSet("utf8")
  7220. .HasCollation("utf8_general_ci");
  7221. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7222. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7223. entity.Property(e => e.Remark)
  7224. .HasColumnType("varchar(64)")
  7225. .HasCharSet("utf8")
  7226. .HasCollation("utf8_general_ci");
  7227. entity.Property(e => e.SeoDescription)
  7228. .HasColumnType("varchar(500)")
  7229. .HasCharSet("utf8")
  7230. .HasCollation("utf8_general_ci");
  7231. entity.Property(e => e.SeoKeyword)
  7232. .HasColumnType("varchar(200)")
  7233. .HasCharSet("utf8")
  7234. .HasCollation("utf8_general_ci");
  7235. entity.Property(e => e.SeoTitle)
  7236. .HasColumnType("varchar(100)")
  7237. .HasCharSet("utf8")
  7238. .HasCollation("utf8_general_ci");
  7239. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7240. entity.Property(e => e.Status).HasColumnType("int(11)");
  7241. entity.Property(e => e.TeamApplyStatus).HasColumnType("int(11)");
  7242. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7243. entity.Property(e => e.TeamLeader).HasColumnType("int(11)");
  7244. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7245. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7246. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7247. entity.Property(e => e.UpdateMan)
  7248. .HasColumnType("varchar(50)")
  7249. .HasCharSet("utf8")
  7250. .HasCollation("utf8_general_ci");
  7251. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7252. entity.Property(e => e.Version).HasColumnType("int(11)");
  7253. });
  7254. modelBuilder.Entity<TeamPersonDayTop>(entity =>
  7255. {
  7256. entity.Property(e => e.Id).HasColumnType("int(11)");
  7257. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7258. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7259. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7260. entity.Property(e => e.CreateMan)
  7261. .HasColumnType("varchar(50)")
  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.StatDate)
  7283. .HasColumnType("varchar(8)")
  7284. .HasCharSet("utf8")
  7285. .HasCollation("utf8_general_ci");
  7286. entity.Property(e => e.StatMonth)
  7287. .HasColumnType("varchar(6)")
  7288. .HasCharSet("utf8")
  7289. .HasCollation("utf8_general_ci");
  7290. entity.Property(e => e.Status).HasColumnType("int(11)");
  7291. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7292. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7293. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7294. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7295. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7296. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7297. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7298. entity.Property(e => e.UpdateMan)
  7299. .HasColumnType("varchar(50)")
  7300. .HasCharSet("utf8")
  7301. .HasCollation("utf8_general_ci");
  7302. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7303. entity.Property(e => e.Version).HasColumnType("int(11)");
  7304. });
  7305. modelBuilder.Entity<TradeDaySummary>(entity =>
  7306. {
  7307. entity.Property(e => e.Id).HasColumnType("int(11)");
  7308. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7309. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7310. entity.Property(e => e.CreateMan)
  7311. .HasColumnType("varchar(50)")
  7312. .HasCharSet("utf8")
  7313. .HasCollation("utf8_general_ci");
  7314. entity.Property(e => e.HelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7315. entity.Property(e => e.HelpDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7316. entity.Property(e => e.HelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7317. entity.Property(e => e.HelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7318. entity.Property(e => e.HelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7319. entity.Property(e => e.HelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7320. entity.Property(e => e.HelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7321. entity.Property(e => e.HelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7322. entity.Property(e => e.HelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7323. entity.Property(e => e.HelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7324. entity.Property(e => e.HelpNonDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7325. entity.Property(e => e.HelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7326. entity.Property(e => e.HelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7327. entity.Property(e => e.HelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7328. entity.Property(e => e.HelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7329. entity.Property(e => e.HelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7330. entity.Property(e => e.HelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7331. entity.Property(e => e.HelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7332. entity.Property(e => e.MgrName)
  7333. .HasColumnType("varchar(32)")
  7334. .HasCharSet("utf8")
  7335. .HasCollation("utf8_general_ci");
  7336. entity.Property(e => e.MgrNo)
  7337. .HasColumnType("varchar(16)")
  7338. .HasCharSet("utf8")
  7339. .HasCollation("utf8_general_ci");
  7340. entity.Property(e => e.NotHelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7341. entity.Property(e => e.NotHelpDirectDebitCapNum).HasColumnType("int(11)");
  7342. entity.Property(e => e.NotHelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7343. entity.Property(e => e.NotHelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7344. entity.Property(e => e.NotHelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7345. entity.Property(e => e.NotHelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7346. entity.Property(e => e.NotHelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7347. entity.Property(e => e.NotHelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7348. entity.Property(e => e.NotHelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7349. entity.Property(e => e.NotHelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7350. entity.Property(e => e.NotHelpNonDirectDebitCapNum).HasColumnType("int(11)");
  7351. entity.Property(e => e.NotHelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7352. entity.Property(e => e.NotHelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7353. entity.Property(e => e.NotHelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7354. entity.Property(e => e.NotHelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7355. entity.Property(e => e.NotHelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7356. entity.Property(e => e.NotHelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7357. entity.Property(e => e.NotHelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7358. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7359. entity.Property(e => e.SeoDescription)
  7360. .HasColumnType("varchar(500)")
  7361. .HasCharSet("utf8")
  7362. .HasCollation("utf8_general_ci");
  7363. entity.Property(e => e.SeoKeyword)
  7364. .HasColumnType("varchar(200)")
  7365. .HasCharSet("utf8")
  7366. .HasCollation("utf8_general_ci");
  7367. entity.Property(e => e.SeoTitle)
  7368. .HasColumnType("varchar(100)")
  7369. .HasCharSet("utf8")
  7370. .HasCollation("utf8_general_ci");
  7371. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7372. entity.Property(e => e.Status).HasColumnType("int(11)");
  7373. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7374. entity.Property(e => e.TradeDate)
  7375. .HasColumnType("varchar(8)")
  7376. .HasCharSet("utf8")
  7377. .HasCollation("utf8_general_ci");
  7378. entity.Property(e => e.TradeMonth)
  7379. .HasColumnType("varchar(6)")
  7380. .HasCharSet("utf8")
  7381. .HasCollation("utf8_general_ci");
  7382. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7383. entity.Property(e => e.UpdateMan)
  7384. .HasColumnType("varchar(50)")
  7385. .HasCharSet("utf8")
  7386. .HasCollation("utf8_general_ci");
  7387. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7388. entity.Property(e => e.Version).HasColumnType("int(11)");
  7389. });
  7390. modelBuilder.Entity<TradeRecord>(entity =>
  7391. {
  7392. entity.Property(e => e.Id).HasColumnType("int(11)");
  7393. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  7394. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7395. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  7396. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  7397. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7398. entity.Property(e => e.CreateMan)
  7399. .HasColumnType("varchar(50)")
  7400. .HasCharSet("utf8")
  7401. .HasCollation("utf8_general_ci");
  7402. entity.Property(e => e.DirectFlag)
  7403. .HasColumnType("bit(1)")
  7404. .HasDefaultValueSql("b'0'");
  7405. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  7406. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  7407. entity.Property(e => e.MerHelpFlag)
  7408. .HasColumnType("bit(1)")
  7409. .HasDefaultValueSql("b'0'");
  7410. entity.Property(e => e.MerNo)
  7411. .HasColumnType("varchar(32)")
  7412. .HasCharSet("utf8")
  7413. .HasCollation("utf8_general_ci");
  7414. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  7415. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7416. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  7417. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7418. entity.Property(e => e.RecordNo)
  7419. .HasColumnType("varchar(32)")
  7420. .HasCharSet("utf8")
  7421. .HasCollation("utf8_general_ci");
  7422. entity.Property(e => e.Remark)
  7423. .HasColumnType("varchar(64)")
  7424. .HasCharSet("utf8")
  7425. .HasCollation("utf8_general_ci");
  7426. entity.Property(e => e.SeoDescription)
  7427. .HasColumnType("varchar(500)")
  7428. .HasCharSet("utf8")
  7429. .HasCollation("utf8_general_ci");
  7430. entity.Property(e => e.SeoKeyword)
  7431. .HasColumnType("varchar(200)")
  7432. .HasCharSet("utf8")
  7433. .HasCollation("utf8_general_ci");
  7434. entity.Property(e => e.SeoTitle)
  7435. .HasColumnType("varchar(100)")
  7436. .HasCharSet("utf8")
  7437. .HasCollation("utf8_general_ci");
  7438. entity.Property(e => e.SnNo)
  7439. .HasColumnType("varchar(32)")
  7440. .HasCharSet("utf8")
  7441. .HasCollation("utf8_general_ci");
  7442. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7443. entity.Property(e => e.Status).HasColumnType("int(11)");
  7444. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7445. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  7446. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  7447. entity.Property(e => e.TradeSerialNo)
  7448. .HasColumnType("varchar(48)")
  7449. .HasCharSet("utf8")
  7450. .HasCollation("utf8_general_ci");
  7451. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7452. entity.Property(e => e.UpdateMan)
  7453. .HasColumnType("varchar(50)")
  7454. .HasCharSet("utf8")
  7455. .HasCollation("utf8_general_ci");
  7456. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7457. entity.Property(e => e.Version).HasColumnType("int(11)");
  7458. });
  7459. modelBuilder.Entity<UploadParams>(entity =>
  7460. {
  7461. entity.Property(e => e.Id).HasColumnType("int(11)");
  7462. entity.Property(e => e.ColumnEnName)
  7463. .HasColumnType("varchar(50)")
  7464. .HasCharSet("utf8")
  7465. .HasCollation("utf8_general_ci");
  7466. entity.Property(e => e.ColumnName)
  7467. .HasColumnType("varchar(50)")
  7468. .HasCharSet("utf8")
  7469. .HasCollation("utf8_general_ci");
  7470. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7471. entity.Property(e => e.CreateMan)
  7472. .HasColumnType("varchar(50)")
  7473. .HasCharSet("utf8")
  7474. .HasCollation("utf8_general_ci");
  7475. entity.Property(e => e.ParamString)
  7476. .HasColumnType("varchar(200)")
  7477. .HasCharSet("utf8")
  7478. .HasCollation("utf8_general_ci");
  7479. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7480. entity.Property(e => e.SeoDescription)
  7481. .HasColumnType("varchar(500)")
  7482. .HasCharSet("utf8")
  7483. .HasCollation("utf8_general_ci");
  7484. entity.Property(e => e.SeoKeyword)
  7485. .HasColumnType("varchar(200)")
  7486. .HasCharSet("utf8")
  7487. .HasCollation("utf8_general_ci");
  7488. entity.Property(e => e.SeoTitle)
  7489. .HasColumnType("varchar(100)")
  7490. .HasCharSet("utf8")
  7491. .HasCollation("utf8_general_ci");
  7492. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7493. entity.Property(e => e.Status).HasColumnType("int(11)");
  7494. entity.Property(e => e.TableEnName)
  7495. .HasColumnType("varchar(50)")
  7496. .HasCharSet("utf8")
  7497. .HasCollation("utf8_general_ci");
  7498. entity.Property(e => e.TableName)
  7499. .HasColumnType("varchar(50)")
  7500. .HasCharSet("utf8")
  7501. .HasCollation("utf8_general_ci");
  7502. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7503. entity.Property(e => e.UpdateMan)
  7504. .HasColumnType("varchar(50)")
  7505. .HasCharSet("utf8")
  7506. .HasCollation("utf8_general_ci");
  7507. entity.Property(e => e.Version).HasColumnType("int(11)");
  7508. });
  7509. modelBuilder.Entity<UserAccount>(entity =>
  7510. {
  7511. entity.Property(e => e.Id).HasColumnType("int(11)");
  7512. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  7513. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  7514. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7515. entity.Property(e => e.CreateMan)
  7516. .HasColumnType("varchar(50)")
  7517. .HasCharSet("utf8")
  7518. .HasCollation("utf8_general_ci");
  7519. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  7520. entity.Property(e => e.LockStatus).HasColumnType("int(11)");
  7521. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7522. entity.Property(e => e.SeoDescription)
  7523. .HasColumnType("varchar(500)")
  7524. .HasCharSet("utf8")
  7525. .HasCollation("utf8_general_ci");
  7526. entity.Property(e => e.SeoKeyword)
  7527. .HasColumnType("varchar(200)")
  7528. .HasCharSet("utf8")
  7529. .HasCollation("utf8_general_ci");
  7530. entity.Property(e => e.SeoTitle)
  7531. .HasColumnType("varchar(100)")
  7532. .HasCharSet("utf8")
  7533. .HasCollation("utf8_general_ci");
  7534. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7535. entity.Property(e => e.Status).HasColumnType("int(11)");
  7536. entity.Property(e => e.TeamTotalOverProfit).HasColumnType("decimal(18,2)");
  7537. entity.Property(e => e.TeamTotalProfit).HasColumnType("decimal(18,2)");
  7538. entity.Property(e => e.TeamTotalServiceProfit).HasColumnType("decimal(18,2)");
  7539. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  7540. entity.Property(e => e.TotalOverProfit).HasColumnType("decimal(18,2)");
  7541. entity.Property(e => e.TotalProfit).HasColumnType("decimal(18,2)");
  7542. entity.Property(e => e.TotalServiceProfit).HasColumnType("decimal(18,2)");
  7543. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7544. entity.Property(e => e.UpdateMan)
  7545. .HasColumnType("varchar(50)")
  7546. .HasCharSet("utf8")
  7547. .HasCollation("utf8_general_ci");
  7548. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7549. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  7550. entity.Property(e => e.UserType).HasColumnType("int(11)");
  7551. entity.Property(e => e.Version).HasColumnType("int(11)");
  7552. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  7553. });
  7554. modelBuilder.Entity<UserAccountRecord>(entity =>
  7555. {
  7556. entity.Property(e => e.Id).HasColumnType("int(11)");
  7557. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  7558. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  7559. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  7560. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  7561. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  7562. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  7563. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  7564. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  7565. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7566. entity.Property(e => e.CreateMan)
  7567. .HasColumnType("varchar(50)")
  7568. .HasCharSet("utf8")
  7569. .HasCollation("utf8_general_ci");
  7570. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7571. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7572. entity.Property(e => e.Remark)
  7573. .HasColumnType("varchar(64)")
  7574. .HasCharSet("utf8")
  7575. .HasCollation("utf8_general_ci");
  7576. entity.Property(e => e.SeoDescription)
  7577. .HasColumnType("varchar(500)")
  7578. .HasCharSet("utf8")
  7579. .HasCollation("utf8_general_ci");
  7580. entity.Property(e => e.SeoKeyword)
  7581. .HasColumnType("varchar(200)")
  7582. .HasCharSet("utf8")
  7583. .HasCollation("utf8_general_ci");
  7584. entity.Property(e => e.SeoTitle)
  7585. .HasColumnType("varchar(100)")
  7586. .HasCharSet("utf8")
  7587. .HasCollation("utf8_general_ci");
  7588. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7589. entity.Property(e => e.Status).HasColumnType("int(11)");
  7590. entity.Property(e => e.TransRecordNo)
  7591. .HasColumnType("varchar(32)")
  7592. .HasCharSet("utf8")
  7593. .HasCollation("utf8_general_ci");
  7594. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7595. entity.Property(e => e.UpdateMan)
  7596. .HasColumnType("varchar(50)")
  7597. .HasCharSet("utf8")
  7598. .HasCollation("utf8_general_ci");
  7599. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7600. entity.Property(e => e.Version).HasColumnType("int(11)");
  7601. });
  7602. modelBuilder.Entity<UserAddress>(entity =>
  7603. {
  7604. entity.Property(e => e.Id).HasColumnType("int(11)");
  7605. entity.Property(e => e.Address)
  7606. .HasColumnType("varchar(100)")
  7607. .HasCharSet("utf8")
  7608. .HasCollation("utf8_general_ci");
  7609. entity.Property(e => e.Areas)
  7610. .HasColumnType("varchar(30)")
  7611. .HasCharSet("utf8")
  7612. .HasCollation("utf8_general_ci");
  7613. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7614. entity.Property(e => e.CreateMan)
  7615. .HasColumnType("varchar(50)")
  7616. .HasCharSet("utf8")
  7617. .HasCollation("utf8_general_ci");
  7618. entity.Property(e => e.IsDefault)
  7619. .HasColumnType("bit(1)")
  7620. .HasDefaultValueSql("b'0'");
  7621. entity.Property(e => e.Mobile)
  7622. .HasColumnType("varchar(11)")
  7623. .HasCharSet("utf8")
  7624. .HasCollation("utf8_general_ci");
  7625. entity.Property(e => e.PostalCode)
  7626. .HasColumnType("varchar(6)")
  7627. .HasCharSet("utf8")
  7628. .HasCollation("utf8_general_ci");
  7629. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7630. entity.Property(e => e.RealName)
  7631. .HasColumnType("varchar(10)")
  7632. .HasCharSet("utf8")
  7633. .HasCollation("utf8_general_ci");
  7634. entity.Property(e => e.SeoDescription)
  7635. .HasColumnType("varchar(500)")
  7636. .HasCharSet("utf8")
  7637. .HasCollation("utf8_general_ci");
  7638. entity.Property(e => e.SeoKeyword)
  7639. .HasColumnType("varchar(200)")
  7640. .HasCharSet("utf8")
  7641. .HasCollation("utf8_general_ci");
  7642. entity.Property(e => e.SeoTitle)
  7643. .HasColumnType("varchar(100)")
  7644. .HasCharSet("utf8")
  7645. .HasCollation("utf8_general_ci");
  7646. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7647. entity.Property(e => e.Status).HasColumnType("int(11)");
  7648. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7649. entity.Property(e => e.UpdateMan)
  7650. .HasColumnType("varchar(50)")
  7651. .HasCharSet("utf8")
  7652. .HasCollation("utf8_general_ci");
  7653. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7654. entity.Property(e => e.Version).HasColumnType("int(11)");
  7655. });
  7656. modelBuilder.Entity<UserAuthRecord>(entity =>
  7657. {
  7658. entity.Property(e => e.Id).HasColumnType("int(11)");
  7659. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  7660. entity.Property(e => e.BankCardAccount)
  7661. .HasColumnType("varchar(32)")
  7662. .HasCharSet("utf8")
  7663. .HasCollation("utf8_general_ci");
  7664. entity.Property(e => e.BankMobile)
  7665. .HasColumnType("varchar(11)")
  7666. .HasCharSet("utf8")
  7667. .HasCollation("utf8_general_ci");
  7668. entity.Property(e => e.BankName)
  7669. .HasColumnType("varchar(64)")
  7670. .HasCharSet("utf8")
  7671. .HasCollation("utf8_general_ci");
  7672. entity.Property(e => e.ChannelCode)
  7673. .HasColumnType("varchar(16)")
  7674. .HasCharSet("utf8")
  7675. .HasCollation("utf8_general_ci");
  7676. entity.Property(e => e.ChannelName)
  7677. .HasColumnType("varchar(32)")
  7678. .HasCharSet("utf8")
  7679. .HasCollation("utf8_general_ci");
  7680. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7681. entity.Property(e => e.CreateMan)
  7682. .HasColumnType("varchar(50)")
  7683. .HasCharSet("utf8")
  7684. .HasCollation("utf8_general_ci");
  7685. entity.Property(e => e.IdcardNo)
  7686. .HasColumnType("varchar(18)")
  7687. .HasCharSet("utf8")
  7688. .HasCollation("utf8_general_ci");
  7689. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7690. entity.Property(e => e.RealName)
  7691. .HasColumnType("varchar(32)")
  7692. .HasCharSet("utf8")
  7693. .HasCollation("utf8_general_ci");
  7694. entity.Property(e => e.ReqData)
  7695. .HasColumnType("varchar(2048)")
  7696. .HasCharSet("utf8")
  7697. .HasCollation("utf8_general_ci");
  7698. entity.Property(e => e.ResData)
  7699. .HasColumnType("varchar(2048)")
  7700. .HasCharSet("utf8")
  7701. .HasCollation("utf8_general_ci");
  7702. entity.Property(e => e.ReturnCode)
  7703. .HasColumnType("varchar(32)")
  7704. .HasCharSet("utf8")
  7705. .HasCollation("utf8_general_ci");
  7706. entity.Property(e => e.ReturnMsg)
  7707. .HasColumnType("varchar(128)")
  7708. .HasCharSet("utf8")
  7709. .HasCollation("utf8_general_ci");
  7710. entity.Property(e => e.SeoDescription)
  7711. .HasColumnType("varchar(500)")
  7712. .HasCharSet("utf8")
  7713. .HasCollation("utf8_general_ci");
  7714. entity.Property(e => e.SeoKeyword)
  7715. .HasColumnType("varchar(200)")
  7716. .HasCharSet("utf8")
  7717. .HasCollation("utf8_general_ci");
  7718. entity.Property(e => e.SeoTitle)
  7719. .HasColumnType("varchar(100)")
  7720. .HasCharSet("utf8")
  7721. .HasCollation("utf8_general_ci");
  7722. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7723. entity.Property(e => e.Status).HasColumnType("int(11)");
  7724. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7725. entity.Property(e => e.UpdateMan)
  7726. .HasColumnType("varchar(50)")
  7727. .HasCharSet("utf8")
  7728. .HasCollation("utf8_general_ci");
  7729. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7730. entity.Property(e => e.Version).HasColumnType("int(11)");
  7731. });
  7732. modelBuilder.Entity<UserBack>(entity =>
  7733. {
  7734. entity.Property(e => e.Id).HasColumnType("int(11)");
  7735. entity.Property(e => e.BackKind).HasColumnType("int(11)");
  7736. entity.Property(e => e.BackStatus).HasColumnType("int(11)");
  7737. entity.Property(e => e.Content)
  7738. .HasColumnType("varchar(100)")
  7739. .HasCharSet("utf8")
  7740. .HasCollation("utf8_general_ci");
  7741. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7742. entity.Property(e => e.CreateMan)
  7743. .HasColumnType("varchar(50)")
  7744. .HasCharSet("utf8")
  7745. .HasCollation("utf8_general_ci");
  7746. entity.Property(e => e.IsPhoneCallBack)
  7747. .HasColumnType("bit(1)")
  7748. .HasDefaultValueSql("b'0'");
  7749. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7750. entity.Property(e => e.ReplyContent)
  7751. .HasColumnType("mediumtext")
  7752. .HasCharSet("utf8")
  7753. .HasCollation("utf8_general_ci");
  7754. entity.Property(e => e.SeoDescription)
  7755. .HasColumnType("varchar(500)")
  7756. .HasCharSet("utf8")
  7757. .HasCollation("utf8_general_ci");
  7758. entity.Property(e => e.SeoKeyword)
  7759. .HasColumnType("varchar(200)")
  7760. .HasCharSet("utf8")
  7761. .HasCollation("utf8_general_ci");
  7762. entity.Property(e => e.SeoTitle)
  7763. .HasColumnType("varchar(100)")
  7764. .HasCharSet("utf8")
  7765. .HasCollation("utf8_general_ci");
  7766. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7767. entity.Property(e => e.Status).HasColumnType("int(11)");
  7768. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7769. entity.Property(e => e.UpdateMan)
  7770. .HasColumnType("varchar(50)")
  7771. .HasCharSet("utf8")
  7772. .HasCollation("utf8_general_ci");
  7773. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7774. entity.Property(e => e.Version).HasColumnType("int(11)");
  7775. });
  7776. modelBuilder.Entity<UserBackKind>(entity =>
  7777. {
  7778. entity.Property(e => e.Id).HasColumnType("int(11)");
  7779. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7780. entity.Property(e => e.CreateMan)
  7781. .HasColumnType("varchar(50)")
  7782. .HasCharSet("utf8")
  7783. .HasCollation("utf8_general_ci");
  7784. entity.Property(e => e.Name)
  7785. .HasColumnType("varchar(50)")
  7786. .HasCharSet("utf8")
  7787. .HasCollation("utf8_general_ci");
  7788. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  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.UpdateDate).HasColumnType("datetime");
  7804. entity.Property(e => e.UpdateMan)
  7805. .HasColumnType("varchar(50)")
  7806. .HasCharSet("utf8")
  7807. .HasCollation("utf8_general_ci");
  7808. entity.Property(e => e.Version).HasColumnType("int(11)");
  7809. });
  7810. modelBuilder.Entity<UserBalanceTop>(entity =>
  7811. {
  7812. entity.Property(e => e.Id).HasColumnType("int(11)");
  7813. entity.Property(e => e.Balance).HasColumnType("decimal(18,2)");
  7814. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7815. entity.Property(e => e.CreateMan)
  7816. .HasColumnType("varchar(50)")
  7817. .HasCharSet("utf8")
  7818. .HasCollation("utf8_general_ci");
  7819. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7820. entity.Property(e => e.SeoDescription)
  7821. .HasColumnType("varchar(500)")
  7822. .HasCharSet("utf8")
  7823. .HasCollation("utf8_general_ci");
  7824. entity.Property(e => e.SeoKeyword)
  7825. .HasColumnType("varchar(200)")
  7826. .HasCharSet("utf8")
  7827. .HasCollation("utf8_general_ci");
  7828. entity.Property(e => e.SeoTitle)
  7829. .HasColumnType("varchar(100)")
  7830. .HasCharSet("utf8")
  7831. .HasCollation("utf8_general_ci");
  7832. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7833. entity.Property(e => e.StatDate)
  7834. .HasColumnType("varchar(8)")
  7835. .HasCharSet("utf8")
  7836. .HasCollation("utf8_general_ci");
  7837. entity.Property(e => e.StatMonth)
  7838. .HasColumnType("varchar(6)")
  7839. .HasCharSet("utf8")
  7840. .HasCollation("utf8_general_ci");
  7841. entity.Property(e => e.Status).HasColumnType("int(11)");
  7842. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7843. entity.Property(e => e.UpdateMan)
  7844. .HasColumnType("varchar(50)")
  7845. .HasCharSet("utf8")
  7846. .HasCollation("utf8_general_ci");
  7847. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7848. entity.Property(e => e.Version).HasColumnType("int(11)");
  7849. });
  7850. modelBuilder.Entity<UserCar>(entity =>
  7851. {
  7852. entity.Property(e => e.Id).HasColumnType("int(11)");
  7853. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  7854. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7855. entity.Property(e => e.CreateMan)
  7856. .HasColumnType("varchar(50)")
  7857. .HasCharSet("utf8")
  7858. .HasCollation("utf8_general_ci");
  7859. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7860. entity.Property(e => e.NormId).HasColumnType("int(11)");
  7861. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  7862. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7863. entity.Property(e => e.SeoDescription)
  7864. .HasColumnType("varchar(500)")
  7865. .HasCharSet("utf8")
  7866. .HasCollation("utf8_general_ci");
  7867. entity.Property(e => e.SeoKeyword)
  7868. .HasColumnType("varchar(200)")
  7869. .HasCharSet("utf8")
  7870. .HasCollation("utf8_general_ci");
  7871. entity.Property(e => e.SeoTitle)
  7872. .HasColumnType("varchar(100)")
  7873. .HasCharSet("utf8")
  7874. .HasCollation("utf8_general_ci");
  7875. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7876. entity.Property(e => e.Status).HasColumnType("int(11)");
  7877. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7878. entity.Property(e => e.UpdateMan)
  7879. .HasColumnType("varchar(50)")
  7880. .HasCharSet("utf8")
  7881. .HasCollation("utf8_general_ci");
  7882. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7883. entity.Property(e => e.Version).HasColumnType("int(11)");
  7884. });
  7885. modelBuilder.Entity<UserCardForWeChat>(entity =>
  7886. {
  7887. entity.Property(e => e.Id).HasColumnType("int(11)");
  7888. entity.Property(e => e.BrandName)
  7889. .HasColumnType("varchar(12)")
  7890. .HasCharSet("utf8")
  7891. .HasCollation("utf8_general_ci");
  7892. entity.Property(e => e.CardId)
  7893. .HasColumnType("varchar(50)")
  7894. .HasCharSet("utf8")
  7895. .HasCollation("utf8_general_ci");
  7896. entity.Property(e => e.CardType)
  7897. .HasColumnType("varchar(30)")
  7898. .HasCharSet("utf8")
  7899. .HasCollation("utf8_general_ci");
  7900. entity.Property(e => e.CodeType)
  7901. .HasColumnType("varchar(50)")
  7902. .HasCharSet("utf8")
  7903. .HasCollation("utf8_general_ci");
  7904. entity.Property(e => e.Color)
  7905. .HasColumnType("varchar(20)")
  7906. .HasCharSet("utf8")
  7907. .HasCollation("utf8_general_ci");
  7908. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7909. entity.Property(e => e.CreateMan)
  7910. .HasColumnType("varchar(50)")
  7911. .HasCharSet("utf8")
  7912. .HasCollation("utf8_general_ci");
  7913. entity.Property(e => e.DateType)
  7914. .HasColumnType("varchar(50)")
  7915. .HasCharSet("utf8")
  7916. .HasCollation("utf8_general_ci");
  7917. entity.Property(e => e.Description)
  7918. .HasColumnType("varchar(1024)")
  7919. .HasCharSet("utf8")
  7920. .HasCollation("utf8_general_ci");
  7921. entity.Property(e => e.EnterName)
  7922. .HasColumnType("varchar(15)")
  7923. .HasCharSet("utf8")
  7924. .HasCollation("utf8_general_ci");
  7925. entity.Property(e => e.EnterTips)
  7926. .HasColumnType("varchar(6)")
  7927. .HasCharSet("utf8")
  7928. .HasCollation("utf8_general_ci");
  7929. entity.Property(e => e.EnterUrl)
  7930. .HasColumnType("varchar(200)")
  7931. .HasCharSet("utf8")
  7932. .HasCollation("utf8_general_ci");
  7933. entity.Property(e => e.LogoUrl)
  7934. .HasColumnType("varchar(200)")
  7935. .HasCharSet("utf8")
  7936. .HasCollation("utf8_general_ci");
  7937. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7938. entity.Property(e => e.Notice)
  7939. .HasColumnType("varchar(16)")
  7940. .HasCharSet("utf8")
  7941. .HasCollation("utf8_general_ci");
  7942. entity.Property(e => e.Prerogative)
  7943. .HasColumnType("varchar(1024)")
  7944. .HasCharSet("utf8")
  7945. .HasCollation("utf8_general_ci");
  7946. entity.Property(e => e.Quantity).HasColumnType("int(11)");
  7947. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7948. entity.Property(e => e.SeoDescription)
  7949. .HasColumnType("varchar(500)")
  7950. .HasCharSet("utf8")
  7951. .HasCollation("utf8_general_ci");
  7952. entity.Property(e => e.SeoKeyword)
  7953. .HasColumnType("varchar(200)")
  7954. .HasCharSet("utf8")
  7955. .HasCollation("utf8_general_ci");
  7956. entity.Property(e => e.SeoTitle)
  7957. .HasColumnType("varchar(100)")
  7958. .HasCharSet("utf8")
  7959. .HasCollation("utf8_general_ci");
  7960. entity.Property(e => e.Sku)
  7961. .HasColumnType("mediumtext")
  7962. .HasCharSet("utf8")
  7963. .HasCollation("utf8_general_ci");
  7964. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7965. entity.Property(e => e.Status).HasColumnType("int(11)");
  7966. entity.Property(e => e.SupplyBalance)
  7967. .HasColumnType("bit(1)")
  7968. .HasDefaultValueSql("b'0'");
  7969. entity.Property(e => e.SupplyBonus)
  7970. .HasColumnType("bit(1)")
  7971. .HasDefaultValueSql("b'0'");
  7972. entity.Property(e => e.Title)
  7973. .HasColumnType("varchar(9)")
  7974. .HasCharSet("utf8")
  7975. .HasCollation("utf8_general_ci");
  7976. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7977. entity.Property(e => e.UpdateMan)
  7978. .HasColumnType("varchar(50)")
  7979. .HasCharSet("utf8")
  7980. .HasCollation("utf8_general_ci");
  7981. entity.Property(e => e.Version).HasColumnType("int(11)");
  7982. });
  7983. modelBuilder.Entity<UserCardRecord>(entity =>
  7984. {
  7985. entity.Property(e => e.Id).HasColumnType("int(11)");
  7986. entity.Property(e => e.CardId).HasColumnType("int(11)");
  7987. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  7988. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7989. entity.Property(e => e.CreateMan)
  7990. .HasColumnType("varchar(50)")
  7991. .HasCharSet("utf8")
  7992. .HasCollation("utf8_general_ci");
  7993. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7994. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7995. entity.Property(e => e.SeoDescription)
  7996. .HasColumnType("varchar(500)")
  7997. .HasCharSet("utf8")
  7998. .HasCollation("utf8_general_ci");
  7999. entity.Property(e => e.SeoKeyword)
  8000. .HasColumnType("varchar(200)")
  8001. .HasCharSet("utf8")
  8002. .HasCollation("utf8_general_ci");
  8003. entity.Property(e => e.SeoTitle)
  8004. .HasColumnType("varchar(100)")
  8005. .HasCharSet("utf8")
  8006. .HasCollation("utf8_general_ci");
  8007. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8008. entity.Property(e => e.Status).HasColumnType("int(11)");
  8009. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8010. entity.Property(e => e.UpdateMan)
  8011. .HasColumnType("varchar(50)")
  8012. .HasCharSet("utf8")
  8013. .HasCollation("utf8_general_ci");
  8014. entity.Property(e => e.Version).HasColumnType("int(11)");
  8015. });
  8016. modelBuilder.Entity<UserCashRecord>(entity =>
  8017. {
  8018. entity.Property(e => e.Id).HasColumnType("int(11)");
  8019. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  8020. entity.Property(e => e.CashOrderNo)
  8021. .HasColumnType("varchar(32)")
  8022. .HasCharSet("utf8")
  8023. .HasCollation("utf8_general_ci");
  8024. entity.Property(e => e.ChanelName)
  8025. .HasColumnType("varchar(32)")
  8026. .HasCharSet("utf8")
  8027. .HasCollation("utf8_general_ci");
  8028. entity.Property(e => e.ChannelCode)
  8029. .HasColumnType("varchar(16)")
  8030. .HasCharSet("utf8")
  8031. .HasCollation("utf8_general_ci");
  8032. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8033. entity.Property(e => e.CreateMan)
  8034. .HasColumnType("varchar(50)")
  8035. .HasCharSet("utf8")
  8036. .HasCollation("utf8_general_ci");
  8037. entity.Property(e => e.IdCardNo)
  8038. .HasColumnType("varchar(18)")
  8039. .HasCharSet("utf8")
  8040. .HasCollation("utf8_general_ci");
  8041. entity.Property(e => e.Ip)
  8042. .HasColumnType("varchar(15)")
  8043. .HasCharSet("utf8")
  8044. .HasCollation("utf8_general_ci");
  8045. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  8046. entity.Property(e => e.MediaSource)
  8047. .HasColumnType("varchar(16)")
  8048. .HasCharSet("utf8")
  8049. .HasCollation("utf8_general_ci");
  8050. entity.Property(e => e.PayTradeNo)
  8051. .HasColumnType("varchar(32)")
  8052. .HasCharSet("utf8")
  8053. .HasCollation("utf8_general_ci");
  8054. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  8055. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8056. entity.Property(e => e.Remark)
  8057. .HasColumnType("varchar(128)")
  8058. .HasCharSet("utf8")
  8059. .HasCollation("utf8_general_ci");
  8060. entity.Property(e => e.ReqData)
  8061. .HasColumnType("varchar(2048)")
  8062. .HasCharSet("utf8")
  8063. .HasCollation("utf8_general_ci");
  8064. entity.Property(e => e.ResData)
  8065. .HasColumnType("varchar(2048)")
  8066. .HasCharSet("utf8")
  8067. .HasCollation("utf8_general_ci");
  8068. entity.Property(e => e.ReturnCode)
  8069. .HasColumnType("varchar(32)")
  8070. .HasCharSet("utf8")
  8071. .HasCollation("utf8_general_ci");
  8072. entity.Property(e => e.ReturnMsg)
  8073. .HasColumnType("varchar(128)")
  8074. .HasCharSet("utf8")
  8075. .HasCollation("utf8_general_ci");
  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.SettleBankCardNo)
  8089. .HasColumnType("varchar(32)")
  8090. .HasCharSet("utf8")
  8091. .HasCollation("utf8_general_ci");
  8092. entity.Property(e => e.SettleBankName)
  8093. .HasColumnType("varchar(64)")
  8094. .HasCharSet("utf8")
  8095. .HasCollation("utf8_general_ci");
  8096. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8097. entity.Property(e => e.Status).HasColumnType("int(11)");
  8098. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8099. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  8100. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  8101. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8102. entity.Property(e => e.UpdateMan)
  8103. .HasColumnType("varchar(50)")
  8104. .HasCharSet("utf8")
  8105. .HasCollation("utf8_general_ci");
  8106. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8107. entity.Property(e => e.Version).HasColumnType("int(11)");
  8108. });
  8109. modelBuilder.Entity<UserCenterIconList>(entity =>
  8110. {
  8111. entity.Property(e => e.Id).HasColumnType("int(11)");
  8112. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8113. entity.Property(e => e.CreateMan)
  8114. .HasColumnType("varchar(50)")
  8115. .HasCharSet("utf8")
  8116. .HasCollation("utf8_general_ci");
  8117. entity.Property(e => e.Icon)
  8118. .HasColumnType("varchar(200)")
  8119. .HasCharSet("utf8")
  8120. .HasCollation("utf8_general_ci");
  8121. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8122. entity.Property(e => e.SeoDescription)
  8123. .HasColumnType("varchar(500)")
  8124. .HasCharSet("utf8")
  8125. .HasCollation("utf8_general_ci");
  8126. entity.Property(e => e.SeoKeyword)
  8127. .HasColumnType("varchar(200)")
  8128. .HasCharSet("utf8")
  8129. .HasCollation("utf8_general_ci");
  8130. entity.Property(e => e.SeoTitle)
  8131. .HasColumnType("varchar(100)")
  8132. .HasCharSet("utf8")
  8133. .HasCollation("utf8_general_ci");
  8134. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8135. entity.Property(e => e.Status).HasColumnType("int(11)");
  8136. entity.Property(e => e.Title)
  8137. .HasColumnType("varchar(50)")
  8138. .HasCharSet("utf8")
  8139. .HasCollation("utf8_general_ci");
  8140. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8141. entity.Property(e => e.UpdateMan)
  8142. .HasColumnType("varchar(50)")
  8143. .HasCharSet("utf8")
  8144. .HasCollation("utf8_general_ci");
  8145. entity.Property(e => e.Url)
  8146. .HasColumnType("varchar(50)")
  8147. .HasCharSet("utf8")
  8148. .HasCollation("utf8_general_ci");
  8149. entity.Property(e => e.Version).HasColumnType("int(11)");
  8150. });
  8151. modelBuilder.Entity<UserCollection>(entity =>
  8152. {
  8153. entity.Property(e => e.Id).HasColumnType("int(11)");
  8154. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8155. entity.Property(e => e.CreateMan)
  8156. .HasColumnType("varchar(50)")
  8157. .HasCharSet("utf8")
  8158. .HasCollation("utf8_general_ci");
  8159. entity.Property(e => e.DataId).HasColumnType("int(11)");
  8160. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8161. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8162. entity.Property(e => e.SeoDescription)
  8163. .HasColumnType("varchar(500)")
  8164. .HasCharSet("utf8")
  8165. .HasCollation("utf8_general_ci");
  8166. entity.Property(e => e.SeoKeyword)
  8167. .HasColumnType("varchar(200)")
  8168. .HasCharSet("utf8")
  8169. .HasCollation("utf8_general_ci");
  8170. entity.Property(e => e.SeoTitle)
  8171. .HasColumnType("varchar(100)")
  8172. .HasCharSet("utf8")
  8173. .HasCollation("utf8_general_ci");
  8174. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8175. entity.Property(e => e.Status).HasColumnType("int(11)");
  8176. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8177. entity.Property(e => e.UpdateMan)
  8178. .HasColumnType("varchar(50)")
  8179. .HasCharSet("utf8")
  8180. .HasCollation("utf8_general_ci");
  8181. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8182. entity.Property(e => e.Version).HasColumnType("int(11)");
  8183. });
  8184. modelBuilder.Entity<UserData>(entity =>
  8185. {
  8186. entity.HasKey(e => e.UserId)
  8187. .HasName("PRIMARY");
  8188. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8189. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  8190. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  8191. entity.Property(e => e.CollectionCount).HasColumnType("int(11)");
  8192. entity.Property(e => e.Coupons).HasColumnType("decimal(18,2)");
  8193. entity.Property(e => e.CurMoney).HasColumnType("decimal(18,2)");
  8194. entity.Property(e => e.FansCount).HasColumnType("int(11)");
  8195. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  8196. entity.Property(e => e.GrowthValue).HasColumnType("int(11)");
  8197. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  8198. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  8199. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  8200. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  8201. entity.Property(e => e.ToCommentOrderCount).HasColumnType("int(11)");
  8202. entity.Property(e => e.ToPayOrderCount).HasColumnType("int(11)");
  8203. entity.Property(e => e.ToReceiveOrderCount).HasColumnType("int(11)");
  8204. entity.Property(e => e.ToRefundOrderCount).HasColumnType("int(11)");
  8205. entity.Property(e => e.ToSendOrderCount).HasColumnType("int(11)");
  8206. entity.Property(e => e.TotalOrderMoney).HasColumnType("decimal(18,2)");
  8207. entity.Property(e => e.TotalUseIntegral).HasColumnType("decimal(18,2)");
  8208. });
  8209. modelBuilder.Entity<UserDetail>(entity =>
  8210. {
  8211. entity.Property(e => e.Id).HasColumnType("int(11)");
  8212. entity.Property(e => e.AddMan).HasColumnType("int(11)");
  8213. entity.Property(e => e.Birthday).HasColumnType("datetime");
  8214. entity.Property(e => e.CardAddAddress).HasColumnType("int(11)");
  8215. entity.Property(e => e.CardExpireDate).HasColumnType("datetime");
  8216. entity.Property(e => e.EduLevel).HasColumnType("int(11)");
  8217. entity.Property(e => e.Email)
  8218. .HasColumnType("varchar(50)")
  8219. .HasCharSet("utf8")
  8220. .HasCollation("utf8_general_ci");
  8221. entity.Property(e => e.FamilyIncome).HasColumnType("int(11)");
  8222. entity.Property(e => e.Interests)
  8223. .HasColumnType("varchar(200)")
  8224. .HasCharSet("utf8")
  8225. .HasCollation("utf8_general_ci");
  8226. entity.Property(e => e.Note)
  8227. .HasColumnType("longtext")
  8228. .HasCharSet("utf8")
  8229. .HasCollation("utf8_general_ci");
  8230. entity.Property(e => e.OfficePhone)
  8231. .HasColumnType("varchar(50)")
  8232. .HasCharSet("utf8")
  8233. .HasCollation("utf8_general_ci");
  8234. entity.Property(e => e.PostalCode)
  8235. .HasColumnType("varchar(6)")
  8236. .HasCharSet("utf8")
  8237. .HasCollation("utf8_general_ci");
  8238. entity.Property(e => e.PrivatePhone)
  8239. .HasColumnType("varchar(50)")
  8240. .HasCharSet("utf8")
  8241. .HasCollation("utf8_general_ci");
  8242. entity.Property(e => e.ToShopDate).HasColumnType("datetime");
  8243. entity.Property(e => e.TrafficTool).HasColumnType("int(11)");
  8244. entity.Property(e => e.UpdateMan).HasColumnType("int(11)");
  8245. entity.Property(e => e.UserJob).HasColumnType("int(11)");
  8246. });
  8247. modelBuilder.Entity<UserFamilyMember>(entity =>
  8248. {
  8249. entity.Property(e => e.Id).HasColumnType("int(11)");
  8250. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8251. entity.Property(e => e.CreateMan)
  8252. .HasColumnType("varchar(50)")
  8253. .HasCharSet("utf8")
  8254. .HasCollation("utf8_general_ci");
  8255. entity.Property(e => e.IdCardNo)
  8256. .HasColumnType("varchar(18)")
  8257. .HasCharSet("utf8")
  8258. .HasCollation("utf8_general_ci");
  8259. entity.Property(e => e.Job).HasColumnType("int(11)");
  8260. entity.Property(e => e.MemberKind).HasColumnType("int(11)");
  8261. entity.Property(e => e.Mobile)
  8262. .HasColumnType("varchar(11)")
  8263. .HasCharSet("utf8")
  8264. .HasCollation("utf8_general_ci");
  8265. entity.Property(e => e.Name)
  8266. .HasColumnType("varchar(20)")
  8267. .HasCharSet("utf8")
  8268. .HasCollation("utf8_general_ci");
  8269. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8270. entity.Property(e => e.SeoDescription)
  8271. .HasColumnType("varchar(500)")
  8272. .HasCharSet("utf8")
  8273. .HasCollation("utf8_general_ci");
  8274. entity.Property(e => e.SeoKeyword)
  8275. .HasColumnType("varchar(200)")
  8276. .HasCharSet("utf8")
  8277. .HasCollation("utf8_general_ci");
  8278. entity.Property(e => e.SeoTitle)
  8279. .HasColumnType("varchar(100)")
  8280. .HasCharSet("utf8")
  8281. .HasCollation("utf8_general_ci");
  8282. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8283. entity.Property(e => e.Status).HasColumnType("int(11)");
  8284. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8285. entity.Property(e => e.UpdateMan)
  8286. .HasColumnType("varchar(50)")
  8287. .HasCharSet("utf8")
  8288. .HasCollation("utf8_general_ci");
  8289. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8290. entity.Property(e => e.Version).HasColumnType("int(11)");
  8291. });
  8292. modelBuilder.Entity<UserForMakerCode>(entity =>
  8293. {
  8294. entity.HasKey(e => e.MakerCode)
  8295. .HasName("PRIMARY");
  8296. entity.Property(e => e.MakerCode)
  8297. .HasColumnType("varchar(30)")
  8298. .HasCharSet("utf8")
  8299. .HasCollation("utf8_general_ci");
  8300. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8301. });
  8302. modelBuilder.Entity<UserForMobile>(entity =>
  8303. {
  8304. entity.HasKey(e => e.Mobile)
  8305. .HasName("PRIMARY");
  8306. entity.Property(e => e.Mobile)
  8307. .HasColumnType("varchar(11)")
  8308. .HasCharSet("utf8")
  8309. .HasCollation("utf8_general_ci");
  8310. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8311. });
  8312. modelBuilder.Entity<UserForRealName>(entity =>
  8313. {
  8314. entity.HasKey(e => e.RealName)
  8315. .HasName("PRIMARY");
  8316. entity.Property(e => e.RealName)
  8317. .HasColumnType("varchar(30)")
  8318. .HasCharSet("utf8")
  8319. .HasCollation("utf8_general_ci");
  8320. entity.Property(e => e.UserId)
  8321. .HasColumnType("varchar(100)")
  8322. .HasCharSet("utf8")
  8323. .HasCollation("utf8_general_ci");
  8324. });
  8325. modelBuilder.Entity<UserFriend>(entity =>
  8326. {
  8327. entity.Property(e => e.Id).HasColumnType("int(11)");
  8328. entity.Property(e => e.FriendId).HasColumnType("int(11)");
  8329. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8330. });
  8331. modelBuilder.Entity<UserGroup>(entity =>
  8332. {
  8333. entity.Property(e => e.Id).HasColumnType("int(11)");
  8334. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8335. entity.Property(e => e.CreateMan)
  8336. .HasColumnType("varchar(50)")
  8337. .HasCharSet("utf8")
  8338. .HasCollation("utf8_general_ci");
  8339. entity.Property(e => e.Details)
  8340. .HasColumnType("varchar(200)")
  8341. .HasCharSet("utf8")
  8342. .HasCollation("utf8_general_ci");
  8343. entity.Property(e => e.Name)
  8344. .HasColumnType("varchar(20)")
  8345. .HasCharSet("utf8")
  8346. .HasCollation("utf8_general_ci");
  8347. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8348. entity.Property(e => e.SeoDescription)
  8349. .HasColumnType("varchar(500)")
  8350. .HasCharSet("utf8")
  8351. .HasCollation("utf8_general_ci");
  8352. entity.Property(e => e.SeoKeyword)
  8353. .HasColumnType("varchar(200)")
  8354. .HasCharSet("utf8")
  8355. .HasCollation("utf8_general_ci");
  8356. entity.Property(e => e.SeoTitle)
  8357. .HasColumnType("varchar(100)")
  8358. .HasCharSet("utf8")
  8359. .HasCollation("utf8_general_ci");
  8360. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8361. entity.Property(e => e.Status).HasColumnType("int(11)");
  8362. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8363. entity.Property(e => e.UpdateMan)
  8364. .HasColumnType("varchar(50)")
  8365. .HasCharSet("utf8")
  8366. .HasCollation("utf8_general_ci");
  8367. entity.Property(e => e.Version).HasColumnType("int(11)");
  8368. });
  8369. modelBuilder.Entity<UserLevelSet>(entity =>
  8370. {
  8371. entity.Property(e => e.Id).HasColumnType("int(11)");
  8372. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8373. entity.Property(e => e.CreateMan)
  8374. .HasColumnType("varchar(50)")
  8375. .HasCharSet("utf8")
  8376. .HasCollation("utf8_general_ci");
  8377. entity.Property(e => e.Details)
  8378. .HasColumnType("varchar(200)")
  8379. .HasCharSet("utf8")
  8380. .HasCollation("utf8_general_ci");
  8381. entity.Property(e => e.Name)
  8382. .HasColumnType("varchar(20)")
  8383. .HasCharSet("utf8")
  8384. .HasCollation("utf8_general_ci");
  8385. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8386. entity.Property(e => e.SeoDescription)
  8387. .HasColumnType("varchar(500)")
  8388. .HasCharSet("utf8")
  8389. .HasCollation("utf8_general_ci");
  8390. entity.Property(e => e.SeoKeyword)
  8391. .HasColumnType("varchar(200)")
  8392. .HasCharSet("utf8")
  8393. .HasCollation("utf8_general_ci");
  8394. entity.Property(e => e.SeoTitle)
  8395. .HasColumnType("varchar(100)")
  8396. .HasCharSet("utf8")
  8397. .HasCollation("utf8_general_ci");
  8398. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8399. entity.Property(e => e.Status).HasColumnType("int(11)");
  8400. entity.Property(e => e.UpLevelDays).HasColumnType("int(11)");
  8401. entity.Property(e => e.UpLevelGrowth).HasColumnType("int(11)");
  8402. entity.Property(e => e.UpLevelIntegral).HasColumnType("decimal(10,0)");
  8403. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8404. entity.Property(e => e.UpdateMan)
  8405. .HasColumnType("varchar(50)")
  8406. .HasCharSet("utf8")
  8407. .HasCollation("utf8_general_ci");
  8408. entity.Property(e => e.Version).HasColumnType("int(11)");
  8409. });
  8410. modelBuilder.Entity<UserLoginRecord>(entity =>
  8411. {
  8412. entity.Property(e => e.Id).HasColumnType("int(11)");
  8413. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8414. entity.Property(e => e.CreateMan)
  8415. .HasColumnType("varchar(50)")
  8416. .HasCharSet("utf8")
  8417. .HasCollation("utf8_general_ci");
  8418. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8419. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8420. entity.Property(e => e.SeoDescription)
  8421. .HasColumnType("varchar(500)")
  8422. .HasCharSet("utf8")
  8423. .HasCollation("utf8_general_ci");
  8424. entity.Property(e => e.SeoKeyword)
  8425. .HasColumnType("varchar(200)")
  8426. .HasCharSet("utf8")
  8427. .HasCollation("utf8_general_ci");
  8428. entity.Property(e => e.SeoTitle)
  8429. .HasColumnType("varchar(100)")
  8430. .HasCharSet("utf8")
  8431. .HasCollation("utf8_general_ci");
  8432. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8433. entity.Property(e => e.Status).HasColumnType("int(11)");
  8434. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8435. entity.Property(e => e.UpdateMan)
  8436. .HasColumnType("varchar(50)")
  8437. .HasCharSet("utf8")
  8438. .HasCollation("utf8_general_ci");
  8439. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8440. entity.Property(e => e.Version).HasColumnType("int(11)");
  8441. });
  8442. modelBuilder.Entity<UserMachineData>(entity =>
  8443. {
  8444. entity.HasKey(e => e.IdBrand)
  8445. .HasName("PRIMARY");
  8446. entity.Property(e => e.IdBrand)
  8447. .HasColumnType("varchar(50)")
  8448. .HasCharSet("utf8")
  8449. .HasCollation("utf8_general_ci");
  8450. entity.Property(e => e.ActProfit).HasColumnType("decimal(18,2)");
  8451. entity.Property(e => e.BindCount).HasColumnType("int(11)");
  8452. entity.Property(e => e.DividendsProfit).HasColumnType("decimal(18,2)");
  8453. entity.Property(e => e.FluxProfit).HasColumnType("decimal(18,2)");
  8454. entity.Property(e => e.OpenProfit).HasColumnType("decimal(18,2)");
  8455. entity.Property(e => e.OtherProfit).HasColumnType("decimal(18,2)");
  8456. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  8457. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  8458. entity.Property(e => e.UnBindCount).HasColumnType("int(11)");
  8459. });
  8460. modelBuilder.Entity<UserMallLargeSn>(entity =>
  8461. {
  8462. entity.Property(e => e.Id).HasColumnType("int(11)");
  8463. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8464. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8465. entity.Property(e => e.CreateMan)
  8466. .HasColumnType("varchar(50)")
  8467. .HasCharSet("utf8")
  8468. .HasCollation("utf8_general_ci");
  8469. entity.Property(e => e.OrderAmount).HasColumnType("decimal(18,2)");
  8470. entity.Property(e => e.OrderNo)
  8471. .HasColumnType("varchar(32)")
  8472. .HasCharSet("utf8")
  8473. .HasCollation("utf8_general_ci");
  8474. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  8475. entity.Property(e => e.ProductName)
  8476. .HasColumnType("varchar(32)")
  8477. .HasCharSet("utf8")
  8478. .HasCollation("utf8_general_ci");
  8479. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8480. entity.Property(e => e.Remark)
  8481. .HasColumnType("varchar(64)")
  8482. .HasCharSet("utf8")
  8483. .HasCollation("utf8_general_ci");
  8484. entity.Property(e => e.RuleOrderAmt).HasColumnType("decimal(18,2)");
  8485. entity.Property(e => e.SeoDescription)
  8486. .HasColumnType("varchar(500)")
  8487. .HasCharSet("utf8")
  8488. .HasCollation("utf8_general_ci");
  8489. entity.Property(e => e.SeoKeyword)
  8490. .HasColumnType("varchar(200)")
  8491. .HasCharSet("utf8")
  8492. .HasCollation("utf8_general_ci");
  8493. entity.Property(e => e.SeoTitle)
  8494. .HasColumnType("varchar(100)")
  8495. .HasCharSet("utf8")
  8496. .HasCollation("utf8_general_ci");
  8497. entity.Property(e => e.SnNo)
  8498. .HasColumnType("varchar(32)")
  8499. .HasCharSet("utf8")
  8500. .HasCollation("utf8_general_ci");
  8501. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8502. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  8503. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8504. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8505. entity.Property(e => e.Status).HasColumnType("int(11)");
  8506. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  8507. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8508. entity.Property(e => e.UpdateMan)
  8509. .HasColumnType("varchar(50)")
  8510. .HasCharSet("utf8")
  8511. .HasCollation("utf8_general_ci");
  8512. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8513. entity.Property(e => e.Version).HasColumnType("int(11)");
  8514. });
  8515. modelBuilder.Entity<UserOfflineSignInRecords>(entity =>
  8516. {
  8517. entity.Property(e => e.Id).HasColumnType("int(11)");
  8518. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8519. entity.Property(e => e.CreateMan)
  8520. .HasColumnType("varchar(50)")
  8521. .HasCharSet("utf8")
  8522. .HasCollation("utf8_general_ci");
  8523. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8524. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8525. entity.Property(e => e.SeoDescription)
  8526. .HasColumnType("varchar(500)")
  8527. .HasCharSet("utf8")
  8528. .HasCollation("utf8_general_ci");
  8529. entity.Property(e => e.SeoKeyword)
  8530. .HasColumnType("varchar(200)")
  8531. .HasCharSet("utf8")
  8532. .HasCollation("utf8_general_ci");
  8533. entity.Property(e => e.SeoTitle)
  8534. .HasColumnType("varchar(100)")
  8535. .HasCharSet("utf8")
  8536. .HasCollation("utf8_general_ci");
  8537. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8538. entity.Property(e => e.Status).HasColumnType("int(11)");
  8539. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8540. entity.Property(e => e.UpdateMan)
  8541. .HasColumnType("varchar(50)")
  8542. .HasCharSet("utf8")
  8543. .HasCollation("utf8_general_ci");
  8544. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8545. entity.Property(e => e.Version).HasColumnType("int(11)");
  8546. });
  8547. modelBuilder.Entity<UserProfit>(entity =>
  8548. {
  8549. entity.Property(e => e.Id).HasColumnType("int(11)");
  8550. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8551. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8552. entity.Property(e => e.CardType)
  8553. .HasColumnType("varchar(10)")
  8554. .HasCharSet("utf8")
  8555. .HasCollation("utf8_general_ci");
  8556. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8557. entity.Property(e => e.CreateMan)
  8558. .HasColumnType("varchar(50)")
  8559. .HasCharSet("utf8")
  8560. .HasCollation("utf8_general_ci");
  8561. entity.Property(e => e.HelpAddOrSubRate).HasColumnType("decimal(18,2)");
  8562. entity.Property(e => e.HelpProfitPercent).HasColumnType("decimal(18,2)");
  8563. entity.Property(e => e.HelpProfitRate).HasColumnType("decimal(18,2)");
  8564. entity.Property(e => e.HelpProfitRateBase).HasColumnType("decimal(18,2)");
  8565. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8566. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8567. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8568. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8569. entity.Property(e => e.Remark)
  8570. .HasColumnType("varchar(64)")
  8571. .HasCharSet("utf8")
  8572. .HasCollation("utf8_general_ci");
  8573. entity.Property(e => e.SeoDescription)
  8574. .HasColumnType("varchar(500)")
  8575. .HasCharSet("utf8")
  8576. .HasCollation("utf8_general_ci");
  8577. entity.Property(e => e.SeoKeyword)
  8578. .HasColumnType("varchar(200)")
  8579. .HasCharSet("utf8")
  8580. .HasCollation("utf8_general_ci");
  8581. entity.Property(e => e.SeoTitle)
  8582. .HasColumnType("varchar(100)")
  8583. .HasCharSet("utf8")
  8584. .HasCollation("utf8_general_ci");
  8585. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8586. entity.Property(e => e.Status).HasColumnType("int(11)");
  8587. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8588. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8589. entity.Property(e => e.UpdateMan)
  8590. .HasColumnType("varchar(50)")
  8591. .HasCharSet("utf8")
  8592. .HasCollation("utf8_general_ci");
  8593. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8594. entity.Property(e => e.Version).HasColumnType("int(11)");
  8595. });
  8596. modelBuilder.Entity<UserProfitSet>(entity =>
  8597. {
  8598. entity.Property(e => e.Id).HasColumnType("int(11)");
  8599. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8600. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8601. entity.Property(e => e.CardType).HasColumnType("int(11)");
  8602. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8603. entity.Property(e => e.CreateMan)
  8604. .HasColumnType("varchar(50)")
  8605. .HasCharSet("utf8")
  8606. .HasCollation("utf8_general_ci");
  8607. entity.Property(e => e.HelpFlag).HasColumnType("int(11)");
  8608. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8609. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8610. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8611. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8612. entity.Property(e => e.Remark)
  8613. .HasColumnType("varchar(64)")
  8614. .HasCharSet("utf8")
  8615. .HasCollation("utf8_general_ci");
  8616. entity.Property(e => e.SeoDescription)
  8617. .HasColumnType("varchar(500)")
  8618. .HasCharSet("utf8")
  8619. .HasCollation("utf8_general_ci");
  8620. entity.Property(e => e.SeoKeyword)
  8621. .HasColumnType("varchar(200)")
  8622. .HasCharSet("utf8")
  8623. .HasCollation("utf8_general_ci");
  8624. entity.Property(e => e.SeoTitle)
  8625. .HasColumnType("varchar(100)")
  8626. .HasCharSet("utf8")
  8627. .HasCollation("utf8_general_ci");
  8628. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8629. entity.Property(e => e.Status).HasColumnType("int(11)");
  8630. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8631. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8632. entity.Property(e => e.UpdateMan)
  8633. .HasColumnType("varchar(50)")
  8634. .HasCharSet("utf8")
  8635. .HasCollation("utf8_general_ci");
  8636. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8637. entity.Property(e => e.Version).HasColumnType("int(11)");
  8638. });
  8639. modelBuilder.Entity<UserProfitSubsidySummary>(entity =>
  8640. {
  8641. entity.Property(e => e.Id).HasColumnType("int(11)");
  8642. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8643. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  8644. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8645. entity.Property(e => e.CreateMan)
  8646. .HasColumnType("varchar(50)")
  8647. .HasCharSet("utf8")
  8648. .HasCollation("utf8_general_ci");
  8649. entity.Property(e => e.MgrName)
  8650. .HasColumnType("varchar(32)")
  8651. .HasCharSet("utf8")
  8652. .HasCollation("utf8_general_ci");
  8653. entity.Property(e => e.MgrNo)
  8654. .HasColumnType("varchar(16)")
  8655. .HasCharSet("utf8")
  8656. .HasCollation("utf8_general_ci");
  8657. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8658. entity.Property(e => e.SeoDescription)
  8659. .HasColumnType("varchar(500)")
  8660. .HasCharSet("utf8")
  8661. .HasCollation("utf8_general_ci");
  8662. entity.Property(e => e.SeoKeyword)
  8663. .HasColumnType("varchar(200)")
  8664. .HasCharSet("utf8")
  8665. .HasCollation("utf8_general_ci");
  8666. entity.Property(e => e.SeoTitle)
  8667. .HasColumnType("varchar(100)")
  8668. .HasCharSet("utf8")
  8669. .HasCollation("utf8_general_ci");
  8670. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8671. entity.Property(e => e.Status).HasColumnType("int(11)");
  8672. entity.Property(e => e.SubsidyDirectProfit).HasColumnType("decimal(18,2)");
  8673. entity.Property(e => e.SubsidyJuniorProfit).HasColumnType("decimal(18,2)");
  8674. entity.Property(e => e.SubsidyTotalProfit).HasColumnType("decimal(18,2)");
  8675. entity.Property(e => e.TradeMonth)
  8676. .HasColumnType("varchar(6)")
  8677. .HasCharSet("utf8")
  8678. .HasCollation("utf8_general_ci");
  8679. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8680. entity.Property(e => e.UpdateMan)
  8681. .HasColumnType("varchar(50)")
  8682. .HasCharSet("utf8")
  8683. .HasCollation("utf8_general_ci");
  8684. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8685. entity.Property(e => e.Version).HasColumnType("int(11)");
  8686. });
  8687. modelBuilder.Entity<UserRank>(entity =>
  8688. {
  8689. entity.Property(e => e.Id).HasColumnType("int(11)");
  8690. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8691. entity.Property(e => e.CreateMan)
  8692. .HasColumnType("varchar(50)")
  8693. .HasCharSet("utf8")
  8694. .HasCollation("utf8_general_ci");
  8695. entity.Property(e => e.ExceedVal).HasColumnType("int(11)");
  8696. entity.Property(e => e.NextRank).HasColumnType("int(11)");
  8697. entity.Property(e => e.OperateDate).HasColumnType("datetime");
  8698. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8699. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8700. entity.Property(e => e.SeoDescription)
  8701. .HasColumnType("varchar(500)")
  8702. .HasCharSet("utf8")
  8703. .HasCollation("utf8_general_ci");
  8704. entity.Property(e => e.SeoKeyword)
  8705. .HasColumnType("varchar(200)")
  8706. .HasCharSet("utf8")
  8707. .HasCollation("utf8_general_ci");
  8708. entity.Property(e => e.SeoTitle)
  8709. .HasColumnType("varchar(100)")
  8710. .HasCharSet("utf8")
  8711. .HasCollation("utf8_general_ci");
  8712. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8713. entity.Property(e => e.StatMonth).HasColumnType("int(11)");
  8714. entity.Property(e => e.StatYear).HasColumnType("int(11)");
  8715. entity.Property(e => e.Status).HasColumnType("int(11)");
  8716. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  8717. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8718. entity.Property(e => e.UpdateMan)
  8719. .HasColumnType("varchar(50)")
  8720. .HasCharSet("utf8")
  8721. .HasCollation("utf8_general_ci");
  8722. entity.Property(e => e.UpgradeFlag)
  8723. .HasColumnType("bit(1)")
  8724. .HasDefaultValueSql("b'0'");
  8725. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8726. entity.Property(e => e.Version).HasColumnType("int(11)");
  8727. entity.Property(e => e.WhiteRank).HasColumnType("int(11)");
  8728. });
  8729. modelBuilder.Entity<UserRankWhite>(entity =>
  8730. {
  8731. entity.Property(e => e.Id).HasColumnType("int(11)");
  8732. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8733. entity.Property(e => e.CreateMan)
  8734. .HasColumnType("varchar(50)")
  8735. .HasCharSet("utf8")
  8736. .HasCollation("utf8_general_ci");
  8737. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8738. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8739. entity.Property(e => e.SeoDescription)
  8740. .HasColumnType("varchar(500)")
  8741. .HasCharSet("utf8")
  8742. .HasCollation("utf8_general_ci");
  8743. entity.Property(e => e.SeoKeyword)
  8744. .HasColumnType("varchar(200)")
  8745. .HasCharSet("utf8")
  8746. .HasCollation("utf8_general_ci");
  8747. entity.Property(e => e.SeoTitle)
  8748. .HasColumnType("varchar(100)")
  8749. .HasCharSet("utf8")
  8750. .HasCollation("utf8_general_ci");
  8751. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8752. entity.Property(e => e.Status).HasColumnType("int(11)");
  8753. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8754. entity.Property(e => e.UpdateMan)
  8755. .HasColumnType("varchar(50)")
  8756. .HasCharSet("utf8")
  8757. .HasCollation("utf8_general_ci");
  8758. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8759. entity.Property(e => e.Version).HasColumnType("int(11)");
  8760. });
  8761. modelBuilder.Entity<UserRebateDetail>(entity =>
  8762. {
  8763. entity.Property(e => e.Id).HasColumnType("int(11)");
  8764. entity.Property(e => e.ChannelMerNo)
  8765. .HasColumnType("varchar(32)")
  8766. .HasCharSet("utf8")
  8767. .HasCollation("utf8_general_ci");
  8768. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8769. entity.Property(e => e.CreateMan)
  8770. .HasColumnType("varchar(50)")
  8771. .HasCharSet("utf8")
  8772. .HasCollation("utf8_general_ci");
  8773. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  8774. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  8775. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  8776. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  8777. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8778. entity.Property(e => e.MgrName)
  8779. .HasColumnType("varchar(32)")
  8780. .HasCharSet("utf8")
  8781. .HasCollation("utf8_general_ci");
  8782. entity.Property(e => e.MgrNo)
  8783. .HasColumnType("varchar(16)")
  8784. .HasCharSet("utf8")
  8785. .HasCollation("utf8_general_ci");
  8786. entity.Property(e => e.ProductName)
  8787. .HasColumnType("varchar(32)")
  8788. .HasCharSet("utf8")
  8789. .HasCollation("utf8_general_ci");
  8790. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  8791. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8792. entity.Property(e => e.RebateMonthCount).HasColumnType("int(11)");
  8793. entity.Property(e => e.RebateRewardNo)
  8794. .HasColumnType("varchar(32)")
  8795. .HasCharSet("utf8")
  8796. .HasCollation("utf8_general_ci");
  8797. entity.Property(e => e.RebateType).HasColumnType("int(11)");
  8798. entity.Property(e => e.Remark)
  8799. .HasColumnType("varchar(64)")
  8800. .HasCharSet("utf8")
  8801. .HasCollation("utf8_general_ci");
  8802. entity.Property(e => e.SeoDescription)
  8803. .HasColumnType("varchar(500)")
  8804. .HasCharSet("utf8")
  8805. .HasCollation("utf8_general_ci");
  8806. entity.Property(e => e.SeoKeyword)
  8807. .HasColumnType("varchar(200)")
  8808. .HasCharSet("utf8")
  8809. .HasCollation("utf8_general_ci");
  8810. entity.Property(e => e.SeoTitle)
  8811. .HasColumnType("varchar(100)")
  8812. .HasCharSet("utf8")
  8813. .HasCollation("utf8_general_ci");
  8814. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8815. entity.Property(e => e.Status).HasColumnType("int(11)");
  8816. entity.Property(e => e.TradeDate)
  8817. .HasColumnType("varchar(8)")
  8818. .HasCharSet("utf8")
  8819. .HasCollation("utf8_general_ci");
  8820. entity.Property(e => e.TradeMonth)
  8821. .HasColumnType("varchar(6)")
  8822. .HasCharSet("utf8")
  8823. .HasCollation("utf8_general_ci");
  8824. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8825. entity.Property(e => e.UpdateMan)
  8826. .HasColumnType("varchar(50)")
  8827. .HasCharSet("utf8")
  8828. .HasCollation("utf8_general_ci");
  8829. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8830. entity.Property(e => e.Version).HasColumnType("int(11)");
  8831. });
  8832. modelBuilder.Entity<UserSnActInfo>(entity =>
  8833. {
  8834. entity.Property(e => e.Id).HasColumnType("int(11)");
  8835. entity.Property(e => e.ActUserId).HasColumnType("int(11)");
  8836. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  8837. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8838. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8839. entity.Property(e => e.CreateMan)
  8840. .HasColumnType("varchar(50)")
  8841. .HasCharSet("utf8")
  8842. .HasCollation("utf8_general_ci");
  8843. entity.Property(e => e.EffectEndActDate)
  8844. .HasColumnType("varchar(8)")
  8845. .HasCharSet("utf8")
  8846. .HasCollation("utf8_general_ci");
  8847. entity.Property(e => e.EffectEndCycleDate)
  8848. .HasColumnType("varchar(8)")
  8849. .HasCharSet("utf8")
  8850. .HasCollation("utf8_general_ci");
  8851. entity.Property(e => e.EffectStartActDate)
  8852. .HasColumnType("varchar(8)")
  8853. .HasCharSet("utf8")
  8854. .HasCollation("utf8_general_ci");
  8855. entity.Property(e => e.EffectStartCycleDate)
  8856. .HasColumnType("varchar(8)")
  8857. .HasCharSet("utf8")
  8858. .HasCollation("utf8_general_ci");
  8859. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8860. entity.Property(e => e.Remark)
  8861. .HasColumnType("varchar(128)")
  8862. .HasCharSet("utf8")
  8863. .HasCollation("utf8_general_ci");
  8864. entity.Property(e => e.SeoDescription)
  8865. .HasColumnType("varchar(500)")
  8866. .HasCharSet("utf8")
  8867. .HasCollation("utf8_general_ci");
  8868. entity.Property(e => e.SeoKeyword)
  8869. .HasColumnType("varchar(200)")
  8870. .HasCharSet("utf8")
  8871. .HasCollation("utf8_general_ci");
  8872. entity.Property(e => e.SeoTitle)
  8873. .HasColumnType("varchar(100)")
  8874. .HasCharSet("utf8")
  8875. .HasCollation("utf8_general_ci");
  8876. entity.Property(e => e.SnNo)
  8877. .HasColumnType("varchar(32)")
  8878. .HasCharSet("utf8")
  8879. .HasCollation("utf8_general_ci");
  8880. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8881. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  8882. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8883. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8884. entity.Property(e => e.SourceShipDate).HasColumnType("datetime");
  8885. entity.Property(e => e.SourceSnNo)
  8886. .HasColumnType("varchar(32)")
  8887. .HasCharSet("utf8")
  8888. .HasCollation("utf8_general_ci");
  8889. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  8890. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  8891. entity.Property(e => e.StandardDate)
  8892. .HasColumnType("varchar(8)")
  8893. .HasCharSet("utf8")
  8894. .HasCollation("utf8_general_ci");
  8895. entity.Property(e => e.Status).HasColumnType("int(11)");
  8896. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8897. entity.Property(e => e.UpdateMan)
  8898. .HasColumnType("varchar(50)")
  8899. .HasCharSet("utf8")
  8900. .HasCollation("utf8_general_ci");
  8901. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8902. entity.Property(e => e.Version).HasColumnType("int(11)");
  8903. });
  8904. modelBuilder.Entity<UserSnDelayChange>(entity =>
  8905. {
  8906. entity.Property(e => e.Id).HasColumnType("int(11)");
  8907. entity.Property(e => e.ActivityRuleId).HasColumnType("int(11)");
  8908. entity.Property(e => e.AfterEndCycleDate)
  8909. .HasColumnType("varchar(8)")
  8910. .HasCharSet("utf8")
  8911. .HasCollation("utf8_general_ci");
  8912. entity.Property(e => e.BeforeEndCycleDate)
  8913. .HasColumnType("varchar(8)")
  8914. .HasCharSet("utf8")
  8915. .HasCollation("utf8_general_ci");
  8916. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8917. entity.Property(e => e.ChangeRecordNo)
  8918. .HasColumnType("varchar(32)")
  8919. .HasCharSet("utf8")
  8920. .HasCollation("utf8_general_ci");
  8921. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8922. entity.Property(e => e.CreateMan)
  8923. .HasColumnType("varchar(50)")
  8924. .HasCharSet("utf8")
  8925. .HasCollation("utf8_general_ci");
  8926. entity.Property(e => e.InitCycleDate)
  8927. .HasColumnType("varchar(8)")
  8928. .HasCharSet("utf8")
  8929. .HasCollation("utf8_general_ci");
  8930. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8931. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  8932. entity.Property(e => e.Remark)
  8933. .HasColumnType("varchar(128)")
  8934. .HasCharSet("utf8")
  8935. .HasCollation("utf8_general_ci");
  8936. entity.Property(e => e.SeoDescription)
  8937. .HasColumnType("varchar(500)")
  8938. .HasCharSet("utf8")
  8939. .HasCollation("utf8_general_ci");
  8940. entity.Property(e => e.SeoKeyword)
  8941. .HasColumnType("varchar(200)")
  8942. .HasCharSet("utf8")
  8943. .HasCollation("utf8_general_ci");
  8944. entity.Property(e => e.SeoTitle)
  8945. .HasColumnType("varchar(100)")
  8946. .HasCharSet("utf8")
  8947. .HasCollation("utf8_general_ci");
  8948. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  8949. entity.Property(e => e.SnNo)
  8950. .HasColumnType("varchar(32)")
  8951. .HasCharSet("utf8")
  8952. .HasCollation("utf8_general_ci");
  8953. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  8954. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8955. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8956. entity.Property(e => e.SourceSnNo)
  8957. .HasColumnType("varchar(32)")
  8958. .HasCharSet("utf8")
  8959. .HasCollation("utf8_general_ci");
  8960. entity.Property(e => e.SourceSnShipDate).HasColumnType("datetime");
  8961. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  8962. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  8963. entity.Property(e => e.Status).HasColumnType("int(11)");
  8964. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8965. entity.Property(e => e.UpdateMan)
  8966. .HasColumnType("varchar(50)")
  8967. .HasCharSet("utf8")
  8968. .HasCollation("utf8_general_ci");
  8969. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8970. entity.Property(e => e.Version).HasColumnType("int(11)");
  8971. });
  8972. modelBuilder.Entity<UserStoreChange>(entity =>
  8973. {
  8974. entity.Property(e => e.Id).HasColumnType("int(11)");
  8975. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  8976. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  8977. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  8978. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  8979. entity.Property(e => e.BizBatchNo)
  8980. .HasColumnType("varchar(32)")
  8981. .HasCharSet("utf8")
  8982. .HasCollation("utf8_general_ci");
  8983. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8984. entity.Property(e => e.BrandType)
  8985. .HasColumnType("varchar(10)")
  8986. .HasCharSet("utf8")
  8987. .HasCollation("utf8_general_ci");
  8988. entity.Property(e => e.ChangeRecordNo)
  8989. .HasColumnType("varchar(32)")
  8990. .HasCharSet("utf8")
  8991. .HasCollation("utf8_general_ci");
  8992. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8993. entity.Property(e => e.CreateMan)
  8994. .HasColumnType("varchar(50)")
  8995. .HasCharSet("utf8")
  8996. .HasCollation("utf8_general_ci");
  8997. entity.Property(e => e.DeviceModel)
  8998. .HasColumnType("varchar(32)")
  8999. .HasCharSet("utf8")
  9000. .HasCollation("utf8_general_ci");
  9001. entity.Property(e => e.DeviceType)
  9002. .HasColumnType("varchar(32)")
  9003. .HasCharSet("utf8")
  9004. .HasCollation("utf8_general_ci");
  9005. entity.Property(e => e.DeviceVendor)
  9006. .HasColumnType("varchar(32)")
  9007. .HasCharSet("utf8")
  9008. .HasCollation("utf8_general_ci");
  9009. entity.Property(e => e.FromDate).HasColumnType("datetime");
  9010. entity.Property(e => e.FromRemark)
  9011. .HasColumnType("varchar(64)")
  9012. .HasCharSet("utf8")
  9013. .HasCollation("utf8_general_ci");
  9014. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  9015. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9016. entity.Property(e => e.SeoDescription)
  9017. .HasColumnType("varchar(500)")
  9018. .HasCharSet("utf8")
  9019. .HasCollation("utf8_general_ci");
  9020. entity.Property(e => e.SeoKeyword)
  9021. .HasColumnType("varchar(200)")
  9022. .HasCharSet("utf8")
  9023. .HasCollation("utf8_general_ci");
  9024. entity.Property(e => e.SeoTitle)
  9025. .HasColumnType("varchar(100)")
  9026. .HasCharSet("utf8")
  9027. .HasCollation("utf8_general_ci");
  9028. entity.Property(e => e.SnNo)
  9029. .HasColumnType("varchar(32)")
  9030. .HasCharSet("utf8")
  9031. .HasCollation("utf8_general_ci");
  9032. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  9033. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9034. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9035. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9036. entity.Property(e => e.Status).HasColumnType("int(11)");
  9037. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  9038. entity.Property(e => e.ToDate).HasColumnType("datetime");
  9039. entity.Property(e => e.ToRemark)
  9040. .HasColumnType("varchar(64)")
  9041. .HasCharSet("utf8")
  9042. .HasCollation("utf8_general_ci");
  9043. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  9044. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  9045. entity.Property(e => e.TransType).HasColumnType("int(11)");
  9046. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9047. entity.Property(e => e.UpdateMan)
  9048. .HasColumnType("varchar(50)")
  9049. .HasCharSet("utf8")
  9050. .HasCollation("utf8_general_ci");
  9051. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9052. entity.Property(e => e.Version).HasColumnType("int(11)");
  9053. });
  9054. modelBuilder.Entity<UserSwapDetail>(entity =>
  9055. {
  9056. entity.Property(e => e.Id).HasColumnType("int(11)");
  9057. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9058. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9059. entity.Property(e => e.CreateMan)
  9060. .HasColumnType("varchar(50)")
  9061. .HasCharSet("utf8")
  9062. .HasCollation("utf8_general_ci");
  9063. entity.Property(e => e.DirectSnTradeAmt).HasColumnType("decimal(18,2)");
  9064. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9065. entity.Property(e => e.RecordNo)
  9066. .HasColumnType("varchar(32)")
  9067. .HasCharSet("utf8")
  9068. .HasCollation("utf8_general_ci");
  9069. entity.Property(e => e.Remark)
  9070. .HasColumnType("varchar(64)")
  9071. .HasCharSet("utf8")
  9072. .HasCollation("utf8_general_ci");
  9073. entity.Property(e => e.RiskResult).HasColumnType("int(11)");
  9074. entity.Property(e => e.SeoDescription)
  9075. .HasColumnType("varchar(500)")
  9076. .HasCharSet("utf8")
  9077. .HasCollation("utf8_general_ci");
  9078. entity.Property(e => e.SeoKeyword)
  9079. .HasColumnType("varchar(200)")
  9080. .HasCharSet("utf8")
  9081. .HasCollation("utf8_general_ci");
  9082. entity.Property(e => e.SeoTitle)
  9083. .HasColumnType("varchar(100)")
  9084. .HasCharSet("utf8")
  9085. .HasCollation("utf8_general_ci");
  9086. entity.Property(e => e.SnNo)
  9087. .HasColumnType("varchar(32)")
  9088. .HasCharSet("utf8")
  9089. .HasCollation("utf8_general_ci");
  9090. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9091. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9092. entity.Property(e => e.SourceSnNo)
  9093. .HasColumnType("varchar(32)")
  9094. .HasCharSet("utf8")
  9095. .HasCollation("utf8_general_ci");
  9096. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9097. entity.Property(e => e.Status).HasColumnType("int(11)");
  9098. entity.Property(e => e.SwapExtProductTypes)
  9099. .HasColumnType("varchar(16)")
  9100. .HasCharSet("utf8")
  9101. .HasCollation("utf8_general_ci");
  9102. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9103. entity.Property(e => e.TradeDate)
  9104. .HasColumnType("varchar(8)")
  9105. .HasCharSet("utf8")
  9106. .HasCollation("utf8_general_ci");
  9107. entity.Property(e => e.TradeMonth)
  9108. .HasColumnType("varchar(6)")
  9109. .HasCharSet("utf8")
  9110. .HasCollation("utf8_general_ci");
  9111. entity.Property(e => e.UpSourceSnNo)
  9112. .HasColumnType("varchar(32)")
  9113. .HasCharSet("utf8")
  9114. .HasCollation("utf8_general_ci");
  9115. entity.Property(e => e.UpSourceSnType).HasColumnType("int(11)");
  9116. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9117. entity.Property(e => e.UpdateMan)
  9118. .HasColumnType("varchar(50)")
  9119. .HasCharSet("utf8")
  9120. .HasCollation("utf8_general_ci");
  9121. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9122. entity.Property(e => e.Version).HasColumnType("int(11)");
  9123. });
  9124. modelBuilder.Entity<UserSwapSummary>(entity =>
  9125. {
  9126. entity.Property(e => e.Id).HasColumnType("int(11)");
  9127. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9128. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9129. entity.Property(e => e.CreateMan)
  9130. .HasColumnType("varchar(50)")
  9131. .HasCharSet("utf8")
  9132. .HasCollation("utf8_general_ci");
  9133. entity.Property(e => e.DirAvgTradeAmt).HasColumnType("decimal(18,2)");
  9134. entity.Property(e => e.DirectActMerCount).HasColumnType("int(11)");
  9135. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9136. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9137. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  9138. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  9139. entity.Property(e => e.SeoDescription)
  9140. .HasColumnType("varchar(500)")
  9141. .HasCharSet("utf8")
  9142. .HasCollation("utf8_general_ci");
  9143. entity.Property(e => e.SeoKeyword)
  9144. .HasColumnType("varchar(200)")
  9145. .HasCharSet("utf8")
  9146. .HasCollation("utf8_general_ci");
  9147. entity.Property(e => e.SeoTitle)
  9148. .HasColumnType("varchar(100)")
  9149. .HasCharSet("utf8")
  9150. .HasCollation("utf8_general_ci");
  9151. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9152. entity.Property(e => e.Status).HasColumnType("int(11)");
  9153. entity.Property(e => e.SwapExtProductTypes)
  9154. .HasColumnType("varchar(16)")
  9155. .HasCharSet("utf8")
  9156. .HasCollation("utf8_general_ci");
  9157. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9158. entity.Property(e => e.TradeMonth)
  9159. .HasColumnType("varchar(6)")
  9160. .HasCharSet("utf8")
  9161. .HasCollation("utf8_general_ci");
  9162. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9163. entity.Property(e => e.UpdateMan)
  9164. .HasColumnType("varchar(50)")
  9165. .HasCharSet("utf8")
  9166. .HasCollation("utf8_general_ci");
  9167. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9168. entity.Property(e => e.Version).HasColumnType("int(11)");
  9169. });
  9170. modelBuilder.Entity<UserSwapWhite>(entity =>
  9171. {
  9172. entity.Property(e => e.Id).HasColumnType("int(11)");
  9173. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9174. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9175. entity.Property(e => e.CreateMan)
  9176. .HasColumnType("varchar(50)")
  9177. .HasCharSet("utf8")
  9178. .HasCollation("utf8_general_ci");
  9179. entity.Property(e => e.EndEffectTime).HasColumnType("datetime");
  9180. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9181. entity.Property(e => e.Remark)
  9182. .HasColumnType("varchar(64)")
  9183. .HasCharSet("utf8")
  9184. .HasCollation("utf8_general_ci");
  9185. entity.Property(e => e.RiskType).HasColumnType("int(11)");
  9186. entity.Property(e => e.SeoDescription)
  9187. .HasColumnType("varchar(500)")
  9188. .HasCharSet("utf8")
  9189. .HasCollation("utf8_general_ci");
  9190. entity.Property(e => e.SeoKeyword)
  9191. .HasColumnType("varchar(200)")
  9192. .HasCharSet("utf8")
  9193. .HasCollation("utf8_general_ci");
  9194. entity.Property(e => e.SeoTitle)
  9195. .HasColumnType("varchar(100)")
  9196. .HasCharSet("utf8")
  9197. .HasCollation("utf8_general_ci");
  9198. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9199. entity.Property(e => e.StartEffectTime).HasColumnType("datetime");
  9200. entity.Property(e => e.Status).HasColumnType("int(11)");
  9201. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9202. entity.Property(e => e.UpdateMan)
  9203. .HasColumnType("varchar(50)")
  9204. .HasCharSet("utf8")
  9205. .HasCollation("utf8_general_ci");
  9206. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9207. entity.Property(e => e.Version).HasColumnType("int(11)");
  9208. });
  9209. modelBuilder.Entity<UserTradeDaySummary>(entity =>
  9210. {
  9211. entity.Property(e => e.Id).HasColumnType("int(11)");
  9212. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9213. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9214. entity.Property(e => e.CreateMan)
  9215. .HasColumnType("varchar(50)")
  9216. .HasCharSet("utf8")
  9217. .HasCollation("utf8_general_ci");
  9218. entity.Property(e => e.DirectDebitCapNum).HasColumnType("int(11)");
  9219. entity.Property(e => e.DirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9220. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9221. entity.Property(e => e.NonDirectDebitCapNum).HasColumnType("int(11)");
  9222. entity.Property(e => e.NonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9223. entity.Property(e => e.NonDirectTradeAmt).HasColumnType("decimal(18,2)");
  9224. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9225. entity.Property(e => e.Remark)
  9226. .HasColumnType("varchar(64)")
  9227. .HasCharSet("utf8")
  9228. .HasCollation("utf8_general_ci");
  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.Sort).HasColumnType("int(11)");
  9242. entity.Property(e => e.Status).HasColumnType("int(11)");
  9243. entity.Property(e => e.TradeDate)
  9244. .HasColumnType("varchar(8)")
  9245. .HasCharSet("utf8")
  9246. .HasCollation("utf8_general_ci");
  9247. entity.Property(e => e.TradeMonth)
  9248. .HasColumnType("varchar(6)")
  9249. .HasCharSet("utf8")
  9250. .HasCollation("utf8_general_ci");
  9251. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9252. entity.Property(e => e.UpdateMan)
  9253. .HasColumnType("varchar(50)")
  9254. .HasCharSet("utf8")
  9255. .HasCollation("utf8_general_ci");
  9256. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9257. entity.Property(e => e.Version).HasColumnType("int(11)");
  9258. });
  9259. modelBuilder.Entity<UserTradeMonthSummary>(entity =>
  9260. {
  9261. entity.Property(e => e.Id).HasColumnType("int(11)");
  9262. entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
  9263. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9264. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9265. entity.Property(e => e.CreateMan)
  9266. .HasColumnType("varchar(50)")
  9267. .HasCharSet("utf8")
  9268. .HasCollation("utf8_general_ci");
  9269. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9270. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  9271. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  9272. entity.Property(e => e.DebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  9273. entity.Property(e => e.MallPosOrderStatus).HasColumnType("int(11)");
  9274. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9275. entity.Property(e => e.Remark)
  9276. .HasColumnType("varchar(64)")
  9277. .HasCharSet("utf8")
  9278. .HasCollation("utf8_general_ci");
  9279. entity.Property(e => e.SeoDescription)
  9280. .HasColumnType("varchar(500)")
  9281. .HasCharSet("utf8")
  9282. .HasCollation("utf8_general_ci");
  9283. entity.Property(e => e.SeoKeyword)
  9284. .HasColumnType("varchar(200)")
  9285. .HasCharSet("utf8")
  9286. .HasCollation("utf8_general_ci");
  9287. entity.Property(e => e.SeoTitle)
  9288. .HasColumnType("varchar(100)")
  9289. .HasCharSet("utf8")
  9290. .HasCollation("utf8_general_ci");
  9291. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9292. entity.Property(e => e.StatType).HasColumnType("int(11)");
  9293. entity.Property(e => e.Status).HasColumnType("int(11)");
  9294. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9295. entity.Property(e => e.TradeMonth)
  9296. .HasColumnType("varchar(6)")
  9297. .HasCharSet("utf8")
  9298. .HasCollation("utf8_general_ci");
  9299. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9300. entity.Property(e => e.UpdateMan)
  9301. .HasColumnType("varchar(50)")
  9302. .HasCharSet("utf8")
  9303. .HasCollation("utf8_general_ci");
  9304. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9305. entity.Property(e => e.Version).HasColumnType("int(11)");
  9306. });
  9307. modelBuilder.Entity<Users>(entity =>
  9308. {
  9309. entity.Property(e => e.Id).HasColumnType("int(11)");
  9310. entity.Property(e => e.AccessToken)
  9311. .HasColumnType("varchar(64)")
  9312. .HasCharSet("utf8")
  9313. .HasCollation("utf8_general_ci");
  9314. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  9315. entity.Property(e => e.Address)
  9316. .HasColumnType("varchar(50)")
  9317. .HasCharSet("utf8")
  9318. .HasCollation("utf8_general_ci");
  9319. entity.Property(e => e.AgentAreas)
  9320. .HasColumnType("varchar(50)")
  9321. .HasCharSet("utf8")
  9322. .HasCollation("utf8_general_ci");
  9323. entity.Property(e => e.AgentLevel).HasColumnType("int(11)");
  9324. entity.Property(e => e.AlipayUserId)
  9325. .HasColumnType("varchar(50)")
  9326. .HasCharSet("utf8")
  9327. .HasCollation("utf8_general_ci");
  9328. entity.Property(e => e.Areas)
  9329. .HasColumnType("varchar(30)")
  9330. .HasCharSet("utf8")
  9331. .HasCollation("utf8_general_ci");
  9332. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  9333. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  9334. entity.Property(e => e.AuthFlag)
  9335. .HasColumnType("bit(1)")
  9336. .HasDefaultValueSql("b'0'");
  9337. entity.Property(e => e.BankCardPositiveImage)
  9338. .HasColumnType("varchar(200)")
  9339. .HasCharSet("utf8")
  9340. .HasCollation("utf8_general_ci");
  9341. entity.Property(e => e.CarIds)
  9342. .HasColumnType("varchar(100)")
  9343. .HasCharSet("utf8")
  9344. .HasCollation("utf8_general_ci");
  9345. entity.Property(e => e.CardNo)
  9346. .HasColumnType("varchar(30)")
  9347. .HasCharSet("utf8")
  9348. .HasCollation("utf8_general_ci");
  9349. entity.Property(e => e.CardRecCode)
  9350. .HasColumnType("varchar(200)")
  9351. .HasCharSet("utf8")
  9352. .HasCollation("utf8_general_ci");
  9353. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  9354. entity.Property(e => e.CertFrontImage)
  9355. .HasColumnType("varchar(200)")
  9356. .HasCharSet("utf8")
  9357. .HasCollation("utf8_general_ci");
  9358. entity.Property(e => e.CertId)
  9359. .HasColumnType("varchar(18)")
  9360. .HasCharSet("utf8")
  9361. .HasCollation("utf8_general_ci");
  9362. entity.Property(e => e.CertReverseImage)
  9363. .HasColumnType("varchar(200)")
  9364. .HasCharSet("utf8")
  9365. .HasCollation("utf8_general_ci");
  9366. entity.Property(e => e.CertValidEndDate).HasColumnType("datetime");
  9367. entity.Property(e => e.CertValidStartDate).HasColumnType("datetime");
  9368. entity.Property(e => e.CitySetDate).HasColumnType("datetime");
  9369. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9370. entity.Property(e => e.CreateMan)
  9371. .HasColumnType("varchar(50)")
  9372. .HasCharSet("utf8")
  9373. .HasCollation("utf8_general_ci");
  9374. entity.Property(e => e.DeviceId)
  9375. .HasColumnType("varchar(128)")
  9376. .HasCharSet("utf8")
  9377. .HasCollation("utf8_general_ci");
  9378. entity.Property(e => e.DeviceToken)
  9379. .HasColumnType("varchar(64)")
  9380. .HasCharSet("utf8")
  9381. .HasCollation("utf8_general_ci");
  9382. entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
  9383. entity.Property(e => e.GroupId)
  9384. .HasColumnType("varchar(200)")
  9385. .HasCharSet("utf8")
  9386. .HasCollation("utf8_general_ci");
  9387. entity.Property(e => e.HandCertImage)
  9388. .HasColumnType("varchar(200)")
  9389. .HasCharSet("utf8")
  9390. .HasCollation("utf8_general_ci");
  9391. entity.Property(e => e.HandPwd)
  9392. .HasColumnType("varchar(32)")
  9393. .HasCharSet("utf8")
  9394. .HasCollation("utf8_general_ci");
  9395. entity.Property(e => e.HeadPhoto)
  9396. .HasColumnType("varchar(2000)")
  9397. .HasCharSet("utf8")
  9398. .HasCollation("utf8_general_ci");
  9399. entity.Property(e => e.IdCardEndNo)
  9400. .HasColumnType("varchar(4)")
  9401. .HasCharSet("utf8")
  9402. .HasCollation("utf8_general_ci");
  9403. entity.Property(e => e.IsNewUser)
  9404. .HasColumnType("bit(1)")
  9405. .HasDefaultValueSql("b'0'");
  9406. entity.Property(e => e.LockStatus)
  9407. .HasColumnType("bit(1)")
  9408. .HasDefaultValueSql("b'0'");
  9409. entity.Property(e => e.LoginPwd)
  9410. .HasColumnType("varchar(32)")
  9411. .HasCharSet("utf8")
  9412. .HasCollation("utf8_general_ci");
  9413. entity.Property(e => e.LoginStatus).HasColumnType("int(11)");
  9414. entity.Property(e => e.MakerCode)
  9415. .HasColumnType("varchar(32)")
  9416. .HasCharSet("utf8")
  9417. .HasCollation("utf8_general_ci");
  9418. entity.Property(e => e.MerchantDate).HasColumnType("datetime");
  9419. entity.Property(e => e.MerchantType).HasColumnType("int(11)");
  9420. entity.Property(e => e.Mobile)
  9421. .HasColumnType("varchar(11)")
  9422. .HasCharSet("utf8")
  9423. .HasCollation("utf8_general_ci");
  9424. entity.Property(e => e.NickName)
  9425. .HasColumnType("varchar(300)")
  9426. .HasCharSet("utf8")
  9427. .HasCollation("utf8_general_ci");
  9428. entity.Property(e => e.OpenId)
  9429. .HasColumnType("varchar(50)")
  9430. .HasCharSet("utf8")
  9431. .HasCollation("utf8_general_ci");
  9432. entity.Property(e => e.ParentNav)
  9433. .HasColumnType("longtext")
  9434. .HasCharSet("utf8")
  9435. .HasCollation("utf8_general_ci");
  9436. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  9437. entity.Property(e => e.PayPwd)
  9438. .HasColumnType("varchar(32)")
  9439. .HasCharSet("utf8")
  9440. .HasCollation("utf8_general_ci");
  9441. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  9442. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9443. entity.Property(e => e.RealName)
  9444. .HasColumnType("varchar(30)")
  9445. .HasCharSet("utf8")
  9446. .HasCollation("utf8_general_ci");
  9447. entity.Property(e => e.ReferenceCode)
  9448. .HasColumnType("varchar(200)")
  9449. .HasCharSet("utf8")
  9450. .HasCollation("utf8_general_ci");
  9451. entity.Property(e => e.ReferenceQrCode)
  9452. .HasColumnType("varchar(200)")
  9453. .HasCharSet("utf8")
  9454. .HasCollation("utf8_general_ci");
  9455. entity.Property(e => e.ReferralUserId).HasColumnType("int(11)");
  9456. entity.Property(e => e.Remark)
  9457. .HasColumnType("mediumtext")
  9458. .HasCharSet("utf8")
  9459. .HasCollation("utf8_general_ci");
  9460. entity.Property(e => e.RiskFlag)
  9461. .HasColumnType("bit(1)")
  9462. .HasDefaultValueSql("b'0'");
  9463. entity.Property(e => e.RiskRemark)
  9464. .HasColumnType("varchar(64)")
  9465. .HasCharSet("utf8")
  9466. .HasCollation("utf8_general_ci");
  9467. entity.Property(e => e.RreezeRemark)
  9468. .HasColumnType("varchar(64)")
  9469. .HasCharSet("utf8")
  9470. .HasCollation("utf8_general_ci");
  9471. entity.Property(e => e.SeoDescription)
  9472. .HasColumnType("varchar(500)")
  9473. .HasCharSet("utf8")
  9474. .HasCollation("utf8_general_ci");
  9475. entity.Property(e => e.SeoKeyword)
  9476. .HasColumnType("varchar(200)")
  9477. .HasCharSet("utf8")
  9478. .HasCollation("utf8_general_ci");
  9479. entity.Property(e => e.SeoTitle)
  9480. .HasColumnType("varchar(100)")
  9481. .HasCharSet("utf8")
  9482. .HasCollation("utf8_general_ci");
  9483. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  9484. entity.Property(e => e.SettleBankCardName)
  9485. .HasColumnType("varchar(20)")
  9486. .HasCharSet("utf8")
  9487. .HasCollation("utf8_general_ci");
  9488. entity.Property(e => e.SettleBankCardNo)
  9489. .HasColumnType("varchar(32)")
  9490. .HasCharSet("utf8")
  9491. .HasCollation("utf8_general_ci");
  9492. entity.Property(e => e.SettleBankName)
  9493. .HasColumnType("varchar(32)")
  9494. .HasCharSet("utf8")
  9495. .HasCollation("utf8_general_ci");
  9496. entity.Property(e => e.SettleRemark)
  9497. .HasColumnType("varchar(64)")
  9498. .HasCharSet("utf8")
  9499. .HasCollation("utf8_general_ci");
  9500. entity.Property(e => e.Sex).HasColumnType("int(11)");
  9501. entity.Property(e => e.SignImgUrl)
  9502. .HasColumnType("varchar(200)")
  9503. .HasCharSet("utf8")
  9504. .HasCollation("utf8_general_ci");
  9505. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9506. entity.Property(e => e.Status).HasColumnType("int(11)");
  9507. entity.Property(e => e.Tags)
  9508. .HasColumnType("varchar(200)")
  9509. .HasCharSet("utf8")
  9510. .HasCollation("utf8_general_ci");
  9511. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9512. entity.Property(e => e.UpdateMan)
  9513. .HasColumnType("varchar(50)")
  9514. .HasCharSet("utf8")
  9515. .HasCollation("utf8_general_ci");
  9516. entity.Property(e => e.UserLevel).HasColumnType("int(11)");
  9517. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  9518. entity.Property(e => e.UserType).HasColumnType("int(11)");
  9519. entity.Property(e => e.Version).HasColumnType("int(11)");
  9520. });
  9521. OnModelCreatingPartial(modelBuilder);
  9522. }
  9523. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  9524. }
  9525. }