WebCMSEntities.cs 502 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157
  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<ConsumerOrders> ConsumerOrders { get; set; }
  29. public virtual DbSet<ConsumerProfit> ConsumerProfit { get; set; }
  30. public virtual DbSet<Consumers> Consumers { get; set; }
  31. public virtual DbSet<CouponAssignRecords> CouponAssignRecords { get; set; }
  32. public virtual DbSet<Coupons> Coupons { get; set; }
  33. public virtual DbSet<CouponsForUser> CouponsForUser { get; set; }
  34. public virtual DbSet<CustomTagSet> CustomTagSet { get; set; }
  35. public virtual DbSet<ErpCompanys> ErpCompanys { get; set; }
  36. public virtual DbSet<FileUpdateInfo> FileUpdateInfo { get; set; }
  37. public virtual DbSet<FluxProfitDetail> FluxProfitDetail { get; set; }
  38. public virtual DbSet<FluxProfitSummary> FluxProfitSummary { get; set; }
  39. public virtual DbSet<IndexIconList> IndexIconList { get; set; }
  40. public virtual DbSet<KqProductBrand> KqProductBrand { get; set; }
  41. public virtual DbSet<KqProductOrgs> KqProductOrgs { get; set; }
  42. public virtual DbSet<KqProductRuleSet> KqProductRuleSet { get; set; }
  43. public virtual DbSet<KqProducts> KqProducts { get; set; }
  44. public virtual DbSet<MachineApply> MachineApply { get; set; }
  45. public virtual DbSet<MachineApplyDetail> MachineApplyDetail { get; set; }
  46. public virtual DbSet<MachineChange> MachineChange { get; set; }
  47. public virtual DbSet<MachineChangeDetail> MachineChangeDetail { get; set; }
  48. public virtual DbSet<MachineForQrCode> MachineForQrCode { get; set; }
  49. public virtual DbSet<MachineForSnNo> MachineForSnNo { get; set; }
  50. public virtual DbSet<MachineRenew> MachineRenew { get; set; }
  51. public virtual DbSet<MachineReturn> MachineReturn { get; set; }
  52. public virtual DbSet<MenuRight> MenuRight { get; set; }
  53. public virtual DbSet<MerchantAddInfo> MerchantAddInfo { get; set; }
  54. public virtual DbSet<MerchantAdmin> MerchantAdmin { get; set; }
  55. public virtual DbSet<MerchantAuth> MerchantAuth { get; set; }
  56. public virtual DbSet<MerchantClass> MerchantClass { get; set; }
  57. public virtual DbSet<MerchantCol> MerchantCol { get; set; }
  58. public virtual DbSet<MerchantComment> MerchantComment { get; set; }
  59. public virtual DbSet<MerchantForCode> MerchantForCode { get; set; }
  60. public virtual DbSet<MerchantForMobile> MerchantForMobile { get; set; }
  61. public virtual DbSet<MerchantForName> MerchantForName { get; set; }
  62. public virtual DbSet<MerchantInfo> MerchantInfo { get; set; }
  63. public virtual DbSet<MerchantParamSet> MerchantParamSet { get; set; }
  64. public virtual DbSet<MerchantQrCode> MerchantQrCode { get; set; }
  65. public virtual DbSet<MerchantRebateDetail> MerchantRebateDetail { get; set; }
  66. public virtual DbSet<Merchants> Merchants { get; set; }
  67. public virtual DbSet<MobileCodeCheck> MobileCodeCheck { get; set; }
  68. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  69. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  70. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  71. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  72. public virtual DbSet<MsgPush> MsgPush { get; set; }
  73. public virtual DbSet<MsgSms> MsgSms { get; set; }
  74. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  75. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  76. public virtual DbSet<OpenReward> OpenReward { get; set; }
  77. public virtual DbSet<OpenRewardDetail> OpenRewardDetail { get; set; }
  78. public virtual DbSet<OpenSnSnapshot> OpenSnSnapshot { get; set; }
  79. public virtual DbSet<OperateLog> OperateLog { get; set; }
  80. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  81. public virtual DbSet<OrderForNo> OrderForNo { get; set; }
  82. public virtual DbSet<OrderProduct> OrderProduct { get; set; }
  83. public virtual DbSet<OrderRefund> OrderRefund { get; set; }
  84. public virtual DbSet<OrderRefundReason> OrderRefundReason { get; set; }
  85. public virtual DbSet<Orders> Orders { get; set; }
  86. public virtual DbSet<PageInfo> PageInfo { get; set; }
  87. public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
  88. public virtual DbSet<PosMachines> PosMachines { get; set; }
  89. public virtual DbSet<ProductComment> ProductComment { get; set; }
  90. public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
  91. public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
  92. public virtual DbSet<ProductFareTemp> ProductFareTemp { get; set; }
  93. public virtual DbSet<ProductKeys> ProductKeys { get; set; }
  94. public virtual DbSet<ProductNorm> ProductNorm { get; set; }
  95. public virtual DbSet<ProductNormItem> ProductNormItem { get; set; }
  96. public virtual DbSet<ProductNormTemp> ProductNormTemp { get; set; }
  97. public virtual DbSet<Products> Products { get; set; }
  98. public virtual DbSet<ProfitObjectActivations> ProfitObjectActivations { get; set; }
  99. public virtual DbSet<ProfitObjectContinueFloors> ProfitObjectContinueFloors { get; set; }
  100. public virtual DbSet<ProfitObjectFloors> ProfitObjectFloors { get; set; }
  101. public virtual DbSet<ProfitObjectLevelKinds> ProfitObjectLevelKinds { get; set; }
  102. public virtual DbSet<ProfitObjectLevels> ProfitObjectLevels { get; set; }
  103. public virtual DbSet<ProfitObjects> ProfitObjects { get; set; }
  104. public virtual DbSet<ProfitObjectsActiveCheck> ProfitObjectsActiveCheck { get; set; }
  105. public virtual DbSet<ProfitObjectsActiveParams> ProfitObjectsActiveParams { get; set; }
  106. public virtual DbSet<ProfitObjectsActives> ProfitObjectsActives { get; set; }
  107. public virtual DbSet<ProfitObjectsActivesForId> ProfitObjectsActivesForId { get; set; }
  108. public virtual DbSet<ProfitObjectsRule> ProfitObjectsRule { get; set; }
  109. public virtual DbSet<ProfitObjectsRuleDetails> ProfitObjectsRuleDetails { get; set; }
  110. public virtual DbSet<ProfitReceiveRecord> ProfitReceiveRecord { get; set; }
  111. public virtual DbSet<ProfitReceives> ProfitReceives { get; set; }
  112. public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
  113. public virtual DbSet<ProfitRewardRecord> ProfitRewardRecord { get; set; }
  114. public virtual DbSet<ProfitSubsidyDetail> ProfitSubsidyDetail { get; set; }
  115. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  116. public virtual DbSet<PullNewAct> PullNewAct { get; set; }
  117. public virtual DbSet<PullNewDetail> PullNewDetail { get; set; }
  118. public virtual DbSet<PullnewSummary> PullnewSummary { get; set; }
  119. public virtual DbSet<RightDic> RightDic { get; set; }
  120. public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
  121. public virtual DbSet<StoreBalance> StoreBalance { get; set; }
  122. public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
  123. public virtual DbSet<StoreForCode> StoreForCode { get; set; }
  124. public virtual DbSet<StoreForName> StoreForName { get; set; }
  125. public virtual DbSet<StoreHouse> StoreHouse { get; set; }
  126. public virtual DbSet<StoreMallOrderSummary> StoreMallOrderSummary { get; set; }
  127. public virtual DbSet<StoreSnActivateSummary> StoreSnActivateSummary { get; set; }
  128. public virtual DbSet<StoreStockChange> StoreStockChange { get; set; }
  129. public virtual DbSet<StoreSwapSn> StoreSwapSn { get; set; }
  130. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  131. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  132. public virtual DbSet<SysLog> SysLog { get; set; }
  133. public virtual DbSet<SysRechargeRecord> SysRechargeRecord { get; set; }
  134. public virtual DbSet<SystemSet> SystemSet { get; set; }
  135. public virtual DbSet<TeamApply> TeamApply { get; set; }
  136. public virtual DbSet<TeamApplyForTeamName> TeamApplyForTeamName { get; set; }
  137. public virtual DbSet<TeamApplyForTeamNo> TeamApplyForTeamNo { get; set; }
  138. public virtual DbSet<TeamBlackList> TeamBlackList { get; set; }
  139. public virtual DbSet<TeamConfig> TeamConfig { get; set; }
  140. public virtual DbSet<TeamDayTop> TeamDayTop { get; set; }
  141. public virtual DbSet<TeamOfferApply> TeamOfferApply { get; set; }
  142. public virtual DbSet<TeamPersonDayTop> TeamPersonDayTop { get; set; }
  143. public virtual DbSet<TradeDaySummary> TradeDaySummary { get; set; }
  144. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  145. public virtual DbSet<UploadParams> UploadParams { get; set; }
  146. public virtual DbSet<UserAccount> UserAccount { get; set; }
  147. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  148. public virtual DbSet<UserAddress> UserAddress { get; set; }
  149. public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
  150. public virtual DbSet<UserBack> UserBack { get; set; }
  151. public virtual DbSet<UserBackKind> UserBackKind { get; set; }
  152. public virtual DbSet<UserBalanceTop> UserBalanceTop { get; set; }
  153. public virtual DbSet<UserCar> UserCar { get; set; }
  154. public virtual DbSet<UserCardForWeChat> UserCardForWeChat { get; set; }
  155. public virtual DbSet<UserCardRecord> UserCardRecord { get; set; }
  156. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  157. public virtual DbSet<UserCenterIconList> UserCenterIconList { get; set; }
  158. public virtual DbSet<UserCollection> UserCollection { get; set; }
  159. public virtual DbSet<UserData> UserData { get; set; }
  160. public virtual DbSet<UserDetail> UserDetail { get; set; }
  161. public virtual DbSet<UserFamilyMember> UserFamilyMember { get; set; }
  162. public virtual DbSet<UserForMakerCode> UserForMakerCode { get; set; }
  163. public virtual DbSet<UserForMobile> UserForMobile { get; set; }
  164. public virtual DbSet<UserForRealName> UserForRealName { get; set; }
  165. public virtual DbSet<UserFriend> UserFriend { get; set; }
  166. public virtual DbSet<UserGroup> UserGroup { get; set; }
  167. public virtual DbSet<UserLevelSet> UserLevelSet { get; set; }
  168. public virtual DbSet<UserLoginRecord> UserLoginRecord { get; set; }
  169. public virtual DbSet<UserMachineData> UserMachineData { get; set; }
  170. public virtual DbSet<UserMallLargeSn> UserMallLargeSn { get; set; }
  171. public virtual DbSet<UserOfflineSignInRecords> UserOfflineSignInRecords { get; set; }
  172. public virtual DbSet<UserProfit> UserProfit { get; set; }
  173. public virtual DbSet<UserProfitSet> UserProfitSet { get; set; }
  174. public virtual DbSet<UserProfitSubsidySummary> UserProfitSubsidySummary { get; set; }
  175. public virtual DbSet<UserRank> UserRank { get; set; }
  176. public virtual DbSet<UserRankWhite> UserRankWhite { get; set; }
  177. public virtual DbSet<UserRebateDetail> UserRebateDetail { get; set; }
  178. public virtual DbSet<UserSnActInfo> UserSnActInfo { get; set; }
  179. public virtual DbSet<UserSnDelayChange> UserSnDelayChange { get; set; }
  180. public virtual DbSet<UserStoreChange> UserStoreChange { get; set; }
  181. public virtual DbSet<UserSwapDetail> UserSwapDetail { get; set; }
  182. public virtual DbSet<UserSwapSummary> UserSwapSummary { get; set; }
  183. public virtual DbSet<UserSwapWhite> UserSwapWhite { get; set; }
  184. public virtual DbSet<UserTradeDaySummary> UserTradeDaySummary { get; set; }
  185. public virtual DbSet<UserTradeMonthSummary> UserTradeMonthSummary { get; set; }
  186. public virtual DbSet<Users> Users { get; set; }
  187. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  188. {
  189. if (!optionsBuilder.IsConfigured)
  190. {
  191. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  192. }
  193. }
  194. protected override void OnModelCreating(ModelBuilder modelBuilder)
  195. {
  196. modelBuilder.Entity<ActiveReward>(entity =>
  197. {
  198. entity.Property(e => e.Id).HasColumnType("int(11)");
  199. entity.Property(e => e.ActDate).HasColumnType("datetime");
  200. entity.Property(e => e.ActType).HasColumnType("int(11)");
  201. entity.Property(e => e.ActTypeDesc)
  202. .HasColumnType("varchar(64)")
  203. .HasCharSet("utf8")
  204. .HasCollation("utf8_general_ci");
  205. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  206. entity.Property(e => e.City)
  207. .HasColumnType("varchar(32)")
  208. .HasCharSet("utf8")
  209. .HasCollation("utf8_general_ci");
  210. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  211. entity.Property(e => e.CreateMan)
  212. .HasColumnType("varchar(50)")
  213. .HasCharSet("utf8")
  214. .HasCollation("utf8_general_ci");
  215. entity.Property(e => e.DirectBuddyNo).HasColumnType("int(11)");
  216. entity.Property(e => e.DivideAmount).HasColumnType("decimal(18,2)");
  217. entity.Property(e => e.KqMerNo)
  218. .HasColumnType("varchar(32)")
  219. .HasCharSet("utf8")
  220. .HasCollation("utf8_general_ci");
  221. entity.Property(e => e.KqSnNo)
  222. .HasColumnType("varchar(32)")
  223. .HasCharSet("utf8")
  224. .HasCollation("utf8_general_ci");
  225. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  226. entity.Property(e => e.MerUserNav)
  227. .HasColumnType("varchar(200)")
  228. .HasCharSet("utf8")
  229. .HasCollation("utf8_general_ci");
  230. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  231. entity.Property(e => e.ParentParentUserId).HasColumnType("int(11)");
  232. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  233. entity.Property(e => e.Province)
  234. .HasColumnType("varchar(32)")
  235. .HasCharSet("utf8")
  236. .HasCollation("utf8_general_ci");
  237. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  238. entity.Property(e => e.Remark)
  239. .HasColumnType("varchar(64)")
  240. .HasCharSet("utf8")
  241. .HasCollation("utf8_general_ci");
  242. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  243. entity.Property(e => e.RewardRef).HasColumnType("int(11)");
  244. entity.Property(e => e.RewardSourceUserId).HasColumnType("int(11)");
  245. entity.Property(e => e.RewardTips)
  246. .HasColumnType("varchar(16)")
  247. .HasCharSet("utf8")
  248. .HasCollation("utf8_general_ci");
  249. entity.Property(e => e.RuleRewardAmount).HasColumnType("decimal(18,2)");
  250. entity.Property(e => e.SeoDescription)
  251. .HasColumnType("varchar(500)")
  252. .HasCharSet("utf8")
  253. .HasCollation("utf8_general_ci");
  254. entity.Property(e => e.SeoKeyword)
  255. .HasColumnType("varchar(200)")
  256. .HasCharSet("utf8")
  257. .HasCollation("utf8_general_ci");
  258. entity.Property(e => e.SeoTitle)
  259. .HasColumnType("varchar(100)")
  260. .HasCharSet("utf8")
  261. .HasCollation("utf8_general_ci");
  262. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  263. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  264. entity.Property(e => e.SnType).HasColumnType("int(11)");
  265. entity.Property(e => e.Sort).HasColumnType("int(11)");
  266. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  267. entity.Property(e => e.Status).HasColumnType("int(11)");
  268. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  269. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  270. entity.Property(e => e.UpdateMan)
  271. .HasColumnType("varchar(50)")
  272. .HasCharSet("utf8")
  273. .HasCollation("utf8_general_ci");
  274. entity.Property(e => e.UserId).HasColumnType("int(11)");
  275. entity.Property(e => e.UserNav)
  276. .HasColumnType("varchar(200)")
  277. .HasCharSet("utf8")
  278. .HasCollation("utf8_general_ci");
  279. entity.Property(e => e.Version).HasColumnType("int(11)");
  280. });
  281. modelBuilder.Entity<ActivityEnrolRecord>(entity =>
  282. {
  283. entity.Property(e => e.Id).HasColumnType("int(11)");
  284. entity.Property(e => e.ActId).HasColumnType("int(11)");
  285. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  286. entity.Property(e => e.CreateMan)
  287. .HasColumnType("varchar(50)")
  288. .HasCharSet("utf8")
  289. .HasCollation("utf8_general_ci");
  290. entity.Property(e => e.EffectEndTime)
  291. .HasColumnType("varchar(8)")
  292. .HasCharSet("utf8")
  293. .HasCollation("utf8_general_ci");
  294. entity.Property(e => e.EffectStartTime)
  295. .HasColumnType("varchar(8)")
  296. .HasCharSet("utf8")
  297. .HasCollation("utf8_general_ci");
  298. entity.Property(e => e.EnrolMonth)
  299. .HasColumnType("varchar(80)")
  300. .HasCharSet("utf8")
  301. .HasCollation("utf8_general_ci");
  302. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  303. entity.Property(e => e.SeoDescription)
  304. .HasColumnType("varchar(500)")
  305. .HasCharSet("utf8")
  306. .HasCollation("utf8_general_ci");
  307. entity.Property(e => e.SeoKeyword)
  308. .HasColumnType("varchar(200)")
  309. .HasCharSet("utf8")
  310. .HasCollation("utf8_general_ci");
  311. entity.Property(e => e.SeoTitle)
  312. .HasColumnType("varchar(100)")
  313. .HasCharSet("utf8")
  314. .HasCollation("utf8_general_ci");
  315. entity.Property(e => e.Sort).HasColumnType("int(11)");
  316. entity.Property(e => e.Status).HasColumnType("int(11)");
  317. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  318. entity.Property(e => e.UpdateMan)
  319. .HasColumnType("varchar(50)")
  320. .HasCharSet("utf8")
  321. .HasCollation("utf8_general_ci");
  322. entity.Property(e => e.UserId).HasColumnType("int(11)");
  323. entity.Property(e => e.Version).HasColumnType("int(11)");
  324. });
  325. modelBuilder.Entity<ActivityInfo>(entity =>
  326. {
  327. entity.Property(e => e.Id).HasColumnType("int(11)");
  328. entity.Property(e => e.ActBanner)
  329. .HasColumnType("varchar(200)")
  330. .HasCharSet("utf8")
  331. .HasCollation("utf8_general_ci");
  332. entity.Property(e => e.ActCode)
  333. .HasColumnType("varchar(32)")
  334. .HasCharSet("utf8")
  335. .HasCollation("utf8_general_ci");
  336. entity.Property(e => e.ActContent)
  337. .HasColumnType("longtext")
  338. .HasCharSet("utf8")
  339. .HasCollation("utf8_general_ci");
  340. entity.Property(e => e.ActName)
  341. .HasColumnType("varchar(128)")
  342. .HasCharSet("utf8")
  343. .HasCollation("utf8_general_ci");
  344. entity.Property(e => e.ActReferUrl)
  345. .HasColumnType("varchar(255)")
  346. .HasCharSet("utf8")
  347. .HasCollation("utf8_general_ci");
  348. entity.Property(e => e.ActType).HasColumnType("int(11)");
  349. entity.Property(e => e.BrandId)
  350. .HasColumnType("varchar(100)")
  351. .HasCharSet("utf8")
  352. .HasCollation("utf8_general_ci");
  353. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  354. entity.Property(e => e.CreateMan)
  355. .HasColumnType("varchar(50)")
  356. .HasCharSet("utf8")
  357. .HasCollation("utf8_general_ci");
  358. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  359. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  360. entity.Property(e => e.EnrolEndDate).HasColumnType("datetime");
  361. entity.Property(e => e.EnrolEndTime)
  362. .HasColumnType("varchar(8)")
  363. .HasCharSet("utf8")
  364. .HasCollation("utf8_general_ci");
  365. entity.Property(e => e.EnrolStartDate).HasColumnType("datetime");
  366. entity.Property(e => e.EnrolStartTime)
  367. .HasColumnType("varchar(8)")
  368. .HasCharSet("utf8")
  369. .HasCollation("utf8_general_ci");
  370. entity.Property(e => e.IsTop).HasColumnType("int(11)");
  371. entity.Property(e => e.LimitTopBuddy)
  372. .HasColumnType("varchar(255)")
  373. .HasCharSet("utf8")
  374. .HasCollation("utf8_general_ci");
  375. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  376. entity.Property(e => e.Remark)
  377. .HasColumnType("varchar(128)")
  378. .HasCharSet("utf8")
  379. .HasCollation("utf8_general_ci");
  380. entity.Property(e => e.SeoDescription)
  381. .HasColumnType("varchar(500)")
  382. .HasCharSet("utf8")
  383. .HasCollation("utf8_general_ci");
  384. entity.Property(e => e.SeoKeyword)
  385. .HasColumnType("varchar(200)")
  386. .HasCharSet("utf8")
  387. .HasCollation("utf8_general_ci");
  388. entity.Property(e => e.SeoTitle)
  389. .HasColumnType("varchar(100)")
  390. .HasCharSet("utf8")
  391. .HasCollation("utf8_general_ci");
  392. entity.Property(e => e.Sort).HasColumnType("int(11)");
  393. entity.Property(e => e.Status).HasColumnType("int(11)");
  394. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  395. entity.Property(e => e.UpdateMan)
  396. .HasColumnType("varchar(50)")
  397. .HasCharSet("utf8")
  398. .HasCollation("utf8_general_ci");
  399. entity.Property(e => e.Version).HasColumnType("int(11)");
  400. });
  401. modelBuilder.Entity<ActivityPrizeDetail>(entity =>
  402. {
  403. entity.Property(e => e.Id).HasColumnType("int(11)");
  404. entity.Property(e => e.ActRewardAmt).HasColumnType("decimal(18,2)");
  405. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  406. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  407. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  408. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  409. entity.Property(e => e.CreateMan)
  410. .HasColumnType("varchar(50)")
  411. .HasCharSet("utf8")
  412. .HasCollation("utf8_general_ci");
  413. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  414. entity.Property(e => e.OtherProdCreditTradeAmt).HasColumnType("decimal(18,2)");
  415. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  416. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  417. entity.Property(e => e.SeoDescription)
  418. .HasColumnType("varchar(500)")
  419. .HasCharSet("utf8")
  420. .HasCollation("utf8_general_ci");
  421. entity.Property(e => e.SeoKeyword)
  422. .HasColumnType("varchar(200)")
  423. .HasCharSet("utf8")
  424. .HasCollation("utf8_general_ci");
  425. entity.Property(e => e.SeoTitle)
  426. .HasColumnType("varchar(100)")
  427. .HasCharSet("utf8")
  428. .HasCollation("utf8_general_ci");
  429. entity.Property(e => e.Sort).HasColumnType("int(11)");
  430. entity.Property(e => e.Status).HasColumnType("int(11)");
  431. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  432. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  433. entity.Property(e => e.TradeMonth)
  434. .HasColumnType("varchar(6)")
  435. .HasCharSet("utf8")
  436. .HasCollation("utf8_general_ci");
  437. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  438. entity.Property(e => e.UpdateMan)
  439. .HasColumnType("varchar(50)")
  440. .HasCharSet("utf8")
  441. .HasCollation("utf8_general_ci");
  442. entity.Property(e => e.UserId).HasColumnType("int(11)");
  443. entity.Property(e => e.Version).HasColumnType("int(11)");
  444. });
  445. modelBuilder.Entity<Advertisment>(entity =>
  446. {
  447. entity.Property(e => e.Id).HasColumnType("int(11)");
  448. entity.Property(e => e.ColId)
  449. .HasColumnType("varchar(30)")
  450. .HasCharSet("utf8")
  451. .HasCollation("utf8_general_ci");
  452. entity.Property(e => e.Contents)
  453. .HasColumnType("longtext")
  454. .HasCharSet("utf8")
  455. .HasCollation("utf8_general_ci");
  456. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  457. entity.Property(e => e.CreateMan)
  458. .HasColumnType("varchar(50)")
  459. .HasCharSet("utf8")
  460. .HasCollation("utf8_general_ci");
  461. entity.Property(e => e.PicPath)
  462. .HasColumnType("varchar(200)")
  463. .HasCharSet("utf8")
  464. .HasCollation("utf8_general_ci");
  465. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  466. entity.Property(e => e.SeoDescription)
  467. .HasColumnType("varchar(500)")
  468. .HasCharSet("utf8")
  469. .HasCollation("utf8_general_ci");
  470. entity.Property(e => e.SeoKeyword)
  471. .HasColumnType("varchar(200)")
  472. .HasCharSet("utf8")
  473. .HasCollation("utf8_general_ci");
  474. entity.Property(e => e.SeoTitle)
  475. .HasColumnType("varchar(100)")
  476. .HasCharSet("utf8")
  477. .HasCollation("utf8_general_ci");
  478. entity.Property(e => e.Sort).HasColumnType("int(11)");
  479. entity.Property(e => e.Status).HasColumnType("int(11)");
  480. entity.Property(e => e.Title)
  481. .HasColumnType("varchar(50)")
  482. .HasCharSet("utf8")
  483. .HasCollation("utf8_general_ci");
  484. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  485. entity.Property(e => e.UpdateMan)
  486. .HasColumnType("varchar(50)")
  487. .HasCharSet("utf8")
  488. .HasCollation("utf8_general_ci");
  489. entity.Property(e => e.Url)
  490. .HasColumnType("longtext")
  491. .HasCharSet("utf8")
  492. .HasCollation("utf8_general_ci");
  493. entity.Property(e => e.Version).HasColumnType("int(11)");
  494. });
  495. modelBuilder.Entity<AgentLevelSet>(entity =>
  496. {
  497. entity.Property(e => e.Id).HasColumnType("int(11)");
  498. entity.Property(e => e.AreasProfitPercent).HasColumnType("decimal(18,2)");
  499. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  500. entity.Property(e => e.LevelDiff)
  501. .HasColumnType("bit(1)")
  502. .HasDefaultValueSql("b'0'");
  503. entity.Property(e => e.Name)
  504. .HasColumnType("varchar(50)")
  505. .HasCharSet("utf8")
  506. .HasCollation("utf8_general_ci");
  507. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  508. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  509. entity.Property(e => e.SeoDescription)
  510. .HasColumnType("varchar(500)")
  511. .HasCharSet("utf8")
  512. .HasCollation("utf8_general_ci");
  513. entity.Property(e => e.SeoKeyword)
  514. .HasColumnType("varchar(200)")
  515. .HasCharSet("utf8")
  516. .HasCollation("utf8_general_ci");
  517. entity.Property(e => e.SeoTitle)
  518. .HasColumnType("varchar(100)")
  519. .HasCharSet("utf8")
  520. .HasCollation("utf8_general_ci");
  521. entity.Property(e => e.Sort).HasColumnType("int(11)");
  522. entity.Property(e => e.Status).HasColumnType("int(11)");
  523. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  524. });
  525. modelBuilder.Entity<AppBottomNavs>(entity =>
  526. {
  527. entity.Property(e => e.Id).HasColumnType("int(11)");
  528. entity.Property(e => e.BgColor)
  529. .HasColumnType("varchar(6)")
  530. .HasCharSet("utf8")
  531. .HasCollation("utf8_general_ci");
  532. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  533. entity.Property(e => e.CreateMan)
  534. .HasColumnType("varchar(50)")
  535. .HasCharSet("utf8")
  536. .HasCollation("utf8_general_ci");
  537. entity.Property(e => e.NoPageHint)
  538. .HasColumnType("varchar(50)")
  539. .HasCharSet("utf8")
  540. .HasCollation("utf8_general_ci");
  541. entity.Property(e => e.NormalIcon)
  542. .HasColumnType("varchar(200)")
  543. .HasCharSet("utf8")
  544. .HasCollation("utf8_general_ci");
  545. entity.Property(e => e.NormalTextColor)
  546. .HasColumnType("varchar(6)")
  547. .HasCharSet("utf8")
  548. .HasCollation("utf8_general_ci");
  549. entity.Property(e => e.PageName)
  550. .HasColumnType("varchar(50)")
  551. .HasCharSet("utf8")
  552. .HasCollation("utf8_general_ci");
  553. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  554. entity.Property(e => e.SelectIcon)
  555. .HasColumnType("varchar(200)")
  556. .HasCharSet("utf8")
  557. .HasCollation("utf8_general_ci");
  558. entity.Property(e => e.SelectTextColor)
  559. .HasColumnType("varchar(6)")
  560. .HasCharSet("utf8")
  561. .HasCollation("utf8_general_ci");
  562. entity.Property(e => e.SeoDescription)
  563. .HasColumnType("varchar(500)")
  564. .HasCharSet("utf8")
  565. .HasCollation("utf8_general_ci");
  566. entity.Property(e => e.SeoKeyword)
  567. .HasColumnType("varchar(200)")
  568. .HasCharSet("utf8")
  569. .HasCollation("utf8_general_ci");
  570. entity.Property(e => e.SeoTitle)
  571. .HasColumnType("varchar(100)")
  572. .HasCharSet("utf8")
  573. .HasCollation("utf8_general_ci");
  574. entity.Property(e => e.Sort).HasColumnType("int(11)");
  575. entity.Property(e => e.Status).HasColumnType("int(11)");
  576. entity.Property(e => e.Title)
  577. .HasColumnType("varchar(10)")
  578. .HasCharSet("utf8")
  579. .HasCollation("utf8_general_ci");
  580. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  581. entity.Property(e => e.UpdateMan)
  582. .HasColumnType("varchar(50)")
  583. .HasCharSet("utf8")
  584. .HasCollation("utf8_general_ci");
  585. entity.Property(e => e.Version).HasColumnType("int(11)");
  586. });
  587. modelBuilder.Entity<AppVersion>(entity =>
  588. {
  589. entity.Property(e => e.Id).HasColumnType("int(11)");
  590. entity.Property(e => e.CancelText)
  591. .HasColumnType("varchar(10)")
  592. .HasCharSet("utf8")
  593. .HasCollation("utf8_general_ci");
  594. entity.Property(e => e.ConfirmText)
  595. .HasColumnType("varchar(10)")
  596. .HasCharSet("utf8")
  597. .HasCollation("utf8_general_ci");
  598. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  599. entity.Property(e => e.CreateMan)
  600. .HasColumnType("varchar(50)")
  601. .HasCharSet("utf8")
  602. .HasCollation("utf8_general_ci");
  603. entity.Property(e => e.DownloadUrl)
  604. .HasColumnType("varchar(500)")
  605. .HasCharSet("utf8")
  606. .HasCollation("utf8_general_ci");
  607. entity.Property(e => e.Info)
  608. .HasColumnType("varchar(200)")
  609. .HasCharSet("utf8")
  610. .HasCollation("utf8_general_ci");
  611. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  612. entity.Property(e => e.SeoDescription)
  613. .HasColumnType("varchar(500)")
  614. .HasCharSet("utf8")
  615. .HasCollation("utf8_general_ci");
  616. entity.Property(e => e.SeoKeyword)
  617. .HasColumnType("varchar(200)")
  618. .HasCharSet("utf8")
  619. .HasCollation("utf8_general_ci");
  620. entity.Property(e => e.SeoTitle)
  621. .HasColumnType("varchar(100)")
  622. .HasCharSet("utf8")
  623. .HasCollation("utf8_general_ci");
  624. entity.Property(e => e.Sort).HasColumnType("int(11)");
  625. entity.Property(e => e.Status).HasColumnType("int(11)");
  626. entity.Property(e => e.TerminalKind)
  627. .HasColumnType("varchar(10)")
  628. .HasCharSet("utf8")
  629. .HasCollation("utf8_general_ci");
  630. entity.Property(e => e.Title)
  631. .HasColumnType("varchar(50)")
  632. .HasCharSet("utf8")
  633. .HasCollation("utf8_general_ci");
  634. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  635. entity.Property(e => e.UpdateMan)
  636. .HasColumnType("varchar(50)")
  637. .HasCharSet("utf8")
  638. .HasCollation("utf8_general_ci");
  639. entity.Property(e => e.Version).HasColumnType("int(11)");
  640. entity.Property(e => e.VersionNum)
  641. .HasColumnType("varchar(20)")
  642. .HasCharSet("utf8")
  643. .HasCollation("utf8_general_ci");
  644. });
  645. modelBuilder.Entity<AppVideo>(entity =>
  646. {
  647. entity.Property(e => e.Id).HasColumnType("int(11)");
  648. entity.Property(e => e.BannerPic)
  649. .HasColumnType("varchar(200)")
  650. .HasCharSet("utf8")
  651. .HasCollation("utf8_general_ci");
  652. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  653. entity.Property(e => e.CreateMan)
  654. .HasColumnType("varchar(50)")
  655. .HasCharSet("utf8")
  656. .HasCollation("utf8_general_ci");
  657. entity.Property(e => e.Name)
  658. .HasColumnType("varchar(50)")
  659. .HasCharSet("utf8")
  660. .HasCollation("utf8_general_ci");
  661. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  662. entity.Property(e => e.Remark)
  663. .HasColumnType("varchar(200)")
  664. .HasCharSet("utf8")
  665. .HasCollation("utf8_general_ci");
  666. entity.Property(e => e.SeoDescription)
  667. .HasColumnType("varchar(500)")
  668. .HasCharSet("utf8")
  669. .HasCollation("utf8_general_ci");
  670. entity.Property(e => e.SeoKeyword)
  671. .HasColumnType("varchar(200)")
  672. .HasCharSet("utf8")
  673. .HasCollation("utf8_general_ci");
  674. entity.Property(e => e.SeoTitle)
  675. .HasColumnType("varchar(100)")
  676. .HasCharSet("utf8")
  677. .HasCollation("utf8_general_ci");
  678. entity.Property(e => e.Sort).HasColumnType("int(11)");
  679. entity.Property(e => e.Status).HasColumnType("int(11)");
  680. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  681. entity.Property(e => e.UpdateMan)
  682. .HasColumnType("varchar(50)")
  683. .HasCharSet("utf8")
  684. .HasCollation("utf8_general_ci");
  685. entity.Property(e => e.Version).HasColumnType("int(11)");
  686. });
  687. modelBuilder.Entity<AppVideoList>(entity =>
  688. {
  689. entity.Property(e => e.Id).HasColumnType("int(11)");
  690. entity.Property(e => e.BgPic)
  691. .HasColumnType("varchar(200)")
  692. .HasCharSet("utf8")
  693. .HasCollation("utf8_general_ci");
  694. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  695. entity.Property(e => e.CreateMan)
  696. .HasColumnType("varchar(50)")
  697. .HasCharSet("utf8")
  698. .HasCollation("utf8_general_ci");
  699. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  700. entity.Property(e => e.Remark)
  701. .HasColumnType("varchar(200)")
  702. .HasCharSet("utf8")
  703. .HasCollation("utf8_general_ci");
  704. entity.Property(e => e.SeoDescription)
  705. .HasColumnType("varchar(500)")
  706. .HasCharSet("utf8")
  707. .HasCollation("utf8_general_ci");
  708. entity.Property(e => e.SeoKeyword)
  709. .HasColumnType("varchar(200)")
  710. .HasCharSet("utf8")
  711. .HasCollation("utf8_general_ci");
  712. entity.Property(e => e.SeoTitle)
  713. .HasColumnType("varchar(100)")
  714. .HasCharSet("utf8")
  715. .HasCollation("utf8_general_ci");
  716. entity.Property(e => e.Sort).HasColumnType("int(11)");
  717. entity.Property(e => e.Status).HasColumnType("int(11)");
  718. entity.Property(e => e.Title)
  719. .HasColumnType("varchar(50)")
  720. .HasCharSet("utf8")
  721. .HasCollation("utf8_general_ci");
  722. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  723. entity.Property(e => e.UpdateMan)
  724. .HasColumnType("varchar(50)")
  725. .HasCharSet("utf8")
  726. .HasCollation("utf8_general_ci");
  727. entity.Property(e => e.Version).HasColumnType("int(11)");
  728. entity.Property(e => e.VideoId).HasColumnType("int(11)");
  729. entity.Property(e => e.VideoUrl)
  730. .HasColumnType("varchar(500)")
  731. .HasCharSet("utf8")
  732. .HasCollation("utf8_general_ci");
  733. });
  734. modelBuilder.Entity<BankInfo>(entity =>
  735. {
  736. entity.Property(e => e.Id).HasColumnType("int(11)");
  737. entity.Property(e => e.BankCode)
  738. .HasColumnType("varchar(16)")
  739. .HasCharSet("utf8")
  740. .HasCollation("utf8_general_ci");
  741. entity.Property(e => e.BankName)
  742. .HasColumnType("varchar(100)")
  743. .HasCharSet("utf8")
  744. .HasCollation("utf8_general_ci");
  745. entity.Property(e => e.BankNameAbbr)
  746. .HasColumnType("varchar(60)")
  747. .HasCharSet("utf8")
  748. .HasCollation("utf8_general_ci");
  749. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  750. entity.Property(e => e.CreateMan)
  751. .HasColumnType("varchar(50)")
  752. .HasCharSet("utf8")
  753. .HasCollation("utf8_general_ci");
  754. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  755. entity.Property(e => e.SeoDescription)
  756. .HasColumnType("varchar(500)")
  757. .HasCharSet("utf8")
  758. .HasCollation("utf8_general_ci");
  759. entity.Property(e => e.SeoKeyword)
  760. .HasColumnType("varchar(200)")
  761. .HasCharSet("utf8")
  762. .HasCollation("utf8_general_ci");
  763. entity.Property(e => e.SeoTitle)
  764. .HasColumnType("varchar(100)")
  765. .HasCharSet("utf8")
  766. .HasCollation("utf8_general_ci");
  767. entity.Property(e => e.Sort).HasColumnType("int(11)");
  768. entity.Property(e => e.Status).HasColumnType("int(11)");
  769. entity.Property(e => e.UnitedBankName)
  770. .HasColumnType("varchar(100)")
  771. .HasCharSet("utf8")
  772. .HasCollation("utf8_general_ci");
  773. entity.Property(e => e.UnitedBankNo)
  774. .HasColumnType("varchar(16)")
  775. .HasCharSet("utf8")
  776. .HasCollation("utf8_general_ci");
  777. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  778. entity.Property(e => e.UpdateMan)
  779. .HasColumnType("varchar(50)")
  780. .HasCharSet("utf8")
  781. .HasCollation("utf8_general_ci");
  782. entity.Property(e => e.Version).HasColumnType("int(11)");
  783. });
  784. modelBuilder.Entity<Col>(entity =>
  785. {
  786. entity.Property(e => e.Id).HasColumnType("int(11)");
  787. entity.Property(e => e.ClassName)
  788. .HasColumnType("varchar(50)")
  789. .HasCharSet("utf8")
  790. .HasCollation("utf8_general_ci");
  791. entity.Property(e => e.ColDetail)
  792. .HasColumnType("varchar(50)")
  793. .HasCharSet("utf8")
  794. .HasCollation("utf8_general_ci");
  795. entity.Property(e => e.ColEnName)
  796. .HasColumnType("varchar(50)")
  797. .HasCharSet("utf8")
  798. .HasCollation("utf8_general_ci");
  799. entity.Property(e => e.ColEnNav)
  800. .HasColumnType("varchar(200)")
  801. .HasCharSet("utf8")
  802. .HasCollation("utf8_general_ci");
  803. entity.Property(e => e.ColId)
  804. .HasColumnType("varchar(30)")
  805. .HasCharSet("utf8")
  806. .HasCollation("utf8_general_ci");
  807. entity.Property(e => e.ColName)
  808. .HasColumnType("varchar(50)")
  809. .HasCharSet("utf8")
  810. .HasCollation("utf8_general_ci");
  811. entity.Property(e => e.ColPicPath)
  812. .HasColumnType("varchar(200)")
  813. .HasCharSet("utf8")
  814. .HasCollation("utf8_general_ci");
  815. entity.Property(e => e.Contents)
  816. .HasColumnType("longtext")
  817. .HasCharSet("utf8")
  818. .HasCollation("utf8_general_ci");
  819. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  820. entity.Property(e => e.CreateMan)
  821. .HasColumnType("varchar(50)")
  822. .HasCharSet("utf8")
  823. .HasCollation("utf8_general_ci");
  824. entity.Property(e => e.DetailTemp)
  825. .HasColumnType("varchar(100)")
  826. .HasCharSet("utf8")
  827. .HasCollation("utf8_general_ci");
  828. entity.Property(e => e.DetailTempM)
  829. .HasColumnType("varchar(100)")
  830. .HasCharSet("utf8")
  831. .HasCollation("utf8_general_ci");
  832. entity.Property(e => e.ListPageCount).HasColumnType("int(11)");
  833. entity.Property(e => e.ListTemp)
  834. .HasColumnType("varchar(100)")
  835. .HasCharSet("utf8")
  836. .HasCollation("utf8_general_ci");
  837. entity.Property(e => e.ListTempM)
  838. .HasColumnType("varchar(100)")
  839. .HasCharSet("utf8")
  840. .HasCollation("utf8_general_ci");
  841. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  842. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  843. entity.Property(e => e.Recommend)
  844. .HasColumnType("bit(1)")
  845. .HasDefaultValueSql("b'0'");
  846. entity.Property(e => e.SeoDescription)
  847. .HasColumnType("varchar(500)")
  848. .HasCharSet("utf8")
  849. .HasCollation("utf8_general_ci");
  850. entity.Property(e => e.SeoKeyword)
  851. .HasColumnType("varchar(200)")
  852. .HasCharSet("utf8")
  853. .HasCollation("utf8_general_ci");
  854. entity.Property(e => e.SeoTitle)
  855. .HasColumnType("varchar(100)")
  856. .HasCharSet("utf8")
  857. .HasCollation("utf8_general_ci");
  858. entity.Property(e => e.Sort).HasColumnType("int(11)");
  859. entity.Property(e => e.Status).HasColumnType("int(11)");
  860. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  861. entity.Property(e => e.UpdateMan)
  862. .HasColumnType("varchar(50)")
  863. .HasCharSet("utf8")
  864. .HasCollation("utf8_general_ci");
  865. entity.Property(e => e.Url)
  866. .HasColumnType("longtext")
  867. .HasCharSet("utf8")
  868. .HasCollation("utf8_general_ci");
  869. entity.Property(e => e.Version).HasColumnType("int(11)");
  870. });
  871. modelBuilder.Entity<ConsumerOpenIds>(entity =>
  872. {
  873. entity.HasKey(e => e.OpenId)
  874. .HasName("PRIMARY");
  875. entity.Property(e => e.OpenId)
  876. .HasColumnType("varchar(50)")
  877. .HasCharSet("utf8")
  878. .HasCollation("utf8_general_ci");
  879. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  880. });
  881. modelBuilder.Entity<ConsumerOrders>(entity =>
  882. {
  883. entity.Property(e => e.Id).HasColumnType("int(11)");
  884. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  885. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  886. entity.Property(e => e.CreateMan)
  887. .HasColumnType("varchar(50)")
  888. .HasCharSet("utf8")
  889. .HasCollation("utf8_general_ci");
  890. entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
  891. entity.Property(e => e.MaxDivi).HasColumnType("decimal(18,2)");
  892. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  893. entity.Property(e => e.OrderNo)
  894. .HasColumnType("varchar(30)")
  895. .HasCharSet("utf8")
  896. .HasCollation("utf8_general_ci");
  897. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  898. entity.Property(e => e.PayMoney).HasColumnType("decimal(18,2)");
  899. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  900. entity.Property(e => e.ReturnMoney).HasColumnType("decimal(18,2)");
  901. entity.Property(e => e.SeoDescription)
  902. .HasColumnType("varchar(500)")
  903. .HasCharSet("utf8")
  904. .HasCollation("utf8_general_ci");
  905. entity.Property(e => e.SeoKeyword)
  906. .HasColumnType("varchar(200)")
  907. .HasCharSet("utf8")
  908. .HasCollation("utf8_general_ci");
  909. entity.Property(e => e.SeoTitle)
  910. .HasColumnType("varchar(100)")
  911. .HasCharSet("utf8")
  912. .HasCollation("utf8_general_ci");
  913. entity.Property(e => e.SnNo)
  914. .HasColumnType("varchar(50)")
  915. .HasCharSet("utf8")
  916. .HasCollation("utf8_general_ci");
  917. entity.Property(e => e.Sort).HasColumnType("int(11)");
  918. entity.Property(e => e.Status).HasColumnType("int(11)");
  919. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  920. entity.Property(e => e.UpdateMan)
  921. .HasColumnType("varchar(50)")
  922. .HasCharSet("utf8")
  923. .HasCollation("utf8_general_ci");
  924. entity.Property(e => e.Version).HasColumnType("int(11)");
  925. });
  926. modelBuilder.Entity<ConsumerProfit>(entity =>
  927. {
  928. entity.Property(e => e.Id).HasColumnType("int(11)");
  929. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  930. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  931. entity.Property(e => e.CreateMan)
  932. .HasColumnType("varchar(50)")
  933. .HasCharSet("utf8")
  934. .HasCollation("utf8_general_ci");
  935. entity.Property(e => e.GetMoney).HasColumnType("decimal(18,2)");
  936. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  937. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  938. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  939. entity.Property(e => e.SeoDescription)
  940. .HasColumnType("varchar(500)")
  941. .HasCharSet("utf8")
  942. .HasCollation("utf8_general_ci");
  943. entity.Property(e => e.SeoKeyword)
  944. .HasColumnType("varchar(200)")
  945. .HasCharSet("utf8")
  946. .HasCollation("utf8_general_ci");
  947. entity.Property(e => e.SeoTitle)
  948. .HasColumnType("varchar(100)")
  949. .HasCharSet("utf8")
  950. .HasCollation("utf8_general_ci");
  951. entity.Property(e => e.Sort).HasColumnType("int(11)");
  952. entity.Property(e => e.Status).HasColumnType("int(11)");
  953. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  954. entity.Property(e => e.UpdateMan)
  955. .HasColumnType("varchar(50)")
  956. .HasCharSet("utf8")
  957. .HasCollation("utf8_general_ci");
  958. entity.Property(e => e.Version).HasColumnType("int(11)");
  959. });
  960. modelBuilder.Entity<Consumers>(entity =>
  961. {
  962. entity.Property(e => e.Id).HasColumnType("int(11)");
  963. entity.Property(e => e.AlipayUserId)
  964. .HasColumnType("varchar(50)")
  965. .HasCharSet("utf8")
  966. .HasCollation("utf8_general_ci");
  967. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  968. entity.Property(e => e.CreateMan)
  969. .HasColumnType("varchar(50)")
  970. .HasCharSet("utf8")
  971. .HasCollation("utf8_general_ci");
  972. entity.Property(e => e.CurIntgegral).HasColumnType("int(11)");
  973. entity.Property(e => e.HeadPhoto)
  974. .HasColumnType("varchar(2000)")
  975. .HasCharSet("utf8")
  976. .HasCollation("utf8_general_ci");
  977. entity.Property(e => e.LastConsumDate).HasColumnType("datetime");
  978. entity.Property(e => e.Mobile)
  979. .HasColumnType("varchar(11)")
  980. .HasCharSet("utf8")
  981. .HasCollation("utf8_general_ci");
  982. entity.Property(e => e.NickName)
  983. .HasColumnType("varchar(50)")
  984. .HasCharSet("utf8")
  985. .HasCollation("utf8_general_ci");
  986. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  987. entity.Property(e => e.SeoDescription)
  988. .HasColumnType("varchar(500)")
  989. .HasCharSet("utf8")
  990. .HasCollation("utf8_general_ci");
  991. entity.Property(e => e.SeoKeyword)
  992. .HasColumnType("varchar(200)")
  993. .HasCharSet("utf8")
  994. .HasCollation("utf8_general_ci");
  995. entity.Property(e => e.SeoTitle)
  996. .HasColumnType("varchar(100)")
  997. .HasCharSet("utf8")
  998. .HasCollation("utf8_general_ci");
  999. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1000. entity.Property(e => e.Status).HasColumnType("int(11)");
  1001. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1002. entity.Property(e => e.TotalConsumCount).HasColumnType("int(11)");
  1003. entity.Property(e => e.TotalDividend).HasColumnType("decimal(18,2)");
  1004. entity.Property(e => e.TotalIntegral).HasColumnType("int(11)");
  1005. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1006. entity.Property(e => e.UpdateMan)
  1007. .HasColumnType("varchar(50)")
  1008. .HasCharSet("utf8")
  1009. .HasCollation("utf8_general_ci");
  1010. entity.Property(e => e.Version).HasColumnType("int(11)");
  1011. entity.Property(e => e.WechatOpenId)
  1012. .HasColumnType("varchar(50)")
  1013. .HasCharSet("utf8")
  1014. .HasCollation("utf8_general_ci");
  1015. entity.Property(e => e.WechatUnionid)
  1016. .HasColumnType("varchar(50)")
  1017. .HasCharSet("utf8")
  1018. .HasCollation("utf8_general_ci");
  1019. });
  1020. modelBuilder.Entity<CouponAssignRecords>(entity =>
  1021. {
  1022. entity.Property(e => e.Id).HasColumnType("int(11)");
  1023. entity.Property(e => e.Areas)
  1024. .HasColumnType("varchar(50)")
  1025. .HasCharSet("utf8")
  1026. .HasCollation("utf8_general_ci");
  1027. entity.Property(e => e.CouponIds)
  1028. .HasColumnType("varchar(200)")
  1029. .HasCharSet("utf8")
  1030. .HasCollation("utf8_general_ci");
  1031. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1032. entity.Property(e => e.CreateMan)
  1033. .HasColumnType("varchar(50)")
  1034. .HasCharSet("utf8")
  1035. .HasCollation("utf8_general_ci");
  1036. entity.Property(e => e.CurMoneyMax).HasColumnType("decimal(18,2)");
  1037. entity.Property(e => e.CurMoneyMin).HasColumnType("decimal(18,2)");
  1038. entity.Property(e => e.Mobile)
  1039. .HasColumnType("varchar(11)")
  1040. .HasCharSet("utf8")
  1041. .HasCollation("utf8_general_ci");
  1042. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1043. entity.Property(e => e.SeoDescription)
  1044. .HasColumnType("varchar(500)")
  1045. .HasCharSet("utf8")
  1046. .HasCollation("utf8_general_ci");
  1047. entity.Property(e => e.SeoKeyword)
  1048. .HasColumnType("varchar(200)")
  1049. .HasCharSet("utf8")
  1050. .HasCollation("utf8_general_ci");
  1051. entity.Property(e => e.SeoTitle)
  1052. .HasColumnType("varchar(100)")
  1053. .HasCharSet("utf8")
  1054. .HasCollation("utf8_general_ci");
  1055. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1056. entity.Property(e => e.Status).HasColumnType("int(11)");
  1057. entity.Property(e => e.TotalOrderMoneyMax).HasColumnType("decimal(18,2)");
  1058. entity.Property(e => e.TotalOrderMoneyMin).HasColumnType("decimal(18,2)");
  1059. entity.Property(e => e.TotalUseIntegralMax).HasColumnType("decimal(18,2)");
  1060. entity.Property(e => e.TotalUseIntegralMin).HasColumnType("decimal(18,2)");
  1061. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1062. entity.Property(e => e.UpdateMan)
  1063. .HasColumnType("varchar(50)")
  1064. .HasCharSet("utf8")
  1065. .HasCollation("utf8_general_ci");
  1066. entity.Property(e => e.UserGroupId)
  1067. .HasColumnType("varchar(50)")
  1068. .HasCharSet("utf8")
  1069. .HasCollation("utf8_general_ci");
  1070. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1071. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1072. entity.Property(e => e.Version).HasColumnType("int(11)");
  1073. });
  1074. modelBuilder.Entity<Coupons>(entity =>
  1075. {
  1076. entity.Property(e => e.Id).HasColumnType("int(11)");
  1077. entity.Property(e => e.AndPromotion)
  1078. .HasColumnType("bit(1)")
  1079. .HasDefaultValueSql("b'0'");
  1080. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1081. entity.Property(e => e.CreateMan)
  1082. .HasColumnType("varchar(50)")
  1083. .HasCharSet("utf8")
  1084. .HasCollation("utf8_general_ci");
  1085. entity.Property(e => e.ExpireEndDate).HasColumnType("datetime");
  1086. entity.Property(e => e.ExpireStartDate).HasColumnType("datetime");
  1087. entity.Property(e => e.Explanation)
  1088. .HasColumnType("varchar(200)")
  1089. .HasCharSet("utf8")
  1090. .HasCollation("utf8_general_ci");
  1091. entity.Property(e => e.FullReduceData).HasColumnType("decimal(18,2)");
  1092. entity.Property(e => e.FullReduceMoney).HasColumnType("decimal(18,2)");
  1093. entity.Property(e => e.IsNewUser)
  1094. .HasColumnType("bit(1)")
  1095. .HasDefaultValueSql("b'0'");
  1096. entity.Property(e => e.IsPublic)
  1097. .HasColumnType("bit(1)")
  1098. .HasDefaultValueSql("b'0'");
  1099. entity.Property(e => e.IsReUse)
  1100. .HasColumnType("bit(1)")
  1101. .HasDefaultValueSql("b'0'");
  1102. entity.Property(e => e.IsRepeat)
  1103. .HasColumnType("bit(1)")
  1104. .HasDefaultValueSql("b'0'");
  1105. entity.Property(e => e.IsSuperpose)
  1106. .HasColumnType("bit(1)")
  1107. .HasDefaultValueSql("b'0'");
  1108. entity.Property(e => e.Kind).HasColumnType("int(11)");
  1109. entity.Property(e => e.MerchantId)
  1110. .HasColumnType("varchar(200)")
  1111. .HasCharSet("utf8")
  1112. .HasCollation("utf8_general_ci");
  1113. entity.Property(e => e.Name)
  1114. .HasColumnType("varchar(50)")
  1115. .HasCharSet("utf8")
  1116. .HasCollation("utf8_general_ci");
  1117. entity.Property(e => e.ProductColId)
  1118. .HasColumnType("varchar(200)")
  1119. .HasCharSet("utf8")
  1120. .HasCollation("utf8_general_ci");
  1121. entity.Property(e => e.ProductId)
  1122. .HasColumnType("varchar(500)")
  1123. .HasCharSet("utf8")
  1124. .HasCollation("utf8_general_ci");
  1125. entity.Property(e => e.PublicEndDate).HasColumnType("datetime");
  1126. entity.Property(e => e.PublicMax).HasColumnType("int(11)");
  1127. entity.Property(e => e.PublicMaxByDay).HasColumnType("int(11)");
  1128. entity.Property(e => e.PublicStartDate).HasColumnType("datetime");
  1129. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1130. entity.Property(e => e.RepeatCondition)
  1131. .HasColumnType("varchar(50)")
  1132. .HasCharSet("utf8")
  1133. .HasCollation("utf8_general_ci");
  1134. entity.Property(e => e.RepeatType).HasColumnType("int(11)");
  1135. entity.Property(e => e.SeoDescription)
  1136. .HasColumnType("varchar(500)")
  1137. .HasCharSet("utf8")
  1138. .HasCollation("utf8_general_ci");
  1139. entity.Property(e => e.SeoKeyword)
  1140. .HasColumnType("varchar(200)")
  1141. .HasCharSet("utf8")
  1142. .HasCollation("utf8_general_ci");
  1143. entity.Property(e => e.SeoTitle)
  1144. .HasColumnType("varchar(100)")
  1145. .HasCharSet("utf8")
  1146. .HasCollation("utf8_general_ci");
  1147. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1148. entity.Property(e => e.Status).HasColumnType("int(11)");
  1149. entity.Property(e => e.Stock).HasColumnType("decimal(18,2)");
  1150. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1151. entity.Property(e => e.UpdateMan)
  1152. .HasColumnType("varchar(50)")
  1153. .HasCharSet("utf8")
  1154. .HasCollation("utf8_general_ci");
  1155. entity.Property(e => e.UseEndDate).HasColumnType("datetime");
  1156. entity.Property(e => e.UseStartDate).HasColumnType("datetime");
  1157. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1158. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1159. entity.Property(e => e.Version).HasColumnType("int(11)");
  1160. });
  1161. modelBuilder.Entity<CouponsForUser>(entity =>
  1162. {
  1163. entity.Property(e => e.Id).HasColumnType("int(11)");
  1164. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  1165. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1166. entity.Property(e => e.CreateMan)
  1167. .HasColumnType("varchar(50)")
  1168. .HasCharSet("utf8")
  1169. .HasCollation("utf8_general_ci");
  1170. entity.Property(e => e.IsLock)
  1171. .HasColumnType("bit(1)")
  1172. .HasDefaultValueSql("b'0'");
  1173. entity.Property(e => e.IsUse)
  1174. .HasColumnType("bit(1)")
  1175. .HasDefaultValueSql("b'0'");
  1176. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1177. entity.Property(e => e.SeoDescription)
  1178. .HasColumnType("varchar(500)")
  1179. .HasCharSet("utf8")
  1180. .HasCollation("utf8_general_ci");
  1181. entity.Property(e => e.SeoKeyword)
  1182. .HasColumnType("varchar(200)")
  1183. .HasCharSet("utf8")
  1184. .HasCollation("utf8_general_ci");
  1185. entity.Property(e => e.SeoTitle)
  1186. .HasColumnType("varchar(100)")
  1187. .HasCharSet("utf8")
  1188. .HasCollation("utf8_general_ci");
  1189. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1190. entity.Property(e => e.Status).HasColumnType("int(11)");
  1191. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1192. entity.Property(e => e.UpdateMan)
  1193. .HasColumnType("varchar(50)")
  1194. .HasCharSet("utf8")
  1195. .HasCollation("utf8_general_ci");
  1196. entity.Property(e => e.UseDate).HasColumnType("datetime");
  1197. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1198. entity.Property(e => e.Version).HasColumnType("int(11)");
  1199. });
  1200. modelBuilder.Entity<CustomTagSet>(entity =>
  1201. {
  1202. entity.Property(e => e.Id).HasColumnType("int(11)");
  1203. entity.Property(e => e.Contents)
  1204. .HasColumnType("varchar(500)")
  1205. .HasCharSet("utf8")
  1206. .HasCollation("utf8_general_ci");
  1207. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1208. entity.Property(e => e.CreateMan)
  1209. .HasColumnType("varchar(50)")
  1210. .HasCharSet("utf8")
  1211. .HasCollation("utf8_general_ci");
  1212. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1213. entity.Property(e => e.SeoDescription)
  1214. .HasColumnType("varchar(500)")
  1215. .HasCharSet("utf8")
  1216. .HasCollation("utf8_general_ci");
  1217. entity.Property(e => e.SeoKeyword)
  1218. .HasColumnType("varchar(200)")
  1219. .HasCharSet("utf8")
  1220. .HasCollation("utf8_general_ci");
  1221. entity.Property(e => e.SeoTitle)
  1222. .HasColumnType("varchar(100)")
  1223. .HasCharSet("utf8")
  1224. .HasCollation("utf8_general_ci");
  1225. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1226. entity.Property(e => e.Status).HasColumnType("int(11)");
  1227. entity.Property(e => e.Tags)
  1228. .HasColumnType("varchar(50)")
  1229. .HasCharSet("utf8")
  1230. .HasCollation("utf8_general_ci");
  1231. entity.Property(e => e.Title)
  1232. .HasColumnType("varchar(50)")
  1233. .HasCharSet("utf8")
  1234. .HasCollation("utf8_general_ci");
  1235. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1236. entity.Property(e => e.UpdateMan)
  1237. .HasColumnType("varchar(50)")
  1238. .HasCharSet("utf8")
  1239. .HasCollation("utf8_general_ci");
  1240. entity.Property(e => e.Version).HasColumnType("int(11)");
  1241. });
  1242. modelBuilder.Entity<ErpCompanys>(entity =>
  1243. {
  1244. entity.Property(e => e.Id).HasColumnType("int(11)");
  1245. entity.Property(e => e.Code)
  1246. .HasColumnType("varchar(50)")
  1247. .HasCharSet("utf8")
  1248. .HasCollation("utf8_general_ci");
  1249. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1250. entity.Property(e => e.CreateMan)
  1251. .HasColumnType("varchar(50)")
  1252. .HasCharSet("utf8")
  1253. .HasCollation("utf8_general_ci");
  1254. entity.Property(e => e.Name)
  1255. .HasColumnType("varchar(50)")
  1256. .HasCharSet("utf8")
  1257. .HasCollation("utf8_general_ci");
  1258. entity.Property(e => e.Phone)
  1259. .HasColumnType("varchar(30)")
  1260. .HasCharSet("utf8")
  1261. .HasCollation("utf8_general_ci");
  1262. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1263. entity.Property(e => e.SeoDescription)
  1264. .HasColumnType("varchar(500)")
  1265. .HasCharSet("utf8")
  1266. .HasCollation("utf8_general_ci");
  1267. entity.Property(e => e.SeoKeyword)
  1268. .HasColumnType("varchar(200)")
  1269. .HasCharSet("utf8")
  1270. .HasCollation("utf8_general_ci");
  1271. entity.Property(e => e.SeoTitle)
  1272. .HasColumnType("varchar(100)")
  1273. .HasCharSet("utf8")
  1274. .HasCollation("utf8_general_ci");
  1275. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1276. entity.Property(e => e.Status).HasColumnType("int(11)");
  1277. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1278. entity.Property(e => e.UpdateMan)
  1279. .HasColumnType("varchar(50)")
  1280. .HasCharSet("utf8")
  1281. .HasCollation("utf8_general_ci");
  1282. entity.Property(e => e.Version).HasColumnType("int(11)");
  1283. });
  1284. modelBuilder.Entity<FileUpdateInfo>(entity =>
  1285. {
  1286. entity.Property(e => e.Id).HasColumnType("int(11)");
  1287. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1288. entity.Property(e => e.CreateMan)
  1289. .HasColumnType("varchar(50)")
  1290. .HasCharSet("utf8")
  1291. .HasCollation("utf8_general_ci");
  1292. entity.Property(e => e.FileName)
  1293. .HasColumnType("varchar(50)")
  1294. .HasCharSet("utf8")
  1295. .HasCollation("utf8_general_ci");
  1296. entity.Property(e => e.Path)
  1297. .HasColumnType("varchar(200)")
  1298. .HasCharSet("utf8")
  1299. .HasCollation("utf8_general_ci");
  1300. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1301. entity.Property(e => e.SeoDescription)
  1302. .HasColumnType("varchar(500)")
  1303. .HasCharSet("utf8")
  1304. .HasCollation("utf8_general_ci");
  1305. entity.Property(e => e.SeoKeyword)
  1306. .HasColumnType("varchar(200)")
  1307. .HasCharSet("utf8")
  1308. .HasCollation("utf8_general_ci");
  1309. entity.Property(e => e.SeoTitle)
  1310. .HasColumnType("varchar(100)")
  1311. .HasCharSet("utf8")
  1312. .HasCollation("utf8_general_ci");
  1313. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1314. entity.Property(e => e.Status).HasColumnType("int(11)");
  1315. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1316. entity.Property(e => e.UpdateMan)
  1317. .HasColumnType("varchar(50)")
  1318. .HasCharSet("utf8")
  1319. .HasCollation("utf8_general_ci");
  1320. entity.Property(e => e.Version).HasColumnType("int(11)");
  1321. entity.Property(e => e.VersionNum).HasColumnType("int(11)");
  1322. });
  1323. modelBuilder.Entity<FluxProfitDetail>(entity =>
  1324. {
  1325. entity.Property(e => e.Id).HasColumnType("int(11)");
  1326. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1327. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1328. entity.Property(e => e.CreateMan)
  1329. .HasColumnType("varchar(50)")
  1330. .HasCharSet("utf8")
  1331. .HasCollation("utf8_general_ci");
  1332. entity.Property(e => e.FluxEndDate)
  1333. .HasColumnType("varchar(8)")
  1334. .HasCharSet("utf8")
  1335. .HasCollation("utf8_general_ci");
  1336. entity.Property(e => e.FluxFeeAmt).HasColumnType("decimal(18,2)");
  1337. entity.Property(e => e.FluxOrderNo)
  1338. .HasColumnType("varchar(64)")
  1339. .HasCharSet("utf8")
  1340. .HasCollation("utf8_general_ci");
  1341. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1342. entity.Property(e => e.FluxStartDate)
  1343. .HasColumnType("varchar(8)")
  1344. .HasCharSet("utf8")
  1345. .HasCollation("utf8_general_ci");
  1346. entity.Property(e => e.MerNo)
  1347. .HasColumnType("varchar(32)")
  1348. .HasCharSet("utf8")
  1349. .HasCollation("utf8_general_ci");
  1350. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1351. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1352. entity.Property(e => e.MerchantUserId).HasColumnType("int(11)");
  1353. entity.Property(e => e.PosType)
  1354. .HasColumnType("varchar(32)")
  1355. .HasCharSet("utf8")
  1356. .HasCollation("utf8_general_ci");
  1357. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  1358. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1359. entity.Property(e => e.RecordNo)
  1360. .HasColumnType("varchar(32)")
  1361. .HasCharSet("utf8")
  1362. .HasCollation("utf8_general_ci");
  1363. entity.Property(e => e.Remark)
  1364. .HasColumnType("varchar(128)")
  1365. .HasCharSet("utf8")
  1366. .HasCollation("utf8_general_ci");
  1367. entity.Property(e => e.SeoDescription)
  1368. .HasColumnType("varchar(500)")
  1369. .HasCharSet("utf8")
  1370. .HasCollation("utf8_general_ci");
  1371. entity.Property(e => e.SeoKeyword)
  1372. .HasColumnType("varchar(200)")
  1373. .HasCharSet("utf8")
  1374. .HasCollation("utf8_general_ci");
  1375. entity.Property(e => e.SeoTitle)
  1376. .HasColumnType("varchar(100)")
  1377. .HasCharSet("utf8")
  1378. .HasCollation("utf8_general_ci");
  1379. entity.Property(e => e.SnNo)
  1380. .HasColumnType("varchar(32)")
  1381. .HasCharSet("utf8")
  1382. .HasCollation("utf8_general_ci");
  1383. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1384. entity.Property(e => e.Status).HasColumnType("int(11)");
  1385. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1386. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  1387. entity.Property(e => e.TradeDate)
  1388. .HasColumnType("varchar(8)")
  1389. .HasCharSet("utf8")
  1390. .HasCollation("utf8_general_ci");
  1391. entity.Property(e => e.TradeMonth)
  1392. .HasColumnType("varchar(6)")
  1393. .HasCharSet("utf8")
  1394. .HasCollation("utf8_general_ci");
  1395. entity.Property(e => e.TradeOrderNo)
  1396. .HasColumnType("varchar(64)")
  1397. .HasCharSet("utf8")
  1398. .HasCollation("utf8_general_ci");
  1399. entity.Property(e => e.TradeTime)
  1400. .HasColumnType("varchar(6)")
  1401. .HasCharSet("utf8")
  1402. .HasCollation("utf8_general_ci");
  1403. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1404. entity.Property(e => e.UpdateMan)
  1405. .HasColumnType("varchar(50)")
  1406. .HasCharSet("utf8")
  1407. .HasCollation("utf8_general_ci");
  1408. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1409. entity.Property(e => e.Version).HasColumnType("int(11)");
  1410. });
  1411. modelBuilder.Entity<FluxProfitSummary>(entity =>
  1412. {
  1413. entity.Property(e => e.Id).HasColumnType("int(11)");
  1414. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1415. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  1416. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1417. entity.Property(e => e.CreateMan)
  1418. .HasColumnType("varchar(50)")
  1419. .HasCharSet("utf8")
  1420. .HasCollation("utf8_general_ci");
  1421. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1422. entity.Property(e => e.FluxTradeNum).HasColumnType("int(11)");
  1423. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1424. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1425. entity.Property(e => e.Remark)
  1426. .HasColumnType("varchar(64)")
  1427. .HasCharSet("utf8")
  1428. .HasCollation("utf8_general_ci");
  1429. entity.Property(e => e.SeoDescription)
  1430. .HasColumnType("varchar(500)")
  1431. .HasCharSet("utf8")
  1432. .HasCollation("utf8_general_ci");
  1433. entity.Property(e => e.SeoKeyword)
  1434. .HasColumnType("varchar(200)")
  1435. .HasCharSet("utf8")
  1436. .HasCollation("utf8_general_ci");
  1437. entity.Property(e => e.SeoTitle)
  1438. .HasColumnType("varchar(100)")
  1439. .HasCharSet("utf8")
  1440. .HasCollation("utf8_general_ci");
  1441. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1442. entity.Property(e => e.Status).HasColumnType("int(11)");
  1443. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1444. entity.Property(e => e.TradeMonth)
  1445. .HasColumnType("varchar(6)")
  1446. .HasCharSet("utf8")
  1447. .HasCollation("utf8_general_ci");
  1448. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1449. entity.Property(e => e.UpdateMan)
  1450. .HasColumnType("varchar(50)")
  1451. .HasCharSet("utf8")
  1452. .HasCollation("utf8_general_ci");
  1453. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1454. entity.Property(e => e.Version).HasColumnType("int(11)");
  1455. });
  1456. modelBuilder.Entity<IndexIconList>(entity =>
  1457. {
  1458. entity.Property(e => e.Id).HasColumnType("int(11)");
  1459. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1460. entity.Property(e => e.CreateMan)
  1461. .HasColumnType("varchar(50)")
  1462. .HasCharSet("utf8")
  1463. .HasCollation("utf8_general_ci");
  1464. entity.Property(e => e.Icon)
  1465. .HasColumnType("varchar(200)")
  1466. .HasCharSet("utf8")
  1467. .HasCollation("utf8_general_ci");
  1468. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1469. entity.Property(e => e.SeoDescription)
  1470. .HasColumnType("varchar(500)")
  1471. .HasCharSet("utf8")
  1472. .HasCollation("utf8_general_ci");
  1473. entity.Property(e => e.SeoKeyword)
  1474. .HasColumnType("varchar(200)")
  1475. .HasCharSet("utf8")
  1476. .HasCollation("utf8_general_ci");
  1477. entity.Property(e => e.SeoTitle)
  1478. .HasColumnType("varchar(100)")
  1479. .HasCharSet("utf8")
  1480. .HasCollation("utf8_general_ci");
  1481. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1482. entity.Property(e => e.Status).HasColumnType("int(11)");
  1483. entity.Property(e => e.Title)
  1484. .HasColumnType("varchar(50)")
  1485. .HasCharSet("utf8")
  1486. .HasCollation("utf8_general_ci");
  1487. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1488. entity.Property(e => e.UpdateMan)
  1489. .HasColumnType("varchar(50)")
  1490. .HasCharSet("utf8")
  1491. .HasCollation("utf8_general_ci");
  1492. entity.Property(e => e.Url)
  1493. .HasColumnType("varchar(50)")
  1494. .HasCharSet("utf8")
  1495. .HasCollation("utf8_general_ci");
  1496. entity.Property(e => e.Version).HasColumnType("int(11)");
  1497. });
  1498. modelBuilder.Entity<KqProductBrand>(entity =>
  1499. {
  1500. entity.Property(e => e.Id).HasColumnType("int(11)");
  1501. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1502. entity.Property(e => e.CreateMan)
  1503. .HasColumnType("varchar(50)")
  1504. .HasCharSet("utf8")
  1505. .HasCollation("utf8_general_ci");
  1506. entity.Property(e => e.Name)
  1507. .HasColumnType("varchar(50)")
  1508. .HasCharSet("utf8")
  1509. .HasCollation("utf8_general_ci");
  1510. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  1511. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1512. entity.Property(e => e.SeoDescription)
  1513. .HasColumnType("varchar(500)")
  1514. .HasCharSet("utf8")
  1515. .HasCollation("utf8_general_ci");
  1516. entity.Property(e => e.SeoKeyword)
  1517. .HasColumnType("varchar(200)")
  1518. .HasCharSet("utf8")
  1519. .HasCollation("utf8_general_ci");
  1520. entity.Property(e => e.SeoTitle)
  1521. .HasColumnType("varchar(100)")
  1522. .HasCharSet("utf8")
  1523. .HasCollation("utf8_general_ci");
  1524. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1525. entity.Property(e => e.Status).HasColumnType("int(11)");
  1526. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1527. entity.Property(e => e.UpdateMan)
  1528. .HasColumnType("varchar(50)")
  1529. .HasCharSet("utf8")
  1530. .HasCollation("utf8_general_ci");
  1531. entity.Property(e => e.Version).HasColumnType("int(11)");
  1532. });
  1533. modelBuilder.Entity<KqProductOrgs>(entity =>
  1534. {
  1535. entity.Property(e => e.Id).HasColumnType("int(11)");
  1536. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1537. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1538. entity.Property(e => e.CreateMan)
  1539. .HasColumnType("varchar(50)")
  1540. .HasCharSet("utf8")
  1541. .HasCollation("utf8_general_ci");
  1542. entity.Property(e => e.Name)
  1543. .HasColumnType("varchar(50)")
  1544. .HasCharSet("utf8")
  1545. .HasCollation("utf8_general_ci");
  1546. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1547. entity.Property(e => e.SeoDescription)
  1548. .HasColumnType("varchar(500)")
  1549. .HasCharSet("utf8")
  1550. .HasCollation("utf8_general_ci");
  1551. entity.Property(e => e.SeoKeyword)
  1552. .HasColumnType("varchar(200)")
  1553. .HasCharSet("utf8")
  1554. .HasCollation("utf8_general_ci");
  1555. entity.Property(e => e.SeoTitle)
  1556. .HasColumnType("varchar(100)")
  1557. .HasCharSet("utf8")
  1558. .HasCollation("utf8_general_ci");
  1559. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1560. entity.Property(e => e.Status).HasColumnType("int(11)");
  1561. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1562. entity.Property(e => e.UpdateMan)
  1563. .HasColumnType("varchar(50)")
  1564. .HasCharSet("utf8")
  1565. .HasCollation("utf8_general_ci");
  1566. entity.Property(e => e.Version).HasColumnType("int(11)");
  1567. });
  1568. modelBuilder.Entity<KqProductRuleSet>(entity =>
  1569. {
  1570. entity.Property(e => e.Id).HasColumnType("int(11)");
  1571. entity.Property(e => e.ActDeposit).HasColumnType("decimal(18,2)");
  1572. entity.Property(e => e.ActEndDate).HasColumnType("datetime");
  1573. entity.Property(e => e.ActFirst).HasColumnType("decimal(18,2)");
  1574. entity.Property(e => e.ActFirstDeposit).HasColumnType("decimal(18,2)");
  1575. entity.Property(e => e.ActPosCount).HasColumnType("int(11)");
  1576. entity.Property(e => e.ActPrize).HasColumnType("decimal(18,2)");
  1577. entity.Property(e => e.ActStartDate).HasColumnType("datetime");
  1578. entity.Property(e => e.ActiveCount).HasColumnType("int(11)");
  1579. entity.Property(e => e.ActivePrice).HasColumnType("decimal(18,2)");
  1580. entity.Property(e => e.BigExtendCycleDays).HasColumnType("int(11)");
  1581. entity.Property(e => e.BigTotalAmount).HasColumnType("decimal(18,2)");
  1582. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1583. entity.Property(e => e.CreateMan)
  1584. .HasColumnType("varchar(50)")
  1585. .HasCharSet("utf8")
  1586. .HasCollation("utf8_general_ci");
  1587. entity.Property(e => e.CycleEndDate).HasColumnType("datetime");
  1588. entity.Property(e => e.CycleIsOther)
  1589. .HasColumnType("bit(1)")
  1590. .HasDefaultValueSql("b'0'");
  1591. entity.Property(e => e.CyclePosDays).HasColumnType("int(11)");
  1592. entity.Property(e => e.CycleStartDate).HasColumnType("datetime");
  1593. entity.Property(e => e.Deposit).HasColumnType("decimal(18,2)");
  1594. entity.Property(e => e.FeeBindDays).HasColumnType("int(11)");
  1595. entity.Property(e => e.FeeFixed).HasColumnType("decimal(18,2)");
  1596. entity.Property(e => e.FeeOfDays).HasColumnType("datetime");
  1597. entity.Property(e => e.FeeRate).HasColumnType("decimal(18,2)");
  1598. entity.Property(e => e.FlowCardDirectProfit).HasColumnType("decimal(18,2)");
  1599. entity.Property(e => e.FlowCardEndDate).HasColumnType("datetime");
  1600. entity.Property(e => e.FlowCardFee).HasColumnType("decimal(18,2)");
  1601. entity.Property(e => e.FlowCardFreeDays).HasColumnType("int(11)");
  1602. entity.Property(e => e.FlowCardStartDate).HasColumnType("datetime");
  1603. entity.Property(e => e.HelpEndDate).HasColumnType("datetime");
  1604. entity.Property(e => e.HelpFee).HasColumnType("decimal(18,2)");
  1605. entity.Property(e => e.HelpMonths).HasColumnType("int(11)");
  1606. entity.Property(e => e.HelpStartDate).HasColumnType("datetime");
  1607. entity.Property(e => e.HelpSteadyFee).HasColumnType("decimal(18,2)");
  1608. entity.Property(e => e.MerStaEndDate).HasColumnType("datetime");
  1609. entity.Property(e => e.MerStaMonths).HasColumnType("int(11)");
  1610. entity.Property(e => e.MerStaProfit).HasColumnType("decimal(18,2)");
  1611. entity.Property(e => e.MerStaStartDate).HasColumnType("datetime");
  1612. entity.Property(e => e.MerStaTradeForMonth).HasColumnType("decimal(18,2)");
  1613. entity.Property(e => e.OpenEndDate).HasColumnType("datetime");
  1614. entity.Property(e => e.OpenStaDays).HasColumnType("int(11)");
  1615. entity.Property(e => e.OpenStaPrize).HasColumnType("decimal(18,2)");
  1616. entity.Property(e => e.OpenStaPrize2).HasColumnType("decimal(18,2)");
  1617. entity.Property(e => e.OpenStaTrade).HasColumnType("decimal(18,2)");
  1618. entity.Property(e => e.OpenStartDate).HasColumnType("datetime");
  1619. entity.Property(e => e.OrgId).HasColumnType("int(11)");
  1620. entity.Property(e => e.PullNewEndDate).HasColumnType("datetime");
  1621. entity.Property(e => e.PullNewExtendDays).HasColumnType("int(11)");
  1622. entity.Property(e => e.PullNewStartDate).HasColumnType("datetime");
  1623. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1624. entity.Property(e => e.SeoDescription)
  1625. .HasColumnType("varchar(500)")
  1626. .HasCharSet("utf8")
  1627. .HasCollation("utf8_general_ci");
  1628. entity.Property(e => e.SeoKeyword)
  1629. .HasColumnType("varchar(200)")
  1630. .HasCharSet("utf8")
  1631. .HasCollation("utf8_general_ci");
  1632. entity.Property(e => e.SeoTitle)
  1633. .HasColumnType("varchar(100)")
  1634. .HasCharSet("utf8")
  1635. .HasCollation("utf8_general_ci");
  1636. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1637. entity.Property(e => e.Status).HasColumnType("int(11)");
  1638. entity.Property(e => e.SubsidyEndDate).HasColumnType("datetime");
  1639. entity.Property(e => e.SubsidyStartDate).HasColumnType("datetime");
  1640. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1641. entity.Property(e => e.UpdateMan)
  1642. .HasColumnType("varchar(50)")
  1643. .HasCharSet("utf8")
  1644. .HasCollation("utf8_general_ci");
  1645. entity.Property(e => e.Version).HasColumnType("int(11)");
  1646. });
  1647. modelBuilder.Entity<KqProducts>(entity =>
  1648. {
  1649. entity.Property(e => e.Id).HasColumnType("int(11)");
  1650. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1651. entity.Property(e => e.CreateMan)
  1652. .HasColumnType("varchar(50)")
  1653. .HasCharSet("utf8")
  1654. .HasCollation("utf8_general_ci");
  1655. entity.Property(e => e.Name)
  1656. .HasColumnType("varchar(50)")
  1657. .HasCharSet("utf8")
  1658. .HasCollation("utf8_general_ci");
  1659. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1660. entity.Property(e => e.SeoDescription)
  1661. .HasColumnType("varchar(500)")
  1662. .HasCharSet("utf8")
  1663. .HasCollation("utf8_general_ci");
  1664. entity.Property(e => e.SeoKeyword)
  1665. .HasColumnType("varchar(200)")
  1666. .HasCharSet("utf8")
  1667. .HasCollation("utf8_general_ci");
  1668. entity.Property(e => e.SeoTitle)
  1669. .HasColumnType("varchar(100)")
  1670. .HasCharSet("utf8")
  1671. .HasCollation("utf8_general_ci");
  1672. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1673. entity.Property(e => e.Status).HasColumnType("int(11)");
  1674. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1675. entity.Property(e => e.UpdateMan)
  1676. .HasColumnType("varchar(50)")
  1677. .HasCharSet("utf8")
  1678. .HasCollation("utf8_general_ci");
  1679. entity.Property(e => e.Version).HasColumnType("int(11)");
  1680. });
  1681. modelBuilder.Entity<MachineApply>(entity =>
  1682. {
  1683. entity.Property(e => e.Id).HasColumnType("int(11)");
  1684. entity.Property(e => e.Address)
  1685. .HasColumnType("varchar(50)")
  1686. .HasCharSet("utf8")
  1687. .HasCollation("utf8_general_ci");
  1688. entity.Property(e => e.ApplyDeviceName)
  1689. .HasColumnType("varchar(32)")
  1690. .HasCharSet("utf8")
  1691. .HasCollation("utf8_general_ci");
  1692. entity.Property(e => e.ApplyDeviceNum).HasColumnType("int(11)");
  1693. entity.Property(e => e.ApplyNo)
  1694. .HasColumnType("varchar(32)")
  1695. .HasCharSet("utf8")
  1696. .HasCollation("utf8_general_ci");
  1697. entity.Property(e => e.ApplyTime).HasColumnType("datetime");
  1698. entity.Property(e => e.Areas)
  1699. .HasColumnType("varchar(30)")
  1700. .HasCharSet("utf8")
  1701. .HasCollation("utf8_general_ci");
  1702. entity.Property(e => e.AuditBy)
  1703. .HasColumnType("varchar(32)")
  1704. .HasCharSet("utf8")
  1705. .HasCollation("utf8_general_ci");
  1706. entity.Property(e => e.AuditRemark)
  1707. .HasColumnType("varchar(128)")
  1708. .HasCharSet("utf8")
  1709. .HasCollation("utf8_general_ci");
  1710. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1711. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1712. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1713. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1714. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1715. entity.Property(e => e.CreateMan)
  1716. .HasColumnType("varchar(50)")
  1717. .HasCharSet("utf8")
  1718. .HasCollation("utf8_general_ci");
  1719. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  1720. entity.Property(e => e.ExpressName)
  1721. .HasColumnType("varchar(32)")
  1722. .HasCharSet("utf8")
  1723. .HasCollation("utf8_general_ci");
  1724. entity.Property(e => e.ExpressNo)
  1725. .HasColumnType("varchar(32)")
  1726. .HasCharSet("utf8")
  1727. .HasCollation("utf8_general_ci");
  1728. entity.Property(e => e.Mobile)
  1729. .HasColumnType("varchar(11)")
  1730. .HasCharSet("utf8")
  1731. .HasCollation("utf8_general_ci");
  1732. entity.Property(e => e.OrderExpand)
  1733. .HasColumnType("mediumtext")
  1734. .HasCharSet("utf8")
  1735. .HasCollation("utf8_general_ci");
  1736. entity.Property(e => e.ProductName)
  1737. .HasColumnType("varchar(32)")
  1738. .HasCharSet("utf8")
  1739. .HasCollation("utf8_general_ci");
  1740. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1741. entity.Property(e => e.RealName)
  1742. .HasColumnType("varchar(30)")
  1743. .HasCharSet("utf8")
  1744. .HasCollation("utf8_general_ci");
  1745. entity.Property(e => e.Remark)
  1746. .HasColumnType("varchar(64)")
  1747. .HasCharSet("utf8")
  1748. .HasCollation("utf8_general_ci");
  1749. entity.Property(e => e.ReturnOrderNo)
  1750. .HasColumnType("varchar(32)")
  1751. .HasCharSet("utf8")
  1752. .HasCollation("utf8_general_ci");
  1753. entity.Property(e => e.ReturnStatus).HasColumnType("int(11)");
  1754. entity.Property(e => e.SendDate).HasColumnType("datetime");
  1755. entity.Property(e => e.SendSn)
  1756. .HasColumnType("varchar(32)")
  1757. .HasCharSet("utf8")
  1758. .HasCollation("utf8_general_ci");
  1759. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  1760. entity.Property(e => e.SeoDescription)
  1761. .HasColumnType("varchar(500)")
  1762. .HasCharSet("utf8")
  1763. .HasCollation("utf8_general_ci");
  1764. entity.Property(e => e.SeoKeyword)
  1765. .HasColumnType("varchar(200)")
  1766. .HasCharSet("utf8")
  1767. .HasCollation("utf8_general_ci");
  1768. entity.Property(e => e.SeoTitle)
  1769. .HasColumnType("varchar(100)")
  1770. .HasCharSet("utf8")
  1771. .HasCollation("utf8_general_ci");
  1772. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1773. entity.Property(e => e.Status).HasColumnType("int(11)");
  1774. entity.Property(e => e.StoreAddress)
  1775. .HasColumnType("varchar(50)")
  1776. .HasCharSet("utf8")
  1777. .HasCollation("utf8_general_ci");
  1778. entity.Property(e => e.StoreAreas)
  1779. .HasColumnType("varchar(30)")
  1780. .HasCharSet("utf8")
  1781. .HasCollation("utf8_general_ci");
  1782. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1783. entity.Property(e => e.StoreManager)
  1784. .HasColumnType("varchar(32)")
  1785. .HasCharSet("utf8")
  1786. .HasCollation("utf8_general_ci");
  1787. entity.Property(e => e.StoreManagerMobile)
  1788. .HasColumnType("varchar(11)")
  1789. .HasCharSet("utf8")
  1790. .HasCollation("utf8_general_ci");
  1791. entity.Property(e => e.StoreName)
  1792. .HasColumnType("varchar(32)")
  1793. .HasCharSet("utf8")
  1794. .HasCollation("utf8_general_ci");
  1795. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  1796. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  1797. entity.Property(e => e.SwapActProName)
  1798. .HasColumnType("varchar(32)")
  1799. .HasCharSet("utf8")
  1800. .HasCollation("utf8_general_ci");
  1801. entity.Property(e => e.SwapActProType).HasColumnType("int(11)");
  1802. entity.Property(e => e.SwapSnExpand)
  1803. .HasColumnType("mediumtext")
  1804. .HasCharSet("utf8")
  1805. .HasCollation("utf8_general_ci");
  1806. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1807. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1808. entity.Property(e => e.UpdateMan)
  1809. .HasColumnType("varchar(50)")
  1810. .HasCharSet("utf8")
  1811. .HasCollation("utf8_general_ci");
  1812. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1813. entity.Property(e => e.Version).HasColumnType("int(11)");
  1814. });
  1815. modelBuilder.Entity<MachineApplyDetail>(entity =>
  1816. {
  1817. entity.Property(e => e.Id).HasColumnType("int(11)");
  1818. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  1819. entity.Property(e => e.ApplyNo)
  1820. .HasColumnType("varchar(32)")
  1821. .HasCharSet("utf8")
  1822. .HasCollation("utf8_general_ci");
  1823. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1824. entity.Property(e => e.CreateMan)
  1825. .HasColumnType("varchar(50)")
  1826. .HasCharSet("utf8")
  1827. .HasCollation("utf8_general_ci");
  1828. entity.Property(e => e.DeviceDesc)
  1829. .HasColumnType("varchar(32)")
  1830. .HasCharSet("utf8")
  1831. .HasCollation("utf8_general_ci");
  1832. entity.Property(e => e.DeviceModel)
  1833. .HasColumnType("varchar(32)")
  1834. .HasCharSet("utf8")
  1835. .HasCollation("utf8_general_ci");
  1836. entity.Property(e => e.DeviceSnNo)
  1837. .HasColumnType("varchar(32)")
  1838. .HasCharSet("utf8")
  1839. .HasCollation("utf8_general_ci");
  1840. entity.Property(e => e.DeviceStatus).HasColumnType("int(11)");
  1841. entity.Property(e => e.DeviceVendor)
  1842. .HasColumnType("varchar(32)")
  1843. .HasCharSet("utf8")
  1844. .HasCollation("utf8_general_ci");
  1845. entity.Property(e => e.ProductName)
  1846. .HasColumnType("varchar(32)")
  1847. .HasCharSet("utf8")
  1848. .HasCollation("utf8_general_ci");
  1849. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  1850. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1851. entity.Property(e => e.Remark)
  1852. .HasColumnType("varchar(64)")
  1853. .HasCharSet("utf8")
  1854. .HasCollation("utf8_general_ci");
  1855. entity.Property(e => e.SeoDescription)
  1856. .HasColumnType("varchar(500)")
  1857. .HasCharSet("utf8")
  1858. .HasCollation("utf8_general_ci");
  1859. entity.Property(e => e.SeoKeyword)
  1860. .HasColumnType("varchar(200)")
  1861. .HasCharSet("utf8")
  1862. .HasCollation("utf8_general_ci");
  1863. entity.Property(e => e.SeoTitle)
  1864. .HasColumnType("varchar(100)")
  1865. .HasCharSet("utf8")
  1866. .HasCollation("utf8_general_ci");
  1867. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1868. entity.Property(e => e.SourceSnNo)
  1869. .HasColumnType("varchar(32)")
  1870. .HasCharSet("utf8")
  1871. .HasCollation("utf8_general_ci");
  1872. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  1873. entity.Property(e => e.Status).HasColumnType("int(11)");
  1874. entity.Property(e => e.UpSrcProName)
  1875. .HasColumnType("varchar(32)")
  1876. .HasCharSet("utf8")
  1877. .HasCollation("utf8_general_ci");
  1878. entity.Property(e => e.UpSrcProType).HasColumnType("int(11)");
  1879. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1880. entity.Property(e => e.UpdateMan)
  1881. .HasColumnType("varchar(50)")
  1882. .HasCharSet("utf8")
  1883. .HasCollation("utf8_general_ci");
  1884. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1885. entity.Property(e => e.Version).HasColumnType("int(11)");
  1886. });
  1887. modelBuilder.Entity<MachineChange>(entity =>
  1888. {
  1889. entity.Property(e => e.Id).HasColumnType("int(11)");
  1890. entity.Property(e => e.AuditBy)
  1891. .HasColumnType("varchar(32)")
  1892. .HasCharSet("utf8")
  1893. .HasCollation("utf8_general_ci");
  1894. entity.Property(e => e.AuditRemark)
  1895. .HasColumnType("varchar(128)")
  1896. .HasCharSet("utf8")
  1897. .HasCollation("utf8_general_ci");
  1898. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1899. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1900. entity.Property(e => e.BackProductName)
  1901. .HasColumnType("varchar(32)")
  1902. .HasCharSet("utf8")
  1903. .HasCollation("utf8_general_ci");
  1904. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  1905. entity.Property(e => e.BackStoreId).HasColumnType("int(11)");
  1906. entity.Property(e => e.BackStoreName)
  1907. .HasColumnType("varchar(32)")
  1908. .HasCharSet("utf8")
  1909. .HasCollation("utf8_general_ci");
  1910. entity.Property(e => e.BackStoreUserId).HasColumnType("int(11)");
  1911. entity.Property(e => e.ChangeDeviceName)
  1912. .HasColumnType("varchar(32)")
  1913. .HasCharSet("utf8")
  1914. .HasCollation("utf8_general_ci");
  1915. entity.Property(e => e.ChangeDeviceNum).HasColumnType("int(11)");
  1916. entity.Property(e => e.ChangeNo)
  1917. .HasColumnType("varchar(32)")
  1918. .HasCharSet("utf8")
  1919. .HasCollation("utf8_general_ci");
  1920. entity.Property(e => e.ChangeSnExpand)
  1921. .HasColumnType("mediumtext")
  1922. .HasCharSet("utf8")
  1923. .HasCollation("utf8_general_ci");
  1924. entity.Property(e => e.ChangeTime).HasColumnType("datetime");
  1925. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1926. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1927. entity.Property(e => e.CreateMan)
  1928. .HasColumnType("varchar(50)")
  1929. .HasCharSet("utf8")
  1930. .HasCollation("utf8_general_ci");
  1931. entity.Property(e => e.OrderExpand)
  1932. .HasColumnType("mediumtext")
  1933. .HasCharSet("utf8")
  1934. .HasCollation("utf8_general_ci");
  1935. entity.Property(e => e.OutProductName)
  1936. .HasColumnType("varchar(32)")
  1937. .HasCharSet("utf8")
  1938. .HasCollation("utf8_general_ci");
  1939. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  1940. entity.Property(e => e.OutStoreAddress)
  1941. .HasColumnType("varchar(128)")
  1942. .HasCharSet("utf8")
  1943. .HasCollation("utf8_general_ci");
  1944. entity.Property(e => e.OutStoreAreas)
  1945. .HasColumnType("varchar(30)")
  1946. .HasCharSet("utf8")
  1947. .HasCollation("utf8_general_ci");
  1948. entity.Property(e => e.OutStoreId).HasColumnType("int(11)");
  1949. entity.Property(e => e.OutStoreManager)
  1950. .HasColumnType("varchar(32)")
  1951. .HasCharSet("utf8")
  1952. .HasCollation("utf8_general_ci");
  1953. entity.Property(e => e.OutStoreManagerMobile)
  1954. .HasColumnType("varchar(11)")
  1955. .HasCharSet("utf8")
  1956. .HasCollation("utf8_general_ci");
  1957. entity.Property(e => e.OutStoreName)
  1958. .HasColumnType("varchar(32)")
  1959. .HasCharSet("utf8")
  1960. .HasCollation("utf8_general_ci");
  1961. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1962. entity.Property(e => e.Remark)
  1963. .HasColumnType("varchar(64)")
  1964. .HasCharSet("utf8")
  1965. .HasCollation("utf8_general_ci");
  1966. entity.Property(e => e.SeoDescription)
  1967. .HasColumnType("varchar(500)")
  1968. .HasCharSet("utf8")
  1969. .HasCollation("utf8_general_ci");
  1970. entity.Property(e => e.SeoKeyword)
  1971. .HasColumnType("varchar(200)")
  1972. .HasCharSet("utf8")
  1973. .HasCollation("utf8_general_ci");
  1974. entity.Property(e => e.SeoTitle)
  1975. .HasColumnType("varchar(100)")
  1976. .HasCharSet("utf8")
  1977. .HasCollation("utf8_general_ci");
  1978. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1979. entity.Property(e => e.Status).HasColumnType("int(11)");
  1980. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1981. entity.Property(e => e.UpdateMan)
  1982. .HasColumnType("varchar(50)")
  1983. .HasCharSet("utf8")
  1984. .HasCollation("utf8_general_ci");
  1985. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1986. entity.Property(e => e.Version).HasColumnType("int(11)");
  1987. });
  1988. modelBuilder.Entity<MachineChangeDetail>(entity =>
  1989. {
  1990. entity.Property(e => e.Id).HasColumnType("int(11)");
  1991. entity.Property(e => e.BackDeviceStatus).HasColumnType("int(11)");
  1992. entity.Property(e => e.BackProductName)
  1993. .HasColumnType("varchar(32)")
  1994. .HasCharSet("utf8")
  1995. .HasCollation("utf8_general_ci");
  1996. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  1997. entity.Property(e => e.BackSnNo)
  1998. .HasColumnType("varchar(32)")
  1999. .HasCharSet("utf8")
  2000. .HasCollation("utf8_general_ci");
  2001. entity.Property(e => e.BackSnType).HasColumnType("int(11)");
  2002. entity.Property(e => e.ChangeId).HasColumnType("int(11)");
  2003. entity.Property(e => e.ChangeNo)
  2004. .HasColumnType("varchar(32)")
  2005. .HasCharSet("utf8")
  2006. .HasCollation("utf8_general_ci");
  2007. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2008. entity.Property(e => e.CreateMan)
  2009. .HasColumnType("varchar(50)")
  2010. .HasCharSet("utf8")
  2011. .HasCollation("utf8_general_ci");
  2012. entity.Property(e => e.OutProductName)
  2013. .HasColumnType("varchar(32)")
  2014. .HasCharSet("utf8")
  2015. .HasCollation("utf8_general_ci");
  2016. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2017. entity.Property(e => e.OutSnNo)
  2018. .HasColumnType("varchar(32)")
  2019. .HasCharSet("utf8")
  2020. .HasCollation("utf8_general_ci");
  2021. entity.Property(e => e.OutSnType).HasColumnType("int(11)");
  2022. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2023. entity.Property(e => e.Remark)
  2024. .HasColumnType("varchar(64)")
  2025. .HasCharSet("utf8")
  2026. .HasCollation("utf8_general_ci");
  2027. entity.Property(e => e.SeoDescription)
  2028. .HasColumnType("varchar(500)")
  2029. .HasCharSet("utf8")
  2030. .HasCollation("utf8_general_ci");
  2031. entity.Property(e => e.SeoKeyword)
  2032. .HasColumnType("varchar(200)")
  2033. .HasCharSet("utf8")
  2034. .HasCollation("utf8_general_ci");
  2035. entity.Property(e => e.SeoTitle)
  2036. .HasColumnType("varchar(100)")
  2037. .HasCharSet("utf8")
  2038. .HasCollation("utf8_general_ci");
  2039. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2040. entity.Property(e => e.Status).HasColumnType("int(11)");
  2041. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2042. entity.Property(e => e.UpdateMan)
  2043. .HasColumnType("varchar(50)")
  2044. .HasCharSet("utf8")
  2045. .HasCollation("utf8_general_ci");
  2046. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2047. entity.Property(e => e.Version).HasColumnType("int(11)");
  2048. });
  2049. modelBuilder.Entity<MachineForQrCode>(entity =>
  2050. {
  2051. entity.HasKey(e => e.DataId)
  2052. .HasName("PRIMARY");
  2053. entity.Property(e => e.DataId)
  2054. .HasColumnType("varchar(20)")
  2055. .HasCharSet("utf8")
  2056. .HasCollation("utf8_general_ci");
  2057. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2058. entity.Property(e => e.MachineSnNo)
  2059. .HasColumnType("varchar(50)")
  2060. .HasCharSet("utf8")
  2061. .HasCollation("utf8_general_ci");
  2062. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2063. entity.Property(e => e.SnNo)
  2064. .HasColumnType("varchar(50)")
  2065. .HasCharSet("utf8")
  2066. .HasCollation("utf8_general_ci");
  2067. });
  2068. modelBuilder.Entity<MachineForSnNo>(entity =>
  2069. {
  2070. entity.HasKey(e => e.SnNo)
  2071. .HasName("PRIMARY");
  2072. entity.Property(e => e.SnNo)
  2073. .HasColumnType("varchar(50)")
  2074. .HasCharSet("utf8")
  2075. .HasCollation("utf8_general_ci");
  2076. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2077. });
  2078. modelBuilder.Entity<MachineRenew>(entity =>
  2079. {
  2080. entity.Property(e => e.Id).HasColumnType("int(11)");
  2081. entity.Property(e => e.ApplyDate)
  2082. .HasColumnType("varchar(8)")
  2083. .HasCharSet("utf8")
  2084. .HasCollation("utf8_general_ci");
  2085. entity.Property(e => e.ApplyNo)
  2086. .HasColumnType("varchar(32)")
  2087. .HasCharSet("utf8")
  2088. .HasCollation("utf8_general_ci");
  2089. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2090. entity.Property(e => e.AuditDesc)
  2091. .HasColumnType("varchar(256)")
  2092. .HasCharSet("utf8")
  2093. .HasCollation("utf8_general_ci");
  2094. entity.Property(e => e.AuditStatus)
  2095. .HasColumnName("audit_status")
  2096. .HasColumnType("int(11)");
  2097. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2098. entity.Property(e => e.CreateMan)
  2099. .HasColumnType("varchar(50)")
  2100. .HasCharSet("utf8")
  2101. .HasCollation("utf8_general_ci");
  2102. entity.Property(e => e.DamagedBrandId).HasColumnType("int(11)");
  2103. entity.Property(e => e.DamagedSnNo)
  2104. .HasColumnType("varchar(32)")
  2105. .HasCharSet("utf8")
  2106. .HasCollation("utf8_general_ci");
  2107. entity.Property(e => e.DamagedSnType).HasColumnType("int(11)");
  2108. entity.Property(e => e.DeliverBrandId).HasColumnType("int(11)");
  2109. entity.Property(e => e.DeliverSnNo)
  2110. .HasColumnType("varchar(32)")
  2111. .HasCharSet("utf8")
  2112. .HasCollation("utf8_general_ci");
  2113. entity.Property(e => e.DemandDesc)
  2114. .HasColumnType("varchar(256)")
  2115. .HasCharSet("utf8")
  2116. .HasCollation("utf8_general_ci");
  2117. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2118. entity.Property(e => e.ReplaceBrandId).HasColumnType("int(11)");
  2119. entity.Property(e => e.ReplaceSnNo)
  2120. .HasColumnType("varchar(32)")
  2121. .HasCharSet("utf8")
  2122. .HasCollation("utf8_general_ci");
  2123. entity.Property(e => e.ReplaceSnType).HasColumnType("int(11)");
  2124. entity.Property(e => e.SeoDescription)
  2125. .HasColumnType("varchar(500)")
  2126. .HasCharSet("utf8")
  2127. .HasCollation("utf8_general_ci");
  2128. entity.Property(e => e.SeoKeyword)
  2129. .HasColumnType("varchar(200)")
  2130. .HasCharSet("utf8")
  2131. .HasCollation("utf8_general_ci");
  2132. entity.Property(e => e.SeoTitle)
  2133. .HasColumnType("varchar(100)")
  2134. .HasCharSet("utf8")
  2135. .HasCollation("utf8_general_ci");
  2136. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2137. entity.Property(e => e.Status).HasColumnType("int(11)");
  2138. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2139. entity.Property(e => e.UpdateMan)
  2140. .HasColumnType("varchar(50)")
  2141. .HasCharSet("utf8")
  2142. .HasCollation("utf8_general_ci");
  2143. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2144. entity.Property(e => e.Version).HasColumnType("int(11)");
  2145. });
  2146. modelBuilder.Entity<MachineReturn>(entity =>
  2147. {
  2148. entity.Property(e => e.Id).HasColumnType("int(11)");
  2149. entity.Property(e => e.ApplyNo)
  2150. .HasColumnType("varchar(32)")
  2151. .HasCharSet("utf8")
  2152. .HasCollation("utf8_general_ci");
  2153. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2154. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2155. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2156. entity.Property(e => e.CreateMan)
  2157. .HasColumnType("varchar(50)")
  2158. .HasCharSet("utf8")
  2159. .HasCollation("utf8_general_ci");
  2160. entity.Property(e => e.DeviceDesc)
  2161. .HasColumnType("varchar(256)")
  2162. .HasCharSet("utf8")
  2163. .HasCollation("utf8_general_ci");
  2164. entity.Property(e => e.DeviceNum).HasColumnType("int(11)");
  2165. entity.Property(e => e.DeviceSnNos)
  2166. .HasColumnType("mediumtext")
  2167. .HasCharSet("utf8")
  2168. .HasCollation("utf8_general_ci");
  2169. entity.Property(e => e.Operator)
  2170. .HasColumnType("varchar(32)")
  2171. .HasCharSet("utf8")
  2172. .HasCollation("utf8_general_ci");
  2173. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2174. entity.Property(e => e.Remark)
  2175. .HasColumnType("varchar(64)")
  2176. .HasCharSet("utf8")
  2177. .HasCollation("utf8_general_ci");
  2178. entity.Property(e => e.SeoDescription)
  2179. .HasColumnType("varchar(500)")
  2180. .HasCharSet("utf8")
  2181. .HasCollation("utf8_general_ci");
  2182. entity.Property(e => e.SeoKeyword)
  2183. .HasColumnType("varchar(200)")
  2184. .HasCharSet("utf8")
  2185. .HasCollation("utf8_general_ci");
  2186. entity.Property(e => e.SeoTitle)
  2187. .HasColumnType("varchar(100)")
  2188. .HasCharSet("utf8")
  2189. .HasCollation("utf8_general_ci");
  2190. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2191. entity.Property(e => e.Status).HasColumnType("int(11)");
  2192. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  2193. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2194. entity.Property(e => e.UpdateMan)
  2195. .HasColumnType("varchar(50)")
  2196. .HasCharSet("utf8")
  2197. .HasCollation("utf8_general_ci");
  2198. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2199. entity.Property(e => e.Version).HasColumnType("int(11)");
  2200. });
  2201. modelBuilder.Entity<MenuRight>(entity =>
  2202. {
  2203. entity.HasKey(e => e.MenuId)
  2204. .HasName("PRIMARY");
  2205. entity.Property(e => e.MenuId)
  2206. .HasColumnType("varchar(50)")
  2207. .HasCharSet("utf8")
  2208. .HasCollation("utf8_general_ci");
  2209. entity.Property(e => e.Name)
  2210. .HasColumnType("varchar(50)")
  2211. .HasCharSet("utf8")
  2212. .HasCollation("utf8_general_ci");
  2213. });
  2214. modelBuilder.Entity<MerchantAddInfo>(entity =>
  2215. {
  2216. entity.Property(e => e.Id).HasColumnType("int(11)");
  2217. entity.Property(e => e.AccountBank)
  2218. .HasColumnType("varchar(30)")
  2219. .HasCharSet("utf8")
  2220. .HasCollation("utf8_general_ci");
  2221. entity.Property(e => e.AccountName)
  2222. .HasColumnType("varchar(50)")
  2223. .HasCharSet("utf8")
  2224. .HasCollation("utf8_general_ci");
  2225. entity.Property(e => e.AccountNumber)
  2226. .HasColumnType("varchar(50)")
  2227. .HasCharSet("utf8")
  2228. .HasCollation("utf8_general_ci");
  2229. entity.Property(e => e.ActivitiesId)
  2230. .HasColumnType("varchar(32)")
  2231. .HasCharSet("utf8")
  2232. .HasCollation("utf8_general_ci");
  2233. entity.Property(e => e.ActivitiesRate)
  2234. .HasColumnType("varchar(20)")
  2235. .HasCharSet("utf8")
  2236. .HasCollation("utf8_general_ci");
  2237. entity.Property(e => e.AppAppid)
  2238. .HasColumnType("varchar(50)")
  2239. .HasCharSet("utf8")
  2240. .HasCollation("utf8_general_ci");
  2241. entity.Property(e => e.AppPics)
  2242. .HasColumnType("varchar(200)")
  2243. .HasCharSet("utf8")
  2244. .HasCollation("utf8_general_ci");
  2245. entity.Property(e => e.AppSubAppid)
  2246. .HasColumnType("varchar(50)")
  2247. .HasCharSet("utf8")
  2248. .HasCollation("utf8_general_ci");
  2249. entity.Property(e => e.ApplymentId)
  2250. .HasColumnType("varchar(50)")
  2251. .HasCharSet("utf8")
  2252. .HasCollation("utf8_general_ci");
  2253. entity.Property(e => e.ApplymentState)
  2254. .HasColumnType("varchar(50)")
  2255. .HasCharSet("utf8")
  2256. .HasCollation("utf8_general_ci");
  2257. entity.Property(e => e.AuditDetail)
  2258. .HasColumnType("mediumtext")
  2259. .HasCharSet("utf8")
  2260. .HasCollation("utf8_general_ci");
  2261. entity.Property(e => e.BankAccountType)
  2262. .HasColumnType("varchar(50)")
  2263. .HasCharSet("utf8")
  2264. .HasCollation("utf8_general_ci");
  2265. entity.Property(e => e.BankAddressCode)
  2266. .HasColumnType("varchar(20)")
  2267. .HasCharSet("utf8")
  2268. .HasCollation("utf8_general_ci");
  2269. entity.Property(e => e.BankBranchId)
  2270. .HasColumnType("varchar(20)")
  2271. .HasCharSet("utf8")
  2272. .HasCollation("utf8_general_ci");
  2273. entity.Property(e => e.BankName)
  2274. .HasColumnType("varchar(50)")
  2275. .HasCharSet("utf8")
  2276. .HasCollation("utf8_general_ci");
  2277. entity.Property(e => e.BizAddressCode)
  2278. .HasColumnType("varchar(30)")
  2279. .HasCharSet("utf8")
  2280. .HasCollation("utf8_general_ci");
  2281. entity.Property(e => e.BizStoreAddress)
  2282. .HasColumnType("varchar(50)")
  2283. .HasCharSet("utf8")
  2284. .HasCollation("utf8_general_ci");
  2285. entity.Property(e => e.BizStoreName)
  2286. .HasColumnType("varchar(50)")
  2287. .HasCharSet("utf8")
  2288. .HasCollation("utf8_general_ci");
  2289. entity.Property(e => e.BizSubAppid)
  2290. .HasColumnType("varchar(32)")
  2291. .HasCharSet("utf8")
  2292. .HasCollation("utf8_general_ci");
  2293. entity.Property(e => e.BusinessCode)
  2294. .HasColumnType("varchar(50)")
  2295. .HasCharSet("utf8")
  2296. .HasCollation("utf8_general_ci");
  2297. entity.Property(e => e.CardPeriodBegin).HasColumnType("datetime");
  2298. entity.Property(e => e.CardPeriodEnd).HasColumnType("datetime");
  2299. entity.Property(e => e.CertCopy)
  2300. .HasColumnType("varchar(200)")
  2301. .HasCharSet("utf8")
  2302. .HasCollation("utf8_general_ci");
  2303. entity.Property(e => e.CertLegalPerson)
  2304. .HasColumnType("varchar(20)")
  2305. .HasCharSet("utf8")
  2306. .HasCollation("utf8_general_ci");
  2307. entity.Property(e => e.CertMerchantName)
  2308. .HasColumnType("varchar(30)")
  2309. .HasCharSet("utf8")
  2310. .HasCollation("utf8_general_ci");
  2311. entity.Property(e => e.CertNumber)
  2312. .HasColumnType("varchar(32)")
  2313. .HasCharSet("utf8")
  2314. .HasCollation("utf8_general_ci");
  2315. entity.Property(e => e.CertType)
  2316. .HasColumnType("varchar(30)")
  2317. .HasCharSet("utf8")
  2318. .HasCollation("utf8_general_ci");
  2319. entity.Property(e => e.CertificateLetterCopy)
  2320. .HasColumnType("varchar(200)")
  2321. .HasCharSet("utf8")
  2322. .HasCollation("utf8_general_ci");
  2323. entity.Property(e => e.CompanyAddress)
  2324. .HasColumnType("varchar(50)")
  2325. .HasCharSet("utf8")
  2326. .HasCollation("utf8_general_ci");
  2327. entity.Property(e => e.ContactEmail)
  2328. .HasColumnType("varchar(50)")
  2329. .HasCharSet("utf8")
  2330. .HasCollation("utf8_general_ci");
  2331. entity.Property(e => e.ContactIdNumber)
  2332. .HasColumnType("varchar(18)")
  2333. .HasCharSet("utf8")
  2334. .HasCollation("utf8_general_ci");
  2335. entity.Property(e => e.ContactName)
  2336. .HasColumnType("varchar(30)")
  2337. .HasCharSet("utf8")
  2338. .HasCollation("utf8_general_ci");
  2339. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2340. entity.Property(e => e.CreateMan)
  2341. .HasColumnType("varchar(50)")
  2342. .HasCharSet("utf8")
  2343. .HasCollation("utf8_general_ci");
  2344. entity.Property(e => e.IdCardCopy)
  2345. .HasColumnType("varchar(200)")
  2346. .HasCharSet("utf8")
  2347. .HasCollation("utf8_general_ci");
  2348. entity.Property(e => e.IdCardName)
  2349. .HasColumnType("varchar(20)")
  2350. .HasCharSet("utf8")
  2351. .HasCollation("utf8_general_ci");
  2352. entity.Property(e => e.IdCardNational)
  2353. .HasColumnType("varchar(200)")
  2354. .HasCharSet("utf8")
  2355. .HasCollation("utf8_general_ci");
  2356. entity.Property(e => e.IdCardNumber)
  2357. .HasColumnType("varchar(18)")
  2358. .HasCharSet("utf8")
  2359. .HasCollation("utf8_general_ci");
  2360. entity.Property(e => e.IdDocType)
  2361. .HasColumnType("varchar(50)")
  2362. .HasCharSet("utf8")
  2363. .HasCollation("utf8_general_ci");
  2364. entity.Property(e => e.IndoorPic)
  2365. .HasColumnType("varchar(200)")
  2366. .HasCharSet("utf8")
  2367. .HasCollation("utf8_general_ci");
  2368. entity.Property(e => e.LegalPerson)
  2369. .HasColumnType("varchar(20)")
  2370. .HasCharSet("utf8")
  2371. .HasCollation("utf8_general_ci");
  2372. entity.Property(e => e.LicenseCopy)
  2373. .HasColumnType("varchar(200)")
  2374. .HasCharSet("utf8")
  2375. .HasCollation("utf8_general_ci");
  2376. entity.Property(e => e.LicenseNumber)
  2377. .HasColumnType("varchar(32)")
  2378. .HasCharSet("utf8")
  2379. .HasCollation("utf8_general_ci");
  2380. entity.Property(e => e.MerchantShortname)
  2381. .HasColumnType("varchar(50)")
  2382. .HasCharSet("utf8")
  2383. .HasCollation("utf8_general_ci");
  2384. entity.Property(e => e.MiniProgramAppid)
  2385. .HasColumnType("varchar(50)")
  2386. .HasCharSet("utf8")
  2387. .HasCollation("utf8_general_ci");
  2388. entity.Property(e => e.MiniProgramPics)
  2389. .HasColumnType("varchar(200)")
  2390. .HasCharSet("utf8")
  2391. .HasCollation("utf8_general_ci");
  2392. entity.Property(e => e.MiniProgramSubAppid)
  2393. .HasColumnType("varchar(50)")
  2394. .HasCharSet("utf8")
  2395. .HasCollation("utf8_general_ci");
  2396. entity.Property(e => e.MobilePhone)
  2397. .HasColumnType("varchar(11)")
  2398. .HasCharSet("utf8")
  2399. .HasCollation("utf8_general_ci");
  2400. entity.Property(e => e.MpAppid)
  2401. .HasColumnType("varchar(50)")
  2402. .HasCharSet("utf8")
  2403. .HasCollation("utf8_general_ci");
  2404. entity.Property(e => e.MpPics)
  2405. .HasColumnType("varchar(200)")
  2406. .HasCharSet("utf8")
  2407. .HasCollation("utf8_general_ci");
  2408. entity.Property(e => e.MpSubAppid)
  2409. .HasColumnType("varchar(50)")
  2410. .HasCharSet("utf8")
  2411. .HasCollation("utf8_general_ci");
  2412. entity.Property(e => e.OpenId)
  2413. .HasColumnType("varchar(50)")
  2414. .HasCharSet("utf8")
  2415. .HasCollation("utf8_general_ci");
  2416. entity.Property(e => e.OrgPeriodBegin).HasColumnType("datetime");
  2417. entity.Property(e => e.OrgPeriodEnd).HasColumnType("datetime");
  2418. entity.Property(e => e.OrganizationCode)
  2419. .HasColumnType("varchar(32)")
  2420. .HasCharSet("utf8")
  2421. .HasCollation("utf8_general_ci");
  2422. entity.Property(e => e.OrganizationCopy)
  2423. .HasColumnType("varchar(200)")
  2424. .HasCharSet("utf8")
  2425. .HasCollation("utf8_general_ci");
  2426. entity.Property(e => e.Owner)
  2427. .HasColumnType("bit(1)")
  2428. .HasDefaultValueSql("b'0'");
  2429. entity.Property(e => e.PeriodBegin).HasColumnType("datetime");
  2430. entity.Property(e => e.PeriodEnd).HasColumnType("datetime");
  2431. entity.Property(e => e.QualificationType)
  2432. .HasColumnType("varchar(30)")
  2433. .HasCharSet("utf8")
  2434. .HasCollation("utf8_general_ci");
  2435. entity.Property(e => e.Qualifications)
  2436. .HasColumnType("varchar(200)")
  2437. .HasCharSet("utf8")
  2438. .HasCollation("utf8_general_ci");
  2439. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2440. entity.Property(e => e.SalesScenesType)
  2441. .HasColumnType("varchar(50)")
  2442. .HasCharSet("utf8")
  2443. .HasCollation("utf8_general_ci");
  2444. entity.Property(e => e.SeoDescription)
  2445. .HasColumnType("varchar(500)")
  2446. .HasCharSet("utf8")
  2447. .HasCollation("utf8_general_ci");
  2448. entity.Property(e => e.SeoKeyword)
  2449. .HasColumnType("varchar(200)")
  2450. .HasCharSet("utf8")
  2451. .HasCollation("utf8_general_ci");
  2452. entity.Property(e => e.SeoTitle)
  2453. .HasColumnType("varchar(100)")
  2454. .HasCharSet("utf8")
  2455. .HasCollation("utf8_general_ci");
  2456. entity.Property(e => e.ServicePhone)
  2457. .HasColumnType("varchar(30)")
  2458. .HasCharSet("utf8")
  2459. .HasCollation("utf8_general_ci");
  2460. entity.Property(e => e.SettlementId)
  2461. .HasColumnType("varchar(3)")
  2462. .HasCharSet("utf8")
  2463. .HasCollation("utf8_general_ci");
  2464. entity.Property(e => e.SignUrl)
  2465. .HasColumnType("varchar(1000)")
  2466. .HasCharSet("utf8")
  2467. .HasCollation("utf8_general_ci");
  2468. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2469. entity.Property(e => e.Status).HasColumnType("int(11)");
  2470. entity.Property(e => e.StoreEntrancePic)
  2471. .HasColumnType("varchar(200)")
  2472. .HasCharSet("utf8")
  2473. .HasCollation("utf8_general_ci");
  2474. entity.Property(e => e.SubCorpId)
  2475. .HasColumnType("varchar(50)")
  2476. .HasCharSet("utf8")
  2477. .HasCollation("utf8_general_ci");
  2478. entity.Property(e => e.SubMchid)
  2479. .HasColumnType("varchar(32)")
  2480. .HasCharSet("utf8")
  2481. .HasCollation("utf8_general_ci");
  2482. entity.Property(e => e.SubjectType)
  2483. .HasColumnType("varchar(50)")
  2484. .HasCharSet("utf8")
  2485. .HasCollation("utf8_general_ci");
  2486. entity.Property(e => e.UboInfoIdCardCopy)
  2487. .HasColumnType("varchar(200)")
  2488. .HasCharSet("utf8")
  2489. .HasCollation("utf8_general_ci");
  2490. entity.Property(e => e.UboInfoIdCardNational)
  2491. .HasColumnType("varchar(200)")
  2492. .HasCharSet("utf8")
  2493. .HasCollation("utf8_general_ci");
  2494. entity.Property(e => e.UboInfoIdDocCopy)
  2495. .HasColumnType("varchar(200)")
  2496. .HasCharSet("utf8")
  2497. .HasCollation("utf8_general_ci");
  2498. entity.Property(e => e.UboInfoIdNumber)
  2499. .HasColumnType("varchar(30)")
  2500. .HasCharSet("utf8")
  2501. .HasCollation("utf8_general_ci");
  2502. entity.Property(e => e.UboInfoIdPeriodBegin).HasColumnType("datetime");
  2503. entity.Property(e => e.UboInfoIdPeriodEnd).HasColumnType("datetime");
  2504. entity.Property(e => e.UboInfoIdType)
  2505. .HasColumnType("varchar(50)")
  2506. .HasCharSet("utf8")
  2507. .HasCollation("utf8_general_ci");
  2508. entity.Property(e => e.UboInfoName)
  2509. .HasColumnType("varchar(20)")
  2510. .HasCharSet("utf8")
  2511. .HasCollation("utf8_general_ci");
  2512. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2513. entity.Property(e => e.UpdateMan)
  2514. .HasColumnType("varchar(50)")
  2515. .HasCharSet("utf8")
  2516. .HasCollation("utf8_general_ci");
  2517. entity.Property(e => e.Version).HasColumnType("int(11)");
  2518. entity.Property(e => e.WebAppId)
  2519. .HasColumnType("varchar(50)")
  2520. .HasCharSet("utf8")
  2521. .HasCollation("utf8_general_ci");
  2522. entity.Property(e => e.WebAuthorisation)
  2523. .HasColumnType("varchar(200)")
  2524. .HasCharSet("utf8")
  2525. .HasCollation("utf8_general_ci");
  2526. entity.Property(e => e.WebDomain)
  2527. .HasColumnType("varchar(50)")
  2528. .HasCharSet("utf8")
  2529. .HasCollation("utf8_general_ci");
  2530. entity.Property(e => e.WeworkPics)
  2531. .HasColumnType("varchar(200)")
  2532. .HasCharSet("utf8")
  2533. .HasCollation("utf8_general_ci");
  2534. });
  2535. modelBuilder.Entity<MerchantAdmin>(entity =>
  2536. {
  2537. entity.Property(e => e.Id).HasColumnType("int(11)");
  2538. entity.Property(e => e.AdminName)
  2539. .HasColumnType("varchar(50)")
  2540. .HasCharSet("utf8")
  2541. .HasCollation("utf8_general_ci");
  2542. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2543. entity.Property(e => e.CreateMan)
  2544. .HasColumnType("varchar(50)")
  2545. .HasCharSet("utf8")
  2546. .HasCollation("utf8_general_ci");
  2547. entity.Property(e => e.Email)
  2548. .HasColumnType("varchar(50)")
  2549. .HasCharSet("utf8")
  2550. .HasCollation("utf8_general_ci");
  2551. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  2552. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2553. entity.Property(e => e.Mobile)
  2554. .HasColumnType("varchar(11)")
  2555. .HasCharSet("utf8")
  2556. .HasCollation("utf8_general_ci");
  2557. entity.Property(e => e.Note)
  2558. .HasColumnType("mediumtext")
  2559. .HasCharSet("utf8")
  2560. .HasCollation("utf8_general_ci");
  2561. entity.Property(e => e.Password)
  2562. .HasColumnType("varchar(32)")
  2563. .HasCharSet("utf8")
  2564. .HasCollation("utf8_general_ci");
  2565. entity.Property(e => e.Qq)
  2566. .HasColumnName("QQ")
  2567. .HasColumnType("varchar(20)")
  2568. .HasCharSet("utf8")
  2569. .HasCollation("utf8_general_ci");
  2570. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2571. entity.Property(e => e.RealName)
  2572. .HasColumnType("varchar(50)")
  2573. .HasCharSet("utf8")
  2574. .HasCollation("utf8_general_ci");
  2575. entity.Property(e => e.RightInfo)
  2576. .HasColumnType("varchar(500)")
  2577. .HasCharSet("utf8")
  2578. .HasCollation("utf8_general_ci");
  2579. entity.Property(e => e.SeoDescription)
  2580. .HasColumnType("varchar(500)")
  2581. .HasCharSet("utf8")
  2582. .HasCollation("utf8_general_ci");
  2583. entity.Property(e => e.SeoKeyword)
  2584. .HasColumnType("varchar(200)")
  2585. .HasCharSet("utf8")
  2586. .HasCollation("utf8_general_ci");
  2587. entity.Property(e => e.SeoTitle)
  2588. .HasColumnType("varchar(100)")
  2589. .HasCharSet("utf8")
  2590. .HasCollation("utf8_general_ci");
  2591. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2592. entity.Property(e => e.Status).HasColumnType("int(11)");
  2593. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2594. entity.Property(e => e.UpdateMan)
  2595. .HasColumnType("varchar(50)")
  2596. .HasCharSet("utf8")
  2597. .HasCollation("utf8_general_ci");
  2598. entity.Property(e => e.Version).HasColumnType("int(11)");
  2599. });
  2600. modelBuilder.Entity<MerchantAuth>(entity =>
  2601. {
  2602. entity.Property(e => e.Id).HasColumnType("int(11)");
  2603. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  2604. entity.Property(e => e.BankCardAccount)
  2605. .HasColumnType("varchar(32)")
  2606. .HasCharSet("utf8")
  2607. .HasCollation("utf8_general_ci");
  2608. entity.Property(e => e.BankMobile)
  2609. .HasColumnType("varchar(11)")
  2610. .HasCharSet("utf8")
  2611. .HasCollation("utf8_general_ci");
  2612. entity.Property(e => e.BankName)
  2613. .HasColumnType("varchar(64)")
  2614. .HasCharSet("utf8")
  2615. .HasCollation("utf8_general_ci");
  2616. entity.Property(e => e.ChannelCode)
  2617. .HasColumnType("varchar(16)")
  2618. .HasCharSet("utf8")
  2619. .HasCollation("utf8_general_ci");
  2620. entity.Property(e => e.ChannelName)
  2621. .HasColumnType("varchar(32)")
  2622. .HasCharSet("utf8")
  2623. .HasCollation("utf8_general_ci");
  2624. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2625. entity.Property(e => e.CreateMan)
  2626. .HasColumnType("varchar(50)")
  2627. .HasCharSet("utf8")
  2628. .HasCollation("utf8_general_ci");
  2629. entity.Property(e => e.IdCardNo)
  2630. .HasColumnType("varchar(18)")
  2631. .HasCharSet("utf8")
  2632. .HasCollation("utf8_general_ci");
  2633. entity.Property(e => e.MerNo)
  2634. .HasColumnType("varchar(20)")
  2635. .HasCharSet("utf8")
  2636. .HasCollation("utf8_general_ci");
  2637. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2638. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2639. entity.Property(e => e.RealName)
  2640. .HasColumnType("varchar(16)")
  2641. .HasCharSet("utf8")
  2642. .HasCollation("utf8_general_ci");
  2643. entity.Property(e => e.ReqData)
  2644. .HasColumnType("varchar(2000)")
  2645. .HasCharSet("utf8")
  2646. .HasCollation("utf8_general_ci");
  2647. entity.Property(e => e.RespData)
  2648. .HasColumnType("varchar(2000)")
  2649. .HasCharSet("utf8")
  2650. .HasCollation("utf8_general_ci");
  2651. entity.Property(e => e.ReturnCode)
  2652. .HasColumnType("varchar(30)")
  2653. .HasCharSet("utf8")
  2654. .HasCollation("utf8_general_ci");
  2655. entity.Property(e => e.ReturnMsg)
  2656. .HasColumnType("varchar(512)")
  2657. .HasCharSet("utf8")
  2658. .HasCollation("utf8_general_ci");
  2659. entity.Property(e => e.SeoDescription)
  2660. .HasColumnType("varchar(500)")
  2661. .HasCharSet("utf8")
  2662. .HasCollation("utf8_general_ci");
  2663. entity.Property(e => e.SeoKeyword)
  2664. .HasColumnType("varchar(200)")
  2665. .HasCharSet("utf8")
  2666. .HasCollation("utf8_general_ci");
  2667. entity.Property(e => e.SeoTitle)
  2668. .HasColumnType("varchar(100)")
  2669. .HasCharSet("utf8")
  2670. .HasCollation("utf8_general_ci");
  2671. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2672. entity.Property(e => e.Status).HasColumnType("int(11)");
  2673. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2674. entity.Property(e => e.UpdateMan)
  2675. .HasColumnType("varchar(50)")
  2676. .HasCharSet("utf8")
  2677. .HasCollation("utf8_general_ci");
  2678. entity.Property(e => e.Version).HasColumnType("int(11)");
  2679. });
  2680. modelBuilder.Entity<MerchantClass>(entity =>
  2681. {
  2682. entity.Property(e => e.Id).HasColumnType("int(11)");
  2683. entity.Property(e => e.ColName)
  2684. .HasColumnType("varchar(50)")
  2685. .HasCharSet("utf8")
  2686. .HasCollation("utf8_general_ci");
  2687. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2688. entity.Property(e => e.CreateMan)
  2689. .HasColumnType("varchar(50)")
  2690. .HasCharSet("utf8")
  2691. .HasCollation("utf8_general_ci");
  2692. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2693. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2694. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2695. entity.Property(e => e.SeoDescription)
  2696. .HasColumnType("varchar(500)")
  2697. .HasCharSet("utf8")
  2698. .HasCollation("utf8_general_ci");
  2699. entity.Property(e => e.SeoKeyword)
  2700. .HasColumnType("varchar(200)")
  2701. .HasCharSet("utf8")
  2702. .HasCollation("utf8_general_ci");
  2703. entity.Property(e => e.SeoTitle)
  2704. .HasColumnType("varchar(100)")
  2705. .HasCharSet("utf8")
  2706. .HasCollation("utf8_general_ci");
  2707. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2708. entity.Property(e => e.Status).HasColumnType("int(11)");
  2709. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2710. entity.Property(e => e.UpdateMan)
  2711. .HasColumnType("varchar(50)")
  2712. .HasCharSet("utf8")
  2713. .HasCollation("utf8_general_ci");
  2714. entity.Property(e => e.Version).HasColumnType("int(11)");
  2715. });
  2716. modelBuilder.Entity<MerchantCol>(entity =>
  2717. {
  2718. entity.Property(e => e.Id).HasColumnType("int(11)");
  2719. entity.Property(e => e.ColDetail)
  2720. .HasColumnType("varchar(50)")
  2721. .HasCharSet("utf8")
  2722. .HasCollation("utf8_general_ci");
  2723. entity.Property(e => e.ColEnName)
  2724. .HasColumnType("varchar(50)")
  2725. .HasCharSet("utf8")
  2726. .HasCollation("utf8_general_ci");
  2727. entity.Property(e => e.ColId)
  2728. .HasColumnType("varchar(30)")
  2729. .HasCharSet("utf8")
  2730. .HasCollation("utf8_general_ci");
  2731. entity.Property(e => e.ColName)
  2732. .HasColumnType("varchar(50)")
  2733. .HasCharSet("utf8")
  2734. .HasCollation("utf8_general_ci");
  2735. entity.Property(e => e.ColPicPath)
  2736. .HasColumnType("varchar(200)")
  2737. .HasCharSet("utf8")
  2738. .HasCollation("utf8_general_ci");
  2739. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2740. entity.Property(e => e.CreateMan)
  2741. .HasColumnType("varchar(50)")
  2742. .HasCharSet("utf8")
  2743. .HasCollation("utf8_general_ci");
  2744. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2745. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2746. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2747. entity.Property(e => e.Recommend)
  2748. .HasColumnType("bit(1)")
  2749. .HasDefaultValueSql("b'0'");
  2750. entity.Property(e => e.SeoDescription)
  2751. .HasColumnType("varchar(500)")
  2752. .HasCharSet("utf8")
  2753. .HasCollation("utf8_general_ci");
  2754. entity.Property(e => e.SeoKeyword)
  2755. .HasColumnType("varchar(200)")
  2756. .HasCharSet("utf8")
  2757. .HasCollation("utf8_general_ci");
  2758. entity.Property(e => e.SeoTitle)
  2759. .HasColumnType("varchar(100)")
  2760. .HasCharSet("utf8")
  2761. .HasCollation("utf8_general_ci");
  2762. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2763. entity.Property(e => e.Status).HasColumnType("int(11)");
  2764. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2765. entity.Property(e => e.UpdateMan)
  2766. .HasColumnType("varchar(50)")
  2767. .HasCharSet("utf8")
  2768. .HasCollation("utf8_general_ci");
  2769. entity.Property(e => e.Version).HasColumnType("int(11)");
  2770. });
  2771. modelBuilder.Entity<MerchantComment>(entity =>
  2772. {
  2773. entity.Property(e => e.Id).HasColumnType("int(11)");
  2774. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2775. entity.Property(e => e.CreateMan)
  2776. .HasColumnType("varchar(50)")
  2777. .HasCharSet("utf8")
  2778. .HasCollation("utf8_general_ci");
  2779. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2780. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  2781. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2782. entity.Property(e => e.SeoDescription)
  2783. .HasColumnType("varchar(500)")
  2784. .HasCharSet("utf8")
  2785. .HasCollation("utf8_general_ci");
  2786. entity.Property(e => e.SeoKeyword)
  2787. .HasColumnType("varchar(200)")
  2788. .HasCharSet("utf8")
  2789. .HasCollation("utf8_general_ci");
  2790. entity.Property(e => e.SeoTitle)
  2791. .HasColumnType("varchar(100)")
  2792. .HasCharSet("utf8")
  2793. .HasCollation("utf8_general_ci");
  2794. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2795. entity.Property(e => e.StarNum1).HasColumnType("int(11)");
  2796. entity.Property(e => e.StarNum2).HasColumnType("int(11)");
  2797. entity.Property(e => e.StarNum3).HasColumnType("int(11)");
  2798. entity.Property(e => e.Status).HasColumnType("int(11)");
  2799. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2800. entity.Property(e => e.UpdateMan)
  2801. .HasColumnType("varchar(50)")
  2802. .HasCharSet("utf8")
  2803. .HasCollation("utf8_general_ci");
  2804. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2805. entity.Property(e => e.Version).HasColumnType("int(11)");
  2806. });
  2807. modelBuilder.Entity<MerchantForCode>(entity =>
  2808. {
  2809. entity.HasKey(e => e.Code)
  2810. .HasName("PRIMARY");
  2811. entity.Property(e => e.Code)
  2812. .HasColumnType("varchar(30)")
  2813. .HasCharSet("utf8")
  2814. .HasCollation("utf8_general_ci");
  2815. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2816. });
  2817. modelBuilder.Entity<MerchantForMobile>(entity =>
  2818. {
  2819. entity.HasKey(e => e.Mobile)
  2820. .HasName("PRIMARY");
  2821. entity.Property(e => e.Mobile)
  2822. .HasColumnType("varchar(11)")
  2823. .HasCharSet("utf8")
  2824. .HasCollation("utf8_general_ci");
  2825. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2826. });
  2827. modelBuilder.Entity<MerchantForName>(entity =>
  2828. {
  2829. entity.HasKey(e => e.Name)
  2830. .HasName("PRIMARY");
  2831. entity.Property(e => e.Name)
  2832. .HasColumnType("varchar(30)")
  2833. .HasCharSet("utf8")
  2834. .HasCollation("utf8_general_ci");
  2835. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2836. });
  2837. modelBuilder.Entity<MerchantInfo>(entity =>
  2838. {
  2839. entity.Property(e => e.Id).HasColumnType("int(11)");
  2840. entity.Property(e => e.Address)
  2841. .HasColumnType("varchar(100)")
  2842. .HasCharSet("utf8")
  2843. .HasCollation("utf8_general_ci");
  2844. entity.Property(e => e.Areas)
  2845. .HasColumnType("varchar(50)")
  2846. .HasCharSet("utf8")
  2847. .HasCollation("utf8_general_ci");
  2848. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2849. entity.Property(e => e.CreateMan)
  2850. .HasColumnType("varchar(50)")
  2851. .HasCharSet("utf8")
  2852. .HasCollation("utf8_general_ci");
  2853. entity.Property(e => e.IsAuth)
  2854. .HasColumnType("bit(1)")
  2855. .HasDefaultValueSql("b'0'");
  2856. entity.Property(e => e.LastAddConsumerDate).HasColumnType("datetime");
  2857. entity.Property(e => e.LastConsumeDate).HasColumnType("datetime");
  2858. entity.Property(e => e.LoginPwd)
  2859. .HasColumnType("varchar(32)")
  2860. .HasCharSet("utf8")
  2861. .HasCollation("utf8_general_ci");
  2862. entity.Property(e => e.Logo)
  2863. .HasColumnType("varchar(200)")
  2864. .HasCharSet("utf8")
  2865. .HasCollation("utf8_general_ci");
  2866. entity.Property(e => e.Mobile)
  2867. .HasColumnType("varchar(11)")
  2868. .HasCharSet("utf8")
  2869. .HasCollation("utf8_general_ci");
  2870. entity.Property(e => e.Name)
  2871. .HasColumnType("varchar(50)")
  2872. .HasCharSet("utf8")
  2873. .HasCollation("utf8_general_ci");
  2874. entity.Property(e => e.ParentUserNav)
  2875. .HasColumnType("varchar(500)")
  2876. .HasCharSet("utf8")
  2877. .HasCollation("utf8_general_ci");
  2878. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2879. entity.Property(e => e.SeoDescription)
  2880. .HasColumnType("varchar(500)")
  2881. .HasCharSet("utf8")
  2882. .HasCollation("utf8_general_ci");
  2883. entity.Property(e => e.SeoKeyword)
  2884. .HasColumnType("varchar(200)")
  2885. .HasCharSet("utf8")
  2886. .HasCollation("utf8_general_ci");
  2887. entity.Property(e => e.SeoTitle)
  2888. .HasColumnType("varchar(100)")
  2889. .HasCharSet("utf8")
  2890. .HasCollation("utf8_general_ci");
  2891. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2892. entity.Property(e => e.Status).HasColumnType("int(11)");
  2893. entity.Property(e => e.TotalActual).HasColumnType("decimal(18,2)");
  2894. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  2895. entity.Property(e => e.TotalConsumeCount).HasColumnType("int(11)");
  2896. entity.Property(e => e.TotalCustomer).HasColumnType("int(11)");
  2897. entity.Property(e => e.TotalOrder).HasColumnType("int(11)");
  2898. entity.Property(e => e.TotalUser).HasColumnType("int(11)");
  2899. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2900. entity.Property(e => e.UpdateMan)
  2901. .HasColumnType("varchar(50)")
  2902. .HasCharSet("utf8")
  2903. .HasCollation("utf8_general_ci");
  2904. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2905. entity.Property(e => e.Version).HasColumnType("int(11)");
  2906. });
  2907. modelBuilder.Entity<MerchantParamSet>(entity =>
  2908. {
  2909. entity.Property(e => e.Id).HasColumnType("int(11)");
  2910. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2911. entity.Property(e => e.CreateMan)
  2912. .HasColumnType("varchar(50)")
  2913. .HasCharSet("utf8")
  2914. .HasCollation("utf8_general_ci");
  2915. entity.Property(e => e.DiviPercent).HasColumnType("decimal(18,2)");
  2916. entity.Property(e => e.DiviPersons).HasColumnType("int(11)");
  2917. entity.Property(e => e.GetPercent).HasColumnType("decimal(18,2)");
  2918. entity.Property(e => e.IsAll).HasColumnType("int(11)");
  2919. entity.Property(e => e.MinPayMoney).HasColumnType("decimal(18,2)");
  2920. entity.Property(e => e.ProfitDays).HasColumnType("int(11)");
  2921. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2922. entity.Property(e => e.SeoDescription)
  2923. .HasColumnType("varchar(500)")
  2924. .HasCharSet("utf8")
  2925. .HasCollation("utf8_general_ci");
  2926. entity.Property(e => e.SeoKeyword)
  2927. .HasColumnType("varchar(200)")
  2928. .HasCharSet("utf8")
  2929. .HasCollation("utf8_general_ci");
  2930. entity.Property(e => e.SeoTitle)
  2931. .HasColumnType("varchar(100)")
  2932. .HasCharSet("utf8")
  2933. .HasCollation("utf8_general_ci");
  2934. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2935. entity.Property(e => e.Status).HasColumnType("int(11)");
  2936. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2937. entity.Property(e => e.UpdateMan)
  2938. .HasColumnType("varchar(50)")
  2939. .HasCharSet("utf8")
  2940. .HasCollation("utf8_general_ci");
  2941. entity.Property(e => e.Version).HasColumnType("int(11)");
  2942. });
  2943. modelBuilder.Entity<MerchantQrCode>(entity =>
  2944. {
  2945. entity.Property(e => e.Id).HasColumnType("int(11)");
  2946. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2947. entity.Property(e => e.MachineId).HasColumnType("int(11)");
  2948. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2949. entity.Property(e => e.QrCodeContent)
  2950. .HasColumnType("varchar(500)")
  2951. .HasCharSet("utf8")
  2952. .HasCollation("utf8_general_ci");
  2953. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2954. entity.Property(e => e.SeoDescription)
  2955. .HasColumnType("varchar(500)")
  2956. .HasCharSet("utf8")
  2957. .HasCollation("utf8_general_ci");
  2958. entity.Property(e => e.SeoKeyword)
  2959. .HasColumnType("varchar(200)")
  2960. .HasCharSet("utf8")
  2961. .HasCollation("utf8_general_ci");
  2962. entity.Property(e => e.SeoTitle)
  2963. .HasColumnType("varchar(100)")
  2964. .HasCharSet("utf8")
  2965. .HasCollation("utf8_general_ci");
  2966. entity.Property(e => e.SnNo)
  2967. .HasColumnType("varchar(50)")
  2968. .HasCharSet("utf8")
  2969. .HasCollation("utf8_general_ci");
  2970. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2971. entity.Property(e => e.Status).HasColumnType("int(11)");
  2972. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2973. });
  2974. modelBuilder.Entity<MerchantRebateDetail>(entity =>
  2975. {
  2976. entity.Property(e => e.Id).HasColumnType("int(11)");
  2977. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2978. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2979. entity.Property(e => e.CreateMan)
  2980. .HasColumnType("varchar(50)")
  2981. .HasCharSet("utf8")
  2982. .HasCollation("utf8_general_ci");
  2983. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  2984. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  2985. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  2986. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  2987. entity.Property(e => e.MerNo)
  2988. .HasColumnType("varchar(32)")
  2989. .HasCharSet("utf8")
  2990. .HasCollation("utf8_general_ci");
  2991. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  2992. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  2993. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2994. entity.Property(e => e.MmpUserName)
  2995. .HasColumnType("varchar(32)")
  2996. .HasCharSet("utf8")
  2997. .HasCollation("utf8_general_ci");
  2998. entity.Property(e => e.MmpUserNo)
  2999. .HasColumnType("varchar(32)")
  3000. .HasCharSet("utf8")
  3001. .HasCollation("utf8_general_ci");
  3002. entity.Property(e => e.ProductName)
  3003. .HasColumnType("varchar(32)")
  3004. .HasCharSet("utf8")
  3005. .HasCollation("utf8_general_ci");
  3006. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3007. entity.Property(e => e.Remark)
  3008. .HasColumnType("varchar(64)")
  3009. .HasCharSet("utf8")
  3010. .HasCollation("utf8_general_ci");
  3011. entity.Property(e => e.RewardDesc)
  3012. .HasColumnType("varchar(128)")
  3013. .HasCharSet("utf8")
  3014. .HasCollation("utf8_general_ci");
  3015. entity.Property(e => e.SeoDescription)
  3016. .HasColumnType("varchar(500)")
  3017. .HasCharSet("utf8")
  3018. .HasCollation("utf8_general_ci");
  3019. entity.Property(e => e.SeoKeyword)
  3020. .HasColumnType("varchar(200)")
  3021. .HasCharSet("utf8")
  3022. .HasCollation("utf8_general_ci");
  3023. entity.Property(e => e.SeoTitle)
  3024. .HasColumnType("varchar(100)")
  3025. .HasCharSet("utf8")
  3026. .HasCollation("utf8_general_ci");
  3027. entity.Property(e => e.SnNo)
  3028. .HasColumnType("varchar(32)")
  3029. .HasCharSet("utf8")
  3030. .HasCollation("utf8_general_ci");
  3031. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3032. entity.Property(e => e.Status).HasColumnType("int(11)");
  3033. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  3034. entity.Property(e => e.TradeDate)
  3035. .HasColumnType("varchar(8)")
  3036. .HasCharSet("utf8")
  3037. .HasCollation("utf8_general_ci");
  3038. entity.Property(e => e.TradeMonth)
  3039. .HasColumnType("varchar(6)")
  3040. .HasCharSet("utf8")
  3041. .HasCollation("utf8_general_ci");
  3042. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3043. entity.Property(e => e.UpdateMan)
  3044. .HasColumnType("varchar(50)")
  3045. .HasCharSet("utf8")
  3046. .HasCollation("utf8_general_ci");
  3047. entity.Property(e => e.Version).HasColumnType("int(11)");
  3048. });
  3049. modelBuilder.Entity<Merchants>(entity =>
  3050. {
  3051. entity.Property(e => e.Id).HasColumnType("int(11)");
  3052. entity.Property(e => e.Address)
  3053. .HasColumnType("varchar(50)")
  3054. .HasCharSet("utf8")
  3055. .HasCollation("utf8_general_ci");
  3056. entity.Property(e => e.Areas)
  3057. .HasColumnType("varchar(30)")
  3058. .HasCharSet("utf8")
  3059. .HasCollation("utf8_general_ci");
  3060. entity.Property(e => e.BusinessLicense)
  3061. .HasColumnType("varchar(200)")
  3062. .HasCharSet("utf8")
  3063. .HasCollation("utf8_general_ci");
  3064. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  3065. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3066. entity.Property(e => e.CreateMan)
  3067. .HasColumnType("varchar(50)")
  3068. .HasCharSet("utf8")
  3069. .HasCollation("utf8_general_ci");
  3070. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  3071. entity.Property(e => e.IsAuth)
  3072. .HasColumnType("bit(1)")
  3073. .HasDefaultValueSql("b'0'");
  3074. entity.Property(e => e.IsRecommend)
  3075. .HasColumnType("bit(1)")
  3076. .HasDefaultValueSql("b'0'");
  3077. entity.Property(e => e.LoginPwd)
  3078. .HasColumnType("varchar(32)")
  3079. .HasCharSet("utf8")
  3080. .HasCollation("utf8_general_ci");
  3081. entity.Property(e => e.Logo)
  3082. .HasColumnType("varchar(200)")
  3083. .HasCharSet("utf8")
  3084. .HasCollation("utf8_general_ci");
  3085. entity.Property(e => e.Name)
  3086. .HasColumnType("varchar(50)")
  3087. .HasCharSet("utf8")
  3088. .HasCollation("utf8_general_ci");
  3089. entity.Property(e => e.PayPwd)
  3090. .HasColumnType("varchar(32)")
  3091. .HasCharSet("utf8")
  3092. .HasCollation("utf8_general_ci");
  3093. entity.Property(e => e.Phone)
  3094. .HasColumnType("varchar(30)")
  3095. .HasCharSet("utf8")
  3096. .HasCollation("utf8_general_ci");
  3097. entity.Property(e => e.Principal)
  3098. .HasColumnType("varchar(30)")
  3099. .HasCharSet("utf8")
  3100. .HasCollation("utf8_general_ci");
  3101. entity.Property(e => e.Province)
  3102. .HasColumnType("varchar(20)")
  3103. .HasCharSet("utf8")
  3104. .HasCollation("utf8_general_ci");
  3105. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3106. entity.Property(e => e.SeoDescription)
  3107. .HasColumnType("varchar(500)")
  3108. .HasCharSet("utf8")
  3109. .HasCollation("utf8_general_ci");
  3110. entity.Property(e => e.SeoKeyword)
  3111. .HasColumnType("varchar(200)")
  3112. .HasCharSet("utf8")
  3113. .HasCollation("utf8_general_ci");
  3114. entity.Property(e => e.SeoTitle)
  3115. .HasColumnType("varchar(100)")
  3116. .HasCharSet("utf8")
  3117. .HasCollation("utf8_general_ci");
  3118. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3119. entity.Property(e => e.StarNum1).HasColumnType("decimal(18,2)");
  3120. entity.Property(e => e.StarNum2).HasColumnType("decimal(18,2)");
  3121. entity.Property(e => e.StarNum3).HasColumnType("decimal(18,2)");
  3122. entity.Property(e => e.Status).HasColumnType("int(11)");
  3123. entity.Property(e => e.Title)
  3124. .HasColumnType("varchar(50)")
  3125. .HasCharSet("utf8")
  3126. .HasCollation("utf8_general_ci");
  3127. entity.Property(e => e.Title2)
  3128. .HasColumnType("varchar(50)")
  3129. .HasCharSet("utf8")
  3130. .HasCollation("utf8_general_ci");
  3131. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3132. entity.Property(e => e.UpdateMan)
  3133. .HasColumnType("varchar(50)")
  3134. .HasCharSet("utf8")
  3135. .HasCollation("utf8_general_ci");
  3136. entity.Property(e => e.UserName)
  3137. .HasColumnType("varchar(50)")
  3138. .HasCharSet("utf8")
  3139. .HasCollation("utf8_general_ci");
  3140. entity.Property(e => e.Version).HasColumnType("int(11)");
  3141. });
  3142. modelBuilder.Entity<MobileCodeCheck>(entity =>
  3143. {
  3144. entity.HasKey(e => e.Mobile)
  3145. .HasName("PRIMARY");
  3146. entity.Property(e => e.Mobile)
  3147. .HasColumnType("varchar(11)")
  3148. .HasCharSet("utf8")
  3149. .HasCollation("utf8_general_ci");
  3150. entity.Property(e => e.CheckCode)
  3151. .HasColumnType("varchar(6)")
  3152. .HasCharSet("utf8")
  3153. .HasCollation("utf8_general_ci");
  3154. entity.Property(e => e.CheckCodeTime).HasColumnType("datetime");
  3155. entity.Property(e => e.CheckNo)
  3156. .HasColumnType("varchar(6)")
  3157. .HasCharSet("utf8")
  3158. .HasCollation("utf8_general_ci");
  3159. });
  3160. modelBuilder.Entity<MsgBlackList>(entity =>
  3161. {
  3162. entity.Property(e => e.Id).HasColumnType("int(11)");
  3163. entity.Property(e => e.ColId)
  3164. .HasColumnType("varchar(30)")
  3165. .HasCharSet("utf8")
  3166. .HasCollation("utf8_general_ci");
  3167. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3168. entity.Property(e => e.CreateMan)
  3169. .HasColumnType("varchar(50)")
  3170. .HasCharSet("utf8")
  3171. .HasCollation("utf8_general_ci");
  3172. entity.Property(e => e.Extend)
  3173. .HasColumnType("varchar(2000)")
  3174. .HasCharSet("utf8")
  3175. .HasCollation("utf8_general_ci");
  3176. entity.Property(e => e.Ip)
  3177. .HasColumnType("varchar(64)")
  3178. .HasCharSet("utf8")
  3179. .HasCollation("utf8_general_ci");
  3180. entity.Property(e => e.Mobile)
  3181. .HasColumnType("varchar(11)")
  3182. .HasCharSet("utf8")
  3183. .HasCollation("utf8_general_ci");
  3184. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3185. entity.Property(e => e.Reason)
  3186. .HasColumnType("varchar(512)")
  3187. .HasCharSet("utf8")
  3188. .HasCollation("utf8_general_ci");
  3189. entity.Property(e => e.Remark)
  3190. .HasColumnType("varchar(64)")
  3191. .HasCharSet("utf8")
  3192. .HasCollation("utf8_general_ci");
  3193. entity.Property(e => e.SeoDescription)
  3194. .HasColumnType("varchar(500)")
  3195. .HasCharSet("utf8")
  3196. .HasCollation("utf8_general_ci");
  3197. entity.Property(e => e.SeoKeyword)
  3198. .HasColumnType("varchar(200)")
  3199. .HasCharSet("utf8")
  3200. .HasCollation("utf8_general_ci");
  3201. entity.Property(e => e.SeoTitle)
  3202. .HasColumnType("varchar(100)")
  3203. .HasCharSet("utf8")
  3204. .HasCollation("utf8_general_ci");
  3205. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3206. entity.Property(e => e.Status).HasColumnType("int(11)");
  3207. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3208. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3209. entity.Property(e => e.UpdateMan)
  3210. .HasColumnType("varchar(50)")
  3211. .HasCharSet("utf8")
  3212. .HasCollation("utf8_general_ci");
  3213. entity.Property(e => e.Version).HasColumnType("int(11)");
  3214. });
  3215. modelBuilder.Entity<MsgPersonal>(entity =>
  3216. {
  3217. entity.Property(e => e.Id).HasColumnType("int(11)");
  3218. entity.Property(e => e.BgPic)
  3219. .HasColumnType("varchar(200)")
  3220. .HasCharSet("utf8")
  3221. .HasCollation("utf8_general_ci");
  3222. entity.Property(e => e.Content)
  3223. .HasColumnType("longtext")
  3224. .HasCharSet("utf8")
  3225. .HasCollation("utf8_general_ci");
  3226. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3227. entity.Property(e => e.CreateMan)
  3228. .HasColumnType("varchar(50)")
  3229. .HasCharSet("utf8")
  3230. .HasCollation("utf8_general_ci");
  3231. entity.Property(e => e.ExtendColumn)
  3232. .HasColumnType("mediumtext")
  3233. .HasCharSet("utf8")
  3234. .HasCollation("utf8_general_ci");
  3235. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3236. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3237. entity.Property(e => e.PushParam)
  3238. .HasColumnType("varchar(255)")
  3239. .HasCharSet("utf8")
  3240. .HasCollation("utf8_general_ci");
  3241. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3242. entity.Property(e => e.ReadFlag)
  3243. .HasColumnType("bit(1)")
  3244. .HasDefaultValueSql("b'0'");
  3245. entity.Property(e => e.Remark)
  3246. .HasColumnType("varchar(255)")
  3247. .HasCharSet("utf8")
  3248. .HasCollation("utf8_general_ci");
  3249. entity.Property(e => e.SeoDescription)
  3250. .HasColumnType("varchar(500)")
  3251. .HasCharSet("utf8")
  3252. .HasCollation("utf8_general_ci");
  3253. entity.Property(e => e.SeoKeyword)
  3254. .HasColumnType("varchar(200)")
  3255. .HasCharSet("utf8")
  3256. .HasCollation("utf8_general_ci");
  3257. entity.Property(e => e.SeoTitle)
  3258. .HasColumnType("varchar(100)")
  3259. .HasCharSet("utf8")
  3260. .HasCollation("utf8_general_ci");
  3261. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3262. entity.Property(e => e.Status).HasColumnType("int(11)");
  3263. entity.Property(e => e.Summary)
  3264. .HasColumnType("varchar(500)")
  3265. .HasCharSet("utf8")
  3266. .HasCollation("utf8_general_ci");
  3267. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3268. entity.Property(e => e.Title)
  3269. .HasColumnType("varchar(50)")
  3270. .HasCharSet("utf8")
  3271. .HasCollation("utf8_general_ci");
  3272. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3273. entity.Property(e => e.UpdateMan)
  3274. .HasColumnType("varchar(50)")
  3275. .HasCharSet("utf8")
  3276. .HasCollation("utf8_general_ci");
  3277. entity.Property(e => e.Url)
  3278. .HasColumnType("varchar(500)")
  3279. .HasCharSet("utf8")
  3280. .HasCollation("utf8_general_ci");
  3281. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3282. entity.Property(e => e.Version).HasColumnType("int(11)");
  3283. });
  3284. modelBuilder.Entity<MsgPlacard>(entity =>
  3285. {
  3286. entity.Property(e => e.Id).HasColumnType("int(11)");
  3287. entity.Property(e => e.BgPic)
  3288. .HasColumnType("varchar(200)")
  3289. .HasCharSet("utf8")
  3290. .HasCollation("utf8_general_ci");
  3291. entity.Property(e => e.Content)
  3292. .HasColumnType("longtext")
  3293. .HasCharSet("utf8")
  3294. .HasCollation("utf8_general_ci");
  3295. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3296. entity.Property(e => e.CreateMan)
  3297. .HasColumnType("varchar(50)")
  3298. .HasCharSet("utf8")
  3299. .HasCollation("utf8_general_ci");
  3300. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  3301. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  3302. entity.Property(e => e.ExtendColumn)
  3303. .HasColumnType("mediumtext")
  3304. .HasCharSet("utf8")
  3305. .HasCollation("utf8_general_ci");
  3306. entity.Property(e => e.IsTop)
  3307. .HasColumnType("bit(1)")
  3308. .HasDefaultValueSql("b'0'");
  3309. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3310. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3311. entity.Property(e => e.PushParam)
  3312. .HasColumnType("varchar(255)")
  3313. .HasCharSet("utf8")
  3314. .HasCollation("utf8_general_ci");
  3315. entity.Property(e => e.PushTime).HasColumnType("datetime");
  3316. entity.Property(e => e.PushType).HasColumnType("int(11)");
  3317. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3318. entity.Property(e => e.Remark)
  3319. .HasColumnType("varchar(255)")
  3320. .HasCharSet("utf8")
  3321. .HasCollation("utf8_general_ci");
  3322. entity.Property(e => e.SeoDescription)
  3323. .HasColumnType("varchar(500)")
  3324. .HasCharSet("utf8")
  3325. .HasCollation("utf8_general_ci");
  3326. entity.Property(e => e.SeoKeyword)
  3327. .HasColumnType("varchar(200)")
  3328. .HasCharSet("utf8")
  3329. .HasCollation("utf8_general_ci");
  3330. entity.Property(e => e.SeoTitle)
  3331. .HasColumnType("varchar(100)")
  3332. .HasCharSet("utf8")
  3333. .HasCollation("utf8_general_ci");
  3334. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  3335. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3336. entity.Property(e => e.Status).HasColumnType("int(11)");
  3337. entity.Property(e => e.Summary)
  3338. .HasColumnType("varchar(500)")
  3339. .HasCharSet("utf8")
  3340. .HasCollation("utf8_general_ci");
  3341. entity.Property(e => e.Title)
  3342. .HasColumnType("varchar(50)")
  3343. .HasCharSet("utf8")
  3344. .HasCollation("utf8_general_ci");
  3345. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3346. entity.Property(e => e.UpdateMan)
  3347. .HasColumnType("varchar(50)")
  3348. .HasCharSet("utf8")
  3349. .HasCollation("utf8_general_ci");
  3350. entity.Property(e => e.Url)
  3351. .HasColumnType("varchar(500)")
  3352. .HasCharSet("utf8")
  3353. .HasCollation("utf8_general_ci");
  3354. entity.Property(e => e.Version).HasColumnType("int(11)");
  3355. });
  3356. modelBuilder.Entity<MsgPlacardRead>(entity =>
  3357. {
  3358. entity.Property(e => e.Id).HasColumnType("int(11)");
  3359. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3360. entity.Property(e => e.CreateMan)
  3361. .HasColumnType("varchar(50)")
  3362. .HasCharSet("utf8")
  3363. .HasCollation("utf8_general_ci");
  3364. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  3365. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3366. entity.Property(e => e.ReadFlag)
  3367. .HasColumnType("bit(1)")
  3368. .HasDefaultValueSql("b'0'");
  3369. entity.Property(e => e.Remark)
  3370. .HasColumnType("varchar(255)")
  3371. .HasCharSet("utf8")
  3372. .HasCollation("utf8_general_ci");
  3373. entity.Property(e => e.SeoDescription)
  3374. .HasColumnType("varchar(500)")
  3375. .HasCharSet("utf8")
  3376. .HasCollation("utf8_general_ci");
  3377. entity.Property(e => e.SeoKeyword)
  3378. .HasColumnType("varchar(200)")
  3379. .HasCharSet("utf8")
  3380. .HasCollation("utf8_general_ci");
  3381. entity.Property(e => e.SeoTitle)
  3382. .HasColumnType("varchar(100)")
  3383. .HasCharSet("utf8")
  3384. .HasCollation("utf8_general_ci");
  3385. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3386. entity.Property(e => e.Status).HasColumnType("int(11)");
  3387. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3388. entity.Property(e => e.UpdateMan)
  3389. .HasColumnType("varchar(50)")
  3390. .HasCharSet("utf8")
  3391. .HasCollation("utf8_general_ci");
  3392. entity.Property(e => e.UserId)
  3393. .HasColumnType("varchar(64)")
  3394. .HasCharSet("utf8")
  3395. .HasCollation("utf8_general_ci");
  3396. entity.Property(e => e.Version).HasColumnType("int(11)");
  3397. });
  3398. modelBuilder.Entity<MsgPush>(entity =>
  3399. {
  3400. entity.Property(e => e.Id).HasColumnType("int(11)");
  3401. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  3402. entity.Property(e => e.ClientType)
  3403. .HasColumnType("varchar(20)")
  3404. .HasCharSet("utf8")
  3405. .HasCollation("utf8_general_ci");
  3406. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3407. entity.Property(e => e.CreateMan)
  3408. .HasColumnType("varchar(50)")
  3409. .HasCharSet("utf8")
  3410. .HasCollation("utf8_general_ci");
  3411. entity.Property(e => e.Details)
  3412. .HasColumnType("varchar(200)")
  3413. .HasCharSet("utf8")
  3414. .HasCollation("utf8_general_ci");
  3415. entity.Property(e => e.Devices)
  3416. .HasColumnType("mediumtext")
  3417. .HasCharSet("utf8")
  3418. .HasCollation("utf8_general_ci");
  3419. entity.Property(e => e.IsSilent)
  3420. .HasColumnType("bit(1)")
  3421. .HasDefaultValueSql("b'0'");
  3422. entity.Property(e => e.MessageId)
  3423. .HasColumnType("varchar(50)")
  3424. .HasCharSet("utf8")
  3425. .HasCollation("utf8_general_ci");
  3426. entity.Property(e => e.Mobiles)
  3427. .HasColumnType("mediumtext")
  3428. .HasCharSet("utf8")
  3429. .HasCollation("utf8_general_ci");
  3430. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3431. entity.Property(e => e.SeoDescription)
  3432. .HasColumnType("varchar(500)")
  3433. .HasCharSet("utf8")
  3434. .HasCollation("utf8_general_ci");
  3435. entity.Property(e => e.SeoKeyword)
  3436. .HasColumnType("varchar(200)")
  3437. .HasCharSet("utf8")
  3438. .HasCollation("utf8_general_ci");
  3439. entity.Property(e => e.SeoTitle)
  3440. .HasColumnType("varchar(100)")
  3441. .HasCharSet("utf8")
  3442. .HasCollation("utf8_general_ci");
  3443. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3444. entity.Property(e => e.Status).HasColumnType("int(11)");
  3445. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3446. entity.Property(e => e.Title)
  3447. .HasColumnType("varchar(50)")
  3448. .HasCharSet("utf8")
  3449. .HasCollation("utf8_general_ci");
  3450. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3451. entity.Property(e => e.UpdateMan)
  3452. .HasColumnType("varchar(50)")
  3453. .HasCharSet("utf8")
  3454. .HasCollation("utf8_general_ci");
  3455. entity.Property(e => e.Url)
  3456. .HasColumnType("varchar(500)")
  3457. .HasCharSet("utf8")
  3458. .HasCollation("utf8_general_ci");
  3459. entity.Property(e => e.Version).HasColumnType("int(11)");
  3460. });
  3461. modelBuilder.Entity<MsgSms>(entity =>
  3462. {
  3463. entity.Property(e => e.Id).HasColumnType("int(11)");
  3464. entity.Property(e => e.Code).HasColumnType("int(11)");
  3465. entity.Property(e => e.ColId)
  3466. .HasColumnType("varchar(30)")
  3467. .HasCharSet("utf8")
  3468. .HasCollation("utf8_general_ci");
  3469. entity.Property(e => e.Content)
  3470. .HasColumnType("varchar(200)")
  3471. .HasCharSet("utf8")
  3472. .HasCollation("utf8_general_ci");
  3473. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3474. entity.Property(e => e.CreateMan)
  3475. .HasColumnType("varchar(50)")
  3476. .HasCharSet("utf8")
  3477. .HasCollation("utf8_general_ci");
  3478. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  3479. entity.Property(e => e.Ip)
  3480. .HasColumnType("varchar(15)")
  3481. .HasCharSet("utf8")
  3482. .HasCollation("utf8_general_ci");
  3483. entity.Property(e => e.Kind)
  3484. .HasColumnType("varchar(64)")
  3485. .HasCharSet("utf8")
  3486. .HasCollation("utf8_general_ci");
  3487. entity.Property(e => e.Mobile)
  3488. .HasColumnType("varchar(11)")
  3489. .HasCharSet("utf8")
  3490. .HasCollation("utf8_general_ci");
  3491. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3492. entity.Property(e => e.RespCode)
  3493. .HasColumnType("varchar(16)")
  3494. .HasCharSet("utf8")
  3495. .HasCollation("utf8_general_ci");
  3496. entity.Property(e => e.RespContent)
  3497. .HasColumnType("varchar(500)")
  3498. .HasCharSet("utf8")
  3499. .HasCollation("utf8_general_ci");
  3500. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  3501. entity.Property(e => e.SendTime).HasColumnType("datetime");
  3502. entity.Property(e => e.SendType).HasColumnType("int(11)");
  3503. entity.Property(e => e.SeoDescription)
  3504. .HasColumnType("varchar(500)")
  3505. .HasCharSet("utf8")
  3506. .HasCollation("utf8_general_ci");
  3507. entity.Property(e => e.SeoKeyword)
  3508. .HasColumnType("varchar(200)")
  3509. .HasCharSet("utf8")
  3510. .HasCollation("utf8_general_ci");
  3511. entity.Property(e => e.SeoTitle)
  3512. .HasColumnType("varchar(100)")
  3513. .HasCharSet("utf8")
  3514. .HasCollation("utf8_general_ci");
  3515. entity.Property(e => e.SignName)
  3516. .HasColumnType("varchar(10)")
  3517. .HasCharSet("utf8")
  3518. .HasCollation("utf8_general_ci");
  3519. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3520. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3521. entity.Property(e => e.Status).HasColumnType("int(11)");
  3522. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3523. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3524. entity.Property(e => e.UpdateMan)
  3525. .HasColumnType("varchar(50)")
  3526. .HasCharSet("utf8")
  3527. .HasCollation("utf8_general_ci");
  3528. entity.Property(e => e.VerifyCode)
  3529. .HasColumnType("varchar(6)")
  3530. .HasCharSet("utf8")
  3531. .HasCollation("utf8_general_ci");
  3532. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  3533. entity.Property(e => e.Version).HasColumnType("int(11)");
  3534. });
  3535. modelBuilder.Entity<MsgSmsSet>(entity =>
  3536. {
  3537. entity.Property(e => e.Id).HasColumnType("int(11)");
  3538. entity.Property(e => e.AuthPwd)
  3539. .HasColumnType("varchar(50)")
  3540. .HasCharSet("utf8")
  3541. .HasCollation("utf8_general_ci");
  3542. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3543. entity.Property(e => e.CreateMan)
  3544. .HasColumnType("varchar(50)")
  3545. .HasCharSet("utf8")
  3546. .HasCollation("utf8_general_ci");
  3547. entity.Property(e => e.Name)
  3548. .HasColumnType("varchar(50)")
  3549. .HasCharSet("utf8")
  3550. .HasCollation("utf8_general_ci");
  3551. entity.Property(e => e.Params)
  3552. .HasColumnType("varchar(200)")
  3553. .HasCharSet("utf8")
  3554. .HasCollation("utf8_general_ci");
  3555. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3556. entity.Property(e => e.ReqUrl)
  3557. .HasColumnType("varchar(200)")
  3558. .HasCharSet("utf8")
  3559. .HasCollation("utf8_general_ci");
  3560. entity.Property(e => e.SeoDescription)
  3561. .HasColumnType("varchar(500)")
  3562. .HasCharSet("utf8")
  3563. .HasCollation("utf8_general_ci");
  3564. entity.Property(e => e.SeoKeyword)
  3565. .HasColumnType("varchar(200)")
  3566. .HasCharSet("utf8")
  3567. .HasCollation("utf8_general_ci");
  3568. entity.Property(e => e.SeoTitle)
  3569. .HasColumnType("varchar(100)")
  3570. .HasCharSet("utf8")
  3571. .HasCollation("utf8_general_ci");
  3572. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3573. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3574. entity.Property(e => e.Status).HasColumnType("int(11)");
  3575. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3576. entity.Property(e => e.UpdateMan)
  3577. .HasColumnType("varchar(50)")
  3578. .HasCharSet("utf8")
  3579. .HasCollation("utf8_general_ci");
  3580. entity.Property(e => e.UserName)
  3581. .HasColumnType("varchar(50)")
  3582. .HasCharSet("utf8")
  3583. .HasCollation("utf8_general_ci");
  3584. entity.Property(e => e.Version).HasColumnType("int(11)");
  3585. });
  3586. modelBuilder.Entity<MsgTemplate>(entity =>
  3587. {
  3588. entity.Property(e => e.Id).HasColumnType("int(11)");
  3589. entity.Property(e => e.ColId)
  3590. .HasColumnType("varchar(30)")
  3591. .HasCharSet("utf8")
  3592. .HasCollation("utf8_general_ci");
  3593. entity.Property(e => e.Content)
  3594. .HasColumnType("varchar(200)")
  3595. .HasCharSet("utf8")
  3596. .HasCollation("utf8_general_ci");
  3597. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3598. entity.Property(e => e.CreateMan)
  3599. .HasColumnType("varchar(50)")
  3600. .HasCharSet("utf8")
  3601. .HasCollation("utf8_general_ci");
  3602. entity.Property(e => e.Extend)
  3603. .HasColumnType("varchar(2000)")
  3604. .HasCharSet("utf8")
  3605. .HasCollation("utf8_general_ci");
  3606. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3607. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3608. entity.Property(e => e.Remark)
  3609. .HasColumnType("varchar(64)")
  3610. .HasCharSet("utf8")
  3611. .HasCollation("utf8_general_ci");
  3612. entity.Property(e => e.SeoDescription)
  3613. .HasColumnType("varchar(500)")
  3614. .HasCharSet("utf8")
  3615. .HasCollation("utf8_general_ci");
  3616. entity.Property(e => e.SeoKeyword)
  3617. .HasColumnType("varchar(200)")
  3618. .HasCharSet("utf8")
  3619. .HasCollation("utf8_general_ci");
  3620. entity.Property(e => e.SeoTitle)
  3621. .HasColumnType("varchar(100)")
  3622. .HasCharSet("utf8")
  3623. .HasCollation("utf8_general_ci");
  3624. entity.Property(e => e.SignName)
  3625. .HasColumnType("varchar(10)")
  3626. .HasCharSet("utf8")
  3627. .HasCollation("utf8_general_ci");
  3628. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3629. entity.Property(e => e.Status).HasColumnType("int(11)");
  3630. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  3631. entity.Property(e => e.Title)
  3632. .HasColumnType("varchar(50)")
  3633. .HasCharSet("utf8")
  3634. .HasCollation("utf8_general_ci");
  3635. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3636. entity.Property(e => e.UpdateMan)
  3637. .HasColumnType("varchar(50)")
  3638. .HasCharSet("utf8")
  3639. .HasCollation("utf8_general_ci");
  3640. entity.Property(e => e.Version).HasColumnType("int(11)");
  3641. });
  3642. modelBuilder.Entity<OpenReward>(entity =>
  3643. {
  3644. entity.Property(e => e.Id).HasColumnType("int(11)");
  3645. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3646. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3647. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3648. entity.Property(e => e.CreateMan)
  3649. .HasColumnType("varchar(50)")
  3650. .HasCharSet("utf8")
  3651. .HasCollation("utf8_general_ci");
  3652. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3653. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3654. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3655. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3656. entity.Property(e => e.OpenRewardNo)
  3657. .HasColumnType("varchar(32)")
  3658. .HasCharSet("utf8")
  3659. .HasCollation("utf8_general_ci");
  3660. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3661. entity.Property(e => e.Remark)
  3662. .HasColumnType("varchar(128)")
  3663. .HasCharSet("utf8")
  3664. .HasCollation("utf8_general_ci");
  3665. entity.Property(e => e.RewardDesc)
  3666. .HasColumnType("varchar(128)")
  3667. .HasCharSet("utf8")
  3668. .HasCollation("utf8_general_ci");
  3669. entity.Property(e => e.RewardMerCount).HasColumnType("int(11)");
  3670. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3671. entity.Property(e => e.SeoDescription)
  3672. .HasColumnType("varchar(500)")
  3673. .HasCharSet("utf8")
  3674. .HasCollation("utf8_general_ci");
  3675. entity.Property(e => e.SeoKeyword)
  3676. .HasColumnType("varchar(200)")
  3677. .HasCharSet("utf8")
  3678. .HasCollation("utf8_general_ci");
  3679. entity.Property(e => e.SeoTitle)
  3680. .HasColumnType("varchar(100)")
  3681. .HasCharSet("utf8")
  3682. .HasCollation("utf8_general_ci");
  3683. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3684. entity.Property(e => e.Status).HasColumnType("int(11)");
  3685. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3686. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3687. entity.Property(e => e.TradeMonth)
  3688. .HasColumnType("varchar(6)")
  3689. .HasCharSet("utf8")
  3690. .HasCollation("utf8_general_ci");
  3691. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3692. entity.Property(e => e.UpdateMan)
  3693. .HasColumnType("varchar(50)")
  3694. .HasCharSet("utf8")
  3695. .HasCollation("utf8_general_ci");
  3696. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3697. entity.Property(e => e.Version).HasColumnType("int(11)");
  3698. });
  3699. modelBuilder.Entity<OpenRewardDetail>(entity =>
  3700. {
  3701. entity.Property(e => e.Id).HasColumnType("int(11)");
  3702. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3703. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3704. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3705. entity.Property(e => e.CreateMan)
  3706. .HasColumnType("varchar(50)")
  3707. .HasCharSet("utf8")
  3708. .HasCollation("utf8_general_ci");
  3709. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3710. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3711. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3712. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3713. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3714. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  3715. entity.Property(e => e.MerNo)
  3716. .HasColumnType("varchar(32)")
  3717. .HasCharSet("utf8")
  3718. .HasCollation("utf8_general_ci");
  3719. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3720. entity.Property(e => e.OpenDetailRec)
  3721. .HasColumnType("varchar(32)")
  3722. .HasCharSet("utf8")
  3723. .HasCollation("utf8_general_ci");
  3724. entity.Property(e => e.OpenRewardNo)
  3725. .HasColumnType("varchar(32)")
  3726. .HasCharSet("utf8")
  3727. .HasCollation("utf8_general_ci");
  3728. entity.Property(e => e.ProductName)
  3729. .HasColumnType("varchar(32)")
  3730. .HasCharSet("utf8")
  3731. .HasCollation("utf8_general_ci");
  3732. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3733. entity.Property(e => e.Remark)
  3734. .HasColumnType("varchar(128)")
  3735. .HasCharSet("utf8")
  3736. .HasCollation("utf8_general_ci");
  3737. entity.Property(e => e.RewardDesc)
  3738. .HasColumnType("varchar(128)")
  3739. .HasCharSet("utf8")
  3740. .HasCollation("utf8_general_ci");
  3741. entity.Property(e => e.RewardTips)
  3742. .HasColumnType("varchar(16)")
  3743. .HasCharSet("utf8")
  3744. .HasCollation("utf8_general_ci");
  3745. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3746. entity.Property(e => e.SeoDescription)
  3747. .HasColumnType("varchar(500)")
  3748. .HasCharSet("utf8")
  3749. .HasCollation("utf8_general_ci");
  3750. entity.Property(e => e.SeoKeyword)
  3751. .HasColumnType("varchar(200)")
  3752. .HasCharSet("utf8")
  3753. .HasCollation("utf8_general_ci");
  3754. entity.Property(e => e.SeoTitle)
  3755. .HasColumnType("varchar(100)")
  3756. .HasCharSet("utf8")
  3757. .HasCollation("utf8_general_ci");
  3758. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3759. entity.Property(e => e.SnNo)
  3760. .HasColumnType("varchar(32)")
  3761. .HasCharSet("utf8")
  3762. .HasCollation("utf8_general_ci");
  3763. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3764. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3765. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3766. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3767. entity.Property(e => e.Status).HasColumnType("int(11)");
  3768. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3769. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3770. entity.Property(e => e.TradeMonth)
  3771. .HasColumnType("varchar(6)")
  3772. .HasCharSet("utf8")
  3773. .HasCollation("utf8_general_ci");
  3774. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3775. entity.Property(e => e.UpdateMan)
  3776. .HasColumnType("varchar(50)")
  3777. .HasCharSet("utf8")
  3778. .HasCollation("utf8_general_ci");
  3779. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3780. entity.Property(e => e.Version).HasColumnType("int(11)");
  3781. });
  3782. modelBuilder.Entity<OpenSnSnapshot>(entity =>
  3783. {
  3784. entity.Property(e => e.Id).HasColumnType("int(11)");
  3785. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3786. entity.Property(e => e.BuySnNum).HasColumnType("int(11)");
  3787. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3788. entity.Property(e => e.CreateMan)
  3789. .HasColumnType("varchar(50)")
  3790. .HasCharSet("utf8")
  3791. .HasCollation("utf8_general_ci");
  3792. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3793. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3794. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3795. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3796. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3797. entity.Property(e => e.FailReason)
  3798. .HasColumnType("varchar(128)")
  3799. .HasCharSet("utf8")
  3800. .HasCollation("utf8_general_ci");
  3801. entity.Property(e => e.MerNo)
  3802. .HasColumnType("varchar(32)")
  3803. .HasCharSet("utf8")
  3804. .HasCollation("utf8_general_ci");
  3805. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  3806. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3807. entity.Property(e => e.OpenDetailRec)
  3808. .HasColumnType("varchar(32)")
  3809. .HasCharSet("utf8")
  3810. .HasCollation("utf8_general_ci");
  3811. entity.Property(e => e.OpenRewardNo)
  3812. .HasColumnType("varchar(32)")
  3813. .HasCharSet("utf8")
  3814. .HasCollation("utf8_general_ci");
  3815. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3816. entity.Property(e => e.Remark)
  3817. .HasColumnType("varchar(128)")
  3818. .HasCharSet("utf8")
  3819. .HasCollation("utf8_general_ci");
  3820. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  3821. entity.Property(e => e.RewardDesc)
  3822. .HasColumnType("varchar(128)")
  3823. .HasCharSet("utf8")
  3824. .HasCollation("utf8_general_ci");
  3825. entity.Property(e => e.RewardTips)
  3826. .HasColumnType("varchar(16)")
  3827. .HasCharSet("utf8")
  3828. .HasCollation("utf8_general_ci");
  3829. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3830. entity.Property(e => e.SeoDescription)
  3831. .HasColumnType("varchar(500)")
  3832. .HasCharSet("utf8")
  3833. .HasCollation("utf8_general_ci");
  3834. entity.Property(e => e.SeoKeyword)
  3835. .HasColumnType("varchar(200)")
  3836. .HasCharSet("utf8")
  3837. .HasCollation("utf8_general_ci");
  3838. entity.Property(e => e.SeoTitle)
  3839. .HasColumnType("varchar(100)")
  3840. .HasCharSet("utf8")
  3841. .HasCollation("utf8_general_ci");
  3842. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3843. entity.Property(e => e.SnNo)
  3844. .HasColumnType("varchar(32)")
  3845. .HasCharSet("utf8")
  3846. .HasCollation("utf8_general_ci");
  3847. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3848. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3849. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3850. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3851. entity.Property(e => e.Status).HasColumnType("int(11)");
  3852. entity.Property(e => e.StdBuySnNum).HasColumnType("int(11)");
  3853. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3854. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3855. entity.Property(e => e.TradeMonth)
  3856. .HasColumnType("varchar(6)")
  3857. .HasCharSet("utf8")
  3858. .HasCollation("utf8_general_ci");
  3859. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3860. entity.Property(e => e.UpdateMan)
  3861. .HasColumnType("varchar(50)")
  3862. .HasCharSet("utf8")
  3863. .HasCollation("utf8_general_ci");
  3864. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3865. entity.Property(e => e.UserNav)
  3866. .HasColumnType("varchar(300)")
  3867. .HasCharSet("utf8")
  3868. .HasCollation("utf8_general_ci");
  3869. entity.Property(e => e.Version).HasColumnType("int(11)");
  3870. });
  3871. modelBuilder.Entity<OperateLog>(entity =>
  3872. {
  3873. entity.Property(e => e.Id).HasColumnType("int(11)");
  3874. entity.Property(e => e.AfterOperate)
  3875. .HasColumnType("mediumtext")
  3876. .HasCharSet("utf8")
  3877. .HasCollation("utf8_general_ci");
  3878. entity.Property(e => e.BeforeOperate)
  3879. .HasColumnType("mediumtext")
  3880. .HasCharSet("utf8")
  3881. .HasCollation("utf8_general_ci");
  3882. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3883. entity.Property(e => e.CreateMan)
  3884. .HasColumnType("varchar(50)")
  3885. .HasCharSet("utf8")
  3886. .HasCollation("utf8_general_ci");
  3887. entity.Property(e => e.OpMode)
  3888. .HasColumnType("varchar(30)")
  3889. .HasCharSet("utf8")
  3890. .HasCollation("utf8_general_ci");
  3891. entity.Property(e => e.OperateMan)
  3892. .HasColumnType("varchar(50)")
  3893. .HasCharSet("utf8")
  3894. .HasCollation("utf8_general_ci");
  3895. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3896. entity.Property(e => e.SeoDescription)
  3897. .HasColumnType("varchar(500)")
  3898. .HasCharSet("utf8")
  3899. .HasCollation("utf8_general_ci");
  3900. entity.Property(e => e.SeoKeyword)
  3901. .HasColumnType("varchar(200)")
  3902. .HasCharSet("utf8")
  3903. .HasCollation("utf8_general_ci");
  3904. entity.Property(e => e.SeoTitle)
  3905. .HasColumnType("varchar(100)")
  3906. .HasCharSet("utf8")
  3907. .HasCollation("utf8_general_ci");
  3908. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3909. entity.Property(e => e.Status).HasColumnType("int(11)");
  3910. entity.Property(e => e.TableEnName)
  3911. .HasColumnType("varchar(50)")
  3912. .HasCharSet("utf8")
  3913. .HasCollation("utf8_general_ci");
  3914. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3915. entity.Property(e => e.UpdateMan)
  3916. .HasColumnType("varchar(50)")
  3917. .HasCharSet("utf8")
  3918. .HasCollation("utf8_general_ci");
  3919. entity.Property(e => e.Version).HasColumnType("int(11)");
  3920. });
  3921. modelBuilder.Entity<OperateRightList>(entity =>
  3922. {
  3923. entity.Property(e => e.Id).HasColumnType("int(11)");
  3924. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3925. entity.Property(e => e.CreateMan)
  3926. .HasColumnType("varchar(50)")
  3927. .HasCharSet("utf8")
  3928. .HasCollation("utf8_general_ci");
  3929. entity.Property(e => e.EnName)
  3930. .HasColumnType("varchar(50)")
  3931. .HasCharSet("utf8")
  3932. .HasCollation("utf8_general_ci");
  3933. entity.Property(e => e.Name)
  3934. .HasColumnType("varchar(50)")
  3935. .HasCharSet("utf8")
  3936. .HasCollation("utf8_general_ci");
  3937. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3938. entity.Property(e => e.SeoDescription)
  3939. .HasColumnType("varchar(500)")
  3940. .HasCharSet("utf8")
  3941. .HasCollation("utf8_general_ci");
  3942. entity.Property(e => e.SeoKeyword)
  3943. .HasColumnType("varchar(200)")
  3944. .HasCharSet("utf8")
  3945. .HasCollation("utf8_general_ci");
  3946. entity.Property(e => e.SeoTitle)
  3947. .HasColumnType("varchar(100)")
  3948. .HasCharSet("utf8")
  3949. .HasCollation("utf8_general_ci");
  3950. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3951. entity.Property(e => e.Status).HasColumnType("int(11)");
  3952. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3953. entity.Property(e => e.UpdateMan)
  3954. .HasColumnType("varchar(50)")
  3955. .HasCharSet("utf8")
  3956. .HasCollation("utf8_general_ci");
  3957. entity.Property(e => e.Version).HasColumnType("int(11)");
  3958. });
  3959. modelBuilder.Entity<OrderForNo>(entity =>
  3960. {
  3961. entity.HasKey(e => e.OrderNo)
  3962. .HasName("PRIMARY");
  3963. entity.Property(e => e.OrderNo)
  3964. .HasColumnType("varchar(50)")
  3965. .HasCharSet("utf8")
  3966. .HasCollation("utf8_general_ci");
  3967. entity.Property(e => e.OrderIds)
  3968. .HasColumnType("varchar(50)")
  3969. .HasCharSet("utf8")
  3970. .HasCollation("utf8_general_ci");
  3971. entity.Property(e => e.RspCode).HasColumnType("int(11)");
  3972. entity.Property(e => e.RspMsg)
  3973. .HasColumnType("varchar(500)")
  3974. .HasCharSet("utf8")
  3975. .HasCollation("utf8_general_ci");
  3976. });
  3977. modelBuilder.Entity<OrderProduct>(entity =>
  3978. {
  3979. entity.Property(e => e.Id).HasColumnType("int(11)");
  3980. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3981. entity.Property(e => e.CreateMan)
  3982. .HasColumnType("varchar(50)")
  3983. .HasCharSet("utf8")
  3984. .HasCollation("utf8_general_ci");
  3985. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3986. entity.Property(e => e.NormDetail)
  3987. .HasColumnType("varchar(200)")
  3988. .HasCharSet("utf8")
  3989. .HasCollation("utf8_general_ci");
  3990. entity.Property(e => e.NormId)
  3991. .HasColumnType("varchar(50)")
  3992. .HasCharSet("utf8")
  3993. .HasCollation("utf8_general_ci");
  3994. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  3995. entity.Property(e => e.ProductCode)
  3996. .HasColumnType("varchar(30)")
  3997. .HasCharSet("utf8")
  3998. .HasCollation("utf8_general_ci");
  3999. entity.Property(e => e.ProductCount).HasColumnType("int(11)");
  4000. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4001. entity.Property(e => e.ProductIntegral).HasColumnType("decimal(18,2)");
  4002. entity.Property(e => e.ProductName)
  4003. .HasColumnType("varchar(100)")
  4004. .HasCharSet("utf8")
  4005. .HasCollation("utf8_general_ci");
  4006. entity.Property(e => e.ProductPhoto)
  4007. .HasColumnType("varchar(200)")
  4008. .HasCharSet("utf8")
  4009. .HasCollation("utf8_general_ci");
  4010. entity.Property(e => e.ProductPrice).HasColumnType("decimal(18,2)");
  4011. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4012. entity.Property(e => e.SeoDescription)
  4013. .HasColumnType("varchar(500)")
  4014. .HasCharSet("utf8")
  4015. .HasCollation("utf8_general_ci");
  4016. entity.Property(e => e.SeoKeyword)
  4017. .HasColumnType("varchar(200)")
  4018. .HasCharSet("utf8")
  4019. .HasCollation("utf8_general_ci");
  4020. entity.Property(e => e.SeoTitle)
  4021. .HasColumnType("varchar(100)")
  4022. .HasCharSet("utf8")
  4023. .HasCollation("utf8_general_ci");
  4024. entity.Property(e => e.SnNos)
  4025. .HasColumnType("mediumtext")
  4026. .HasCharSet("utf8")
  4027. .HasCollation("utf8_general_ci");
  4028. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4029. entity.Property(e => e.Status).HasColumnType("int(11)");
  4030. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4031. entity.Property(e => e.TotalIntegral).HasColumnType("decimal(18,2)");
  4032. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4033. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4034. entity.Property(e => e.UpdateMan)
  4035. .HasColumnType("varchar(50)")
  4036. .HasCharSet("utf8")
  4037. .HasCollation("utf8_general_ci");
  4038. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4039. entity.Property(e => e.Version).HasColumnType("int(11)");
  4040. });
  4041. modelBuilder.Entity<OrderRefund>(entity =>
  4042. {
  4043. entity.Property(e => e.Id).HasColumnType("int(11)");
  4044. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  4045. entity.Property(e => e.Contents)
  4046. .HasColumnType("longtext")
  4047. .HasCharSet("utf8")
  4048. .HasCollation("utf8_general_ci");
  4049. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4050. entity.Property(e => e.CreateMan)
  4051. .HasColumnType("varchar(50)")
  4052. .HasCharSet("utf8")
  4053. .HasCollation("utf8_general_ci");
  4054. entity.Property(e => e.ErpCode)
  4055. .HasColumnType("varchar(50)")
  4056. .HasCharSet("utf8")
  4057. .HasCollation("utf8_general_ci");
  4058. entity.Property(e => e.ErpCompany).HasColumnType("int(11)");
  4059. entity.Property(e => e.GoodStatus).HasColumnType("int(11)");
  4060. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4061. entity.Property(e => e.Mobile)
  4062. .HasColumnType("varchar(11)")
  4063. .HasCharSet("utf8")
  4064. .HasCollation("utf8_general_ci");
  4065. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4066. entity.Property(e => e.Photos)
  4067. .HasColumnType("varchar(500)")
  4068. .HasCharSet("utf8")
  4069. .HasCollation("utf8_general_ci");
  4070. entity.Property(e => e.ProductId)
  4071. .HasColumnType("varchar(50)")
  4072. .HasCharSet("utf8")
  4073. .HasCollation("utf8_general_ci");
  4074. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4075. entity.Property(e => e.Reason).HasColumnType("int(11)");
  4076. entity.Property(e => e.SeoDescription)
  4077. .HasColumnType("varchar(500)")
  4078. .HasCharSet("utf8")
  4079. .HasCollation("utf8_general_ci");
  4080. entity.Property(e => e.SeoKeyword)
  4081. .HasColumnType("varchar(200)")
  4082. .HasCharSet("utf8")
  4083. .HasCollation("utf8_general_ci");
  4084. entity.Property(e => e.SeoTitle)
  4085. .HasColumnType("varchar(100)")
  4086. .HasCharSet("utf8")
  4087. .HasCollation("utf8_general_ci");
  4088. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4089. entity.Property(e => e.Status).HasColumnType("int(11)");
  4090. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4091. entity.Property(e => e.UpdateMan)
  4092. .HasColumnType("varchar(50)")
  4093. .HasCharSet("utf8")
  4094. .HasCollation("utf8_general_ci");
  4095. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4096. entity.Property(e => e.Version).HasColumnType("int(11)");
  4097. });
  4098. modelBuilder.Entity<OrderRefundReason>(entity =>
  4099. {
  4100. entity.Property(e => e.Id).HasColumnType("int(11)");
  4101. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4102. entity.Property(e => e.CreateMan)
  4103. .HasColumnType("varchar(50)")
  4104. .HasCharSet("utf8")
  4105. .HasCollation("utf8_general_ci");
  4106. entity.Property(e => e.Name)
  4107. .HasColumnType("varchar(50)")
  4108. .HasCharSet("utf8")
  4109. .HasCollation("utf8_general_ci");
  4110. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4111. entity.Property(e => e.SeoDescription)
  4112. .HasColumnType("varchar(500)")
  4113. .HasCharSet("utf8")
  4114. .HasCollation("utf8_general_ci");
  4115. entity.Property(e => e.SeoKeyword)
  4116. .HasColumnType("varchar(200)")
  4117. .HasCharSet("utf8")
  4118. .HasCollation("utf8_general_ci");
  4119. entity.Property(e => e.SeoTitle)
  4120. .HasColumnType("varchar(100)")
  4121. .HasCharSet("utf8")
  4122. .HasCollation("utf8_general_ci");
  4123. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4124. entity.Property(e => e.Status).HasColumnType("int(11)");
  4125. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4126. entity.Property(e => e.UpdateMan)
  4127. .HasColumnType("varchar(50)")
  4128. .HasCharSet("utf8")
  4129. .HasCollation("utf8_general_ci");
  4130. entity.Property(e => e.Version).HasColumnType("int(11)");
  4131. });
  4132. modelBuilder.Entity<Orders>(entity =>
  4133. {
  4134. entity.Property(e => e.Id).HasColumnType("int(11)");
  4135. entity.Property(e => e.ActualPay).HasColumnType("decimal(18,2)");
  4136. entity.Property(e => e.Address)
  4137. .HasColumnType("varchar(50)")
  4138. .HasCharSet("utf8")
  4139. .HasCollation("utf8_general_ci");
  4140. entity.Property(e => e.Areas)
  4141. .HasColumnType("varchar(30)")
  4142. .HasCharSet("utf8")
  4143. .HasCollation("utf8_general_ci");
  4144. entity.Property(e => e.AutoConfirmDate).HasColumnType("datetime");
  4145. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4146. entity.Property(e => e.ChannelAmount).HasColumnType("decimal(18,2)");
  4147. entity.Property(e => e.ConfirmDate).HasColumnType("datetime");
  4148. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  4149. entity.Property(e => e.CouponMoney).HasColumnType("decimal(18,2)");
  4150. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4151. entity.Property(e => e.CreateMan)
  4152. .HasColumnType("varchar(50)")
  4153. .HasCharSet("utf8")
  4154. .HasCollation("utf8_general_ci");
  4155. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  4156. entity.Property(e => e.ErpCode)
  4157. .HasColumnType("varchar(50)")
  4158. .HasCharSet("utf8")
  4159. .HasCollation("utf8_general_ci");
  4160. entity.Property(e => e.ErpMode).HasColumnType("int(11)");
  4161. entity.Property(e => e.ErpName)
  4162. .HasColumnType("varchar(50)")
  4163. .HasCharSet("utf8")
  4164. .HasCollation("utf8_general_ci");
  4165. entity.Property(e => e.ErpPrice).HasColumnType("decimal(18,2)");
  4166. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4167. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4168. entity.Property(e => e.Mobile)
  4169. .HasColumnType("varchar(11)")
  4170. .HasCharSet("utf8")
  4171. .HasCollation("utf8_general_ci");
  4172. entity.Property(e => e.OrderNo)
  4173. .HasColumnType("varchar(30)")
  4174. .HasCharSet("utf8")
  4175. .HasCollation("utf8_general_ci");
  4176. entity.Property(e => e.PayDate).HasColumnType("datetime");
  4177. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  4178. entity.Property(e => e.PayStatus).HasColumnType("int(11)");
  4179. entity.Property(e => e.PostalCode)
  4180. .HasColumnType("varchar(6)")
  4181. .HasCharSet("utf8")
  4182. .HasCollation("utf8_general_ci");
  4183. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4184. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4185. entity.Property(e => e.RealName)
  4186. .HasColumnType("varchar(10)")
  4187. .HasCharSet("utf8")
  4188. .HasCollation("utf8_general_ci");
  4189. entity.Property(e => e.RefundActAmount).HasColumnType("decimal(18,2)");
  4190. entity.Property(e => e.RefundFeeAmount).HasColumnType("decimal(18,2)");
  4191. entity.Property(e => e.RefundReason)
  4192. .HasColumnType("varchar(64)")
  4193. .HasCharSet("utf8")
  4194. .HasCollation("utf8_general_ci");
  4195. entity.Property(e => e.RefundStatus).HasColumnType("int(11)");
  4196. entity.Property(e => e.Remark)
  4197. .HasColumnType("varchar(64)")
  4198. .HasCharSet("utf8")
  4199. .HasCollation("utf8_general_ci");
  4200. entity.Property(e => e.ReqData)
  4201. .HasColumnType("varchar(2048)")
  4202. .HasCharSet("utf8")
  4203. .HasCollation("utf8_general_ci");
  4204. entity.Property(e => e.ResData)
  4205. .HasColumnType("varchar(2048)")
  4206. .HasCharSet("utf8")
  4207. .HasCollation("utf8_general_ci");
  4208. entity.Property(e => e.ReturnCode)
  4209. .HasColumnType("varchar(32)")
  4210. .HasCharSet("utf8")
  4211. .HasCollation("utf8_general_ci");
  4212. entity.Property(e => e.ReturnMsg)
  4213. .HasColumnType("varchar(128)")
  4214. .HasCharSet("utf8")
  4215. .HasCollation("utf8_general_ci");
  4216. entity.Property(e => e.SendDate).HasColumnType("datetime");
  4217. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  4218. entity.Property(e => e.SeoDescription)
  4219. .HasColumnType("varchar(500)")
  4220. .HasCharSet("utf8")
  4221. .HasCollation("utf8_general_ci");
  4222. entity.Property(e => e.SeoKeyword)
  4223. .HasColumnType("varchar(200)")
  4224. .HasCharSet("utf8")
  4225. .HasCollation("utf8_general_ci");
  4226. entity.Property(e => e.SeoTitle)
  4227. .HasColumnType("varchar(100)")
  4228. .HasCharSet("utf8")
  4229. .HasCollation("utf8_general_ci");
  4230. entity.Property(e => e.SnNos)
  4231. .HasColumnType("mediumtext")
  4232. .HasCharSet("utf8")
  4233. .HasCollation("utf8_general_ci");
  4234. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4235. entity.Property(e => e.Status).HasColumnType("int(11)");
  4236. entity.Property(e => e.StoreContact)
  4237. .HasColumnType("varchar(30)")
  4238. .HasCharSet("utf8")
  4239. .HasCollation("utf8_general_ci");
  4240. entity.Property(e => e.StoreContactMobile)
  4241. .HasColumnType("varchar(11)")
  4242. .HasCharSet("utf8")
  4243. .HasCollation("utf8_general_ci");
  4244. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4245. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  4246. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  4247. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4248. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4249. entity.Property(e => e.TradeNo)
  4250. .HasColumnType("varchar(50)")
  4251. .HasCharSet("utf8")
  4252. .HasCollation("utf8_general_ci");
  4253. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4254. entity.Property(e => e.UpdateMan)
  4255. .HasColumnType("varchar(50)")
  4256. .HasCharSet("utf8")
  4257. .HasCollation("utf8_general_ci");
  4258. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4259. entity.Property(e => e.UserMessage)
  4260. .HasColumnType("varchar(50)")
  4261. .HasCharSet("utf8")
  4262. .HasCollation("utf8_general_ci");
  4263. entity.Property(e => e.Version).HasColumnType("int(11)");
  4264. });
  4265. modelBuilder.Entity<PageInfo>(entity =>
  4266. {
  4267. entity.Property(e => e.Id).HasColumnType("int(11)");
  4268. entity.Property(e => e.ColId)
  4269. .HasColumnType("varchar(30)")
  4270. .HasCharSet("utf8")
  4271. .HasCollation("utf8_general_ci");
  4272. entity.Property(e => e.Contents)
  4273. .HasColumnType("longtext")
  4274. .HasCharSet("utf8")
  4275. .HasCollation("utf8_general_ci");
  4276. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4277. entity.Property(e => e.CreateMan)
  4278. .HasColumnType("varchar(50)")
  4279. .HasCharSet("utf8")
  4280. .HasCollation("utf8_general_ci");
  4281. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4282. entity.Property(e => e.SeoDescription)
  4283. .HasColumnType("varchar(500)")
  4284. .HasCharSet("utf8")
  4285. .HasCollation("utf8_general_ci");
  4286. entity.Property(e => e.SeoKeyword)
  4287. .HasColumnType("varchar(200)")
  4288. .HasCharSet("utf8")
  4289. .HasCollation("utf8_general_ci");
  4290. entity.Property(e => e.SeoTitle)
  4291. .HasColumnType("varchar(100)")
  4292. .HasCharSet("utf8")
  4293. .HasCollation("utf8_general_ci");
  4294. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4295. entity.Property(e => e.Status).HasColumnType("int(11)");
  4296. entity.Property(e => e.Title)
  4297. .HasColumnType("varchar(200)")
  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.Version).HasColumnType("int(11)");
  4306. });
  4307. modelBuilder.Entity<PageUpdateInfo>(entity =>
  4308. {
  4309. entity.Property(e => e.Id).HasColumnType("int(11)");
  4310. entity.Property(e => e.BgColor)
  4311. .HasColumnType("varchar(6)")
  4312. .HasCharSet("utf8")
  4313. .HasCollation("utf8_general_ci");
  4314. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4315. entity.Property(e => e.CreateMan)
  4316. .HasColumnType("varchar(50)")
  4317. .HasCharSet("utf8")
  4318. .HasCollation("utf8_general_ci");
  4319. entity.Property(e => e.GotoPages)
  4320. .HasColumnType("varchar(500)")
  4321. .HasCharSet("utf8")
  4322. .HasCollation("utf8_general_ci");
  4323. entity.Property(e => e.IsScrollBar)
  4324. .HasColumnType("bit(1)")
  4325. .HasDefaultValueSql("b'0'");
  4326. entity.Property(e => e.IsSkid)
  4327. .HasColumnType("bit(1)")
  4328. .HasDefaultValueSql("b'0'");
  4329. entity.Property(e => e.LeftAction1)
  4330. .HasColumnType("longtext")
  4331. .HasCharSet("utf8")
  4332. .HasCollation("utf8_general_ci");
  4333. entity.Property(e => e.LeftAction2)
  4334. .HasColumnType("longtext")
  4335. .HasCharSet("utf8")
  4336. .HasCollation("utf8_general_ci");
  4337. entity.Property(e => e.LeftBtn1)
  4338. .HasColumnType("varchar(100)")
  4339. .HasCharSet("utf8")
  4340. .HasCollation("utf8_general_ci");
  4341. entity.Property(e => e.LeftBtn2)
  4342. .HasColumnType("varchar(50)")
  4343. .HasCharSet("utf8")
  4344. .HasCollation("utf8_general_ci");
  4345. entity.Property(e => e.ModulePath)
  4346. .HasColumnType("varchar(200)")
  4347. .HasCharSet("utf8")
  4348. .HasCollation("utf8_general_ci");
  4349. entity.Property(e => e.ModuleVersion).HasColumnType("int(11)");
  4350. entity.Property(e => e.MustUpdate)
  4351. .HasColumnType("bit(1)")
  4352. .HasDefaultValueSql("b'0'");
  4353. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4354. entity.Property(e => e.RightAction1)
  4355. .HasColumnType("longtext")
  4356. .HasCharSet("utf8")
  4357. .HasCollation("utf8_general_ci");
  4358. entity.Property(e => e.RightAction2)
  4359. .HasColumnType("longtext")
  4360. .HasCharSet("utf8")
  4361. .HasCollation("utf8_general_ci");
  4362. entity.Property(e => e.RightBtn1)
  4363. .HasColumnType("varchar(50)")
  4364. .HasCharSet("utf8")
  4365. .HasCollation("utf8_general_ci");
  4366. entity.Property(e => e.RightBtn2)
  4367. .HasColumnType("varchar(50)")
  4368. .HasCharSet("utf8")
  4369. .HasCollation("utf8_general_ci");
  4370. entity.Property(e => e.SeoDescription)
  4371. .HasColumnType("varchar(500)")
  4372. .HasCharSet("utf8")
  4373. .HasCollation("utf8_general_ci");
  4374. entity.Property(e => e.SeoKeyword)
  4375. .HasColumnType("varchar(200)")
  4376. .HasCharSet("utf8")
  4377. .HasCollation("utf8_general_ci");
  4378. entity.Property(e => e.SeoTitle)
  4379. .HasColumnType("varchar(100)")
  4380. .HasCharSet("utf8")
  4381. .HasCollation("utf8_general_ci");
  4382. entity.Property(e => e.ShowTitle)
  4383. .HasColumnType("bit(1)")
  4384. .HasDefaultValueSql("b'0'");
  4385. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4386. entity.Property(e => e.Status).HasColumnType("int(11)");
  4387. entity.Property(e => e.StatusBarStyle)
  4388. .HasColumnType("varchar(10)")
  4389. .HasCharSet("utf8")
  4390. .HasCollation("utf8_general_ci");
  4391. entity.Property(e => e.TextColor)
  4392. .HasColumnType("varchar(6)")
  4393. .HasCharSet("utf8")
  4394. .HasCollation("utf8_general_ci");
  4395. entity.Property(e => e.Title)
  4396. .HasColumnType("varchar(50)")
  4397. .HasCharSet("utf8")
  4398. .HasCollation("utf8_general_ci");
  4399. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4400. entity.Property(e => e.UpdateMan)
  4401. .HasColumnType("varchar(50)")
  4402. .HasCharSet("utf8")
  4403. .HasCollation("utf8_general_ci");
  4404. entity.Property(e => e.Version).HasColumnType("int(11)");
  4405. });
  4406. modelBuilder.Entity<PosMachines>(entity =>
  4407. {
  4408. entity.Property(e => e.Id).HasColumnType("int(11)");
  4409. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4410. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4411. entity.Property(e => e.ActivityList)
  4412. .HasColumnType("varchar(200)")
  4413. .HasCharSet("utf8")
  4414. .HasCollation("utf8_general_ci");
  4415. entity.Property(e => e.BatchNo)
  4416. .HasColumnType("varchar(32)")
  4417. .HasCharSet("utf8")
  4418. .HasCollation("utf8_general_ci");
  4419. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4420. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4421. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4422. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4423. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4424. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4425. entity.Property(e => e.CreateMan)
  4426. .HasColumnType("varchar(50)")
  4427. .HasCharSet("utf8")
  4428. .HasCollation("utf8_general_ci");
  4429. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4430. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4431. entity.Property(e => e.Detail)
  4432. .HasColumnType("longtext")
  4433. .HasCharSet("utf8")
  4434. .HasCollation("utf8_general_ci");
  4435. entity.Property(e => e.DeviceKind)
  4436. .HasColumnType("varchar(32)")
  4437. .HasCharSet("utf8")
  4438. .HasCollation("utf8_general_ci");
  4439. entity.Property(e => e.DeviceName)
  4440. .HasColumnType("varchar(32)")
  4441. .HasCharSet("utf8")
  4442. .HasCollation("utf8_general_ci");
  4443. entity.Property(e => e.DeviceType)
  4444. .HasColumnType("varchar(20)")
  4445. .HasCharSet("utf8")
  4446. .HasCollation("utf8_general_ci");
  4447. entity.Property(e => e.IsPurchase)
  4448. .HasColumnType("bit(1)")
  4449. .HasDefaultValueSql("b'0'");
  4450. entity.Property(e => e.IsVip)
  4451. .HasColumnType("bit(1)")
  4452. .HasDefaultValueSql("b'0'");
  4453. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4454. entity.Property(e => e.PosSn)
  4455. .HasColumnType("varchar(50)")
  4456. .HasCharSet("utf8")
  4457. .HasCollation("utf8_general_ci");
  4458. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4459. entity.Property(e => e.PrizeParams)
  4460. .HasColumnType("varchar(200)")
  4461. .HasCharSet("utf8")
  4462. .HasCollation("utf8_general_ci");
  4463. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4464. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4465. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4466. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4467. entity.Property(e => e.SeoDescription)
  4468. .HasColumnType("varchar(500)")
  4469. .HasCharSet("utf8")
  4470. .HasCollation("utf8_general_ci");
  4471. entity.Property(e => e.SeoKeyword)
  4472. .HasColumnType("varchar(200)")
  4473. .HasCharSet("utf8")
  4474. .HasCollation("utf8_general_ci");
  4475. entity.Property(e => e.SeoTitle)
  4476. .HasColumnType("varchar(100)")
  4477. .HasCharSet("utf8")
  4478. .HasCollation("utf8_general_ci");
  4479. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4480. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4481. entity.Property(e => e.Status).HasColumnType("int(11)");
  4482. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4483. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4484. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4485. entity.Property(e => e.UpdateMan)
  4486. .HasColumnType("varchar(50)")
  4487. .HasCharSet("utf8")
  4488. .HasCollation("utf8_general_ci");
  4489. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4490. entity.Property(e => e.UserNav)
  4491. .HasColumnType("longtext")
  4492. .HasCharSet("utf8")
  4493. .HasCollation("utf8_general_ci");
  4494. entity.Property(e => e.Version).HasColumnType("int(11)");
  4495. });
  4496. modelBuilder.Entity<ProductComment>(entity =>
  4497. {
  4498. entity.Property(e => e.Id).HasColumnType("int(11)");
  4499. entity.Property(e => e.AgreeCount).HasColumnType("int(11)");
  4500. entity.Property(e => e.BackCount).HasColumnType("int(11)");
  4501. entity.Property(e => e.Contents)
  4502. .HasColumnType("varchar(200)")
  4503. .HasCharSet("utf8")
  4504. .HasCollation("utf8_general_ci");
  4505. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4506. entity.Property(e => e.CreateMan)
  4507. .HasColumnType("varchar(50)")
  4508. .HasCharSet("utf8")
  4509. .HasCollation("utf8_general_ci");
  4510. entity.Property(e => e.HasPhoto)
  4511. .HasColumnType("bit(1)")
  4512. .HasDefaultValueSql("b'0'");
  4513. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4514. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4515. entity.Property(e => e.PhotoList)
  4516. .HasColumnType("mediumtext")
  4517. .HasCharSet("utf8")
  4518. .HasCollation("utf8_general_ci");
  4519. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4520. entity.Property(e => e.ProductNormId).HasColumnType("int(11)");
  4521. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4522. entity.Property(e => e.SeoDescription)
  4523. .HasColumnType("varchar(500)")
  4524. .HasCharSet("utf8")
  4525. .HasCollation("utf8_general_ci");
  4526. entity.Property(e => e.SeoKeyword)
  4527. .HasColumnType("varchar(200)")
  4528. .HasCharSet("utf8")
  4529. .HasCollation("utf8_general_ci");
  4530. entity.Property(e => e.SeoTitle)
  4531. .HasColumnType("varchar(100)")
  4532. .HasCharSet("utf8")
  4533. .HasCollation("utf8_general_ci");
  4534. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4535. entity.Property(e => e.StarNum).HasColumnType("int(11)");
  4536. entity.Property(e => e.Status).HasColumnType("int(11)");
  4537. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4538. entity.Property(e => e.UpdateMan)
  4539. .HasColumnType("varchar(50)")
  4540. .HasCharSet("utf8")
  4541. .HasCollation("utf8_general_ci");
  4542. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4543. entity.Property(e => e.Version).HasColumnType("int(11)");
  4544. });
  4545. modelBuilder.Entity<ProductCommentAgree>(entity =>
  4546. {
  4547. entity.Property(e => e.Id).HasColumnType("int(11)");
  4548. entity.Property(e => e.ProductCommentId).HasColumnType("int(11)");
  4549. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4550. });
  4551. modelBuilder.Entity<ProductFareAreas>(entity =>
  4552. {
  4553. entity.Property(e => e.Id).HasColumnType("int(11)");
  4554. entity.Property(e => e.Areas)
  4555. .HasColumnType("longtext")
  4556. .HasCharSet("utf8")
  4557. .HasCollation("utf8_general_ci");
  4558. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4559. entity.Property(e => e.CreateMan)
  4560. .HasColumnType("varchar(50)")
  4561. .HasCharSet("utf8")
  4562. .HasCollation("utf8_general_ci");
  4563. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4564. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4565. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4566. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4567. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4568. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4569. entity.Property(e => e.SeoDescription)
  4570. .HasColumnType("varchar(500)")
  4571. .HasCharSet("utf8")
  4572. .HasCollation("utf8_general_ci");
  4573. entity.Property(e => e.SeoKeyword)
  4574. .HasColumnType("varchar(200)")
  4575. .HasCharSet("utf8")
  4576. .HasCollation("utf8_general_ci");
  4577. entity.Property(e => e.SeoTitle)
  4578. .HasColumnType("varchar(100)")
  4579. .HasCharSet("utf8")
  4580. .HasCollation("utf8_general_ci");
  4581. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4582. entity.Property(e => e.Status).HasColumnType("int(11)");
  4583. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  4584. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4585. entity.Property(e => e.UpdateMan)
  4586. .HasColumnType("varchar(50)")
  4587. .HasCharSet("utf8")
  4588. .HasCollation("utf8_general_ci");
  4589. entity.Property(e => e.Version).HasColumnType("int(11)");
  4590. });
  4591. modelBuilder.Entity<ProductFareTemp>(entity =>
  4592. {
  4593. entity.Property(e => e.Id).HasColumnType("int(11)");
  4594. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4595. entity.Property(e => e.CreateMan)
  4596. .HasColumnType("varchar(50)")
  4597. .HasCharSet("utf8")
  4598. .HasCollation("utf8_general_ci");
  4599. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4600. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4601. entity.Property(e => e.IsFree)
  4602. .HasColumnType("bit(1)")
  4603. .HasDefaultValueSql("b'0'");
  4604. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4605. entity.Property(e => e.MeterMode).HasColumnType("int(11)");
  4606. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4607. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4608. entity.Property(e => e.Name)
  4609. .HasColumnType("varchar(50)")
  4610. .HasCharSet("utf8")
  4611. .HasCollation("utf8_general_ci");
  4612. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4613. entity.Property(e => e.SendAddress)
  4614. .HasColumnType("varchar(50)")
  4615. .HasCharSet("utf8")
  4616. .HasCollation("utf8_general_ci");
  4617. entity.Property(e => e.SendAreas)
  4618. .HasColumnType("varchar(30)")
  4619. .HasCharSet("utf8")
  4620. .HasCollation("utf8_general_ci");
  4621. entity.Property(e => e.SendDate).HasColumnType("int(11)");
  4622. entity.Property(e => e.SeoDescription)
  4623. .HasColumnType("varchar(500)")
  4624. .HasCharSet("utf8")
  4625. .HasCollation("utf8_general_ci");
  4626. entity.Property(e => e.SeoKeyword)
  4627. .HasColumnType("varchar(200)")
  4628. .HasCharSet("utf8")
  4629. .HasCollation("utf8_general_ci");
  4630. entity.Property(e => e.SeoTitle)
  4631. .HasColumnType("varchar(100)")
  4632. .HasCharSet("utf8")
  4633. .HasCollation("utf8_general_ci");
  4634. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4635. entity.Property(e => e.Status).HasColumnType("int(11)");
  4636. entity.Property(e => e.TransportMode).HasColumnType("int(11)");
  4637. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4638. entity.Property(e => e.UpdateMan)
  4639. .HasColumnType("varchar(50)")
  4640. .HasCharSet("utf8")
  4641. .HasCollation("utf8_general_ci");
  4642. entity.Property(e => e.Version).HasColumnType("int(11)");
  4643. });
  4644. modelBuilder.Entity<ProductKeys>(entity =>
  4645. {
  4646. entity.HasKey(e => e.Name)
  4647. .HasName("PRIMARY");
  4648. entity.Property(e => e.Name)
  4649. .HasColumnType("varchar(10)")
  4650. .HasCharSet("utf8")
  4651. .HasCollation("utf8_general_ci");
  4652. entity.Property(e => e.ColIds)
  4653. .HasColumnType("longtext")
  4654. .HasCharSet("utf8")
  4655. .HasCollation("utf8_general_ci");
  4656. entity.Property(e => e.ProductIds)
  4657. .HasColumnType("longtext")
  4658. .HasCharSet("utf8")
  4659. .HasCollation("utf8_general_ci");
  4660. });
  4661. modelBuilder.Entity<ProductNorm>(entity =>
  4662. {
  4663. entity.Property(e => e.Id).HasColumnType("int(11)");
  4664. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4665. entity.Property(e => e.Code)
  4666. .HasColumnType("varchar(50)")
  4667. .HasCharSet("utf8")
  4668. .HasCollation("utf8_general_ci");
  4669. entity.Property(e => e.ColName)
  4670. .HasColumnType("varchar(50)")
  4671. .HasCharSet("utf8")
  4672. .HasCollation("utf8_general_ci");
  4673. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  4674. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4675. entity.Property(e => e.CreateMan)
  4676. .HasColumnType("varchar(50)")
  4677. .HasCharSet("utf8")
  4678. .HasCollation("utf8_general_ci");
  4679. entity.Property(e => e.IdList)
  4680. .HasColumnType("varchar(50)")
  4681. .HasCharSet("utf8")
  4682. .HasCollation("utf8_general_ci");
  4683. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4684. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  4685. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4686. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  4687. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4688. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4689. entity.Property(e => e.SeoDescription)
  4690. .HasColumnType("varchar(500)")
  4691. .HasCharSet("utf8")
  4692. .HasCollation("utf8_general_ci");
  4693. entity.Property(e => e.SeoKeyword)
  4694. .HasColumnType("varchar(200)")
  4695. .HasCharSet("utf8")
  4696. .HasCollation("utf8_general_ci");
  4697. entity.Property(e => e.SeoTitle)
  4698. .HasColumnType("varchar(100)")
  4699. .HasCharSet("utf8")
  4700. .HasCollation("utf8_general_ci");
  4701. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4702. entity.Property(e => e.Status).HasColumnType("int(11)");
  4703. entity.Property(e => e.Stock).HasColumnType("int(11)");
  4704. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4705. entity.Property(e => e.UpdateMan)
  4706. .HasColumnType("varchar(50)")
  4707. .HasCharSet("utf8")
  4708. .HasCollation("utf8_general_ci");
  4709. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  4710. entity.Property(e => e.UserPrice).HasColumnType("decimal(18,2)");
  4711. entity.Property(e => e.Version).HasColumnType("int(11)");
  4712. });
  4713. modelBuilder.Entity<ProductNormItem>(entity =>
  4714. {
  4715. entity.Property(e => e.Id).HasColumnType("int(11)");
  4716. entity.Property(e => e.ColName)
  4717. .HasColumnType("varchar(50)")
  4718. .HasCharSet("utf8")
  4719. .HasCollation("utf8_general_ci");
  4720. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4721. entity.Property(e => e.CreateMan)
  4722. .HasColumnType("varchar(50)")
  4723. .HasCharSet("utf8")
  4724. .HasCollation("utf8_general_ci");
  4725. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4726. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  4727. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4728. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4729. entity.Property(e => e.SeoDescription)
  4730. .HasColumnType("varchar(500)")
  4731. .HasCharSet("utf8")
  4732. .HasCollation("utf8_general_ci");
  4733. entity.Property(e => e.SeoKeyword)
  4734. .HasColumnType("varchar(200)")
  4735. .HasCharSet("utf8")
  4736. .HasCollation("utf8_general_ci");
  4737. entity.Property(e => e.SeoTitle)
  4738. .HasColumnType("varchar(100)")
  4739. .HasCharSet("utf8")
  4740. .HasCollation("utf8_general_ci");
  4741. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4742. entity.Property(e => e.Status).HasColumnType("int(11)");
  4743. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4744. entity.Property(e => e.UpdateMan)
  4745. .HasColumnType("varchar(50)")
  4746. .HasCharSet("utf8")
  4747. .HasCollation("utf8_general_ci");
  4748. entity.Property(e => e.Version).HasColumnType("int(11)");
  4749. });
  4750. modelBuilder.Entity<ProductNormTemp>(entity =>
  4751. {
  4752. entity.Property(e => e.Id).HasColumnType("int(11)");
  4753. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4754. entity.Property(e => e.CreateMan)
  4755. .HasColumnType("varchar(50)")
  4756. .HasCharSet("utf8")
  4757. .HasCollation("utf8_general_ci");
  4758. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4759. entity.Property(e => e.Name)
  4760. .HasColumnType("varchar(50)")
  4761. .HasCharSet("utf8")
  4762. .HasCollation("utf8_general_ci");
  4763. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4764. entity.Property(e => e.SeoDescription)
  4765. .HasColumnType("varchar(500)")
  4766. .HasCharSet("utf8")
  4767. .HasCollation("utf8_general_ci");
  4768. entity.Property(e => e.SeoKeyword)
  4769. .HasColumnType("varchar(200)")
  4770. .HasCharSet("utf8")
  4771. .HasCollation("utf8_general_ci");
  4772. entity.Property(e => e.SeoTitle)
  4773. .HasColumnType("varchar(100)")
  4774. .HasCharSet("utf8")
  4775. .HasCollation("utf8_general_ci");
  4776. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4777. entity.Property(e => e.Status).HasColumnType("int(11)");
  4778. entity.Property(e => e.TempJsonData)
  4779. .HasColumnType("longtext")
  4780. .HasCharSet("utf8")
  4781. .HasCollation("utf8_general_ci");
  4782. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4783. entity.Property(e => e.UpdateMan)
  4784. .HasColumnType("varchar(50)")
  4785. .HasCharSet("utf8")
  4786. .HasCollation("utf8_general_ci");
  4787. entity.Property(e => e.Version).HasColumnType("int(11)");
  4788. });
  4789. modelBuilder.Entity<Products>(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.ColId)
  4794. .HasColumnType("varchar(30)")
  4795. .HasCharSet("utf8")
  4796. .HasCollation("utf8_general_ci");
  4797. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  4798. entity.Property(e => e.Contents)
  4799. .HasColumnType("longtext")
  4800. .HasCharSet("utf8")
  4801. .HasCollation("utf8_general_ci");
  4802. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  4803. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4804. entity.Property(e => e.CreateMan)
  4805. .HasColumnType("varchar(50)")
  4806. .HasCharSet("utf8")
  4807. .HasCollation("utf8_general_ci");
  4808. entity.Property(e => e.DetailPicPath)
  4809. .HasColumnType("varchar(500)")
  4810. .HasCharSet("utf8")
  4811. .HasCollation("utf8_general_ci");
  4812. entity.Property(e => e.Details)
  4813. .HasColumnType("longtext")
  4814. .HasCharSet("utf8")
  4815. .HasCollation("utf8_general_ci");
  4816. entity.Property(e => e.EndDate).HasColumnType("datetime");
  4817. entity.Property(e => e.FareTemplateId).HasColumnType("int(11)");
  4818. entity.Property(e => e.GoodPercent).HasColumnType("decimal(18,2)");
  4819. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4820. entity.Property(e => e.IsLimit)
  4821. .HasColumnType("bit(1)")
  4822. .HasDefaultValueSql("b'0'");
  4823. entity.Property(e => e.IsRecommend)
  4824. .HasColumnType("bit(1)")
  4825. .HasDefaultValueSql("b'0'");
  4826. entity.Property(e => e.IsRecommend2)
  4827. .HasColumnType("bit(1)")
  4828. .HasDefaultValueSql("b'0'");
  4829. entity.Property(e => e.IsRecommend3)
  4830. .HasColumnType("bit(1)")
  4831. .HasDefaultValueSql("b'0'");
  4832. entity.Property(e => e.KeyWord)
  4833. .HasColumnType("varchar(500)")
  4834. .HasCharSet("utf8")
  4835. .HasCollation("utf8_general_ci");
  4836. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  4837. entity.Property(e => e.LinkUrl)
  4838. .HasColumnType("varchar(500)")
  4839. .HasCharSet("utf8")
  4840. .HasCollation("utf8_general_ci");
  4841. entity.Property(e => e.ListPicPath)
  4842. .HasColumnType("varchar(200)")
  4843. .HasCharSet("utf8")
  4844. .HasCollation("utf8_general_ci");
  4845. entity.Property(e => e.MemberPrice).HasColumnType("decimal(18,2)");
  4846. entity.Property(e => e.MerchantClassId).HasColumnType("int(11)");
  4847. entity.Property(e => e.MerchantColId)
  4848. .HasColumnType("varchar(30)")
  4849. .HasCharSet("utf8")
  4850. .HasCollation("utf8_general_ci");
  4851. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4852. entity.Property(e => e.MonthSale).HasColumnType("int(11)");
  4853. entity.Property(e => e.NormIds)
  4854. .HasColumnType("varchar(100)")
  4855. .HasCharSet("utf8")
  4856. .HasCollation("utf8_general_ci");
  4857. entity.Property(e => e.NormJson)
  4858. .HasColumnType("longtext")
  4859. .HasCharSet("utf8")
  4860. .HasCollation("utf8_general_ci");
  4861. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  4862. entity.Property(e => e.ProductCode)
  4863. .HasColumnType("varchar(30)")
  4864. .HasCharSet("utf8")
  4865. .HasCollation("utf8_general_ci");
  4866. entity.Property(e => e.ProductName)
  4867. .HasColumnType("varchar(100)")
  4868. .HasCharSet("utf8")
  4869. .HasCollation("utf8_general_ci");
  4870. entity.Property(e => e.PublishDate).HasColumnType("datetime");
  4871. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4872. entity.Property(e => e.SeoDescription)
  4873. .HasColumnType("varchar(500)")
  4874. .HasCharSet("utf8")
  4875. .HasCollation("utf8_general_ci");
  4876. entity.Property(e => e.SeoKeyword)
  4877. .HasColumnType("varchar(200)")
  4878. .HasCharSet("utf8")
  4879. .HasCollation("utf8_general_ci");
  4880. entity.Property(e => e.SeoTitle)
  4881. .HasColumnType("varchar(100)")
  4882. .HasCharSet("utf8")
  4883. .HasCollation("utf8_general_ci");
  4884. entity.Property(e => e.ShareDetail)
  4885. .HasColumnType("varchar(200)")
  4886. .HasCharSet("utf8")
  4887. .HasCollation("utf8_general_ci");
  4888. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4889. entity.Property(e => e.SourcePrice).HasColumnType("decimal(18,2)");
  4890. entity.Property(e => e.StartDate).HasColumnType("datetime");
  4891. entity.Property(e => e.Status).HasColumnType("int(11)");
  4892. entity.Property(e => e.Stock).HasColumnType("int(11)");
  4893. entity.Property(e => e.Title)
  4894. .HasColumnType("varchar(50)")
  4895. .HasCharSet("utf8")
  4896. .HasCollation("utf8_general_ci");
  4897. entity.Property(e => e.Title2)
  4898. .HasColumnType("varchar(50)")
  4899. .HasCharSet("utf8")
  4900. .HasCollation("utf8_general_ci");
  4901. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4902. entity.Property(e => e.UpdateMan)
  4903. .HasColumnType("varchar(50)")
  4904. .HasCharSet("utf8")
  4905. .HasCollation("utf8_general_ci");
  4906. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  4907. entity.Property(e => e.Version).HasColumnType("int(11)");
  4908. });
  4909. modelBuilder.Entity<ProfitObjectActivations>(entity =>
  4910. {
  4911. entity.Property(e => e.Id).HasColumnType("int(11)");
  4912. entity.Property(e => e.Code)
  4913. .HasColumnType("varchar(32)")
  4914. .HasCharSet("utf8")
  4915. .HasCollation("utf8_general_ci");
  4916. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4917. entity.Property(e => e.CreateMan)
  4918. .HasColumnType("varchar(50)")
  4919. .HasCharSet("utf8")
  4920. .HasCollation("utf8_general_ci");
  4921. entity.Property(e => e.EndDate).HasColumnType("datetime");
  4922. entity.Property(e => e.ExpiredNumber).HasColumnType("decimal(18,6)");
  4923. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  4924. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  4925. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  4926. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  4927. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  4928. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  4929. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4930. entity.Property(e => e.SeoDescription)
  4931. .HasColumnType("varchar(500)")
  4932. .HasCharSet("utf8")
  4933. .HasCollation("utf8_general_ci");
  4934. entity.Property(e => e.SeoKeyword)
  4935. .HasColumnType("varchar(200)")
  4936. .HasCharSet("utf8")
  4937. .HasCollation("utf8_general_ci");
  4938. entity.Property(e => e.SeoTitle)
  4939. .HasColumnType("varchar(100)")
  4940. .HasCharSet("utf8")
  4941. .HasCollation("utf8_general_ci");
  4942. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4943. entity.Property(e => e.StartDate).HasColumnType("datetime");
  4944. entity.Property(e => e.Status).HasColumnType("int(11)");
  4945. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4946. entity.Property(e => e.UpdateMan)
  4947. .HasColumnType("varchar(50)")
  4948. .HasCharSet("utf8")
  4949. .HasCollation("utf8_general_ci");
  4950. entity.Property(e => e.Version).HasColumnType("int(11)");
  4951. });
  4952. modelBuilder.Entity<ProfitObjectContinueFloors>(entity =>
  4953. {
  4954. entity.Property(e => e.Id).HasColumnType("int(11)");
  4955. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  4956. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4957. entity.Property(e => e.CreateMan)
  4958. .HasColumnType("varchar(50)")
  4959. .HasCharSet("utf8")
  4960. .HasCollation("utf8_general_ci");
  4961. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  4962. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  4963. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  4964. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4965. entity.Property(e => e.SeoDescription)
  4966. .HasColumnType("varchar(500)")
  4967. .HasCharSet("utf8")
  4968. .HasCollation("utf8_general_ci");
  4969. entity.Property(e => e.SeoKeyword)
  4970. .HasColumnType("varchar(200)")
  4971. .HasCharSet("utf8")
  4972. .HasCollation("utf8_general_ci");
  4973. entity.Property(e => e.SeoTitle)
  4974. .HasColumnType("varchar(100)")
  4975. .HasCharSet("utf8")
  4976. .HasCollation("utf8_general_ci");
  4977. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4978. entity.Property(e => e.Status).HasColumnType("int(11)");
  4979. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4980. entity.Property(e => e.UpdateMan)
  4981. .HasColumnType("varchar(50)")
  4982. .HasCharSet("utf8")
  4983. .HasCollation("utf8_general_ci");
  4984. entity.Property(e => e.Version).HasColumnType("int(11)");
  4985. });
  4986. modelBuilder.Entity<ProfitObjectFloors>(entity =>
  4987. {
  4988. entity.Property(e => e.Id).HasColumnType("int(11)");
  4989. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  4990. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4991. entity.Property(e => e.CreateMan)
  4992. .HasColumnType("varchar(50)")
  4993. .HasCharSet("utf8")
  4994. .HasCollation("utf8_general_ci");
  4995. entity.Property(e => e.FloorDiff)
  4996. .HasColumnType("bit(1)")
  4997. .HasDefaultValueSql("b'0'");
  4998. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  4999. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5000. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5001. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5002. entity.Property(e => e.SeoDescription)
  5003. .HasColumnType("varchar(500)")
  5004. .HasCharSet("utf8")
  5005. .HasCollation("utf8_general_ci");
  5006. entity.Property(e => e.SeoKeyword)
  5007. .HasColumnType("varchar(200)")
  5008. .HasCharSet("utf8")
  5009. .HasCollation("utf8_general_ci");
  5010. entity.Property(e => e.SeoTitle)
  5011. .HasColumnType("varchar(100)")
  5012. .HasCharSet("utf8")
  5013. .HasCollation("utf8_general_ci");
  5014. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5015. entity.Property(e => e.Status).HasColumnType("int(11)");
  5016. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5017. entity.Property(e => e.UpdateMan)
  5018. .HasColumnType("varchar(50)")
  5019. .HasCharSet("utf8")
  5020. .HasCollation("utf8_general_ci");
  5021. entity.Property(e => e.Version).HasColumnType("int(11)");
  5022. });
  5023. modelBuilder.Entity<ProfitObjectLevelKinds>(entity =>
  5024. {
  5025. entity.Property(e => e.Id).HasColumnType("int(11)");
  5026. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5027. entity.Property(e => e.CreateMan)
  5028. .HasColumnType("varchar(50)")
  5029. .HasCharSet("utf8")
  5030. .HasCollation("utf8_general_ci");
  5031. entity.Property(e => e.Name)
  5032. .HasColumnType("varchar(50)")
  5033. .HasCharSet("utf8")
  5034. .HasCollation("utf8_general_ci");
  5035. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5036. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5037. entity.Property(e => e.SeoDescription)
  5038. .HasColumnType("varchar(500)")
  5039. .HasCharSet("utf8")
  5040. .HasCollation("utf8_general_ci");
  5041. entity.Property(e => e.SeoKeyword)
  5042. .HasColumnType("varchar(200)")
  5043. .HasCharSet("utf8")
  5044. .HasCollation("utf8_general_ci");
  5045. entity.Property(e => e.SeoTitle)
  5046. .HasColumnType("varchar(100)")
  5047. .HasCharSet("utf8")
  5048. .HasCollation("utf8_general_ci");
  5049. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5050. entity.Property(e => e.Status).HasColumnType("int(11)");
  5051. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5052. entity.Property(e => e.UpdateMan)
  5053. .HasColumnType("varchar(50)")
  5054. .HasCharSet("utf8")
  5055. .HasCollation("utf8_general_ci");
  5056. entity.Property(e => e.Version).HasColumnType("int(11)");
  5057. });
  5058. modelBuilder.Entity<ProfitObjectLevels>(entity =>
  5059. {
  5060. entity.Property(e => e.Id).HasColumnType("int(11)");
  5061. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5062. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5063. entity.Property(e => e.CreateMan)
  5064. .HasColumnType("varchar(50)")
  5065. .HasCharSet("utf8")
  5066. .HasCollation("utf8_general_ci");
  5067. entity.Property(e => e.DebitAddProfitVal).HasColumnType("decimal(18,2)");
  5068. entity.Property(e => e.DebitPercents).HasColumnType("decimal(18,2)");
  5069. entity.Property(e => e.KindId).HasColumnType("int(11)");
  5070. entity.Property(e => e.LevelDiff)
  5071. .HasColumnType("bit(1)")
  5072. .HasDefaultValueSql("b'0'");
  5073. entity.Property(e => e.LevelNumber).HasColumnType("int(11)");
  5074. entity.Property(e => e.Name)
  5075. .HasColumnType("varchar(50)")
  5076. .HasCharSet("utf8")
  5077. .HasCollation("utf8_general_ci");
  5078. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5079. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5080. entity.Property(e => e.SeoDescription)
  5081. .HasColumnType("varchar(500)")
  5082. .HasCharSet("utf8")
  5083. .HasCollation("utf8_general_ci");
  5084. entity.Property(e => e.SeoKeyword)
  5085. .HasColumnType("varchar(200)")
  5086. .HasCharSet("utf8")
  5087. .HasCollation("utf8_general_ci");
  5088. entity.Property(e => e.SeoTitle)
  5089. .HasColumnType("varchar(100)")
  5090. .HasCharSet("utf8")
  5091. .HasCollation("utf8_general_ci");
  5092. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5093. entity.Property(e => e.Status).HasColumnType("int(11)");
  5094. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5095. entity.Property(e => e.UpdateMan)
  5096. .HasColumnType("varchar(50)")
  5097. .HasCharSet("utf8")
  5098. .HasCollation("utf8_general_ci");
  5099. entity.Property(e => e.Version).HasColumnType("int(11)");
  5100. });
  5101. modelBuilder.Entity<ProfitObjects>(entity =>
  5102. {
  5103. entity.Property(e => e.Id).HasColumnType("int(11)");
  5104. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5105. entity.Property(e => e.CreateMan)
  5106. .HasColumnType("varchar(50)")
  5107. .HasCharSet("utf8")
  5108. .HasCollation("utf8_general_ci");
  5109. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5110. entity.Property(e => e.MaxFloor).HasColumnType("int(11)");
  5111. entity.Property(e => e.MaxLevel).HasColumnType("int(11)");
  5112. entity.Property(e => e.MaxLevelContinue)
  5113. .HasColumnType("bit(1)")
  5114. .HasDefaultValueSql("b'0'");
  5115. entity.Property(e => e.MinProfitVal).HasColumnType("decimal(18,5)");
  5116. entity.Property(e => e.Name)
  5117. .HasColumnType("varchar(50)")
  5118. .HasCharSet("utf8")
  5119. .HasCollation("utf8_general_ci");
  5120. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5121. entity.Property(e => e.SeoDescription)
  5122. .HasColumnType("varchar(500)")
  5123. .HasCharSet("utf8")
  5124. .HasCollation("utf8_general_ci");
  5125. entity.Property(e => e.SeoKeyword)
  5126. .HasColumnType("varchar(200)")
  5127. .HasCharSet("utf8")
  5128. .HasCollation("utf8_general_ci");
  5129. entity.Property(e => e.SeoTitle)
  5130. .HasColumnType("varchar(100)")
  5131. .HasCharSet("utf8")
  5132. .HasCollation("utf8_general_ci");
  5133. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5134. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5135. entity.Property(e => e.Status).HasColumnType("int(11)");
  5136. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5137. entity.Property(e => e.UpdateMan)
  5138. .HasColumnType("varchar(50)")
  5139. .HasCharSet("utf8")
  5140. .HasCollation("utf8_general_ci");
  5141. entity.Property(e => e.Version).HasColumnType("int(11)");
  5142. });
  5143. modelBuilder.Entity<ProfitObjectsActiveCheck>(entity =>
  5144. {
  5145. entity.HasKey(e => e.CheckData)
  5146. .HasName("PRIMARY");
  5147. entity.Property(e => e.CheckData)
  5148. .HasColumnType("varchar(100)")
  5149. .HasCharSet("utf8")
  5150. .HasCollation("utf8_general_ci");
  5151. });
  5152. modelBuilder.Entity<ProfitObjectsActiveParams>(entity =>
  5153. {
  5154. entity.Property(e => e.Id).HasColumnType("int(11)");
  5155. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5156. entity.Property(e => e.CreateMan)
  5157. .HasColumnType("varchar(50)")
  5158. .HasCharSet("utf8")
  5159. .HasCollation("utf8_general_ci");
  5160. entity.Property(e => e.Name)
  5161. .HasColumnType("varchar(50)")
  5162. .HasCharSet("utf8")
  5163. .HasCollation("utf8_general_ci");
  5164. entity.Property(e => e.ProfitObjectsActiveId).HasColumnType("int(11)");
  5165. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5166. entity.Property(e => e.Remark)
  5167. .HasColumnType("varchar(200)")
  5168. .HasCharSet("utf8")
  5169. .HasCollation("utf8_general_ci");
  5170. entity.Property(e => e.SeoDescription)
  5171. .HasColumnType("varchar(500)")
  5172. .HasCharSet("utf8")
  5173. .HasCollation("utf8_general_ci");
  5174. entity.Property(e => e.SeoKeyword)
  5175. .HasColumnType("varchar(200)")
  5176. .HasCharSet("utf8")
  5177. .HasCollation("utf8_general_ci");
  5178. entity.Property(e => e.SeoTitle)
  5179. .HasColumnType("varchar(100)")
  5180. .HasCharSet("utf8")
  5181. .HasCollation("utf8_general_ci");
  5182. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5183. entity.Property(e => e.Status).HasColumnType("int(11)");
  5184. entity.Property(e => e.TextValue)
  5185. .HasColumnType("varchar(20)")
  5186. .HasCharSet("utf8")
  5187. .HasCollation("utf8_general_ci");
  5188. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5189. entity.Property(e => e.UpdateMan)
  5190. .HasColumnType("varchar(50)")
  5191. .HasCharSet("utf8")
  5192. .HasCollation("utf8_general_ci");
  5193. entity.Property(e => e.Version).HasColumnType("int(11)");
  5194. });
  5195. modelBuilder.Entity<ProfitObjectsActives>(entity =>
  5196. {
  5197. entity.Property(e => e.Id).HasColumnType("int(11)");
  5198. entity.Property(e => e.CardType).HasColumnType("int(11)");
  5199. entity.Property(e => e.Code)
  5200. .HasColumnType("varchar(50)")
  5201. .HasCharSet("utf8")
  5202. .HasCollation("utf8_general_ci");
  5203. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5204. entity.Property(e => e.CreateMan)
  5205. .HasColumnType("varchar(50)")
  5206. .HasCharSet("utf8")
  5207. .HasCollation("utf8_general_ci");
  5208. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5209. entity.Property(e => e.FinishNumber).HasColumnType("decimal(18,6)");
  5210. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5211. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5212. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5213. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5214. entity.Property(e => e.Name)
  5215. .HasColumnType("varchar(50)")
  5216. .HasCharSet("utf8")
  5217. .HasCollation("utf8_general_ci");
  5218. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5219. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5220. entity.Property(e => e.ProfitNumber2).HasColumnType("decimal(18,2)");
  5221. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5222. entity.Property(e => e.SeoDescription)
  5223. .HasColumnType("varchar(500)")
  5224. .HasCharSet("utf8")
  5225. .HasCollation("utf8_general_ci");
  5226. entity.Property(e => e.SeoKeyword)
  5227. .HasColumnType("varchar(200)")
  5228. .HasCharSet("utf8")
  5229. .HasCollation("utf8_general_ci");
  5230. entity.Property(e => e.SeoTitle)
  5231. .HasColumnType("varchar(100)")
  5232. .HasCharSet("utf8")
  5233. .HasCollation("utf8_general_ci");
  5234. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5235. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5236. entity.Property(e => e.Status).HasColumnType("int(11)");
  5237. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5238. entity.Property(e => e.UpdateMan)
  5239. .HasColumnType("varchar(50)")
  5240. .HasCharSet("utf8")
  5241. .HasCollation("utf8_general_ci");
  5242. entity.Property(e => e.Version).HasColumnType("int(11)");
  5243. });
  5244. modelBuilder.Entity<ProfitObjectsActivesForId>(entity =>
  5245. {
  5246. entity.HasKey(e => e.Name)
  5247. .HasName("PRIMARY");
  5248. entity.Property(e => e.Name)
  5249. .HasColumnType("varchar(50)")
  5250. .HasCharSet("utf8")
  5251. .HasCollation("utf8_general_ci");
  5252. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  5253. });
  5254. modelBuilder.Entity<ProfitObjectsRule>(entity =>
  5255. {
  5256. entity.Property(e => e.Id).HasColumnType("int(11)");
  5257. entity.Property(e => e.Code)
  5258. .HasColumnType("varchar(50)")
  5259. .HasCharSet("utf8")
  5260. .HasCollation("utf8_general_ci");
  5261. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5262. entity.Property(e => e.CreateMan)
  5263. .HasColumnType("varchar(50)")
  5264. .HasCharSet("utf8")
  5265. .HasCollation("utf8_general_ci");
  5266. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5267. entity.Property(e => e.Name)
  5268. .HasColumnType("varchar(50)")
  5269. .HasCharSet("utf8")
  5270. .HasCollation("utf8_general_ci");
  5271. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5272. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5273. entity.Property(e => e.SeoDescription)
  5274. .HasColumnType("varchar(500)")
  5275. .HasCharSet("utf8")
  5276. .HasCollation("utf8_general_ci");
  5277. entity.Property(e => e.SeoKeyword)
  5278. .HasColumnType("varchar(200)")
  5279. .HasCharSet("utf8")
  5280. .HasCollation("utf8_general_ci");
  5281. entity.Property(e => e.SeoTitle)
  5282. .HasColumnType("varchar(100)")
  5283. .HasCharSet("utf8")
  5284. .HasCollation("utf8_general_ci");
  5285. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5286. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5287. entity.Property(e => e.Status).HasColumnType("int(11)");
  5288. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5289. entity.Property(e => e.UpdateMan)
  5290. .HasColumnType("varchar(50)")
  5291. .HasCharSet("utf8")
  5292. .HasCollation("utf8_general_ci");
  5293. entity.Property(e => e.Version).HasColumnType("int(11)");
  5294. });
  5295. modelBuilder.Entity<ProfitObjectsRuleDetails>(entity =>
  5296. {
  5297. entity.Property(e => e.Id).HasColumnType("int(11)");
  5298. entity.Property(e => e.Code)
  5299. .HasColumnType("varchar(50)")
  5300. .HasCharSet("utf8")
  5301. .HasCollation("utf8_general_ci");
  5302. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5303. entity.Property(e => e.CreateMan)
  5304. .HasColumnType("varchar(50)")
  5305. .HasCharSet("utf8")
  5306. .HasCollation("utf8_general_ci");
  5307. entity.Property(e => e.DataValue)
  5308. .HasColumnType("varchar(50)")
  5309. .HasCharSet("utf8")
  5310. .HasCollation("utf8_general_ci");
  5311. entity.Property(e => e.Name)
  5312. .HasColumnType("varchar(50)")
  5313. .HasCharSet("utf8")
  5314. .HasCollation("utf8_general_ci");
  5315. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5316. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  5317. entity.Property(e => e.SeoDescription)
  5318. .HasColumnType("varchar(500)")
  5319. .HasCharSet("utf8")
  5320. .HasCollation("utf8_general_ci");
  5321. entity.Property(e => e.SeoKeyword)
  5322. .HasColumnType("varchar(200)")
  5323. .HasCharSet("utf8")
  5324. .HasCollation("utf8_general_ci");
  5325. entity.Property(e => e.SeoTitle)
  5326. .HasColumnType("varchar(100)")
  5327. .HasCharSet("utf8")
  5328. .HasCollation("utf8_general_ci");
  5329. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5330. entity.Property(e => e.Status).HasColumnType("int(11)");
  5331. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5332. entity.Property(e => e.UpdateMan)
  5333. .HasColumnType("varchar(50)")
  5334. .HasCharSet("utf8")
  5335. .HasCollation("utf8_general_ci");
  5336. entity.Property(e => e.Version).HasColumnType("int(11)");
  5337. });
  5338. modelBuilder.Entity<ProfitReceiveRecord>(entity =>
  5339. {
  5340. entity.Property(e => e.Id).HasColumnType("int(11)");
  5341. entity.Property(e => e.Account)
  5342. .HasColumnType("varchar(32)")
  5343. .HasCharSet("utf8")
  5344. .HasCollation("utf8_general_ci");
  5345. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  5346. entity.Property(e => e.AppId)
  5347. .HasColumnType("varchar(32)")
  5348. .HasCharSet("utf8")
  5349. .HasCollation("utf8_general_ci");
  5350. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5351. entity.Property(e => e.CreateMan)
  5352. .HasColumnType("varchar(50)")
  5353. .HasCharSet("utf8")
  5354. .HasCollation("utf8_general_ci");
  5355. entity.Property(e => e.CustomRelation)
  5356. .HasColumnType("varchar(10)")
  5357. .HasCharSet("utf8")
  5358. .HasCollation("utf8_general_ci");
  5359. entity.Property(e => e.Description)
  5360. .HasColumnType("varchar(50)")
  5361. .HasCharSet("utf8")
  5362. .HasCollation("utf8_general_ci");
  5363. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5364. entity.Property(e => e.Name)
  5365. .HasColumnType("varchar(32)")
  5366. .HasCharSet("utf8")
  5367. .HasCollation("utf8_general_ci");
  5368. entity.Property(e => e.OrderId)
  5369. .HasColumnType("varchar(32)")
  5370. .HasCharSet("utf8")
  5371. .HasCollation("utf8_general_ci");
  5372. entity.Property(e => e.OutOrderNo)
  5373. .HasColumnType("varchar(32)")
  5374. .HasCharSet("utf8")
  5375. .HasCollation("utf8_general_ci");
  5376. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5377. entity.Property(e => e.RelationType)
  5378. .HasColumnType("varchar(30)")
  5379. .HasCharSet("utf8")
  5380. .HasCollation("utf8_general_ci");
  5381. entity.Property(e => e.SeoDescription)
  5382. .HasColumnType("varchar(500)")
  5383. .HasCharSet("utf8")
  5384. .HasCollation("utf8_general_ci");
  5385. entity.Property(e => e.SeoKeyword)
  5386. .HasColumnType("varchar(200)")
  5387. .HasCharSet("utf8")
  5388. .HasCollation("utf8_general_ci");
  5389. entity.Property(e => e.SeoTitle)
  5390. .HasColumnType("varchar(100)")
  5391. .HasCharSet("utf8")
  5392. .HasCollation("utf8_general_ci");
  5393. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5394. entity.Property(e => e.State)
  5395. .HasColumnType("varchar(20)")
  5396. .HasCharSet("utf8")
  5397. .HasCollation("utf8_general_ci");
  5398. entity.Property(e => e.Status).HasColumnType("int(11)");
  5399. entity.Property(e => e.SubAppId)
  5400. .HasColumnType("varchar(32)")
  5401. .HasCharSet("utf8")
  5402. .HasCollation("utf8_general_ci");
  5403. entity.Property(e => e.SubMchid)
  5404. .HasColumnType("varchar(32)")
  5405. .HasCharSet("utf8")
  5406. .HasCollation("utf8_general_ci");
  5407. entity.Property(e => e.TransactionId)
  5408. .HasColumnType("varchar(32)")
  5409. .HasCharSet("utf8")
  5410. .HasCollation("utf8_general_ci");
  5411. entity.Property(e => e.Type)
  5412. .HasColumnType("varchar(30)")
  5413. .HasCharSet("utf8")
  5414. .HasCollation("utf8_general_ci");
  5415. entity.Property(e => e.UnfreezeUnsplit)
  5416. .HasColumnType("bit(1)")
  5417. .HasDefaultValueSql("b'0'");
  5418. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5419. entity.Property(e => e.UpdateMan)
  5420. .HasColumnType("varchar(50)")
  5421. .HasCharSet("utf8")
  5422. .HasCollation("utf8_general_ci");
  5423. entity.Property(e => e.Version).HasColumnType("int(11)");
  5424. });
  5425. modelBuilder.Entity<ProfitReceives>(entity =>
  5426. {
  5427. entity.Property(e => e.Id).HasColumnType("int(11)");
  5428. entity.Property(e => e.Account)
  5429. .HasColumnType("varchar(32)")
  5430. .HasCharSet("utf8")
  5431. .HasCollation("utf8_general_ci");
  5432. entity.Property(e => e.AppId)
  5433. .HasColumnType("varchar(32)")
  5434. .HasCharSet("utf8")
  5435. .HasCollation("utf8_general_ci");
  5436. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5437. entity.Property(e => e.CreateMan)
  5438. .HasColumnType("varchar(50)")
  5439. .HasCharSet("utf8")
  5440. .HasCollation("utf8_general_ci");
  5441. entity.Property(e => e.CustomRelation)
  5442. .HasColumnType("varchar(10)")
  5443. .HasCharSet("utf8")
  5444. .HasCollation("utf8_general_ci");
  5445. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5446. entity.Property(e => e.Name)
  5447. .HasColumnType("varchar(32)")
  5448. .HasCharSet("utf8")
  5449. .HasCollation("utf8_general_ci");
  5450. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5451. entity.Property(e => e.RelationType)
  5452. .HasColumnType("varchar(30)")
  5453. .HasCharSet("utf8")
  5454. .HasCollation("utf8_general_ci");
  5455. entity.Property(e => e.SeoDescription)
  5456. .HasColumnType("varchar(500)")
  5457. .HasCharSet("utf8")
  5458. .HasCollation("utf8_general_ci");
  5459. entity.Property(e => e.SeoKeyword)
  5460. .HasColumnType("varchar(200)")
  5461. .HasCharSet("utf8")
  5462. .HasCollation("utf8_general_ci");
  5463. entity.Property(e => e.SeoTitle)
  5464. .HasColumnType("varchar(100)")
  5465. .HasCharSet("utf8")
  5466. .HasCollation("utf8_general_ci");
  5467. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5468. entity.Property(e => e.Status).HasColumnType("int(11)");
  5469. entity.Property(e => e.SubAppId)
  5470. .HasColumnType("varchar(32)")
  5471. .HasCharSet("utf8")
  5472. .HasCollation("utf8_general_ci");
  5473. entity.Property(e => e.SubMchid)
  5474. .HasColumnType("varchar(32)")
  5475. .HasCharSet("utf8")
  5476. .HasCollation("utf8_general_ci");
  5477. entity.Property(e => e.Type)
  5478. .HasColumnType("varchar(30)")
  5479. .HasCharSet("utf8")
  5480. .HasCollation("utf8_general_ci");
  5481. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5482. entity.Property(e => e.UpdateMan)
  5483. .HasColumnType("varchar(50)")
  5484. .HasCharSet("utf8")
  5485. .HasCollation("utf8_general_ci");
  5486. entity.Property(e => e.Version).HasColumnType("int(11)");
  5487. });
  5488. modelBuilder.Entity<ProfitRecord>(entity =>
  5489. {
  5490. entity.Property(e => e.Id).HasColumnType("int(11)");
  5491. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5492. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  5493. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  5494. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5495. entity.Property(e => e.CreateMan)
  5496. .HasColumnType("varchar(50)")
  5497. .HasCharSet("utf8")
  5498. .HasCollation("utf8_general_ci");
  5499. entity.Property(e => e.DirectFlag)
  5500. .HasColumnType("bit(1)")
  5501. .HasDefaultValueSql("b'0'");
  5502. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  5503. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  5504. entity.Property(e => e.MerHelpFlag)
  5505. .HasColumnType("bit(1)")
  5506. .HasDefaultValueSql("b'0'");
  5507. entity.Property(e => e.MerNo)
  5508. .HasColumnType("varchar(32)")
  5509. .HasCharSet("utf8")
  5510. .HasCollation("utf8_general_ci");
  5511. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5512. entity.Property(e => e.ParentNav)
  5513. .HasColumnType("varchar(1000)")
  5514. .HasCharSet("utf8")
  5515. .HasCollation("utf8_general_ci");
  5516. entity.Property(e => e.ProfitAmount).HasColumnType("decimal(18,2)");
  5517. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  5518. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5519. entity.Property(e => e.Remark)
  5520. .HasColumnType("varchar(64)")
  5521. .HasCharSet("utf8")
  5522. .HasCollation("utf8_general_ci");
  5523. entity.Property(e => e.SeoDescription)
  5524. .HasColumnType("varchar(500)")
  5525. .HasCharSet("utf8")
  5526. .HasCollation("utf8_general_ci");
  5527. entity.Property(e => e.SeoKeyword)
  5528. .HasColumnType("varchar(200)")
  5529. .HasCharSet("utf8")
  5530. .HasCollation("utf8_general_ci");
  5531. entity.Property(e => e.SeoTitle)
  5532. .HasColumnType("varchar(100)")
  5533. .HasCharSet("utf8")
  5534. .HasCollation("utf8_general_ci");
  5535. entity.Property(e => e.SnNo)
  5536. .HasColumnType("varchar(32)")
  5537. .HasCharSet("utf8")
  5538. .HasCollation("utf8_general_ci");
  5539. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5540. entity.Property(e => e.Status).HasColumnType("int(11)");
  5541. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  5542. entity.Property(e => e.TradeId).HasColumnType("int(11)");
  5543. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5544. entity.Property(e => e.UpdateMan)
  5545. .HasColumnType("varchar(50)")
  5546. .HasCharSet("utf8")
  5547. .HasCollation("utf8_general_ci");
  5548. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5549. entity.Property(e => e.Version).HasColumnType("int(11)");
  5550. });
  5551. modelBuilder.Entity<ProfitRewardRecord>(entity =>
  5552. {
  5553. entity.Property(e => e.Id).HasColumnType("int(11)");
  5554. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5555. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  5556. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5557. entity.Property(e => e.CreateMan)
  5558. .HasColumnType("varchar(50)")
  5559. .HasCharSet("utf8")
  5560. .HasCollation("utf8_general_ci");
  5561. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5562. entity.Property(e => e.CreditTradeProfit).HasColumnType("decimal(18,2)");
  5563. entity.Property(e => e.DebitCapSingleReward).HasColumnType("decimal(18,2)");
  5564. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  5565. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  5566. entity.Property(e => e.DebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5567. entity.Property(e => e.DebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5568. entity.Property(e => e.DebitTradeCapProfit).HasColumnType("decimal(18,2)");
  5569. entity.Property(e => e.HelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5570. entity.Property(e => e.HelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5571. entity.Property(e => e.HelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5572. entity.Property(e => e.HelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5573. entity.Property(e => e.HelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5574. entity.Property(e => e.HelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5575. entity.Property(e => e.HelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5576. entity.Property(e => e.HelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5577. entity.Property(e => e.HelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5578. entity.Property(e => e.HelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5579. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5580. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5581. entity.Property(e => e.NonQrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5582. entity.Property(e => e.NonQrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5583. entity.Property(e => e.NonQrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5584. entity.Property(e => e.NotHelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5585. entity.Property(e => e.NotHelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5586. entity.Property(e => e.NotHelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5587. entity.Property(e => e.NotHelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5588. entity.Property(e => e.NotHelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5589. entity.Property(e => e.NotHelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5590. entity.Property(e => e.NotHelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5591. entity.Property(e => e.NotHelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5592. entity.Property(e => e.NotHelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5593. entity.Property(e => e.NotHelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5594. entity.Property(e => e.OtherCreditTradeAmt).HasColumnType("decimal(18,2)");
  5595. entity.Property(e => e.OtherDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5596. entity.Property(e => e.OtherTradeAmt).HasColumnType("decimal(18,2)");
  5597. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  5598. entity.Property(e => e.QrCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5599. entity.Property(e => e.QrCreditProfitRate).HasColumnType("decimal(18,2)");
  5600. entity.Property(e => e.QrCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5601. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5602. entity.Property(e => e.QrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5603. entity.Property(e => e.QrDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5604. entity.Property(e => e.QrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5605. entity.Property(e => e.QrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5606. entity.Property(e => e.QrDebitProfitRate).HasColumnType("decimal(18,2)");
  5607. entity.Property(e => e.QrDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5608. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5609. entity.Property(e => e.RecordNo)
  5610. .HasColumnType("varchar(32)")
  5611. .HasCharSet("utf8")
  5612. .HasCollation("utf8_general_ci");
  5613. entity.Property(e => e.Remark)
  5614. .HasColumnType("varchar(64)")
  5615. .HasCharSet("utf8")
  5616. .HasCollation("utf8_general_ci");
  5617. entity.Property(e => e.SeoDescription)
  5618. .HasColumnType("varchar(500)")
  5619. .HasCharSet("utf8")
  5620. .HasCollation("utf8_general_ci");
  5621. entity.Property(e => e.SeoKeyword)
  5622. .HasColumnType("varchar(200)")
  5623. .HasCharSet("utf8")
  5624. .HasCollation("utf8_general_ci");
  5625. entity.Property(e => e.SeoTitle)
  5626. .HasColumnType("varchar(100)")
  5627. .HasCharSet("utf8")
  5628. .HasCollation("utf8_general_ci");
  5629. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5630. entity.Property(e => e.Status).HasColumnType("int(11)");
  5631. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  5632. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  5633. entity.Property(e => e.TradeMonth)
  5634. .HasColumnType("varchar(6)")
  5635. .HasCharSet("utf8")
  5636. .HasCollation("utf8_general_ci");
  5637. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  5638. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5639. entity.Property(e => e.UpdateMan)
  5640. .HasColumnType("varchar(50)")
  5641. .HasCharSet("utf8")
  5642. .HasCollation("utf8_general_ci");
  5643. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5644. entity.Property(e => e.Version).HasColumnType("int(11)");
  5645. });
  5646. modelBuilder.Entity<ProfitSubsidyDetail>(entity =>
  5647. {
  5648. entity.Property(e => e.Id).HasColumnType("int(11)");
  5649. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  5650. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5651. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5652. entity.Property(e => e.CreateMan)
  5653. .HasColumnType("varchar(50)")
  5654. .HasCharSet("utf8")
  5655. .HasCollation("utf8_general_ci");
  5656. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  5657. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5658. entity.Property(e => e.MerHelpFlag)
  5659. .HasColumnType("bit(1)")
  5660. .HasDefaultValueSql("b'0'");
  5661. entity.Property(e => e.MerNo)
  5662. .HasColumnType("varchar(32)")
  5663. .HasCharSet("utf8")
  5664. .HasCollation("utf8_general_ci");
  5665. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  5666. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  5667. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5668. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5669. entity.Property(e => e.ProductName)
  5670. .HasColumnType("varchar(16)")
  5671. .HasCharSet("utf8")
  5672. .HasCollation("utf8_general_ci");
  5673. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5674. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5675. entity.Property(e => e.RecordNo)
  5676. .HasColumnType("varchar(32)")
  5677. .HasCharSet("utf8")
  5678. .HasCollation("utf8_general_ci");
  5679. entity.Property(e => e.Remark)
  5680. .HasColumnType("varchar(64)")
  5681. .HasCharSet("utf8")
  5682. .HasCollation("utf8_general_ci");
  5683. entity.Property(e => e.SeoDescription)
  5684. .HasColumnType("varchar(500)")
  5685. .HasCharSet("utf8")
  5686. .HasCollation("utf8_general_ci");
  5687. entity.Property(e => e.SeoKeyword)
  5688. .HasColumnType("varchar(200)")
  5689. .HasCharSet("utf8")
  5690. .HasCollation("utf8_general_ci");
  5691. entity.Property(e => e.SeoTitle)
  5692. .HasColumnType("varchar(100)")
  5693. .HasCharSet("utf8")
  5694. .HasCollation("utf8_general_ci");
  5695. entity.Property(e => e.SnNo)
  5696. .HasColumnType("varchar(32)")
  5697. .HasCharSet("utf8")
  5698. .HasCollation("utf8_general_ci");
  5699. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5700. entity.Property(e => e.Status).HasColumnType("int(11)");
  5701. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  5702. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  5703. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  5704. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  5705. entity.Property(e => e.TradeMonth)
  5706. .HasColumnType("varchar(6)")
  5707. .HasCharSet("utf8")
  5708. .HasCollation("utf8_general_ci");
  5709. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5710. entity.Property(e => e.UpdateMan)
  5711. .HasColumnType("varchar(50)")
  5712. .HasCharSet("utf8")
  5713. .HasCollation("utf8_general_ci");
  5714. entity.Property(e => e.Version).HasColumnType("int(11)");
  5715. });
  5716. modelBuilder.Entity<PublicAccountSet>(entity =>
  5717. {
  5718. entity.Property(e => e.Id).HasColumnType("int(11)");
  5719. entity.Property(e => e.AlipayAppId)
  5720. .HasColumnType("varchar(50)")
  5721. .HasCharSet("utf8")
  5722. .HasCollation("utf8_general_ci");
  5723. entity.Property(e => e.AlipayPartnerId)
  5724. .HasColumnType("varchar(50)")
  5725. .HasCharSet("utf8")
  5726. .HasCollation("utf8_general_ci");
  5727. entity.Property(e => e.AlipayPrivateKey)
  5728. .HasColumnType("mediumtext")
  5729. .HasCharSet("utf8")
  5730. .HasCollation("utf8_general_ci");
  5731. entity.Property(e => e.AlipayPublicKey)
  5732. .HasColumnType("mediumtext")
  5733. .HasCharSet("utf8")
  5734. .HasCollation("utf8_general_ci");
  5735. entity.Property(e => e.AliyunAccessKeyId)
  5736. .HasColumnType("varchar(50)")
  5737. .HasCharSet("utf8")
  5738. .HasCollation("utf8_general_ci");
  5739. entity.Property(e => e.AliyunAccessKeySecret)
  5740. .HasColumnType("varchar(50)")
  5741. .HasCharSet("utf8")
  5742. .HasCollation("utf8_general_ci");
  5743. entity.Property(e => e.AliyunAndroidActivity)
  5744. .HasColumnType("varchar(100)")
  5745. .HasCharSet("utf8")
  5746. .HasCollation("utf8_general_ci");
  5747. entity.Property(e => e.AliyunAndroidNotifyTitle)
  5748. .HasColumnType("varchar(20)")
  5749. .HasCharSet("utf8")
  5750. .HasCollation("utf8_general_ci");
  5751. entity.Property(e => e.AliyunPushAndroidAppId)
  5752. .HasColumnType("varchar(50)")
  5753. .HasCharSet("utf8")
  5754. .HasCollation("utf8_general_ci");
  5755. entity.Property(e => e.AliyunPushAndroidAppSecret)
  5756. .HasColumnType("varchar(50)")
  5757. .HasCharSet("utf8")
  5758. .HasCollation("utf8_general_ci");
  5759. entity.Property(e => e.AliyunPushIosAppId)
  5760. .HasColumnType("varchar(500)")
  5761. .HasCharSet("utf8")
  5762. .HasCollation("utf8_general_ci");
  5763. entity.Property(e => e.AliyunPushIosAppSecret)
  5764. .HasColumnType("varchar(50)")
  5765. .HasCharSet("utf8")
  5766. .HasCollation("utf8_general_ci");
  5767. entity.Property(e => e.AliyunRegionId)
  5768. .HasColumnType("varchar(30)")
  5769. .HasCharSet("utf8")
  5770. .HasCollation("utf8_general_ci");
  5771. entity.Property(e => e.ErpApiUrl)
  5772. .HasColumnType("varchar(200)")
  5773. .HasCharSet("utf8")
  5774. .HasCollation("utf8_general_ci");
  5775. entity.Property(e => e.ErpAppCode)
  5776. .HasColumnType("varchar(100)")
  5777. .HasCharSet("utf8")
  5778. .HasCollation("utf8_general_ci");
  5779. entity.Property(e => e.MeiQiaAppKey)
  5780. .HasColumnType("varchar(50)")
  5781. .HasCharSet("utf8")
  5782. .HasCollation("utf8_general_ci");
  5783. entity.Property(e => e.MobAppKey)
  5784. .HasColumnType("varchar(50)")
  5785. .HasCharSet("utf8")
  5786. .HasCollation("utf8_general_ci");
  5787. entity.Property(e => e.MobAppSecret)
  5788. .HasColumnType("varchar(50)")
  5789. .HasCharSet("utf8")
  5790. .HasCollation("utf8_general_ci");
  5791. entity.Property(e => e.QqAndroidAppId)
  5792. .HasColumnType("varchar(50)")
  5793. .HasCharSet("utf8")
  5794. .HasCollation("utf8_general_ci");
  5795. entity.Property(e => e.QqAndroidAppKey)
  5796. .HasColumnType("varchar(50)")
  5797. .HasCharSet("utf8")
  5798. .HasCollation("utf8_general_ci");
  5799. entity.Property(e => e.QqIosAppId)
  5800. .HasColumnType("varchar(50)")
  5801. .HasCharSet("utf8")
  5802. .HasCollation("utf8_general_ci");
  5803. entity.Property(e => e.QqIosAppKey)
  5804. .HasColumnType("varchar(50)")
  5805. .HasCharSet("utf8")
  5806. .HasCollation("utf8_general_ci");
  5807. entity.Property(e => e.ServerIp)
  5808. .HasColumnType("varchar(15)")
  5809. .HasCharSet("utf8")
  5810. .HasCollation("utf8_general_ci");
  5811. entity.Property(e => e.SmsApiDefaultTemplate)
  5812. .HasColumnType("varchar(200)")
  5813. .HasCharSet("utf8")
  5814. .HasCollation("utf8_general_ci");
  5815. entity.Property(e => e.SmsApiPwd)
  5816. .HasColumnType("varchar(50)")
  5817. .HasCharSet("utf8")
  5818. .HasCollation("utf8_general_ci");
  5819. entity.Property(e => e.SmsApiSign)
  5820. .HasColumnType("varchar(10)")
  5821. .HasCharSet("utf8")
  5822. .HasCollation("utf8_general_ci");
  5823. entity.Property(e => e.SmsApiUserId)
  5824. .HasColumnType("varchar(50)")
  5825. .HasCharSet("utf8")
  5826. .HasCollation("utf8_general_ci");
  5827. entity.Property(e => e.WeChatAppId)
  5828. .HasColumnType("varchar(50)")
  5829. .HasCharSet("utf8")
  5830. .HasCollation("utf8_general_ci");
  5831. entity.Property(e => e.WeChatAppSecret)
  5832. .HasColumnType("varchar(50)")
  5833. .HasCharSet("utf8")
  5834. .HasCollation("utf8_general_ci");
  5835. entity.Property(e => e.WeChatMchId)
  5836. .HasColumnType("varchar(20)")
  5837. .HasCharSet("utf8")
  5838. .HasCollation("utf8_general_ci");
  5839. entity.Property(e => e.WeChatMiniAppId)
  5840. .HasColumnType("varchar(50)")
  5841. .HasCharSet("utf8")
  5842. .HasCollation("utf8_general_ci");
  5843. entity.Property(e => e.WeChatMiniAppSecret)
  5844. .HasColumnType("varchar(50)")
  5845. .HasCharSet("utf8")
  5846. .HasCollation("utf8_general_ci");
  5847. entity.Property(e => e.WeChatOpenAppId)
  5848. .HasColumnType("varchar(50)")
  5849. .HasCharSet("utf8")
  5850. .HasCollation("utf8_general_ci");
  5851. entity.Property(e => e.WeChatOpenAppSecret)
  5852. .HasColumnType("varchar(50)")
  5853. .HasCharSet("utf8")
  5854. .HasCollation("utf8_general_ci");
  5855. entity.Property(e => e.WeChatPayKey)
  5856. .HasColumnType("varchar(50)")
  5857. .HasCharSet("utf8")
  5858. .HasCollation("utf8_general_ci");
  5859. });
  5860. modelBuilder.Entity<PullNewAct>(entity =>
  5861. {
  5862. entity.Property(e => e.Id).HasColumnType("int(11)");
  5863. entity.Property(e => e.ActEffectEndDate).HasColumnType("datetime");
  5864. entity.Property(e => e.ActEffectStartDate).HasColumnType("datetime");
  5865. entity.Property(e => e.ActStdCond)
  5866. .HasColumnType("varchar(32)")
  5867. .HasCharSet("utf8")
  5868. .HasCollation("utf8_general_ci");
  5869. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5870. entity.Property(e => e.CreateMan)
  5871. .HasColumnType("varchar(50)")
  5872. .HasCharSet("utf8")
  5873. .HasCollation("utf8_general_ci");
  5874. entity.Property(e => e.ProductName)
  5875. .HasColumnType("varchar(32)")
  5876. .HasCharSet("utf8")
  5877. .HasCollation("utf8_general_ci");
  5878. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  5879. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5880. entity.Property(e => e.Remark)
  5881. .HasColumnType("varchar(128)")
  5882. .HasCharSet("utf8")
  5883. .HasCollation("utf8_general_ci");
  5884. entity.Property(e => e.SeoDescription)
  5885. .HasColumnType("varchar(500)")
  5886. .HasCharSet("utf8")
  5887. .HasCollation("utf8_general_ci");
  5888. entity.Property(e => e.SeoKeyword)
  5889. .HasColumnType("varchar(200)")
  5890. .HasCharSet("utf8")
  5891. .HasCollation("utf8_general_ci");
  5892. entity.Property(e => e.SeoTitle)
  5893. .HasColumnType("varchar(100)")
  5894. .HasCharSet("utf8")
  5895. .HasCollation("utf8_general_ci");
  5896. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  5897. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5898. entity.Property(e => e.Status).HasColumnType("int(11)");
  5899. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5900. entity.Property(e => e.UpdateMan)
  5901. .HasColumnType("varchar(50)")
  5902. .HasCharSet("utf8")
  5903. .HasCollation("utf8_general_ci");
  5904. entity.Property(e => e.Version).HasColumnType("int(11)");
  5905. });
  5906. modelBuilder.Entity<PullNewDetail>(entity =>
  5907. {
  5908. entity.Property(e => e.Id).HasColumnType("int(11)");
  5909. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  5910. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5911. entity.Property(e => e.CreateMan)
  5912. .HasColumnType("varchar(50)")
  5913. .HasCharSet("utf8")
  5914. .HasCollation("utf8_general_ci");
  5915. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5916. entity.Property(e => e.RecMallBrandId).HasColumnType("int(11)");
  5917. entity.Property(e => e.RecMallOrder)
  5918. .HasColumnType("varchar(32)")
  5919. .HasCharSet("utf8")
  5920. .HasCollation("utf8_general_ci");
  5921. entity.Property(e => e.RecMallOrderTime).HasColumnType("datetime");
  5922. entity.Property(e => e.RecMallProductName)
  5923. .HasColumnType("varchar(32)")
  5924. .HasCharSet("utf8")
  5925. .HasCollation("utf8_general_ci");
  5926. entity.Property(e => e.RecMallProductNum).HasColumnType("int(11)");
  5927. entity.Property(e => e.RecMallSendTime).HasColumnType("datetime");
  5928. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  5929. entity.Property(e => e.RecUserType).HasColumnType("int(11)");
  5930. entity.Property(e => e.RegDate).HasColumnType("datetime");
  5931. entity.Property(e => e.Remark)
  5932. .HasColumnType("varchar(64)")
  5933. .HasCharSet("utf8")
  5934. .HasCollation("utf8_general_ci");
  5935. entity.Property(e => e.RewardStatus).HasColumnType("int(11)");
  5936. entity.Property(e => e.SeoDescription)
  5937. .HasColumnType("varchar(500)")
  5938. .HasCharSet("utf8")
  5939. .HasCollation("utf8_general_ci");
  5940. entity.Property(e => e.SeoKeyword)
  5941. .HasColumnType("varchar(200)")
  5942. .HasCharSet("utf8")
  5943. .HasCollation("utf8_general_ci");
  5944. entity.Property(e => e.SeoTitle)
  5945. .HasColumnType("varchar(100)")
  5946. .HasCharSet("utf8")
  5947. .HasCollation("utf8_general_ci");
  5948. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5949. entity.Property(e => e.StatDate)
  5950. .HasColumnType("varchar(8)")
  5951. .HasCharSet("utf8")
  5952. .HasCollation("utf8_general_ci");
  5953. entity.Property(e => e.StatMonth)
  5954. .HasColumnType("varchar(6)")
  5955. .HasCharSet("utf8")
  5956. .HasCollation("utf8_general_ci");
  5957. entity.Property(e => e.StatType).HasColumnType("int(11)");
  5958. entity.Property(e => e.Status).HasColumnType("int(11)");
  5959. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5960. entity.Property(e => e.UpdateMan)
  5961. .HasColumnType("varchar(50)")
  5962. .HasCharSet("utf8")
  5963. .HasCollation("utf8_general_ci");
  5964. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5965. entity.Property(e => e.Version).HasColumnType("int(11)");
  5966. });
  5967. modelBuilder.Entity<PullnewSummary>(entity =>
  5968. {
  5969. entity.Property(e => e.Id).HasColumnType("int(11)");
  5970. entity.Property(e => e.BizSnDelayDay).HasColumnType("int(11)");
  5971. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5972. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5973. entity.Property(e => e.CreateMan)
  5974. .HasColumnType("varchar(50)")
  5975. .HasCharSet("utf8")
  5976. .HasCollation("utf8_general_ci");
  5977. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5978. entity.Property(e => e.RecUserAuthNum).HasColumnType("int(11)");
  5979. entity.Property(e => e.RecUserDeliveryStdNum).HasColumnType("int(11)");
  5980. entity.Property(e => e.Remark)
  5981. .HasColumnType("varchar(64)")
  5982. .HasCharSet("utf8")
  5983. .HasCollation("utf8_general_ci");
  5984. entity.Property(e => e.RuleSnDelayDay).HasColumnType("int(11)");
  5985. entity.Property(e => e.SeoDescription)
  5986. .HasColumnType("varchar(500)")
  5987. .HasCharSet("utf8")
  5988. .HasCollation("utf8_general_ci");
  5989. entity.Property(e => e.SeoKeyword)
  5990. .HasColumnType("varchar(200)")
  5991. .HasCharSet("utf8")
  5992. .HasCollation("utf8_general_ci");
  5993. entity.Property(e => e.SeoTitle)
  5994. .HasColumnType("varchar(100)")
  5995. .HasCharSet("utf8")
  5996. .HasCollation("utf8_general_ci");
  5997. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5998. entity.Property(e => e.StatDate)
  5999. .HasColumnType("varchar(8)")
  6000. .HasCharSet("utf8")
  6001. .HasCollation("utf8_general_ci");
  6002. entity.Property(e => e.StatMonth)
  6003. .HasColumnType("varchar(6)")
  6004. .HasCharSet("utf8")
  6005. .HasCollation("utf8_general_ci");
  6006. entity.Property(e => e.Status).HasColumnType("int(11)");
  6007. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6008. entity.Property(e => e.UpdateMan)
  6009. .HasColumnType("varchar(50)")
  6010. .HasCharSet("utf8")
  6011. .HasCollation("utf8_general_ci");
  6012. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6013. entity.Property(e => e.Version).HasColumnType("int(11)");
  6014. });
  6015. modelBuilder.Entity<RightDic>(entity =>
  6016. {
  6017. entity.Property(e => e.Id)
  6018. .HasColumnName("ID")
  6019. .HasColumnType("varchar(50)")
  6020. .HasCharSet("utf8")
  6021. .HasCollation("utf8_general_ci");
  6022. entity.Property(e => e.Icon)
  6023. .HasColumnType("varchar(50)")
  6024. .HasCharSet("utf8")
  6025. .HasCollation("utf8_general_ci");
  6026. entity.Property(e => e.MainDataList)
  6027. .HasColumnType("bit(1)")
  6028. .HasDefaultValueSql("b'0'");
  6029. entity.Property(e => e.MainMenu)
  6030. .HasColumnType("bit(1)")
  6031. .HasDefaultValueSql("b'0'");
  6032. entity.Property(e => e.MainStat)
  6033. .HasColumnType("bit(1)")
  6034. .HasDefaultValueSql("b'0'");
  6035. entity.Property(e => e.Name)
  6036. .HasColumnType("varchar(50)")
  6037. .HasCharSet("utf8")
  6038. .HasCollation("utf8_general_ci");
  6039. entity.Property(e => e.OtherRight)
  6040. .HasColumnType("varchar(500)")
  6041. .HasCharSet("utf8")
  6042. .HasCollation("utf8_general_ci");
  6043. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  6044. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6045. entity.Property(e => e.Url)
  6046. .HasColumnType("varchar(200)")
  6047. .HasCharSet("utf8")
  6048. .HasCollation("utf8_general_ci");
  6049. });
  6050. modelBuilder.Entity<ServiceCenter>(entity =>
  6051. {
  6052. entity.Property(e => e.Id).HasColumnType("int(11)");
  6053. entity.Property(e => e.CategoryId).HasColumnType("int(11)");
  6054. entity.Property(e => e.Content)
  6055. .HasColumnType("longtext")
  6056. .HasCharSet("utf8")
  6057. .HasCollation("utf8_general_ci");
  6058. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6059. entity.Property(e => e.CreateMan)
  6060. .HasColumnType("varchar(50)")
  6061. .HasCharSet("utf8")
  6062. .HasCollation("utf8_general_ci");
  6063. entity.Property(e => e.QueryCount).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.Status).HasColumnType("int(11)");
  6078. entity.Property(e => e.SubTitle)
  6079. .HasColumnType("varchar(50)")
  6080. .HasCharSet("utf8")
  6081. .HasCollation("utf8_general_ci");
  6082. entity.Property(e => e.Title)
  6083. .HasColumnType("varchar(50)")
  6084. .HasCharSet("utf8")
  6085. .HasCollation("utf8_general_ci");
  6086. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6087. entity.Property(e => e.UpdateMan)
  6088. .HasColumnType("varchar(50)")
  6089. .HasCharSet("utf8")
  6090. .HasCollation("utf8_general_ci");
  6091. entity.Property(e => e.Version).HasColumnType("int(11)");
  6092. });
  6093. modelBuilder.Entity<StoreBalance>(entity =>
  6094. {
  6095. entity.Property(e => e.Id).HasColumnType("int(11)");
  6096. entity.Property(e => e.AfterLaveNum).HasColumnType("int(11)");
  6097. entity.Property(e => e.AfterOutNum).HasColumnType("int(11)");
  6098. entity.Property(e => e.AfterTotalNum).HasColumnType("int(11)");
  6099. entity.Property(e => e.BeforeLaveNum).HasColumnType("int(11)");
  6100. entity.Property(e => e.BeforeOutNum).HasColumnType("int(11)");
  6101. entity.Property(e => e.BeforeTotalNum).HasColumnType("int(11)");
  6102. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6103. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6104. entity.Property(e => e.CreateMan)
  6105. .HasColumnType("varchar(50)")
  6106. .HasCharSet("utf8")
  6107. .HasCollation("utf8_general_ci");
  6108. entity.Property(e => e.OpStoreNum).HasColumnType("int(11)");
  6109. entity.Property(e => e.OpSymbol)
  6110. .HasColumnType("varchar(1)")
  6111. .HasCharSet("utf8")
  6112. .HasCollation("utf8_general_ci");
  6113. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6114. entity.Property(e => e.SeoDescription)
  6115. .HasColumnType("varchar(500)")
  6116. .HasCharSet("utf8")
  6117. .HasCollation("utf8_general_ci");
  6118. entity.Property(e => e.SeoKeyword)
  6119. .HasColumnType("varchar(200)")
  6120. .HasCharSet("utf8")
  6121. .HasCollation("utf8_general_ci");
  6122. entity.Property(e => e.SeoTitle)
  6123. .HasColumnType("varchar(100)")
  6124. .HasCharSet("utf8")
  6125. .HasCollation("utf8_general_ci");
  6126. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6127. entity.Property(e => e.Status).HasColumnType("int(11)");
  6128. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6129. entity.Property(e => e.TransRecordNo)
  6130. .HasColumnType("varchar(32)")
  6131. .HasCharSet("utf8")
  6132. .HasCollation("utf8_general_ci");
  6133. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6134. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6135. entity.Property(e => e.UpdateMan)
  6136. .HasColumnType("varchar(50)")
  6137. .HasCharSet("utf8")
  6138. .HasCollation("utf8_general_ci");
  6139. entity.Property(e => e.Version).HasColumnType("int(11)");
  6140. });
  6141. modelBuilder.Entity<StoreChangeHistory>(entity =>
  6142. {
  6143. entity.Property(e => e.Id).HasColumnType("int(11)");
  6144. entity.Property(e => e.BizBatchNo)
  6145. .HasColumnType("varchar(32)")
  6146. .HasCharSet("utf8")
  6147. .HasCollation("utf8_general_ci");
  6148. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6149. entity.Property(e => e.ChangeRecordNo)
  6150. .HasColumnType("varchar(32)")
  6151. .HasCharSet("utf8")
  6152. .HasCollation("utf8_general_ci");
  6153. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6154. entity.Property(e => e.CreateMan)
  6155. .HasColumnType("varchar(50)")
  6156. .HasCharSet("utf8")
  6157. .HasCollation("utf8_general_ci");
  6158. entity.Property(e => e.DeviceModel)
  6159. .HasColumnType("varchar(32)")
  6160. .HasCharSet("utf8")
  6161. .HasCollation("utf8_general_ci");
  6162. entity.Property(e => e.DeviceType)
  6163. .HasColumnType("varchar(32)")
  6164. .HasCharSet("utf8")
  6165. .HasCollation("utf8_general_ci");
  6166. entity.Property(e => e.DeviceVendor)
  6167. .HasColumnType("varchar(32)")
  6168. .HasCharSet("utf8")
  6169. .HasCollation("utf8_general_ci");
  6170. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6171. entity.Property(e => e.FromRemark)
  6172. .HasColumnType("varchar(64)")
  6173. .HasCharSet("utf8")
  6174. .HasCollation("utf8_general_ci");
  6175. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6176. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6177. entity.Property(e => e.SeoDescription)
  6178. .HasColumnType("varchar(500)")
  6179. .HasCharSet("utf8")
  6180. .HasCollation("utf8_general_ci");
  6181. entity.Property(e => e.SeoKeyword)
  6182. .HasColumnType("varchar(200)")
  6183. .HasCharSet("utf8")
  6184. .HasCollation("utf8_general_ci");
  6185. entity.Property(e => e.SeoTitle)
  6186. .HasColumnType("varchar(100)")
  6187. .HasCharSet("utf8")
  6188. .HasCollation("utf8_general_ci");
  6189. entity.Property(e => e.SnNo)
  6190. .HasColumnType("varchar(32)")
  6191. .HasCharSet("utf8")
  6192. .HasCollation("utf8_general_ci");
  6193. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6194. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6195. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6196. entity.Property(e => e.Status).HasColumnType("int(11)");
  6197. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6198. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6199. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6200. entity.Property(e => e.ToRemark)
  6201. .HasColumnType("varchar(64)")
  6202. .HasCharSet("utf8")
  6203. .HasCollation("utf8_general_ci");
  6204. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6205. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6206. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6207. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6208. entity.Property(e => e.UpdateMan)
  6209. .HasColumnType("varchar(50)")
  6210. .HasCharSet("utf8")
  6211. .HasCollation("utf8_general_ci");
  6212. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6213. entity.Property(e => e.Version).HasColumnType("int(11)");
  6214. });
  6215. modelBuilder.Entity<StoreForCode>(entity =>
  6216. {
  6217. entity.HasKey(e => e.Code)
  6218. .HasName("PRIMARY");
  6219. entity.Property(e => e.Code)
  6220. .HasColumnType("varchar(30)")
  6221. .HasCharSet("utf8")
  6222. .HasCollation("utf8_general_ci");
  6223. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6224. });
  6225. modelBuilder.Entity<StoreForName>(entity =>
  6226. {
  6227. entity.HasKey(e => e.Name)
  6228. .HasName("PRIMARY");
  6229. entity.Property(e => e.Name)
  6230. .HasColumnType("varchar(30)")
  6231. .HasCharSet("utf8")
  6232. .HasCollation("utf8_general_ci");
  6233. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6234. });
  6235. modelBuilder.Entity<StoreHouse>(entity =>
  6236. {
  6237. entity.Property(e => e.Id).HasColumnType("int(11)");
  6238. entity.Property(e => e.Address)
  6239. .HasColumnType("varchar(128)")
  6240. .HasCharSet("utf8")
  6241. .HasCollation("utf8_general_ci");
  6242. entity.Property(e => e.Areas)
  6243. .HasColumnType("varchar(30)")
  6244. .HasCharSet("utf8")
  6245. .HasCollation("utf8_general_ci");
  6246. entity.Property(e => e.BrandId)
  6247. .HasColumnType("varchar(30)")
  6248. .HasCharSet("utf8")
  6249. .HasCollation("utf8_general_ci");
  6250. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6251. entity.Property(e => e.CreateMan)
  6252. .HasColumnType("varchar(50)")
  6253. .HasCharSet("utf8")
  6254. .HasCollation("utf8_general_ci");
  6255. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  6256. entity.Property(e => e.LimitTopUserId)
  6257. .HasColumnType("varchar(100)")
  6258. .HasCharSet("utf8")
  6259. .HasCollation("utf8_general_ci");
  6260. entity.Property(e => e.ManageMobile)
  6261. .HasColumnType("varchar(11)")
  6262. .HasCharSet("utf8")
  6263. .HasCollation("utf8_general_ci");
  6264. entity.Property(e => e.ManageUserId).HasColumnType("int(11)");
  6265. entity.Property(e => e.ManagerEmail)
  6266. .HasColumnType("varchar(32)")
  6267. .HasCharSet("utf8")
  6268. .HasCollation("utf8_general_ci");
  6269. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  6270. entity.Property(e => e.ParentNav)
  6271. .HasColumnType("longtext")
  6272. .HasCharSet("utf8")
  6273. .HasCollation("utf8_general_ci");
  6274. entity.Property(e => e.ParentStoreId).HasColumnType("int(11)");
  6275. entity.Property(e => e.ProductName)
  6276. .HasColumnType("varchar(32)")
  6277. .HasCharSet("utf8")
  6278. .HasCollation("utf8_general_ci");
  6279. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6280. entity.Property(e => e.Remark)
  6281. .HasColumnType("varchar(128)")
  6282. .HasCharSet("utf8")
  6283. .HasCollation("utf8_general_ci");
  6284. entity.Property(e => e.SeoDescription)
  6285. .HasColumnType("varchar(500)")
  6286. .HasCharSet("utf8")
  6287. .HasCollation("utf8_general_ci");
  6288. entity.Property(e => e.SeoKeyword)
  6289. .HasColumnType("varchar(200)")
  6290. .HasCharSet("utf8")
  6291. .HasCollation("utf8_general_ci");
  6292. entity.Property(e => e.SeoTitle)
  6293. .HasColumnType("varchar(100)")
  6294. .HasCharSet("utf8")
  6295. .HasCollation("utf8_general_ci");
  6296. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6297. entity.Property(e => e.Status).HasColumnType("int(11)");
  6298. entity.Property(e => e.StoreKind).HasColumnType("int(11)");
  6299. entity.Property(e => e.StoreName)
  6300. .HasColumnType("varchar(32)")
  6301. .HasCharSet("utf8")
  6302. .HasCollation("utf8_general_ci");
  6303. entity.Property(e => e.StoreNo)
  6304. .HasColumnType("varchar(16)")
  6305. .HasCharSet("utf8")
  6306. .HasCollation("utf8_general_ci");
  6307. entity.Property(e => e.StoreStatus).HasColumnType("int(11)");
  6308. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  6309. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  6310. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6311. entity.Property(e => e.UpdateMan)
  6312. .HasColumnType("varchar(50)")
  6313. .HasCharSet("utf8")
  6314. .HasCollation("utf8_general_ci");
  6315. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6316. entity.Property(e => e.Version).HasColumnType("int(11)");
  6317. });
  6318. modelBuilder.Entity<StoreMallOrderSummary>(entity =>
  6319. {
  6320. entity.Property(e => e.Id).HasColumnType("int(11)");
  6321. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6322. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6323. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6324. entity.Property(e => e.CreateMan)
  6325. .HasColumnType("varchar(50)")
  6326. .HasCharSet("utf8")
  6327. .HasCollation("utf8_general_ci");
  6328. entity.Property(e => e.OrderAmt).HasColumnType("int(11)");
  6329. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  6330. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6331. entity.Property(e => e.RefundAmt).HasColumnType("decimal(18,2)");
  6332. entity.Property(e => e.RefundOrderNum).HasColumnType("int(11)");
  6333. entity.Property(e => e.Remark)
  6334. .HasColumnType("varchar(64)")
  6335. .HasCharSet("utf8")
  6336. .HasCollation("utf8_general_ci");
  6337. entity.Property(e => e.SeoDescription)
  6338. .HasColumnType("varchar(500)")
  6339. .HasCharSet("utf8")
  6340. .HasCollation("utf8_general_ci");
  6341. entity.Property(e => e.SeoKeyword)
  6342. .HasColumnType("varchar(200)")
  6343. .HasCharSet("utf8")
  6344. .HasCollation("utf8_general_ci");
  6345. entity.Property(e => e.SeoTitle)
  6346. .HasColumnType("varchar(100)")
  6347. .HasCharSet("utf8")
  6348. .HasCollation("utf8_general_ci");
  6349. entity.Property(e => e.SettleAmt).HasColumnType("decimal(18,2)");
  6350. entity.Property(e => e.SettleStatus).HasColumnType("int(11)");
  6351. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6352. entity.Property(e => e.Status).HasColumnType("int(11)");
  6353. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6354. entity.Property(e => e.TradeMonth)
  6355. .HasColumnType("varchar(6)")
  6356. .HasCharSet("utf8")
  6357. .HasCollation("utf8_general_ci");
  6358. entity.Property(e => e.UnitPrice).HasColumnType("decimal(18,2)");
  6359. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6360. entity.Property(e => e.UpdateMan)
  6361. .HasColumnType("varchar(50)")
  6362. .HasCharSet("utf8")
  6363. .HasCollation("utf8_general_ci");
  6364. entity.Property(e => e.Version).HasColumnType("int(11)");
  6365. });
  6366. modelBuilder.Entity<StoreSnActivateSummary>(entity =>
  6367. {
  6368. entity.Property(e => e.Id).HasColumnType("int(11)");
  6369. entity.Property(e => e.ActivateNum).HasColumnType("int(11)");
  6370. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6371. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6372. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6373. entity.Property(e => e.CreateMan)
  6374. .HasColumnType("varchar(50)")
  6375. .HasCharSet("utf8")
  6376. .HasCollation("utf8_general_ci");
  6377. entity.Property(e => e.EffectActNum).HasColumnType("int(11)");
  6378. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6379. entity.Property(e => e.RejectActNum).HasColumnType("int(11)");
  6380. entity.Property(e => e.Remark)
  6381. .HasColumnType("varchar(64)")
  6382. .HasCharSet("utf8")
  6383. .HasCollation("utf8_general_ci");
  6384. entity.Property(e => e.SeoDescription)
  6385. .HasColumnType("varchar(500)")
  6386. .HasCharSet("utf8")
  6387. .HasCollation("utf8_general_ci");
  6388. entity.Property(e => e.SeoKeyword)
  6389. .HasColumnType("varchar(200)")
  6390. .HasCharSet("utf8")
  6391. .HasCollation("utf8_general_ci");
  6392. entity.Property(e => e.SeoTitle)
  6393. .HasColumnType("varchar(100)")
  6394. .HasCharSet("utf8")
  6395. .HasCollation("utf8_general_ci");
  6396. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6397. entity.Property(e => e.Status).HasColumnType("int(11)");
  6398. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6399. entity.Property(e => e.TradeDate)
  6400. .HasColumnType("varchar(8)")
  6401. .HasCharSet("utf8")
  6402. .HasCollation("utf8_general_ci");
  6403. entity.Property(e => e.TradeMonth)
  6404. .HasColumnType("varchar(6)")
  6405. .HasCharSet("utf8")
  6406. .HasCollation("utf8_general_ci");
  6407. entity.Property(e => e.TransferActNum).HasColumnType("int(11)");
  6408. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6409. entity.Property(e => e.UpdateMan)
  6410. .HasColumnType("varchar(50)")
  6411. .HasCharSet("utf8")
  6412. .HasCollation("utf8_general_ci");
  6413. entity.Property(e => e.UserApplyNum).HasColumnType("int(11)");
  6414. entity.Property(e => e.Version).HasColumnType("int(11)");
  6415. });
  6416. modelBuilder.Entity<StoreStockChange>(entity =>
  6417. {
  6418. entity.Property(e => e.Id).HasColumnType("int(11)");
  6419. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  6420. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  6421. entity.Property(e => e.BindMerchant).HasColumnType("int(11)");
  6422. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  6423. entity.Property(e => e.BizBatchNo)
  6424. .HasColumnType("varchar(32)")
  6425. .HasCharSet("utf8")
  6426. .HasCollation("utf8_general_ci");
  6427. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6428. entity.Property(e => e.BrandType)
  6429. .HasColumnType("varchar(10)")
  6430. .HasCharSet("utf8")
  6431. .HasCollation("utf8_general_ci");
  6432. entity.Property(e => e.ChangeNo)
  6433. .HasColumnType("varchar(32)")
  6434. .HasCharSet("utf8")
  6435. .HasCollation("utf8_general_ci");
  6436. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6437. entity.Property(e => e.CreateMan)
  6438. .HasColumnType("varchar(50)")
  6439. .HasCharSet("utf8")
  6440. .HasCollation("utf8_general_ci");
  6441. entity.Property(e => e.DeviceModel)
  6442. .HasColumnType("varchar(32)")
  6443. .HasCharSet("utf8")
  6444. .HasCollation("utf8_general_ci");
  6445. entity.Property(e => e.DeviceType)
  6446. .HasColumnType("varchar(32)")
  6447. .HasCharSet("utf8")
  6448. .HasCollation("utf8_general_ci");
  6449. entity.Property(e => e.DeviceVendor)
  6450. .HasColumnType("varchar(32)")
  6451. .HasCharSet("utf8")
  6452. .HasCollation("utf8_general_ci");
  6453. entity.Property(e => e.ExpressNo)
  6454. .HasColumnType("varchar(32)")
  6455. .HasCharSet("utf8")
  6456. .HasCollation("utf8_general_ci");
  6457. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6458. entity.Property(e => e.FromRemark)
  6459. .HasColumnType("varchar(64)")
  6460. .HasCharSet("utf8")
  6461. .HasCollation("utf8_general_ci");
  6462. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6463. entity.Property(e => e.ProductName)
  6464. .HasColumnType("varchar(32)")
  6465. .HasCharSet("utf8")
  6466. .HasCollation("utf8_general_ci");
  6467. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6468. entity.Property(e => e.SeoDescription)
  6469. .HasColumnType("varchar(500)")
  6470. .HasCharSet("utf8")
  6471. .HasCollation("utf8_general_ci");
  6472. entity.Property(e => e.SeoKeyword)
  6473. .HasColumnType("varchar(200)")
  6474. .HasCharSet("utf8")
  6475. .HasCollation("utf8_general_ci");
  6476. entity.Property(e => e.SeoTitle)
  6477. .HasColumnType("varchar(100)")
  6478. .HasCharSet("utf8")
  6479. .HasCollation("utf8_general_ci");
  6480. entity.Property(e => e.SnNo)
  6481. .HasColumnType("varchar(32)")
  6482. .HasCharSet("utf8")
  6483. .HasCollation("utf8_general_ci");
  6484. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  6485. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6486. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6487. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6488. entity.Property(e => e.Status).HasColumnType("int(11)");
  6489. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6490. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6491. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6492. entity.Property(e => e.ToRemark)
  6493. .HasColumnType("varchar(64)")
  6494. .HasCharSet("utf8")
  6495. .HasCollation("utf8_general_ci");
  6496. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6497. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6498. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6499. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6500. entity.Property(e => e.UpdateMan)
  6501. .HasColumnType("varchar(50)")
  6502. .HasCharSet("utf8")
  6503. .HasCollation("utf8_general_ci");
  6504. entity.Property(e => e.Version).HasColumnType("int(11)");
  6505. });
  6506. modelBuilder.Entity<StoreSwapSn>(entity =>
  6507. {
  6508. entity.Property(e => e.Id).HasColumnType("int(11)");
  6509. entity.Property(e => e.ActType).HasColumnType("int(11)");
  6510. entity.Property(e => e.ActTypeDesc)
  6511. .HasColumnType("varchar(64)")
  6512. .HasCharSet("utf8")
  6513. .HasCollation("utf8_general_ci");
  6514. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6515. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6516. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6517. entity.Property(e => e.CreateMan)
  6518. .HasColumnType("varchar(50)")
  6519. .HasCharSet("utf8")
  6520. .HasCollation("utf8_general_ci");
  6521. entity.Property(e => e.PosType)
  6522. .HasColumnType("varchar(32)")
  6523. .HasCharSet("utf8")
  6524. .HasCollation("utf8_general_ci");
  6525. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6526. entity.Property(e => e.Remark)
  6527. .HasColumnType("varchar(128)")
  6528. .HasCharSet("utf8")
  6529. .HasCollation("utf8_general_ci");
  6530. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  6531. entity.Property(e => e.SeoDescription)
  6532. .HasColumnType("varchar(500)")
  6533. .HasCharSet("utf8")
  6534. .HasCollation("utf8_general_ci");
  6535. entity.Property(e => e.SeoKeyword)
  6536. .HasColumnType("varchar(200)")
  6537. .HasCharSet("utf8")
  6538. .HasCollation("utf8_general_ci");
  6539. entity.Property(e => e.SeoTitle)
  6540. .HasColumnType("varchar(100)")
  6541. .HasCharSet("utf8")
  6542. .HasCollation("utf8_general_ci");
  6543. entity.Property(e => e.SnNo)
  6544. .HasColumnType("varchar(32)")
  6545. .HasCharSet("utf8")
  6546. .HasCollation("utf8_general_ci");
  6547. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  6548. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6549. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6550. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  6551. entity.Property(e => e.Status).HasColumnType("int(11)");
  6552. entity.Property(e => e.SwapApplyDate).HasColumnType("datetime");
  6553. entity.Property(e => e.SwapApplyOrderNo)
  6554. .HasColumnType("varchar(32)")
  6555. .HasCharSet("utf8")
  6556. .HasCollation("utf8_general_ci");
  6557. entity.Property(e => e.SwapExtProductTypes)
  6558. .HasColumnType("varchar(16)")
  6559. .HasCharSet("utf8")
  6560. .HasCollation("utf8_general_ci");
  6561. entity.Property(e => e.SwapSnNo)
  6562. .HasColumnType("varchar(32)")
  6563. .HasCharSet("utf8")
  6564. .HasCollation("utf8_general_ci");
  6565. entity.Property(e => e.SwapStatus).HasColumnType("int(11)");
  6566. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6567. entity.Property(e => e.UpdateMan)
  6568. .HasColumnType("varchar(50)")
  6569. .HasCharSet("utf8")
  6570. .HasCollation("utf8_general_ci");
  6571. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6572. entity.Property(e => e.Version).HasColumnType("int(11)");
  6573. });
  6574. modelBuilder.Entity<SysAdmin>(entity =>
  6575. {
  6576. entity.Property(e => e.Id).HasColumnType("int(11)");
  6577. entity.Property(e => e.AdminName)
  6578. .HasColumnType("varchar(50)")
  6579. .HasCharSet("utf8")
  6580. .HasCollation("utf8_general_ci");
  6581. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6582. entity.Property(e => e.CreateMan)
  6583. .HasColumnType("varchar(50)")
  6584. .HasCharSet("utf8")
  6585. .HasCollation("utf8_general_ci");
  6586. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  6587. entity.Property(e => e.Password)
  6588. .HasColumnType("varchar(32)")
  6589. .HasCharSet("utf8")
  6590. .HasCollation("utf8_general_ci");
  6591. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6592. entity.Property(e => e.RealName)
  6593. .HasColumnType("varchar(50)")
  6594. .HasCharSet("utf8")
  6595. .HasCollation("utf8_general_ci");
  6596. entity.Property(e => e.Role)
  6597. .HasColumnType("varchar(30)")
  6598. .HasCharSet("utf8")
  6599. .HasCollation("utf8_general_ci");
  6600. entity.Property(e => e.SeoDescription)
  6601. .HasColumnType("varchar(500)")
  6602. .HasCharSet("utf8")
  6603. .HasCollation("utf8_general_ci");
  6604. entity.Property(e => e.SeoKeyword)
  6605. .HasColumnType("varchar(200)")
  6606. .HasCharSet("utf8")
  6607. .HasCollation("utf8_general_ci");
  6608. entity.Property(e => e.SeoTitle)
  6609. .HasColumnType("varchar(100)")
  6610. .HasCharSet("utf8")
  6611. .HasCollation("utf8_general_ci");
  6612. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6613. entity.Property(e => e.Status).HasColumnType("int(11)");
  6614. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6615. entity.Property(e => e.UpdateMan)
  6616. .HasColumnType("varchar(50)")
  6617. .HasCharSet("utf8")
  6618. .HasCollation("utf8_general_ci");
  6619. entity.Property(e => e.Version).HasColumnType("int(11)");
  6620. });
  6621. modelBuilder.Entity<SysAdminRole>(entity =>
  6622. {
  6623. entity.Property(e => e.Id).HasColumnType("int(11)");
  6624. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6625. entity.Property(e => e.CreateMan)
  6626. .HasColumnType("varchar(50)")
  6627. .HasCharSet("utf8")
  6628. .HasCollation("utf8_general_ci");
  6629. entity.Property(e => e.Details)
  6630. .HasColumnType("longtext")
  6631. .HasCharSet("utf8")
  6632. .HasCollation("utf8_general_ci");
  6633. entity.Property(e => e.Name)
  6634. .HasColumnType("varchar(50)")
  6635. .HasCharSet("utf8")
  6636. .HasCollation("utf8_general_ci");
  6637. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6638. entity.Property(e => e.RightInfo)
  6639. .HasColumnType("longtext")
  6640. .HasCharSet("utf8")
  6641. .HasCollation("utf8_general_ci");
  6642. entity.Property(e => e.SeoDescription)
  6643. .HasColumnType("varchar(500)")
  6644. .HasCharSet("utf8")
  6645. .HasCollation("utf8_general_ci");
  6646. entity.Property(e => e.SeoKeyword)
  6647. .HasColumnType("varchar(200)")
  6648. .HasCharSet("utf8")
  6649. .HasCollation("utf8_general_ci");
  6650. entity.Property(e => e.SeoTitle)
  6651. .HasColumnType("varchar(100)")
  6652. .HasCharSet("utf8")
  6653. .HasCollation("utf8_general_ci");
  6654. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6655. entity.Property(e => e.Status).HasColumnType("int(11)");
  6656. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6657. entity.Property(e => e.UpdateMan)
  6658. .HasColumnType("varchar(50)")
  6659. .HasCharSet("utf8")
  6660. .HasCollation("utf8_general_ci");
  6661. entity.Property(e => e.Version).HasColumnType("int(11)");
  6662. });
  6663. modelBuilder.Entity<SysLog>(entity =>
  6664. {
  6665. entity.Property(e => e.Id).HasColumnType("int(11)");
  6666. entity.Property(e => e.Contents)
  6667. .HasColumnType("varchar(200)")
  6668. .HasCharSet("utf8")
  6669. .HasCollation("utf8_general_ci");
  6670. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6671. entity.Property(e => e.CreateMan)
  6672. .HasColumnType("varchar(50)")
  6673. .HasCharSet("utf8")
  6674. .HasCollation("utf8_general_ci");
  6675. });
  6676. modelBuilder.Entity<SysRechargeRecord>(entity =>
  6677. {
  6678. entity.Property(e => e.Id).HasColumnType("int(11)");
  6679. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  6680. entity.Property(e => e.BatchCode)
  6681. .HasColumnType("varchar(32)")
  6682. .HasCharSet("utf8")
  6683. .HasCollation("utf8_general_ci");
  6684. entity.Property(e => e.BizTime).HasColumnType("datetime");
  6685. entity.Property(e => e.BizType).HasColumnType("int(11)");
  6686. entity.Property(e => e.ClientIp)
  6687. .HasColumnType("varchar(15)")
  6688. .HasCharSet("utf8")
  6689. .HasCollation("utf8_general_ci");
  6690. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6691. entity.Property(e => e.CreateMan)
  6692. .HasColumnType("varchar(50)")
  6693. .HasCharSet("utf8")
  6694. .HasCollation("utf8_general_ci");
  6695. entity.Property(e => e.PartnerTradeNo)
  6696. .HasColumnType("varchar(32)")
  6697. .HasCharSet("utf8")
  6698. .HasCollation("utf8_general_ci");
  6699. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6700. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6701. entity.Property(e => e.RechargeRecNo)
  6702. .HasColumnType("varchar(32)")
  6703. .HasCharSet("utf8")
  6704. .HasCollation("utf8_general_ci");
  6705. entity.Property(e => e.SeoDescription)
  6706. .HasColumnType("varchar(500)")
  6707. .HasCharSet("utf8")
  6708. .HasCollation("utf8_general_ci");
  6709. entity.Property(e => e.SeoKeyword)
  6710. .HasColumnType("varchar(200)")
  6711. .HasCharSet("utf8")
  6712. .HasCollation("utf8_general_ci");
  6713. entity.Property(e => e.SeoTitle)
  6714. .HasColumnType("varchar(100)")
  6715. .HasCharSet("utf8")
  6716. .HasCollation("utf8_general_ci");
  6717. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6718. entity.Property(e => e.Status).HasColumnType("int(11)");
  6719. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  6720. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6721. entity.Property(e => e.UpdateMan)
  6722. .HasColumnType("varchar(50)")
  6723. .HasCharSet("utf8")
  6724. .HasCollation("utf8_general_ci");
  6725. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6726. entity.Property(e => e.Version).HasColumnType("int(11)");
  6727. });
  6728. modelBuilder.Entity<SystemSet>(entity =>
  6729. {
  6730. entity.Property(e => e.Id).HasColumnType("int(11)");
  6731. entity.Property(e => e.Address)
  6732. .HasColumnType("varchar(100)")
  6733. .HasCharSet("utf8")
  6734. .HasCollation("utf8_general_ci");
  6735. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6736. entity.Property(e => e.CreateMan)
  6737. .HasColumnType("varchar(50)")
  6738. .HasCharSet("utf8")
  6739. .HasCollation("utf8_general_ci");
  6740. entity.Property(e => e.IndexDescription)
  6741. .HasColumnType("longtext")
  6742. .HasCharSet("utf8")
  6743. .HasCollation("utf8_general_ci");
  6744. entity.Property(e => e.IndexKeyword)
  6745. .HasColumnType("varchar(200)")
  6746. .HasCharSet("utf8")
  6747. .HasCollation("utf8_general_ci");
  6748. entity.Property(e => e.Logo)
  6749. .HasColumnType("varchar(200)")
  6750. .HasCharSet("utf8")
  6751. .HasCollation("utf8_general_ci");
  6752. entity.Property(e => e.Phone)
  6753. .HasColumnType("varchar(100)")
  6754. .HasCharSet("utf8")
  6755. .HasCollation("utf8_general_ci");
  6756. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6757. entity.Property(e => e.RightInfo)
  6758. .HasColumnType("longtext")
  6759. .HasCharSet("utf8")
  6760. .HasCollation("utf8_general_ci");
  6761. entity.Property(e => e.SeoDescription)
  6762. .HasColumnType("varchar(500)")
  6763. .HasCharSet("utf8")
  6764. .HasCollation("utf8_general_ci");
  6765. entity.Property(e => e.SeoKeyword)
  6766. .HasColumnType("varchar(200)")
  6767. .HasCharSet("utf8")
  6768. .HasCollation("utf8_general_ci");
  6769. entity.Property(e => e.SeoTitle)
  6770. .HasColumnType("varchar(100)")
  6771. .HasCharSet("utf8")
  6772. .HasCollation("utf8_general_ci");
  6773. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6774. entity.Property(e => e.StartAdPhoto)
  6775. .HasColumnType("varchar(200)")
  6776. .HasCharSet("utf8")
  6777. .HasCollation("utf8_general_ci");
  6778. entity.Property(e => e.Status).HasColumnType("int(11)");
  6779. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6780. entity.Property(e => e.UpdateMan)
  6781. .HasColumnType("varchar(50)")
  6782. .HasCharSet("utf8")
  6783. .HasCollation("utf8_general_ci");
  6784. entity.Property(e => e.UploadAutoWater)
  6785. .HasColumnType("bit(1)")
  6786. .HasDefaultValueSql("b'0'");
  6787. entity.Property(e => e.UploadAutoZoom)
  6788. .HasColumnType("bit(1)")
  6789. .HasDefaultValueSql("b'0'");
  6790. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  6791. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  6792. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  6793. entity.Property(e => e.UploadExt)
  6794. .HasColumnType("varchar(100)")
  6795. .HasCharSet("utf8")
  6796. .HasCollation("utf8_general_ci");
  6797. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  6798. entity.Property(e => e.UploadOss)
  6799. .HasColumnType("bit(1)")
  6800. .HasDefaultValueSql("b'0'");
  6801. entity.Property(e => e.UploadWaterPath)
  6802. .HasColumnType("varchar(200)")
  6803. .HasCharSet("utf8")
  6804. .HasCollation("utf8_general_ci");
  6805. entity.Property(e => e.UploadWaterPosition)
  6806. .HasColumnType("varchar(15)")
  6807. .HasCharSet("utf8")
  6808. .HasCollation("utf8_general_ci");
  6809. entity.Property(e => e.Version).HasColumnType("int(11)");
  6810. entity.Property(e => e.WebName)
  6811. .HasColumnType("varchar(50)")
  6812. .HasCharSet("utf8")
  6813. .HasCollation("utf8_general_ci");
  6814. entity.Property(e => e.WebStatCode)
  6815. .HasColumnType("longtext")
  6816. .HasCharSet("utf8")
  6817. .HasCollation("utf8_general_ci");
  6818. entity.Property(e => e.WebUrl)
  6819. .HasColumnType("varchar(200)")
  6820. .HasCharSet("utf8")
  6821. .HasCollation("utf8_general_ci");
  6822. });
  6823. modelBuilder.Entity<TeamApply>(entity =>
  6824. {
  6825. entity.Property(e => e.Id).HasColumnType("int(11)");
  6826. entity.Property(e => e.Areas)
  6827. .HasColumnType("varchar(30)")
  6828. .HasCharSet("utf8")
  6829. .HasCollation("utf8_general_ci");
  6830. entity.Property(e => e.AuditRemark)
  6831. .HasColumnType("varchar(64)")
  6832. .HasCharSet("utf8")
  6833. .HasCollation("utf8_general_ci");
  6834. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  6835. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  6836. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6837. entity.Property(e => e.CreateMan)
  6838. .HasColumnType("varchar(50)")
  6839. .HasCharSet("utf8")
  6840. .HasCollation("utf8_general_ci");
  6841. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  6842. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  6843. entity.Property(e => e.EnterEndDate).HasColumnType("datetime");
  6844. entity.Property(e => e.EnterStartDate).HasColumnType("datetime");
  6845. entity.Property(e => e.ManagerName)
  6846. .HasColumnType("varchar(32)")
  6847. .HasCharSet("utf8")
  6848. .HasCollation("utf8_general_ci");
  6849. entity.Property(e => e.ManagerNo)
  6850. .HasColumnType("varchar(32)")
  6851. .HasCharSet("utf8")
  6852. .HasCollation("utf8_general_ci");
  6853. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  6854. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  6855. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  6856. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6857. entity.Property(e => e.Remark)
  6858. .HasColumnType("varchar(64)")
  6859. .HasCharSet("utf8")
  6860. .HasCollation("utf8_general_ci");
  6861. entity.Property(e => e.SeoDescription)
  6862. .HasColumnType("varchar(500)")
  6863. .HasCharSet("utf8")
  6864. .HasCollation("utf8_general_ci");
  6865. entity.Property(e => e.SeoKeyword)
  6866. .HasColumnType("varchar(200)")
  6867. .HasCharSet("utf8")
  6868. .HasCollation("utf8_general_ci");
  6869. entity.Property(e => e.SeoTitle)
  6870. .HasColumnType("varchar(100)")
  6871. .HasCharSet("utf8")
  6872. .HasCollation("utf8_general_ci");
  6873. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6874. entity.Property(e => e.Status).HasColumnType("int(11)");
  6875. entity.Property(e => e.TeamName)
  6876. .HasColumnType("varchar(32)")
  6877. .HasCharSet("utf8")
  6878. .HasCollation("utf8_general_ci");
  6879. entity.Property(e => e.TeamNo)
  6880. .HasColumnType("varchar(32)")
  6881. .HasCharSet("utf8")
  6882. .HasCollation("utf8_general_ci");
  6883. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  6884. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  6885. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6886. entity.Property(e => e.UpdateMan)
  6887. .HasColumnType("varchar(50)")
  6888. .HasCharSet("utf8")
  6889. .HasCollation("utf8_general_ci");
  6890. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6891. entity.Property(e => e.Version).HasColumnType("int(11)");
  6892. entity.Property(e => e.WatchWord)
  6893. .HasColumnType("varchar(32)")
  6894. .HasCharSet("utf8")
  6895. .HasCollation("utf8_general_ci");
  6896. });
  6897. modelBuilder.Entity<TeamApplyForTeamName>(entity =>
  6898. {
  6899. entity.HasKey(e => e.TeamName)
  6900. .HasName("PRIMARY");
  6901. entity.Property(e => e.TeamName)
  6902. .HasColumnType("varchar(32)")
  6903. .HasCharSet("utf8")
  6904. .HasCollation("utf8_general_ci");
  6905. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  6906. });
  6907. modelBuilder.Entity<TeamApplyForTeamNo>(entity =>
  6908. {
  6909. entity.HasKey(e => e.TeamNo)
  6910. .HasName("PRIMARY");
  6911. entity.Property(e => e.TeamNo)
  6912. .HasColumnType("varchar(32)")
  6913. .HasCharSet("utf8")
  6914. .HasCollation("utf8_general_ci");
  6915. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  6916. });
  6917. modelBuilder.Entity<TeamBlackList>(entity =>
  6918. {
  6919. entity.Property(e => e.Id).HasColumnType("int(11)");
  6920. entity.Property(e => e.BlackStatus).HasColumnType("int(11)");
  6921. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6922. entity.Property(e => e.CreateMan)
  6923. .HasColumnType("varchar(50)")
  6924. .HasCharSet("utf8")
  6925. .HasCollation("utf8_general_ci");
  6926. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  6927. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  6928. entity.Property(e => e.ManagerName)
  6929. .HasColumnType("varchar(32)")
  6930. .HasCharSet("utf8")
  6931. .HasCollation("utf8_general_ci");
  6932. entity.Property(e => e.ManagerNo)
  6933. .HasColumnType("varchar(32)")
  6934. .HasCharSet("utf8")
  6935. .HasCollation("utf8_general_ci");
  6936. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6937. entity.Property(e => e.Remark)
  6938. .HasColumnType("varchar(64)")
  6939. .HasCharSet("utf8")
  6940. .HasCollation("utf8_general_ci");
  6941. entity.Property(e => e.SeoDescription)
  6942. .HasColumnType("varchar(500)")
  6943. .HasCharSet("utf8")
  6944. .HasCollation("utf8_general_ci");
  6945. entity.Property(e => e.SeoKeyword)
  6946. .HasColumnType("varchar(200)")
  6947. .HasCharSet("utf8")
  6948. .HasCollation("utf8_general_ci");
  6949. entity.Property(e => e.SeoTitle)
  6950. .HasColumnType("varchar(100)")
  6951. .HasCharSet("utf8")
  6952. .HasCollation("utf8_general_ci");
  6953. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6954. entity.Property(e => e.Status).HasColumnType("int(11)");
  6955. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  6956. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6957. entity.Property(e => e.UpdateMan)
  6958. .HasColumnType("varchar(50)")
  6959. .HasCharSet("utf8")
  6960. .HasCollation("utf8_general_ci");
  6961. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6962. entity.Property(e => e.Version).HasColumnType("int(11)");
  6963. });
  6964. modelBuilder.Entity<TeamConfig>(entity =>
  6965. {
  6966. entity.Property(e => e.Id).HasColumnType("int(11)");
  6967. entity.Property(e => e.BlacklistCycle).HasColumnType("int(11)");
  6968. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6969. entity.Property(e => e.CreateMan)
  6970. .HasColumnType("varchar(50)")
  6971. .HasCharSet("utf8")
  6972. .HasCollation("utf8_general_ci");
  6973. entity.Property(e => e.EnterEndMin).HasColumnType("int(11)");
  6974. entity.Property(e => e.LimitBuddyNo)
  6975. .HasColumnType("varchar(128)")
  6976. .HasCharSet("utf8")
  6977. .HasCollation("utf8_general_ci");
  6978. entity.Property(e => e.MaxCycleNum).HasColumnType("int(11)");
  6979. entity.Property(e => e.MaxStartDayLimit).HasColumnType("int(11)");
  6980. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  6981. entity.Property(e => e.MinCycleNum).HasColumnType("int(11)");
  6982. entity.Property(e => e.MinStartDayLimit).HasColumnType("int(11)");
  6983. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  6984. entity.Property(e => e.OverlineStatus)
  6985. .HasColumnType("bit(1)")
  6986. .HasDefaultValueSql("b'0'");
  6987. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6988. entity.Property(e => e.Remark)
  6989. .HasColumnType("varchar(64)")
  6990. .HasCharSet("utf8")
  6991. .HasCollation("utf8_general_ci");
  6992. entity.Property(e => e.SeoDescription)
  6993. .HasColumnType("varchar(500)")
  6994. .HasCharSet("utf8")
  6995. .HasCollation("utf8_general_ci");
  6996. entity.Property(e => e.SeoKeyword)
  6997. .HasColumnType("varchar(200)")
  6998. .HasCharSet("utf8")
  6999. .HasCollation("utf8_general_ci");
  7000. entity.Property(e => e.SeoTitle)
  7001. .HasColumnType("varchar(100)")
  7002. .HasCharSet("utf8")
  7003. .HasCollation("utf8_general_ci");
  7004. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7005. entity.Property(e => e.Status).HasColumnType("int(11)");
  7006. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7007. entity.Property(e => e.UpdateMan)
  7008. .HasColumnType("varchar(50)")
  7009. .HasCharSet("utf8")
  7010. .HasCollation("utf8_general_ci");
  7011. entity.Property(e => e.Version).HasColumnType("int(11)");
  7012. });
  7013. modelBuilder.Entity<TeamDayTop>(entity =>
  7014. {
  7015. entity.Property(e => e.Id).HasColumnType("int(11)");
  7016. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7017. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7018. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7019. entity.Property(e => e.CreateMan)
  7020. .HasColumnType("varchar(50)")
  7021. .HasCharSet("utf8")
  7022. .HasCollation("utf8_general_ci");
  7023. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7024. entity.Property(e => e.Remark)
  7025. .HasColumnType("varchar(64)")
  7026. .HasCharSet("utf8")
  7027. .HasCollation("utf8_general_ci");
  7028. entity.Property(e => e.SeoDescription)
  7029. .HasColumnType("varchar(500)")
  7030. .HasCharSet("utf8")
  7031. .HasCollation("utf8_general_ci");
  7032. entity.Property(e => e.SeoKeyword)
  7033. .HasColumnType("varchar(200)")
  7034. .HasCharSet("utf8")
  7035. .HasCollation("utf8_general_ci");
  7036. entity.Property(e => e.SeoTitle)
  7037. .HasColumnType("varchar(100)")
  7038. .HasCharSet("utf8")
  7039. .HasCollation("utf8_general_ci");
  7040. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7041. entity.Property(e => e.StatDate)
  7042. .HasColumnType("varchar(8)")
  7043. .HasCharSet("utf8")
  7044. .HasCollation("utf8_general_ci");
  7045. entity.Property(e => e.StatMonth)
  7046. .HasColumnType("varchar(6)")
  7047. .HasCharSet("utf8")
  7048. .HasCollation("utf8_general_ci");
  7049. entity.Property(e => e.Status).HasColumnType("int(11)");
  7050. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7051. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7052. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7053. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7054. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7055. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7056. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7057. entity.Property(e => e.UpdateMan)
  7058. .HasColumnType("varchar(50)")
  7059. .HasCharSet("utf8")
  7060. .HasCollation("utf8_general_ci");
  7061. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7062. entity.Property(e => e.Version).HasColumnType("int(11)");
  7063. });
  7064. modelBuilder.Entity<TeamOfferApply>(entity =>
  7065. {
  7066. entity.Property(e => e.Id).HasColumnType("int(11)");
  7067. entity.Property(e => e.Areas)
  7068. .HasColumnType("varchar(30)")
  7069. .HasCharSet("utf8")
  7070. .HasCollation("utf8_general_ci");
  7071. entity.Property(e => e.AuditRemark)
  7072. .HasColumnType("varchar(64)")
  7073. .HasCharSet("utf8")
  7074. .HasCollation("utf8_general_ci");
  7075. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7076. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7077. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7078. entity.Property(e => e.CreateMan)
  7079. .HasColumnType("varchar(50)")
  7080. .HasCharSet("utf8")
  7081. .HasCollation("utf8_general_ci");
  7082. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7083. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7084. entity.Property(e => e.EnterDate).HasColumnType("datetime");
  7085. entity.Property(e => e.ManagerName)
  7086. .HasColumnType("varchar(32)")
  7087. .HasCharSet("utf8")
  7088. .HasCollation("utf8_general_ci");
  7089. entity.Property(e => e.ManagerNo)
  7090. .HasColumnType("varchar(32)")
  7091. .HasCharSet("utf8")
  7092. .HasCollation("utf8_general_ci");
  7093. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7094. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7095. entity.Property(e => e.Remark)
  7096. .HasColumnType("varchar(64)")
  7097. .HasCharSet("utf8")
  7098. .HasCollation("utf8_general_ci");
  7099. entity.Property(e => e.SeoDescription)
  7100. .HasColumnType("varchar(500)")
  7101. .HasCharSet("utf8")
  7102. .HasCollation("utf8_general_ci");
  7103. entity.Property(e => e.SeoKeyword)
  7104. .HasColumnType("varchar(200)")
  7105. .HasCharSet("utf8")
  7106. .HasCollation("utf8_general_ci");
  7107. entity.Property(e => e.SeoTitle)
  7108. .HasColumnType("varchar(100)")
  7109. .HasCharSet("utf8")
  7110. .HasCollation("utf8_general_ci");
  7111. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7112. entity.Property(e => e.Status).HasColumnType("int(11)");
  7113. entity.Property(e => e.TeamApplyStatus).HasColumnType("int(11)");
  7114. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7115. entity.Property(e => e.TeamLeader).HasColumnType("int(11)");
  7116. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7117. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7118. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7119. entity.Property(e => e.UpdateMan)
  7120. .HasColumnType("varchar(50)")
  7121. .HasCharSet("utf8")
  7122. .HasCollation("utf8_general_ci");
  7123. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7124. entity.Property(e => e.Version).HasColumnType("int(11)");
  7125. });
  7126. modelBuilder.Entity<TeamPersonDayTop>(entity =>
  7127. {
  7128. entity.Property(e => e.Id).HasColumnType("int(11)");
  7129. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7130. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7131. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7132. entity.Property(e => e.CreateMan)
  7133. .HasColumnType("varchar(50)")
  7134. .HasCharSet("utf8")
  7135. .HasCollation("utf8_general_ci");
  7136. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7137. entity.Property(e => e.Remark)
  7138. .HasColumnType("varchar(64)")
  7139. .HasCharSet("utf8")
  7140. .HasCollation("utf8_general_ci");
  7141. entity.Property(e => e.SeoDescription)
  7142. .HasColumnType("varchar(500)")
  7143. .HasCharSet("utf8")
  7144. .HasCollation("utf8_general_ci");
  7145. entity.Property(e => e.SeoKeyword)
  7146. .HasColumnType("varchar(200)")
  7147. .HasCharSet("utf8")
  7148. .HasCollation("utf8_general_ci");
  7149. entity.Property(e => e.SeoTitle)
  7150. .HasColumnType("varchar(100)")
  7151. .HasCharSet("utf8")
  7152. .HasCollation("utf8_general_ci");
  7153. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7154. entity.Property(e => e.StatDate)
  7155. .HasColumnType("varchar(8)")
  7156. .HasCharSet("utf8")
  7157. .HasCollation("utf8_general_ci");
  7158. entity.Property(e => e.StatMonth)
  7159. .HasColumnType("varchar(6)")
  7160. .HasCharSet("utf8")
  7161. .HasCollation("utf8_general_ci");
  7162. entity.Property(e => e.Status).HasColumnType("int(11)");
  7163. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7164. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7165. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7166. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7167. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7168. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7169. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7170. entity.Property(e => e.UpdateMan)
  7171. .HasColumnType("varchar(50)")
  7172. .HasCharSet("utf8")
  7173. .HasCollation("utf8_general_ci");
  7174. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7175. entity.Property(e => e.Version).HasColumnType("int(11)");
  7176. });
  7177. modelBuilder.Entity<TradeDaySummary>(entity =>
  7178. {
  7179. entity.Property(e => e.Id).HasColumnType("int(11)");
  7180. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7181. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7182. entity.Property(e => e.CreateMan)
  7183. .HasColumnType("varchar(50)")
  7184. .HasCharSet("utf8")
  7185. .HasCollation("utf8_general_ci");
  7186. entity.Property(e => e.HelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7187. entity.Property(e => e.HelpDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7188. entity.Property(e => e.HelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7189. entity.Property(e => e.HelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7190. entity.Property(e => e.HelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7191. entity.Property(e => e.HelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7192. entity.Property(e => e.HelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7193. entity.Property(e => e.HelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7194. entity.Property(e => e.HelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7195. entity.Property(e => e.HelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7196. entity.Property(e => e.HelpNonDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7197. entity.Property(e => e.HelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7198. entity.Property(e => e.HelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7199. entity.Property(e => e.HelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7200. entity.Property(e => e.HelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7201. entity.Property(e => e.HelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7202. entity.Property(e => e.HelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7203. entity.Property(e => e.HelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7204. entity.Property(e => e.MgrName)
  7205. .HasColumnType("varchar(32)")
  7206. .HasCharSet("utf8")
  7207. .HasCollation("utf8_general_ci");
  7208. entity.Property(e => e.MgrNo)
  7209. .HasColumnType("varchar(16)")
  7210. .HasCharSet("utf8")
  7211. .HasCollation("utf8_general_ci");
  7212. entity.Property(e => e.NotHelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7213. entity.Property(e => e.NotHelpDirectDebitCapNum).HasColumnType("int(11)");
  7214. entity.Property(e => e.NotHelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7215. entity.Property(e => e.NotHelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7216. entity.Property(e => e.NotHelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7217. entity.Property(e => e.NotHelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7218. entity.Property(e => e.NotHelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7219. entity.Property(e => e.NotHelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7220. entity.Property(e => e.NotHelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7221. entity.Property(e => e.NotHelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7222. entity.Property(e => e.NotHelpNonDirectDebitCapNum).HasColumnType("int(11)");
  7223. entity.Property(e => e.NotHelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7224. entity.Property(e => e.NotHelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7225. entity.Property(e => e.NotHelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7226. entity.Property(e => e.NotHelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7227. entity.Property(e => e.NotHelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7228. entity.Property(e => e.NotHelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7229. entity.Property(e => e.NotHelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7230. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7231. entity.Property(e => e.SeoDescription)
  7232. .HasColumnType("varchar(500)")
  7233. .HasCharSet("utf8")
  7234. .HasCollation("utf8_general_ci");
  7235. entity.Property(e => e.SeoKeyword)
  7236. .HasColumnType("varchar(200)")
  7237. .HasCharSet("utf8")
  7238. .HasCollation("utf8_general_ci");
  7239. entity.Property(e => e.SeoTitle)
  7240. .HasColumnType("varchar(100)")
  7241. .HasCharSet("utf8")
  7242. .HasCollation("utf8_general_ci");
  7243. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7244. entity.Property(e => e.Status).HasColumnType("int(11)");
  7245. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7246. entity.Property(e => e.TradeDate)
  7247. .HasColumnType("varchar(8)")
  7248. .HasCharSet("utf8")
  7249. .HasCollation("utf8_general_ci");
  7250. entity.Property(e => e.TradeMonth)
  7251. .HasColumnType("varchar(6)")
  7252. .HasCharSet("utf8")
  7253. .HasCollation("utf8_general_ci");
  7254. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7255. entity.Property(e => e.UpdateMan)
  7256. .HasColumnType("varchar(50)")
  7257. .HasCharSet("utf8")
  7258. .HasCollation("utf8_general_ci");
  7259. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7260. entity.Property(e => e.Version).HasColumnType("int(11)");
  7261. });
  7262. modelBuilder.Entity<TradeRecord>(entity =>
  7263. {
  7264. entity.Property(e => e.Id).HasColumnType("int(11)");
  7265. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  7266. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7267. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  7268. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  7269. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7270. entity.Property(e => e.CreateMan)
  7271. .HasColumnType("varchar(50)")
  7272. .HasCharSet("utf8")
  7273. .HasCollation("utf8_general_ci");
  7274. entity.Property(e => e.DirectFlag)
  7275. .HasColumnType("bit(1)")
  7276. .HasDefaultValueSql("b'0'");
  7277. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  7278. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  7279. entity.Property(e => e.MerHelpFlag)
  7280. .HasColumnType("bit(1)")
  7281. .HasDefaultValueSql("b'0'");
  7282. entity.Property(e => e.MerNo)
  7283. .HasColumnType("varchar(32)")
  7284. .HasCharSet("utf8")
  7285. .HasCollation("utf8_general_ci");
  7286. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  7287. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7288. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  7289. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7290. entity.Property(e => e.RecordNo)
  7291. .HasColumnType("varchar(32)")
  7292. .HasCharSet("utf8")
  7293. .HasCollation("utf8_general_ci");
  7294. entity.Property(e => e.Remark)
  7295. .HasColumnType("varchar(64)")
  7296. .HasCharSet("utf8")
  7297. .HasCollation("utf8_general_ci");
  7298. entity.Property(e => e.SeoDescription)
  7299. .HasColumnType("varchar(500)")
  7300. .HasCharSet("utf8")
  7301. .HasCollation("utf8_general_ci");
  7302. entity.Property(e => e.SeoKeyword)
  7303. .HasColumnType("varchar(200)")
  7304. .HasCharSet("utf8")
  7305. .HasCollation("utf8_general_ci");
  7306. entity.Property(e => e.SeoTitle)
  7307. .HasColumnType("varchar(100)")
  7308. .HasCharSet("utf8")
  7309. .HasCollation("utf8_general_ci");
  7310. entity.Property(e => e.SnNo)
  7311. .HasColumnType("varchar(32)")
  7312. .HasCharSet("utf8")
  7313. .HasCollation("utf8_general_ci");
  7314. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7315. entity.Property(e => e.Status).HasColumnType("int(11)");
  7316. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7317. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  7318. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  7319. entity.Property(e => e.TradeSerialNo)
  7320. .HasColumnType("varchar(48)")
  7321. .HasCharSet("utf8")
  7322. .HasCollation("utf8_general_ci");
  7323. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7324. entity.Property(e => e.UpdateMan)
  7325. .HasColumnType("varchar(50)")
  7326. .HasCharSet("utf8")
  7327. .HasCollation("utf8_general_ci");
  7328. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7329. entity.Property(e => e.Version).HasColumnType("int(11)");
  7330. });
  7331. modelBuilder.Entity<UploadParams>(entity =>
  7332. {
  7333. entity.Property(e => e.Id).HasColumnType("int(11)");
  7334. entity.Property(e => e.ColumnEnName)
  7335. .HasColumnType("varchar(50)")
  7336. .HasCharSet("utf8")
  7337. .HasCollation("utf8_general_ci");
  7338. entity.Property(e => e.ColumnName)
  7339. .HasColumnType("varchar(50)")
  7340. .HasCharSet("utf8")
  7341. .HasCollation("utf8_general_ci");
  7342. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7343. entity.Property(e => e.CreateMan)
  7344. .HasColumnType("varchar(50)")
  7345. .HasCharSet("utf8")
  7346. .HasCollation("utf8_general_ci");
  7347. entity.Property(e => e.ParamString)
  7348. .HasColumnType("varchar(200)")
  7349. .HasCharSet("utf8")
  7350. .HasCollation("utf8_general_ci");
  7351. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7352. entity.Property(e => e.SeoDescription)
  7353. .HasColumnType("varchar(500)")
  7354. .HasCharSet("utf8")
  7355. .HasCollation("utf8_general_ci");
  7356. entity.Property(e => e.SeoKeyword)
  7357. .HasColumnType("varchar(200)")
  7358. .HasCharSet("utf8")
  7359. .HasCollation("utf8_general_ci");
  7360. entity.Property(e => e.SeoTitle)
  7361. .HasColumnType("varchar(100)")
  7362. .HasCharSet("utf8")
  7363. .HasCollation("utf8_general_ci");
  7364. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7365. entity.Property(e => e.Status).HasColumnType("int(11)");
  7366. entity.Property(e => e.TableEnName)
  7367. .HasColumnType("varchar(50)")
  7368. .HasCharSet("utf8")
  7369. .HasCollation("utf8_general_ci");
  7370. entity.Property(e => e.TableName)
  7371. .HasColumnType("varchar(50)")
  7372. .HasCharSet("utf8")
  7373. .HasCollation("utf8_general_ci");
  7374. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7375. entity.Property(e => e.UpdateMan)
  7376. .HasColumnType("varchar(50)")
  7377. .HasCharSet("utf8")
  7378. .HasCollation("utf8_general_ci");
  7379. entity.Property(e => e.Version).HasColumnType("int(11)");
  7380. });
  7381. modelBuilder.Entity<UserAccount>(entity =>
  7382. {
  7383. entity.Property(e => e.Id).HasColumnType("int(11)");
  7384. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  7385. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  7386. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7387. entity.Property(e => e.CreateMan)
  7388. .HasColumnType("varchar(50)")
  7389. .HasCharSet("utf8")
  7390. .HasCollation("utf8_general_ci");
  7391. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  7392. entity.Property(e => e.LockStatus).HasColumnType("int(11)");
  7393. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7394. entity.Property(e => e.SeoDescription)
  7395. .HasColumnType("varchar(500)")
  7396. .HasCharSet("utf8")
  7397. .HasCollation("utf8_general_ci");
  7398. entity.Property(e => e.SeoKeyword)
  7399. .HasColumnType("varchar(200)")
  7400. .HasCharSet("utf8")
  7401. .HasCollation("utf8_general_ci");
  7402. entity.Property(e => e.SeoTitle)
  7403. .HasColumnType("varchar(100)")
  7404. .HasCharSet("utf8")
  7405. .HasCollation("utf8_general_ci");
  7406. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7407. entity.Property(e => e.Status).HasColumnType("int(11)");
  7408. entity.Property(e => e.TeamTotalOverProfit).HasColumnType("decimal(18,2)");
  7409. entity.Property(e => e.TeamTotalProfit).HasColumnType("decimal(18,2)");
  7410. entity.Property(e => e.TeamTotalServiceProfit).HasColumnType("decimal(18,2)");
  7411. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  7412. entity.Property(e => e.TotalOverProfit).HasColumnType("decimal(18,2)");
  7413. entity.Property(e => e.TotalProfit).HasColumnType("decimal(18,2)");
  7414. entity.Property(e => e.TotalServiceProfit).HasColumnType("decimal(18,2)");
  7415. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7416. entity.Property(e => e.UpdateMan)
  7417. .HasColumnType("varchar(50)")
  7418. .HasCharSet("utf8")
  7419. .HasCollation("utf8_general_ci");
  7420. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7421. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  7422. entity.Property(e => e.UserType).HasColumnType("int(11)");
  7423. entity.Property(e => e.Version).HasColumnType("int(11)");
  7424. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  7425. });
  7426. modelBuilder.Entity<UserAccountRecord>(entity =>
  7427. {
  7428. entity.Property(e => e.Id).HasColumnType("int(11)");
  7429. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  7430. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  7431. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  7432. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  7433. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  7434. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  7435. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  7436. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  7437. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7438. entity.Property(e => e.CreateMan)
  7439. .HasColumnType("varchar(50)")
  7440. .HasCharSet("utf8")
  7441. .HasCollation("utf8_general_ci");
  7442. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7443. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7444. entity.Property(e => e.Remark)
  7445. .HasColumnType("varchar(64)")
  7446. .HasCharSet("utf8")
  7447. .HasCollation("utf8_general_ci");
  7448. entity.Property(e => e.SeoDescription)
  7449. .HasColumnType("varchar(500)")
  7450. .HasCharSet("utf8")
  7451. .HasCollation("utf8_general_ci");
  7452. entity.Property(e => e.SeoKeyword)
  7453. .HasColumnType("varchar(200)")
  7454. .HasCharSet("utf8")
  7455. .HasCollation("utf8_general_ci");
  7456. entity.Property(e => e.SeoTitle)
  7457. .HasColumnType("varchar(100)")
  7458. .HasCharSet("utf8")
  7459. .HasCollation("utf8_general_ci");
  7460. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7461. entity.Property(e => e.Status).HasColumnType("int(11)");
  7462. entity.Property(e => e.TransRecordNo)
  7463. .HasColumnType("varchar(32)")
  7464. .HasCharSet("utf8")
  7465. .HasCollation("utf8_general_ci");
  7466. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7467. entity.Property(e => e.UpdateMan)
  7468. .HasColumnType("varchar(50)")
  7469. .HasCharSet("utf8")
  7470. .HasCollation("utf8_general_ci");
  7471. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7472. entity.Property(e => e.Version).HasColumnType("int(11)");
  7473. });
  7474. modelBuilder.Entity<UserAddress>(entity =>
  7475. {
  7476. entity.Property(e => e.Id).HasColumnType("int(11)");
  7477. entity.Property(e => e.Address)
  7478. .HasColumnType("varchar(100)")
  7479. .HasCharSet("utf8")
  7480. .HasCollation("utf8_general_ci");
  7481. entity.Property(e => e.Areas)
  7482. .HasColumnType("varchar(30)")
  7483. .HasCharSet("utf8")
  7484. .HasCollation("utf8_general_ci");
  7485. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7486. entity.Property(e => e.CreateMan)
  7487. .HasColumnType("varchar(50)")
  7488. .HasCharSet("utf8")
  7489. .HasCollation("utf8_general_ci");
  7490. entity.Property(e => e.IsDefault)
  7491. .HasColumnType("bit(1)")
  7492. .HasDefaultValueSql("b'0'");
  7493. entity.Property(e => e.Mobile)
  7494. .HasColumnType("varchar(11)")
  7495. .HasCharSet("utf8")
  7496. .HasCollation("utf8_general_ci");
  7497. entity.Property(e => e.PostalCode)
  7498. .HasColumnType("varchar(6)")
  7499. .HasCharSet("utf8")
  7500. .HasCollation("utf8_general_ci");
  7501. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7502. entity.Property(e => e.RealName)
  7503. .HasColumnType("varchar(10)")
  7504. .HasCharSet("utf8")
  7505. .HasCollation("utf8_general_ci");
  7506. entity.Property(e => e.SeoDescription)
  7507. .HasColumnType("varchar(500)")
  7508. .HasCharSet("utf8")
  7509. .HasCollation("utf8_general_ci");
  7510. entity.Property(e => e.SeoKeyword)
  7511. .HasColumnType("varchar(200)")
  7512. .HasCharSet("utf8")
  7513. .HasCollation("utf8_general_ci");
  7514. entity.Property(e => e.SeoTitle)
  7515. .HasColumnType("varchar(100)")
  7516. .HasCharSet("utf8")
  7517. .HasCollation("utf8_general_ci");
  7518. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7519. entity.Property(e => e.Status).HasColumnType("int(11)");
  7520. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7521. entity.Property(e => e.UpdateMan)
  7522. .HasColumnType("varchar(50)")
  7523. .HasCharSet("utf8")
  7524. .HasCollation("utf8_general_ci");
  7525. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7526. entity.Property(e => e.Version).HasColumnType("int(11)");
  7527. });
  7528. modelBuilder.Entity<UserAuthRecord>(entity =>
  7529. {
  7530. entity.Property(e => e.Id).HasColumnType("int(11)");
  7531. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  7532. entity.Property(e => e.BankCardAccount)
  7533. .HasColumnType("varchar(32)")
  7534. .HasCharSet("utf8")
  7535. .HasCollation("utf8_general_ci");
  7536. entity.Property(e => e.BankMobile)
  7537. .HasColumnType("varchar(11)")
  7538. .HasCharSet("utf8")
  7539. .HasCollation("utf8_general_ci");
  7540. entity.Property(e => e.BankName)
  7541. .HasColumnType("varchar(64)")
  7542. .HasCharSet("utf8")
  7543. .HasCollation("utf8_general_ci");
  7544. entity.Property(e => e.ChannelCode)
  7545. .HasColumnType("varchar(16)")
  7546. .HasCharSet("utf8")
  7547. .HasCollation("utf8_general_ci");
  7548. entity.Property(e => e.ChannelName)
  7549. .HasColumnType("varchar(32)")
  7550. .HasCharSet("utf8")
  7551. .HasCollation("utf8_general_ci");
  7552. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7553. entity.Property(e => e.CreateMan)
  7554. .HasColumnType("varchar(50)")
  7555. .HasCharSet("utf8")
  7556. .HasCollation("utf8_general_ci");
  7557. entity.Property(e => e.IdcardNo)
  7558. .HasColumnType("varchar(18)")
  7559. .HasCharSet("utf8")
  7560. .HasCollation("utf8_general_ci");
  7561. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7562. entity.Property(e => e.RealName)
  7563. .HasColumnType("varchar(32)")
  7564. .HasCharSet("utf8")
  7565. .HasCollation("utf8_general_ci");
  7566. entity.Property(e => e.ReqData)
  7567. .HasColumnType("varchar(2048)")
  7568. .HasCharSet("utf8")
  7569. .HasCollation("utf8_general_ci");
  7570. entity.Property(e => e.ResData)
  7571. .HasColumnType("varchar(2048)")
  7572. .HasCharSet("utf8")
  7573. .HasCollation("utf8_general_ci");
  7574. entity.Property(e => e.ReturnCode)
  7575. .HasColumnType("varchar(32)")
  7576. .HasCharSet("utf8")
  7577. .HasCollation("utf8_general_ci");
  7578. entity.Property(e => e.ReturnMsg)
  7579. .HasColumnType("varchar(128)")
  7580. .HasCharSet("utf8")
  7581. .HasCollation("utf8_general_ci");
  7582. entity.Property(e => e.SeoDescription)
  7583. .HasColumnType("varchar(500)")
  7584. .HasCharSet("utf8")
  7585. .HasCollation("utf8_general_ci");
  7586. entity.Property(e => e.SeoKeyword)
  7587. .HasColumnType("varchar(200)")
  7588. .HasCharSet("utf8")
  7589. .HasCollation("utf8_general_ci");
  7590. entity.Property(e => e.SeoTitle)
  7591. .HasColumnType("varchar(100)")
  7592. .HasCharSet("utf8")
  7593. .HasCollation("utf8_general_ci");
  7594. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7595. entity.Property(e => e.Status).HasColumnType("int(11)");
  7596. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7597. entity.Property(e => e.UpdateMan)
  7598. .HasColumnType("varchar(50)")
  7599. .HasCharSet("utf8")
  7600. .HasCollation("utf8_general_ci");
  7601. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7602. entity.Property(e => e.Version).HasColumnType("int(11)");
  7603. });
  7604. modelBuilder.Entity<UserBack>(entity =>
  7605. {
  7606. entity.Property(e => e.Id).HasColumnType("int(11)");
  7607. entity.Property(e => e.BackKind).HasColumnType("int(11)");
  7608. entity.Property(e => e.BackStatus).HasColumnType("int(11)");
  7609. entity.Property(e => e.Content)
  7610. .HasColumnType("varchar(100)")
  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.IsPhoneCallBack)
  7619. .HasColumnType("bit(1)")
  7620. .HasDefaultValueSql("b'0'");
  7621. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7622. entity.Property(e => e.ReplyContent)
  7623. .HasColumnType("mediumtext")
  7624. .HasCharSet("utf8")
  7625. .HasCollation("utf8_general_ci");
  7626. entity.Property(e => e.SeoDescription)
  7627. .HasColumnType("varchar(500)")
  7628. .HasCharSet("utf8")
  7629. .HasCollation("utf8_general_ci");
  7630. entity.Property(e => e.SeoKeyword)
  7631. .HasColumnType("varchar(200)")
  7632. .HasCharSet("utf8")
  7633. .HasCollation("utf8_general_ci");
  7634. entity.Property(e => e.SeoTitle)
  7635. .HasColumnType("varchar(100)")
  7636. .HasCharSet("utf8")
  7637. .HasCollation("utf8_general_ci");
  7638. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7639. entity.Property(e => e.Status).HasColumnType("int(11)");
  7640. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7641. entity.Property(e => e.UpdateMan)
  7642. .HasColumnType("varchar(50)")
  7643. .HasCharSet("utf8")
  7644. .HasCollation("utf8_general_ci");
  7645. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7646. entity.Property(e => e.Version).HasColumnType("int(11)");
  7647. });
  7648. modelBuilder.Entity<UserBackKind>(entity =>
  7649. {
  7650. entity.Property(e => e.Id).HasColumnType("int(11)");
  7651. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7652. entity.Property(e => e.CreateMan)
  7653. .HasColumnType("varchar(50)")
  7654. .HasCharSet("utf8")
  7655. .HasCollation("utf8_general_ci");
  7656. entity.Property(e => e.Name)
  7657. .HasColumnType("varchar(50)")
  7658. .HasCharSet("utf8")
  7659. .HasCollation("utf8_general_ci");
  7660. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7661. entity.Property(e => e.SeoDescription)
  7662. .HasColumnType("varchar(500)")
  7663. .HasCharSet("utf8")
  7664. .HasCollation("utf8_general_ci");
  7665. entity.Property(e => e.SeoKeyword)
  7666. .HasColumnType("varchar(200)")
  7667. .HasCharSet("utf8")
  7668. .HasCollation("utf8_general_ci");
  7669. entity.Property(e => e.SeoTitle)
  7670. .HasColumnType("varchar(100)")
  7671. .HasCharSet("utf8")
  7672. .HasCollation("utf8_general_ci");
  7673. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7674. entity.Property(e => e.Status).HasColumnType("int(11)");
  7675. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7676. entity.Property(e => e.UpdateMan)
  7677. .HasColumnType("varchar(50)")
  7678. .HasCharSet("utf8")
  7679. .HasCollation("utf8_general_ci");
  7680. entity.Property(e => e.Version).HasColumnType("int(11)");
  7681. });
  7682. modelBuilder.Entity<UserBalanceTop>(entity =>
  7683. {
  7684. entity.Property(e => e.Id).HasColumnType("int(11)");
  7685. entity.Property(e => e.Balance).HasColumnType("decimal(18,2)");
  7686. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7687. entity.Property(e => e.CreateMan)
  7688. .HasColumnType("varchar(50)")
  7689. .HasCharSet("utf8")
  7690. .HasCollation("utf8_general_ci");
  7691. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7692. entity.Property(e => e.SeoDescription)
  7693. .HasColumnType("varchar(500)")
  7694. .HasCharSet("utf8")
  7695. .HasCollation("utf8_general_ci");
  7696. entity.Property(e => e.SeoKeyword)
  7697. .HasColumnType("varchar(200)")
  7698. .HasCharSet("utf8")
  7699. .HasCollation("utf8_general_ci");
  7700. entity.Property(e => e.SeoTitle)
  7701. .HasColumnType("varchar(100)")
  7702. .HasCharSet("utf8")
  7703. .HasCollation("utf8_general_ci");
  7704. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7705. entity.Property(e => e.StatDate)
  7706. .HasColumnType("varchar(8)")
  7707. .HasCharSet("utf8")
  7708. .HasCollation("utf8_general_ci");
  7709. entity.Property(e => e.StatMonth)
  7710. .HasColumnType("varchar(6)")
  7711. .HasCharSet("utf8")
  7712. .HasCollation("utf8_general_ci");
  7713. entity.Property(e => e.Status).HasColumnType("int(11)");
  7714. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7715. entity.Property(e => e.UpdateMan)
  7716. .HasColumnType("varchar(50)")
  7717. .HasCharSet("utf8")
  7718. .HasCollation("utf8_general_ci");
  7719. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7720. entity.Property(e => e.Version).HasColumnType("int(11)");
  7721. });
  7722. modelBuilder.Entity<UserCar>(entity =>
  7723. {
  7724. entity.Property(e => e.Id).HasColumnType("int(11)");
  7725. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  7726. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7727. entity.Property(e => e.CreateMan)
  7728. .HasColumnType("varchar(50)")
  7729. .HasCharSet("utf8")
  7730. .HasCollation("utf8_general_ci");
  7731. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7732. entity.Property(e => e.NormId).HasColumnType("int(11)");
  7733. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  7734. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7735. entity.Property(e => e.SeoDescription)
  7736. .HasColumnType("varchar(500)")
  7737. .HasCharSet("utf8")
  7738. .HasCollation("utf8_general_ci");
  7739. entity.Property(e => e.SeoKeyword)
  7740. .HasColumnType("varchar(200)")
  7741. .HasCharSet("utf8")
  7742. .HasCollation("utf8_general_ci");
  7743. entity.Property(e => e.SeoTitle)
  7744. .HasColumnType("varchar(100)")
  7745. .HasCharSet("utf8")
  7746. .HasCollation("utf8_general_ci");
  7747. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7748. entity.Property(e => e.Status).HasColumnType("int(11)");
  7749. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7750. entity.Property(e => e.UpdateMan)
  7751. .HasColumnType("varchar(50)")
  7752. .HasCharSet("utf8")
  7753. .HasCollation("utf8_general_ci");
  7754. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7755. entity.Property(e => e.Version).HasColumnType("int(11)");
  7756. });
  7757. modelBuilder.Entity<UserCardForWeChat>(entity =>
  7758. {
  7759. entity.Property(e => e.Id).HasColumnType("int(11)");
  7760. entity.Property(e => e.BrandName)
  7761. .HasColumnType("varchar(12)")
  7762. .HasCharSet("utf8")
  7763. .HasCollation("utf8_general_ci");
  7764. entity.Property(e => e.CardId)
  7765. .HasColumnType("varchar(50)")
  7766. .HasCharSet("utf8")
  7767. .HasCollation("utf8_general_ci");
  7768. entity.Property(e => e.CardType)
  7769. .HasColumnType("varchar(30)")
  7770. .HasCharSet("utf8")
  7771. .HasCollation("utf8_general_ci");
  7772. entity.Property(e => e.CodeType)
  7773. .HasColumnType("varchar(50)")
  7774. .HasCharSet("utf8")
  7775. .HasCollation("utf8_general_ci");
  7776. entity.Property(e => e.Color)
  7777. .HasColumnType("varchar(20)")
  7778. .HasCharSet("utf8")
  7779. .HasCollation("utf8_general_ci");
  7780. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7781. entity.Property(e => e.CreateMan)
  7782. .HasColumnType("varchar(50)")
  7783. .HasCharSet("utf8")
  7784. .HasCollation("utf8_general_ci");
  7785. entity.Property(e => e.DateType)
  7786. .HasColumnType("varchar(50)")
  7787. .HasCharSet("utf8")
  7788. .HasCollation("utf8_general_ci");
  7789. entity.Property(e => e.Description)
  7790. .HasColumnType("varchar(1024)")
  7791. .HasCharSet("utf8")
  7792. .HasCollation("utf8_general_ci");
  7793. entity.Property(e => e.EnterName)
  7794. .HasColumnType("varchar(15)")
  7795. .HasCharSet("utf8")
  7796. .HasCollation("utf8_general_ci");
  7797. entity.Property(e => e.EnterTips)
  7798. .HasColumnType("varchar(6)")
  7799. .HasCharSet("utf8")
  7800. .HasCollation("utf8_general_ci");
  7801. entity.Property(e => e.EnterUrl)
  7802. .HasColumnType("varchar(200)")
  7803. .HasCharSet("utf8")
  7804. .HasCollation("utf8_general_ci");
  7805. entity.Property(e => e.LogoUrl)
  7806. .HasColumnType("varchar(200)")
  7807. .HasCharSet("utf8")
  7808. .HasCollation("utf8_general_ci");
  7809. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7810. entity.Property(e => e.Notice)
  7811. .HasColumnType("varchar(16)")
  7812. .HasCharSet("utf8")
  7813. .HasCollation("utf8_general_ci");
  7814. entity.Property(e => e.Prerogative)
  7815. .HasColumnType("varchar(1024)")
  7816. .HasCharSet("utf8")
  7817. .HasCollation("utf8_general_ci");
  7818. entity.Property(e => e.Quantity).HasColumnType("int(11)");
  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.Sku)
  7833. .HasColumnType("mediumtext")
  7834. .HasCharSet("utf8")
  7835. .HasCollation("utf8_general_ci");
  7836. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7837. entity.Property(e => e.Status).HasColumnType("int(11)");
  7838. entity.Property(e => e.SupplyBalance)
  7839. .HasColumnType("bit(1)")
  7840. .HasDefaultValueSql("b'0'");
  7841. entity.Property(e => e.SupplyBonus)
  7842. .HasColumnType("bit(1)")
  7843. .HasDefaultValueSql("b'0'");
  7844. entity.Property(e => e.Title)
  7845. .HasColumnType("varchar(9)")
  7846. .HasCharSet("utf8")
  7847. .HasCollation("utf8_general_ci");
  7848. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7849. entity.Property(e => e.UpdateMan)
  7850. .HasColumnType("varchar(50)")
  7851. .HasCharSet("utf8")
  7852. .HasCollation("utf8_general_ci");
  7853. entity.Property(e => e.Version).HasColumnType("int(11)");
  7854. });
  7855. modelBuilder.Entity<UserCardRecord>(entity =>
  7856. {
  7857. entity.Property(e => e.Id).HasColumnType("int(11)");
  7858. entity.Property(e => e.CardId).HasColumnType("int(11)");
  7859. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  7860. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7861. entity.Property(e => e.CreateMan)
  7862. .HasColumnType("varchar(50)")
  7863. .HasCharSet("utf8")
  7864. .HasCollation("utf8_general_ci");
  7865. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7866. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7867. entity.Property(e => e.SeoDescription)
  7868. .HasColumnType("varchar(500)")
  7869. .HasCharSet("utf8")
  7870. .HasCollation("utf8_general_ci");
  7871. entity.Property(e => e.SeoKeyword)
  7872. .HasColumnType("varchar(200)")
  7873. .HasCharSet("utf8")
  7874. .HasCollation("utf8_general_ci");
  7875. entity.Property(e => e.SeoTitle)
  7876. .HasColumnType("varchar(100)")
  7877. .HasCharSet("utf8")
  7878. .HasCollation("utf8_general_ci");
  7879. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7880. entity.Property(e => e.Status).HasColumnType("int(11)");
  7881. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7882. entity.Property(e => e.UpdateMan)
  7883. .HasColumnType("varchar(50)")
  7884. .HasCharSet("utf8")
  7885. .HasCollation("utf8_general_ci");
  7886. entity.Property(e => e.Version).HasColumnType("int(11)");
  7887. });
  7888. modelBuilder.Entity<UserCashRecord>(entity =>
  7889. {
  7890. entity.Property(e => e.Id).HasColumnType("int(11)");
  7891. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  7892. entity.Property(e => e.CashOrderNo)
  7893. .HasColumnType("varchar(32)")
  7894. .HasCharSet("utf8")
  7895. .HasCollation("utf8_general_ci");
  7896. entity.Property(e => e.ChanelName)
  7897. .HasColumnType("varchar(32)")
  7898. .HasCharSet("utf8")
  7899. .HasCollation("utf8_general_ci");
  7900. entity.Property(e => e.ChannelCode)
  7901. .HasColumnType("varchar(16)")
  7902. .HasCharSet("utf8")
  7903. .HasCollation("utf8_general_ci");
  7904. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7905. entity.Property(e => e.CreateMan)
  7906. .HasColumnType("varchar(50)")
  7907. .HasCharSet("utf8")
  7908. .HasCollation("utf8_general_ci");
  7909. entity.Property(e => e.IdCardNo)
  7910. .HasColumnType("varchar(18)")
  7911. .HasCharSet("utf8")
  7912. .HasCollation("utf8_general_ci");
  7913. entity.Property(e => e.Ip)
  7914. .HasColumnType("varchar(15)")
  7915. .HasCharSet("utf8")
  7916. .HasCollation("utf8_general_ci");
  7917. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  7918. entity.Property(e => e.MediaSource)
  7919. .HasColumnType("varchar(16)")
  7920. .HasCharSet("utf8")
  7921. .HasCollation("utf8_general_ci");
  7922. entity.Property(e => e.PayTradeNo)
  7923. .HasColumnType("varchar(32)")
  7924. .HasCharSet("utf8")
  7925. .HasCollation("utf8_general_ci");
  7926. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  7927. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7928. entity.Property(e => e.Remark)
  7929. .HasColumnType("varchar(128)")
  7930. .HasCharSet("utf8")
  7931. .HasCollation("utf8_general_ci");
  7932. entity.Property(e => e.ReqData)
  7933. .HasColumnType("varchar(2048)")
  7934. .HasCharSet("utf8")
  7935. .HasCollation("utf8_general_ci");
  7936. entity.Property(e => e.ResData)
  7937. .HasColumnType("varchar(2048)")
  7938. .HasCharSet("utf8")
  7939. .HasCollation("utf8_general_ci");
  7940. entity.Property(e => e.ReturnCode)
  7941. .HasColumnType("varchar(32)")
  7942. .HasCharSet("utf8")
  7943. .HasCollation("utf8_general_ci");
  7944. entity.Property(e => e.ReturnMsg)
  7945. .HasColumnType("varchar(128)")
  7946. .HasCharSet("utf8")
  7947. .HasCollation("utf8_general_ci");
  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.SettleBankCardNo)
  7961. .HasColumnType("varchar(32)")
  7962. .HasCharSet("utf8")
  7963. .HasCollation("utf8_general_ci");
  7964. entity.Property(e => e.SettleBankName)
  7965. .HasColumnType("varchar(64)")
  7966. .HasCharSet("utf8")
  7967. .HasCollation("utf8_general_ci");
  7968. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7969. entity.Property(e => e.Status).HasColumnType("int(11)");
  7970. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  7971. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  7972. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  7973. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7974. entity.Property(e => e.UpdateMan)
  7975. .HasColumnType("varchar(50)")
  7976. .HasCharSet("utf8")
  7977. .HasCollation("utf8_general_ci");
  7978. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7979. entity.Property(e => e.Version).HasColumnType("int(11)");
  7980. });
  7981. modelBuilder.Entity<UserCenterIconList>(entity =>
  7982. {
  7983. entity.Property(e => e.Id).HasColumnType("int(11)");
  7984. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7985. entity.Property(e => e.CreateMan)
  7986. .HasColumnType("varchar(50)")
  7987. .HasCharSet("utf8")
  7988. .HasCollation("utf8_general_ci");
  7989. entity.Property(e => e.Icon)
  7990. .HasColumnType("varchar(200)")
  7991. .HasCharSet("utf8")
  7992. .HasCollation("utf8_general_ci");
  7993. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7994. entity.Property(e => e.SeoDescription)
  7995. .HasColumnType("varchar(500)")
  7996. .HasCharSet("utf8")
  7997. .HasCollation("utf8_general_ci");
  7998. entity.Property(e => e.SeoKeyword)
  7999. .HasColumnType("varchar(200)")
  8000. .HasCharSet("utf8")
  8001. .HasCollation("utf8_general_ci");
  8002. entity.Property(e => e.SeoTitle)
  8003. .HasColumnType("varchar(100)")
  8004. .HasCharSet("utf8")
  8005. .HasCollation("utf8_general_ci");
  8006. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8007. entity.Property(e => e.Status).HasColumnType("int(11)");
  8008. entity.Property(e => e.Title)
  8009. .HasColumnType("varchar(50)")
  8010. .HasCharSet("utf8")
  8011. .HasCollation("utf8_general_ci");
  8012. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8013. entity.Property(e => e.UpdateMan)
  8014. .HasColumnType("varchar(50)")
  8015. .HasCharSet("utf8")
  8016. .HasCollation("utf8_general_ci");
  8017. entity.Property(e => e.Url)
  8018. .HasColumnType("varchar(50)")
  8019. .HasCharSet("utf8")
  8020. .HasCollation("utf8_general_ci");
  8021. entity.Property(e => e.Version).HasColumnType("int(11)");
  8022. });
  8023. modelBuilder.Entity<UserCollection>(entity =>
  8024. {
  8025. entity.Property(e => e.Id).HasColumnType("int(11)");
  8026. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8027. entity.Property(e => e.CreateMan)
  8028. .HasColumnType("varchar(50)")
  8029. .HasCharSet("utf8")
  8030. .HasCollation("utf8_general_ci");
  8031. entity.Property(e => e.DataId).HasColumnType("int(11)");
  8032. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8033. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8034. entity.Property(e => e.SeoDescription)
  8035. .HasColumnType("varchar(500)")
  8036. .HasCharSet("utf8")
  8037. .HasCollation("utf8_general_ci");
  8038. entity.Property(e => e.SeoKeyword)
  8039. .HasColumnType("varchar(200)")
  8040. .HasCharSet("utf8")
  8041. .HasCollation("utf8_general_ci");
  8042. entity.Property(e => e.SeoTitle)
  8043. .HasColumnType("varchar(100)")
  8044. .HasCharSet("utf8")
  8045. .HasCollation("utf8_general_ci");
  8046. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8047. entity.Property(e => e.Status).HasColumnType("int(11)");
  8048. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8049. entity.Property(e => e.UpdateMan)
  8050. .HasColumnType("varchar(50)")
  8051. .HasCharSet("utf8")
  8052. .HasCollation("utf8_general_ci");
  8053. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8054. entity.Property(e => e.Version).HasColumnType("int(11)");
  8055. });
  8056. modelBuilder.Entity<UserData>(entity =>
  8057. {
  8058. entity.HasKey(e => e.UserId)
  8059. .HasName("PRIMARY");
  8060. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8061. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  8062. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  8063. entity.Property(e => e.CollectionCount).HasColumnType("int(11)");
  8064. entity.Property(e => e.Coupons).HasColumnType("decimal(18,2)");
  8065. entity.Property(e => e.CurMoney).HasColumnType("decimal(18,2)");
  8066. entity.Property(e => e.FansCount).HasColumnType("int(11)");
  8067. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  8068. entity.Property(e => e.GrowthValue).HasColumnType("int(11)");
  8069. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  8070. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  8071. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  8072. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  8073. entity.Property(e => e.ToCommentOrderCount).HasColumnType("int(11)");
  8074. entity.Property(e => e.ToPayOrderCount).HasColumnType("int(11)");
  8075. entity.Property(e => e.ToReceiveOrderCount).HasColumnType("int(11)");
  8076. entity.Property(e => e.ToRefundOrderCount).HasColumnType("int(11)");
  8077. entity.Property(e => e.ToSendOrderCount).HasColumnType("int(11)");
  8078. entity.Property(e => e.TotalOrderMoney).HasColumnType("decimal(18,2)");
  8079. entity.Property(e => e.TotalUseIntegral).HasColumnType("decimal(18,2)");
  8080. });
  8081. modelBuilder.Entity<UserDetail>(entity =>
  8082. {
  8083. entity.Property(e => e.Id).HasColumnType("int(11)");
  8084. entity.Property(e => e.AddMan).HasColumnType("int(11)");
  8085. entity.Property(e => e.Birthday).HasColumnType("datetime");
  8086. entity.Property(e => e.CardAddAddress).HasColumnType("int(11)");
  8087. entity.Property(e => e.CardExpireDate).HasColumnType("datetime");
  8088. entity.Property(e => e.EduLevel).HasColumnType("int(11)");
  8089. entity.Property(e => e.Email)
  8090. .HasColumnType("varchar(50)")
  8091. .HasCharSet("utf8")
  8092. .HasCollation("utf8_general_ci");
  8093. entity.Property(e => e.FamilyIncome).HasColumnType("int(11)");
  8094. entity.Property(e => e.Interests)
  8095. .HasColumnType("varchar(200)")
  8096. .HasCharSet("utf8")
  8097. .HasCollation("utf8_general_ci");
  8098. entity.Property(e => e.Note)
  8099. .HasColumnType("longtext")
  8100. .HasCharSet("utf8")
  8101. .HasCollation("utf8_general_ci");
  8102. entity.Property(e => e.OfficePhone)
  8103. .HasColumnType("varchar(50)")
  8104. .HasCharSet("utf8")
  8105. .HasCollation("utf8_general_ci");
  8106. entity.Property(e => e.PostalCode)
  8107. .HasColumnType("varchar(6)")
  8108. .HasCharSet("utf8")
  8109. .HasCollation("utf8_general_ci");
  8110. entity.Property(e => e.PrivatePhone)
  8111. .HasColumnType("varchar(50)")
  8112. .HasCharSet("utf8")
  8113. .HasCollation("utf8_general_ci");
  8114. entity.Property(e => e.ToShopDate).HasColumnType("datetime");
  8115. entity.Property(e => e.TrafficTool).HasColumnType("int(11)");
  8116. entity.Property(e => e.UpdateMan).HasColumnType("int(11)");
  8117. entity.Property(e => e.UserJob).HasColumnType("int(11)");
  8118. });
  8119. modelBuilder.Entity<UserFamilyMember>(entity =>
  8120. {
  8121. entity.Property(e => e.Id).HasColumnType("int(11)");
  8122. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8123. entity.Property(e => e.CreateMan)
  8124. .HasColumnType("varchar(50)")
  8125. .HasCharSet("utf8")
  8126. .HasCollation("utf8_general_ci");
  8127. entity.Property(e => e.IdCardNo)
  8128. .HasColumnType("varchar(18)")
  8129. .HasCharSet("utf8")
  8130. .HasCollation("utf8_general_ci");
  8131. entity.Property(e => e.Job).HasColumnType("int(11)");
  8132. entity.Property(e => e.MemberKind).HasColumnType("int(11)");
  8133. entity.Property(e => e.Mobile)
  8134. .HasColumnType("varchar(11)")
  8135. .HasCharSet("utf8")
  8136. .HasCollation("utf8_general_ci");
  8137. entity.Property(e => e.Name)
  8138. .HasColumnType("varchar(20)")
  8139. .HasCharSet("utf8")
  8140. .HasCollation("utf8_general_ci");
  8141. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8142. entity.Property(e => e.SeoDescription)
  8143. .HasColumnType("varchar(500)")
  8144. .HasCharSet("utf8")
  8145. .HasCollation("utf8_general_ci");
  8146. entity.Property(e => e.SeoKeyword)
  8147. .HasColumnType("varchar(200)")
  8148. .HasCharSet("utf8")
  8149. .HasCollation("utf8_general_ci");
  8150. entity.Property(e => e.SeoTitle)
  8151. .HasColumnType("varchar(100)")
  8152. .HasCharSet("utf8")
  8153. .HasCollation("utf8_general_ci");
  8154. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8155. entity.Property(e => e.Status).HasColumnType("int(11)");
  8156. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8157. entity.Property(e => e.UpdateMan)
  8158. .HasColumnType("varchar(50)")
  8159. .HasCharSet("utf8")
  8160. .HasCollation("utf8_general_ci");
  8161. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8162. entity.Property(e => e.Version).HasColumnType("int(11)");
  8163. });
  8164. modelBuilder.Entity<UserForMakerCode>(entity =>
  8165. {
  8166. entity.HasKey(e => e.MakerCode)
  8167. .HasName("PRIMARY");
  8168. entity.Property(e => e.MakerCode)
  8169. .HasColumnType("varchar(30)")
  8170. .HasCharSet("utf8")
  8171. .HasCollation("utf8_general_ci");
  8172. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8173. });
  8174. modelBuilder.Entity<UserForMobile>(entity =>
  8175. {
  8176. entity.HasKey(e => e.Mobile)
  8177. .HasName("PRIMARY");
  8178. entity.Property(e => e.Mobile)
  8179. .HasColumnType("varchar(11)")
  8180. .HasCharSet("utf8")
  8181. .HasCollation("utf8_general_ci");
  8182. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8183. });
  8184. modelBuilder.Entity<UserForRealName>(entity =>
  8185. {
  8186. entity.HasKey(e => e.RealName)
  8187. .HasName("PRIMARY");
  8188. entity.Property(e => e.RealName)
  8189. .HasColumnType("varchar(30)")
  8190. .HasCharSet("utf8")
  8191. .HasCollation("utf8_general_ci");
  8192. entity.Property(e => e.UserId)
  8193. .HasColumnType("varchar(100)")
  8194. .HasCharSet("utf8")
  8195. .HasCollation("utf8_general_ci");
  8196. });
  8197. modelBuilder.Entity<UserFriend>(entity =>
  8198. {
  8199. entity.Property(e => e.Id).HasColumnType("int(11)");
  8200. entity.Property(e => e.FriendId).HasColumnType("int(11)");
  8201. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8202. });
  8203. modelBuilder.Entity<UserGroup>(entity =>
  8204. {
  8205. entity.Property(e => e.Id).HasColumnType("int(11)");
  8206. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8207. entity.Property(e => e.CreateMan)
  8208. .HasColumnType("varchar(50)")
  8209. .HasCharSet("utf8")
  8210. .HasCollation("utf8_general_ci");
  8211. entity.Property(e => e.Details)
  8212. .HasColumnType("varchar(200)")
  8213. .HasCharSet("utf8")
  8214. .HasCollation("utf8_general_ci");
  8215. entity.Property(e => e.Name)
  8216. .HasColumnType("varchar(20)")
  8217. .HasCharSet("utf8")
  8218. .HasCollation("utf8_general_ci");
  8219. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8220. entity.Property(e => e.SeoDescription)
  8221. .HasColumnType("varchar(500)")
  8222. .HasCharSet("utf8")
  8223. .HasCollation("utf8_general_ci");
  8224. entity.Property(e => e.SeoKeyword)
  8225. .HasColumnType("varchar(200)")
  8226. .HasCharSet("utf8")
  8227. .HasCollation("utf8_general_ci");
  8228. entity.Property(e => e.SeoTitle)
  8229. .HasColumnType("varchar(100)")
  8230. .HasCharSet("utf8")
  8231. .HasCollation("utf8_general_ci");
  8232. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8233. entity.Property(e => e.Status).HasColumnType("int(11)");
  8234. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8235. entity.Property(e => e.UpdateMan)
  8236. .HasColumnType("varchar(50)")
  8237. .HasCharSet("utf8")
  8238. .HasCollation("utf8_general_ci");
  8239. entity.Property(e => e.Version).HasColumnType("int(11)");
  8240. });
  8241. modelBuilder.Entity<UserLevelSet>(entity =>
  8242. {
  8243. entity.Property(e => e.Id).HasColumnType("int(11)");
  8244. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8245. entity.Property(e => e.CreateMan)
  8246. .HasColumnType("varchar(50)")
  8247. .HasCharSet("utf8")
  8248. .HasCollation("utf8_general_ci");
  8249. entity.Property(e => e.Details)
  8250. .HasColumnType("varchar(200)")
  8251. .HasCharSet("utf8")
  8252. .HasCollation("utf8_general_ci");
  8253. entity.Property(e => e.Name)
  8254. .HasColumnType("varchar(20)")
  8255. .HasCharSet("utf8")
  8256. .HasCollation("utf8_general_ci");
  8257. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8258. entity.Property(e => e.SeoDescription)
  8259. .HasColumnType("varchar(500)")
  8260. .HasCharSet("utf8")
  8261. .HasCollation("utf8_general_ci");
  8262. entity.Property(e => e.SeoKeyword)
  8263. .HasColumnType("varchar(200)")
  8264. .HasCharSet("utf8")
  8265. .HasCollation("utf8_general_ci");
  8266. entity.Property(e => e.SeoTitle)
  8267. .HasColumnType("varchar(100)")
  8268. .HasCharSet("utf8")
  8269. .HasCollation("utf8_general_ci");
  8270. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8271. entity.Property(e => e.Status).HasColumnType("int(11)");
  8272. entity.Property(e => e.UpLevelDays).HasColumnType("int(11)");
  8273. entity.Property(e => e.UpLevelGrowth).HasColumnType("int(11)");
  8274. entity.Property(e => e.UpLevelIntegral).HasColumnType("decimal(10,0)");
  8275. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8276. entity.Property(e => e.UpdateMan)
  8277. .HasColumnType("varchar(50)")
  8278. .HasCharSet("utf8")
  8279. .HasCollation("utf8_general_ci");
  8280. entity.Property(e => e.Version).HasColumnType("int(11)");
  8281. });
  8282. modelBuilder.Entity<UserLoginRecord>(entity =>
  8283. {
  8284. entity.Property(e => e.Id).HasColumnType("int(11)");
  8285. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8286. entity.Property(e => e.CreateMan)
  8287. .HasColumnType("varchar(50)")
  8288. .HasCharSet("utf8")
  8289. .HasCollation("utf8_general_ci");
  8290. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8291. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8292. entity.Property(e => e.SeoDescription)
  8293. .HasColumnType("varchar(500)")
  8294. .HasCharSet("utf8")
  8295. .HasCollation("utf8_general_ci");
  8296. entity.Property(e => e.SeoKeyword)
  8297. .HasColumnType("varchar(200)")
  8298. .HasCharSet("utf8")
  8299. .HasCollation("utf8_general_ci");
  8300. entity.Property(e => e.SeoTitle)
  8301. .HasColumnType("varchar(100)")
  8302. .HasCharSet("utf8")
  8303. .HasCollation("utf8_general_ci");
  8304. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8305. entity.Property(e => e.Status).HasColumnType("int(11)");
  8306. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8307. entity.Property(e => e.UpdateMan)
  8308. .HasColumnType("varchar(50)")
  8309. .HasCharSet("utf8")
  8310. .HasCollation("utf8_general_ci");
  8311. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8312. entity.Property(e => e.Version).HasColumnType("int(11)");
  8313. });
  8314. modelBuilder.Entity<UserMachineData>(entity =>
  8315. {
  8316. entity.HasKey(e => e.IdBrand)
  8317. .HasName("PRIMARY");
  8318. entity.Property(e => e.IdBrand)
  8319. .HasColumnType("varchar(50)")
  8320. .HasCharSet("utf8")
  8321. .HasCollation("utf8_general_ci");
  8322. entity.Property(e => e.ActProfit).HasColumnType("decimal(18,2)");
  8323. entity.Property(e => e.BindCount).HasColumnType("int(11)");
  8324. entity.Property(e => e.DividendsProfit).HasColumnType("decimal(18,2)");
  8325. entity.Property(e => e.FluxProfit).HasColumnType("decimal(18,2)");
  8326. entity.Property(e => e.OpenProfit).HasColumnType("decimal(18,2)");
  8327. entity.Property(e => e.OtherProfit).HasColumnType("decimal(18,2)");
  8328. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  8329. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  8330. entity.Property(e => e.UnBindCount).HasColumnType("int(11)");
  8331. });
  8332. modelBuilder.Entity<UserMallLargeSn>(entity =>
  8333. {
  8334. entity.Property(e => e.Id).HasColumnType("int(11)");
  8335. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8336. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8337. entity.Property(e => e.CreateMan)
  8338. .HasColumnType("varchar(50)")
  8339. .HasCharSet("utf8")
  8340. .HasCollation("utf8_general_ci");
  8341. entity.Property(e => e.OrderAmount).HasColumnType("decimal(18,2)");
  8342. entity.Property(e => e.OrderNo)
  8343. .HasColumnType("varchar(32)")
  8344. .HasCharSet("utf8")
  8345. .HasCollation("utf8_general_ci");
  8346. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  8347. entity.Property(e => e.ProductName)
  8348. .HasColumnType("varchar(32)")
  8349. .HasCharSet("utf8")
  8350. .HasCollation("utf8_general_ci");
  8351. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8352. entity.Property(e => e.Remark)
  8353. .HasColumnType("varchar(64)")
  8354. .HasCharSet("utf8")
  8355. .HasCollation("utf8_general_ci");
  8356. entity.Property(e => e.RuleOrderAmt).HasColumnType("decimal(18,2)");
  8357. entity.Property(e => e.SeoDescription)
  8358. .HasColumnType("varchar(500)")
  8359. .HasCharSet("utf8")
  8360. .HasCollation("utf8_general_ci");
  8361. entity.Property(e => e.SeoKeyword)
  8362. .HasColumnType("varchar(200)")
  8363. .HasCharSet("utf8")
  8364. .HasCollation("utf8_general_ci");
  8365. entity.Property(e => e.SeoTitle)
  8366. .HasColumnType("varchar(100)")
  8367. .HasCharSet("utf8")
  8368. .HasCollation("utf8_general_ci");
  8369. entity.Property(e => e.SnNo)
  8370. .HasColumnType("varchar(32)")
  8371. .HasCharSet("utf8")
  8372. .HasCollation("utf8_general_ci");
  8373. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8374. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  8375. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8376. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8377. entity.Property(e => e.Status).HasColumnType("int(11)");
  8378. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  8379. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8380. entity.Property(e => e.UpdateMan)
  8381. .HasColumnType("varchar(50)")
  8382. .HasCharSet("utf8")
  8383. .HasCollation("utf8_general_ci");
  8384. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8385. entity.Property(e => e.Version).HasColumnType("int(11)");
  8386. });
  8387. modelBuilder.Entity<UserOfflineSignInRecords>(entity =>
  8388. {
  8389. entity.Property(e => e.Id).HasColumnType("int(11)");
  8390. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8391. entity.Property(e => e.CreateMan)
  8392. .HasColumnType("varchar(50)")
  8393. .HasCharSet("utf8")
  8394. .HasCollation("utf8_general_ci");
  8395. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8396. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8397. entity.Property(e => e.SeoDescription)
  8398. .HasColumnType("varchar(500)")
  8399. .HasCharSet("utf8")
  8400. .HasCollation("utf8_general_ci");
  8401. entity.Property(e => e.SeoKeyword)
  8402. .HasColumnType("varchar(200)")
  8403. .HasCharSet("utf8")
  8404. .HasCollation("utf8_general_ci");
  8405. entity.Property(e => e.SeoTitle)
  8406. .HasColumnType("varchar(100)")
  8407. .HasCharSet("utf8")
  8408. .HasCollation("utf8_general_ci");
  8409. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8410. entity.Property(e => e.Status).HasColumnType("int(11)");
  8411. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8412. entity.Property(e => e.UpdateMan)
  8413. .HasColumnType("varchar(50)")
  8414. .HasCharSet("utf8")
  8415. .HasCollation("utf8_general_ci");
  8416. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8417. entity.Property(e => e.Version).HasColumnType("int(11)");
  8418. });
  8419. modelBuilder.Entity<UserProfit>(entity =>
  8420. {
  8421. entity.Property(e => e.Id).HasColumnType("int(11)");
  8422. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8423. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8424. entity.Property(e => e.CardType)
  8425. .HasColumnType("varchar(10)")
  8426. .HasCharSet("utf8")
  8427. .HasCollation("utf8_general_ci");
  8428. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8429. entity.Property(e => e.CreateMan)
  8430. .HasColumnType("varchar(50)")
  8431. .HasCharSet("utf8")
  8432. .HasCollation("utf8_general_ci");
  8433. entity.Property(e => e.HelpAddOrSubRate).HasColumnType("decimal(18,2)");
  8434. entity.Property(e => e.HelpProfitPercent).HasColumnType("decimal(18,2)");
  8435. entity.Property(e => e.HelpProfitRate).HasColumnType("decimal(18,2)");
  8436. entity.Property(e => e.HelpProfitRateBase).HasColumnType("decimal(18,2)");
  8437. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8438. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8439. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8440. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8441. entity.Property(e => e.Remark)
  8442. .HasColumnType("varchar(64)")
  8443. .HasCharSet("utf8")
  8444. .HasCollation("utf8_general_ci");
  8445. entity.Property(e => e.SeoDescription)
  8446. .HasColumnType("varchar(500)")
  8447. .HasCharSet("utf8")
  8448. .HasCollation("utf8_general_ci");
  8449. entity.Property(e => e.SeoKeyword)
  8450. .HasColumnType("varchar(200)")
  8451. .HasCharSet("utf8")
  8452. .HasCollation("utf8_general_ci");
  8453. entity.Property(e => e.SeoTitle)
  8454. .HasColumnType("varchar(100)")
  8455. .HasCharSet("utf8")
  8456. .HasCollation("utf8_general_ci");
  8457. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8458. entity.Property(e => e.Status).HasColumnType("int(11)");
  8459. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8460. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8461. entity.Property(e => e.UpdateMan)
  8462. .HasColumnType("varchar(50)")
  8463. .HasCharSet("utf8")
  8464. .HasCollation("utf8_general_ci");
  8465. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8466. entity.Property(e => e.Version).HasColumnType("int(11)");
  8467. });
  8468. modelBuilder.Entity<UserProfitSet>(entity =>
  8469. {
  8470. entity.Property(e => e.Id).HasColumnType("int(11)");
  8471. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8472. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8473. entity.Property(e => e.CardType).HasColumnType("int(11)");
  8474. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8475. entity.Property(e => e.CreateMan)
  8476. .HasColumnType("varchar(50)")
  8477. .HasCharSet("utf8")
  8478. .HasCollation("utf8_general_ci");
  8479. entity.Property(e => e.HelpFlag).HasColumnType("int(11)");
  8480. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8481. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8482. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8483. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8484. entity.Property(e => e.Remark)
  8485. .HasColumnType("varchar(64)")
  8486. .HasCharSet("utf8")
  8487. .HasCollation("utf8_general_ci");
  8488. entity.Property(e => e.SeoDescription)
  8489. .HasColumnType("varchar(500)")
  8490. .HasCharSet("utf8")
  8491. .HasCollation("utf8_general_ci");
  8492. entity.Property(e => e.SeoKeyword)
  8493. .HasColumnType("varchar(200)")
  8494. .HasCharSet("utf8")
  8495. .HasCollation("utf8_general_ci");
  8496. entity.Property(e => e.SeoTitle)
  8497. .HasColumnType("varchar(100)")
  8498. .HasCharSet("utf8")
  8499. .HasCollation("utf8_general_ci");
  8500. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8501. entity.Property(e => e.Status).HasColumnType("int(11)");
  8502. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8503. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8504. entity.Property(e => e.UpdateMan)
  8505. .HasColumnType("varchar(50)")
  8506. .HasCharSet("utf8")
  8507. .HasCollation("utf8_general_ci");
  8508. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8509. entity.Property(e => e.Version).HasColumnType("int(11)");
  8510. });
  8511. modelBuilder.Entity<UserProfitSubsidySummary>(entity =>
  8512. {
  8513. entity.Property(e => e.Id).HasColumnType("int(11)");
  8514. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8515. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  8516. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8517. entity.Property(e => e.CreateMan)
  8518. .HasColumnType("varchar(50)")
  8519. .HasCharSet("utf8")
  8520. .HasCollation("utf8_general_ci");
  8521. entity.Property(e => e.MgrName)
  8522. .HasColumnType("varchar(32)")
  8523. .HasCharSet("utf8")
  8524. .HasCollation("utf8_general_ci");
  8525. entity.Property(e => e.MgrNo)
  8526. .HasColumnType("varchar(16)")
  8527. .HasCharSet("utf8")
  8528. .HasCollation("utf8_general_ci");
  8529. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8530. entity.Property(e => e.SeoDescription)
  8531. .HasColumnType("varchar(500)")
  8532. .HasCharSet("utf8")
  8533. .HasCollation("utf8_general_ci");
  8534. entity.Property(e => e.SeoKeyword)
  8535. .HasColumnType("varchar(200)")
  8536. .HasCharSet("utf8")
  8537. .HasCollation("utf8_general_ci");
  8538. entity.Property(e => e.SeoTitle)
  8539. .HasColumnType("varchar(100)")
  8540. .HasCharSet("utf8")
  8541. .HasCollation("utf8_general_ci");
  8542. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8543. entity.Property(e => e.Status).HasColumnType("int(11)");
  8544. entity.Property(e => e.SubsidyDirectProfit).HasColumnType("decimal(18,2)");
  8545. entity.Property(e => e.SubsidyJuniorProfit).HasColumnType("decimal(18,2)");
  8546. entity.Property(e => e.SubsidyTotalProfit).HasColumnType("decimal(18,2)");
  8547. entity.Property(e => e.TradeMonth)
  8548. .HasColumnType("varchar(6)")
  8549. .HasCharSet("utf8")
  8550. .HasCollation("utf8_general_ci");
  8551. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8552. entity.Property(e => e.UpdateMan)
  8553. .HasColumnType("varchar(50)")
  8554. .HasCharSet("utf8")
  8555. .HasCollation("utf8_general_ci");
  8556. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8557. entity.Property(e => e.Version).HasColumnType("int(11)");
  8558. });
  8559. modelBuilder.Entity<UserRank>(entity =>
  8560. {
  8561. entity.Property(e => e.Id).HasColumnType("int(11)");
  8562. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8563. entity.Property(e => e.CreateMan)
  8564. .HasColumnType("varchar(50)")
  8565. .HasCharSet("utf8")
  8566. .HasCollation("utf8_general_ci");
  8567. entity.Property(e => e.ExceedVal).HasColumnType("int(11)");
  8568. entity.Property(e => e.NextRank).HasColumnType("int(11)");
  8569. entity.Property(e => e.OperateDate).HasColumnType("datetime");
  8570. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8571. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8572. entity.Property(e => e.SeoDescription)
  8573. .HasColumnType("varchar(500)")
  8574. .HasCharSet("utf8")
  8575. .HasCollation("utf8_general_ci");
  8576. entity.Property(e => e.SeoKeyword)
  8577. .HasColumnType("varchar(200)")
  8578. .HasCharSet("utf8")
  8579. .HasCollation("utf8_general_ci");
  8580. entity.Property(e => e.SeoTitle)
  8581. .HasColumnType("varchar(100)")
  8582. .HasCharSet("utf8")
  8583. .HasCollation("utf8_general_ci");
  8584. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8585. entity.Property(e => e.StatMonth).HasColumnType("int(11)");
  8586. entity.Property(e => e.StatYear).HasColumnType("int(11)");
  8587. entity.Property(e => e.Status).HasColumnType("int(11)");
  8588. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  8589. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8590. entity.Property(e => e.UpdateMan)
  8591. .HasColumnType("varchar(50)")
  8592. .HasCharSet("utf8")
  8593. .HasCollation("utf8_general_ci");
  8594. entity.Property(e => e.UpgradeFlag)
  8595. .HasColumnType("bit(1)")
  8596. .HasDefaultValueSql("b'0'");
  8597. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8598. entity.Property(e => e.Version).HasColumnType("int(11)");
  8599. entity.Property(e => e.WhiteRank).HasColumnType("int(11)");
  8600. });
  8601. modelBuilder.Entity<UserRankWhite>(entity =>
  8602. {
  8603. entity.Property(e => e.Id).HasColumnType("int(11)");
  8604. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8605. entity.Property(e => e.CreateMan)
  8606. .HasColumnType("varchar(50)")
  8607. .HasCharSet("utf8")
  8608. .HasCollation("utf8_general_ci");
  8609. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8610. entity.Property(e => e.Rank).HasColumnType("int(11)");
  8611. entity.Property(e => e.SeoDescription)
  8612. .HasColumnType("varchar(500)")
  8613. .HasCharSet("utf8")
  8614. .HasCollation("utf8_general_ci");
  8615. entity.Property(e => e.SeoKeyword)
  8616. .HasColumnType("varchar(200)")
  8617. .HasCharSet("utf8")
  8618. .HasCollation("utf8_general_ci");
  8619. entity.Property(e => e.SeoTitle)
  8620. .HasColumnType("varchar(100)")
  8621. .HasCharSet("utf8")
  8622. .HasCollation("utf8_general_ci");
  8623. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8624. entity.Property(e => e.Status).HasColumnType("int(11)");
  8625. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8626. entity.Property(e => e.UpdateMan)
  8627. .HasColumnType("varchar(50)")
  8628. .HasCharSet("utf8")
  8629. .HasCollation("utf8_general_ci");
  8630. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8631. entity.Property(e => e.Version).HasColumnType("int(11)");
  8632. });
  8633. modelBuilder.Entity<UserRebateDetail>(entity =>
  8634. {
  8635. entity.Property(e => e.Id).HasColumnType("int(11)");
  8636. entity.Property(e => e.ChannelMerNo)
  8637. .HasColumnType("varchar(32)")
  8638. .HasCharSet("utf8")
  8639. .HasCollation("utf8_general_ci");
  8640. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8641. entity.Property(e => e.CreateMan)
  8642. .HasColumnType("varchar(50)")
  8643. .HasCharSet("utf8")
  8644. .HasCollation("utf8_general_ci");
  8645. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  8646. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  8647. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  8648. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  8649. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8650. entity.Property(e => e.MgrName)
  8651. .HasColumnType("varchar(32)")
  8652. .HasCharSet("utf8")
  8653. .HasCollation("utf8_general_ci");
  8654. entity.Property(e => e.MgrNo)
  8655. .HasColumnType("varchar(16)")
  8656. .HasCharSet("utf8")
  8657. .HasCollation("utf8_general_ci");
  8658. entity.Property(e => e.ProductName)
  8659. .HasColumnType("varchar(32)")
  8660. .HasCharSet("utf8")
  8661. .HasCollation("utf8_general_ci");
  8662. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  8663. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8664. entity.Property(e => e.RebateMonthCount).HasColumnType("int(11)");
  8665. entity.Property(e => e.RebateRewardNo)
  8666. .HasColumnType("varchar(32)")
  8667. .HasCharSet("utf8")
  8668. .HasCollation("utf8_general_ci");
  8669. entity.Property(e => e.RebateType).HasColumnType("int(11)");
  8670. entity.Property(e => e.Remark)
  8671. .HasColumnType("varchar(64)")
  8672. .HasCharSet("utf8")
  8673. .HasCollation("utf8_general_ci");
  8674. entity.Property(e => e.SeoDescription)
  8675. .HasColumnType("varchar(500)")
  8676. .HasCharSet("utf8")
  8677. .HasCollation("utf8_general_ci");
  8678. entity.Property(e => e.SeoKeyword)
  8679. .HasColumnType("varchar(200)")
  8680. .HasCharSet("utf8")
  8681. .HasCollation("utf8_general_ci");
  8682. entity.Property(e => e.SeoTitle)
  8683. .HasColumnType("varchar(100)")
  8684. .HasCharSet("utf8")
  8685. .HasCollation("utf8_general_ci");
  8686. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8687. entity.Property(e => e.Status).HasColumnType("int(11)");
  8688. entity.Property(e => e.TradeDate)
  8689. .HasColumnType("varchar(8)")
  8690. .HasCharSet("utf8")
  8691. .HasCollation("utf8_general_ci");
  8692. entity.Property(e => e.TradeMonth)
  8693. .HasColumnType("varchar(6)")
  8694. .HasCharSet("utf8")
  8695. .HasCollation("utf8_general_ci");
  8696. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8697. entity.Property(e => e.UpdateMan)
  8698. .HasColumnType("varchar(50)")
  8699. .HasCharSet("utf8")
  8700. .HasCollation("utf8_general_ci");
  8701. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8702. entity.Property(e => e.Version).HasColumnType("int(11)");
  8703. });
  8704. modelBuilder.Entity<UserSnActInfo>(entity =>
  8705. {
  8706. entity.Property(e => e.Id).HasColumnType("int(11)");
  8707. entity.Property(e => e.ActUserId).HasColumnType("int(11)");
  8708. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  8709. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8710. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8711. entity.Property(e => e.CreateMan)
  8712. .HasColumnType("varchar(50)")
  8713. .HasCharSet("utf8")
  8714. .HasCollation("utf8_general_ci");
  8715. entity.Property(e => e.EffectEndActDate)
  8716. .HasColumnType("varchar(8)")
  8717. .HasCharSet("utf8")
  8718. .HasCollation("utf8_general_ci");
  8719. entity.Property(e => e.EffectEndCycleDate)
  8720. .HasColumnType("varchar(8)")
  8721. .HasCharSet("utf8")
  8722. .HasCollation("utf8_general_ci");
  8723. entity.Property(e => e.EffectStartActDate)
  8724. .HasColumnType("varchar(8)")
  8725. .HasCharSet("utf8")
  8726. .HasCollation("utf8_general_ci");
  8727. entity.Property(e => e.EffectStartCycleDate)
  8728. .HasColumnType("varchar(8)")
  8729. .HasCharSet("utf8")
  8730. .HasCollation("utf8_general_ci");
  8731. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8732. entity.Property(e => e.Remark)
  8733. .HasColumnType("varchar(128)")
  8734. .HasCharSet("utf8")
  8735. .HasCollation("utf8_general_ci");
  8736. entity.Property(e => e.SeoDescription)
  8737. .HasColumnType("varchar(500)")
  8738. .HasCharSet("utf8")
  8739. .HasCollation("utf8_general_ci");
  8740. entity.Property(e => e.SeoKeyword)
  8741. .HasColumnType("varchar(200)")
  8742. .HasCharSet("utf8")
  8743. .HasCollation("utf8_general_ci");
  8744. entity.Property(e => e.SeoTitle)
  8745. .HasColumnType("varchar(100)")
  8746. .HasCharSet("utf8")
  8747. .HasCollation("utf8_general_ci");
  8748. entity.Property(e => e.SnNo)
  8749. .HasColumnType("varchar(32)")
  8750. .HasCharSet("utf8")
  8751. .HasCollation("utf8_general_ci");
  8752. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8753. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  8754. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8755. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8756. entity.Property(e => e.SourceShipDate).HasColumnType("datetime");
  8757. entity.Property(e => e.SourceSnNo)
  8758. .HasColumnType("varchar(32)")
  8759. .HasCharSet("utf8")
  8760. .HasCollation("utf8_general_ci");
  8761. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  8762. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  8763. entity.Property(e => e.StandardDate)
  8764. .HasColumnType("varchar(8)")
  8765. .HasCharSet("utf8")
  8766. .HasCollation("utf8_general_ci");
  8767. entity.Property(e => e.Status).HasColumnType("int(11)");
  8768. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8769. entity.Property(e => e.UpdateMan)
  8770. .HasColumnType("varchar(50)")
  8771. .HasCharSet("utf8")
  8772. .HasCollation("utf8_general_ci");
  8773. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8774. entity.Property(e => e.Version).HasColumnType("int(11)");
  8775. });
  8776. modelBuilder.Entity<UserSnDelayChange>(entity =>
  8777. {
  8778. entity.Property(e => e.Id).HasColumnType("int(11)");
  8779. entity.Property(e => e.ActivityRuleId).HasColumnType("int(11)");
  8780. entity.Property(e => e.AfterEndCycleDate)
  8781. .HasColumnType("varchar(8)")
  8782. .HasCharSet("utf8")
  8783. .HasCollation("utf8_general_ci");
  8784. entity.Property(e => e.BeforeEndCycleDate)
  8785. .HasColumnType("varchar(8)")
  8786. .HasCharSet("utf8")
  8787. .HasCollation("utf8_general_ci");
  8788. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8789. entity.Property(e => e.ChangeRecordNo)
  8790. .HasColumnType("varchar(32)")
  8791. .HasCharSet("utf8")
  8792. .HasCollation("utf8_general_ci");
  8793. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8794. entity.Property(e => e.CreateMan)
  8795. .HasColumnType("varchar(50)")
  8796. .HasCharSet("utf8")
  8797. .HasCollation("utf8_general_ci");
  8798. entity.Property(e => e.InitCycleDate)
  8799. .HasColumnType("varchar(8)")
  8800. .HasCharSet("utf8")
  8801. .HasCollation("utf8_general_ci");
  8802. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8803. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  8804. entity.Property(e => e.Remark)
  8805. .HasColumnType("varchar(128)")
  8806. .HasCharSet("utf8")
  8807. .HasCollation("utf8_general_ci");
  8808. entity.Property(e => e.SeoDescription)
  8809. .HasColumnType("varchar(500)")
  8810. .HasCharSet("utf8")
  8811. .HasCollation("utf8_general_ci");
  8812. entity.Property(e => e.SeoKeyword)
  8813. .HasColumnType("varchar(200)")
  8814. .HasCharSet("utf8")
  8815. .HasCollation("utf8_general_ci");
  8816. entity.Property(e => e.SeoTitle)
  8817. .HasColumnType("varchar(100)")
  8818. .HasCharSet("utf8")
  8819. .HasCollation("utf8_general_ci");
  8820. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  8821. entity.Property(e => e.SnNo)
  8822. .HasColumnType("varchar(32)")
  8823. .HasCharSet("utf8")
  8824. .HasCollation("utf8_general_ci");
  8825. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  8826. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8827. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8828. entity.Property(e => e.SourceSnNo)
  8829. .HasColumnType("varchar(32)")
  8830. .HasCharSet("utf8")
  8831. .HasCollation("utf8_general_ci");
  8832. entity.Property(e => e.SourceSnShipDate).HasColumnType("datetime");
  8833. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  8834. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  8835. entity.Property(e => e.Status).HasColumnType("int(11)");
  8836. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8837. entity.Property(e => e.UpdateMan)
  8838. .HasColumnType("varchar(50)")
  8839. .HasCharSet("utf8")
  8840. .HasCollation("utf8_general_ci");
  8841. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8842. entity.Property(e => e.Version).HasColumnType("int(11)");
  8843. });
  8844. modelBuilder.Entity<UserStoreChange>(entity =>
  8845. {
  8846. entity.Property(e => e.Id).HasColumnType("int(11)");
  8847. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  8848. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  8849. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  8850. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  8851. entity.Property(e => e.BizBatchNo)
  8852. .HasColumnType("varchar(32)")
  8853. .HasCharSet("utf8")
  8854. .HasCollation("utf8_general_ci");
  8855. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8856. entity.Property(e => e.BrandType)
  8857. .HasColumnType("varchar(10)")
  8858. .HasCharSet("utf8")
  8859. .HasCollation("utf8_general_ci");
  8860. entity.Property(e => e.ChangeRecordNo)
  8861. .HasColumnType("varchar(32)")
  8862. .HasCharSet("utf8")
  8863. .HasCollation("utf8_general_ci");
  8864. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8865. entity.Property(e => e.CreateMan)
  8866. .HasColumnType("varchar(50)")
  8867. .HasCharSet("utf8")
  8868. .HasCollation("utf8_general_ci");
  8869. entity.Property(e => e.DeviceModel)
  8870. .HasColumnType("varchar(32)")
  8871. .HasCharSet("utf8")
  8872. .HasCollation("utf8_general_ci");
  8873. entity.Property(e => e.DeviceType)
  8874. .HasColumnType("varchar(32)")
  8875. .HasCharSet("utf8")
  8876. .HasCollation("utf8_general_ci");
  8877. entity.Property(e => e.DeviceVendor)
  8878. .HasColumnType("varchar(32)")
  8879. .HasCharSet("utf8")
  8880. .HasCollation("utf8_general_ci");
  8881. entity.Property(e => e.FromDate).HasColumnType("datetime");
  8882. entity.Property(e => e.FromRemark)
  8883. .HasColumnType("varchar(64)")
  8884. .HasCharSet("utf8")
  8885. .HasCollation("utf8_general_ci");
  8886. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  8887. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8888. entity.Property(e => e.SeoDescription)
  8889. .HasColumnType("varchar(500)")
  8890. .HasCharSet("utf8")
  8891. .HasCollation("utf8_general_ci");
  8892. entity.Property(e => e.SeoKeyword)
  8893. .HasColumnType("varchar(200)")
  8894. .HasCharSet("utf8")
  8895. .HasCollation("utf8_general_ci");
  8896. entity.Property(e => e.SeoTitle)
  8897. .HasColumnType("varchar(100)")
  8898. .HasCharSet("utf8")
  8899. .HasCollation("utf8_general_ci");
  8900. entity.Property(e => e.SnNo)
  8901. .HasColumnType("varchar(32)")
  8902. .HasCharSet("utf8")
  8903. .HasCollation("utf8_general_ci");
  8904. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  8905. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8906. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8907. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  8908. entity.Property(e => e.Status).HasColumnType("int(11)");
  8909. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  8910. entity.Property(e => e.ToDate).HasColumnType("datetime");
  8911. entity.Property(e => e.ToRemark)
  8912. .HasColumnType("varchar(64)")
  8913. .HasCharSet("utf8")
  8914. .HasCollation("utf8_general_ci");
  8915. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  8916. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  8917. entity.Property(e => e.TransType).HasColumnType("int(11)");
  8918. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8919. entity.Property(e => e.UpdateMan)
  8920. .HasColumnType("varchar(50)")
  8921. .HasCharSet("utf8")
  8922. .HasCollation("utf8_general_ci");
  8923. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8924. entity.Property(e => e.Version).HasColumnType("int(11)");
  8925. });
  8926. modelBuilder.Entity<UserSwapDetail>(entity =>
  8927. {
  8928. entity.Property(e => e.Id).HasColumnType("int(11)");
  8929. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8930. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8931. entity.Property(e => e.CreateMan)
  8932. .HasColumnType("varchar(50)")
  8933. .HasCharSet("utf8")
  8934. .HasCollation("utf8_general_ci");
  8935. entity.Property(e => e.DirectSnTradeAmt).HasColumnType("decimal(18,2)");
  8936. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8937. entity.Property(e => e.RecordNo)
  8938. .HasColumnType("varchar(32)")
  8939. .HasCharSet("utf8")
  8940. .HasCollation("utf8_general_ci");
  8941. entity.Property(e => e.Remark)
  8942. .HasColumnType("varchar(64)")
  8943. .HasCharSet("utf8")
  8944. .HasCollation("utf8_general_ci");
  8945. entity.Property(e => e.RiskResult).HasColumnType("int(11)");
  8946. entity.Property(e => e.SeoDescription)
  8947. .HasColumnType("varchar(500)")
  8948. .HasCharSet("utf8")
  8949. .HasCollation("utf8_general_ci");
  8950. entity.Property(e => e.SeoKeyword)
  8951. .HasColumnType("varchar(200)")
  8952. .HasCharSet("utf8")
  8953. .HasCollation("utf8_general_ci");
  8954. entity.Property(e => e.SeoTitle)
  8955. .HasColumnType("varchar(100)")
  8956. .HasCharSet("utf8")
  8957. .HasCollation("utf8_general_ci");
  8958. entity.Property(e => e.SnNo)
  8959. .HasColumnType("varchar(32)")
  8960. .HasCharSet("utf8")
  8961. .HasCollation("utf8_general_ci");
  8962. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8963. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8964. entity.Property(e => e.SourceSnNo)
  8965. .HasColumnType("varchar(32)")
  8966. .HasCharSet("utf8")
  8967. .HasCollation("utf8_general_ci");
  8968. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  8969. entity.Property(e => e.Status).HasColumnType("int(11)");
  8970. entity.Property(e => e.SwapExtProductTypes)
  8971. .HasColumnType("varchar(16)")
  8972. .HasCharSet("utf8")
  8973. .HasCollation("utf8_general_ci");
  8974. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8975. entity.Property(e => e.TradeDate)
  8976. .HasColumnType("varchar(8)")
  8977. .HasCharSet("utf8")
  8978. .HasCollation("utf8_general_ci");
  8979. entity.Property(e => e.TradeMonth)
  8980. .HasColumnType("varchar(6)")
  8981. .HasCharSet("utf8")
  8982. .HasCollation("utf8_general_ci");
  8983. entity.Property(e => e.UpSourceSnNo)
  8984. .HasColumnType("varchar(32)")
  8985. .HasCharSet("utf8")
  8986. .HasCollation("utf8_general_ci");
  8987. entity.Property(e => e.UpSourceSnType).HasColumnType("int(11)");
  8988. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8989. entity.Property(e => e.UpdateMan)
  8990. .HasColumnType("varchar(50)")
  8991. .HasCharSet("utf8")
  8992. .HasCollation("utf8_general_ci");
  8993. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8994. entity.Property(e => e.Version).HasColumnType("int(11)");
  8995. });
  8996. modelBuilder.Entity<UserSwapSummary>(entity =>
  8997. {
  8998. entity.Property(e => e.Id).HasColumnType("int(11)");
  8999. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9000. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9001. entity.Property(e => e.CreateMan)
  9002. .HasColumnType("varchar(50)")
  9003. .HasCharSet("utf8")
  9004. .HasCollation("utf8_general_ci");
  9005. entity.Property(e => e.DirAvgTradeAmt).HasColumnType("decimal(18,2)");
  9006. entity.Property(e => e.DirectActMerCount).HasColumnType("int(11)");
  9007. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9008. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9009. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  9010. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  9011. entity.Property(e => e.SeoDescription)
  9012. .HasColumnType("varchar(500)")
  9013. .HasCharSet("utf8")
  9014. .HasCollation("utf8_general_ci");
  9015. entity.Property(e => e.SeoKeyword)
  9016. .HasColumnType("varchar(200)")
  9017. .HasCharSet("utf8")
  9018. .HasCollation("utf8_general_ci");
  9019. entity.Property(e => e.SeoTitle)
  9020. .HasColumnType("varchar(100)")
  9021. .HasCharSet("utf8")
  9022. .HasCollation("utf8_general_ci");
  9023. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9024. entity.Property(e => e.Status).HasColumnType("int(11)");
  9025. entity.Property(e => e.SwapExtProductTypes)
  9026. .HasColumnType("varchar(16)")
  9027. .HasCharSet("utf8")
  9028. .HasCollation("utf8_general_ci");
  9029. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9030. entity.Property(e => e.TradeMonth)
  9031. .HasColumnType("varchar(6)")
  9032. .HasCharSet("utf8")
  9033. .HasCollation("utf8_general_ci");
  9034. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9035. entity.Property(e => e.UpdateMan)
  9036. .HasColumnType("varchar(50)")
  9037. .HasCharSet("utf8")
  9038. .HasCollation("utf8_general_ci");
  9039. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9040. entity.Property(e => e.Version).HasColumnType("int(11)");
  9041. });
  9042. modelBuilder.Entity<UserSwapWhite>(entity =>
  9043. {
  9044. entity.Property(e => e.Id).HasColumnType("int(11)");
  9045. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9046. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9047. entity.Property(e => e.CreateMan)
  9048. .HasColumnType("varchar(50)")
  9049. .HasCharSet("utf8")
  9050. .HasCollation("utf8_general_ci");
  9051. entity.Property(e => e.EndEffectTime).HasColumnType("datetime");
  9052. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9053. entity.Property(e => e.Remark)
  9054. .HasColumnType("varchar(64)")
  9055. .HasCharSet("utf8")
  9056. .HasCollation("utf8_general_ci");
  9057. entity.Property(e => e.RiskType).HasColumnType("int(11)");
  9058. entity.Property(e => e.SeoDescription)
  9059. .HasColumnType("varchar(500)")
  9060. .HasCharSet("utf8")
  9061. .HasCollation("utf8_general_ci");
  9062. entity.Property(e => e.SeoKeyword)
  9063. .HasColumnType("varchar(200)")
  9064. .HasCharSet("utf8")
  9065. .HasCollation("utf8_general_ci");
  9066. entity.Property(e => e.SeoTitle)
  9067. .HasColumnType("varchar(100)")
  9068. .HasCharSet("utf8")
  9069. .HasCollation("utf8_general_ci");
  9070. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9071. entity.Property(e => e.StartEffectTime).HasColumnType("datetime");
  9072. entity.Property(e => e.Status).HasColumnType("int(11)");
  9073. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9074. entity.Property(e => e.UpdateMan)
  9075. .HasColumnType("varchar(50)")
  9076. .HasCharSet("utf8")
  9077. .HasCollation("utf8_general_ci");
  9078. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9079. entity.Property(e => e.Version).HasColumnType("int(11)");
  9080. });
  9081. modelBuilder.Entity<UserTradeDaySummary>(entity =>
  9082. {
  9083. entity.Property(e => e.Id).HasColumnType("int(11)");
  9084. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9085. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9086. entity.Property(e => e.CreateMan)
  9087. .HasColumnType("varchar(50)")
  9088. .HasCharSet("utf8")
  9089. .HasCollation("utf8_general_ci");
  9090. entity.Property(e => e.DirectDebitCapNum).HasColumnType("int(11)");
  9091. entity.Property(e => e.DirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9092. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9093. entity.Property(e => e.NonDirectDebitCapNum).HasColumnType("int(11)");
  9094. entity.Property(e => e.NonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9095. entity.Property(e => e.NonDirectTradeAmt).HasColumnType("decimal(18,2)");
  9096. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9097. entity.Property(e => e.Remark)
  9098. .HasColumnType("varchar(64)")
  9099. .HasCharSet("utf8")
  9100. .HasCollation("utf8_general_ci");
  9101. entity.Property(e => e.SeoDescription)
  9102. .HasColumnType("varchar(500)")
  9103. .HasCharSet("utf8")
  9104. .HasCollation("utf8_general_ci");
  9105. entity.Property(e => e.SeoKeyword)
  9106. .HasColumnType("varchar(200)")
  9107. .HasCharSet("utf8")
  9108. .HasCollation("utf8_general_ci");
  9109. entity.Property(e => e.SeoTitle)
  9110. .HasColumnType("varchar(100)")
  9111. .HasCharSet("utf8")
  9112. .HasCollation("utf8_general_ci");
  9113. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9114. entity.Property(e => e.Status).HasColumnType("int(11)");
  9115. entity.Property(e => e.TradeDate)
  9116. .HasColumnType("varchar(8)")
  9117. .HasCharSet("utf8")
  9118. .HasCollation("utf8_general_ci");
  9119. entity.Property(e => e.TradeMonth)
  9120. .HasColumnType("varchar(6)")
  9121. .HasCharSet("utf8")
  9122. .HasCollation("utf8_general_ci");
  9123. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9124. entity.Property(e => e.UpdateMan)
  9125. .HasColumnType("varchar(50)")
  9126. .HasCharSet("utf8")
  9127. .HasCollation("utf8_general_ci");
  9128. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9129. entity.Property(e => e.Version).HasColumnType("int(11)");
  9130. });
  9131. modelBuilder.Entity<UserTradeMonthSummary>(entity =>
  9132. {
  9133. entity.Property(e => e.Id).HasColumnType("int(11)");
  9134. entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
  9135. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9136. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9137. entity.Property(e => e.CreateMan)
  9138. .HasColumnType("varchar(50)")
  9139. .HasCharSet("utf8")
  9140. .HasCollation("utf8_general_ci");
  9141. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9142. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  9143. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  9144. entity.Property(e => e.DebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  9145. entity.Property(e => e.MallPosOrderStatus).HasColumnType("int(11)");
  9146. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9147. entity.Property(e => e.Remark)
  9148. .HasColumnType("varchar(64)")
  9149. .HasCharSet("utf8")
  9150. .HasCollation("utf8_general_ci");
  9151. entity.Property(e => e.SeoDescription)
  9152. .HasColumnType("varchar(500)")
  9153. .HasCharSet("utf8")
  9154. .HasCollation("utf8_general_ci");
  9155. entity.Property(e => e.SeoKeyword)
  9156. .HasColumnType("varchar(200)")
  9157. .HasCharSet("utf8")
  9158. .HasCollation("utf8_general_ci");
  9159. entity.Property(e => e.SeoTitle)
  9160. .HasColumnType("varchar(100)")
  9161. .HasCharSet("utf8")
  9162. .HasCollation("utf8_general_ci");
  9163. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9164. entity.Property(e => e.StatType).HasColumnType("int(11)");
  9165. entity.Property(e => e.Status).HasColumnType("int(11)");
  9166. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9167. entity.Property(e => e.TradeMonth)
  9168. .HasColumnType("varchar(6)")
  9169. .HasCharSet("utf8")
  9170. .HasCollation("utf8_general_ci");
  9171. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9172. entity.Property(e => e.UpdateMan)
  9173. .HasColumnType("varchar(50)")
  9174. .HasCharSet("utf8")
  9175. .HasCollation("utf8_general_ci");
  9176. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9177. entity.Property(e => e.Version).HasColumnType("int(11)");
  9178. });
  9179. modelBuilder.Entity<Users>(entity =>
  9180. {
  9181. entity.Property(e => e.Id).HasColumnType("int(11)");
  9182. entity.Property(e => e.AccessToken)
  9183. .HasColumnType("varchar(64)")
  9184. .HasCharSet("utf8")
  9185. .HasCollation("utf8_general_ci");
  9186. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  9187. entity.Property(e => e.Address)
  9188. .HasColumnType("varchar(50)")
  9189. .HasCharSet("utf8")
  9190. .HasCollation("utf8_general_ci");
  9191. entity.Property(e => e.AgentAreas)
  9192. .HasColumnType("varchar(50)")
  9193. .HasCharSet("utf8")
  9194. .HasCollation("utf8_general_ci");
  9195. entity.Property(e => e.AgentLevel).HasColumnType("int(11)");
  9196. entity.Property(e => e.AlipayUserId)
  9197. .HasColumnType("varchar(50)")
  9198. .HasCharSet("utf8")
  9199. .HasCollation("utf8_general_ci");
  9200. entity.Property(e => e.Areas)
  9201. .HasColumnType("varchar(30)")
  9202. .HasCharSet("utf8")
  9203. .HasCollation("utf8_general_ci");
  9204. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  9205. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  9206. entity.Property(e => e.AuthFlag)
  9207. .HasColumnType("bit(1)")
  9208. .HasDefaultValueSql("b'0'");
  9209. entity.Property(e => e.BankCardPositiveImage)
  9210. .HasColumnType("varchar(200)")
  9211. .HasCharSet("utf8")
  9212. .HasCollation("utf8_general_ci");
  9213. entity.Property(e => e.CarIds)
  9214. .HasColumnType("varchar(100)")
  9215. .HasCharSet("utf8")
  9216. .HasCollation("utf8_general_ci");
  9217. entity.Property(e => e.CardNo)
  9218. .HasColumnType("varchar(30)")
  9219. .HasCharSet("utf8")
  9220. .HasCollation("utf8_general_ci");
  9221. entity.Property(e => e.CardRecCode)
  9222. .HasColumnType("varchar(200)")
  9223. .HasCharSet("utf8")
  9224. .HasCollation("utf8_general_ci");
  9225. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  9226. entity.Property(e => e.CertFrontImage)
  9227. .HasColumnType("varchar(200)")
  9228. .HasCharSet("utf8")
  9229. .HasCollation("utf8_general_ci");
  9230. entity.Property(e => e.CertId)
  9231. .HasColumnType("varchar(18)")
  9232. .HasCharSet("utf8")
  9233. .HasCollation("utf8_general_ci");
  9234. entity.Property(e => e.CertReverseImage)
  9235. .HasColumnType("varchar(200)")
  9236. .HasCharSet("utf8")
  9237. .HasCollation("utf8_general_ci");
  9238. entity.Property(e => e.CertValidEndDate).HasColumnType("datetime");
  9239. entity.Property(e => e.CertValidStartDate).HasColumnType("datetime");
  9240. entity.Property(e => e.CitySetDate).HasColumnType("datetime");
  9241. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9242. entity.Property(e => e.CreateMan)
  9243. .HasColumnType("varchar(50)")
  9244. .HasCharSet("utf8")
  9245. .HasCollation("utf8_general_ci");
  9246. entity.Property(e => e.DeviceId)
  9247. .HasColumnType("varchar(128)")
  9248. .HasCharSet("utf8")
  9249. .HasCollation("utf8_general_ci");
  9250. entity.Property(e => e.DeviceToken)
  9251. .HasColumnType("varchar(64)")
  9252. .HasCharSet("utf8")
  9253. .HasCollation("utf8_general_ci");
  9254. entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
  9255. entity.Property(e => e.GroupId)
  9256. .HasColumnType("varchar(200)")
  9257. .HasCharSet("utf8")
  9258. .HasCollation("utf8_general_ci");
  9259. entity.Property(e => e.HandCertImage)
  9260. .HasColumnType("varchar(200)")
  9261. .HasCharSet("utf8")
  9262. .HasCollation("utf8_general_ci");
  9263. entity.Property(e => e.HandPwd)
  9264. .HasColumnType("varchar(32)")
  9265. .HasCharSet("utf8")
  9266. .HasCollation("utf8_general_ci");
  9267. entity.Property(e => e.HeadPhoto)
  9268. .HasColumnType("varchar(2000)")
  9269. .HasCharSet("utf8")
  9270. .HasCollation("utf8_general_ci");
  9271. entity.Property(e => e.IdCardEndNo)
  9272. .HasColumnType("varchar(4)")
  9273. .HasCharSet("utf8")
  9274. .HasCollation("utf8_general_ci");
  9275. entity.Property(e => e.IsNewUser)
  9276. .HasColumnType("bit(1)")
  9277. .HasDefaultValueSql("b'0'");
  9278. entity.Property(e => e.LockStatus)
  9279. .HasColumnType("bit(1)")
  9280. .HasDefaultValueSql("b'0'");
  9281. entity.Property(e => e.LoginPwd)
  9282. .HasColumnType("varchar(32)")
  9283. .HasCharSet("utf8")
  9284. .HasCollation("utf8_general_ci");
  9285. entity.Property(e => e.LoginStatus).HasColumnType("int(11)");
  9286. entity.Property(e => e.MakerCode)
  9287. .HasColumnType("varchar(32)")
  9288. .HasCharSet("utf8")
  9289. .HasCollation("utf8_general_ci");
  9290. entity.Property(e => e.MerchantDate).HasColumnType("datetime");
  9291. entity.Property(e => e.MerchantType).HasColumnType("int(11)");
  9292. entity.Property(e => e.Mobile)
  9293. .HasColumnType("varchar(11)")
  9294. .HasCharSet("utf8")
  9295. .HasCollation("utf8_general_ci");
  9296. entity.Property(e => e.NickName)
  9297. .HasColumnType("varchar(300)")
  9298. .HasCharSet("utf8")
  9299. .HasCollation("utf8_general_ci");
  9300. entity.Property(e => e.OpenId)
  9301. .HasColumnType("varchar(50)")
  9302. .HasCharSet("utf8")
  9303. .HasCollation("utf8_general_ci");
  9304. entity.Property(e => e.ParentNav)
  9305. .HasColumnType("longtext")
  9306. .HasCharSet("utf8")
  9307. .HasCollation("utf8_general_ci");
  9308. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  9309. entity.Property(e => e.PayPwd)
  9310. .HasColumnType("varchar(32)")
  9311. .HasCharSet("utf8")
  9312. .HasCollation("utf8_general_ci");
  9313. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  9314. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9315. entity.Property(e => e.RealName)
  9316. .HasColumnType("varchar(30)")
  9317. .HasCharSet("utf8")
  9318. .HasCollation("utf8_general_ci");
  9319. entity.Property(e => e.ReferenceCode)
  9320. .HasColumnType("varchar(200)")
  9321. .HasCharSet("utf8")
  9322. .HasCollation("utf8_general_ci");
  9323. entity.Property(e => e.ReferenceQrCode)
  9324. .HasColumnType("varchar(200)")
  9325. .HasCharSet("utf8")
  9326. .HasCollation("utf8_general_ci");
  9327. entity.Property(e => e.ReferralUserId).HasColumnType("int(11)");
  9328. entity.Property(e => e.Remark)
  9329. .HasColumnType("mediumtext")
  9330. .HasCharSet("utf8")
  9331. .HasCollation("utf8_general_ci");
  9332. entity.Property(e => e.RiskFlag)
  9333. .HasColumnType("bit(1)")
  9334. .HasDefaultValueSql("b'0'");
  9335. entity.Property(e => e.RiskRemark)
  9336. .HasColumnType("varchar(64)")
  9337. .HasCharSet("utf8")
  9338. .HasCollation("utf8_general_ci");
  9339. entity.Property(e => e.RreezeRemark)
  9340. .HasColumnType("varchar(64)")
  9341. .HasCharSet("utf8")
  9342. .HasCollation("utf8_general_ci");
  9343. entity.Property(e => e.SeoDescription)
  9344. .HasColumnType("varchar(500)")
  9345. .HasCharSet("utf8")
  9346. .HasCollation("utf8_general_ci");
  9347. entity.Property(e => e.SeoKeyword)
  9348. .HasColumnType("varchar(200)")
  9349. .HasCharSet("utf8")
  9350. .HasCollation("utf8_general_ci");
  9351. entity.Property(e => e.SeoTitle)
  9352. .HasColumnType("varchar(100)")
  9353. .HasCharSet("utf8")
  9354. .HasCollation("utf8_general_ci");
  9355. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  9356. entity.Property(e => e.SettleBankCardName)
  9357. .HasColumnType("varchar(20)")
  9358. .HasCharSet("utf8")
  9359. .HasCollation("utf8_general_ci");
  9360. entity.Property(e => e.SettleBankCardNo)
  9361. .HasColumnType("varchar(32)")
  9362. .HasCharSet("utf8")
  9363. .HasCollation("utf8_general_ci");
  9364. entity.Property(e => e.SettleBankName)
  9365. .HasColumnType("varchar(32)")
  9366. .HasCharSet("utf8")
  9367. .HasCollation("utf8_general_ci");
  9368. entity.Property(e => e.SettleRemark)
  9369. .HasColumnType("varchar(64)")
  9370. .HasCharSet("utf8")
  9371. .HasCollation("utf8_general_ci");
  9372. entity.Property(e => e.Sex).HasColumnType("int(11)");
  9373. entity.Property(e => e.SignImgUrl)
  9374. .HasColumnType("varchar(200)")
  9375. .HasCharSet("utf8")
  9376. .HasCollation("utf8_general_ci");
  9377. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9378. entity.Property(e => e.Status).HasColumnType("int(11)");
  9379. entity.Property(e => e.Tags)
  9380. .HasColumnType("varchar(200)")
  9381. .HasCharSet("utf8")
  9382. .HasCollation("utf8_general_ci");
  9383. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9384. entity.Property(e => e.UpdateMan)
  9385. .HasColumnType("varchar(50)")
  9386. .HasCharSet("utf8")
  9387. .HasCollation("utf8_general_ci");
  9388. entity.Property(e => e.UserLevel).HasColumnType("int(11)");
  9389. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  9390. entity.Property(e => e.UserType).HasColumnType("int(11)");
  9391. entity.Property(e => e.Version).HasColumnType("int(11)");
  9392. });
  9393. OnModelCreatingPartial(modelBuilder);
  9394. }
  9395. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  9396. }
  9397. }