WebCMSEntities.cs 529 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859
  1. using System;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata;
  4. namespace MySystem.Models
  5. {
  6. public partial class WebCMSEntities : DbContext
  7. {
  8. public WebCMSEntities()
  9. {
  10. }
  11. public WebCMSEntities(DbContextOptions<WebCMSEntities> options)
  12. : base(options)
  13. {
  14. }
  15. public virtual DbSet<ActiveReward> ActiveReward { get; set; }
  16. public virtual DbSet<ActivityEnrolRecord> ActivityEnrolRecord { get; set; }
  17. public virtual DbSet<ActivityInfo> ActivityInfo { get; set; }
  18. public virtual DbSet<ActivityPrizeDetail> ActivityPrizeDetail { get; set; }
  19. public virtual DbSet<Advertisment> Advertisment { get; set; }
  20. public virtual DbSet<AgentLevelSet> AgentLevelSet { get; set; }
  21. public virtual DbSet<AppBottomNavs> AppBottomNavs { get; set; }
  22. public virtual DbSet<AppVersion> AppVersion { get; set; }
  23. public virtual DbSet<AppVideo> AppVideo { get; set; }
  24. public virtual DbSet<AppVideoList> AppVideoList { get; set; }
  25. public virtual DbSet<BankInfo> BankInfo { get; set; }
  26. public virtual DbSet<Col> Col { get; set; }
  27. public virtual DbSet<ConsumerOpenIds> ConsumerOpenIds { get; set; }
  28. public virtual DbSet<ConsumerOrderForNo> ConsumerOrderForNo { get; set; }
  29. public virtual DbSet<ConsumerOrders> ConsumerOrders { get; set; }
  30. public virtual DbSet<ConsumerProfit> ConsumerProfit { get; set; }
  31. public virtual DbSet<Consumers> Consumers { get; set; }
  32. public virtual DbSet<CouponAssignRecords> CouponAssignRecords { get; set; }
  33. public virtual DbSet<Coupons> Coupons { get; set; }
  34. public virtual DbSet<CouponsForUser> CouponsForUser { get; set; }
  35. public virtual DbSet<CustomTagSet> CustomTagSet { get; set; }
  36. public virtual DbSet<ErpCompanys> ErpCompanys { get; set; }
  37. public virtual DbSet<FileUpdateInfo> FileUpdateInfo { get; set; }
  38. public virtual DbSet<FluxProfitDetail> FluxProfitDetail { get; set; }
  39. public virtual DbSet<FluxProfitSummary> FluxProfitSummary { get; set; }
  40. public virtual DbSet<IndexIconList> IndexIconList { get; set; }
  41. public virtual DbSet<KqProductBrand> KqProductBrand { get; set; }
  42. public virtual DbSet<KqProductOrgs> KqProductOrgs { get; set; }
  43. public virtual DbSet<KqProductRuleSet> KqProductRuleSet { get; set; }
  44. public virtual DbSet<KqProducts> KqProducts { get; set; }
  45. public virtual DbSet<MachineApply> MachineApply { get; set; }
  46. public virtual DbSet<MachineApplyDetail> MachineApplyDetail { get; set; }
  47. public virtual DbSet<MachineChange> MachineChange { get; set; }
  48. public virtual DbSet<MachineChangeDetail> MachineChangeDetail { get; set; }
  49. public virtual DbSet<MachineForMerNo> MachineForMerNo { get; set; }
  50. public virtual DbSet<MachineForQrCode> MachineForQrCode { get; set; }
  51. public virtual DbSet<MachineForSnNo> MachineForSnNo { get; set; }
  52. public virtual DbSet<MachineRenew> MachineRenew { get; set; }
  53. public virtual DbSet<MachineReturn> MachineReturn { get; set; }
  54. public virtual DbSet<MenuRight> MenuRight { get; set; }
  55. public virtual DbSet<MerchantAddInfo> MerchantAddInfo { get; set; }
  56. public virtual DbSet<MerchantAdmin> MerchantAdmin { get; set; }
  57. public virtual DbSet<MerchantAuth> MerchantAuth { get; set; }
  58. public virtual DbSet<MerchantClass> MerchantClass { get; set; }
  59. public virtual DbSet<MerchantCol> MerchantCol { get; set; }
  60. public virtual DbSet<MerchantComment> MerchantComment { get; set; }
  61. public virtual DbSet<MerchantForCode> MerchantForCode { get; set; }
  62. public virtual DbSet<MerchantForMobile> MerchantForMobile { get; set; }
  63. public virtual DbSet<MerchantForName> MerchantForName { get; set; }
  64. public virtual DbSet<MerchantInfo> MerchantInfo { get; set; }
  65. public virtual DbSet<MerchantParamSet> MerchantParamSet { get; set; }
  66. public virtual DbSet<MerchantQrCode> MerchantQrCode { get; set; }
  67. public virtual DbSet<MerchantRebateDetail> MerchantRebateDetail { get; set; }
  68. public virtual DbSet<Merchants> Merchants { get; set; }
  69. public virtual DbSet<MobileCodeCheck> MobileCodeCheck { get; set; }
  70. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  71. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  72. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  73. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  74. public virtual DbSet<MsgPush> MsgPush { get; set; }
  75. public virtual DbSet<MsgSms> MsgSms { get; set; }
  76. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  77. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  78. public virtual DbSet<OpenBankCityTable> OpenBankCityTable { get; set; }
  79. public virtual DbSet<OpenBankTable> OpenBankTable { get; set; }
  80. public virtual DbSet<OpenReward> OpenReward { get; set; }
  81. public virtual DbSet<OpenRewardDetail> OpenRewardDetail { get; set; }
  82. public virtual DbSet<OpenSnSnapshot> OpenSnSnapshot { get; set; }
  83. public virtual DbSet<OperateLog> OperateLog { get; set; }
  84. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  85. public virtual DbSet<OrderForNo> OrderForNo { get; set; }
  86. public virtual DbSet<OrderProduct> OrderProduct { get; set; }
  87. public virtual DbSet<OrderRefund> OrderRefund { get; set; }
  88. public virtual DbSet<OrderRefundReason> OrderRefundReason { get; set; }
  89. public virtual DbSet<Orders> Orders { get; set; }
  90. public virtual DbSet<PageInfo> PageInfo { get; set; }
  91. public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
  92. public virtual DbSet<PosCouponForUser> PosCouponForUser { get; set; }
  93. public virtual DbSet<PosCouponOrders> PosCouponOrders { get; set; }
  94. public virtual DbSet<PosCouponRecord> PosCouponRecord { get; set; }
  95. public virtual DbSet<PosCoupons> PosCoupons { get; set; }
  96. public virtual DbSet<PosMachines> PosMachines { get; set; }
  97. public virtual DbSet<PosMachinesTwo> PosMachinesTwo { get; set; }
  98. public virtual DbSet<PosMerchantInfo> PosMerchantInfo { get; set; }
  99. public virtual DbSet<PosMerchantOtherInfo> PosMerchantOtherInfo { get; set; }
  100. public virtual DbSet<ProductComment> ProductComment { get; set; }
  101. public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
  102. public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
  103. public virtual DbSet<ProductFareTemp> ProductFareTemp { get; set; }
  104. public virtual DbSet<ProductKeys> ProductKeys { get; set; }
  105. public virtual DbSet<ProductNorm> ProductNorm { get; set; }
  106. public virtual DbSet<ProductNormItem> ProductNormItem { get; set; }
  107. public virtual DbSet<ProductNormTemp> ProductNormTemp { get; set; }
  108. public virtual DbSet<Products> Products { get; set; }
  109. public virtual DbSet<ProfitObjectActivations> ProfitObjectActivations { get; set; }
  110. public virtual DbSet<ProfitObjectContinueFloors> ProfitObjectContinueFloors { get; set; }
  111. public virtual DbSet<ProfitObjectFloors> ProfitObjectFloors { get; set; }
  112. public virtual DbSet<ProfitObjectLevelKinds> ProfitObjectLevelKinds { get; set; }
  113. public virtual DbSet<ProfitObjectLevels> ProfitObjectLevels { get; set; }
  114. public virtual DbSet<ProfitObjects> ProfitObjects { get; set; }
  115. public virtual DbSet<ProfitObjectsActiveCheck> ProfitObjectsActiveCheck { get; set; }
  116. public virtual DbSet<ProfitObjectsActiveParams> ProfitObjectsActiveParams { get; set; }
  117. public virtual DbSet<ProfitObjectsActives> ProfitObjectsActives { get; set; }
  118. public virtual DbSet<ProfitObjectsActivesForId> ProfitObjectsActivesForId { get; set; }
  119. public virtual DbSet<ProfitObjectsRule> ProfitObjectsRule { get; set; }
  120. public virtual DbSet<ProfitObjectsRuleDetails> ProfitObjectsRuleDetails { get; set; }
  121. public virtual DbSet<ProfitReceiveRecord> ProfitReceiveRecord { get; set; }
  122. public virtual DbSet<ProfitReceives> ProfitReceives { get; set; }
  123. public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
  124. public virtual DbSet<ProfitRewardRecord> ProfitRewardRecord { get; set; }
  125. public virtual DbSet<ProfitSubsidyDetail> ProfitSubsidyDetail { get; set; }
  126. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  127. public virtual DbSet<PullNewAct> PullNewAct { get; set; }
  128. public virtual DbSet<PullNewDetail> PullNewDetail { get; set; }
  129. public virtual DbSet<PullnewSummary> PullnewSummary { get; set; }
  130. public virtual DbSet<RightDic> RightDic { get; set; }
  131. public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
  132. public virtual DbSet<StoreBalance> StoreBalance { get; set; }
  133. public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
  134. public virtual DbSet<StoreForCode> StoreForCode { get; set; }
  135. public virtual DbSet<StoreForName> StoreForName { get; set; }
  136. public virtual DbSet<StoreHouse> StoreHouse { get; set; }
  137. public virtual DbSet<StoreMallOrderSummary> StoreMallOrderSummary { get; set; }
  138. public virtual DbSet<StoreSnActivateSummary> StoreSnActivateSummary { get; set; }
  139. public virtual DbSet<StoreStockChange> StoreStockChange { get; set; }
  140. public virtual DbSet<StoreSwapSn> StoreSwapSn { get; set; }
  141. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  142. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  143. public virtual DbSet<SysLog> SysLog { get; set; }
  144. public virtual DbSet<SysRechargeRecord> SysRechargeRecord { get; set; }
  145. public virtual DbSet<SystemSet> SystemSet { get; set; }
  146. public virtual DbSet<TeamApply> TeamApply { get; set; }
  147. public virtual DbSet<TeamApplyForTeamName> TeamApplyForTeamName { get; set; }
  148. public virtual DbSet<TeamApplyForTeamNo> TeamApplyForTeamNo { get; set; }
  149. public virtual DbSet<TeamBlackList> TeamBlackList { get; set; }
  150. public virtual DbSet<TeamConfig> TeamConfig { get; set; }
  151. public virtual DbSet<TeamDayTop> TeamDayTop { get; set; }
  152. public virtual DbSet<TeamOfferApply> TeamOfferApply { get; set; }
  153. public virtual DbSet<TeamPersonDayTop> TeamPersonDayTop { get; set; }
  154. public virtual DbSet<TmpCert> TmpCert { get; set; }
  155. public virtual DbSet<TradeDaySummary> TradeDaySummary { get; set; }
  156. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  157. public virtual DbSet<TradeRecordCopy1> TradeRecordCopy1 { get; set; }
  158. public virtual DbSet<UploadParams> UploadParams { get; set; }
  159. public virtual DbSet<UserAccount> UserAccount { get; set; }
  160. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  161. public virtual DbSet<UserAddress> UserAddress { get; set; }
  162. public virtual DbSet<UserAuthRecord> UserAuthRecord { get; set; }
  163. public virtual DbSet<UserBack> UserBack { get; set; }
  164. public virtual DbSet<UserBackKind> UserBackKind { get; set; }
  165. public virtual DbSet<UserBalanceTop> UserBalanceTop { get; set; }
  166. public virtual DbSet<UserCar> UserCar { get; set; }
  167. public virtual DbSet<UserCardForWeChat> UserCardForWeChat { get; set; }
  168. public virtual DbSet<UserCardRecord> UserCardRecord { get; set; }
  169. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  170. public virtual DbSet<UserCenterIconList> UserCenterIconList { get; set; }
  171. public virtual DbSet<UserCollection> UserCollection { get; set; }
  172. public virtual DbSet<UserData> UserData { get; set; }
  173. public virtual DbSet<UserDetail> UserDetail { get; set; }
  174. public virtual DbSet<UserFamilyMember> UserFamilyMember { get; set; }
  175. public virtual DbSet<UserForMakerCode> UserForMakerCode { get; set; }
  176. public virtual DbSet<UserForMobile> UserForMobile { get; set; }
  177. public virtual DbSet<UserForRealName> UserForRealName { get; set; }
  178. public virtual DbSet<UserFriend> UserFriend { get; set; }
  179. public virtual DbSet<UserGroup> UserGroup { get; set; }
  180. public virtual DbSet<UserLevelSet> UserLevelSet { get; set; }
  181. public virtual DbSet<UserLoginRecord> UserLoginRecord { get; set; }
  182. public virtual DbSet<UserMachineData> UserMachineData { get; set; }
  183. public virtual DbSet<UserMallLargeSn> UserMallLargeSn { get; set; }
  184. public virtual DbSet<UserOfflineSignInRecords> UserOfflineSignInRecords { get; set; }
  185. public virtual DbSet<UserProfit> UserProfit { get; set; }
  186. public virtual DbSet<UserProfitSet> UserProfitSet { get; set; }
  187. public virtual DbSet<UserProfitSubsidySummary> UserProfitSubsidySummary { get; set; }
  188. public virtual DbSet<UserRank> UserRank { get; set; }
  189. public virtual DbSet<UserRankWhite> UserRankWhite { get; set; }
  190. public virtual DbSet<UserRebateDetail> UserRebateDetail { get; set; }
  191. public virtual DbSet<UserSnActInfo> UserSnActInfo { get; set; }
  192. public virtual DbSet<UserSnDelayChange> UserSnDelayChange { get; set; }
  193. public virtual DbSet<UserStoreChange> UserStoreChange { get; set; }
  194. public virtual DbSet<UserSwapDetail> UserSwapDetail { get; set; }
  195. public virtual DbSet<UserSwapSummary> UserSwapSummary { get; set; }
  196. public virtual DbSet<UserSwapWhite> UserSwapWhite { get; set; }
  197. public virtual DbSet<UserTradeDaySummary> UserTradeDaySummary { get; set; }
  198. public virtual DbSet<UserTradeMonthSummary> UserTradeMonthSummary { get; set; }
  199. public virtual DbSet<Users> Users { get; set; }
  200. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  201. {
  202. if (!optionsBuilder.IsConfigured)
  203. {
  204. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  205. }
  206. }
  207. protected override void OnModelCreating(ModelBuilder modelBuilder)
  208. {
  209. modelBuilder.Entity<ActiveReward>(entity =>
  210. {
  211. entity.Property(e => e.Id).HasColumnType("int(11)");
  212. entity.Property(e => e.ActDate).HasColumnType("datetime");
  213. entity.Property(e => e.ActType).HasColumnType("int(11)");
  214. entity.Property(e => e.ActTypeDesc)
  215. .HasColumnType("varchar(64)")
  216. .HasCharSet("utf8")
  217. .HasCollation("utf8_general_ci");
  218. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  219. entity.Property(e => e.City)
  220. .HasColumnType("varchar(32)")
  221. .HasCharSet("utf8")
  222. .HasCollation("utf8_general_ci");
  223. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  224. entity.Property(e => e.CreateMan)
  225. .HasColumnType("varchar(50)")
  226. .HasCharSet("utf8")
  227. .HasCollation("utf8_general_ci");
  228. entity.Property(e => e.DirectBuddyNo).HasColumnType("int(11)");
  229. entity.Property(e => e.DivideAmount).HasColumnType("decimal(18,2)");
  230. entity.Property(e => e.KqMerNo)
  231. .HasColumnType("varchar(32)")
  232. .HasCharSet("utf8")
  233. .HasCollation("utf8_general_ci");
  234. entity.Property(e => e.KqSnNo)
  235. .HasColumnType("varchar(32)")
  236. .HasCharSet("utf8")
  237. .HasCollation("utf8_general_ci");
  238. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  239. entity.Property(e => e.MerUserNav)
  240. .HasColumnType("varchar(200)")
  241. .HasCharSet("utf8")
  242. .HasCollation("utf8_general_ci");
  243. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  244. entity.Property(e => e.ParentParentUserId).HasColumnType("int(11)");
  245. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  246. entity.Property(e => e.Province)
  247. .HasColumnType("varchar(32)")
  248. .HasCharSet("utf8")
  249. .HasCollation("utf8_general_ci");
  250. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  251. entity.Property(e => e.Remark)
  252. .HasColumnType("varchar(64)")
  253. .HasCharSet("utf8")
  254. .HasCollation("utf8_general_ci");
  255. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  256. entity.Property(e => e.RewardRef).HasColumnType("int(11)");
  257. entity.Property(e => e.RewardSourceUserId).HasColumnType("int(11)");
  258. entity.Property(e => e.RewardTips)
  259. .HasColumnType("varchar(16)")
  260. .HasCharSet("utf8")
  261. .HasCollation("utf8_general_ci");
  262. entity.Property(e => e.RuleRewardAmount).HasColumnType("decimal(18,2)");
  263. entity.Property(e => e.SeoDescription)
  264. .HasColumnType("varchar(500)")
  265. .HasCharSet("utf8")
  266. .HasCollation("utf8_general_ci");
  267. entity.Property(e => e.SeoKeyword)
  268. .HasColumnType("varchar(200)")
  269. .HasCharSet("utf8")
  270. .HasCollation("utf8_general_ci");
  271. entity.Property(e => e.SeoTitle)
  272. .HasColumnType("varchar(100)")
  273. .HasCharSet("utf8")
  274. .HasCollation("utf8_general_ci");
  275. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  276. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  277. entity.Property(e => e.SnType).HasColumnType("int(11)");
  278. entity.Property(e => e.Sort).HasColumnType("int(11)");
  279. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  280. entity.Property(e => e.Status).HasColumnType("int(11)");
  281. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  282. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  283. entity.Property(e => e.UpdateMan)
  284. .HasColumnType("varchar(50)")
  285. .HasCharSet("utf8")
  286. .HasCollation("utf8_general_ci");
  287. entity.Property(e => e.UserId).HasColumnType("int(11)");
  288. entity.Property(e => e.UserNav)
  289. .HasColumnType("varchar(200)")
  290. .HasCharSet("utf8")
  291. .HasCollation("utf8_general_ci");
  292. entity.Property(e => e.Version).HasColumnType("int(11)");
  293. });
  294. modelBuilder.Entity<ActivityEnrolRecord>(entity =>
  295. {
  296. entity.Property(e => e.Id).HasColumnType("int(11)");
  297. entity.Property(e => e.ActId).HasColumnType("int(11)");
  298. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  299. entity.Property(e => e.CreateMan)
  300. .HasColumnType("varchar(50)")
  301. .HasCharSet("utf8")
  302. .HasCollation("utf8_general_ci");
  303. entity.Property(e => e.EffectEndTime)
  304. .HasColumnType("varchar(8)")
  305. .HasCharSet("utf8")
  306. .HasCollation("utf8_general_ci");
  307. entity.Property(e => e.EffectStartTime)
  308. .HasColumnType("varchar(8)")
  309. .HasCharSet("utf8")
  310. .HasCollation("utf8_general_ci");
  311. entity.Property(e => e.EnrolMonth)
  312. .HasColumnType("varchar(80)")
  313. .HasCharSet("utf8")
  314. .HasCollation("utf8_general_ci");
  315. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  316. entity.Property(e => e.SeoDescription)
  317. .HasColumnType("varchar(500)")
  318. .HasCharSet("utf8")
  319. .HasCollation("utf8_general_ci");
  320. entity.Property(e => e.SeoKeyword)
  321. .HasColumnType("varchar(200)")
  322. .HasCharSet("utf8")
  323. .HasCollation("utf8_general_ci");
  324. entity.Property(e => e.SeoTitle)
  325. .HasColumnType("varchar(100)")
  326. .HasCharSet("utf8")
  327. .HasCollation("utf8_general_ci");
  328. entity.Property(e => e.Sort).HasColumnType("int(11)");
  329. entity.Property(e => e.Status).HasColumnType("int(11)");
  330. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  331. entity.Property(e => e.UpdateMan)
  332. .HasColumnType("varchar(50)")
  333. .HasCharSet("utf8")
  334. .HasCollation("utf8_general_ci");
  335. entity.Property(e => e.UserId).HasColumnType("int(11)");
  336. entity.Property(e => e.Version).HasColumnType("int(11)");
  337. });
  338. modelBuilder.Entity<ActivityInfo>(entity =>
  339. {
  340. entity.Property(e => e.Id).HasColumnType("int(11)");
  341. entity.Property(e => e.ActBanner)
  342. .HasColumnType("varchar(200)")
  343. .HasCharSet("utf8")
  344. .HasCollation("utf8_general_ci");
  345. entity.Property(e => e.ActCode)
  346. .HasColumnType("varchar(32)")
  347. .HasCharSet("utf8")
  348. .HasCollation("utf8_general_ci");
  349. entity.Property(e => e.ActContent)
  350. .HasColumnType("longtext")
  351. .HasCharSet("utf8")
  352. .HasCollation("utf8_general_ci");
  353. entity.Property(e => e.ActName)
  354. .HasColumnType("varchar(128)")
  355. .HasCharSet("utf8")
  356. .HasCollation("utf8_general_ci");
  357. entity.Property(e => e.ActReferUrl)
  358. .HasColumnType("varchar(255)")
  359. .HasCharSet("utf8")
  360. .HasCollation("utf8_general_ci");
  361. entity.Property(e => e.ActType).HasColumnType("int(11)");
  362. entity.Property(e => e.BrandId)
  363. .HasColumnType("varchar(100)")
  364. .HasCharSet("utf8")
  365. .HasCollation("utf8_general_ci");
  366. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  367. entity.Property(e => e.CreateMan)
  368. .HasColumnType("varchar(50)")
  369. .HasCharSet("utf8")
  370. .HasCollation("utf8_general_ci");
  371. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  372. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  373. entity.Property(e => e.EnrolEndDate).HasColumnType("datetime");
  374. entity.Property(e => e.EnrolEndTime)
  375. .HasColumnType("varchar(8)")
  376. .HasCharSet("utf8")
  377. .HasCollation("utf8_general_ci");
  378. entity.Property(e => e.EnrolStartDate).HasColumnType("datetime");
  379. entity.Property(e => e.EnrolStartTime)
  380. .HasColumnType("varchar(8)")
  381. .HasCharSet("utf8")
  382. .HasCollation("utf8_general_ci");
  383. entity.Property(e => e.IsTop).HasColumnType("int(11)");
  384. entity.Property(e => e.LimitTopBuddy)
  385. .HasColumnType("varchar(255)")
  386. .HasCharSet("utf8")
  387. .HasCollation("utf8_general_ci");
  388. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  389. entity.Property(e => e.Remark)
  390. .HasColumnType("varchar(128)")
  391. .HasCharSet("utf8")
  392. .HasCollation("utf8_general_ci");
  393. entity.Property(e => e.SeoDescription)
  394. .HasColumnType("varchar(500)")
  395. .HasCharSet("utf8")
  396. .HasCollation("utf8_general_ci");
  397. entity.Property(e => e.SeoKeyword)
  398. .HasColumnType("varchar(200)")
  399. .HasCharSet("utf8")
  400. .HasCollation("utf8_general_ci");
  401. entity.Property(e => e.SeoTitle)
  402. .HasColumnType("varchar(100)")
  403. .HasCharSet("utf8")
  404. .HasCollation("utf8_general_ci");
  405. entity.Property(e => e.Sort).HasColumnType("int(11)");
  406. entity.Property(e => e.Status).HasColumnType("int(11)");
  407. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  408. entity.Property(e => e.UpdateMan)
  409. .HasColumnType("varchar(50)")
  410. .HasCharSet("utf8")
  411. .HasCollation("utf8_general_ci");
  412. entity.Property(e => e.Version).HasColumnType("int(11)");
  413. });
  414. modelBuilder.Entity<ActivityPrizeDetail>(entity =>
  415. {
  416. entity.Property(e => e.Id).HasColumnType("int(11)");
  417. entity.Property(e => e.ActRewardAmt).HasColumnType("decimal(18,2)");
  418. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  419. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  420. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  421. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  422. entity.Property(e => e.CreateMan)
  423. .HasColumnType("varchar(50)")
  424. .HasCharSet("utf8")
  425. .HasCollation("utf8_general_ci");
  426. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  427. entity.Property(e => e.OtherProdCreditTradeAmt).HasColumnType("decimal(18,2)");
  428. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  429. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  430. entity.Property(e => e.SeoDescription)
  431. .HasColumnType("varchar(500)")
  432. .HasCharSet("utf8")
  433. .HasCollation("utf8_general_ci");
  434. entity.Property(e => e.SeoKeyword)
  435. .HasColumnType("varchar(200)")
  436. .HasCharSet("utf8")
  437. .HasCollation("utf8_general_ci");
  438. entity.Property(e => e.SeoTitle)
  439. .HasColumnType("varchar(100)")
  440. .HasCharSet("utf8")
  441. .HasCollation("utf8_general_ci");
  442. entity.Property(e => e.Sort).HasColumnType("int(11)");
  443. entity.Property(e => e.Status).HasColumnType("int(11)");
  444. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  445. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  446. entity.Property(e => e.TradeMonth)
  447. .HasColumnType("varchar(6)")
  448. .HasCharSet("utf8")
  449. .HasCollation("utf8_general_ci");
  450. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  451. entity.Property(e => e.UpdateMan)
  452. .HasColumnType("varchar(50)")
  453. .HasCharSet("utf8")
  454. .HasCollation("utf8_general_ci");
  455. entity.Property(e => e.UserId).HasColumnType("int(11)");
  456. entity.Property(e => e.Version).HasColumnType("int(11)");
  457. });
  458. modelBuilder.Entity<Advertisment>(entity =>
  459. {
  460. entity.Property(e => e.Id).HasColumnType("int(11)");
  461. entity.Property(e => e.ColId)
  462. .HasColumnType("varchar(30)")
  463. .HasCharSet("utf8")
  464. .HasCollation("utf8_general_ci");
  465. entity.Property(e => e.Contents)
  466. .HasColumnType("longtext")
  467. .HasCharSet("utf8")
  468. .HasCollation("utf8_general_ci");
  469. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  470. entity.Property(e => e.CreateMan)
  471. .HasColumnType("varchar(50)")
  472. .HasCharSet("utf8")
  473. .HasCollation("utf8_general_ci");
  474. entity.Property(e => e.PicPath)
  475. .HasColumnType("varchar(200)")
  476. .HasCharSet("utf8")
  477. .HasCollation("utf8_general_ci");
  478. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  479. entity.Property(e => e.SeoDescription)
  480. .HasColumnType("varchar(500)")
  481. .HasCharSet("utf8")
  482. .HasCollation("utf8_general_ci");
  483. entity.Property(e => e.SeoKeyword)
  484. .HasColumnType("varchar(200)")
  485. .HasCharSet("utf8")
  486. .HasCollation("utf8_general_ci");
  487. entity.Property(e => e.SeoTitle)
  488. .HasColumnType("varchar(100)")
  489. .HasCharSet("utf8")
  490. .HasCollation("utf8_general_ci");
  491. entity.Property(e => e.Sort).HasColumnType("int(11)");
  492. entity.Property(e => e.Status).HasColumnType("int(11)");
  493. entity.Property(e => e.Title)
  494. .HasColumnType("varchar(50)")
  495. .HasCharSet("utf8")
  496. .HasCollation("utf8_general_ci");
  497. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  498. entity.Property(e => e.UpdateMan)
  499. .HasColumnType("varchar(50)")
  500. .HasCharSet("utf8")
  501. .HasCollation("utf8_general_ci");
  502. entity.Property(e => e.Url)
  503. .HasColumnType("longtext")
  504. .HasCharSet("utf8")
  505. .HasCollation("utf8_general_ci");
  506. entity.Property(e => e.Version).HasColumnType("int(11)");
  507. });
  508. modelBuilder.Entity<AgentLevelSet>(entity =>
  509. {
  510. entity.Property(e => e.Id).HasColumnType("int(11)");
  511. entity.Property(e => e.AreasProfitPercent).HasColumnType("decimal(18,2)");
  512. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  513. entity.Property(e => e.CreateMan)
  514. .HasColumnType("varchar(50)")
  515. .HasCharSet("utf8")
  516. .HasCollation("utf8_general_ci");
  517. entity.Property(e => e.LevelDiff)
  518. .HasColumnType("bit(1)")
  519. .HasDefaultValueSql("b'0'");
  520. entity.Property(e => e.Name)
  521. .HasColumnType("varchar(50)")
  522. .HasCharSet("utf8")
  523. .HasCollation("utf8_general_ci");
  524. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  525. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  526. entity.Property(e => e.SeoDescription)
  527. .HasColumnType("varchar(500)")
  528. .HasCharSet("utf8")
  529. .HasCollation("utf8_general_ci");
  530. entity.Property(e => e.SeoKeyword)
  531. .HasColumnType("varchar(200)")
  532. .HasCharSet("utf8")
  533. .HasCollation("utf8_general_ci");
  534. entity.Property(e => e.SeoTitle)
  535. .HasColumnType("varchar(100)")
  536. .HasCharSet("utf8")
  537. .HasCollation("utf8_general_ci");
  538. entity.Property(e => e.Sort).HasColumnType("int(11)");
  539. entity.Property(e => e.Status).HasColumnType("int(11)");
  540. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  541. entity.Property(e => e.UpdateMan)
  542. .HasColumnType("varchar(50)")
  543. .HasCharSet("utf8")
  544. .HasCollation("utf8_general_ci");
  545. entity.Property(e => e.Version).HasColumnType("int(11)");
  546. });
  547. modelBuilder.Entity<AppBottomNavs>(entity =>
  548. {
  549. entity.Property(e => e.Id).HasColumnType("int(11)");
  550. entity.Property(e => e.BgColor)
  551. .HasColumnType("varchar(6)")
  552. .HasCharSet("utf8")
  553. .HasCollation("utf8_general_ci");
  554. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  555. entity.Property(e => e.CreateMan)
  556. .HasColumnType("varchar(50)")
  557. .HasCharSet("utf8")
  558. .HasCollation("utf8_general_ci");
  559. entity.Property(e => e.NoPageHint)
  560. .HasColumnType("varchar(50)")
  561. .HasCharSet("utf8")
  562. .HasCollation("utf8_general_ci");
  563. entity.Property(e => e.NormalIcon)
  564. .HasColumnType("varchar(200)")
  565. .HasCharSet("utf8")
  566. .HasCollation("utf8_general_ci");
  567. entity.Property(e => e.NormalTextColor)
  568. .HasColumnType("varchar(6)")
  569. .HasCharSet("utf8")
  570. .HasCollation("utf8_general_ci");
  571. entity.Property(e => e.PageName)
  572. .HasColumnType("varchar(50)")
  573. .HasCharSet("utf8")
  574. .HasCollation("utf8_general_ci");
  575. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  576. entity.Property(e => e.SelectIcon)
  577. .HasColumnType("varchar(200)")
  578. .HasCharSet("utf8")
  579. .HasCollation("utf8_general_ci");
  580. entity.Property(e => e.SelectTextColor)
  581. .HasColumnType("varchar(6)")
  582. .HasCharSet("utf8")
  583. .HasCollation("utf8_general_ci");
  584. entity.Property(e => e.SeoDescription)
  585. .HasColumnType("varchar(500)")
  586. .HasCharSet("utf8")
  587. .HasCollation("utf8_general_ci");
  588. entity.Property(e => e.SeoKeyword)
  589. .HasColumnType("varchar(200)")
  590. .HasCharSet("utf8")
  591. .HasCollation("utf8_general_ci");
  592. entity.Property(e => e.SeoTitle)
  593. .HasColumnType("varchar(100)")
  594. .HasCharSet("utf8")
  595. .HasCollation("utf8_general_ci");
  596. entity.Property(e => e.Sort).HasColumnType("int(11)");
  597. entity.Property(e => e.Status).HasColumnType("int(11)");
  598. entity.Property(e => e.Title)
  599. .HasColumnType("varchar(10)")
  600. .HasCharSet("utf8")
  601. .HasCollation("utf8_general_ci");
  602. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  603. entity.Property(e => e.UpdateMan)
  604. .HasColumnType("varchar(50)")
  605. .HasCharSet("utf8")
  606. .HasCollation("utf8_general_ci");
  607. entity.Property(e => e.Version).HasColumnType("int(11)");
  608. });
  609. modelBuilder.Entity<AppVersion>(entity =>
  610. {
  611. entity.Property(e => e.Id).HasColumnType("int(11)");
  612. entity.Property(e => e.CancelText)
  613. .HasColumnType("varchar(10)")
  614. .HasCharSet("utf8")
  615. .HasCollation("utf8_general_ci");
  616. entity.Property(e => e.ConfirmText)
  617. .HasColumnType("varchar(10)")
  618. .HasCharSet("utf8")
  619. .HasCollation("utf8_general_ci");
  620. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  621. entity.Property(e => e.CreateMan)
  622. .HasColumnType("varchar(50)")
  623. .HasCharSet("utf8")
  624. .HasCollation("utf8_general_ci");
  625. entity.Property(e => e.DownloadUrl)
  626. .HasColumnType("varchar(500)")
  627. .HasCharSet("utf8")
  628. .HasCollation("utf8_general_ci");
  629. entity.Property(e => e.Info)
  630. .HasColumnType("varchar(200)")
  631. .HasCharSet("utf8")
  632. .HasCollation("utf8_general_ci");
  633. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  634. entity.Property(e => e.SeoDescription)
  635. .HasColumnType("varchar(500)")
  636. .HasCharSet("utf8")
  637. .HasCollation("utf8_general_ci");
  638. entity.Property(e => e.SeoKeyword)
  639. .HasColumnType("varchar(200)")
  640. .HasCharSet("utf8")
  641. .HasCollation("utf8_general_ci");
  642. entity.Property(e => e.SeoTitle)
  643. .HasColumnType("varchar(100)")
  644. .HasCharSet("utf8")
  645. .HasCollation("utf8_general_ci");
  646. entity.Property(e => e.Sort).HasColumnType("int(11)");
  647. entity.Property(e => e.Status).HasColumnType("int(11)");
  648. entity.Property(e => e.TerminalKind)
  649. .HasColumnType("varchar(10)")
  650. .HasCharSet("utf8")
  651. .HasCollation("utf8_general_ci");
  652. entity.Property(e => e.Title)
  653. .HasColumnType("varchar(50)")
  654. .HasCharSet("utf8")
  655. .HasCollation("utf8_general_ci");
  656. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  657. entity.Property(e => e.UpdateMan)
  658. .HasColumnType("varchar(50)")
  659. .HasCharSet("utf8")
  660. .HasCollation("utf8_general_ci");
  661. entity.Property(e => e.Version).HasColumnType("int(11)");
  662. entity.Property(e => e.VersionNum)
  663. .HasColumnType("varchar(20)")
  664. .HasCharSet("utf8")
  665. .HasCollation("utf8_general_ci");
  666. });
  667. modelBuilder.Entity<AppVideo>(entity =>
  668. {
  669. entity.Property(e => e.Id).HasColumnType("int(11)");
  670. entity.Property(e => e.BannerPic)
  671. .HasColumnType("varchar(200)")
  672. .HasCharSet("utf8")
  673. .HasCollation("utf8_general_ci");
  674. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  675. entity.Property(e => e.CreateMan)
  676. .HasColumnType("varchar(50)")
  677. .HasCharSet("utf8")
  678. .HasCollation("utf8_general_ci");
  679. entity.Property(e => e.Name)
  680. .HasColumnType("varchar(50)")
  681. .HasCharSet("utf8")
  682. .HasCollation("utf8_general_ci");
  683. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  684. entity.Property(e => e.Remark)
  685. .HasColumnType("varchar(200)")
  686. .HasCharSet("utf8")
  687. .HasCollation("utf8_general_ci");
  688. entity.Property(e => e.SeoDescription)
  689. .HasColumnType("varchar(500)")
  690. .HasCharSet("utf8")
  691. .HasCollation("utf8_general_ci");
  692. entity.Property(e => e.SeoKeyword)
  693. .HasColumnType("varchar(200)")
  694. .HasCharSet("utf8")
  695. .HasCollation("utf8_general_ci");
  696. entity.Property(e => e.SeoTitle)
  697. .HasColumnType("varchar(100)")
  698. .HasCharSet("utf8")
  699. .HasCollation("utf8_general_ci");
  700. entity.Property(e => e.Sort).HasColumnType("int(11)");
  701. entity.Property(e => e.Status).HasColumnType("int(11)");
  702. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  703. entity.Property(e => e.UpdateMan)
  704. .HasColumnType("varchar(50)")
  705. .HasCharSet("utf8")
  706. .HasCollation("utf8_general_ci");
  707. entity.Property(e => e.Version).HasColumnType("int(11)");
  708. });
  709. modelBuilder.Entity<AppVideoList>(entity =>
  710. {
  711. entity.Property(e => e.Id).HasColumnType("int(11)");
  712. entity.Property(e => e.BgPic)
  713. .HasColumnType("varchar(200)")
  714. .HasCharSet("utf8")
  715. .HasCollation("utf8_general_ci");
  716. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  717. entity.Property(e => e.CreateMan)
  718. .HasColumnType("varchar(50)")
  719. .HasCharSet("utf8")
  720. .HasCollation("utf8_general_ci");
  721. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  722. entity.Property(e => e.Remark)
  723. .HasColumnType("varchar(200)")
  724. .HasCharSet("utf8")
  725. .HasCollation("utf8_general_ci");
  726. entity.Property(e => e.SeoDescription)
  727. .HasColumnType("varchar(500)")
  728. .HasCharSet("utf8")
  729. .HasCollation("utf8_general_ci");
  730. entity.Property(e => e.SeoKeyword)
  731. .HasColumnType("varchar(200)")
  732. .HasCharSet("utf8")
  733. .HasCollation("utf8_general_ci");
  734. entity.Property(e => e.SeoTitle)
  735. .HasColumnType("varchar(100)")
  736. .HasCharSet("utf8")
  737. .HasCollation("utf8_general_ci");
  738. entity.Property(e => e.Sort).HasColumnType("int(11)");
  739. entity.Property(e => e.Status).HasColumnType("int(11)");
  740. entity.Property(e => e.Title)
  741. .HasColumnType("varchar(50)")
  742. .HasCharSet("utf8")
  743. .HasCollation("utf8_general_ci");
  744. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  745. entity.Property(e => e.UpdateMan)
  746. .HasColumnType("varchar(50)")
  747. .HasCharSet("utf8")
  748. .HasCollation("utf8_general_ci");
  749. entity.Property(e => e.Version).HasColumnType("int(11)");
  750. entity.Property(e => e.VideoId).HasColumnType("int(11)");
  751. entity.Property(e => e.VideoUrl)
  752. .HasColumnType("varchar(500)")
  753. .HasCharSet("utf8")
  754. .HasCollation("utf8_general_ci");
  755. });
  756. modelBuilder.Entity<BankInfo>(entity =>
  757. {
  758. entity.Property(e => e.Id).HasColumnType("int(11)");
  759. entity.Property(e => e.BankCode)
  760. .HasColumnType("varchar(16)")
  761. .HasCharSet("utf8")
  762. .HasCollation("utf8_general_ci");
  763. entity.Property(e => e.BankName)
  764. .HasColumnType("varchar(100)")
  765. .HasCharSet("utf8")
  766. .HasCollation("utf8_general_ci");
  767. entity.Property(e => e.BankNameAbbr)
  768. .HasColumnType("varchar(60)")
  769. .HasCharSet("utf8")
  770. .HasCollation("utf8_general_ci");
  771. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  772. entity.Property(e => e.CreateMan)
  773. .HasColumnType("varchar(50)")
  774. .HasCharSet("utf8")
  775. .HasCollation("utf8_general_ci");
  776. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  777. entity.Property(e => e.SeoDescription)
  778. .HasColumnType("varchar(500)")
  779. .HasCharSet("utf8")
  780. .HasCollation("utf8_general_ci");
  781. entity.Property(e => e.SeoKeyword)
  782. .HasColumnType("varchar(200)")
  783. .HasCharSet("utf8")
  784. .HasCollation("utf8_general_ci");
  785. entity.Property(e => e.SeoTitle)
  786. .HasColumnType("varchar(100)")
  787. .HasCharSet("utf8")
  788. .HasCollation("utf8_general_ci");
  789. entity.Property(e => e.Sort).HasColumnType("int(11)");
  790. entity.Property(e => e.Status).HasColumnType("int(11)");
  791. entity.Property(e => e.UnitedBankName)
  792. .HasColumnType("varchar(100)")
  793. .HasCharSet("utf8")
  794. .HasCollation("utf8_general_ci");
  795. entity.Property(e => e.UnitedBankNo)
  796. .HasColumnType("varchar(16)")
  797. .HasCharSet("utf8")
  798. .HasCollation("utf8_general_ci");
  799. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  800. entity.Property(e => e.UpdateMan)
  801. .HasColumnType("varchar(50)")
  802. .HasCharSet("utf8")
  803. .HasCollation("utf8_general_ci");
  804. entity.Property(e => e.Version).HasColumnType("int(11)");
  805. });
  806. modelBuilder.Entity<Col>(entity =>
  807. {
  808. entity.Property(e => e.Id).HasColumnType("int(11)");
  809. entity.Property(e => e.ClassName)
  810. .HasColumnType("varchar(50)")
  811. .HasCharSet("utf8")
  812. .HasCollation("utf8_general_ci");
  813. entity.Property(e => e.ColDetail)
  814. .HasColumnType("varchar(50)")
  815. .HasCharSet("utf8")
  816. .HasCollation("utf8_general_ci");
  817. entity.Property(e => e.ColEnName)
  818. .HasColumnType("varchar(50)")
  819. .HasCharSet("utf8")
  820. .HasCollation("utf8_general_ci");
  821. entity.Property(e => e.ColEnNav)
  822. .HasColumnType("varchar(200)")
  823. .HasCharSet("utf8")
  824. .HasCollation("utf8_general_ci");
  825. entity.Property(e => e.ColId)
  826. .HasColumnType("varchar(30)")
  827. .HasCharSet("utf8")
  828. .HasCollation("utf8_general_ci");
  829. entity.Property(e => e.ColName)
  830. .HasColumnType("varchar(50)")
  831. .HasCharSet("utf8")
  832. .HasCollation("utf8_general_ci");
  833. entity.Property(e => e.ColPicPath)
  834. .HasColumnType("varchar(200)")
  835. .HasCharSet("utf8")
  836. .HasCollation("utf8_general_ci");
  837. entity.Property(e => e.Contents)
  838. .HasColumnType("longtext")
  839. .HasCharSet("utf8")
  840. .HasCollation("utf8_general_ci");
  841. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  842. entity.Property(e => e.CreateMan)
  843. .HasColumnType("varchar(50)")
  844. .HasCharSet("utf8")
  845. .HasCollation("utf8_general_ci");
  846. entity.Property(e => e.DetailTemp)
  847. .HasColumnType("varchar(100)")
  848. .HasCharSet("utf8")
  849. .HasCollation("utf8_general_ci");
  850. entity.Property(e => e.DetailTempM)
  851. .HasColumnType("varchar(100)")
  852. .HasCharSet("utf8")
  853. .HasCollation("utf8_general_ci");
  854. entity.Property(e => e.ListPageCount).HasColumnType("int(11)");
  855. entity.Property(e => e.ListTemp)
  856. .HasColumnType("varchar(100)")
  857. .HasCharSet("utf8")
  858. .HasCollation("utf8_general_ci");
  859. entity.Property(e => e.ListTempM)
  860. .HasColumnType("varchar(100)")
  861. .HasCharSet("utf8")
  862. .HasCollation("utf8_general_ci");
  863. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  864. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  865. entity.Property(e => e.Recommend)
  866. .HasColumnType("bit(1)")
  867. .HasDefaultValueSql("b'0'");
  868. entity.Property(e => e.SeoDescription)
  869. .HasColumnType("varchar(500)")
  870. .HasCharSet("utf8")
  871. .HasCollation("utf8_general_ci");
  872. entity.Property(e => e.SeoKeyword)
  873. .HasColumnType("varchar(200)")
  874. .HasCharSet("utf8")
  875. .HasCollation("utf8_general_ci");
  876. entity.Property(e => e.SeoTitle)
  877. .HasColumnType("varchar(100)")
  878. .HasCharSet("utf8")
  879. .HasCollation("utf8_general_ci");
  880. entity.Property(e => e.Sort).HasColumnType("int(11)");
  881. entity.Property(e => e.Status).HasColumnType("int(11)");
  882. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  883. entity.Property(e => e.UpdateMan)
  884. .HasColumnType("varchar(50)")
  885. .HasCharSet("utf8")
  886. .HasCollation("utf8_general_ci");
  887. entity.Property(e => e.Url)
  888. .HasColumnType("longtext")
  889. .HasCharSet("utf8")
  890. .HasCollation("utf8_general_ci");
  891. entity.Property(e => e.Version).HasColumnType("int(11)");
  892. });
  893. modelBuilder.Entity<ConsumerOpenIds>(entity =>
  894. {
  895. entity.HasKey(e => e.OpenId)
  896. .HasName("PRIMARY");
  897. entity.Property(e => e.OpenId)
  898. .HasColumnType("varchar(50)")
  899. .HasCharSet("utf8")
  900. .HasCollation("utf8_general_ci");
  901. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  902. });
  903. modelBuilder.Entity<ConsumerOrderForNo>(entity =>
  904. {
  905. entity.HasKey(e => e.OrderNo)
  906. .HasName("PRIMARY");
  907. entity.Property(e => e.OrderNo)
  908. .HasColumnType("varchar(50)")
  909. .HasCharSet("utf8")
  910. .HasCollation("utf8_general_ci");
  911. entity.Property(e => e.OrderIds).HasColumnType("int(11)");
  912. });
  913. modelBuilder.Entity<ConsumerOrders>(entity =>
  914. {
  915. entity.Property(e => e.Id).HasColumnType("int(11)");
  916. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  917. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  918. entity.Property(e => e.CreateMan)
  919. .HasColumnType("varchar(50)")
  920. .HasCharSet("utf8")
  921. .HasCollation("utf8_general_ci");
  922. entity.Property(e => e.CurDivi).HasColumnType("decimal(18,2)");
  923. entity.Property(e => e.IsAct)
  924. .HasColumnType("bit(1)")
  925. .HasDefaultValueSql("b'0'");
  926. entity.Property(e => e.MaxDivi).HasColumnType("decimal(18,2)");
  927. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  928. entity.Property(e => e.OrderNo)
  929. .HasColumnType("varchar(30)")
  930. .HasCharSet("utf8")
  931. .HasCollation("utf8_general_ci");
  932. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  933. entity.Property(e => e.PayMoney).HasColumnType("decimal(18,2)");
  934. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  935. entity.Property(e => e.ReturnMoney).HasColumnType("decimal(18,2)");
  936. entity.Property(e => e.SeoDescription)
  937. .HasColumnType("varchar(500)")
  938. .HasCharSet("utf8")
  939. .HasCollation("utf8_general_ci");
  940. entity.Property(e => e.SeoKeyword)
  941. .HasColumnType("varchar(200)")
  942. .HasCharSet("utf8")
  943. .HasCollation("utf8_general_ci");
  944. entity.Property(e => e.SeoTitle)
  945. .HasColumnType("varchar(100)")
  946. .HasCharSet("utf8")
  947. .HasCollation("utf8_general_ci");
  948. entity.Property(e => e.SnNo)
  949. .HasColumnType("varchar(50)")
  950. .HasCharSet("utf8")
  951. .HasCollation("utf8_general_ci");
  952. entity.Property(e => e.Sort).HasColumnType("int(11)");
  953. entity.Property(e => e.Status).HasColumnType("int(11)");
  954. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  955. entity.Property(e => e.UpdateMan)
  956. .HasColumnType("varchar(50)")
  957. .HasCharSet("utf8")
  958. .HasCollation("utf8_general_ci");
  959. entity.Property(e => e.Version).HasColumnType("int(11)");
  960. });
  961. modelBuilder.Entity<ConsumerProfit>(entity =>
  962. {
  963. entity.Property(e => e.Id).HasColumnType("int(11)");
  964. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  965. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  966. entity.Property(e => e.CreateMan)
  967. .HasColumnType("varchar(50)")
  968. .HasCharSet("utf8")
  969. .HasCollation("utf8_general_ci");
  970. entity.Property(e => e.GetMoney).HasColumnType("decimal(18,2)");
  971. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  972. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  973. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  974. entity.Property(e => e.SeoDescription)
  975. .HasColumnType("varchar(500)")
  976. .HasCharSet("utf8")
  977. .HasCollation("utf8_general_ci");
  978. entity.Property(e => e.SeoKeyword)
  979. .HasColumnType("varchar(200)")
  980. .HasCharSet("utf8")
  981. .HasCollation("utf8_general_ci");
  982. entity.Property(e => e.SeoTitle)
  983. .HasColumnType("varchar(100)")
  984. .HasCharSet("utf8")
  985. .HasCollation("utf8_general_ci");
  986. entity.Property(e => e.Sort).HasColumnType("int(11)");
  987. entity.Property(e => e.Status).HasColumnType("int(11)");
  988. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  989. entity.Property(e => e.UpdateMan)
  990. .HasColumnType("varchar(50)")
  991. .HasCharSet("utf8")
  992. .HasCollation("utf8_general_ci");
  993. entity.Property(e => e.Version).HasColumnType("int(11)");
  994. });
  995. modelBuilder.Entity<Consumers>(entity =>
  996. {
  997. entity.Property(e => e.Id).HasColumnType("int(11)");
  998. entity.Property(e => e.AlipayFlag)
  999. .HasColumnType("bit(1)")
  1000. .HasDefaultValueSql("b'0'");
  1001. entity.Property(e => e.AlipayUserId)
  1002. .HasColumnType("varchar(50)")
  1003. .HasCharSet("utf8")
  1004. .HasCollation("utf8_general_ci");
  1005. entity.Property(e => e.CardFlag)
  1006. .HasColumnType("bit(1)")
  1007. .HasDefaultValueSql("b'0'");
  1008. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1009. entity.Property(e => e.CreateMan)
  1010. .HasColumnType("varchar(50)")
  1011. .HasCharSet("utf8")
  1012. .HasCollation("utf8_general_ci");
  1013. entity.Property(e => e.CurIntgegral).HasColumnType("int(11)");
  1014. entity.Property(e => e.HeadPhoto)
  1015. .HasColumnType("varchar(2000)")
  1016. .HasCharSet("utf8")
  1017. .HasCollation("utf8_general_ci");
  1018. entity.Property(e => e.LastConsumDate).HasColumnType("datetime");
  1019. entity.Property(e => e.Mobile)
  1020. .HasColumnType("varchar(11)")
  1021. .HasCharSet("utf8")
  1022. .HasCollation("utf8_general_ci");
  1023. entity.Property(e => e.NickName)
  1024. .HasColumnType("varchar(50)")
  1025. .HasCharSet("utf8")
  1026. .HasCollation("utf8_general_ci");
  1027. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1028. entity.Property(e => e.SeoDescription)
  1029. .HasColumnType("varchar(500)")
  1030. .HasCharSet("utf8")
  1031. .HasCollation("utf8_general_ci");
  1032. entity.Property(e => e.SeoKeyword)
  1033. .HasColumnType("varchar(200)")
  1034. .HasCharSet("utf8")
  1035. .HasCollation("utf8_general_ci");
  1036. entity.Property(e => e.SeoTitle)
  1037. .HasColumnType("varchar(100)")
  1038. .HasCharSet("utf8")
  1039. .HasCollation("utf8_general_ci");
  1040. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1041. entity.Property(e => e.Status).HasColumnType("int(11)");
  1042. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1043. entity.Property(e => e.TotalConsumCount).HasColumnType("int(11)");
  1044. entity.Property(e => e.TotalDividend).HasColumnType("decimal(18,2)");
  1045. entity.Property(e => e.TotalIntegral).HasColumnType("int(11)");
  1046. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1047. entity.Property(e => e.UpdateMan)
  1048. .HasColumnType("varchar(50)")
  1049. .HasCharSet("utf8")
  1050. .HasCollation("utf8_general_ci");
  1051. entity.Property(e => e.Version).HasColumnType("int(11)");
  1052. entity.Property(e => e.WeChatPayFlag)
  1053. .HasColumnType("bit(1)")
  1054. .HasDefaultValueSql("b'0'");
  1055. entity.Property(e => e.WechatOpenId)
  1056. .HasColumnType("varchar(50)")
  1057. .HasCharSet("utf8")
  1058. .HasCollation("utf8_general_ci");
  1059. entity.Property(e => e.WechatUnionid)
  1060. .HasColumnType("varchar(50)")
  1061. .HasCharSet("utf8")
  1062. .HasCollation("utf8_general_ci");
  1063. });
  1064. modelBuilder.Entity<CouponAssignRecords>(entity =>
  1065. {
  1066. entity.Property(e => e.Id).HasColumnType("int(11)");
  1067. entity.Property(e => e.Areas)
  1068. .HasColumnType("varchar(50)")
  1069. .HasCharSet("utf8")
  1070. .HasCollation("utf8_general_ci");
  1071. entity.Property(e => e.CouponIds)
  1072. .HasColumnType("varchar(200)")
  1073. .HasCharSet("utf8")
  1074. .HasCollation("utf8_general_ci");
  1075. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1076. entity.Property(e => e.CreateMan)
  1077. .HasColumnType("varchar(50)")
  1078. .HasCharSet("utf8")
  1079. .HasCollation("utf8_general_ci");
  1080. entity.Property(e => e.CurMoneyMax).HasColumnType("decimal(18,2)");
  1081. entity.Property(e => e.CurMoneyMin).HasColumnType("decimal(18,2)");
  1082. entity.Property(e => e.Mobile)
  1083. .HasColumnType("varchar(11)")
  1084. .HasCharSet("utf8")
  1085. .HasCollation("utf8_general_ci");
  1086. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1087. entity.Property(e => e.SeoDescription)
  1088. .HasColumnType("varchar(500)")
  1089. .HasCharSet("utf8")
  1090. .HasCollation("utf8_general_ci");
  1091. entity.Property(e => e.SeoKeyword)
  1092. .HasColumnType("varchar(200)")
  1093. .HasCharSet("utf8")
  1094. .HasCollation("utf8_general_ci");
  1095. entity.Property(e => e.SeoTitle)
  1096. .HasColumnType("varchar(100)")
  1097. .HasCharSet("utf8")
  1098. .HasCollation("utf8_general_ci");
  1099. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1100. entity.Property(e => e.Status).HasColumnType("int(11)");
  1101. entity.Property(e => e.TotalOrderMoneyMax).HasColumnType("decimal(18,2)");
  1102. entity.Property(e => e.TotalOrderMoneyMin).HasColumnType("decimal(18,2)");
  1103. entity.Property(e => e.TotalUseIntegralMax).HasColumnType("decimal(18,2)");
  1104. entity.Property(e => e.TotalUseIntegralMin).HasColumnType("decimal(18,2)");
  1105. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1106. entity.Property(e => e.UpdateMan)
  1107. .HasColumnType("varchar(50)")
  1108. .HasCharSet("utf8")
  1109. .HasCollation("utf8_general_ci");
  1110. entity.Property(e => e.UserGroupId)
  1111. .HasColumnType("varchar(50)")
  1112. .HasCharSet("utf8")
  1113. .HasCollation("utf8_general_ci");
  1114. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1115. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1116. entity.Property(e => e.Version).HasColumnType("int(11)");
  1117. });
  1118. modelBuilder.Entity<Coupons>(entity =>
  1119. {
  1120. entity.Property(e => e.Id).HasColumnType("int(11)");
  1121. entity.Property(e => e.AndPromotion)
  1122. .HasColumnType("bit(1)")
  1123. .HasDefaultValueSql("b'0'");
  1124. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1125. entity.Property(e => e.CreateMan)
  1126. .HasColumnType("varchar(50)")
  1127. .HasCharSet("utf8")
  1128. .HasCollation("utf8_general_ci");
  1129. entity.Property(e => e.ExpireEndDate).HasColumnType("datetime");
  1130. entity.Property(e => e.ExpireStartDate).HasColumnType("datetime");
  1131. entity.Property(e => e.Explanation)
  1132. .HasColumnType("varchar(200)")
  1133. .HasCharSet("utf8")
  1134. .HasCollation("utf8_general_ci");
  1135. entity.Property(e => e.FullReduceData).HasColumnType("decimal(18,2)");
  1136. entity.Property(e => e.FullReduceMoney).HasColumnType("decimal(18,2)");
  1137. entity.Property(e => e.IsNewUser)
  1138. .HasColumnType("bit(1)")
  1139. .HasDefaultValueSql("b'0'");
  1140. entity.Property(e => e.IsPublic)
  1141. .HasColumnType("bit(1)")
  1142. .HasDefaultValueSql("b'0'");
  1143. entity.Property(e => e.IsReUse)
  1144. .HasColumnType("bit(1)")
  1145. .HasDefaultValueSql("b'0'");
  1146. entity.Property(e => e.IsRepeat)
  1147. .HasColumnType("bit(1)")
  1148. .HasDefaultValueSql("b'0'");
  1149. entity.Property(e => e.IsSuperpose)
  1150. .HasColumnType("bit(1)")
  1151. .HasDefaultValueSql("b'0'");
  1152. entity.Property(e => e.Kind).HasColumnType("int(11)");
  1153. entity.Property(e => e.MerchantId)
  1154. .HasColumnType("varchar(200)")
  1155. .HasCharSet("utf8")
  1156. .HasCollation("utf8_general_ci");
  1157. entity.Property(e => e.Name)
  1158. .HasColumnType("varchar(50)")
  1159. .HasCharSet("utf8")
  1160. .HasCollation("utf8_general_ci");
  1161. entity.Property(e => e.ProductColId)
  1162. .HasColumnType("varchar(200)")
  1163. .HasCharSet("utf8")
  1164. .HasCollation("utf8_general_ci");
  1165. entity.Property(e => e.ProductId)
  1166. .HasColumnType("varchar(500)")
  1167. .HasCharSet("utf8")
  1168. .HasCollation("utf8_general_ci");
  1169. entity.Property(e => e.PublicEndDate).HasColumnType("datetime");
  1170. entity.Property(e => e.PublicMax).HasColumnType("int(11)");
  1171. entity.Property(e => e.PublicMaxByDay).HasColumnType("int(11)");
  1172. entity.Property(e => e.PublicStartDate).HasColumnType("datetime");
  1173. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1174. entity.Property(e => e.RepeatCondition)
  1175. .HasColumnType("varchar(50)")
  1176. .HasCharSet("utf8")
  1177. .HasCollation("utf8_general_ci");
  1178. entity.Property(e => e.RepeatType).HasColumnType("int(11)");
  1179. entity.Property(e => e.SeoDescription)
  1180. .HasColumnType("varchar(500)")
  1181. .HasCharSet("utf8")
  1182. .HasCollation("utf8_general_ci");
  1183. entity.Property(e => e.SeoKeyword)
  1184. .HasColumnType("varchar(200)")
  1185. .HasCharSet("utf8")
  1186. .HasCollation("utf8_general_ci");
  1187. entity.Property(e => e.SeoTitle)
  1188. .HasColumnType("varchar(100)")
  1189. .HasCharSet("utf8")
  1190. .HasCollation("utf8_general_ci");
  1191. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1192. entity.Property(e => e.Status).HasColumnType("int(11)");
  1193. entity.Property(e => e.Stock).HasColumnType("decimal(18,2)");
  1194. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1195. entity.Property(e => e.UpdateMan)
  1196. .HasColumnType("varchar(50)")
  1197. .HasCharSet("utf8")
  1198. .HasCollation("utf8_general_ci");
  1199. entity.Property(e => e.UseEndDate).HasColumnType("datetime");
  1200. entity.Property(e => e.UseStartDate).HasColumnType("datetime");
  1201. entity.Property(e => e.UserMaxLevel).HasColumnType("int(11)");
  1202. entity.Property(e => e.UserMinLevel).HasColumnType("int(11)");
  1203. entity.Property(e => e.Version).HasColumnType("int(11)");
  1204. });
  1205. modelBuilder.Entity<CouponsForUser>(entity =>
  1206. {
  1207. entity.Property(e => e.Id).HasColumnType("int(11)");
  1208. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  1209. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1210. entity.Property(e => e.CreateMan)
  1211. .HasColumnType("varchar(50)")
  1212. .HasCharSet("utf8")
  1213. .HasCollation("utf8_general_ci");
  1214. entity.Property(e => e.IsLock)
  1215. .HasColumnType("bit(1)")
  1216. .HasDefaultValueSql("b'0'");
  1217. entity.Property(e => e.IsUse)
  1218. .HasColumnType("bit(1)")
  1219. .HasDefaultValueSql("b'0'");
  1220. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1221. entity.Property(e => e.SeoDescription)
  1222. .HasColumnType("varchar(500)")
  1223. .HasCharSet("utf8")
  1224. .HasCollation("utf8_general_ci");
  1225. entity.Property(e => e.SeoKeyword)
  1226. .HasColumnType("varchar(200)")
  1227. .HasCharSet("utf8")
  1228. .HasCollation("utf8_general_ci");
  1229. entity.Property(e => e.SeoTitle)
  1230. .HasColumnType("varchar(100)")
  1231. .HasCharSet("utf8")
  1232. .HasCollation("utf8_general_ci");
  1233. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1234. entity.Property(e => e.Status).HasColumnType("int(11)");
  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.UseDate).HasColumnType("datetime");
  1241. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1242. entity.Property(e => e.Version).HasColumnType("int(11)");
  1243. });
  1244. modelBuilder.Entity<CustomTagSet>(entity =>
  1245. {
  1246. entity.Property(e => e.Id).HasColumnType("int(11)");
  1247. entity.Property(e => e.Contents)
  1248. .HasColumnType("varchar(500)")
  1249. .HasCharSet("utf8")
  1250. .HasCollation("utf8_general_ci");
  1251. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1252. entity.Property(e => e.CreateMan)
  1253. .HasColumnType("varchar(50)")
  1254. .HasCharSet("utf8")
  1255. .HasCollation("utf8_general_ci");
  1256. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1257. entity.Property(e => e.SeoDescription)
  1258. .HasColumnType("varchar(500)")
  1259. .HasCharSet("utf8")
  1260. .HasCollation("utf8_general_ci");
  1261. entity.Property(e => e.SeoKeyword)
  1262. .HasColumnType("varchar(200)")
  1263. .HasCharSet("utf8")
  1264. .HasCollation("utf8_general_ci");
  1265. entity.Property(e => e.SeoTitle)
  1266. .HasColumnType("varchar(100)")
  1267. .HasCharSet("utf8")
  1268. .HasCollation("utf8_general_ci");
  1269. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1270. entity.Property(e => e.Status).HasColumnType("int(11)");
  1271. entity.Property(e => e.Tags)
  1272. .HasColumnType("varchar(50)")
  1273. .HasCharSet("utf8")
  1274. .HasCollation("utf8_general_ci");
  1275. entity.Property(e => e.Title)
  1276. .HasColumnType("varchar(50)")
  1277. .HasCharSet("utf8")
  1278. .HasCollation("utf8_general_ci");
  1279. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1280. entity.Property(e => e.UpdateMan)
  1281. .HasColumnType("varchar(50)")
  1282. .HasCharSet("utf8")
  1283. .HasCollation("utf8_general_ci");
  1284. entity.Property(e => e.Version).HasColumnType("int(11)");
  1285. });
  1286. modelBuilder.Entity<ErpCompanys>(entity =>
  1287. {
  1288. entity.Property(e => e.Id).HasColumnType("int(11)");
  1289. entity.Property(e => e.Code)
  1290. .HasColumnType("varchar(50)")
  1291. .HasCharSet("utf8")
  1292. .HasCollation("utf8_general_ci");
  1293. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1294. entity.Property(e => e.CreateMan)
  1295. .HasColumnType("varchar(50)")
  1296. .HasCharSet("utf8")
  1297. .HasCollation("utf8_general_ci");
  1298. entity.Property(e => e.Name)
  1299. .HasColumnType("varchar(50)")
  1300. .HasCharSet("utf8")
  1301. .HasCollation("utf8_general_ci");
  1302. entity.Property(e => e.Phone)
  1303. .HasColumnType("varchar(30)")
  1304. .HasCharSet("utf8")
  1305. .HasCollation("utf8_general_ci");
  1306. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1307. entity.Property(e => e.SeoDescription)
  1308. .HasColumnType("varchar(500)")
  1309. .HasCharSet("utf8")
  1310. .HasCollation("utf8_general_ci");
  1311. entity.Property(e => e.SeoKeyword)
  1312. .HasColumnType("varchar(200)")
  1313. .HasCharSet("utf8")
  1314. .HasCollation("utf8_general_ci");
  1315. entity.Property(e => e.SeoTitle)
  1316. .HasColumnType("varchar(100)")
  1317. .HasCharSet("utf8")
  1318. .HasCollation("utf8_general_ci");
  1319. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1320. entity.Property(e => e.Status).HasColumnType("int(11)");
  1321. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1322. entity.Property(e => e.UpdateMan)
  1323. .HasColumnType("varchar(50)")
  1324. .HasCharSet("utf8")
  1325. .HasCollation("utf8_general_ci");
  1326. entity.Property(e => e.Version).HasColumnType("int(11)");
  1327. });
  1328. modelBuilder.Entity<FileUpdateInfo>(entity =>
  1329. {
  1330. entity.Property(e => e.Id).HasColumnType("int(11)");
  1331. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1332. entity.Property(e => e.CreateMan)
  1333. .HasColumnType("varchar(50)")
  1334. .HasCharSet("utf8")
  1335. .HasCollation("utf8_general_ci");
  1336. entity.Property(e => e.FileName)
  1337. .HasColumnType("varchar(50)")
  1338. .HasCharSet("utf8")
  1339. .HasCollation("utf8_general_ci");
  1340. entity.Property(e => e.Path)
  1341. .HasColumnType("varchar(200)")
  1342. .HasCharSet("utf8")
  1343. .HasCollation("utf8_general_ci");
  1344. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1345. entity.Property(e => e.SeoDescription)
  1346. .HasColumnType("varchar(500)")
  1347. .HasCharSet("utf8")
  1348. .HasCollation("utf8_general_ci");
  1349. entity.Property(e => e.SeoKeyword)
  1350. .HasColumnType("varchar(200)")
  1351. .HasCharSet("utf8")
  1352. .HasCollation("utf8_general_ci");
  1353. entity.Property(e => e.SeoTitle)
  1354. .HasColumnType("varchar(100)")
  1355. .HasCharSet("utf8")
  1356. .HasCollation("utf8_general_ci");
  1357. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1358. entity.Property(e => e.Status).HasColumnType("int(11)");
  1359. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1360. entity.Property(e => e.UpdateMan)
  1361. .HasColumnType("varchar(50)")
  1362. .HasCharSet("utf8")
  1363. .HasCollation("utf8_general_ci");
  1364. entity.Property(e => e.Version).HasColumnType("int(11)");
  1365. entity.Property(e => e.VersionNum).HasColumnType("int(11)");
  1366. });
  1367. modelBuilder.Entity<FluxProfitDetail>(entity =>
  1368. {
  1369. entity.Property(e => e.Id).HasColumnType("int(11)");
  1370. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1371. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1372. entity.Property(e => e.CreateMan)
  1373. .HasColumnType("varchar(50)")
  1374. .HasCharSet("utf8")
  1375. .HasCollation("utf8_general_ci");
  1376. entity.Property(e => e.FluxEndDate)
  1377. .HasColumnType("varchar(8)")
  1378. .HasCharSet("utf8")
  1379. .HasCollation("utf8_general_ci");
  1380. entity.Property(e => e.FluxFeeAmt).HasColumnType("decimal(18,2)");
  1381. entity.Property(e => e.FluxOrderNo)
  1382. .HasColumnType("varchar(64)")
  1383. .HasCharSet("utf8")
  1384. .HasCollation("utf8_general_ci");
  1385. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1386. entity.Property(e => e.FluxStartDate)
  1387. .HasColumnType("varchar(8)")
  1388. .HasCharSet("utf8")
  1389. .HasCollation("utf8_general_ci");
  1390. entity.Property(e => e.MerNo)
  1391. .HasColumnType("varchar(32)")
  1392. .HasCharSet("utf8")
  1393. .HasCollation("utf8_general_ci");
  1394. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1395. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  1396. entity.Property(e => e.MerchantUserId).HasColumnType("int(11)");
  1397. entity.Property(e => e.PosType)
  1398. .HasColumnType("varchar(32)")
  1399. .HasCharSet("utf8")
  1400. .HasCollation("utf8_general_ci");
  1401. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  1402. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1403. entity.Property(e => e.RecordNo)
  1404. .HasColumnType("varchar(32)")
  1405. .HasCharSet("utf8")
  1406. .HasCollation("utf8_general_ci");
  1407. entity.Property(e => e.Remark)
  1408. .HasColumnType("varchar(128)")
  1409. .HasCharSet("utf8")
  1410. .HasCollation("utf8_general_ci");
  1411. entity.Property(e => e.SeoDescription)
  1412. .HasColumnType("varchar(500)")
  1413. .HasCharSet("utf8")
  1414. .HasCollation("utf8_general_ci");
  1415. entity.Property(e => e.SeoKeyword)
  1416. .HasColumnType("varchar(200)")
  1417. .HasCharSet("utf8")
  1418. .HasCollation("utf8_general_ci");
  1419. entity.Property(e => e.SeoTitle)
  1420. .HasColumnType("varchar(100)")
  1421. .HasCharSet("utf8")
  1422. .HasCollation("utf8_general_ci");
  1423. entity.Property(e => e.SnNo)
  1424. .HasColumnType("varchar(32)")
  1425. .HasCharSet("utf8")
  1426. .HasCollation("utf8_general_ci");
  1427. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1428. entity.Property(e => e.Status).HasColumnType("int(11)");
  1429. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1430. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  1431. entity.Property(e => e.TradeDate)
  1432. .HasColumnType("varchar(8)")
  1433. .HasCharSet("utf8")
  1434. .HasCollation("utf8_general_ci");
  1435. entity.Property(e => e.TradeMonth)
  1436. .HasColumnType("varchar(6)")
  1437. .HasCharSet("utf8")
  1438. .HasCollation("utf8_general_ci");
  1439. entity.Property(e => e.TradeOrderNo)
  1440. .HasColumnType("varchar(64)")
  1441. .HasCharSet("utf8")
  1442. .HasCollation("utf8_general_ci");
  1443. entity.Property(e => e.TradeTime)
  1444. .HasColumnType("varchar(6)")
  1445. .HasCharSet("utf8")
  1446. .HasCollation("utf8_general_ci");
  1447. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1448. entity.Property(e => e.UpdateMan)
  1449. .HasColumnType("varchar(50)")
  1450. .HasCharSet("utf8")
  1451. .HasCollation("utf8_general_ci");
  1452. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1453. entity.Property(e => e.Version).HasColumnType("int(11)");
  1454. });
  1455. modelBuilder.Entity<FluxProfitSummary>(entity =>
  1456. {
  1457. entity.Property(e => e.Id).HasColumnType("int(11)");
  1458. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1459. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  1460. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1461. entity.Property(e => e.CreateMan)
  1462. .HasColumnType("varchar(50)")
  1463. .HasCharSet("utf8")
  1464. .HasCollation("utf8_general_ci");
  1465. entity.Property(e => e.FluxProfitAmt).HasColumnType("decimal(18,2)");
  1466. entity.Property(e => e.FluxTradeNum).HasColumnType("int(11)");
  1467. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  1468. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1469. entity.Property(e => e.Remark)
  1470. .HasColumnType("varchar(64)")
  1471. .HasCharSet("utf8")
  1472. .HasCollation("utf8_general_ci");
  1473. entity.Property(e => e.SeoDescription)
  1474. .HasColumnType("varchar(500)")
  1475. .HasCharSet("utf8")
  1476. .HasCollation("utf8_general_ci");
  1477. entity.Property(e => e.SeoKeyword)
  1478. .HasColumnType("varchar(200)")
  1479. .HasCharSet("utf8")
  1480. .HasCollation("utf8_general_ci");
  1481. entity.Property(e => e.SeoTitle)
  1482. .HasColumnType("varchar(100)")
  1483. .HasCharSet("utf8")
  1484. .HasCollation("utf8_general_ci");
  1485. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1486. entity.Property(e => e.Status).HasColumnType("int(11)");
  1487. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1488. entity.Property(e => e.TradeMonth)
  1489. .HasColumnType("varchar(6)")
  1490. .HasCharSet("utf8")
  1491. .HasCollation("utf8_general_ci");
  1492. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1493. entity.Property(e => e.UpdateMan)
  1494. .HasColumnType("varchar(50)")
  1495. .HasCharSet("utf8")
  1496. .HasCollation("utf8_general_ci");
  1497. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1498. entity.Property(e => e.Version).HasColumnType("int(11)");
  1499. });
  1500. modelBuilder.Entity<IndexIconList>(entity =>
  1501. {
  1502. entity.Property(e => e.Id).HasColumnType("int(11)");
  1503. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1504. entity.Property(e => e.CreateMan)
  1505. .HasColumnType("varchar(50)")
  1506. .HasCharSet("utf8")
  1507. .HasCollation("utf8_general_ci");
  1508. entity.Property(e => e.Icon)
  1509. .HasColumnType("varchar(200)")
  1510. .HasCharSet("utf8")
  1511. .HasCollation("utf8_general_ci");
  1512. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1513. entity.Property(e => e.SeoDescription)
  1514. .HasColumnType("varchar(500)")
  1515. .HasCharSet("utf8")
  1516. .HasCollation("utf8_general_ci");
  1517. entity.Property(e => e.SeoKeyword)
  1518. .HasColumnType("varchar(200)")
  1519. .HasCharSet("utf8")
  1520. .HasCollation("utf8_general_ci");
  1521. entity.Property(e => e.SeoTitle)
  1522. .HasColumnType("varchar(100)")
  1523. .HasCharSet("utf8")
  1524. .HasCollation("utf8_general_ci");
  1525. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1526. entity.Property(e => e.Status).HasColumnType("int(11)");
  1527. entity.Property(e => e.Title)
  1528. .HasColumnType("varchar(50)")
  1529. .HasCharSet("utf8")
  1530. .HasCollation("utf8_general_ci");
  1531. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1532. entity.Property(e => e.UpdateMan)
  1533. .HasColumnType("varchar(50)")
  1534. .HasCharSet("utf8")
  1535. .HasCollation("utf8_general_ci");
  1536. entity.Property(e => e.Url)
  1537. .HasColumnType("varchar(50)")
  1538. .HasCharSet("utf8")
  1539. .HasCollation("utf8_general_ci");
  1540. entity.Property(e => e.Version).HasColumnType("int(11)");
  1541. });
  1542. modelBuilder.Entity<KqProductBrand>(entity =>
  1543. {
  1544. entity.Property(e => e.Id).HasColumnType("int(11)");
  1545. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1546. entity.Property(e => e.CreateMan)
  1547. .HasColumnType("varchar(50)")
  1548. .HasCharSet("utf8")
  1549. .HasCollation("utf8_general_ci");
  1550. entity.Property(e => e.Name)
  1551. .HasColumnType("varchar(50)")
  1552. .HasCharSet("utf8")
  1553. .HasCollation("utf8_general_ci");
  1554. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  1555. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1556. entity.Property(e => e.SeoDescription)
  1557. .HasColumnType("varchar(500)")
  1558. .HasCharSet("utf8")
  1559. .HasCollation("utf8_general_ci");
  1560. entity.Property(e => e.SeoKeyword)
  1561. .HasColumnType("varchar(200)")
  1562. .HasCharSet("utf8")
  1563. .HasCollation("utf8_general_ci");
  1564. entity.Property(e => e.SeoTitle)
  1565. .HasColumnType("varchar(100)")
  1566. .HasCharSet("utf8")
  1567. .HasCollation("utf8_general_ci");
  1568. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1569. entity.Property(e => e.Status).HasColumnType("int(11)");
  1570. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1571. entity.Property(e => e.UpdateMan)
  1572. .HasColumnType("varchar(50)")
  1573. .HasCharSet("utf8")
  1574. .HasCollation("utf8_general_ci");
  1575. entity.Property(e => e.Version).HasColumnType("int(11)");
  1576. });
  1577. modelBuilder.Entity<KqProductOrgs>(entity =>
  1578. {
  1579. entity.Property(e => e.Id).HasColumnType("int(11)");
  1580. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1581. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1582. entity.Property(e => e.CreateMan)
  1583. .HasColumnType("varchar(50)")
  1584. .HasCharSet("utf8")
  1585. .HasCollation("utf8_general_ci");
  1586. entity.Property(e => e.Name)
  1587. .HasColumnType("varchar(50)")
  1588. .HasCharSet("utf8")
  1589. .HasCollation("utf8_general_ci");
  1590. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1591. entity.Property(e => e.SeoDescription)
  1592. .HasColumnType("varchar(500)")
  1593. .HasCharSet("utf8")
  1594. .HasCollation("utf8_general_ci");
  1595. entity.Property(e => e.SeoKeyword)
  1596. .HasColumnType("varchar(200)")
  1597. .HasCharSet("utf8")
  1598. .HasCollation("utf8_general_ci");
  1599. entity.Property(e => e.SeoTitle)
  1600. .HasColumnType("varchar(100)")
  1601. .HasCharSet("utf8")
  1602. .HasCollation("utf8_general_ci");
  1603. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1604. entity.Property(e => e.Status).HasColumnType("int(11)");
  1605. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1606. entity.Property(e => e.UpdateMan)
  1607. .HasColumnType("varchar(50)")
  1608. .HasCharSet("utf8")
  1609. .HasCollation("utf8_general_ci");
  1610. entity.Property(e => e.Version).HasColumnType("int(11)");
  1611. });
  1612. modelBuilder.Entity<KqProductRuleSet>(entity =>
  1613. {
  1614. entity.Property(e => e.Id).HasColumnType("int(11)");
  1615. entity.Property(e => e.ActDeposit).HasColumnType("decimal(18,2)");
  1616. entity.Property(e => e.ActEndDate).HasColumnType("datetime");
  1617. entity.Property(e => e.ActFirst).HasColumnType("decimal(18,2)");
  1618. entity.Property(e => e.ActFirstDeposit).HasColumnType("decimal(18,2)");
  1619. entity.Property(e => e.ActPosCount).HasColumnType("int(11)");
  1620. entity.Property(e => e.ActPrize).HasColumnType("decimal(18,2)");
  1621. entity.Property(e => e.ActStartDate).HasColumnType("datetime");
  1622. entity.Property(e => e.ActiveCount).HasColumnType("int(11)");
  1623. entity.Property(e => e.ActivePrice).HasColumnType("decimal(18,2)");
  1624. entity.Property(e => e.BigExtendCycleDays).HasColumnType("int(11)");
  1625. entity.Property(e => e.BigTotalAmount).HasColumnType("decimal(18,2)");
  1626. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1627. entity.Property(e => e.CreateMan)
  1628. .HasColumnType("varchar(50)")
  1629. .HasCharSet("utf8")
  1630. .HasCollation("utf8_general_ci");
  1631. entity.Property(e => e.CycleEndDate).HasColumnType("datetime");
  1632. entity.Property(e => e.CycleIsOther)
  1633. .HasColumnType("bit(1)")
  1634. .HasDefaultValueSql("b'0'");
  1635. entity.Property(e => e.CyclePosDays).HasColumnType("int(11)");
  1636. entity.Property(e => e.CycleStartDate).HasColumnType("datetime");
  1637. entity.Property(e => e.Deposit).HasColumnType("decimal(18,2)");
  1638. entity.Property(e => e.FeeBindDays).HasColumnType("int(11)");
  1639. entity.Property(e => e.FeeFixed).HasColumnType("decimal(18,2)");
  1640. entity.Property(e => e.FeeOfDays).HasColumnType("datetime");
  1641. entity.Property(e => e.FeeRate).HasColumnType("decimal(18,2)");
  1642. entity.Property(e => e.FlowCardDirectProfit).HasColumnType("decimal(18,2)");
  1643. entity.Property(e => e.FlowCardEndDate).HasColumnType("datetime");
  1644. entity.Property(e => e.FlowCardFee).HasColumnType("decimal(18,2)");
  1645. entity.Property(e => e.FlowCardFreeDays).HasColumnType("int(11)");
  1646. entity.Property(e => e.FlowCardStartDate).HasColumnType("datetime");
  1647. entity.Property(e => e.HelpEndDate).HasColumnType("datetime");
  1648. entity.Property(e => e.HelpFee).HasColumnType("decimal(18,2)");
  1649. entity.Property(e => e.HelpMonths).HasColumnType("int(11)");
  1650. entity.Property(e => e.HelpStartDate).HasColumnType("datetime");
  1651. entity.Property(e => e.HelpSteadyFee).HasColumnType("decimal(18,2)");
  1652. entity.Property(e => e.MerStaEndDate).HasColumnType("datetime");
  1653. entity.Property(e => e.MerStaMonths).HasColumnType("int(11)");
  1654. entity.Property(e => e.MerStaProfit).HasColumnType("decimal(18,2)");
  1655. entity.Property(e => e.MerStaStartDate).HasColumnType("datetime");
  1656. entity.Property(e => e.MerStaTradeForMonth).HasColumnType("decimal(18,2)");
  1657. entity.Property(e => e.OpenEndDate).HasColumnType("datetime");
  1658. entity.Property(e => e.OpenStaDays).HasColumnType("int(11)");
  1659. entity.Property(e => e.OpenStaPrize).HasColumnType("decimal(18,2)");
  1660. entity.Property(e => e.OpenStaPrize2).HasColumnType("decimal(18,2)");
  1661. entity.Property(e => e.OpenStaTrade).HasColumnType("decimal(18,2)");
  1662. entity.Property(e => e.OpenStartDate).HasColumnType("datetime");
  1663. entity.Property(e => e.OrgId).HasColumnType("int(11)");
  1664. entity.Property(e => e.PullNewEndDate).HasColumnType("datetime");
  1665. entity.Property(e => e.PullNewExtendDays).HasColumnType("int(11)");
  1666. entity.Property(e => e.PullNewStartDate).HasColumnType("datetime");
  1667. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1668. entity.Property(e => e.SeoDescription)
  1669. .HasColumnType("varchar(500)")
  1670. .HasCharSet("utf8")
  1671. .HasCollation("utf8_general_ci");
  1672. entity.Property(e => e.SeoKeyword)
  1673. .HasColumnType("varchar(200)")
  1674. .HasCharSet("utf8")
  1675. .HasCollation("utf8_general_ci");
  1676. entity.Property(e => e.SeoTitle)
  1677. .HasColumnType("varchar(100)")
  1678. .HasCharSet("utf8")
  1679. .HasCollation("utf8_general_ci");
  1680. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1681. entity.Property(e => e.Status).HasColumnType("int(11)");
  1682. entity.Property(e => e.SubsidyEndDate).HasColumnType("datetime");
  1683. entity.Property(e => e.SubsidyStartDate).HasColumnType("datetime");
  1684. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1685. entity.Property(e => e.UpdateMan)
  1686. .HasColumnType("varchar(50)")
  1687. .HasCharSet("utf8")
  1688. .HasCollation("utf8_general_ci");
  1689. entity.Property(e => e.Version).HasColumnType("int(11)");
  1690. });
  1691. modelBuilder.Entity<KqProducts>(entity =>
  1692. {
  1693. entity.Property(e => e.Id).HasColumnType("int(11)");
  1694. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1695. entity.Property(e => e.CreateMan)
  1696. .HasColumnType("varchar(50)")
  1697. .HasCharSet("utf8")
  1698. .HasCollation("utf8_general_ci");
  1699. entity.Property(e => e.Name)
  1700. .HasColumnType("varchar(50)")
  1701. .HasCharSet("utf8")
  1702. .HasCollation("utf8_general_ci");
  1703. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1704. entity.Property(e => e.SeoDescription)
  1705. .HasColumnType("varchar(500)")
  1706. .HasCharSet("utf8")
  1707. .HasCollation("utf8_general_ci");
  1708. entity.Property(e => e.SeoKeyword)
  1709. .HasColumnType("varchar(200)")
  1710. .HasCharSet("utf8")
  1711. .HasCollation("utf8_general_ci");
  1712. entity.Property(e => e.SeoTitle)
  1713. .HasColumnType("varchar(100)")
  1714. .HasCharSet("utf8")
  1715. .HasCollation("utf8_general_ci");
  1716. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1717. entity.Property(e => e.Status).HasColumnType("int(11)");
  1718. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1719. entity.Property(e => e.UpdateMan)
  1720. .HasColumnType("varchar(50)")
  1721. .HasCharSet("utf8")
  1722. .HasCollation("utf8_general_ci");
  1723. entity.Property(e => e.Version).HasColumnType("int(11)");
  1724. });
  1725. modelBuilder.Entity<MachineApply>(entity =>
  1726. {
  1727. entity.Property(e => e.Id).HasColumnType("int(11)");
  1728. entity.Property(e => e.Address)
  1729. .HasColumnType("varchar(50)")
  1730. .HasCharSet("utf8")
  1731. .HasCollation("utf8_general_ci");
  1732. entity.Property(e => e.ApplyDeviceName)
  1733. .HasColumnType("varchar(32)")
  1734. .HasCharSet("utf8")
  1735. .HasCollation("utf8_general_ci");
  1736. entity.Property(e => e.ApplyDeviceNum).HasColumnType("int(11)");
  1737. entity.Property(e => e.ApplyNo)
  1738. .HasColumnType("varchar(32)")
  1739. .HasCharSet("utf8")
  1740. .HasCollation("utf8_general_ci");
  1741. entity.Property(e => e.ApplyTime).HasColumnType("datetime");
  1742. entity.Property(e => e.Areas)
  1743. .HasColumnType("varchar(30)")
  1744. .HasCharSet("utf8")
  1745. .HasCollation("utf8_general_ci");
  1746. entity.Property(e => e.AuditBy)
  1747. .HasColumnType("varchar(32)")
  1748. .HasCharSet("utf8")
  1749. .HasCollation("utf8_general_ci");
  1750. entity.Property(e => e.AuditRemark)
  1751. .HasColumnType("varchar(128)")
  1752. .HasCharSet("utf8")
  1753. .HasCollation("utf8_general_ci");
  1754. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1755. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1756. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1757. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1758. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1759. entity.Property(e => e.CreateMan)
  1760. .HasColumnType("varchar(50)")
  1761. .HasCharSet("utf8")
  1762. .HasCollation("utf8_general_ci");
  1763. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  1764. entity.Property(e => e.ExpressName)
  1765. .HasColumnType("varchar(32)")
  1766. .HasCharSet("utf8")
  1767. .HasCollation("utf8_general_ci");
  1768. entity.Property(e => e.ExpressNo)
  1769. .HasColumnType("varchar(32)")
  1770. .HasCharSet("utf8")
  1771. .HasCollation("utf8_general_ci");
  1772. entity.Property(e => e.Mobile)
  1773. .HasColumnType("varchar(11)")
  1774. .HasCharSet("utf8")
  1775. .HasCollation("utf8_general_ci");
  1776. entity.Property(e => e.OrderExpand)
  1777. .HasColumnType("mediumtext")
  1778. .HasCharSet("utf8")
  1779. .HasCollation("utf8_general_ci");
  1780. entity.Property(e => e.ProductName)
  1781. .HasColumnType("varchar(32)")
  1782. .HasCharSet("utf8")
  1783. .HasCollation("utf8_general_ci");
  1784. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1785. entity.Property(e => e.RealName)
  1786. .HasColumnType("varchar(30)")
  1787. .HasCharSet("utf8")
  1788. .HasCollation("utf8_general_ci");
  1789. entity.Property(e => e.Remark)
  1790. .HasColumnType("varchar(64)")
  1791. .HasCharSet("utf8")
  1792. .HasCollation("utf8_general_ci");
  1793. entity.Property(e => e.ReturnOrderNo)
  1794. .HasColumnType("varchar(32)")
  1795. .HasCharSet("utf8")
  1796. .HasCollation("utf8_general_ci");
  1797. entity.Property(e => e.ReturnStatus).HasColumnType("int(11)");
  1798. entity.Property(e => e.SendDate).HasColumnType("datetime");
  1799. entity.Property(e => e.SendSn)
  1800. .HasColumnType("varchar(32)")
  1801. .HasCharSet("utf8")
  1802. .HasCollation("utf8_general_ci");
  1803. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  1804. entity.Property(e => e.SeoDescription)
  1805. .HasColumnType("varchar(500)")
  1806. .HasCharSet("utf8")
  1807. .HasCollation("utf8_general_ci");
  1808. entity.Property(e => e.SeoKeyword)
  1809. .HasColumnType("varchar(200)")
  1810. .HasCharSet("utf8")
  1811. .HasCollation("utf8_general_ci");
  1812. entity.Property(e => e.SeoTitle)
  1813. .HasColumnType("varchar(100)")
  1814. .HasCharSet("utf8")
  1815. .HasCollation("utf8_general_ci");
  1816. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1817. entity.Property(e => e.Status).HasColumnType("int(11)");
  1818. entity.Property(e => e.StoreAddress)
  1819. .HasColumnType("varchar(50)")
  1820. .HasCharSet("utf8")
  1821. .HasCollation("utf8_general_ci");
  1822. entity.Property(e => e.StoreAreas)
  1823. .HasColumnType("varchar(30)")
  1824. .HasCharSet("utf8")
  1825. .HasCollation("utf8_general_ci");
  1826. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1827. entity.Property(e => e.StoreManager)
  1828. .HasColumnType("varchar(32)")
  1829. .HasCharSet("utf8")
  1830. .HasCollation("utf8_general_ci");
  1831. entity.Property(e => e.StoreManagerMobile)
  1832. .HasColumnType("varchar(11)")
  1833. .HasCharSet("utf8")
  1834. .HasCollation("utf8_general_ci");
  1835. entity.Property(e => e.StoreName)
  1836. .HasColumnType("varchar(32)")
  1837. .HasCharSet("utf8")
  1838. .HasCollation("utf8_general_ci");
  1839. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  1840. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  1841. entity.Property(e => e.SwapActProName)
  1842. .HasColumnType("varchar(32)")
  1843. .HasCharSet("utf8")
  1844. .HasCollation("utf8_general_ci");
  1845. entity.Property(e => e.SwapActProType).HasColumnType("int(11)");
  1846. entity.Property(e => e.SwapSnExpand)
  1847. .HasColumnType("mediumtext")
  1848. .HasCharSet("utf8")
  1849. .HasCollation("utf8_general_ci");
  1850. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  1851. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1852. entity.Property(e => e.UpdateMan)
  1853. .HasColumnType("varchar(50)")
  1854. .HasCharSet("utf8")
  1855. .HasCollation("utf8_general_ci");
  1856. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1857. entity.Property(e => e.Version).HasColumnType("int(11)");
  1858. });
  1859. modelBuilder.Entity<MachineApplyDetail>(entity =>
  1860. {
  1861. entity.Property(e => e.Id).HasColumnType("int(11)");
  1862. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  1863. entity.Property(e => e.ApplyNo)
  1864. .HasColumnType("varchar(32)")
  1865. .HasCharSet("utf8")
  1866. .HasCollation("utf8_general_ci");
  1867. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1868. entity.Property(e => e.CreateMan)
  1869. .HasColumnType("varchar(50)")
  1870. .HasCharSet("utf8")
  1871. .HasCollation("utf8_general_ci");
  1872. entity.Property(e => e.DeviceDesc)
  1873. .HasColumnType("varchar(32)")
  1874. .HasCharSet("utf8")
  1875. .HasCollation("utf8_general_ci");
  1876. entity.Property(e => e.DeviceModel)
  1877. .HasColumnType("varchar(32)")
  1878. .HasCharSet("utf8")
  1879. .HasCollation("utf8_general_ci");
  1880. entity.Property(e => e.DeviceSnNo)
  1881. .HasColumnType("varchar(32)")
  1882. .HasCharSet("utf8")
  1883. .HasCollation("utf8_general_ci");
  1884. entity.Property(e => e.DeviceStatus).HasColumnType("int(11)");
  1885. entity.Property(e => e.DeviceVendor)
  1886. .HasColumnType("varchar(32)")
  1887. .HasCharSet("utf8")
  1888. .HasCollation("utf8_general_ci");
  1889. entity.Property(e => e.ProductName)
  1890. .HasColumnType("varchar(32)")
  1891. .HasCharSet("utf8")
  1892. .HasCollation("utf8_general_ci");
  1893. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  1894. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1895. entity.Property(e => e.Remark)
  1896. .HasColumnType("varchar(64)")
  1897. .HasCharSet("utf8")
  1898. .HasCollation("utf8_general_ci");
  1899. entity.Property(e => e.SeoDescription)
  1900. .HasColumnType("varchar(500)")
  1901. .HasCharSet("utf8")
  1902. .HasCollation("utf8_general_ci");
  1903. entity.Property(e => e.SeoKeyword)
  1904. .HasColumnType("varchar(200)")
  1905. .HasCharSet("utf8")
  1906. .HasCollation("utf8_general_ci");
  1907. entity.Property(e => e.SeoTitle)
  1908. .HasColumnType("varchar(100)")
  1909. .HasCharSet("utf8")
  1910. .HasCollation("utf8_general_ci");
  1911. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1912. entity.Property(e => e.SourceSnNo)
  1913. .HasColumnType("varchar(32)")
  1914. .HasCharSet("utf8")
  1915. .HasCollation("utf8_general_ci");
  1916. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  1917. entity.Property(e => e.Status).HasColumnType("int(11)");
  1918. entity.Property(e => e.UpSrcProName)
  1919. .HasColumnType("varchar(32)")
  1920. .HasCharSet("utf8")
  1921. .HasCollation("utf8_general_ci");
  1922. entity.Property(e => e.UpSrcProType).HasColumnType("int(11)");
  1923. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1924. entity.Property(e => e.UpdateMan)
  1925. .HasColumnType("varchar(50)")
  1926. .HasCharSet("utf8")
  1927. .HasCollation("utf8_general_ci");
  1928. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1929. entity.Property(e => e.Version).HasColumnType("int(11)");
  1930. });
  1931. modelBuilder.Entity<MachineChange>(entity =>
  1932. {
  1933. entity.Property(e => e.Id).HasColumnType("int(11)");
  1934. entity.Property(e => e.AuditBy)
  1935. .HasColumnType("varchar(32)")
  1936. .HasCharSet("utf8")
  1937. .HasCollation("utf8_general_ci");
  1938. entity.Property(e => e.AuditRemark)
  1939. .HasColumnType("varchar(128)")
  1940. .HasCharSet("utf8")
  1941. .HasCollation("utf8_general_ci");
  1942. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  1943. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  1944. entity.Property(e => e.BackProductName)
  1945. .HasColumnType("varchar(32)")
  1946. .HasCharSet("utf8")
  1947. .HasCollation("utf8_general_ci");
  1948. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  1949. entity.Property(e => e.BackStoreId).HasColumnType("int(11)");
  1950. entity.Property(e => e.BackStoreName)
  1951. .HasColumnType("varchar(32)")
  1952. .HasCharSet("utf8")
  1953. .HasCollation("utf8_general_ci");
  1954. entity.Property(e => e.BackStoreUserId).HasColumnType("int(11)");
  1955. entity.Property(e => e.ChangeDeviceName)
  1956. .HasColumnType("varchar(32)")
  1957. .HasCharSet("utf8")
  1958. .HasCollation("utf8_general_ci");
  1959. entity.Property(e => e.ChangeDeviceNum).HasColumnType("int(11)");
  1960. entity.Property(e => e.ChangeNo)
  1961. .HasColumnType("varchar(32)")
  1962. .HasCharSet("utf8")
  1963. .HasCollation("utf8_general_ci");
  1964. entity.Property(e => e.ChangeSnExpand)
  1965. .HasColumnType("mediumtext")
  1966. .HasCharSet("utf8")
  1967. .HasCollation("utf8_general_ci");
  1968. entity.Property(e => e.ChangeTime).HasColumnType("datetime");
  1969. entity.Property(e => e.CompleteTime).HasColumnType("datetime");
  1970. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1971. entity.Property(e => e.CreateMan)
  1972. .HasColumnType("varchar(50)")
  1973. .HasCharSet("utf8")
  1974. .HasCollation("utf8_general_ci");
  1975. entity.Property(e => e.OrderExpand)
  1976. .HasColumnType("mediumtext")
  1977. .HasCharSet("utf8")
  1978. .HasCollation("utf8_general_ci");
  1979. entity.Property(e => e.OutProductName)
  1980. .HasColumnType("varchar(32)")
  1981. .HasCharSet("utf8")
  1982. .HasCollation("utf8_general_ci");
  1983. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  1984. entity.Property(e => e.OutStoreAddress)
  1985. .HasColumnType("varchar(128)")
  1986. .HasCharSet("utf8")
  1987. .HasCollation("utf8_general_ci");
  1988. entity.Property(e => e.OutStoreAreas)
  1989. .HasColumnType("varchar(30)")
  1990. .HasCharSet("utf8")
  1991. .HasCollation("utf8_general_ci");
  1992. entity.Property(e => e.OutStoreId).HasColumnType("int(11)");
  1993. entity.Property(e => e.OutStoreManager)
  1994. .HasColumnType("varchar(32)")
  1995. .HasCharSet("utf8")
  1996. .HasCollation("utf8_general_ci");
  1997. entity.Property(e => e.OutStoreManagerMobile)
  1998. .HasColumnType("varchar(11)")
  1999. .HasCharSet("utf8")
  2000. .HasCollation("utf8_general_ci");
  2001. entity.Property(e => e.OutStoreName)
  2002. .HasColumnType("varchar(32)")
  2003. .HasCharSet("utf8")
  2004. .HasCollation("utf8_general_ci");
  2005. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2006. entity.Property(e => e.Remark)
  2007. .HasColumnType("varchar(64)")
  2008. .HasCharSet("utf8")
  2009. .HasCollation("utf8_general_ci");
  2010. entity.Property(e => e.SeoDescription)
  2011. .HasColumnType("varchar(500)")
  2012. .HasCharSet("utf8")
  2013. .HasCollation("utf8_general_ci");
  2014. entity.Property(e => e.SeoKeyword)
  2015. .HasColumnType("varchar(200)")
  2016. .HasCharSet("utf8")
  2017. .HasCollation("utf8_general_ci");
  2018. entity.Property(e => e.SeoTitle)
  2019. .HasColumnType("varchar(100)")
  2020. .HasCharSet("utf8")
  2021. .HasCollation("utf8_general_ci");
  2022. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2023. entity.Property(e => e.Status).HasColumnType("int(11)");
  2024. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2025. entity.Property(e => e.UpdateMan)
  2026. .HasColumnType("varchar(50)")
  2027. .HasCharSet("utf8")
  2028. .HasCollation("utf8_general_ci");
  2029. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2030. entity.Property(e => e.Version).HasColumnType("int(11)");
  2031. });
  2032. modelBuilder.Entity<MachineChangeDetail>(entity =>
  2033. {
  2034. entity.Property(e => e.Id).HasColumnType("int(11)");
  2035. entity.Property(e => e.BackDeviceStatus).HasColumnType("int(11)");
  2036. entity.Property(e => e.BackProductName)
  2037. .HasColumnType("varchar(32)")
  2038. .HasCharSet("utf8")
  2039. .HasCollation("utf8_general_ci");
  2040. entity.Property(e => e.BackProductType).HasColumnType("int(11)");
  2041. entity.Property(e => e.BackSnNo)
  2042. .HasColumnType("varchar(32)")
  2043. .HasCharSet("utf8")
  2044. .HasCollation("utf8_general_ci");
  2045. entity.Property(e => e.BackSnType).HasColumnType("int(11)");
  2046. entity.Property(e => e.ChangeId).HasColumnType("int(11)");
  2047. entity.Property(e => e.ChangeNo)
  2048. .HasColumnType("varchar(32)")
  2049. .HasCharSet("utf8")
  2050. .HasCollation("utf8_general_ci");
  2051. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2052. entity.Property(e => e.CreateMan)
  2053. .HasColumnType("varchar(50)")
  2054. .HasCharSet("utf8")
  2055. .HasCollation("utf8_general_ci");
  2056. entity.Property(e => e.OutProductName)
  2057. .HasColumnType("varchar(32)")
  2058. .HasCharSet("utf8")
  2059. .HasCollation("utf8_general_ci");
  2060. entity.Property(e => e.OutProductType).HasColumnType("int(11)");
  2061. entity.Property(e => e.OutSnNo)
  2062. .HasColumnType("varchar(32)")
  2063. .HasCharSet("utf8")
  2064. .HasCollation("utf8_general_ci");
  2065. entity.Property(e => e.OutSnType).HasColumnType("int(11)");
  2066. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2067. entity.Property(e => e.Remark)
  2068. .HasColumnType("varchar(64)")
  2069. .HasCharSet("utf8")
  2070. .HasCollation("utf8_general_ci");
  2071. entity.Property(e => e.SeoDescription)
  2072. .HasColumnType("varchar(500)")
  2073. .HasCharSet("utf8")
  2074. .HasCollation("utf8_general_ci");
  2075. entity.Property(e => e.SeoKeyword)
  2076. .HasColumnType("varchar(200)")
  2077. .HasCharSet("utf8")
  2078. .HasCollation("utf8_general_ci");
  2079. entity.Property(e => e.SeoTitle)
  2080. .HasColumnType("varchar(100)")
  2081. .HasCharSet("utf8")
  2082. .HasCollation("utf8_general_ci");
  2083. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2084. entity.Property(e => e.Status).HasColumnType("int(11)");
  2085. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2086. entity.Property(e => e.UpdateMan)
  2087. .HasColumnType("varchar(50)")
  2088. .HasCharSet("utf8")
  2089. .HasCollation("utf8_general_ci");
  2090. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2091. entity.Property(e => e.Version).HasColumnType("int(11)");
  2092. });
  2093. modelBuilder.Entity<MachineForMerNo>(entity =>
  2094. {
  2095. entity.HasKey(e => e.MerNo)
  2096. .HasName("PRIMARY");
  2097. entity.Property(e => e.MerNo)
  2098. .HasColumnType("varchar(50)")
  2099. .HasCharSet("utf8")
  2100. .HasCollation("utf8_general_ci");
  2101. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2102. });
  2103. modelBuilder.Entity<MachineForQrCode>(entity =>
  2104. {
  2105. entity.HasKey(e => e.DataId)
  2106. .HasName("PRIMARY");
  2107. entity.Property(e => e.DataId)
  2108. .HasColumnType("varchar(20)")
  2109. .HasCharSet("utf8")
  2110. .HasCollation("utf8_general_ci");
  2111. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2112. entity.Property(e => e.MachineSnNo)
  2113. .HasColumnType("varchar(50)")
  2114. .HasCharSet("utf8")
  2115. .HasCollation("utf8_general_ci");
  2116. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2117. entity.Property(e => e.SnNo)
  2118. .HasColumnType("varchar(50)")
  2119. .HasCharSet("utf8")
  2120. .HasCollation("utf8_general_ci");
  2121. });
  2122. modelBuilder.Entity<MachineForSnNo>(entity =>
  2123. {
  2124. entity.HasKey(e => e.SnNo)
  2125. .HasName("PRIMARY");
  2126. entity.Property(e => e.SnNo)
  2127. .HasColumnType("varchar(50)")
  2128. .HasCharSet("utf8")
  2129. .HasCollation("utf8_general_ci");
  2130. entity.Property(e => e.SnId).HasColumnType("int(11)");
  2131. });
  2132. modelBuilder.Entity<MachineRenew>(entity =>
  2133. {
  2134. entity.Property(e => e.Id).HasColumnType("int(11)");
  2135. entity.Property(e => e.ApplyDate)
  2136. .HasColumnType("varchar(8)")
  2137. .HasCharSet("utf8")
  2138. .HasCollation("utf8_general_ci");
  2139. entity.Property(e => e.ApplyNo)
  2140. .HasColumnType("varchar(32)")
  2141. .HasCharSet("utf8")
  2142. .HasCollation("utf8_general_ci");
  2143. entity.Property(e => e.AuditDate).HasColumnType("datetime");
  2144. entity.Property(e => e.AuditDesc)
  2145. .HasColumnType("varchar(256)")
  2146. .HasCharSet("utf8")
  2147. .HasCollation("utf8_general_ci");
  2148. entity.Property(e => e.AuditStatus)
  2149. .HasColumnName("audit_status")
  2150. .HasColumnType("int(11)");
  2151. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2152. entity.Property(e => e.CreateMan)
  2153. .HasColumnType("varchar(50)")
  2154. .HasCharSet("utf8")
  2155. .HasCollation("utf8_general_ci");
  2156. entity.Property(e => e.DamagedBrandId).HasColumnType("int(11)");
  2157. entity.Property(e => e.DamagedSnNo)
  2158. .HasColumnType("varchar(32)")
  2159. .HasCharSet("utf8")
  2160. .HasCollation("utf8_general_ci");
  2161. entity.Property(e => e.DamagedSnType).HasColumnType("int(11)");
  2162. entity.Property(e => e.DeliverBrandId).HasColumnType("int(11)");
  2163. entity.Property(e => e.DeliverSnNo)
  2164. .HasColumnType("varchar(32)")
  2165. .HasCharSet("utf8")
  2166. .HasCollation("utf8_general_ci");
  2167. entity.Property(e => e.DemandDesc)
  2168. .HasColumnType("varchar(256)")
  2169. .HasCharSet("utf8")
  2170. .HasCollation("utf8_general_ci");
  2171. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2172. entity.Property(e => e.ReplaceBrandId).HasColumnType("int(11)");
  2173. entity.Property(e => e.ReplaceSnNo)
  2174. .HasColumnType("varchar(32)")
  2175. .HasCharSet("utf8")
  2176. .HasCollation("utf8_general_ci");
  2177. entity.Property(e => e.ReplaceSnType).HasColumnType("int(11)");
  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.UpdateDate).HasColumnType("datetime");
  2193. entity.Property(e => e.UpdateMan)
  2194. .HasColumnType("varchar(50)")
  2195. .HasCharSet("utf8")
  2196. .HasCollation("utf8_general_ci");
  2197. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2198. entity.Property(e => e.Version).HasColumnType("int(11)");
  2199. });
  2200. modelBuilder.Entity<MachineReturn>(entity =>
  2201. {
  2202. entity.Property(e => e.Id).HasColumnType("int(11)");
  2203. entity.Property(e => e.ApplyNo)
  2204. .HasColumnType("varchar(32)")
  2205. .HasCharSet("utf8")
  2206. .HasCollation("utf8_general_ci");
  2207. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  2208. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  2209. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2210. entity.Property(e => e.CreateMan)
  2211. .HasColumnType("varchar(50)")
  2212. .HasCharSet("utf8")
  2213. .HasCollation("utf8_general_ci");
  2214. entity.Property(e => e.DeviceDesc)
  2215. .HasColumnType("varchar(256)")
  2216. .HasCharSet("utf8")
  2217. .HasCollation("utf8_general_ci");
  2218. entity.Property(e => e.DeviceNum).HasColumnType("int(11)");
  2219. entity.Property(e => e.DeviceSnNos)
  2220. .HasColumnType("mediumtext")
  2221. .HasCharSet("utf8")
  2222. .HasCollation("utf8_general_ci");
  2223. entity.Property(e => e.Operator)
  2224. .HasColumnType("varchar(32)")
  2225. .HasCharSet("utf8")
  2226. .HasCollation("utf8_general_ci");
  2227. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2228. entity.Property(e => e.Remark)
  2229. .HasColumnType("varchar(64)")
  2230. .HasCharSet("utf8")
  2231. .HasCollation("utf8_general_ci");
  2232. entity.Property(e => e.SeoDescription)
  2233. .HasColumnType("varchar(500)")
  2234. .HasCharSet("utf8")
  2235. .HasCollation("utf8_general_ci");
  2236. entity.Property(e => e.SeoKeyword)
  2237. .HasColumnType("varchar(200)")
  2238. .HasCharSet("utf8")
  2239. .HasCollation("utf8_general_ci");
  2240. entity.Property(e => e.SeoTitle)
  2241. .HasColumnType("varchar(100)")
  2242. .HasCharSet("utf8")
  2243. .HasCollation("utf8_general_ci");
  2244. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2245. entity.Property(e => e.Status).HasColumnType("int(11)");
  2246. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  2247. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2248. entity.Property(e => e.UpdateMan)
  2249. .HasColumnType("varchar(50)")
  2250. .HasCharSet("utf8")
  2251. .HasCollation("utf8_general_ci");
  2252. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2253. entity.Property(e => e.Version).HasColumnType("int(11)");
  2254. });
  2255. modelBuilder.Entity<MenuRight>(entity =>
  2256. {
  2257. entity.HasKey(e => e.MenuId)
  2258. .HasName("PRIMARY");
  2259. entity.Property(e => e.MenuId)
  2260. .HasColumnType("varchar(50)")
  2261. .HasCharSet("utf8")
  2262. .HasCollation("utf8_general_ci");
  2263. entity.Property(e => e.Name)
  2264. .HasColumnType("varchar(50)")
  2265. .HasCharSet("utf8")
  2266. .HasCollation("utf8_general_ci");
  2267. });
  2268. modelBuilder.Entity<MerchantAddInfo>(entity =>
  2269. {
  2270. entity.Property(e => e.Id).HasColumnType("int(11)");
  2271. entity.Property(e => e.AccountBank)
  2272. .HasColumnType("varchar(30)")
  2273. .HasCharSet("utf8")
  2274. .HasCollation("utf8_general_ci");
  2275. entity.Property(e => e.AccountName)
  2276. .HasColumnType("varchar(50)")
  2277. .HasCharSet("utf8")
  2278. .HasCollation("utf8_general_ci");
  2279. entity.Property(e => e.AccountNumber)
  2280. .HasColumnType("varchar(50)")
  2281. .HasCharSet("utf8")
  2282. .HasCollation("utf8_general_ci");
  2283. entity.Property(e => e.ActivitiesId)
  2284. .HasColumnType("varchar(32)")
  2285. .HasCharSet("utf8")
  2286. .HasCollation("utf8_general_ci");
  2287. entity.Property(e => e.ActivitiesRate)
  2288. .HasColumnType("varchar(20)")
  2289. .HasCharSet("utf8")
  2290. .HasCollation("utf8_general_ci");
  2291. entity.Property(e => e.AppAppid)
  2292. .HasColumnType("varchar(50)")
  2293. .HasCharSet("utf8")
  2294. .HasCollation("utf8_general_ci");
  2295. entity.Property(e => e.AppPics)
  2296. .HasColumnType("varchar(200)")
  2297. .HasCharSet("utf8")
  2298. .HasCollation("utf8_general_ci");
  2299. entity.Property(e => e.AppSubAppid)
  2300. .HasColumnType("varchar(50)")
  2301. .HasCharSet("utf8")
  2302. .HasCollation("utf8_general_ci");
  2303. entity.Property(e => e.ApplymentId)
  2304. .HasColumnType("varchar(50)")
  2305. .HasCharSet("utf8")
  2306. .HasCollation("utf8_general_ci");
  2307. entity.Property(e => e.ApplymentState)
  2308. .HasColumnType("varchar(50)")
  2309. .HasCharSet("utf8")
  2310. .HasCollation("utf8_general_ci");
  2311. entity.Property(e => e.AuditDetail)
  2312. .HasColumnType("mediumtext")
  2313. .HasCharSet("utf8")
  2314. .HasCollation("utf8_general_ci");
  2315. entity.Property(e => e.BankAccountType)
  2316. .HasColumnType("varchar(50)")
  2317. .HasCharSet("utf8")
  2318. .HasCollation("utf8_general_ci");
  2319. entity.Property(e => e.BankAddressCode)
  2320. .HasColumnType("varchar(20)")
  2321. .HasCharSet("utf8")
  2322. .HasCollation("utf8_general_ci");
  2323. entity.Property(e => e.BankBranchId)
  2324. .HasColumnType("varchar(20)")
  2325. .HasCharSet("utf8")
  2326. .HasCollation("utf8_general_ci");
  2327. entity.Property(e => e.BankName)
  2328. .HasColumnType("varchar(50)")
  2329. .HasCharSet("utf8")
  2330. .HasCollation("utf8_general_ci");
  2331. entity.Property(e => e.BizAddressCode)
  2332. .HasColumnType("varchar(30)")
  2333. .HasCharSet("utf8")
  2334. .HasCollation("utf8_general_ci");
  2335. entity.Property(e => e.BizStoreAddress)
  2336. .HasColumnType("varchar(50)")
  2337. .HasCharSet("utf8")
  2338. .HasCollation("utf8_general_ci");
  2339. entity.Property(e => e.BizStoreName)
  2340. .HasColumnType("varchar(50)")
  2341. .HasCharSet("utf8")
  2342. .HasCollation("utf8_general_ci");
  2343. entity.Property(e => e.BizSubAppid)
  2344. .HasColumnType("varchar(32)")
  2345. .HasCharSet("utf8")
  2346. .HasCollation("utf8_general_ci");
  2347. entity.Property(e => e.BusinessCode)
  2348. .HasColumnType("varchar(50)")
  2349. .HasCharSet("utf8")
  2350. .HasCollation("utf8_general_ci");
  2351. entity.Property(e => e.CardPeriodBegin).HasColumnType("datetime");
  2352. entity.Property(e => e.CardPeriodEnd).HasColumnType("datetime");
  2353. entity.Property(e => e.CertCopy)
  2354. .HasColumnType("varchar(200)")
  2355. .HasCharSet("utf8")
  2356. .HasCollation("utf8_general_ci");
  2357. entity.Property(e => e.CertLegalPerson)
  2358. .HasColumnType("varchar(20)")
  2359. .HasCharSet("utf8")
  2360. .HasCollation("utf8_general_ci");
  2361. entity.Property(e => e.CertMerchantName)
  2362. .HasColumnType("varchar(30)")
  2363. .HasCharSet("utf8")
  2364. .HasCollation("utf8_general_ci");
  2365. entity.Property(e => e.CertNumber)
  2366. .HasColumnType("varchar(32)")
  2367. .HasCharSet("utf8")
  2368. .HasCollation("utf8_general_ci");
  2369. entity.Property(e => e.CertType)
  2370. .HasColumnType("varchar(30)")
  2371. .HasCharSet("utf8")
  2372. .HasCollation("utf8_general_ci");
  2373. entity.Property(e => e.CertificateLetterCopy)
  2374. .HasColumnType("varchar(200)")
  2375. .HasCharSet("utf8")
  2376. .HasCollation("utf8_general_ci");
  2377. entity.Property(e => e.CompanyAddress)
  2378. .HasColumnType("varchar(50)")
  2379. .HasCharSet("utf8")
  2380. .HasCollation("utf8_general_ci");
  2381. entity.Property(e => e.ContactEmail)
  2382. .HasColumnType("varchar(50)")
  2383. .HasCharSet("utf8")
  2384. .HasCollation("utf8_general_ci");
  2385. entity.Property(e => e.ContactIdNumber)
  2386. .HasColumnType("varchar(18)")
  2387. .HasCharSet("utf8")
  2388. .HasCollation("utf8_general_ci");
  2389. entity.Property(e => e.ContactName)
  2390. .HasColumnType("varchar(30)")
  2391. .HasCharSet("utf8")
  2392. .HasCollation("utf8_general_ci");
  2393. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2394. entity.Property(e => e.CreateMan)
  2395. .HasColumnType("varchar(50)")
  2396. .HasCharSet("utf8")
  2397. .HasCollation("utf8_general_ci");
  2398. entity.Property(e => e.IdCardCopy)
  2399. .HasColumnType("varchar(200)")
  2400. .HasCharSet("utf8")
  2401. .HasCollation("utf8_general_ci");
  2402. entity.Property(e => e.IdCardName)
  2403. .HasColumnType("varchar(20)")
  2404. .HasCharSet("utf8")
  2405. .HasCollation("utf8_general_ci");
  2406. entity.Property(e => e.IdCardNational)
  2407. .HasColumnType("varchar(200)")
  2408. .HasCharSet("utf8")
  2409. .HasCollation("utf8_general_ci");
  2410. entity.Property(e => e.IdCardNumber)
  2411. .HasColumnType("varchar(18)")
  2412. .HasCharSet("utf8")
  2413. .HasCollation("utf8_general_ci");
  2414. entity.Property(e => e.IdDocType)
  2415. .HasColumnType("varchar(50)")
  2416. .HasCharSet("utf8")
  2417. .HasCollation("utf8_general_ci");
  2418. entity.Property(e => e.IndoorPic)
  2419. .HasColumnType("varchar(200)")
  2420. .HasCharSet("utf8")
  2421. .HasCollation("utf8_general_ci");
  2422. entity.Property(e => e.LegalPerson)
  2423. .HasColumnType("varchar(20)")
  2424. .HasCharSet("utf8")
  2425. .HasCollation("utf8_general_ci");
  2426. entity.Property(e => e.LicenseCopy)
  2427. .HasColumnType("varchar(200)")
  2428. .HasCharSet("utf8")
  2429. .HasCollation("utf8_general_ci");
  2430. entity.Property(e => e.LicenseNumber)
  2431. .HasColumnType("varchar(32)")
  2432. .HasCharSet("utf8")
  2433. .HasCollation("utf8_general_ci");
  2434. entity.Property(e => e.MerchantShortname)
  2435. .HasColumnType("varchar(50)")
  2436. .HasCharSet("utf8")
  2437. .HasCollation("utf8_general_ci");
  2438. entity.Property(e => e.MiniProgramAppid)
  2439. .HasColumnType("varchar(50)")
  2440. .HasCharSet("utf8")
  2441. .HasCollation("utf8_general_ci");
  2442. entity.Property(e => e.MiniProgramPics)
  2443. .HasColumnType("varchar(200)")
  2444. .HasCharSet("utf8")
  2445. .HasCollation("utf8_general_ci");
  2446. entity.Property(e => e.MiniProgramSubAppid)
  2447. .HasColumnType("varchar(50)")
  2448. .HasCharSet("utf8")
  2449. .HasCollation("utf8_general_ci");
  2450. entity.Property(e => e.MobilePhone)
  2451. .HasColumnType("varchar(11)")
  2452. .HasCharSet("utf8")
  2453. .HasCollation("utf8_general_ci");
  2454. entity.Property(e => e.MpAppid)
  2455. .HasColumnType("varchar(50)")
  2456. .HasCharSet("utf8")
  2457. .HasCollation("utf8_general_ci");
  2458. entity.Property(e => e.MpPics)
  2459. .HasColumnType("varchar(200)")
  2460. .HasCharSet("utf8")
  2461. .HasCollation("utf8_general_ci");
  2462. entity.Property(e => e.MpSubAppid)
  2463. .HasColumnType("varchar(50)")
  2464. .HasCharSet("utf8")
  2465. .HasCollation("utf8_general_ci");
  2466. entity.Property(e => e.OpenId)
  2467. .HasColumnType("varchar(50)")
  2468. .HasCharSet("utf8")
  2469. .HasCollation("utf8_general_ci");
  2470. entity.Property(e => e.OrgPeriodBegin).HasColumnType("datetime");
  2471. entity.Property(e => e.OrgPeriodEnd).HasColumnType("datetime");
  2472. entity.Property(e => e.OrganizationCode)
  2473. .HasColumnType("varchar(32)")
  2474. .HasCharSet("utf8")
  2475. .HasCollation("utf8_general_ci");
  2476. entity.Property(e => e.OrganizationCopy)
  2477. .HasColumnType("varchar(200)")
  2478. .HasCharSet("utf8")
  2479. .HasCollation("utf8_general_ci");
  2480. entity.Property(e => e.Owner)
  2481. .HasColumnType("bit(1)")
  2482. .HasDefaultValueSql("b'0'");
  2483. entity.Property(e => e.PeriodBegin).HasColumnType("datetime");
  2484. entity.Property(e => e.PeriodEnd).HasColumnType("datetime");
  2485. entity.Property(e => e.QualificationType)
  2486. .HasColumnType("varchar(30)")
  2487. .HasCharSet("utf8")
  2488. .HasCollation("utf8_general_ci");
  2489. entity.Property(e => e.Qualifications)
  2490. .HasColumnType("varchar(200)")
  2491. .HasCharSet("utf8")
  2492. .HasCollation("utf8_general_ci");
  2493. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2494. entity.Property(e => e.SalesScenesType)
  2495. .HasColumnType("varchar(50)")
  2496. .HasCharSet("utf8")
  2497. .HasCollation("utf8_general_ci");
  2498. entity.Property(e => e.SeoDescription)
  2499. .HasColumnType("varchar(500)")
  2500. .HasCharSet("utf8")
  2501. .HasCollation("utf8_general_ci");
  2502. entity.Property(e => e.SeoKeyword)
  2503. .HasColumnType("varchar(200)")
  2504. .HasCharSet("utf8")
  2505. .HasCollation("utf8_general_ci");
  2506. entity.Property(e => e.SeoTitle)
  2507. .HasColumnType("varchar(100)")
  2508. .HasCharSet("utf8")
  2509. .HasCollation("utf8_general_ci");
  2510. entity.Property(e => e.ServicePhone)
  2511. .HasColumnType("varchar(30)")
  2512. .HasCharSet("utf8")
  2513. .HasCollation("utf8_general_ci");
  2514. entity.Property(e => e.SettlementId)
  2515. .HasColumnType("varchar(3)")
  2516. .HasCharSet("utf8")
  2517. .HasCollation("utf8_general_ci");
  2518. entity.Property(e => e.SignUrl)
  2519. .HasColumnType("varchar(1000)")
  2520. .HasCharSet("utf8")
  2521. .HasCollation("utf8_general_ci");
  2522. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2523. entity.Property(e => e.Status).HasColumnType("int(11)");
  2524. entity.Property(e => e.StoreEntrancePic)
  2525. .HasColumnType("varchar(200)")
  2526. .HasCharSet("utf8")
  2527. .HasCollation("utf8_general_ci");
  2528. entity.Property(e => e.SubCorpId)
  2529. .HasColumnType("varchar(50)")
  2530. .HasCharSet("utf8")
  2531. .HasCollation("utf8_general_ci");
  2532. entity.Property(e => e.SubMchid)
  2533. .HasColumnType("varchar(32)")
  2534. .HasCharSet("utf8")
  2535. .HasCollation("utf8_general_ci");
  2536. entity.Property(e => e.SubjectType)
  2537. .HasColumnType("varchar(50)")
  2538. .HasCharSet("utf8")
  2539. .HasCollation("utf8_general_ci");
  2540. entity.Property(e => e.UboInfoIdCardCopy)
  2541. .HasColumnType("varchar(200)")
  2542. .HasCharSet("utf8")
  2543. .HasCollation("utf8_general_ci");
  2544. entity.Property(e => e.UboInfoIdCardNational)
  2545. .HasColumnType("varchar(200)")
  2546. .HasCharSet("utf8")
  2547. .HasCollation("utf8_general_ci");
  2548. entity.Property(e => e.UboInfoIdDocCopy)
  2549. .HasColumnType("varchar(200)")
  2550. .HasCharSet("utf8")
  2551. .HasCollation("utf8_general_ci");
  2552. entity.Property(e => e.UboInfoIdNumber)
  2553. .HasColumnType("varchar(30)")
  2554. .HasCharSet("utf8")
  2555. .HasCollation("utf8_general_ci");
  2556. entity.Property(e => e.UboInfoIdPeriodBegin).HasColumnType("datetime");
  2557. entity.Property(e => e.UboInfoIdPeriodEnd).HasColumnType("datetime");
  2558. entity.Property(e => e.UboInfoIdType)
  2559. .HasColumnType("varchar(50)")
  2560. .HasCharSet("utf8")
  2561. .HasCollation("utf8_general_ci");
  2562. entity.Property(e => e.UboInfoName)
  2563. .HasColumnType("varchar(20)")
  2564. .HasCharSet("utf8")
  2565. .HasCollation("utf8_general_ci");
  2566. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2567. entity.Property(e => e.UpdateMan)
  2568. .HasColumnType("varchar(50)")
  2569. .HasCharSet("utf8")
  2570. .HasCollation("utf8_general_ci");
  2571. entity.Property(e => e.Version).HasColumnType("int(11)");
  2572. entity.Property(e => e.WebAppId)
  2573. .HasColumnType("varchar(50)")
  2574. .HasCharSet("utf8")
  2575. .HasCollation("utf8_general_ci");
  2576. entity.Property(e => e.WebAuthorisation)
  2577. .HasColumnType("varchar(200)")
  2578. .HasCharSet("utf8")
  2579. .HasCollation("utf8_general_ci");
  2580. entity.Property(e => e.WebDomain)
  2581. .HasColumnType("varchar(50)")
  2582. .HasCharSet("utf8")
  2583. .HasCollation("utf8_general_ci");
  2584. entity.Property(e => e.WeworkPics)
  2585. .HasColumnType("varchar(200)")
  2586. .HasCharSet("utf8")
  2587. .HasCollation("utf8_general_ci");
  2588. });
  2589. modelBuilder.Entity<MerchantAdmin>(entity =>
  2590. {
  2591. entity.Property(e => e.Id).HasColumnType("int(11)");
  2592. entity.Property(e => e.AdminName)
  2593. .HasColumnType("varchar(50)")
  2594. .HasCharSet("utf8")
  2595. .HasCollation("utf8_general_ci");
  2596. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2597. entity.Property(e => e.CreateMan)
  2598. .HasColumnType("varchar(50)")
  2599. .HasCharSet("utf8")
  2600. .HasCollation("utf8_general_ci");
  2601. entity.Property(e => e.Email)
  2602. .HasColumnType("varchar(50)")
  2603. .HasCharSet("utf8")
  2604. .HasCollation("utf8_general_ci");
  2605. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  2606. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2607. entity.Property(e => e.Mobile)
  2608. .HasColumnType("varchar(11)")
  2609. .HasCharSet("utf8")
  2610. .HasCollation("utf8_general_ci");
  2611. entity.Property(e => e.Note)
  2612. .HasColumnType("mediumtext")
  2613. .HasCharSet("utf8")
  2614. .HasCollation("utf8_general_ci");
  2615. entity.Property(e => e.Password)
  2616. .HasColumnType("varchar(32)")
  2617. .HasCharSet("utf8")
  2618. .HasCollation("utf8_general_ci");
  2619. entity.Property(e => e.Qq)
  2620. .HasColumnName("QQ")
  2621. .HasColumnType("varchar(20)")
  2622. .HasCharSet("utf8")
  2623. .HasCollation("utf8_general_ci");
  2624. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2625. entity.Property(e => e.RealName)
  2626. .HasColumnType("varchar(50)")
  2627. .HasCharSet("utf8")
  2628. .HasCollation("utf8_general_ci");
  2629. entity.Property(e => e.RightInfo)
  2630. .HasColumnType("varchar(500)")
  2631. .HasCharSet("utf8")
  2632. .HasCollation("utf8_general_ci");
  2633. entity.Property(e => e.SeoDescription)
  2634. .HasColumnType("varchar(500)")
  2635. .HasCharSet("utf8")
  2636. .HasCollation("utf8_general_ci");
  2637. entity.Property(e => e.SeoKeyword)
  2638. .HasColumnType("varchar(200)")
  2639. .HasCharSet("utf8")
  2640. .HasCollation("utf8_general_ci");
  2641. entity.Property(e => e.SeoTitle)
  2642. .HasColumnType("varchar(100)")
  2643. .HasCharSet("utf8")
  2644. .HasCollation("utf8_general_ci");
  2645. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2646. entity.Property(e => e.Status).HasColumnType("int(11)");
  2647. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2648. entity.Property(e => e.UpdateMan)
  2649. .HasColumnType("varchar(50)")
  2650. .HasCharSet("utf8")
  2651. .HasCollation("utf8_general_ci");
  2652. entity.Property(e => e.Version).HasColumnType("int(11)");
  2653. });
  2654. modelBuilder.Entity<MerchantAuth>(entity =>
  2655. {
  2656. entity.Property(e => e.Id).HasColumnType("int(11)");
  2657. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  2658. entity.Property(e => e.BankCardAccount)
  2659. .HasColumnType("varchar(32)")
  2660. .HasCharSet("utf8")
  2661. .HasCollation("utf8_general_ci");
  2662. entity.Property(e => e.BankMobile)
  2663. .HasColumnType("varchar(11)")
  2664. .HasCharSet("utf8")
  2665. .HasCollation("utf8_general_ci");
  2666. entity.Property(e => e.BankName)
  2667. .HasColumnType("varchar(64)")
  2668. .HasCharSet("utf8")
  2669. .HasCollation("utf8_general_ci");
  2670. entity.Property(e => e.ChannelCode)
  2671. .HasColumnType("varchar(16)")
  2672. .HasCharSet("utf8")
  2673. .HasCollation("utf8_general_ci");
  2674. entity.Property(e => e.ChannelName)
  2675. .HasColumnType("varchar(32)")
  2676. .HasCharSet("utf8")
  2677. .HasCollation("utf8_general_ci");
  2678. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2679. entity.Property(e => e.CreateMan)
  2680. .HasColumnType("varchar(50)")
  2681. .HasCharSet("utf8")
  2682. .HasCollation("utf8_general_ci");
  2683. entity.Property(e => e.IdCardNo)
  2684. .HasColumnType("varchar(18)")
  2685. .HasCharSet("utf8")
  2686. .HasCollation("utf8_general_ci");
  2687. entity.Property(e => e.MerNo)
  2688. .HasColumnType("varchar(20)")
  2689. .HasCharSet("utf8")
  2690. .HasCollation("utf8_general_ci");
  2691. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2692. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2693. entity.Property(e => e.RealName)
  2694. .HasColumnType("varchar(16)")
  2695. .HasCharSet("utf8")
  2696. .HasCollation("utf8_general_ci");
  2697. entity.Property(e => e.ReqData)
  2698. .HasColumnType("varchar(2000)")
  2699. .HasCharSet("utf8")
  2700. .HasCollation("utf8_general_ci");
  2701. entity.Property(e => e.RespData)
  2702. .HasColumnType("varchar(2000)")
  2703. .HasCharSet("utf8")
  2704. .HasCollation("utf8_general_ci");
  2705. entity.Property(e => e.ReturnCode)
  2706. .HasColumnType("varchar(30)")
  2707. .HasCharSet("utf8")
  2708. .HasCollation("utf8_general_ci");
  2709. entity.Property(e => e.ReturnMsg)
  2710. .HasColumnType("varchar(512)")
  2711. .HasCharSet("utf8")
  2712. .HasCollation("utf8_general_ci");
  2713. entity.Property(e => e.SeoDescription)
  2714. .HasColumnType("varchar(500)")
  2715. .HasCharSet("utf8")
  2716. .HasCollation("utf8_general_ci");
  2717. entity.Property(e => e.SeoKeyword)
  2718. .HasColumnType("varchar(200)")
  2719. .HasCharSet("utf8")
  2720. .HasCollation("utf8_general_ci");
  2721. entity.Property(e => e.SeoTitle)
  2722. .HasColumnType("varchar(100)")
  2723. .HasCharSet("utf8")
  2724. .HasCollation("utf8_general_ci");
  2725. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2726. entity.Property(e => e.Status).HasColumnType("int(11)");
  2727. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2728. entity.Property(e => e.UpdateMan)
  2729. .HasColumnType("varchar(50)")
  2730. .HasCharSet("utf8")
  2731. .HasCollation("utf8_general_ci");
  2732. entity.Property(e => e.Version).HasColumnType("int(11)");
  2733. });
  2734. modelBuilder.Entity<MerchantClass>(entity =>
  2735. {
  2736. entity.Property(e => e.Id).HasColumnType("int(11)");
  2737. entity.Property(e => e.ColName)
  2738. .HasColumnType("varchar(50)")
  2739. .HasCharSet("utf8")
  2740. .HasCollation("utf8_general_ci");
  2741. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2742. entity.Property(e => e.CreateMan)
  2743. .HasColumnType("varchar(50)")
  2744. .HasCharSet("utf8")
  2745. .HasCollation("utf8_general_ci");
  2746. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2747. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2748. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2749. entity.Property(e => e.SeoDescription)
  2750. .HasColumnType("varchar(500)")
  2751. .HasCharSet("utf8")
  2752. .HasCollation("utf8_general_ci");
  2753. entity.Property(e => e.SeoKeyword)
  2754. .HasColumnType("varchar(200)")
  2755. .HasCharSet("utf8")
  2756. .HasCollation("utf8_general_ci");
  2757. entity.Property(e => e.SeoTitle)
  2758. .HasColumnType("varchar(100)")
  2759. .HasCharSet("utf8")
  2760. .HasCollation("utf8_general_ci");
  2761. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2762. entity.Property(e => e.Status).HasColumnType("int(11)");
  2763. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2764. entity.Property(e => e.UpdateMan)
  2765. .HasColumnType("varchar(50)")
  2766. .HasCharSet("utf8")
  2767. .HasCollation("utf8_general_ci");
  2768. entity.Property(e => e.Version).HasColumnType("int(11)");
  2769. });
  2770. modelBuilder.Entity<MerchantCol>(entity =>
  2771. {
  2772. entity.Property(e => e.Id).HasColumnType("int(11)");
  2773. entity.Property(e => e.ColDetail)
  2774. .HasColumnType("varchar(50)")
  2775. .HasCharSet("utf8")
  2776. .HasCollation("utf8_general_ci");
  2777. entity.Property(e => e.ColEnName)
  2778. .HasColumnType("varchar(50)")
  2779. .HasCharSet("utf8")
  2780. .HasCollation("utf8_general_ci");
  2781. entity.Property(e => e.ColId)
  2782. .HasColumnType("varchar(30)")
  2783. .HasCharSet("utf8")
  2784. .HasCollation("utf8_general_ci");
  2785. entity.Property(e => e.ColName)
  2786. .HasColumnType("varchar(50)")
  2787. .HasCharSet("utf8")
  2788. .HasCollation("utf8_general_ci");
  2789. entity.Property(e => e.ColPicPath)
  2790. .HasColumnType("varchar(200)")
  2791. .HasCharSet("utf8")
  2792. .HasCollation("utf8_general_ci");
  2793. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2794. entity.Property(e => e.CreateMan)
  2795. .HasColumnType("varchar(50)")
  2796. .HasCharSet("utf8")
  2797. .HasCollation("utf8_general_ci");
  2798. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2799. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  2800. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2801. entity.Property(e => e.Recommend)
  2802. .HasColumnType("bit(1)")
  2803. .HasDefaultValueSql("b'0'");
  2804. entity.Property(e => e.SeoDescription)
  2805. .HasColumnType("varchar(500)")
  2806. .HasCharSet("utf8")
  2807. .HasCollation("utf8_general_ci");
  2808. entity.Property(e => e.SeoKeyword)
  2809. .HasColumnType("varchar(200)")
  2810. .HasCharSet("utf8")
  2811. .HasCollation("utf8_general_ci");
  2812. entity.Property(e => e.SeoTitle)
  2813. .HasColumnType("varchar(100)")
  2814. .HasCharSet("utf8")
  2815. .HasCollation("utf8_general_ci");
  2816. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2817. entity.Property(e => e.Status).HasColumnType("int(11)");
  2818. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2819. entity.Property(e => e.UpdateMan)
  2820. .HasColumnType("varchar(50)")
  2821. .HasCharSet("utf8")
  2822. .HasCollation("utf8_general_ci");
  2823. entity.Property(e => e.Version).HasColumnType("int(11)");
  2824. });
  2825. modelBuilder.Entity<MerchantComment>(entity =>
  2826. {
  2827. entity.Property(e => e.Id).HasColumnType("int(11)");
  2828. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2829. entity.Property(e => e.CreateMan)
  2830. .HasColumnType("varchar(50)")
  2831. .HasCharSet("utf8")
  2832. .HasCollation("utf8_general_ci");
  2833. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2834. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  2835. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2836. entity.Property(e => e.SeoDescription)
  2837. .HasColumnType("varchar(500)")
  2838. .HasCharSet("utf8")
  2839. .HasCollation("utf8_general_ci");
  2840. entity.Property(e => e.SeoKeyword)
  2841. .HasColumnType("varchar(200)")
  2842. .HasCharSet("utf8")
  2843. .HasCollation("utf8_general_ci");
  2844. entity.Property(e => e.SeoTitle)
  2845. .HasColumnType("varchar(100)")
  2846. .HasCharSet("utf8")
  2847. .HasCollation("utf8_general_ci");
  2848. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2849. entity.Property(e => e.StarNum1).HasColumnType("int(11)");
  2850. entity.Property(e => e.StarNum2).HasColumnType("int(11)");
  2851. entity.Property(e => e.StarNum3).HasColumnType("int(11)");
  2852. entity.Property(e => e.Status).HasColumnType("int(11)");
  2853. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2854. entity.Property(e => e.UpdateMan)
  2855. .HasColumnType("varchar(50)")
  2856. .HasCharSet("utf8")
  2857. .HasCollation("utf8_general_ci");
  2858. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2859. entity.Property(e => e.Version).HasColumnType("int(11)");
  2860. });
  2861. modelBuilder.Entity<MerchantForCode>(entity =>
  2862. {
  2863. entity.HasKey(e => e.Code)
  2864. .HasName("PRIMARY");
  2865. entity.Property(e => e.Code)
  2866. .HasColumnType("varchar(30)")
  2867. .HasCharSet("utf8")
  2868. .HasCollation("utf8_general_ci");
  2869. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2870. });
  2871. modelBuilder.Entity<MerchantForMobile>(entity =>
  2872. {
  2873. entity.HasKey(e => e.Mobile)
  2874. .HasName("PRIMARY");
  2875. entity.Property(e => e.Mobile)
  2876. .HasColumnType("varchar(11)")
  2877. .HasCharSet("utf8")
  2878. .HasCollation("utf8_general_ci");
  2879. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2880. });
  2881. modelBuilder.Entity<MerchantForName>(entity =>
  2882. {
  2883. entity.HasKey(e => e.Name)
  2884. .HasName("PRIMARY");
  2885. entity.Property(e => e.Name)
  2886. .HasColumnType("varchar(30)")
  2887. .HasCharSet("utf8")
  2888. .HasCollation("utf8_general_ci");
  2889. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  2890. });
  2891. modelBuilder.Entity<MerchantInfo>(entity =>
  2892. {
  2893. entity.Property(e => e.Id).HasColumnType("int(11)");
  2894. entity.Property(e => e.ActivationDate).HasColumnType("datetime");
  2895. entity.Property(e => e.ActivationStatus).HasColumnType("int(11)");
  2896. entity.Property(e => e.Address)
  2897. .HasColumnType("varchar(100)")
  2898. .HasCharSet("utf8")
  2899. .HasCollation("utf8_general_ci");
  2900. entity.Property(e => e.Areas)
  2901. .HasColumnType("varchar(50)")
  2902. .HasCharSet("utf8")
  2903. .HasCollation("utf8_general_ci");
  2904. entity.Property(e => e.BindDate).HasColumnType("datetime");
  2905. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  2906. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2907. entity.Property(e => e.CreateMan)
  2908. .HasColumnType("varchar(50)")
  2909. .HasCharSet("utf8")
  2910. .HasCollation("utf8_general_ci");
  2911. entity.Property(e => e.IsAuth)
  2912. .HasColumnType("bit(1)")
  2913. .HasDefaultValueSql("b'0'");
  2914. entity.Property(e => e.LastAddConsumerDate).HasColumnType("datetime");
  2915. entity.Property(e => e.LastConsumeDate).HasColumnType("datetime");
  2916. entity.Property(e => e.LoginPwd)
  2917. .HasColumnType("varchar(32)")
  2918. .HasCharSet("utf8")
  2919. .HasCollation("utf8_general_ci");
  2920. entity.Property(e => e.Logo)
  2921. .HasColumnType("varchar(200)")
  2922. .HasCharSet("utf8")
  2923. .HasCollation("utf8_general_ci");
  2924. entity.Property(e => e.Mobile)
  2925. .HasColumnType("varchar(11)")
  2926. .HasCharSet("utf8")
  2927. .HasCollation("utf8_general_ci");
  2928. entity.Property(e => e.Name)
  2929. .HasColumnType("varchar(50)")
  2930. .HasCharSet("utf8")
  2931. .HasCollation("utf8_general_ci");
  2932. entity.Property(e => e.ParentUserNav)
  2933. .HasColumnType("varchar(500)")
  2934. .HasCharSet("utf8")
  2935. .HasCollation("utf8_general_ci");
  2936. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2937. entity.Property(e => e.SeoDescription)
  2938. .HasColumnType("varchar(500)")
  2939. .HasCharSet("utf8")
  2940. .HasCollation("utf8_general_ci");
  2941. entity.Property(e => e.SeoKeyword)
  2942. .HasColumnType("varchar(200)")
  2943. .HasCharSet("utf8")
  2944. .HasCollation("utf8_general_ci");
  2945. entity.Property(e => e.SeoTitle)
  2946. .HasColumnType("varchar(100)")
  2947. .HasCharSet("utf8")
  2948. .HasCollation("utf8_general_ci");
  2949. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2950. entity.Property(e => e.Status).HasColumnType("int(11)");
  2951. entity.Property(e => e.TotalActual).HasColumnType("decimal(18,2)");
  2952. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  2953. entity.Property(e => e.TotalConsumeCount).HasColumnType("int(11)");
  2954. entity.Property(e => e.TotalCustomer).HasColumnType("int(11)");
  2955. entity.Property(e => e.TotalOrder).HasColumnType("int(11)");
  2956. entity.Property(e => e.TotalUser).HasColumnType("int(11)");
  2957. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2958. entity.Property(e => e.UpdateMan)
  2959. .HasColumnType("varchar(50)")
  2960. .HasCharSet("utf8")
  2961. .HasCollation("utf8_general_ci");
  2962. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2963. entity.Property(e => e.Version).HasColumnType("int(11)");
  2964. });
  2965. modelBuilder.Entity<MerchantParamSet>(entity =>
  2966. {
  2967. entity.Property(e => e.Id).HasColumnType("int(11)");
  2968. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2969. entity.Property(e => e.CreateMan)
  2970. .HasColumnType("varchar(50)")
  2971. .HasCharSet("utf8")
  2972. .HasCollation("utf8_general_ci");
  2973. entity.Property(e => e.DiviPercent).HasColumnType("decimal(18,2)");
  2974. entity.Property(e => e.DiviPersons).HasColumnType("int(11)");
  2975. entity.Property(e => e.GetPercent).HasColumnType("decimal(18,2)");
  2976. entity.Property(e => e.IsAll).HasColumnType("int(11)");
  2977. entity.Property(e => e.MinPayMoney).HasColumnType("decimal(18,2)");
  2978. entity.Property(e => e.ProfitDays).HasColumnType("int(11)");
  2979. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2980. entity.Property(e => e.SeoDescription)
  2981. .HasColumnType("varchar(500)")
  2982. .HasCharSet("utf8")
  2983. .HasCollation("utf8_general_ci");
  2984. entity.Property(e => e.SeoKeyword)
  2985. .HasColumnType("varchar(200)")
  2986. .HasCharSet("utf8")
  2987. .HasCollation("utf8_general_ci");
  2988. entity.Property(e => e.SeoTitle)
  2989. .HasColumnType("varchar(100)")
  2990. .HasCharSet("utf8")
  2991. .HasCollation("utf8_general_ci");
  2992. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2993. entity.Property(e => e.Status).HasColumnType("int(11)");
  2994. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2995. entity.Property(e => e.UpdateMan)
  2996. .HasColumnType("varchar(50)")
  2997. .HasCharSet("utf8")
  2998. .HasCollation("utf8_general_ci");
  2999. entity.Property(e => e.Version).HasColumnType("int(11)");
  3000. });
  3001. modelBuilder.Entity<MerchantQrCode>(entity =>
  3002. {
  3003. entity.Property(e => e.Id).HasColumnType("int(11)");
  3004. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3005. entity.Property(e => e.CreateMan)
  3006. .HasColumnType("varchar(50)")
  3007. .HasCharSet("utf8")
  3008. .HasCollation("utf8_general_ci");
  3009. entity.Property(e => e.MachineId).HasColumnType("int(11)");
  3010. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3011. entity.Property(e => e.QrCodeContent)
  3012. .HasColumnType("varchar(500)")
  3013. .HasCharSet("utf8")
  3014. .HasCollation("utf8_general_ci");
  3015. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3016. entity.Property(e => e.SeoDescription)
  3017. .HasColumnType("varchar(500)")
  3018. .HasCharSet("utf8")
  3019. .HasCollation("utf8_general_ci");
  3020. entity.Property(e => e.SeoKeyword)
  3021. .HasColumnType("varchar(200)")
  3022. .HasCharSet("utf8")
  3023. .HasCollation("utf8_general_ci");
  3024. entity.Property(e => e.SeoTitle)
  3025. .HasColumnType("varchar(100)")
  3026. .HasCharSet("utf8")
  3027. .HasCollation("utf8_general_ci");
  3028. entity.Property(e => e.SnNo)
  3029. .HasColumnType("varchar(50)")
  3030. .HasCharSet("utf8")
  3031. .HasCollation("utf8_general_ci");
  3032. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3033. entity.Property(e => e.Status).HasColumnType("int(11)");
  3034. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3035. entity.Property(e => e.UpdateMan)
  3036. .HasColumnType("varchar(50)")
  3037. .HasCharSet("utf8")
  3038. .HasCollation("utf8_general_ci");
  3039. entity.Property(e => e.Version).HasColumnType("int(11)");
  3040. });
  3041. modelBuilder.Entity<MerchantRebateDetail>(entity =>
  3042. {
  3043. entity.Property(e => e.Id).HasColumnType("int(11)");
  3044. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3045. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3046. entity.Property(e => e.CreateMan)
  3047. .HasColumnType("varchar(50)")
  3048. .HasCharSet("utf8")
  3049. .HasCollation("utf8_general_ci");
  3050. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3051. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3052. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3053. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3054. entity.Property(e => e.MerNo)
  3055. .HasColumnType("varchar(32)")
  3056. .HasCharSet("utf8")
  3057. .HasCollation("utf8_general_ci");
  3058. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  3059. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  3060. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3061. entity.Property(e => e.MmpUserName)
  3062. .HasColumnType("varchar(32)")
  3063. .HasCharSet("utf8")
  3064. .HasCollation("utf8_general_ci");
  3065. entity.Property(e => e.MmpUserNo)
  3066. .HasColumnType("varchar(32)")
  3067. .HasCharSet("utf8")
  3068. .HasCollation("utf8_general_ci");
  3069. entity.Property(e => e.ProductName)
  3070. .HasColumnType("varchar(32)")
  3071. .HasCharSet("utf8")
  3072. .HasCollation("utf8_general_ci");
  3073. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3074. entity.Property(e => e.Remark)
  3075. .HasColumnType("varchar(64)")
  3076. .HasCharSet("utf8")
  3077. .HasCollation("utf8_general_ci");
  3078. entity.Property(e => e.RewardDesc)
  3079. .HasColumnType("varchar(128)")
  3080. .HasCharSet("utf8")
  3081. .HasCollation("utf8_general_ci");
  3082. entity.Property(e => e.SeoDescription)
  3083. .HasColumnType("varchar(500)")
  3084. .HasCharSet("utf8")
  3085. .HasCollation("utf8_general_ci");
  3086. entity.Property(e => e.SeoKeyword)
  3087. .HasColumnType("varchar(200)")
  3088. .HasCharSet("utf8")
  3089. .HasCollation("utf8_general_ci");
  3090. entity.Property(e => e.SeoTitle)
  3091. .HasColumnType("varchar(100)")
  3092. .HasCharSet("utf8")
  3093. .HasCollation("utf8_general_ci");
  3094. entity.Property(e => e.SnNo)
  3095. .HasColumnType("varchar(32)")
  3096. .HasCharSet("utf8")
  3097. .HasCollation("utf8_general_ci");
  3098. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3099. entity.Property(e => e.Status).HasColumnType("int(11)");
  3100. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  3101. entity.Property(e => e.TradeDate)
  3102. .HasColumnType("varchar(8)")
  3103. .HasCharSet("utf8")
  3104. .HasCollation("utf8_general_ci");
  3105. entity.Property(e => e.TradeMonth)
  3106. .HasColumnType("varchar(6)")
  3107. .HasCharSet("utf8")
  3108. .HasCollation("utf8_general_ci");
  3109. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3110. entity.Property(e => e.UpdateMan)
  3111. .HasColumnType("varchar(50)")
  3112. .HasCharSet("utf8")
  3113. .HasCollation("utf8_general_ci");
  3114. entity.Property(e => e.Version).HasColumnType("int(11)");
  3115. });
  3116. modelBuilder.Entity<Merchants>(entity =>
  3117. {
  3118. entity.Property(e => e.Id).HasColumnType("int(11)");
  3119. entity.Property(e => e.Address)
  3120. .HasColumnType("varchar(50)")
  3121. .HasCharSet("utf8")
  3122. .HasCollation("utf8_general_ci");
  3123. entity.Property(e => e.Areas)
  3124. .HasColumnType("varchar(30)")
  3125. .HasCharSet("utf8")
  3126. .HasCollation("utf8_general_ci");
  3127. entity.Property(e => e.BusinessLicense)
  3128. .HasColumnType("varchar(200)")
  3129. .HasCharSet("utf8")
  3130. .HasCollation("utf8_general_ci");
  3131. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  3132. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3133. entity.Property(e => e.CreateMan)
  3134. .HasColumnType("varchar(50)")
  3135. .HasCharSet("utf8")
  3136. .HasCollation("utf8_general_ci");
  3137. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  3138. entity.Property(e => e.IsAuth)
  3139. .HasColumnType("bit(1)")
  3140. .HasDefaultValueSql("b'0'");
  3141. entity.Property(e => e.IsRecommend)
  3142. .HasColumnType("bit(1)")
  3143. .HasDefaultValueSql("b'0'");
  3144. entity.Property(e => e.LoginPwd)
  3145. .HasColumnType("varchar(32)")
  3146. .HasCharSet("utf8")
  3147. .HasCollation("utf8_general_ci");
  3148. entity.Property(e => e.Logo)
  3149. .HasColumnType("varchar(200)")
  3150. .HasCharSet("utf8")
  3151. .HasCollation("utf8_general_ci");
  3152. entity.Property(e => e.Name)
  3153. .HasColumnType("varchar(50)")
  3154. .HasCharSet("utf8")
  3155. .HasCollation("utf8_general_ci");
  3156. entity.Property(e => e.PayPwd)
  3157. .HasColumnType("varchar(32)")
  3158. .HasCharSet("utf8")
  3159. .HasCollation("utf8_general_ci");
  3160. entity.Property(e => e.Phone)
  3161. .HasColumnType("varchar(30)")
  3162. .HasCharSet("utf8")
  3163. .HasCollation("utf8_general_ci");
  3164. entity.Property(e => e.Principal)
  3165. .HasColumnType("varchar(30)")
  3166. .HasCharSet("utf8")
  3167. .HasCollation("utf8_general_ci");
  3168. entity.Property(e => e.Province)
  3169. .HasColumnType("varchar(20)")
  3170. .HasCharSet("utf8")
  3171. .HasCollation("utf8_general_ci");
  3172. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3173. entity.Property(e => e.SeoDescription)
  3174. .HasColumnType("varchar(500)")
  3175. .HasCharSet("utf8")
  3176. .HasCollation("utf8_general_ci");
  3177. entity.Property(e => e.SeoKeyword)
  3178. .HasColumnType("varchar(200)")
  3179. .HasCharSet("utf8")
  3180. .HasCollation("utf8_general_ci");
  3181. entity.Property(e => e.SeoTitle)
  3182. .HasColumnType("varchar(100)")
  3183. .HasCharSet("utf8")
  3184. .HasCollation("utf8_general_ci");
  3185. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3186. entity.Property(e => e.StarNum1).HasColumnType("decimal(18,2)");
  3187. entity.Property(e => e.StarNum2).HasColumnType("decimal(18,2)");
  3188. entity.Property(e => e.StarNum3).HasColumnType("decimal(18,2)");
  3189. entity.Property(e => e.Status).HasColumnType("int(11)");
  3190. entity.Property(e => e.Title)
  3191. .HasColumnType("varchar(50)")
  3192. .HasCharSet("utf8")
  3193. .HasCollation("utf8_general_ci");
  3194. entity.Property(e => e.Title2)
  3195. .HasColumnType("varchar(50)")
  3196. .HasCharSet("utf8")
  3197. .HasCollation("utf8_general_ci");
  3198. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3199. entity.Property(e => e.UpdateMan)
  3200. .HasColumnType("varchar(50)")
  3201. .HasCharSet("utf8")
  3202. .HasCollation("utf8_general_ci");
  3203. entity.Property(e => e.UserName)
  3204. .HasColumnType("varchar(50)")
  3205. .HasCharSet("utf8")
  3206. .HasCollation("utf8_general_ci");
  3207. entity.Property(e => e.Version).HasColumnType("int(11)");
  3208. });
  3209. modelBuilder.Entity<MobileCodeCheck>(entity =>
  3210. {
  3211. entity.HasKey(e => e.Mobile)
  3212. .HasName("PRIMARY");
  3213. entity.Property(e => e.Mobile)
  3214. .HasColumnType("varchar(11)")
  3215. .HasCharSet("utf8")
  3216. .HasCollation("utf8_general_ci");
  3217. entity.Property(e => e.CheckCode)
  3218. .HasColumnType("varchar(6)")
  3219. .HasCharSet("utf8")
  3220. .HasCollation("utf8_general_ci");
  3221. entity.Property(e => e.CheckCodeTime).HasColumnType("datetime");
  3222. entity.Property(e => e.CheckNo)
  3223. .HasColumnType("varchar(6)")
  3224. .HasCharSet("utf8")
  3225. .HasCollation("utf8_general_ci");
  3226. });
  3227. modelBuilder.Entity<MsgBlackList>(entity =>
  3228. {
  3229. entity.Property(e => e.Id).HasColumnType("int(11)");
  3230. entity.Property(e => e.ColId)
  3231. .HasColumnType("varchar(30)")
  3232. .HasCharSet("utf8")
  3233. .HasCollation("utf8_general_ci");
  3234. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3235. entity.Property(e => e.CreateMan)
  3236. .HasColumnType("varchar(50)")
  3237. .HasCharSet("utf8")
  3238. .HasCollation("utf8_general_ci");
  3239. entity.Property(e => e.Extend)
  3240. .HasColumnType("varchar(2000)")
  3241. .HasCharSet("utf8")
  3242. .HasCollation("utf8_general_ci");
  3243. entity.Property(e => e.Ip)
  3244. .HasColumnType("varchar(64)")
  3245. .HasCharSet("utf8")
  3246. .HasCollation("utf8_general_ci");
  3247. entity.Property(e => e.Mobile)
  3248. .HasColumnType("varchar(11)")
  3249. .HasCharSet("utf8")
  3250. .HasCollation("utf8_general_ci");
  3251. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3252. entity.Property(e => e.Reason)
  3253. .HasColumnType("varchar(512)")
  3254. .HasCharSet("utf8")
  3255. .HasCollation("utf8_general_ci");
  3256. entity.Property(e => e.Remark)
  3257. .HasColumnType("varchar(64)")
  3258. .HasCharSet("utf8")
  3259. .HasCollation("utf8_general_ci");
  3260. entity.Property(e => e.SeoDescription)
  3261. .HasColumnType("varchar(500)")
  3262. .HasCharSet("utf8")
  3263. .HasCollation("utf8_general_ci");
  3264. entity.Property(e => e.SeoKeyword)
  3265. .HasColumnType("varchar(200)")
  3266. .HasCharSet("utf8")
  3267. .HasCollation("utf8_general_ci");
  3268. entity.Property(e => e.SeoTitle)
  3269. .HasColumnType("varchar(100)")
  3270. .HasCharSet("utf8")
  3271. .HasCollation("utf8_general_ci");
  3272. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3273. entity.Property(e => e.Status).HasColumnType("int(11)");
  3274. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3275. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3276. entity.Property(e => e.UpdateMan)
  3277. .HasColumnType("varchar(50)")
  3278. .HasCharSet("utf8")
  3279. .HasCollation("utf8_general_ci");
  3280. entity.Property(e => e.Version).HasColumnType("int(11)");
  3281. });
  3282. modelBuilder.Entity<MsgPersonal>(entity =>
  3283. {
  3284. entity.Property(e => e.Id).HasColumnType("int(11)");
  3285. entity.Property(e => e.BgPic)
  3286. .HasColumnType("varchar(200)")
  3287. .HasCharSet("utf8")
  3288. .HasCollation("utf8_general_ci");
  3289. entity.Property(e => e.Content)
  3290. .HasColumnType("longtext")
  3291. .HasCharSet("utf8")
  3292. .HasCollation("utf8_general_ci");
  3293. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3294. entity.Property(e => e.CreateMan)
  3295. .HasColumnType("varchar(50)")
  3296. .HasCharSet("utf8")
  3297. .HasCollation("utf8_general_ci");
  3298. entity.Property(e => e.ExtendColumn)
  3299. .HasColumnType("mediumtext")
  3300. .HasCharSet("utf8")
  3301. .HasCollation("utf8_general_ci");
  3302. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3303. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3304. entity.Property(e => e.PushParam)
  3305. .HasColumnType("varchar(255)")
  3306. .HasCharSet("utf8")
  3307. .HasCollation("utf8_general_ci");
  3308. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3309. entity.Property(e => e.ReadFlag)
  3310. .HasColumnType("bit(1)")
  3311. .HasDefaultValueSql("b'0'");
  3312. entity.Property(e => e.Remark)
  3313. .HasColumnType("varchar(255)")
  3314. .HasCharSet("utf8")
  3315. .HasCollation("utf8_general_ci");
  3316. entity.Property(e => e.SeoDescription)
  3317. .HasColumnType("varchar(500)")
  3318. .HasCharSet("utf8")
  3319. .HasCollation("utf8_general_ci");
  3320. entity.Property(e => e.SeoKeyword)
  3321. .HasColumnType("varchar(200)")
  3322. .HasCharSet("utf8")
  3323. .HasCollation("utf8_general_ci");
  3324. entity.Property(e => e.SeoTitle)
  3325. .HasColumnType("varchar(100)")
  3326. .HasCharSet("utf8")
  3327. .HasCollation("utf8_general_ci");
  3328. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3329. entity.Property(e => e.Status).HasColumnType("int(11)");
  3330. entity.Property(e => e.Summary)
  3331. .HasColumnType("varchar(500)")
  3332. .HasCharSet("utf8")
  3333. .HasCollation("utf8_general_ci");
  3334. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3335. entity.Property(e => e.Title)
  3336. .HasColumnType("varchar(50)")
  3337. .HasCharSet("utf8")
  3338. .HasCollation("utf8_general_ci");
  3339. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3340. entity.Property(e => e.UpdateMan)
  3341. .HasColumnType("varchar(50)")
  3342. .HasCharSet("utf8")
  3343. .HasCollation("utf8_general_ci");
  3344. entity.Property(e => e.Url)
  3345. .HasColumnType("varchar(500)")
  3346. .HasCharSet("utf8")
  3347. .HasCollation("utf8_general_ci");
  3348. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3349. entity.Property(e => e.Version).HasColumnType("int(11)");
  3350. });
  3351. modelBuilder.Entity<MsgPlacard>(entity =>
  3352. {
  3353. entity.Property(e => e.Id).HasColumnType("int(11)");
  3354. entity.Property(e => e.BgPic)
  3355. .HasColumnType("varchar(200)")
  3356. .HasCharSet("utf8")
  3357. .HasCollation("utf8_general_ci");
  3358. entity.Property(e => e.Content)
  3359. .HasColumnType("longtext")
  3360. .HasCharSet("utf8")
  3361. .HasCollation("utf8_general_ci");
  3362. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3363. entity.Property(e => e.CreateMan)
  3364. .HasColumnType("varchar(50)")
  3365. .HasCharSet("utf8")
  3366. .HasCollation("utf8_general_ci");
  3367. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  3368. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  3369. entity.Property(e => e.ExtendColumn)
  3370. .HasColumnType("mediumtext")
  3371. .HasCharSet("utf8")
  3372. .HasCollation("utf8_general_ci");
  3373. entity.Property(e => e.IsTop)
  3374. .HasColumnType("bit(1)")
  3375. .HasDefaultValueSql("b'0'");
  3376. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3377. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  3378. entity.Property(e => e.PushParam)
  3379. .HasColumnType("varchar(255)")
  3380. .HasCharSet("utf8")
  3381. .HasCollation("utf8_general_ci");
  3382. entity.Property(e => e.PushTime).HasColumnType("datetime");
  3383. entity.Property(e => e.PushType).HasColumnType("int(11)");
  3384. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3385. entity.Property(e => e.Remark)
  3386. .HasColumnType("varchar(255)")
  3387. .HasCharSet("utf8")
  3388. .HasCollation("utf8_general_ci");
  3389. entity.Property(e => e.SeoDescription)
  3390. .HasColumnType("varchar(500)")
  3391. .HasCharSet("utf8")
  3392. .HasCollation("utf8_general_ci");
  3393. entity.Property(e => e.SeoKeyword)
  3394. .HasColumnType("varchar(200)")
  3395. .HasCharSet("utf8")
  3396. .HasCollation("utf8_general_ci");
  3397. entity.Property(e => e.SeoTitle)
  3398. .HasColumnType("varchar(100)")
  3399. .HasCharSet("utf8")
  3400. .HasCollation("utf8_general_ci");
  3401. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  3402. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3403. entity.Property(e => e.Status).HasColumnType("int(11)");
  3404. entity.Property(e => e.Summary)
  3405. .HasColumnType("varchar(500)")
  3406. .HasCharSet("utf8")
  3407. .HasCollation("utf8_general_ci");
  3408. entity.Property(e => e.Title)
  3409. .HasColumnType("varchar(50)")
  3410. .HasCharSet("utf8")
  3411. .HasCollation("utf8_general_ci");
  3412. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3413. entity.Property(e => e.UpdateMan)
  3414. .HasColumnType("varchar(50)")
  3415. .HasCharSet("utf8")
  3416. .HasCollation("utf8_general_ci");
  3417. entity.Property(e => e.Url)
  3418. .HasColumnType("varchar(500)")
  3419. .HasCharSet("utf8")
  3420. .HasCollation("utf8_general_ci");
  3421. entity.Property(e => e.Version).HasColumnType("int(11)");
  3422. });
  3423. modelBuilder.Entity<MsgPlacardRead>(entity =>
  3424. {
  3425. entity.Property(e => e.Id).HasColumnType("int(11)");
  3426. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3427. entity.Property(e => e.CreateMan)
  3428. .HasColumnType("varchar(50)")
  3429. .HasCharSet("utf8")
  3430. .HasCollation("utf8_general_ci");
  3431. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  3432. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3433. entity.Property(e => e.ReadFlag)
  3434. .HasColumnType("bit(1)")
  3435. .HasDefaultValueSql("b'0'");
  3436. entity.Property(e => e.Remark)
  3437. .HasColumnType("varchar(255)")
  3438. .HasCharSet("utf8")
  3439. .HasCollation("utf8_general_ci");
  3440. entity.Property(e => e.SeoDescription)
  3441. .HasColumnType("varchar(500)")
  3442. .HasCharSet("utf8")
  3443. .HasCollation("utf8_general_ci");
  3444. entity.Property(e => e.SeoKeyword)
  3445. .HasColumnType("varchar(200)")
  3446. .HasCharSet("utf8")
  3447. .HasCollation("utf8_general_ci");
  3448. entity.Property(e => e.SeoTitle)
  3449. .HasColumnType("varchar(100)")
  3450. .HasCharSet("utf8")
  3451. .HasCollation("utf8_general_ci");
  3452. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3453. entity.Property(e => e.Status).HasColumnType("int(11)");
  3454. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3455. entity.Property(e => e.UpdateMan)
  3456. .HasColumnType("varchar(50)")
  3457. .HasCharSet("utf8")
  3458. .HasCollation("utf8_general_ci");
  3459. entity.Property(e => e.UserId)
  3460. .HasColumnType("varchar(64)")
  3461. .HasCharSet("utf8")
  3462. .HasCollation("utf8_general_ci");
  3463. entity.Property(e => e.Version).HasColumnType("int(11)");
  3464. });
  3465. modelBuilder.Entity<MsgPush>(entity =>
  3466. {
  3467. entity.Property(e => e.Id).HasColumnType("int(11)");
  3468. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  3469. entity.Property(e => e.ClientType)
  3470. .HasColumnType("varchar(20)")
  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.Details)
  3479. .HasColumnType("varchar(200)")
  3480. .HasCharSet("utf8")
  3481. .HasCollation("utf8_general_ci");
  3482. entity.Property(e => e.Devices)
  3483. .HasColumnType("mediumtext")
  3484. .HasCharSet("utf8")
  3485. .HasCollation("utf8_general_ci");
  3486. entity.Property(e => e.IsSilent)
  3487. .HasColumnType("bit(1)")
  3488. .HasDefaultValueSql("b'0'");
  3489. entity.Property(e => e.MessageId)
  3490. .HasColumnType("varchar(50)")
  3491. .HasCharSet("utf8")
  3492. .HasCollation("utf8_general_ci");
  3493. entity.Property(e => e.Mobiles)
  3494. .HasColumnType("mediumtext")
  3495. .HasCharSet("utf8")
  3496. .HasCollation("utf8_general_ci");
  3497. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3498. entity.Property(e => e.SeoDescription)
  3499. .HasColumnType("varchar(500)")
  3500. .HasCharSet("utf8")
  3501. .HasCollation("utf8_general_ci");
  3502. entity.Property(e => e.SeoKeyword)
  3503. .HasColumnType("varchar(200)")
  3504. .HasCharSet("utf8")
  3505. .HasCollation("utf8_general_ci");
  3506. entity.Property(e => e.SeoTitle)
  3507. .HasColumnType("varchar(100)")
  3508. .HasCharSet("utf8")
  3509. .HasCollation("utf8_general_ci");
  3510. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3511. entity.Property(e => e.Status).HasColumnType("int(11)");
  3512. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3513. entity.Property(e => e.Title)
  3514. .HasColumnType("varchar(50)")
  3515. .HasCharSet("utf8")
  3516. .HasCollation("utf8_general_ci");
  3517. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3518. entity.Property(e => e.UpdateMan)
  3519. .HasColumnType("varchar(50)")
  3520. .HasCharSet("utf8")
  3521. .HasCollation("utf8_general_ci");
  3522. entity.Property(e => e.Url)
  3523. .HasColumnType("varchar(500)")
  3524. .HasCharSet("utf8")
  3525. .HasCollation("utf8_general_ci");
  3526. entity.Property(e => e.Version).HasColumnType("int(11)");
  3527. });
  3528. modelBuilder.Entity<MsgSms>(entity =>
  3529. {
  3530. entity.Property(e => e.Id).HasColumnType("int(11)");
  3531. entity.Property(e => e.Code).HasColumnType("int(11)");
  3532. entity.Property(e => e.ColId)
  3533. .HasColumnType("varchar(30)")
  3534. .HasCharSet("utf8")
  3535. .HasCollation("utf8_general_ci");
  3536. entity.Property(e => e.Content)
  3537. .HasColumnType("varchar(200)")
  3538. .HasCharSet("utf8")
  3539. .HasCollation("utf8_general_ci");
  3540. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3541. entity.Property(e => e.CreateMan)
  3542. .HasColumnType("varchar(50)")
  3543. .HasCharSet("utf8")
  3544. .HasCollation("utf8_general_ci");
  3545. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  3546. entity.Property(e => e.Ip)
  3547. .HasColumnType("varchar(15)")
  3548. .HasCharSet("utf8")
  3549. .HasCollation("utf8_general_ci");
  3550. entity.Property(e => e.Kind)
  3551. .HasColumnType("varchar(64)")
  3552. .HasCharSet("utf8")
  3553. .HasCollation("utf8_general_ci");
  3554. entity.Property(e => e.Mobile)
  3555. .HasColumnType("varchar(11)")
  3556. .HasCharSet("utf8")
  3557. .HasCollation("utf8_general_ci");
  3558. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3559. entity.Property(e => e.RespCode)
  3560. .HasColumnType("varchar(16)")
  3561. .HasCharSet("utf8")
  3562. .HasCollation("utf8_general_ci");
  3563. entity.Property(e => e.RespContent)
  3564. .HasColumnType("varchar(500)")
  3565. .HasCharSet("utf8")
  3566. .HasCollation("utf8_general_ci");
  3567. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  3568. entity.Property(e => e.SendTime).HasColumnType("datetime");
  3569. entity.Property(e => e.SendType).HasColumnType("int(11)");
  3570. entity.Property(e => e.SeoDescription)
  3571. .HasColumnType("varchar(500)")
  3572. .HasCharSet("utf8")
  3573. .HasCollation("utf8_general_ci");
  3574. entity.Property(e => e.SeoKeyword)
  3575. .HasColumnType("varchar(200)")
  3576. .HasCharSet("utf8")
  3577. .HasCollation("utf8_general_ci");
  3578. entity.Property(e => e.SeoTitle)
  3579. .HasColumnType("varchar(100)")
  3580. .HasCharSet("utf8")
  3581. .HasCollation("utf8_general_ci");
  3582. entity.Property(e => e.SignName)
  3583. .HasColumnType("varchar(10)")
  3584. .HasCharSet("utf8")
  3585. .HasCollation("utf8_general_ci");
  3586. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3587. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3588. entity.Property(e => e.Status).HasColumnType("int(11)");
  3589. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  3590. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3591. entity.Property(e => e.UpdateMan)
  3592. .HasColumnType("varchar(50)")
  3593. .HasCharSet("utf8")
  3594. .HasCollation("utf8_general_ci");
  3595. entity.Property(e => e.VerifyCode)
  3596. .HasColumnType("varchar(6)")
  3597. .HasCharSet("utf8")
  3598. .HasCollation("utf8_general_ci");
  3599. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  3600. entity.Property(e => e.Version).HasColumnType("int(11)");
  3601. });
  3602. modelBuilder.Entity<MsgSmsSet>(entity =>
  3603. {
  3604. entity.Property(e => e.Id).HasColumnType("int(11)");
  3605. entity.Property(e => e.AuthPwd)
  3606. .HasColumnType("varchar(50)")
  3607. .HasCharSet("utf8")
  3608. .HasCollation("utf8_general_ci");
  3609. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3610. entity.Property(e => e.CreateMan)
  3611. .HasColumnType("varchar(50)")
  3612. .HasCharSet("utf8")
  3613. .HasCollation("utf8_general_ci");
  3614. entity.Property(e => e.Name)
  3615. .HasColumnType("varchar(50)")
  3616. .HasCharSet("utf8")
  3617. .HasCollation("utf8_general_ci");
  3618. entity.Property(e => e.Params)
  3619. .HasColumnType("varchar(200)")
  3620. .HasCharSet("utf8")
  3621. .HasCollation("utf8_general_ci");
  3622. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3623. entity.Property(e => e.ReqUrl)
  3624. .HasColumnType("varchar(200)")
  3625. .HasCharSet("utf8")
  3626. .HasCollation("utf8_general_ci");
  3627. entity.Property(e => e.SeoDescription)
  3628. .HasColumnType("varchar(500)")
  3629. .HasCharSet("utf8")
  3630. .HasCollation("utf8_general_ci");
  3631. entity.Property(e => e.SeoKeyword)
  3632. .HasColumnType("varchar(200)")
  3633. .HasCharSet("utf8")
  3634. .HasCollation("utf8_general_ci");
  3635. entity.Property(e => e.SeoTitle)
  3636. .HasColumnType("varchar(100)")
  3637. .HasCharSet("utf8")
  3638. .HasCollation("utf8_general_ci");
  3639. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  3640. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3641. entity.Property(e => e.Status).HasColumnType("int(11)");
  3642. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3643. entity.Property(e => e.UpdateMan)
  3644. .HasColumnType("varchar(50)")
  3645. .HasCharSet("utf8")
  3646. .HasCollation("utf8_general_ci");
  3647. entity.Property(e => e.UserName)
  3648. .HasColumnType("varchar(50)")
  3649. .HasCharSet("utf8")
  3650. .HasCollation("utf8_general_ci");
  3651. entity.Property(e => e.Version).HasColumnType("int(11)");
  3652. });
  3653. modelBuilder.Entity<MsgTemplate>(entity =>
  3654. {
  3655. entity.Property(e => e.Id).HasColumnType("int(11)");
  3656. entity.Property(e => e.ColId)
  3657. .HasColumnType("varchar(30)")
  3658. .HasCharSet("utf8")
  3659. .HasCollation("utf8_general_ci");
  3660. entity.Property(e => e.Content)
  3661. .HasColumnType("varchar(200)")
  3662. .HasCharSet("utf8")
  3663. .HasCollation("utf8_general_ci");
  3664. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3665. entity.Property(e => e.CreateMan)
  3666. .HasColumnType("varchar(50)")
  3667. .HasCharSet("utf8")
  3668. .HasCollation("utf8_general_ci");
  3669. entity.Property(e => e.Extend)
  3670. .HasColumnType("varchar(2000)")
  3671. .HasCharSet("utf8")
  3672. .HasCollation("utf8_general_ci");
  3673. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  3674. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3675. entity.Property(e => e.Remark)
  3676. .HasColumnType("varchar(64)")
  3677. .HasCharSet("utf8")
  3678. .HasCollation("utf8_general_ci");
  3679. entity.Property(e => e.SeoDescription)
  3680. .HasColumnType("varchar(500)")
  3681. .HasCharSet("utf8")
  3682. .HasCollation("utf8_general_ci");
  3683. entity.Property(e => e.SeoKeyword)
  3684. .HasColumnType("varchar(200)")
  3685. .HasCharSet("utf8")
  3686. .HasCollation("utf8_general_ci");
  3687. entity.Property(e => e.SeoTitle)
  3688. .HasColumnType("varchar(100)")
  3689. .HasCharSet("utf8")
  3690. .HasCollation("utf8_general_ci");
  3691. entity.Property(e => e.SignName)
  3692. .HasColumnType("varchar(10)")
  3693. .HasCharSet("utf8")
  3694. .HasCollation("utf8_general_ci");
  3695. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3696. entity.Property(e => e.Status).HasColumnType("int(11)");
  3697. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  3698. entity.Property(e => e.Title)
  3699. .HasColumnType("varchar(50)")
  3700. .HasCharSet("utf8")
  3701. .HasCollation("utf8_general_ci");
  3702. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3703. entity.Property(e => e.UpdateMan)
  3704. .HasColumnType("varchar(50)")
  3705. .HasCharSet("utf8")
  3706. .HasCollation("utf8_general_ci");
  3707. entity.Property(e => e.Version).HasColumnType("int(11)");
  3708. });
  3709. modelBuilder.Entity<OpenBankCityTable>(entity =>
  3710. {
  3711. entity.HasKey(e => e.CityName)
  3712. .HasName("PRIMARY");
  3713. entity.Property(e => e.CityName)
  3714. .HasColumnType("varchar(100)")
  3715. .HasCharSet("utf8")
  3716. .HasCollation("utf8_general_ci");
  3717. entity.Property(e => e.Code)
  3718. .HasColumnType("varchar(20)")
  3719. .HasCharSet("utf8")
  3720. .HasCollation("utf8_general_ci");
  3721. });
  3722. modelBuilder.Entity<OpenBankTable>(entity =>
  3723. {
  3724. entity.HasKey(e => e.BankName)
  3725. .HasName("PRIMARY");
  3726. entity.Property(e => e.BankName)
  3727. .HasColumnType("varchar(200)")
  3728. .HasCharSet("utf8")
  3729. .HasCollation("utf8_general_ci");
  3730. entity.Property(e => e.BankCode)
  3731. .HasColumnType("varchar(50)")
  3732. .HasCharSet("utf8")
  3733. .HasCollation("utf8_general_ci");
  3734. });
  3735. modelBuilder.Entity<OpenReward>(entity =>
  3736. {
  3737. entity.Property(e => e.Id).HasColumnType("int(11)");
  3738. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3739. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3740. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3741. entity.Property(e => e.CreateMan)
  3742. .HasColumnType("varchar(50)")
  3743. .HasCharSet("utf8")
  3744. .HasCollation("utf8_general_ci");
  3745. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3746. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3747. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3748. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3749. entity.Property(e => e.OpenRewardNo)
  3750. .HasColumnType("varchar(32)")
  3751. .HasCharSet("utf8")
  3752. .HasCollation("utf8_general_ci");
  3753. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3754. entity.Property(e => e.Remark)
  3755. .HasColumnType("varchar(128)")
  3756. .HasCharSet("utf8")
  3757. .HasCollation("utf8_general_ci");
  3758. entity.Property(e => e.RewardDesc)
  3759. .HasColumnType("varchar(128)")
  3760. .HasCharSet("utf8")
  3761. .HasCollation("utf8_general_ci");
  3762. entity.Property(e => e.RewardMerCount).HasColumnType("int(11)");
  3763. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3764. entity.Property(e => e.SeoDescription)
  3765. .HasColumnType("varchar(500)")
  3766. .HasCharSet("utf8")
  3767. .HasCollation("utf8_general_ci");
  3768. entity.Property(e => e.SeoKeyword)
  3769. .HasColumnType("varchar(200)")
  3770. .HasCharSet("utf8")
  3771. .HasCollation("utf8_general_ci");
  3772. entity.Property(e => e.SeoTitle)
  3773. .HasColumnType("varchar(100)")
  3774. .HasCharSet("utf8")
  3775. .HasCollation("utf8_general_ci");
  3776. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3777. entity.Property(e => e.Status).HasColumnType("int(11)");
  3778. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3779. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3780. entity.Property(e => e.TradeMonth)
  3781. .HasColumnType("varchar(6)")
  3782. .HasCharSet("utf8")
  3783. .HasCollation("utf8_general_ci");
  3784. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3785. entity.Property(e => e.UpdateMan)
  3786. .HasColumnType("varchar(50)")
  3787. .HasCharSet("utf8")
  3788. .HasCollation("utf8_general_ci");
  3789. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3790. entity.Property(e => e.Version).HasColumnType("int(11)");
  3791. });
  3792. modelBuilder.Entity<OpenRewardDetail>(entity =>
  3793. {
  3794. entity.Property(e => e.Id).HasColumnType("int(11)");
  3795. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3796. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  3797. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3798. entity.Property(e => e.CreateMan)
  3799. .HasColumnType("varchar(50)")
  3800. .HasCharSet("utf8")
  3801. .HasCollation("utf8_general_ci");
  3802. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3803. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3804. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3805. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3806. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3807. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  3808. entity.Property(e => e.MerNo)
  3809. .HasColumnType("varchar(32)")
  3810. .HasCharSet("utf8")
  3811. .HasCollation("utf8_general_ci");
  3812. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3813. entity.Property(e => e.OpenDetailRec)
  3814. .HasColumnType("varchar(32)")
  3815. .HasCharSet("utf8")
  3816. .HasCollation("utf8_general_ci");
  3817. entity.Property(e => e.OpenRewardNo)
  3818. .HasColumnType("varchar(32)")
  3819. .HasCharSet("utf8")
  3820. .HasCollation("utf8_general_ci");
  3821. entity.Property(e => e.ProductName)
  3822. .HasColumnType("varchar(32)")
  3823. .HasCharSet("utf8")
  3824. .HasCollation("utf8_general_ci");
  3825. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3826. entity.Property(e => e.Remark)
  3827. .HasColumnType("varchar(128)")
  3828. .HasCharSet("utf8")
  3829. .HasCollation("utf8_general_ci");
  3830. entity.Property(e => e.RewardDesc)
  3831. .HasColumnType("varchar(128)")
  3832. .HasCharSet("utf8")
  3833. .HasCollation("utf8_general_ci");
  3834. entity.Property(e => e.RewardTips)
  3835. .HasColumnType("varchar(16)")
  3836. .HasCharSet("utf8")
  3837. .HasCollation("utf8_general_ci");
  3838. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3839. entity.Property(e => e.SeoDescription)
  3840. .HasColumnType("varchar(500)")
  3841. .HasCharSet("utf8")
  3842. .HasCollation("utf8_general_ci");
  3843. entity.Property(e => e.SeoKeyword)
  3844. .HasColumnType("varchar(200)")
  3845. .HasCharSet("utf8")
  3846. .HasCollation("utf8_general_ci");
  3847. entity.Property(e => e.SeoTitle)
  3848. .HasColumnType("varchar(100)")
  3849. .HasCharSet("utf8")
  3850. .HasCollation("utf8_general_ci");
  3851. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3852. entity.Property(e => e.SnNo)
  3853. .HasColumnType("varchar(32)")
  3854. .HasCharSet("utf8")
  3855. .HasCollation("utf8_general_ci");
  3856. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3857. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3858. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3859. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3860. entity.Property(e => e.Status).HasColumnType("int(11)");
  3861. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3862. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3863. entity.Property(e => e.TradeMonth)
  3864. .HasColumnType("varchar(6)")
  3865. .HasCharSet("utf8")
  3866. .HasCollation("utf8_general_ci");
  3867. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  3868. entity.Property(e => e.UpdateMan)
  3869. .HasColumnType("varchar(50)")
  3870. .HasCharSet("utf8")
  3871. .HasCollation("utf8_general_ci");
  3872. entity.Property(e => e.UserId).HasColumnType("int(11)");
  3873. entity.Property(e => e.Version).HasColumnType("int(11)");
  3874. });
  3875. modelBuilder.Entity<OpenSnSnapshot>(entity =>
  3876. {
  3877. entity.Property(e => e.Id).HasColumnType("int(11)");
  3878. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  3879. entity.Property(e => e.BuySnNum).HasColumnType("int(11)");
  3880. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3881. entity.Property(e => e.CreateMan)
  3882. .HasColumnType("varchar(50)")
  3883. .HasCharSet("utf8")
  3884. .HasCollation("utf8_general_ci");
  3885. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  3886. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  3887. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  3888. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  3889. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  3890. entity.Property(e => e.FailReason)
  3891. .HasColumnType("varchar(128)")
  3892. .HasCharSet("utf8")
  3893. .HasCollation("utf8_general_ci");
  3894. entity.Property(e => e.MerNo)
  3895. .HasColumnType("varchar(32)")
  3896. .HasCharSet("utf8")
  3897. .HasCollation("utf8_general_ci");
  3898. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  3899. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  3900. entity.Property(e => e.OpenDetailRec)
  3901. .HasColumnType("varchar(32)")
  3902. .HasCharSet("utf8")
  3903. .HasCollation("utf8_general_ci");
  3904. entity.Property(e => e.OpenRewardNo)
  3905. .HasColumnType("varchar(32)")
  3906. .HasCharSet("utf8")
  3907. .HasCollation("utf8_general_ci");
  3908. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3909. entity.Property(e => e.Remark)
  3910. .HasColumnType("varchar(128)")
  3911. .HasCharSet("utf8")
  3912. .HasCollation("utf8_general_ci");
  3913. entity.Property(e => e.RewardAmount).HasColumnType("decimal(18,2)");
  3914. entity.Property(e => e.RewardDesc)
  3915. .HasColumnType("varchar(128)")
  3916. .HasCharSet("utf8")
  3917. .HasCollation("utf8_general_ci");
  3918. entity.Property(e => e.RewardTips)
  3919. .HasColumnType("varchar(16)")
  3920. .HasCharSet("utf8")
  3921. .HasCollation("utf8_general_ci");
  3922. entity.Property(e => e.RewardType).HasColumnType("int(11)");
  3923. entity.Property(e => e.SeoDescription)
  3924. .HasColumnType("varchar(500)")
  3925. .HasCharSet("utf8")
  3926. .HasCollation("utf8_general_ci");
  3927. entity.Property(e => e.SeoKeyword)
  3928. .HasColumnType("varchar(200)")
  3929. .HasCharSet("utf8")
  3930. .HasCollation("utf8_general_ci");
  3931. entity.Property(e => e.SeoTitle)
  3932. .HasColumnType("varchar(100)")
  3933. .HasCharSet("utf8")
  3934. .HasCollation("utf8_general_ci");
  3935. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  3936. entity.Property(e => e.SnNo)
  3937. .HasColumnType("varchar(32)")
  3938. .HasCharSet("utf8")
  3939. .HasCollation("utf8_general_ci");
  3940. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  3941. entity.Property(e => e.SnType).HasColumnType("int(11)");
  3942. entity.Property(e => e.Sort).HasColumnType("int(11)");
  3943. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  3944. entity.Property(e => e.Status).HasColumnType("int(11)");
  3945. entity.Property(e => e.StdBuySnNum).HasColumnType("int(11)");
  3946. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  3947. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  3948. entity.Property(e => e.TradeMonth)
  3949. .HasColumnType("varchar(6)")
  3950. .HasCharSet("utf8")
  3951. .HasCollation("utf8_general_ci");
  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.UserId).HasColumnType("int(11)");
  3958. entity.Property(e => e.UserNav)
  3959. .HasColumnType("varchar(300)")
  3960. .HasCharSet("utf8")
  3961. .HasCollation("utf8_general_ci");
  3962. entity.Property(e => e.Version).HasColumnType("int(11)");
  3963. });
  3964. modelBuilder.Entity<OperateLog>(entity =>
  3965. {
  3966. entity.Property(e => e.Id).HasColumnType("int(11)");
  3967. entity.Property(e => e.AfterOperate)
  3968. .HasColumnType("mediumtext")
  3969. .HasCharSet("utf8")
  3970. .HasCollation("utf8_general_ci");
  3971. entity.Property(e => e.BeforeOperate)
  3972. .HasColumnType("mediumtext")
  3973. .HasCharSet("utf8")
  3974. .HasCollation("utf8_general_ci");
  3975. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  3976. entity.Property(e => e.CreateMan)
  3977. .HasColumnType("varchar(50)")
  3978. .HasCharSet("utf8")
  3979. .HasCollation("utf8_general_ci");
  3980. entity.Property(e => e.OpMode)
  3981. .HasColumnType("varchar(30)")
  3982. .HasCharSet("utf8")
  3983. .HasCollation("utf8_general_ci");
  3984. entity.Property(e => e.OperateMan)
  3985. .HasColumnType("varchar(50)")
  3986. .HasCharSet("utf8")
  3987. .HasCollation("utf8_general_ci");
  3988. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  3989. entity.Property(e => e.SeoDescription)
  3990. .HasColumnType("varchar(500)")
  3991. .HasCharSet("utf8")
  3992. .HasCollation("utf8_general_ci");
  3993. entity.Property(e => e.SeoKeyword)
  3994. .HasColumnType("varchar(200)")
  3995. .HasCharSet("utf8")
  3996. .HasCollation("utf8_general_ci");
  3997. entity.Property(e => e.SeoTitle)
  3998. .HasColumnType("varchar(100)")
  3999. .HasCharSet("utf8")
  4000. .HasCollation("utf8_general_ci");
  4001. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4002. entity.Property(e => e.Status).HasColumnType("int(11)");
  4003. entity.Property(e => e.TableEnName)
  4004. .HasColumnType("varchar(50)")
  4005. .HasCharSet("utf8")
  4006. .HasCollation("utf8_general_ci");
  4007. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4008. entity.Property(e => e.UpdateMan)
  4009. .HasColumnType("varchar(50)")
  4010. .HasCharSet("utf8")
  4011. .HasCollation("utf8_general_ci");
  4012. entity.Property(e => e.Version).HasColumnType("int(11)");
  4013. });
  4014. modelBuilder.Entity<OperateRightList>(entity =>
  4015. {
  4016. entity.Property(e => e.Id).HasColumnType("int(11)");
  4017. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4018. entity.Property(e => e.CreateMan)
  4019. .HasColumnType("varchar(50)")
  4020. .HasCharSet("utf8")
  4021. .HasCollation("utf8_general_ci");
  4022. entity.Property(e => e.EnName)
  4023. .HasColumnType("varchar(50)")
  4024. .HasCharSet("utf8")
  4025. .HasCollation("utf8_general_ci");
  4026. entity.Property(e => e.Name)
  4027. .HasColumnType("varchar(50)")
  4028. .HasCharSet("utf8")
  4029. .HasCollation("utf8_general_ci");
  4030. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4031. entity.Property(e => e.SeoDescription)
  4032. .HasColumnType("varchar(500)")
  4033. .HasCharSet("utf8")
  4034. .HasCollation("utf8_general_ci");
  4035. entity.Property(e => e.SeoKeyword)
  4036. .HasColumnType("varchar(200)")
  4037. .HasCharSet("utf8")
  4038. .HasCollation("utf8_general_ci");
  4039. entity.Property(e => e.SeoTitle)
  4040. .HasColumnType("varchar(100)")
  4041. .HasCharSet("utf8")
  4042. .HasCollation("utf8_general_ci");
  4043. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4044. entity.Property(e => e.Status).HasColumnType("int(11)");
  4045. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4046. entity.Property(e => e.UpdateMan)
  4047. .HasColumnType("varchar(50)")
  4048. .HasCharSet("utf8")
  4049. .HasCollation("utf8_general_ci");
  4050. entity.Property(e => e.Version).HasColumnType("int(11)");
  4051. });
  4052. modelBuilder.Entity<OrderForNo>(entity =>
  4053. {
  4054. entity.HasKey(e => e.OrderNo)
  4055. .HasName("PRIMARY");
  4056. entity.Property(e => e.OrderNo)
  4057. .HasColumnType("varchar(50)")
  4058. .HasCharSet("utf8")
  4059. .HasCollation("utf8_general_ci");
  4060. entity.Property(e => e.OrderIds)
  4061. .HasColumnType("varchar(50)")
  4062. .HasCharSet("utf8")
  4063. .HasCollation("utf8_general_ci");
  4064. entity.Property(e => e.RspCode).HasColumnType("int(11)");
  4065. entity.Property(e => e.RspMsg)
  4066. .HasColumnType("varchar(500)")
  4067. .HasCharSet("utf8")
  4068. .HasCollation("utf8_general_ci");
  4069. });
  4070. modelBuilder.Entity<OrderProduct>(entity =>
  4071. {
  4072. entity.Property(e => e.Id).HasColumnType("int(11)");
  4073. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4074. entity.Property(e => e.CreateMan)
  4075. .HasColumnType("varchar(50)")
  4076. .HasCharSet("utf8")
  4077. .HasCollation("utf8_general_ci");
  4078. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4079. entity.Property(e => e.NormDetail)
  4080. .HasColumnType("varchar(200)")
  4081. .HasCharSet("utf8")
  4082. .HasCollation("utf8_general_ci");
  4083. entity.Property(e => e.NormId)
  4084. .HasColumnType("varchar(50)")
  4085. .HasCharSet("utf8")
  4086. .HasCollation("utf8_general_ci");
  4087. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4088. entity.Property(e => e.ProductCode)
  4089. .HasColumnType("varchar(30)")
  4090. .HasCharSet("utf8")
  4091. .HasCollation("utf8_general_ci");
  4092. entity.Property(e => e.ProductCount).HasColumnType("int(11)");
  4093. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4094. entity.Property(e => e.ProductIntegral).HasColumnType("decimal(18,2)");
  4095. entity.Property(e => e.ProductName)
  4096. .HasColumnType("varchar(100)")
  4097. .HasCharSet("utf8")
  4098. .HasCollation("utf8_general_ci");
  4099. entity.Property(e => e.ProductPhoto)
  4100. .HasColumnType("varchar(200)")
  4101. .HasCharSet("utf8")
  4102. .HasCollation("utf8_general_ci");
  4103. entity.Property(e => e.ProductPrice).HasColumnType("decimal(18,2)");
  4104. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4105. entity.Property(e => e.SeoDescription)
  4106. .HasColumnType("varchar(500)")
  4107. .HasCharSet("utf8")
  4108. .HasCollation("utf8_general_ci");
  4109. entity.Property(e => e.SeoKeyword)
  4110. .HasColumnType("varchar(200)")
  4111. .HasCharSet("utf8")
  4112. .HasCollation("utf8_general_ci");
  4113. entity.Property(e => e.SeoTitle)
  4114. .HasColumnType("varchar(100)")
  4115. .HasCharSet("utf8")
  4116. .HasCollation("utf8_general_ci");
  4117. entity.Property(e => e.SnNos)
  4118. .HasColumnType("mediumtext")
  4119. .HasCharSet("utf8")
  4120. .HasCollation("utf8_general_ci");
  4121. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4122. entity.Property(e => e.Status).HasColumnType("int(11)");
  4123. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4124. entity.Property(e => e.TotalIntegral).HasColumnType("decimal(18,2)");
  4125. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4126. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4127. entity.Property(e => e.UpdateMan)
  4128. .HasColumnType("varchar(50)")
  4129. .HasCharSet("utf8")
  4130. .HasCollation("utf8_general_ci");
  4131. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4132. entity.Property(e => e.Version).HasColumnType("int(11)");
  4133. });
  4134. modelBuilder.Entity<OrderRefund>(entity =>
  4135. {
  4136. entity.Property(e => e.Id).HasColumnType("int(11)");
  4137. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  4138. entity.Property(e => e.Contents)
  4139. .HasColumnType("longtext")
  4140. .HasCharSet("utf8")
  4141. .HasCollation("utf8_general_ci");
  4142. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4143. entity.Property(e => e.CreateMan)
  4144. .HasColumnType("varchar(50)")
  4145. .HasCharSet("utf8")
  4146. .HasCollation("utf8_general_ci");
  4147. entity.Property(e => e.ErpCode)
  4148. .HasColumnType("varchar(50)")
  4149. .HasCharSet("utf8")
  4150. .HasCollation("utf8_general_ci");
  4151. entity.Property(e => e.ErpCompany).HasColumnType("int(11)");
  4152. entity.Property(e => e.GoodStatus).HasColumnType("int(11)");
  4153. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4154. entity.Property(e => e.Mobile)
  4155. .HasColumnType("varchar(11)")
  4156. .HasCharSet("utf8")
  4157. .HasCollation("utf8_general_ci");
  4158. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4159. entity.Property(e => e.Photos)
  4160. .HasColumnType("varchar(500)")
  4161. .HasCharSet("utf8")
  4162. .HasCollation("utf8_general_ci");
  4163. entity.Property(e => e.ProductId)
  4164. .HasColumnType("varchar(50)")
  4165. .HasCharSet("utf8")
  4166. .HasCollation("utf8_general_ci");
  4167. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4168. entity.Property(e => e.Reason).HasColumnType("int(11)");
  4169. entity.Property(e => e.SeoDescription)
  4170. .HasColumnType("varchar(500)")
  4171. .HasCharSet("utf8")
  4172. .HasCollation("utf8_general_ci");
  4173. entity.Property(e => e.SeoKeyword)
  4174. .HasColumnType("varchar(200)")
  4175. .HasCharSet("utf8")
  4176. .HasCollation("utf8_general_ci");
  4177. entity.Property(e => e.SeoTitle)
  4178. .HasColumnType("varchar(100)")
  4179. .HasCharSet("utf8")
  4180. .HasCollation("utf8_general_ci");
  4181. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4182. entity.Property(e => e.Status).HasColumnType("int(11)");
  4183. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4184. entity.Property(e => e.UpdateMan)
  4185. .HasColumnType("varchar(50)")
  4186. .HasCharSet("utf8")
  4187. .HasCollation("utf8_general_ci");
  4188. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4189. entity.Property(e => e.Version).HasColumnType("int(11)");
  4190. });
  4191. modelBuilder.Entity<OrderRefundReason>(entity =>
  4192. {
  4193. entity.Property(e => e.Id).HasColumnType("int(11)");
  4194. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4195. entity.Property(e => e.CreateMan)
  4196. .HasColumnType("varchar(50)")
  4197. .HasCharSet("utf8")
  4198. .HasCollation("utf8_general_ci");
  4199. entity.Property(e => e.Name)
  4200. .HasColumnType("varchar(50)")
  4201. .HasCharSet("utf8")
  4202. .HasCollation("utf8_general_ci");
  4203. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4204. entity.Property(e => e.SeoDescription)
  4205. .HasColumnType("varchar(500)")
  4206. .HasCharSet("utf8")
  4207. .HasCollation("utf8_general_ci");
  4208. entity.Property(e => e.SeoKeyword)
  4209. .HasColumnType("varchar(200)")
  4210. .HasCharSet("utf8")
  4211. .HasCollation("utf8_general_ci");
  4212. entity.Property(e => e.SeoTitle)
  4213. .HasColumnType("varchar(100)")
  4214. .HasCharSet("utf8")
  4215. .HasCollation("utf8_general_ci");
  4216. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4217. entity.Property(e => e.Status).HasColumnType("int(11)");
  4218. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4219. entity.Property(e => e.UpdateMan)
  4220. .HasColumnType("varchar(50)")
  4221. .HasCharSet("utf8")
  4222. .HasCollation("utf8_general_ci");
  4223. entity.Property(e => e.Version).HasColumnType("int(11)");
  4224. });
  4225. modelBuilder.Entity<Orders>(entity =>
  4226. {
  4227. entity.Property(e => e.Id).HasColumnType("int(11)");
  4228. entity.Property(e => e.ActualPay).HasColumnType("decimal(18,2)");
  4229. entity.Property(e => e.Address)
  4230. .HasColumnType("varchar(50)")
  4231. .HasCharSet("utf8")
  4232. .HasCollation("utf8_general_ci");
  4233. entity.Property(e => e.Areas)
  4234. .HasColumnType("varchar(30)")
  4235. .HasCharSet("utf8")
  4236. .HasCollation("utf8_general_ci");
  4237. entity.Property(e => e.AutoConfirmDate).HasColumnType("datetime");
  4238. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  4239. entity.Property(e => e.ChannelAmount).HasColumnType("decimal(18,2)");
  4240. entity.Property(e => e.ConfirmDate).HasColumnType("datetime");
  4241. entity.Property(e => e.CouponId).HasColumnType("int(11)");
  4242. entity.Property(e => e.CouponMoney).HasColumnType("decimal(18,2)");
  4243. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4244. entity.Property(e => e.CreateMan)
  4245. .HasColumnType("varchar(50)")
  4246. .HasCharSet("utf8")
  4247. .HasCollation("utf8_general_ci");
  4248. entity.Property(e => e.DeliveryType).HasColumnType("int(11)");
  4249. entity.Property(e => e.ErpCode)
  4250. .HasColumnType("varchar(50)")
  4251. .HasCharSet("utf8")
  4252. .HasCollation("utf8_general_ci");
  4253. entity.Property(e => e.ErpMode).HasColumnType("int(11)");
  4254. entity.Property(e => e.ErpName)
  4255. .HasColumnType("varchar(50)")
  4256. .HasCharSet("utf8")
  4257. .HasCollation("utf8_general_ci");
  4258. entity.Property(e => e.ErpPrice).HasColumnType("decimal(18,2)");
  4259. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  4260. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4261. entity.Property(e => e.Mobile)
  4262. .HasColumnType("varchar(11)")
  4263. .HasCharSet("utf8")
  4264. .HasCollation("utf8_general_ci");
  4265. entity.Property(e => e.OrderNo)
  4266. .HasColumnType("varchar(30)")
  4267. .HasCharSet("utf8")
  4268. .HasCollation("utf8_general_ci");
  4269. entity.Property(e => e.PayDate).HasColumnType("datetime");
  4270. entity.Property(e => e.PayMode).HasColumnType("int(11)");
  4271. entity.Property(e => e.PayStatus).HasColumnType("int(11)");
  4272. entity.Property(e => e.PostalCode)
  4273. .HasColumnType("varchar(6)")
  4274. .HasCharSet("utf8")
  4275. .HasCollation("utf8_general_ci");
  4276. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4277. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4278. entity.Property(e => e.RealName)
  4279. .HasColumnType("varchar(10)")
  4280. .HasCharSet("utf8")
  4281. .HasCollation("utf8_general_ci");
  4282. entity.Property(e => e.RefundActAmount).HasColumnType("decimal(18,2)");
  4283. entity.Property(e => e.RefundFeeAmount).HasColumnType("decimal(18,2)");
  4284. entity.Property(e => e.RefundReason)
  4285. .HasColumnType("varchar(64)")
  4286. .HasCharSet("utf8")
  4287. .HasCollation("utf8_general_ci");
  4288. entity.Property(e => e.RefundStatus).HasColumnType("int(11)");
  4289. entity.Property(e => e.Remark)
  4290. .HasColumnType("varchar(64)")
  4291. .HasCharSet("utf8")
  4292. .HasCollation("utf8_general_ci");
  4293. entity.Property(e => e.ReqData)
  4294. .HasColumnType("varchar(2048)")
  4295. .HasCharSet("utf8")
  4296. .HasCollation("utf8_general_ci");
  4297. entity.Property(e => e.ResData)
  4298. .HasColumnType("varchar(2048)")
  4299. .HasCharSet("utf8")
  4300. .HasCollation("utf8_general_ci");
  4301. entity.Property(e => e.ReturnCode)
  4302. .HasColumnType("varchar(32)")
  4303. .HasCharSet("utf8")
  4304. .HasCollation("utf8_general_ci");
  4305. entity.Property(e => e.ReturnMsg)
  4306. .HasColumnType("varchar(128)")
  4307. .HasCharSet("utf8")
  4308. .HasCollation("utf8_general_ci");
  4309. entity.Property(e => e.SendDate).HasColumnType("datetime");
  4310. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  4311. entity.Property(e => e.SeoDescription)
  4312. .HasColumnType("varchar(500)")
  4313. .HasCharSet("utf8")
  4314. .HasCollation("utf8_general_ci");
  4315. entity.Property(e => e.SeoKeyword)
  4316. .HasColumnType("varchar(200)")
  4317. .HasCharSet("utf8")
  4318. .HasCollation("utf8_general_ci");
  4319. entity.Property(e => e.SeoTitle)
  4320. .HasColumnType("varchar(100)")
  4321. .HasCharSet("utf8")
  4322. .HasCollation("utf8_general_ci");
  4323. entity.Property(e => e.SnNos)
  4324. .HasColumnType("mediumtext")
  4325. .HasCharSet("utf8")
  4326. .HasCollation("utf8_general_ci");
  4327. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4328. entity.Property(e => e.Status).HasColumnType("int(11)");
  4329. entity.Property(e => e.StoreContact)
  4330. .HasColumnType("varchar(30)")
  4331. .HasCharSet("utf8")
  4332. .HasCollation("utf8_general_ci");
  4333. entity.Property(e => e.StoreContactMobile)
  4334. .HasColumnType("varchar(11)")
  4335. .HasCharSet("utf8")
  4336. .HasCollation("utf8_general_ci");
  4337. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4338. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  4339. entity.Property(e => e.StoreUserId).HasColumnType("int(11)");
  4340. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4341. entity.Property(e => e.TotalPrice).HasColumnType("decimal(18,2)");
  4342. entity.Property(e => e.TradeNo)
  4343. .HasColumnType("varchar(50)")
  4344. .HasCharSet("utf8")
  4345. .HasCollation("utf8_general_ci");
  4346. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4347. entity.Property(e => e.UpdateMan)
  4348. .HasColumnType("varchar(50)")
  4349. .HasCharSet("utf8")
  4350. .HasCollation("utf8_general_ci");
  4351. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4352. entity.Property(e => e.UserMessage)
  4353. .HasColumnType("varchar(50)")
  4354. .HasCharSet("utf8")
  4355. .HasCollation("utf8_general_ci");
  4356. entity.Property(e => e.Version).HasColumnType("int(11)");
  4357. });
  4358. modelBuilder.Entity<PageInfo>(entity =>
  4359. {
  4360. entity.Property(e => e.Id).HasColumnType("int(11)");
  4361. entity.Property(e => e.ColId)
  4362. .HasColumnType("varchar(30)")
  4363. .HasCharSet("utf8")
  4364. .HasCollation("utf8_general_ci");
  4365. entity.Property(e => e.Contents)
  4366. .HasColumnType("longtext")
  4367. .HasCharSet("utf8")
  4368. .HasCollation("utf8_general_ci");
  4369. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4370. entity.Property(e => e.CreateMan)
  4371. .HasColumnType("varchar(50)")
  4372. .HasCharSet("utf8")
  4373. .HasCollation("utf8_general_ci");
  4374. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4375. entity.Property(e => e.SeoDescription)
  4376. .HasColumnType("varchar(500)")
  4377. .HasCharSet("utf8")
  4378. .HasCollation("utf8_general_ci");
  4379. entity.Property(e => e.SeoKeyword)
  4380. .HasColumnType("varchar(200)")
  4381. .HasCharSet("utf8")
  4382. .HasCollation("utf8_general_ci");
  4383. entity.Property(e => e.SeoTitle)
  4384. .HasColumnType("varchar(100)")
  4385. .HasCharSet("utf8")
  4386. .HasCollation("utf8_general_ci");
  4387. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4388. entity.Property(e => e.Status).HasColumnType("int(11)");
  4389. entity.Property(e => e.Title)
  4390. .HasColumnType("varchar(200)")
  4391. .HasCharSet("utf8")
  4392. .HasCollation("utf8_general_ci");
  4393. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4394. entity.Property(e => e.UpdateMan)
  4395. .HasColumnType("varchar(50)")
  4396. .HasCharSet("utf8")
  4397. .HasCollation("utf8_general_ci");
  4398. entity.Property(e => e.Version).HasColumnType("int(11)");
  4399. });
  4400. modelBuilder.Entity<PageUpdateInfo>(entity =>
  4401. {
  4402. entity.Property(e => e.Id).HasColumnType("int(11)");
  4403. entity.Property(e => e.BgColor)
  4404. .HasColumnType("varchar(6)")
  4405. .HasCharSet("utf8")
  4406. .HasCollation("utf8_general_ci");
  4407. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4408. entity.Property(e => e.CreateMan)
  4409. .HasColumnType("varchar(50)")
  4410. .HasCharSet("utf8")
  4411. .HasCollation("utf8_general_ci");
  4412. entity.Property(e => e.GotoPages)
  4413. .HasColumnType("varchar(500)")
  4414. .HasCharSet("utf8")
  4415. .HasCollation("utf8_general_ci");
  4416. entity.Property(e => e.IsScrollBar)
  4417. .HasColumnType("bit(1)")
  4418. .HasDefaultValueSql("b'0'");
  4419. entity.Property(e => e.IsSkid)
  4420. .HasColumnType("bit(1)")
  4421. .HasDefaultValueSql("b'0'");
  4422. entity.Property(e => e.LeftAction1)
  4423. .HasColumnType("longtext")
  4424. .HasCharSet("utf8")
  4425. .HasCollation("utf8_general_ci");
  4426. entity.Property(e => e.LeftAction2)
  4427. .HasColumnType("longtext")
  4428. .HasCharSet("utf8")
  4429. .HasCollation("utf8_general_ci");
  4430. entity.Property(e => e.LeftBtn1)
  4431. .HasColumnType("varchar(100)")
  4432. .HasCharSet("utf8")
  4433. .HasCollation("utf8_general_ci");
  4434. entity.Property(e => e.LeftBtn2)
  4435. .HasColumnType("varchar(50)")
  4436. .HasCharSet("utf8")
  4437. .HasCollation("utf8_general_ci");
  4438. entity.Property(e => e.ModulePath)
  4439. .HasColumnType("varchar(200)")
  4440. .HasCharSet("utf8")
  4441. .HasCollation("utf8_general_ci");
  4442. entity.Property(e => e.ModuleVersion).HasColumnType("int(11)");
  4443. entity.Property(e => e.MustUpdate)
  4444. .HasColumnType("bit(1)")
  4445. .HasDefaultValueSql("b'0'");
  4446. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4447. entity.Property(e => e.RightAction1)
  4448. .HasColumnType("longtext")
  4449. .HasCharSet("utf8")
  4450. .HasCollation("utf8_general_ci");
  4451. entity.Property(e => e.RightAction2)
  4452. .HasColumnType("longtext")
  4453. .HasCharSet("utf8")
  4454. .HasCollation("utf8_general_ci");
  4455. entity.Property(e => e.RightBtn1)
  4456. .HasColumnType("varchar(50)")
  4457. .HasCharSet("utf8")
  4458. .HasCollation("utf8_general_ci");
  4459. entity.Property(e => e.RightBtn2)
  4460. .HasColumnType("varchar(50)")
  4461. .HasCharSet("utf8")
  4462. .HasCollation("utf8_general_ci");
  4463. entity.Property(e => e.SeoDescription)
  4464. .HasColumnType("varchar(500)")
  4465. .HasCharSet("utf8")
  4466. .HasCollation("utf8_general_ci");
  4467. entity.Property(e => e.SeoKeyword)
  4468. .HasColumnType("varchar(200)")
  4469. .HasCharSet("utf8")
  4470. .HasCollation("utf8_general_ci");
  4471. entity.Property(e => e.SeoTitle)
  4472. .HasColumnType("varchar(100)")
  4473. .HasCharSet("utf8")
  4474. .HasCollation("utf8_general_ci");
  4475. entity.Property(e => e.ShowTitle)
  4476. .HasColumnType("bit(1)")
  4477. .HasDefaultValueSql("b'0'");
  4478. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4479. entity.Property(e => e.Status).HasColumnType("int(11)");
  4480. entity.Property(e => e.StatusBarStyle)
  4481. .HasColumnType("varchar(10)")
  4482. .HasCharSet("utf8")
  4483. .HasCollation("utf8_general_ci");
  4484. entity.Property(e => e.TextColor)
  4485. .HasColumnType("varchar(6)")
  4486. .HasCharSet("utf8")
  4487. .HasCollation("utf8_general_ci");
  4488. entity.Property(e => e.Title)
  4489. .HasColumnType("varchar(50)")
  4490. .HasCharSet("utf8")
  4491. .HasCollation("utf8_general_ci");
  4492. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4493. entity.Property(e => e.UpdateMan)
  4494. .HasColumnType("varchar(50)")
  4495. .HasCharSet("utf8")
  4496. .HasCollation("utf8_general_ci");
  4497. entity.Property(e => e.Version).HasColumnType("int(11)");
  4498. });
  4499. modelBuilder.Entity<PosCouponForUser>(entity =>
  4500. {
  4501. entity.Property(e => e.Id).HasColumnType("int(11)");
  4502. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4503. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  4504. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4505. entity.Property(e => e.SeoDescription)
  4506. .HasColumnType("varchar(500)")
  4507. .HasCharSet("utf8")
  4508. .HasCollation("utf8_general_ci");
  4509. entity.Property(e => e.SeoKeyword)
  4510. .HasColumnType("varchar(200)")
  4511. .HasCharSet("utf8")
  4512. .HasCollation("utf8_general_ci");
  4513. entity.Property(e => e.SeoTitle)
  4514. .HasColumnType("varchar(100)")
  4515. .HasCharSet("utf8")
  4516. .HasCollation("utf8_general_ci");
  4517. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4518. entity.Property(e => e.Status).HasColumnType("int(11)");
  4519. entity.Property(e => e.StockNum).HasColumnType("int(11)");
  4520. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  4521. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4522. });
  4523. modelBuilder.Entity<PosCouponOrders>(entity =>
  4524. {
  4525. entity.Property(e => e.Id).HasColumnType("int(11)");
  4526. entity.Property(e => e.AfterOut).HasColumnType("int(11)");
  4527. entity.Property(e => e.AfterStock).HasColumnType("int(11)");
  4528. entity.Property(e => e.AfterTotal).HasColumnType("int(11)");
  4529. entity.Property(e => e.BeforeOut).HasColumnType("int(11)");
  4530. entity.Property(e => e.BeforeStock).HasColumnType("int(11)");
  4531. entity.Property(e => e.BeforeTotal).HasColumnType("int(11)");
  4532. entity.Property(e => e.ChangeCount).HasColumnType("int(11)");
  4533. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  4534. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4535. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  4536. entity.Property(e => e.OrderNo)
  4537. .HasColumnType("varchar(50)")
  4538. .HasCharSet("utf8")
  4539. .HasCollation("utf8_general_ci");
  4540. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4541. entity.Property(e => e.SeoDescription)
  4542. .HasColumnType("varchar(500)")
  4543. .HasCharSet("utf8")
  4544. .HasCollation("utf8_general_ci");
  4545. entity.Property(e => e.SeoKeyword)
  4546. .HasColumnType("varchar(200)")
  4547. .HasCharSet("utf8")
  4548. .HasCollation("utf8_general_ci");
  4549. entity.Property(e => e.SeoTitle)
  4550. .HasColumnType("varchar(100)")
  4551. .HasCharSet("utf8")
  4552. .HasCollation("utf8_general_ci");
  4553. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4554. entity.Property(e => e.Status).HasColumnType("int(11)");
  4555. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  4556. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4557. });
  4558. modelBuilder.Entity<PosCouponRecord>(entity =>
  4559. {
  4560. entity.Property(e => e.Id).HasColumnType("int(11)");
  4561. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  4562. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4563. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  4564. entity.Property(e => e.OrderNo)
  4565. .HasColumnType("varchar(50)")
  4566. .HasCharSet("utf8")
  4567. .HasCollation("utf8_general_ci");
  4568. entity.Property(e => e.PosCouponId).HasColumnType("int(11)");
  4569. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4570. entity.Property(e => e.SeoDescription)
  4571. .HasColumnType("varchar(500)")
  4572. .HasCharSet("utf8")
  4573. .HasCollation("utf8_general_ci");
  4574. entity.Property(e => e.SeoKeyword)
  4575. .HasColumnType("varchar(200)")
  4576. .HasCharSet("utf8")
  4577. .HasCollation("utf8_general_ci");
  4578. entity.Property(e => e.SeoTitle)
  4579. .HasColumnType("varchar(100)")
  4580. .HasCharSet("utf8")
  4581. .HasCollation("utf8_general_ci");
  4582. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4583. entity.Property(e => e.Status).HasColumnType("int(11)");
  4584. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  4585. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4586. });
  4587. modelBuilder.Entity<PosCoupons>(entity =>
  4588. {
  4589. entity.Property(e => e.Id).HasColumnType("int(11)");
  4590. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4591. entity.Property(e => e.ExchangeCode)
  4592. .HasColumnType("varchar(10)")
  4593. .HasCharSet("utf8")
  4594. .HasCollation("utf8_general_ci");
  4595. entity.Property(e => e.IsLock)
  4596. .HasColumnType("bit(1)")
  4597. .HasDefaultValueSql("b'0'");
  4598. entity.Property(e => e.IsUse)
  4599. .HasColumnType("bit(1)")
  4600. .HasDefaultValueSql("b'0'");
  4601. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4602. entity.Property(e => e.SeoDescription)
  4603. .HasColumnType("varchar(500)")
  4604. .HasCharSet("utf8")
  4605. .HasCollation("utf8_general_ci");
  4606. entity.Property(e => e.SeoKeyword)
  4607. .HasColumnType("varchar(200)")
  4608. .HasCharSet("utf8")
  4609. .HasCollation("utf8_general_ci");
  4610. entity.Property(e => e.SeoTitle)
  4611. .HasColumnType("varchar(100)")
  4612. .HasCharSet("utf8")
  4613. .HasCollation("utf8_general_ci");
  4614. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4615. entity.Property(e => e.Status).HasColumnType("int(11)");
  4616. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4617. entity.Property(e => e.UseDate).HasColumnType("datetime");
  4618. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4619. });
  4620. modelBuilder.Entity<PosMachines>(entity =>
  4621. {
  4622. entity.Property(e => e.Id).HasColumnType("int(11)");
  4623. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4624. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4625. entity.Property(e => e.ActivityList)
  4626. .HasColumnType("varchar(200)")
  4627. .HasCharSet("utf8")
  4628. .HasCollation("utf8_general_ci");
  4629. entity.Property(e => e.BatchNo)
  4630. .HasColumnType("varchar(32)")
  4631. .HasCharSet("utf8")
  4632. .HasCollation("utf8_general_ci");
  4633. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4634. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4635. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4636. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4637. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4638. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4639. entity.Property(e => e.CreateMan)
  4640. .HasColumnType("varchar(50)")
  4641. .HasCharSet("utf8")
  4642. .HasCollation("utf8_general_ci");
  4643. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4644. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4645. entity.Property(e => e.Detail)
  4646. .HasColumnType("longtext")
  4647. .HasCharSet("utf8")
  4648. .HasCollation("utf8_general_ci");
  4649. entity.Property(e => e.DeviceKind)
  4650. .HasColumnType("varchar(32)")
  4651. .HasCharSet("utf8")
  4652. .HasCollation("utf8_general_ci");
  4653. entity.Property(e => e.DeviceName)
  4654. .HasColumnType("varchar(32)")
  4655. .HasCharSet("utf8")
  4656. .HasCollation("utf8_general_ci");
  4657. entity.Property(e => e.DeviceType)
  4658. .HasColumnType("varchar(20)")
  4659. .HasCharSet("utf8")
  4660. .HasCollation("utf8_general_ci");
  4661. entity.Property(e => e.IsPurchase)
  4662. .HasColumnType("bit(1)")
  4663. .HasDefaultValueSql("b'0'");
  4664. entity.Property(e => e.IsVip)
  4665. .HasColumnType("bit(1)")
  4666. .HasDefaultValueSql("b'0'");
  4667. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4668. entity.Property(e => e.PosSn)
  4669. .HasColumnType("varchar(50)")
  4670. .HasCharSet("utf8")
  4671. .HasCollation("utf8_general_ci");
  4672. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4673. entity.Property(e => e.PrizeParams)
  4674. .HasColumnType("varchar(200)")
  4675. .HasCharSet("utf8")
  4676. .HasCollation("utf8_general_ci");
  4677. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4678. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4679. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4680. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4681. entity.Property(e => e.SeoDescription)
  4682. .HasColumnType("varchar(500)")
  4683. .HasCharSet("utf8")
  4684. .HasCollation("utf8_general_ci");
  4685. entity.Property(e => e.SeoKeyword)
  4686. .HasColumnType("varchar(200)")
  4687. .HasCharSet("utf8")
  4688. .HasCollation("utf8_general_ci");
  4689. entity.Property(e => e.SeoTitle)
  4690. .HasColumnType("varchar(100)")
  4691. .HasCharSet("utf8")
  4692. .HasCollation("utf8_general_ci");
  4693. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4694. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4695. entity.Property(e => e.Status).HasColumnType("int(11)");
  4696. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4697. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4698. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4699. entity.Property(e => e.UpdateMan)
  4700. .HasColumnType("varchar(50)")
  4701. .HasCharSet("utf8")
  4702. .HasCollation("utf8_general_ci");
  4703. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4704. entity.Property(e => e.UserNav)
  4705. .HasColumnType("longtext")
  4706. .HasCharSet("utf8")
  4707. .HasCollation("utf8_general_ci");
  4708. entity.Property(e => e.Version).HasColumnType("int(11)");
  4709. });
  4710. modelBuilder.Entity<PosMachinesTwo>(entity =>
  4711. {
  4712. entity.Property(e => e.Id).HasColumnType("int(11)");
  4713. entity.Property(e => e.ActivationState).HasColumnType("int(11)");
  4714. entity.Property(e => e.ActivationTime).HasColumnType("datetime");
  4715. entity.Property(e => e.ActivityList)
  4716. .HasColumnType("varchar(200)")
  4717. .HasCharSet("utf8")
  4718. .HasCollation("utf8_general_ci");
  4719. entity.Property(e => e.BatchNo)
  4720. .HasColumnType("varchar(32)")
  4721. .HasCharSet("utf8")
  4722. .HasCollation("utf8_general_ci");
  4723. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  4724. entity.Property(e => e.BindingState).HasColumnType("int(11)");
  4725. entity.Property(e => e.BindingTime).HasColumnType("datetime");
  4726. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4727. entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
  4728. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4729. entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
  4730. entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
  4731. entity.Property(e => e.Detail)
  4732. .HasColumnType("longtext")
  4733. .HasCharSet("utf8")
  4734. .HasCollation("utf8_general_ci");
  4735. entity.Property(e => e.DeviceKind)
  4736. .HasColumnType("varchar(32)")
  4737. .HasCharSet("utf8")
  4738. .HasCollation("utf8_general_ci");
  4739. entity.Property(e => e.DeviceName)
  4740. .HasColumnType("varchar(32)")
  4741. .HasCharSet("utf8")
  4742. .HasCollation("utf8_general_ci");
  4743. entity.Property(e => e.DeviceType)
  4744. .HasColumnType("varchar(20)")
  4745. .HasCharSet("utf8")
  4746. .HasCollation("utf8_general_ci");
  4747. entity.Property(e => e.IsPurchase).HasColumnType("int(11)");
  4748. entity.Property(e => e.IsVip)
  4749. .HasColumnType("bit(1)")
  4750. .HasDefaultValueSql("b'0'");
  4751. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4752. entity.Property(e => e.PosSn)
  4753. .HasColumnType("varchar(50)")
  4754. .HasCharSet("utf8")
  4755. .HasCollation("utf8_general_ci");
  4756. entity.Property(e => e.PosSnType).HasColumnType("int(11)");
  4757. entity.Property(e => e.PrizeParams)
  4758. .HasColumnType("varchar(200)")
  4759. .HasCharSet("utf8")
  4760. .HasCollation("utf8_general_ci");
  4761. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4762. entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
  4763. entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
  4764. entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
  4765. entity.Property(e => e.SeoDescription)
  4766. .HasColumnType("varchar(500)")
  4767. .HasCharSet("utf8")
  4768. .HasCollation("utf8_general_ci");
  4769. entity.Property(e => e.SeoKeyword)
  4770. .HasColumnType("varchar(200)")
  4771. .HasCharSet("utf8")
  4772. .HasCollation("utf8_general_ci");
  4773. entity.Property(e => e.SeoTitle)
  4774. .HasColumnType("varchar(100)")
  4775. .HasCharSet("utf8")
  4776. .HasCollation("utf8_general_ci");
  4777. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4778. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  4779. entity.Property(e => e.Status).HasColumnType("int(11)");
  4780. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  4781. entity.Property(e => e.TransferTime).HasColumnType("datetime");
  4782. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4783. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4784. entity.Property(e => e.UserNav)
  4785. .HasColumnType("longtext")
  4786. .HasCharSet("utf8")
  4787. .HasCollation("utf8_general_ci");
  4788. });
  4789. modelBuilder.Entity<PosMerchantInfo>(entity =>
  4790. {
  4791. entity.Property(e => e.Id).HasColumnType("int(11)");
  4792. entity.Property(e => e.ActType).HasColumnType("int(11)");
  4793. entity.Property(e => e.ActTypeDesc)
  4794. .HasColumnType("varchar(64)")
  4795. .HasCharSet("utf8")
  4796. .HasCollation("utf8_general_ci");
  4797. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  4798. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4799. entity.Property(e => e.City)
  4800. .HasColumnType("varchar(32)")
  4801. .HasCharSet("utf8")
  4802. .HasCollation("utf8_general_ci");
  4803. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4804. entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
  4805. entity.Property(e => e.KqMerNo)
  4806. .HasColumnType("varchar(32)")
  4807. .HasCharSet("utf8")
  4808. .HasCollation("utf8_general_ci");
  4809. entity.Property(e => e.KqRegTime).HasColumnType("datetime");
  4810. entity.Property(e => e.KqSnNo)
  4811. .HasColumnType("varchar(32)")
  4812. .HasCharSet("utf8")
  4813. .HasCollation("utf8_general_ci");
  4814. entity.Property(e => e.MatchTime).HasColumnType("datetime");
  4815. entity.Property(e => e.MerIdcardNo)
  4816. .HasColumnType("varchar(18)")
  4817. .HasCharSet("utf8")
  4818. .HasCollation("utf8_general_ci");
  4819. entity.Property(e => e.MerRealName)
  4820. .HasColumnType("varchar(16)")
  4821. .HasCharSet("utf8")
  4822. .HasCollation("utf8_general_ci");
  4823. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  4824. entity.Property(e => e.MerStatus).HasColumnType("int(11)");
  4825. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  4826. entity.Property(e => e.MerUserType).HasColumnType("int(11)");
  4827. entity.Property(e => e.MerchantMobile)
  4828. .HasColumnType("varchar(11)")
  4829. .HasCharSet("utf8")
  4830. .HasCollation("utf8_general_ci");
  4831. entity.Property(e => e.MerchantName)
  4832. .HasColumnType("varchar(32)")
  4833. .HasCharSet("utf8")
  4834. .HasCollation("utf8_general_ci");
  4835. entity.Property(e => e.MerchantNo)
  4836. .HasColumnType("varchar(16)")
  4837. .HasCharSet("utf8")
  4838. .HasCollation("utf8_general_ci");
  4839. entity.Property(e => e.MgrName)
  4840. .HasColumnType("varchar(32)")
  4841. .HasCharSet("utf8")
  4842. .HasCollation("utf8_general_ci");
  4843. entity.Property(e => e.MgrNo)
  4844. .HasColumnType("varchar(16)")
  4845. .HasCharSet("utf8")
  4846. .HasCollation("utf8_general_ci");
  4847. entity.Property(e => e.Province)
  4848. .HasColumnType("varchar(32)")
  4849. .HasCharSet("utf8")
  4850. .HasCollation("utf8_general_ci");
  4851. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4852. entity.Property(e => e.RebateQual).HasColumnType("int(11)");
  4853. entity.Property(e => e.Remark)
  4854. .HasColumnType("varchar(64)")
  4855. .HasCharSet("utf8")
  4856. .HasCollation("utf8_general_ci");
  4857. entity.Property(e => e.SeoDescription)
  4858. .HasColumnType("varchar(500)")
  4859. .HasCharSet("utf8")
  4860. .HasCollation("utf8_general_ci");
  4861. entity.Property(e => e.SeoKeyword)
  4862. .HasColumnType("varchar(200)")
  4863. .HasCharSet("utf8")
  4864. .HasCollation("utf8_general_ci");
  4865. entity.Property(e => e.SeoTitle)
  4866. .HasColumnType("varchar(100)")
  4867. .HasCharSet("utf8")
  4868. .HasCollation("utf8_general_ci");
  4869. entity.Property(e => e.SnApplyUserId).HasColumnType("int(11)");
  4870. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  4871. entity.Property(e => e.SnType).HasColumnType("int(11)");
  4872. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4873. entity.Property(e => e.Status).HasColumnType("int(11)");
  4874. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  4875. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4876. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4877. });
  4878. modelBuilder.Entity<PosMerchantOtherInfo>(entity =>
  4879. {
  4880. entity.HasKey(e => e.CertId)
  4881. .HasName("PRIMARY");
  4882. entity.Property(e => e.CertId)
  4883. .HasColumnType("varchar(18)")
  4884. .HasCharSet("utf8")
  4885. .HasCollation("utf8_general_ci");
  4886. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  4887. entity.Property(e => e.MerNo)
  4888. .HasColumnType("varchar(50)")
  4889. .HasCharSet("utf8")
  4890. .HasCollation("utf8_general_ci");
  4891. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4892. entity.Property(e => e.PrizeFlag1).HasColumnType("int(11)");
  4893. entity.Property(e => e.PrizeFlag2).HasColumnType("int(11)");
  4894. entity.Property(e => e.PrizeFlag3).HasColumnType("int(11)");
  4895. entity.Property(e => e.PrizeFlag4).HasColumnType("int(11)");
  4896. entity.Property(e => e.RealName)
  4897. .HasColumnType("varchar(30)")
  4898. .HasCharSet("utf8")
  4899. .HasCollation("utf8_general_ci");
  4900. });
  4901. modelBuilder.Entity<ProductComment>(entity =>
  4902. {
  4903. entity.Property(e => e.Id).HasColumnType("int(11)");
  4904. entity.Property(e => e.AgreeCount).HasColumnType("int(11)");
  4905. entity.Property(e => e.BackCount).HasColumnType("int(11)");
  4906. entity.Property(e => e.Contents)
  4907. .HasColumnType("varchar(200)")
  4908. .HasCharSet("utf8")
  4909. .HasCollation("utf8_general_ci");
  4910. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4911. entity.Property(e => e.CreateMan)
  4912. .HasColumnType("varchar(50)")
  4913. .HasCharSet("utf8")
  4914. .HasCollation("utf8_general_ci");
  4915. entity.Property(e => e.HasPhoto)
  4916. .HasColumnType("bit(1)")
  4917. .HasDefaultValueSql("b'0'");
  4918. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4919. entity.Property(e => e.OrderId).HasColumnType("int(11)");
  4920. entity.Property(e => e.PhotoList)
  4921. .HasColumnType("mediumtext")
  4922. .HasCharSet("utf8")
  4923. .HasCollation("utf8_general_ci");
  4924. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  4925. entity.Property(e => e.ProductNormId).HasColumnType("int(11)");
  4926. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4927. entity.Property(e => e.SeoDescription)
  4928. .HasColumnType("varchar(500)")
  4929. .HasCharSet("utf8")
  4930. .HasCollation("utf8_general_ci");
  4931. entity.Property(e => e.SeoKeyword)
  4932. .HasColumnType("varchar(200)")
  4933. .HasCharSet("utf8")
  4934. .HasCollation("utf8_general_ci");
  4935. entity.Property(e => e.SeoTitle)
  4936. .HasColumnType("varchar(100)")
  4937. .HasCharSet("utf8")
  4938. .HasCollation("utf8_general_ci");
  4939. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4940. entity.Property(e => e.StarNum).HasColumnType("int(11)");
  4941. entity.Property(e => e.Status).HasColumnType("int(11)");
  4942. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4943. entity.Property(e => e.UpdateMan)
  4944. .HasColumnType("varchar(50)")
  4945. .HasCharSet("utf8")
  4946. .HasCollation("utf8_general_ci");
  4947. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4948. entity.Property(e => e.Version).HasColumnType("int(11)");
  4949. });
  4950. modelBuilder.Entity<ProductCommentAgree>(entity =>
  4951. {
  4952. entity.Property(e => e.Id).HasColumnType("int(11)");
  4953. entity.Property(e => e.ProductCommentId).HasColumnType("int(11)");
  4954. entity.Property(e => e.UserId).HasColumnType("int(11)");
  4955. });
  4956. modelBuilder.Entity<ProductFareAreas>(entity =>
  4957. {
  4958. entity.Property(e => e.Id).HasColumnType("int(11)");
  4959. entity.Property(e => e.Areas)
  4960. .HasColumnType("longtext")
  4961. .HasCharSet("utf8")
  4962. .HasCollation("utf8_general_ci");
  4963. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  4964. entity.Property(e => e.CreateMan)
  4965. .HasColumnType("varchar(50)")
  4966. .HasCharSet("utf8")
  4967. .HasCollation("utf8_general_ci");
  4968. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  4969. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  4970. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  4971. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  4972. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  4973. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  4974. entity.Property(e => e.SeoDescription)
  4975. .HasColumnType("varchar(500)")
  4976. .HasCharSet("utf8")
  4977. .HasCollation("utf8_general_ci");
  4978. entity.Property(e => e.SeoKeyword)
  4979. .HasColumnType("varchar(200)")
  4980. .HasCharSet("utf8")
  4981. .HasCollation("utf8_general_ci");
  4982. entity.Property(e => e.SeoTitle)
  4983. .HasColumnType("varchar(100)")
  4984. .HasCharSet("utf8")
  4985. .HasCollation("utf8_general_ci");
  4986. entity.Property(e => e.Sort).HasColumnType("int(11)");
  4987. entity.Property(e => e.Status).HasColumnType("int(11)");
  4988. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  4989. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  4990. entity.Property(e => e.UpdateMan)
  4991. .HasColumnType("varchar(50)")
  4992. .HasCharSet("utf8")
  4993. .HasCollation("utf8_general_ci");
  4994. entity.Property(e => e.Version).HasColumnType("int(11)");
  4995. });
  4996. modelBuilder.Entity<ProductFareTemp>(entity =>
  4997. {
  4998. entity.Property(e => e.Id).HasColumnType("int(11)");
  4999. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5000. entity.Property(e => e.CreateMan)
  5001. .HasColumnType("varchar(50)")
  5002. .HasCharSet("utf8")
  5003. .HasCollation("utf8_general_ci");
  5004. entity.Property(e => e.FirstAmount).HasColumnType("decimal(18,2)");
  5005. entity.Property(e => e.FirstFee).HasColumnType("decimal(18,2)");
  5006. entity.Property(e => e.IsFree)
  5007. .HasColumnType("bit(1)")
  5008. .HasDefaultValueSql("b'0'");
  5009. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5010. entity.Property(e => e.MeterMode).HasColumnType("int(11)");
  5011. entity.Property(e => e.MoreAmount).HasColumnType("decimal(18,2)");
  5012. entity.Property(e => e.MoreFee).HasColumnType("decimal(18,2)");
  5013. entity.Property(e => e.Name)
  5014. .HasColumnType("varchar(50)")
  5015. .HasCharSet("utf8")
  5016. .HasCollation("utf8_general_ci");
  5017. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5018. entity.Property(e => e.SendAddress)
  5019. .HasColumnType("varchar(50)")
  5020. .HasCharSet("utf8")
  5021. .HasCollation("utf8_general_ci");
  5022. entity.Property(e => e.SendAreas)
  5023. .HasColumnType("varchar(30)")
  5024. .HasCharSet("utf8")
  5025. .HasCollation("utf8_general_ci");
  5026. entity.Property(e => e.SendDate).HasColumnType("int(11)");
  5027. entity.Property(e => e.SeoDescription)
  5028. .HasColumnType("varchar(500)")
  5029. .HasCharSet("utf8")
  5030. .HasCollation("utf8_general_ci");
  5031. entity.Property(e => e.SeoKeyword)
  5032. .HasColumnType("varchar(200)")
  5033. .HasCharSet("utf8")
  5034. .HasCollation("utf8_general_ci");
  5035. entity.Property(e => e.SeoTitle)
  5036. .HasColumnType("varchar(100)")
  5037. .HasCharSet("utf8")
  5038. .HasCollation("utf8_general_ci");
  5039. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5040. entity.Property(e => e.Status).HasColumnType("int(11)");
  5041. entity.Property(e => e.TransportMode).HasColumnType("int(11)");
  5042. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5043. entity.Property(e => e.UpdateMan)
  5044. .HasColumnType("varchar(50)")
  5045. .HasCharSet("utf8")
  5046. .HasCollation("utf8_general_ci");
  5047. entity.Property(e => e.Version).HasColumnType("int(11)");
  5048. });
  5049. modelBuilder.Entity<ProductKeys>(entity =>
  5050. {
  5051. entity.HasKey(e => e.Name)
  5052. .HasName("PRIMARY");
  5053. entity.Property(e => e.Name)
  5054. .HasColumnType("varchar(10)")
  5055. .HasCharSet("utf8")
  5056. .HasCollation("utf8_general_ci");
  5057. entity.Property(e => e.ColIds)
  5058. .HasColumnType("longtext")
  5059. .HasCharSet("utf8")
  5060. .HasCollation("utf8_general_ci");
  5061. entity.Property(e => e.ProductIds)
  5062. .HasColumnType("longtext")
  5063. .HasCharSet("utf8")
  5064. .HasCollation("utf8_general_ci");
  5065. });
  5066. modelBuilder.Entity<ProductNorm>(entity =>
  5067. {
  5068. entity.Property(e => e.Id).HasColumnType("int(11)");
  5069. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5070. entity.Property(e => e.Code)
  5071. .HasColumnType("varchar(50)")
  5072. .HasCharSet("utf8")
  5073. .HasCollation("utf8_general_ci");
  5074. entity.Property(e => e.ColName)
  5075. .HasColumnType("varchar(50)")
  5076. .HasCharSet("utf8")
  5077. .HasCollation("utf8_general_ci");
  5078. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5079. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5080. entity.Property(e => e.CreateMan)
  5081. .HasColumnType("varchar(50)")
  5082. .HasCharSet("utf8")
  5083. .HasCollation("utf8_general_ci");
  5084. entity.Property(e => e.IdList)
  5085. .HasColumnType("varchar(50)")
  5086. .HasCharSet("utf8")
  5087. .HasCollation("utf8_general_ci");
  5088. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5089. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5090. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5091. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5092. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5093. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5094. entity.Property(e => e.SeoDescription)
  5095. .HasColumnType("varchar(500)")
  5096. .HasCharSet("utf8")
  5097. .HasCollation("utf8_general_ci");
  5098. entity.Property(e => e.SeoKeyword)
  5099. .HasColumnType("varchar(200)")
  5100. .HasCharSet("utf8")
  5101. .HasCollation("utf8_general_ci");
  5102. entity.Property(e => e.SeoTitle)
  5103. .HasColumnType("varchar(100)")
  5104. .HasCharSet("utf8")
  5105. .HasCollation("utf8_general_ci");
  5106. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5107. entity.Property(e => e.Status).HasColumnType("int(11)");
  5108. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5109. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5110. entity.Property(e => e.UpdateMan)
  5111. .HasColumnType("varchar(50)")
  5112. .HasCharSet("utf8")
  5113. .HasCollation("utf8_general_ci");
  5114. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5115. entity.Property(e => e.UserPrice).HasColumnType("decimal(18,2)");
  5116. entity.Property(e => e.Version).HasColumnType("int(11)");
  5117. });
  5118. modelBuilder.Entity<ProductNormItem>(entity =>
  5119. {
  5120. entity.Property(e => e.Id).HasColumnType("int(11)");
  5121. entity.Property(e => e.ColName)
  5122. .HasColumnType("varchar(50)")
  5123. .HasCharSet("utf8")
  5124. .HasCollation("utf8_general_ci");
  5125. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5126. entity.Property(e => e.CreateMan)
  5127. .HasColumnType("varchar(50)")
  5128. .HasCharSet("utf8")
  5129. .HasCollation("utf8_general_ci");
  5130. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5131. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  5132. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  5133. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5134. entity.Property(e => e.SeoDescription)
  5135. .HasColumnType("varchar(500)")
  5136. .HasCharSet("utf8")
  5137. .HasCollation("utf8_general_ci");
  5138. entity.Property(e => e.SeoKeyword)
  5139. .HasColumnType("varchar(200)")
  5140. .HasCharSet("utf8")
  5141. .HasCollation("utf8_general_ci");
  5142. entity.Property(e => e.SeoTitle)
  5143. .HasColumnType("varchar(100)")
  5144. .HasCharSet("utf8")
  5145. .HasCollation("utf8_general_ci");
  5146. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5147. entity.Property(e => e.Status).HasColumnType("int(11)");
  5148. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5149. entity.Property(e => e.UpdateMan)
  5150. .HasColumnType("varchar(50)")
  5151. .HasCharSet("utf8")
  5152. .HasCollation("utf8_general_ci");
  5153. entity.Property(e => e.Version).HasColumnType("int(11)");
  5154. });
  5155. modelBuilder.Entity<ProductNormTemp>(entity =>
  5156. {
  5157. entity.Property(e => e.Id).HasColumnType("int(11)");
  5158. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5159. entity.Property(e => e.CreateMan)
  5160. .HasColumnType("varchar(50)")
  5161. .HasCharSet("utf8")
  5162. .HasCollation("utf8_general_ci");
  5163. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5164. entity.Property(e => e.Name)
  5165. .HasColumnType("varchar(50)")
  5166. .HasCharSet("utf8")
  5167. .HasCollation("utf8_general_ci");
  5168. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5169. entity.Property(e => e.SeoDescription)
  5170. .HasColumnType("varchar(500)")
  5171. .HasCharSet("utf8")
  5172. .HasCollation("utf8_general_ci");
  5173. entity.Property(e => e.SeoKeyword)
  5174. .HasColumnType("varchar(200)")
  5175. .HasCharSet("utf8")
  5176. .HasCollation("utf8_general_ci");
  5177. entity.Property(e => e.SeoTitle)
  5178. .HasColumnType("varchar(100)")
  5179. .HasCharSet("utf8")
  5180. .HasCollation("utf8_general_ci");
  5181. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5182. entity.Property(e => e.Status).HasColumnType("int(11)");
  5183. entity.Property(e => e.TempJsonData)
  5184. .HasColumnType("longtext")
  5185. .HasCharSet("utf8")
  5186. .HasCollation("utf8_general_ci");
  5187. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5188. entity.Property(e => e.UpdateMan)
  5189. .HasColumnType("varchar(50)")
  5190. .HasCharSet("utf8")
  5191. .HasCollation("utf8_general_ci");
  5192. entity.Property(e => e.Version).HasColumnType("int(11)");
  5193. });
  5194. modelBuilder.Entity<Products>(entity =>
  5195. {
  5196. entity.Property(e => e.Id).HasColumnType("int(11)");
  5197. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  5198. entity.Property(e => e.ColId)
  5199. .HasColumnType("varchar(30)")
  5200. .HasCharSet("utf8")
  5201. .HasCollation("utf8_general_ci");
  5202. entity.Property(e => e.CommentCount).HasColumnType("int(11)");
  5203. entity.Property(e => e.Contents)
  5204. .HasColumnType("longtext")
  5205. .HasCharSet("utf8")
  5206. .HasCollation("utf8_general_ci");
  5207. entity.Property(e => e.CostPrice).HasColumnType("decimal(18,2)");
  5208. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5209. entity.Property(e => e.CreateMan)
  5210. .HasColumnType("varchar(50)")
  5211. .HasCharSet("utf8")
  5212. .HasCollation("utf8_general_ci");
  5213. entity.Property(e => e.DetailPicPath)
  5214. .HasColumnType("varchar(500)")
  5215. .HasCharSet("utf8")
  5216. .HasCollation("utf8_general_ci");
  5217. entity.Property(e => e.Details)
  5218. .HasColumnType("longtext")
  5219. .HasCharSet("utf8")
  5220. .HasCollation("utf8_general_ci");
  5221. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5222. entity.Property(e => e.FareTemplateId).HasColumnType("int(11)");
  5223. entity.Property(e => e.GoodPercent).HasColumnType("decimal(18,2)");
  5224. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  5225. entity.Property(e => e.IsLimit)
  5226. .HasColumnType("bit(1)")
  5227. .HasDefaultValueSql("b'0'");
  5228. entity.Property(e => e.IsRecommend)
  5229. .HasColumnType("bit(1)")
  5230. .HasDefaultValueSql("b'0'");
  5231. entity.Property(e => e.IsRecommend2)
  5232. .HasColumnType("bit(1)")
  5233. .HasDefaultValueSql("b'0'");
  5234. entity.Property(e => e.IsRecommend3)
  5235. .HasColumnType("bit(1)")
  5236. .HasDefaultValueSql("b'0'");
  5237. entity.Property(e => e.KeyWord)
  5238. .HasColumnType("varchar(500)")
  5239. .HasCharSet("utf8")
  5240. .HasCollation("utf8_general_ci");
  5241. entity.Property(e => e.LimitCount).HasColumnType("int(11)");
  5242. entity.Property(e => e.LinkUrl)
  5243. .HasColumnType("varchar(500)")
  5244. .HasCharSet("utf8")
  5245. .HasCollation("utf8_general_ci");
  5246. entity.Property(e => e.ListPicPath)
  5247. .HasColumnType("varchar(200)")
  5248. .HasCharSet("utf8")
  5249. .HasCollation("utf8_general_ci");
  5250. entity.Property(e => e.MemberPrice).HasColumnType("decimal(18,2)");
  5251. entity.Property(e => e.MerchantClassId).HasColumnType("int(11)");
  5252. entity.Property(e => e.MerchantColId)
  5253. .HasColumnType("varchar(30)")
  5254. .HasCharSet("utf8")
  5255. .HasCollation("utf8_general_ci");
  5256. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5257. entity.Property(e => e.MonthSale).HasColumnType("int(11)");
  5258. entity.Property(e => e.NormIds)
  5259. .HasColumnType("varchar(100)")
  5260. .HasCharSet("utf8")
  5261. .HasCollation("utf8_general_ci");
  5262. entity.Property(e => e.NormJson)
  5263. .HasColumnType("longtext")
  5264. .HasCharSet("utf8")
  5265. .HasCollation("utf8_general_ci");
  5266. entity.Property(e => e.Price).HasColumnType("decimal(18,2)");
  5267. entity.Property(e => e.ProductCode)
  5268. .HasColumnType("varchar(30)")
  5269. .HasCharSet("utf8")
  5270. .HasCollation("utf8_general_ci");
  5271. entity.Property(e => e.ProductName)
  5272. .HasColumnType("varchar(100)")
  5273. .HasCharSet("utf8")
  5274. .HasCollation("utf8_general_ci");
  5275. entity.Property(e => e.PublishDate).HasColumnType("datetime");
  5276. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5277. entity.Property(e => e.SeoDescription)
  5278. .HasColumnType("varchar(500)")
  5279. .HasCharSet("utf8")
  5280. .HasCollation("utf8_general_ci");
  5281. entity.Property(e => e.SeoKeyword)
  5282. .HasColumnType("varchar(200)")
  5283. .HasCharSet("utf8")
  5284. .HasCollation("utf8_general_ci");
  5285. entity.Property(e => e.SeoTitle)
  5286. .HasColumnType("varchar(100)")
  5287. .HasCharSet("utf8")
  5288. .HasCollation("utf8_general_ci");
  5289. entity.Property(e => e.ShareDetail)
  5290. .HasColumnType("varchar(200)")
  5291. .HasCharSet("utf8")
  5292. .HasCollation("utf8_general_ci");
  5293. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5294. entity.Property(e => e.SourcePrice).HasColumnType("decimal(18,2)");
  5295. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5296. entity.Property(e => e.Status).HasColumnType("int(11)");
  5297. entity.Property(e => e.Stock).HasColumnType("int(11)");
  5298. entity.Property(e => e.Title)
  5299. .HasColumnType("varchar(50)")
  5300. .HasCharSet("utf8")
  5301. .HasCollation("utf8_general_ci");
  5302. entity.Property(e => e.Title2)
  5303. .HasColumnType("varchar(50)")
  5304. .HasCharSet("utf8")
  5305. .HasCollation("utf8_general_ci");
  5306. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5307. entity.Property(e => e.UpdateMan)
  5308. .HasColumnType("varchar(50)")
  5309. .HasCharSet("utf8")
  5310. .HasCollation("utf8_general_ci");
  5311. entity.Property(e => e.UserIntegral).HasColumnType("decimal(18,2)");
  5312. entity.Property(e => e.Version).HasColumnType("int(11)");
  5313. });
  5314. modelBuilder.Entity<ProfitObjectActivations>(entity =>
  5315. {
  5316. entity.Property(e => e.Id).HasColumnType("int(11)");
  5317. entity.Property(e => e.Code)
  5318. .HasColumnType("varchar(32)")
  5319. .HasCharSet("utf8")
  5320. .HasCollation("utf8_general_ci");
  5321. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5322. entity.Property(e => e.CreateMan)
  5323. .HasColumnType("varchar(50)")
  5324. .HasCharSet("utf8")
  5325. .HasCollation("utf8_general_ci");
  5326. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5327. entity.Property(e => e.ExpiredNumber).HasColumnType("decimal(18,6)");
  5328. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5329. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5330. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5331. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5332. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5333. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5334. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5335. entity.Property(e => e.SeoDescription)
  5336. .HasColumnType("varchar(500)")
  5337. .HasCharSet("utf8")
  5338. .HasCollation("utf8_general_ci");
  5339. entity.Property(e => e.SeoKeyword)
  5340. .HasColumnType("varchar(200)")
  5341. .HasCharSet("utf8")
  5342. .HasCollation("utf8_general_ci");
  5343. entity.Property(e => e.SeoTitle)
  5344. .HasColumnType("varchar(100)")
  5345. .HasCharSet("utf8")
  5346. .HasCollation("utf8_general_ci");
  5347. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5348. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5349. entity.Property(e => e.Status).HasColumnType("int(11)");
  5350. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5351. entity.Property(e => e.UpdateMan)
  5352. .HasColumnType("varchar(50)")
  5353. .HasCharSet("utf8")
  5354. .HasCollation("utf8_general_ci");
  5355. entity.Property(e => e.Version).HasColumnType("int(11)");
  5356. });
  5357. modelBuilder.Entity<ProfitObjectContinueFloors>(entity =>
  5358. {
  5359. entity.Property(e => e.Id).HasColumnType("int(11)");
  5360. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5361. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5362. entity.Property(e => e.CreateMan)
  5363. .HasColumnType("varchar(50)")
  5364. .HasCharSet("utf8")
  5365. .HasCollation("utf8_general_ci");
  5366. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5367. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5368. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5369. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5370. entity.Property(e => e.SeoDescription)
  5371. .HasColumnType("varchar(500)")
  5372. .HasCharSet("utf8")
  5373. .HasCollation("utf8_general_ci");
  5374. entity.Property(e => e.SeoKeyword)
  5375. .HasColumnType("varchar(200)")
  5376. .HasCharSet("utf8")
  5377. .HasCollation("utf8_general_ci");
  5378. entity.Property(e => e.SeoTitle)
  5379. .HasColumnType("varchar(100)")
  5380. .HasCharSet("utf8")
  5381. .HasCollation("utf8_general_ci");
  5382. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5383. entity.Property(e => e.Status).HasColumnType("int(11)");
  5384. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5385. entity.Property(e => e.UpdateMan)
  5386. .HasColumnType("varchar(50)")
  5387. .HasCharSet("utf8")
  5388. .HasCollation("utf8_general_ci");
  5389. entity.Property(e => e.Version).HasColumnType("int(11)");
  5390. });
  5391. modelBuilder.Entity<ProfitObjectFloors>(entity =>
  5392. {
  5393. entity.Property(e => e.Id).HasColumnType("int(11)");
  5394. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5395. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5396. entity.Property(e => e.CreateMan)
  5397. .HasColumnType("varchar(50)")
  5398. .HasCharSet("utf8")
  5399. .HasCollation("utf8_general_ci");
  5400. entity.Property(e => e.FloorDiff)
  5401. .HasColumnType("bit(1)")
  5402. .HasDefaultValueSql("b'0'");
  5403. entity.Property(e => e.FloorNumber).HasColumnType("int(11)");
  5404. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5405. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5406. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5407. entity.Property(e => e.SeoDescription)
  5408. .HasColumnType("varchar(500)")
  5409. .HasCharSet("utf8")
  5410. .HasCollation("utf8_general_ci");
  5411. entity.Property(e => e.SeoKeyword)
  5412. .HasColumnType("varchar(200)")
  5413. .HasCharSet("utf8")
  5414. .HasCollation("utf8_general_ci");
  5415. entity.Property(e => e.SeoTitle)
  5416. .HasColumnType("varchar(100)")
  5417. .HasCharSet("utf8")
  5418. .HasCollation("utf8_general_ci");
  5419. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5420. entity.Property(e => e.Status).HasColumnType("int(11)");
  5421. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5422. entity.Property(e => e.UpdateMan)
  5423. .HasColumnType("varchar(50)")
  5424. .HasCharSet("utf8")
  5425. .HasCollation("utf8_general_ci");
  5426. entity.Property(e => e.Version).HasColumnType("int(11)");
  5427. });
  5428. modelBuilder.Entity<ProfitObjectLevelKinds>(entity =>
  5429. {
  5430. entity.Property(e => e.Id).HasColumnType("int(11)");
  5431. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  5432. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5433. entity.Property(e => e.CreateMan)
  5434. .HasColumnType("varchar(50)")
  5435. .HasCharSet("utf8")
  5436. .HasCollation("utf8_general_ci");
  5437. entity.Property(e => e.IsHelp)
  5438. .HasColumnType("bit(1)")
  5439. .HasDefaultValueSql("b'0'");
  5440. entity.Property(e => e.Name)
  5441. .HasColumnType("varchar(50)")
  5442. .HasCharSet("utf8")
  5443. .HasCollation("utf8_general_ci");
  5444. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5445. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5446. entity.Property(e => e.SeoDescription)
  5447. .HasColumnType("varchar(500)")
  5448. .HasCharSet("utf8")
  5449. .HasCollation("utf8_general_ci");
  5450. entity.Property(e => e.SeoKeyword)
  5451. .HasColumnType("varchar(200)")
  5452. .HasCharSet("utf8")
  5453. .HasCollation("utf8_general_ci");
  5454. entity.Property(e => e.SeoTitle)
  5455. .HasColumnType("varchar(100)")
  5456. .HasCharSet("utf8")
  5457. .HasCollation("utf8_general_ci");
  5458. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5459. entity.Property(e => e.Status).HasColumnType("int(11)");
  5460. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5461. entity.Property(e => e.UpdateMan)
  5462. .HasColumnType("varchar(50)")
  5463. .HasCharSet("utf8")
  5464. .HasCollation("utf8_general_ci");
  5465. entity.Property(e => e.Version).HasColumnType("int(11)");
  5466. });
  5467. modelBuilder.Entity<ProfitObjectLevels>(entity =>
  5468. {
  5469. entity.Property(e => e.Id).HasColumnType("int(11)");
  5470. entity.Property(e => e.AddProfitVal).HasColumnType("decimal(18,6)");
  5471. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5472. entity.Property(e => e.CreateMan)
  5473. .HasColumnType("varchar(50)")
  5474. .HasCharSet("utf8")
  5475. .HasCollation("utf8_general_ci");
  5476. entity.Property(e => e.DebitAddProfitVal).HasColumnType("decimal(18,2)");
  5477. entity.Property(e => e.DebitPercents).HasColumnType("decimal(18,2)");
  5478. entity.Property(e => e.KindId).HasColumnType("int(11)");
  5479. entity.Property(e => e.LevelDiff)
  5480. .HasColumnType("bit(1)")
  5481. .HasDefaultValueSql("b'0'");
  5482. entity.Property(e => e.LevelNumber).HasColumnType("int(11)");
  5483. entity.Property(e => e.Name)
  5484. .HasColumnType("varchar(50)")
  5485. .HasCharSet("utf8")
  5486. .HasCollation("utf8_general_ci");
  5487. entity.Property(e => e.Percents).HasColumnType("decimal(18,6)");
  5488. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5489. entity.Property(e => e.SeoDescription)
  5490. .HasColumnType("varchar(500)")
  5491. .HasCharSet("utf8")
  5492. .HasCollation("utf8_general_ci");
  5493. entity.Property(e => e.SeoKeyword)
  5494. .HasColumnType("varchar(200)")
  5495. .HasCharSet("utf8")
  5496. .HasCollation("utf8_general_ci");
  5497. entity.Property(e => e.SeoTitle)
  5498. .HasColumnType("varchar(100)")
  5499. .HasCharSet("utf8")
  5500. .HasCollation("utf8_general_ci");
  5501. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5502. entity.Property(e => e.Status).HasColumnType("int(11)");
  5503. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5504. entity.Property(e => e.UpdateMan)
  5505. .HasColumnType("varchar(50)")
  5506. .HasCharSet("utf8")
  5507. .HasCollation("utf8_general_ci");
  5508. entity.Property(e => e.Version).HasColumnType("int(11)");
  5509. });
  5510. modelBuilder.Entity<ProfitObjects>(entity =>
  5511. {
  5512. entity.Property(e => e.Id).HasColumnType("int(11)");
  5513. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5514. entity.Property(e => e.CreateMan)
  5515. .HasColumnType("varchar(50)")
  5516. .HasCharSet("utf8")
  5517. .HasCollation("utf8_general_ci");
  5518. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5519. entity.Property(e => e.MaxFloor).HasColumnType("int(11)");
  5520. entity.Property(e => e.MaxLevel).HasColumnType("int(11)");
  5521. entity.Property(e => e.MaxLevelContinue)
  5522. .HasColumnType("bit(1)")
  5523. .HasDefaultValueSql("b'0'");
  5524. entity.Property(e => e.MinProfitVal).HasColumnType("decimal(18,5)");
  5525. entity.Property(e => e.Name)
  5526. .HasColumnType("varchar(50)")
  5527. .HasCharSet("utf8")
  5528. .HasCollation("utf8_general_ci");
  5529. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5530. entity.Property(e => e.SeoDescription)
  5531. .HasColumnType("varchar(500)")
  5532. .HasCharSet("utf8")
  5533. .HasCollation("utf8_general_ci");
  5534. entity.Property(e => e.SeoKeyword)
  5535. .HasColumnType("varchar(200)")
  5536. .HasCharSet("utf8")
  5537. .HasCollation("utf8_general_ci");
  5538. entity.Property(e => e.SeoTitle)
  5539. .HasColumnType("varchar(100)")
  5540. .HasCharSet("utf8")
  5541. .HasCollation("utf8_general_ci");
  5542. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5543. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5544. entity.Property(e => e.Status).HasColumnType("int(11)");
  5545. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5546. entity.Property(e => e.UpdateMan)
  5547. .HasColumnType("varchar(50)")
  5548. .HasCharSet("utf8")
  5549. .HasCollation("utf8_general_ci");
  5550. entity.Property(e => e.Version).HasColumnType("int(11)");
  5551. });
  5552. modelBuilder.Entity<ProfitObjectsActiveCheck>(entity =>
  5553. {
  5554. entity.HasKey(e => e.CheckData)
  5555. .HasName("PRIMARY");
  5556. entity.Property(e => e.CheckData)
  5557. .HasColumnType("varchar(100)")
  5558. .HasCharSet("utf8")
  5559. .HasCollation("utf8_general_ci");
  5560. });
  5561. modelBuilder.Entity<ProfitObjectsActiveParams>(entity =>
  5562. {
  5563. entity.Property(e => e.Id).HasColumnType("int(11)");
  5564. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5565. entity.Property(e => e.CreateMan)
  5566. .HasColumnType("varchar(50)")
  5567. .HasCharSet("utf8")
  5568. .HasCollation("utf8_general_ci");
  5569. entity.Property(e => e.Name)
  5570. .HasColumnType("varchar(50)")
  5571. .HasCharSet("utf8")
  5572. .HasCollation("utf8_general_ci");
  5573. entity.Property(e => e.ProfitObjectsActiveId).HasColumnType("int(11)");
  5574. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5575. entity.Property(e => e.Remark)
  5576. .HasColumnType("varchar(200)")
  5577. .HasCharSet("utf8")
  5578. .HasCollation("utf8_general_ci");
  5579. entity.Property(e => e.SeoDescription)
  5580. .HasColumnType("varchar(500)")
  5581. .HasCharSet("utf8")
  5582. .HasCollation("utf8_general_ci");
  5583. entity.Property(e => e.SeoKeyword)
  5584. .HasColumnType("varchar(200)")
  5585. .HasCharSet("utf8")
  5586. .HasCollation("utf8_general_ci");
  5587. entity.Property(e => e.SeoTitle)
  5588. .HasColumnType("varchar(100)")
  5589. .HasCharSet("utf8")
  5590. .HasCollation("utf8_general_ci");
  5591. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5592. entity.Property(e => e.Status).HasColumnType("int(11)");
  5593. entity.Property(e => e.TextValue)
  5594. .HasColumnType("varchar(20)")
  5595. .HasCharSet("utf8")
  5596. .HasCollation("utf8_general_ci");
  5597. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5598. entity.Property(e => e.UpdateMan)
  5599. .HasColumnType("varchar(50)")
  5600. .HasCharSet("utf8")
  5601. .HasCollation("utf8_general_ci");
  5602. entity.Property(e => e.Version).HasColumnType("int(11)");
  5603. });
  5604. modelBuilder.Entity<ProfitObjectsActives>(entity =>
  5605. {
  5606. entity.Property(e => e.Id).HasColumnType("int(11)");
  5607. entity.Property(e => e.CardType).HasColumnType("int(11)");
  5608. entity.Property(e => e.Code)
  5609. .HasColumnType("varchar(50)")
  5610. .HasCharSet("utf8")
  5611. .HasCollation("utf8_general_ci");
  5612. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5613. entity.Property(e => e.CreateMan)
  5614. .HasColumnType("varchar(50)")
  5615. .HasCharSet("utf8")
  5616. .HasCollation("utf8_general_ci");
  5617. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5618. entity.Property(e => e.FinishNumber).HasColumnType("decimal(18,6)");
  5619. entity.Property(e => e.LimitCustomerDate).HasColumnType("datetime");
  5620. entity.Property(e => e.LimitDateKind).HasColumnType("int(11)");
  5621. entity.Property(e => e.LimitDateVal).HasColumnType("int(11)");
  5622. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  5623. entity.Property(e => e.Name)
  5624. .HasColumnType("varchar(50)")
  5625. .HasCharSet("utf8")
  5626. .HasCollation("utf8_general_ci");
  5627. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5628. entity.Property(e => e.ProfitNumber).HasColumnType("decimal(18,6)");
  5629. entity.Property(e => e.ProfitNumber2).HasColumnType("decimal(18,2)");
  5630. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5631. entity.Property(e => e.SeoDescription)
  5632. .HasColumnType("varchar(500)")
  5633. .HasCharSet("utf8")
  5634. .HasCollation("utf8_general_ci");
  5635. entity.Property(e => e.SeoKeyword)
  5636. .HasColumnType("varchar(200)")
  5637. .HasCharSet("utf8")
  5638. .HasCollation("utf8_general_ci");
  5639. entity.Property(e => e.SeoTitle)
  5640. .HasColumnType("varchar(100)")
  5641. .HasCharSet("utf8")
  5642. .HasCollation("utf8_general_ci");
  5643. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5644. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5645. entity.Property(e => e.Status).HasColumnType("int(11)");
  5646. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5647. entity.Property(e => e.UpdateMan)
  5648. .HasColumnType("varchar(50)")
  5649. .HasCharSet("utf8")
  5650. .HasCollation("utf8_general_ci");
  5651. entity.Property(e => e.Version).HasColumnType("int(11)");
  5652. });
  5653. modelBuilder.Entity<ProfitObjectsActivesForId>(entity =>
  5654. {
  5655. entity.HasKey(e => e.Name)
  5656. .HasName("PRIMARY");
  5657. entity.Property(e => e.Name)
  5658. .HasColumnType("varchar(50)")
  5659. .HasCharSet("utf8")
  5660. .HasCollation("utf8_general_ci");
  5661. entity.Property(e => e.ActivityId).HasColumnType("int(11)");
  5662. });
  5663. modelBuilder.Entity<ProfitObjectsRule>(entity =>
  5664. {
  5665. entity.Property(e => e.Id).HasColumnType("int(11)");
  5666. entity.Property(e => e.Code)
  5667. .HasColumnType("varchar(50)")
  5668. .HasCharSet("utf8")
  5669. .HasCollation("utf8_general_ci");
  5670. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5671. entity.Property(e => e.CreateMan)
  5672. .HasColumnType("varchar(50)")
  5673. .HasCharSet("utf8")
  5674. .HasCollation("utf8_general_ci");
  5675. entity.Property(e => e.EndDate).HasColumnType("datetime");
  5676. entity.Property(e => e.Name)
  5677. .HasColumnType("varchar(50)")
  5678. .HasCharSet("utf8")
  5679. .HasCollation("utf8_general_ci");
  5680. entity.Property(e => e.ObjectId).HasColumnType("int(11)");
  5681. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5682. entity.Property(e => e.SeoDescription)
  5683. .HasColumnType("varchar(500)")
  5684. .HasCharSet("utf8")
  5685. .HasCollation("utf8_general_ci");
  5686. entity.Property(e => e.SeoKeyword)
  5687. .HasColumnType("varchar(200)")
  5688. .HasCharSet("utf8")
  5689. .HasCollation("utf8_general_ci");
  5690. entity.Property(e => e.SeoTitle)
  5691. .HasColumnType("varchar(100)")
  5692. .HasCharSet("utf8")
  5693. .HasCollation("utf8_general_ci");
  5694. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5695. entity.Property(e => e.StartDate).HasColumnType("datetime");
  5696. entity.Property(e => e.Status).HasColumnType("int(11)");
  5697. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5698. entity.Property(e => e.UpdateMan)
  5699. .HasColumnType("varchar(50)")
  5700. .HasCharSet("utf8")
  5701. .HasCollation("utf8_general_ci");
  5702. entity.Property(e => e.Version).HasColumnType("int(11)");
  5703. });
  5704. modelBuilder.Entity<ProfitObjectsRuleDetails>(entity =>
  5705. {
  5706. entity.Property(e => e.Id).HasColumnType("int(11)");
  5707. entity.Property(e => e.Code)
  5708. .HasColumnType("varchar(50)")
  5709. .HasCharSet("utf8")
  5710. .HasCollation("utf8_general_ci");
  5711. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5712. entity.Property(e => e.CreateMan)
  5713. .HasColumnType("varchar(50)")
  5714. .HasCharSet("utf8")
  5715. .HasCollation("utf8_general_ci");
  5716. entity.Property(e => e.DataValue)
  5717. .HasColumnType("varchar(50)")
  5718. .HasCharSet("utf8")
  5719. .HasCollation("utf8_general_ci");
  5720. entity.Property(e => e.Name)
  5721. .HasColumnType("varchar(50)")
  5722. .HasCharSet("utf8")
  5723. .HasCollation("utf8_general_ci");
  5724. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5725. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  5726. entity.Property(e => e.SeoDescription)
  5727. .HasColumnType("varchar(500)")
  5728. .HasCharSet("utf8")
  5729. .HasCollation("utf8_general_ci");
  5730. entity.Property(e => e.SeoKeyword)
  5731. .HasColumnType("varchar(200)")
  5732. .HasCharSet("utf8")
  5733. .HasCollation("utf8_general_ci");
  5734. entity.Property(e => e.SeoTitle)
  5735. .HasColumnType("varchar(100)")
  5736. .HasCharSet("utf8")
  5737. .HasCollation("utf8_general_ci");
  5738. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5739. entity.Property(e => e.Status).HasColumnType("int(11)");
  5740. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5741. entity.Property(e => e.UpdateMan)
  5742. .HasColumnType("varchar(50)")
  5743. .HasCharSet("utf8")
  5744. .HasCollation("utf8_general_ci");
  5745. entity.Property(e => e.Version).HasColumnType("int(11)");
  5746. });
  5747. modelBuilder.Entity<ProfitReceiveRecord>(entity =>
  5748. {
  5749. entity.Property(e => e.Id).HasColumnType("int(11)");
  5750. entity.Property(e => e.Account)
  5751. .HasColumnType("varchar(32)")
  5752. .HasCharSet("utf8")
  5753. .HasCollation("utf8_general_ci");
  5754. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  5755. entity.Property(e => e.AppId)
  5756. .HasColumnType("varchar(32)")
  5757. .HasCharSet("utf8")
  5758. .HasCollation("utf8_general_ci");
  5759. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5760. entity.Property(e => e.CreateMan)
  5761. .HasColumnType("varchar(50)")
  5762. .HasCharSet("utf8")
  5763. .HasCollation("utf8_general_ci");
  5764. entity.Property(e => e.CustomRelation)
  5765. .HasColumnType("varchar(10)")
  5766. .HasCharSet("utf8")
  5767. .HasCollation("utf8_general_ci");
  5768. entity.Property(e => e.Description)
  5769. .HasColumnType("varchar(50)")
  5770. .HasCharSet("utf8")
  5771. .HasCollation("utf8_general_ci");
  5772. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5773. entity.Property(e => e.Name)
  5774. .HasColumnType("varchar(32)")
  5775. .HasCharSet("utf8")
  5776. .HasCollation("utf8_general_ci");
  5777. entity.Property(e => e.OrderId)
  5778. .HasColumnType("varchar(32)")
  5779. .HasCharSet("utf8")
  5780. .HasCollation("utf8_general_ci");
  5781. entity.Property(e => e.OutOrderNo)
  5782. .HasColumnType("varchar(32)")
  5783. .HasCharSet("utf8")
  5784. .HasCollation("utf8_general_ci");
  5785. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5786. entity.Property(e => e.RelationType)
  5787. .HasColumnType("varchar(30)")
  5788. .HasCharSet("utf8")
  5789. .HasCollation("utf8_general_ci");
  5790. entity.Property(e => e.SeoDescription)
  5791. .HasColumnType("varchar(500)")
  5792. .HasCharSet("utf8")
  5793. .HasCollation("utf8_general_ci");
  5794. entity.Property(e => e.SeoKeyword)
  5795. .HasColumnType("varchar(200)")
  5796. .HasCharSet("utf8")
  5797. .HasCollation("utf8_general_ci");
  5798. entity.Property(e => e.SeoTitle)
  5799. .HasColumnType("varchar(100)")
  5800. .HasCharSet("utf8")
  5801. .HasCollation("utf8_general_ci");
  5802. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5803. entity.Property(e => e.State)
  5804. .HasColumnType("varchar(20)")
  5805. .HasCharSet("utf8")
  5806. .HasCollation("utf8_general_ci");
  5807. entity.Property(e => e.Status).HasColumnType("int(11)");
  5808. entity.Property(e => e.SubAppId)
  5809. .HasColumnType("varchar(32)")
  5810. .HasCharSet("utf8")
  5811. .HasCollation("utf8_general_ci");
  5812. entity.Property(e => e.SubMchid)
  5813. .HasColumnType("varchar(32)")
  5814. .HasCharSet("utf8")
  5815. .HasCollation("utf8_general_ci");
  5816. entity.Property(e => e.TransactionId)
  5817. .HasColumnType("varchar(32)")
  5818. .HasCharSet("utf8")
  5819. .HasCollation("utf8_general_ci");
  5820. entity.Property(e => e.Type)
  5821. .HasColumnType("varchar(30)")
  5822. .HasCharSet("utf8")
  5823. .HasCollation("utf8_general_ci");
  5824. entity.Property(e => e.UnfreezeUnsplit)
  5825. .HasColumnType("bit(1)")
  5826. .HasDefaultValueSql("b'0'");
  5827. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5828. entity.Property(e => e.UpdateMan)
  5829. .HasColumnType("varchar(50)")
  5830. .HasCharSet("utf8")
  5831. .HasCollation("utf8_general_ci");
  5832. entity.Property(e => e.Version).HasColumnType("int(11)");
  5833. });
  5834. modelBuilder.Entity<ProfitReceives>(entity =>
  5835. {
  5836. entity.Property(e => e.Id).HasColumnType("int(11)");
  5837. entity.Property(e => e.Account)
  5838. .HasColumnType("varchar(32)")
  5839. .HasCharSet("utf8")
  5840. .HasCollation("utf8_general_ci");
  5841. entity.Property(e => e.AppId)
  5842. .HasColumnType("varchar(32)")
  5843. .HasCharSet("utf8")
  5844. .HasCollation("utf8_general_ci");
  5845. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5846. entity.Property(e => e.CreateMan)
  5847. .HasColumnType("varchar(50)")
  5848. .HasCharSet("utf8")
  5849. .HasCollation("utf8_general_ci");
  5850. entity.Property(e => e.CustomRelation)
  5851. .HasColumnType("varchar(10)")
  5852. .HasCharSet("utf8")
  5853. .HasCollation("utf8_general_ci");
  5854. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5855. entity.Property(e => e.Name)
  5856. .HasColumnType("varchar(32)")
  5857. .HasCharSet("utf8")
  5858. .HasCollation("utf8_general_ci");
  5859. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5860. entity.Property(e => e.RelationType)
  5861. .HasColumnType("varchar(30)")
  5862. .HasCharSet("utf8")
  5863. .HasCollation("utf8_general_ci");
  5864. entity.Property(e => e.SeoDescription)
  5865. .HasColumnType("varchar(500)")
  5866. .HasCharSet("utf8")
  5867. .HasCollation("utf8_general_ci");
  5868. entity.Property(e => e.SeoKeyword)
  5869. .HasColumnType("varchar(200)")
  5870. .HasCharSet("utf8")
  5871. .HasCollation("utf8_general_ci");
  5872. entity.Property(e => e.SeoTitle)
  5873. .HasColumnType("varchar(100)")
  5874. .HasCharSet("utf8")
  5875. .HasCollation("utf8_general_ci");
  5876. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5877. entity.Property(e => e.Status).HasColumnType("int(11)");
  5878. entity.Property(e => e.SubAppId)
  5879. .HasColumnType("varchar(32)")
  5880. .HasCharSet("utf8")
  5881. .HasCollation("utf8_general_ci");
  5882. entity.Property(e => e.SubMchid)
  5883. .HasColumnType("varchar(32)")
  5884. .HasCharSet("utf8")
  5885. .HasCollation("utf8_general_ci");
  5886. entity.Property(e => e.Type)
  5887. .HasColumnType("varchar(30)")
  5888. .HasCharSet("utf8")
  5889. .HasCollation("utf8_general_ci");
  5890. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5891. entity.Property(e => e.UpdateMan)
  5892. .HasColumnType("varchar(50)")
  5893. .HasCharSet("utf8")
  5894. .HasCollation("utf8_general_ci");
  5895. entity.Property(e => e.Version).HasColumnType("int(11)");
  5896. });
  5897. modelBuilder.Entity<ProfitRecord>(entity =>
  5898. {
  5899. entity.Property(e => e.Id).HasColumnType("int(11)");
  5900. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5901. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  5902. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  5903. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5904. entity.Property(e => e.CreateMan)
  5905. .HasColumnType("varchar(50)")
  5906. .HasCharSet("utf8")
  5907. .HasCollation("utf8_general_ci");
  5908. entity.Property(e => e.DirectFlag)
  5909. .HasColumnType("bit(1)")
  5910. .HasDefaultValueSql("b'0'");
  5911. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  5912. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  5913. entity.Property(e => e.MerHelpFlag)
  5914. .HasColumnType("bit(1)")
  5915. .HasDefaultValueSql("b'0'");
  5916. entity.Property(e => e.MerNo)
  5917. .HasColumnType("varchar(32)")
  5918. .HasCharSet("utf8")
  5919. .HasCollation("utf8_general_ci");
  5920. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5921. entity.Property(e => e.ParentNav)
  5922. .HasColumnType("varchar(1000)")
  5923. .HasCharSet("utf8")
  5924. .HasCollation("utf8_general_ci");
  5925. entity.Property(e => e.ProfitAmount).HasColumnType("decimal(18,2)");
  5926. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  5927. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  5928. entity.Property(e => e.Remark)
  5929. .HasColumnType("varchar(64)")
  5930. .HasCharSet("utf8")
  5931. .HasCollation("utf8_general_ci");
  5932. entity.Property(e => e.SeoDescription)
  5933. .HasColumnType("varchar(500)")
  5934. .HasCharSet("utf8")
  5935. .HasCollation("utf8_general_ci");
  5936. entity.Property(e => e.SeoKeyword)
  5937. .HasColumnType("varchar(200)")
  5938. .HasCharSet("utf8")
  5939. .HasCollation("utf8_general_ci");
  5940. entity.Property(e => e.SeoTitle)
  5941. .HasColumnType("varchar(100)")
  5942. .HasCharSet("utf8")
  5943. .HasCollation("utf8_general_ci");
  5944. entity.Property(e => e.SnNo)
  5945. .HasColumnType("varchar(32)")
  5946. .HasCharSet("utf8")
  5947. .HasCollation("utf8_general_ci");
  5948. entity.Property(e => e.Sort).HasColumnType("int(11)");
  5949. entity.Property(e => e.Status).HasColumnType("int(11)");
  5950. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  5951. entity.Property(e => e.TradeId).HasColumnType("int(11)");
  5952. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  5953. entity.Property(e => e.UpdateMan)
  5954. .HasColumnType("varchar(50)")
  5955. .HasCharSet("utf8")
  5956. .HasCollation("utf8_general_ci");
  5957. entity.Property(e => e.UserId).HasColumnType("int(11)");
  5958. entity.Property(e => e.Version).HasColumnType("int(11)");
  5959. });
  5960. modelBuilder.Entity<ProfitRewardRecord>(entity =>
  5961. {
  5962. entity.Property(e => e.Id).HasColumnType("int(11)");
  5963. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  5964. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  5965. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  5966. entity.Property(e => e.CreateMan)
  5967. .HasColumnType("varchar(50)")
  5968. .HasCharSet("utf8")
  5969. .HasCollation("utf8_general_ci");
  5970. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  5971. entity.Property(e => e.CreditTradeProfit).HasColumnType("decimal(18,2)");
  5972. entity.Property(e => e.DebitCapSingleReward).HasColumnType("decimal(18,2)");
  5973. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  5974. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  5975. entity.Property(e => e.DebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5976. entity.Property(e => e.DebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5977. entity.Property(e => e.DebitTradeCapProfit).HasColumnType("decimal(18,2)");
  5978. entity.Property(e => e.HelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5979. entity.Property(e => e.HelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5980. entity.Property(e => e.HelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5981. entity.Property(e => e.HelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5982. entity.Property(e => e.HelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5983. entity.Property(e => e.HelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5984. entity.Property(e => e.HelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  5985. entity.Property(e => e.HelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5986. entity.Property(e => e.HelpDebitProfitRate).HasColumnType("decimal(18,2)");
  5987. entity.Property(e => e.HelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  5988. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  5989. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  5990. entity.Property(e => e.NonQrCreditTradeProfit).HasColumnType("decimal(18,2)");
  5991. entity.Property(e => e.NonQrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  5992. entity.Property(e => e.NonQrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  5993. entity.Property(e => e.NotHelpCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  5994. entity.Property(e => e.NotHelpCreditProfitRate).HasColumnType("decimal(18,2)");
  5995. entity.Property(e => e.NotHelpCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  5996. entity.Property(e => e.NotHelpCreditTradeAmt).HasColumnType("decimal(18,2)");
  5997. entity.Property(e => e.NotHelpCreditTradeProfit).HasColumnType("decimal(18,2)");
  5998. entity.Property(e => e.NotHelpDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  5999. entity.Property(e => e.NotHelpDebitNonCapTradeAmt).HasColumnType("decimal(18,2)");
  6000. entity.Property(e => e.NotHelpDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6001. entity.Property(e => e.NotHelpDebitProfitRate).HasColumnType("decimal(18,2)");
  6002. entity.Property(e => e.NotHelpDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6003. entity.Property(e => e.OtherCreditTradeAmt).HasColumnType("decimal(18,2)");
  6004. entity.Property(e => e.OtherDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6005. entity.Property(e => e.OtherTradeAmt).HasColumnType("decimal(18,2)");
  6006. entity.Property(e => e.ProfitType).HasColumnType("int(11)");
  6007. entity.Property(e => e.QrCreditAddOrSubRate).HasColumnType("decimal(18,2)");
  6008. entity.Property(e => e.QrCreditProfitRate).HasColumnType("decimal(18,2)");
  6009. entity.Property(e => e.QrCreditProfitStandardRate).HasColumnType("decimal(18,2)");
  6010. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6011. entity.Property(e => e.QrCreditTradeProfit).HasColumnType("decimal(18,2)");
  6012. entity.Property(e => e.QrDebitAddOrSubRate).HasColumnType("decimal(18,2)");
  6013. entity.Property(e => e.QrDebitNonTradeCapProfit).HasColumnType("decimal(18,2)");
  6014. entity.Property(e => e.QrDebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  6015. entity.Property(e => e.QrDebitProfitRate).HasColumnType("decimal(18,2)");
  6016. entity.Property(e => e.QrDebitProfitStandardRate).HasColumnType("decimal(18,2)");
  6017. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6018. entity.Property(e => e.RecordNo)
  6019. .HasColumnType("varchar(32)")
  6020. .HasCharSet("utf8")
  6021. .HasCollation("utf8_general_ci");
  6022. entity.Property(e => e.Remark)
  6023. .HasColumnType("varchar(64)")
  6024. .HasCharSet("utf8")
  6025. .HasCollation("utf8_general_ci");
  6026. entity.Property(e => e.SeoDescription)
  6027. .HasColumnType("varchar(500)")
  6028. .HasCharSet("utf8")
  6029. .HasCollation("utf8_general_ci");
  6030. entity.Property(e => e.SeoKeyword)
  6031. .HasColumnType("varchar(200)")
  6032. .HasCharSet("utf8")
  6033. .HasCollation("utf8_general_ci");
  6034. entity.Property(e => e.SeoTitle)
  6035. .HasColumnType("varchar(100)")
  6036. .HasCharSet("utf8")
  6037. .HasCollation("utf8_general_ci");
  6038. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6039. entity.Property(e => e.Status).HasColumnType("int(11)");
  6040. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  6041. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  6042. entity.Property(e => e.TradeMonth)
  6043. .HasColumnType("varchar(6)")
  6044. .HasCharSet("utf8")
  6045. .HasCollation("utf8_general_ci");
  6046. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  6047. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6048. entity.Property(e => e.UpdateMan)
  6049. .HasColumnType("varchar(50)")
  6050. .HasCharSet("utf8")
  6051. .HasCollation("utf8_general_ci");
  6052. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6053. entity.Property(e => e.Version).HasColumnType("int(11)");
  6054. });
  6055. modelBuilder.Entity<ProfitSubsidyDetail>(entity =>
  6056. {
  6057. entity.Property(e => e.Id).HasColumnType("int(11)");
  6058. entity.Property(e => e.BelongUserId).HasColumnType("int(11)");
  6059. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6060. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6061. entity.Property(e => e.CreateMan)
  6062. .HasColumnType("varchar(50)")
  6063. .HasCharSet("utf8")
  6064. .HasCollation("utf8_general_ci");
  6065. entity.Property(e => e.CreditProfitRate).HasColumnType("decimal(18,2)");
  6066. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  6067. entity.Property(e => e.MerHelpFlag)
  6068. .HasColumnType("bit(1)")
  6069. .HasDefaultValueSql("b'0'");
  6070. entity.Property(e => e.MerNo)
  6071. .HasColumnType("varchar(32)")
  6072. .HasCharSet("utf8")
  6073. .HasCollation("utf8_general_ci");
  6074. entity.Property(e => e.MerRegTime).HasColumnType("datetime");
  6075. entity.Property(e => e.MerStandardDate).HasColumnType("datetime");
  6076. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  6077. entity.Property(e => e.NonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6078. entity.Property(e => e.ProductName)
  6079. .HasColumnType("varchar(16)")
  6080. .HasCharSet("utf8")
  6081. .HasCollation("utf8_general_ci");
  6082. entity.Property(e => e.QrCreditTradeAmt).HasColumnType("decimal(18,2)");
  6083. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6084. entity.Property(e => e.RecordNo)
  6085. .HasColumnType("varchar(32)")
  6086. .HasCharSet("utf8")
  6087. .HasCollation("utf8_general_ci");
  6088. entity.Property(e => e.Remark)
  6089. .HasColumnType("varchar(64)")
  6090. .HasCharSet("utf8")
  6091. .HasCollation("utf8_general_ci");
  6092. entity.Property(e => e.SeoDescription)
  6093. .HasColumnType("varchar(500)")
  6094. .HasCharSet("utf8")
  6095. .HasCollation("utf8_general_ci");
  6096. entity.Property(e => e.SeoKeyword)
  6097. .HasColumnType("varchar(200)")
  6098. .HasCharSet("utf8")
  6099. .HasCollation("utf8_general_ci");
  6100. entity.Property(e => e.SeoTitle)
  6101. .HasColumnType("varchar(100)")
  6102. .HasCharSet("utf8")
  6103. .HasCollation("utf8_general_ci");
  6104. entity.Property(e => e.SnNo)
  6105. .HasColumnType("varchar(32)")
  6106. .HasCharSet("utf8")
  6107. .HasCollation("utf8_general_ci");
  6108. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6109. entity.Property(e => e.Status).HasColumnType("int(11)");
  6110. entity.Property(e => e.SubsidyProfit).HasColumnType("decimal(18,2)");
  6111. entity.Property(e => e.SubsidyProfitRate).HasColumnType("decimal(18,2)");
  6112. entity.Property(e => e.SubsidyType).HasColumnType("int(11)");
  6113. entity.Property(e => e.SubsidyUserId).HasColumnType("int(11)");
  6114. entity.Property(e => e.TradeMonth)
  6115. .HasColumnType("varchar(6)")
  6116. .HasCharSet("utf8")
  6117. .HasCollation("utf8_general_ci");
  6118. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6119. entity.Property(e => e.UpdateMan)
  6120. .HasColumnType("varchar(50)")
  6121. .HasCharSet("utf8")
  6122. .HasCollation("utf8_general_ci");
  6123. entity.Property(e => e.Version).HasColumnType("int(11)");
  6124. });
  6125. modelBuilder.Entity<PublicAccountSet>(entity =>
  6126. {
  6127. entity.Property(e => e.Id).HasColumnType("int(11)");
  6128. entity.Property(e => e.AlipayAppId)
  6129. .HasColumnType("varchar(50)")
  6130. .HasCharSet("utf8")
  6131. .HasCollation("utf8_general_ci");
  6132. entity.Property(e => e.AlipayPartnerId)
  6133. .HasColumnType("varchar(50)")
  6134. .HasCharSet("utf8")
  6135. .HasCollation("utf8_general_ci");
  6136. entity.Property(e => e.AlipayPrivateKey)
  6137. .HasColumnType("mediumtext")
  6138. .HasCharSet("utf8")
  6139. .HasCollation("utf8_general_ci");
  6140. entity.Property(e => e.AlipayPublicKey)
  6141. .HasColumnType("mediumtext")
  6142. .HasCharSet("utf8")
  6143. .HasCollation("utf8_general_ci");
  6144. entity.Property(e => e.AliyunAccessKeyId)
  6145. .HasColumnType("varchar(50)")
  6146. .HasCharSet("utf8")
  6147. .HasCollation("utf8_general_ci");
  6148. entity.Property(e => e.AliyunAccessKeySecret)
  6149. .HasColumnType("varchar(50)")
  6150. .HasCharSet("utf8")
  6151. .HasCollation("utf8_general_ci");
  6152. entity.Property(e => e.AliyunAndroidActivity)
  6153. .HasColumnType("varchar(100)")
  6154. .HasCharSet("utf8")
  6155. .HasCollation("utf8_general_ci");
  6156. entity.Property(e => e.AliyunAndroidNotifyTitle)
  6157. .HasColumnType("varchar(20)")
  6158. .HasCharSet("utf8")
  6159. .HasCollation("utf8_general_ci");
  6160. entity.Property(e => e.AliyunPushAndroidAppId)
  6161. .HasColumnType("varchar(50)")
  6162. .HasCharSet("utf8")
  6163. .HasCollation("utf8_general_ci");
  6164. entity.Property(e => e.AliyunPushAndroidAppSecret)
  6165. .HasColumnType("varchar(50)")
  6166. .HasCharSet("utf8")
  6167. .HasCollation("utf8_general_ci");
  6168. entity.Property(e => e.AliyunPushIosAppId)
  6169. .HasColumnType("varchar(500)")
  6170. .HasCharSet("utf8")
  6171. .HasCollation("utf8_general_ci");
  6172. entity.Property(e => e.AliyunPushIosAppSecret)
  6173. .HasColumnType("varchar(50)")
  6174. .HasCharSet("utf8")
  6175. .HasCollation("utf8_general_ci");
  6176. entity.Property(e => e.AliyunRegionId)
  6177. .HasColumnType("varchar(30)")
  6178. .HasCharSet("utf8")
  6179. .HasCollation("utf8_general_ci");
  6180. entity.Property(e => e.ErpApiUrl)
  6181. .HasColumnType("varchar(200)")
  6182. .HasCharSet("utf8")
  6183. .HasCollation("utf8_general_ci");
  6184. entity.Property(e => e.ErpAppCode)
  6185. .HasColumnType("varchar(100)")
  6186. .HasCharSet("utf8")
  6187. .HasCollation("utf8_general_ci");
  6188. entity.Property(e => e.MeiQiaAppKey)
  6189. .HasColumnType("varchar(50)")
  6190. .HasCharSet("utf8")
  6191. .HasCollation("utf8_general_ci");
  6192. entity.Property(e => e.MobAppKey)
  6193. .HasColumnType("varchar(50)")
  6194. .HasCharSet("utf8")
  6195. .HasCollation("utf8_general_ci");
  6196. entity.Property(e => e.MobAppSecret)
  6197. .HasColumnType("varchar(50)")
  6198. .HasCharSet("utf8")
  6199. .HasCollation("utf8_general_ci");
  6200. entity.Property(e => e.QqAndroidAppId)
  6201. .HasColumnType("varchar(50)")
  6202. .HasCharSet("utf8")
  6203. .HasCollation("utf8_general_ci");
  6204. entity.Property(e => e.QqAndroidAppKey)
  6205. .HasColumnType("varchar(50)")
  6206. .HasCharSet("utf8")
  6207. .HasCollation("utf8_general_ci");
  6208. entity.Property(e => e.QqIosAppId)
  6209. .HasColumnType("varchar(50)")
  6210. .HasCharSet("utf8")
  6211. .HasCollation("utf8_general_ci");
  6212. entity.Property(e => e.QqIosAppKey)
  6213. .HasColumnType("varchar(50)")
  6214. .HasCharSet("utf8")
  6215. .HasCollation("utf8_general_ci");
  6216. entity.Property(e => e.ServerIp)
  6217. .HasColumnType("varchar(15)")
  6218. .HasCharSet("utf8")
  6219. .HasCollation("utf8_general_ci");
  6220. entity.Property(e => e.SmsApiDefaultTemplate)
  6221. .HasColumnType("varchar(200)")
  6222. .HasCharSet("utf8")
  6223. .HasCollation("utf8_general_ci");
  6224. entity.Property(e => e.SmsApiPwd)
  6225. .HasColumnType("varchar(50)")
  6226. .HasCharSet("utf8")
  6227. .HasCollation("utf8_general_ci");
  6228. entity.Property(e => e.SmsApiSign)
  6229. .HasColumnType("varchar(10)")
  6230. .HasCharSet("utf8")
  6231. .HasCollation("utf8_general_ci");
  6232. entity.Property(e => e.SmsApiUserId)
  6233. .HasColumnType("varchar(50)")
  6234. .HasCharSet("utf8")
  6235. .HasCollation("utf8_general_ci");
  6236. entity.Property(e => e.WeChatAppId)
  6237. .HasColumnType("varchar(50)")
  6238. .HasCharSet("utf8")
  6239. .HasCollation("utf8_general_ci");
  6240. entity.Property(e => e.WeChatAppSecret)
  6241. .HasColumnType("varchar(50)")
  6242. .HasCharSet("utf8")
  6243. .HasCollation("utf8_general_ci");
  6244. entity.Property(e => e.WeChatMchId)
  6245. .HasColumnType("varchar(20)")
  6246. .HasCharSet("utf8")
  6247. .HasCollation("utf8_general_ci");
  6248. entity.Property(e => e.WeChatMiniAppId)
  6249. .HasColumnType("varchar(50)")
  6250. .HasCharSet("utf8")
  6251. .HasCollation("utf8_general_ci");
  6252. entity.Property(e => e.WeChatMiniAppSecret)
  6253. .HasColumnType("varchar(50)")
  6254. .HasCharSet("utf8")
  6255. .HasCollation("utf8_general_ci");
  6256. entity.Property(e => e.WeChatOpenAppId)
  6257. .HasColumnType("varchar(50)")
  6258. .HasCharSet("utf8")
  6259. .HasCollation("utf8_general_ci");
  6260. entity.Property(e => e.WeChatOpenAppSecret)
  6261. .HasColumnType("varchar(50)")
  6262. .HasCharSet("utf8")
  6263. .HasCollation("utf8_general_ci");
  6264. entity.Property(e => e.WeChatPayKey)
  6265. .HasColumnType("varchar(50)")
  6266. .HasCharSet("utf8")
  6267. .HasCollation("utf8_general_ci");
  6268. });
  6269. modelBuilder.Entity<PullNewAct>(entity =>
  6270. {
  6271. entity.Property(e => e.Id).HasColumnType("int(11)");
  6272. entity.Property(e => e.ActEffectEndDate).HasColumnType("datetime");
  6273. entity.Property(e => e.ActEffectStartDate).HasColumnType("datetime");
  6274. entity.Property(e => e.ActStdCond)
  6275. .HasColumnType("varchar(32)")
  6276. .HasCharSet("utf8")
  6277. .HasCollation("utf8_general_ci");
  6278. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6279. entity.Property(e => e.CreateMan)
  6280. .HasColumnType("varchar(50)")
  6281. .HasCharSet("utf8")
  6282. .HasCollation("utf8_general_ci");
  6283. entity.Property(e => e.ProductName)
  6284. .HasColumnType("varchar(32)")
  6285. .HasCharSet("utf8")
  6286. .HasCollation("utf8_general_ci");
  6287. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  6288. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6289. entity.Property(e => e.Remark)
  6290. .HasColumnType("varchar(128)")
  6291. .HasCharSet("utf8")
  6292. .HasCollation("utf8_general_ci");
  6293. entity.Property(e => e.SeoDescription)
  6294. .HasColumnType("varchar(500)")
  6295. .HasCharSet("utf8")
  6296. .HasCollation("utf8_general_ci");
  6297. entity.Property(e => e.SeoKeyword)
  6298. .HasColumnType("varchar(200)")
  6299. .HasCharSet("utf8")
  6300. .HasCollation("utf8_general_ci");
  6301. entity.Property(e => e.SeoTitle)
  6302. .HasColumnType("varchar(100)")
  6303. .HasCharSet("utf8")
  6304. .HasCollation("utf8_general_ci");
  6305. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  6306. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6307. entity.Property(e => e.Status).HasColumnType("int(11)");
  6308. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6309. entity.Property(e => e.UpdateMan)
  6310. .HasColumnType("varchar(50)")
  6311. .HasCharSet("utf8")
  6312. .HasCollation("utf8_general_ci");
  6313. entity.Property(e => e.Version).HasColumnType("int(11)");
  6314. });
  6315. modelBuilder.Entity<PullNewDetail>(entity =>
  6316. {
  6317. entity.Property(e => e.Id).HasColumnType("int(11)");
  6318. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6319. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6320. entity.Property(e => e.CreateMan)
  6321. .HasColumnType("varchar(50)")
  6322. .HasCharSet("utf8")
  6323. .HasCollation("utf8_general_ci");
  6324. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6325. entity.Property(e => e.RecMallBrandId).HasColumnType("int(11)");
  6326. entity.Property(e => e.RecMallOrder)
  6327. .HasColumnType("varchar(32)")
  6328. .HasCharSet("utf8")
  6329. .HasCollation("utf8_general_ci");
  6330. entity.Property(e => e.RecMallOrderTime).HasColumnType("datetime");
  6331. entity.Property(e => e.RecMallProductName)
  6332. .HasColumnType("varchar(32)")
  6333. .HasCharSet("utf8")
  6334. .HasCollation("utf8_general_ci");
  6335. entity.Property(e => e.RecMallProductNum).HasColumnType("int(11)");
  6336. entity.Property(e => e.RecMallSendTime).HasColumnType("datetime");
  6337. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  6338. entity.Property(e => e.RecUserType).HasColumnType("int(11)");
  6339. entity.Property(e => e.RegDate).HasColumnType("datetime");
  6340. entity.Property(e => e.Remark)
  6341. .HasColumnType("varchar(64)")
  6342. .HasCharSet("utf8")
  6343. .HasCollation("utf8_general_ci");
  6344. entity.Property(e => e.RewardStatus).HasColumnType("int(11)");
  6345. entity.Property(e => e.SeoDescription)
  6346. .HasColumnType("varchar(500)")
  6347. .HasCharSet("utf8")
  6348. .HasCollation("utf8_general_ci");
  6349. entity.Property(e => e.SeoKeyword)
  6350. .HasColumnType("varchar(200)")
  6351. .HasCharSet("utf8")
  6352. .HasCollation("utf8_general_ci");
  6353. entity.Property(e => e.SeoTitle)
  6354. .HasColumnType("varchar(100)")
  6355. .HasCharSet("utf8")
  6356. .HasCollation("utf8_general_ci");
  6357. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6358. entity.Property(e => e.StatDate)
  6359. .HasColumnType("varchar(8)")
  6360. .HasCharSet("utf8")
  6361. .HasCollation("utf8_general_ci");
  6362. entity.Property(e => e.StatMonth)
  6363. .HasColumnType("varchar(6)")
  6364. .HasCharSet("utf8")
  6365. .HasCollation("utf8_general_ci");
  6366. entity.Property(e => e.StatType).HasColumnType("int(11)");
  6367. entity.Property(e => e.Status).HasColumnType("int(11)");
  6368. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6369. entity.Property(e => e.UpdateMan)
  6370. .HasColumnType("varchar(50)")
  6371. .HasCharSet("utf8")
  6372. .HasCollation("utf8_general_ci");
  6373. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6374. entity.Property(e => e.Version).HasColumnType("int(11)");
  6375. });
  6376. modelBuilder.Entity<PullnewSummary>(entity =>
  6377. {
  6378. entity.Property(e => e.Id).HasColumnType("int(11)");
  6379. entity.Property(e => e.BizSnDelayDay).HasColumnType("int(11)");
  6380. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6381. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6382. entity.Property(e => e.CreateMan)
  6383. .HasColumnType("varchar(50)")
  6384. .HasCharSet("utf8")
  6385. .HasCollation("utf8_general_ci");
  6386. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6387. entity.Property(e => e.RecUserAuthNum).HasColumnType("int(11)");
  6388. entity.Property(e => e.RecUserDeliveryStdNum).HasColumnType("int(11)");
  6389. entity.Property(e => e.Remark)
  6390. .HasColumnType("varchar(64)")
  6391. .HasCharSet("utf8")
  6392. .HasCollation("utf8_general_ci");
  6393. entity.Property(e => e.RuleSnDelayDay).HasColumnType("int(11)");
  6394. entity.Property(e => e.SeoDescription)
  6395. .HasColumnType("varchar(500)")
  6396. .HasCharSet("utf8")
  6397. .HasCollation("utf8_general_ci");
  6398. entity.Property(e => e.SeoKeyword)
  6399. .HasColumnType("varchar(200)")
  6400. .HasCharSet("utf8")
  6401. .HasCollation("utf8_general_ci");
  6402. entity.Property(e => e.SeoTitle)
  6403. .HasColumnType("varchar(100)")
  6404. .HasCharSet("utf8")
  6405. .HasCollation("utf8_general_ci");
  6406. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6407. entity.Property(e => e.StatDate)
  6408. .HasColumnType("varchar(8)")
  6409. .HasCharSet("utf8")
  6410. .HasCollation("utf8_general_ci");
  6411. entity.Property(e => e.StatMonth)
  6412. .HasColumnType("varchar(6)")
  6413. .HasCharSet("utf8")
  6414. .HasCollation("utf8_general_ci");
  6415. entity.Property(e => e.Status).HasColumnType("int(11)");
  6416. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6417. entity.Property(e => e.UpdateMan)
  6418. .HasColumnType("varchar(50)")
  6419. .HasCharSet("utf8")
  6420. .HasCollation("utf8_general_ci");
  6421. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6422. entity.Property(e => e.Version).HasColumnType("int(11)");
  6423. });
  6424. modelBuilder.Entity<RightDic>(entity =>
  6425. {
  6426. entity.Property(e => e.Id)
  6427. .HasColumnName("ID")
  6428. .HasColumnType("varchar(50)")
  6429. .HasCharSet("utf8")
  6430. .HasCollation("utf8_general_ci");
  6431. entity.Property(e => e.Icon)
  6432. .HasColumnType("varchar(50)")
  6433. .HasCharSet("utf8")
  6434. .HasCollation("utf8_general_ci");
  6435. entity.Property(e => e.MainDataList)
  6436. .HasColumnType("bit(1)")
  6437. .HasDefaultValueSql("b'0'");
  6438. entity.Property(e => e.MainMenu)
  6439. .HasColumnType("bit(1)")
  6440. .HasDefaultValueSql("b'0'");
  6441. entity.Property(e => e.MainStat)
  6442. .HasColumnType("bit(1)")
  6443. .HasDefaultValueSql("b'0'");
  6444. entity.Property(e => e.Name)
  6445. .HasColumnType("varchar(50)")
  6446. .HasCharSet("utf8")
  6447. .HasCollation("utf8_general_ci");
  6448. entity.Property(e => e.OtherRight)
  6449. .HasColumnType("varchar(500)")
  6450. .HasCharSet("utf8")
  6451. .HasCollation("utf8_general_ci");
  6452. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  6453. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6454. entity.Property(e => e.Url)
  6455. .HasColumnType("varchar(200)")
  6456. .HasCharSet("utf8")
  6457. .HasCollation("utf8_general_ci");
  6458. });
  6459. modelBuilder.Entity<ServiceCenter>(entity =>
  6460. {
  6461. entity.Property(e => e.Id).HasColumnType("int(11)");
  6462. entity.Property(e => e.CategoryId).HasColumnType("int(11)");
  6463. entity.Property(e => e.Content)
  6464. .HasColumnType("longtext")
  6465. .HasCharSet("utf8")
  6466. .HasCollation("utf8_general_ci");
  6467. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6468. entity.Property(e => e.CreateMan)
  6469. .HasColumnType("varchar(50)")
  6470. .HasCharSet("utf8")
  6471. .HasCollation("utf8_general_ci");
  6472. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6473. entity.Property(e => e.SeoDescription)
  6474. .HasColumnType("varchar(500)")
  6475. .HasCharSet("utf8")
  6476. .HasCollation("utf8_general_ci");
  6477. entity.Property(e => e.SeoKeyword)
  6478. .HasColumnType("varchar(200)")
  6479. .HasCharSet("utf8")
  6480. .HasCollation("utf8_general_ci");
  6481. entity.Property(e => e.SeoTitle)
  6482. .HasColumnType("varchar(100)")
  6483. .HasCharSet("utf8")
  6484. .HasCollation("utf8_general_ci");
  6485. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6486. entity.Property(e => e.Status).HasColumnType("int(11)");
  6487. entity.Property(e => e.SubTitle)
  6488. .HasColumnType("varchar(50)")
  6489. .HasCharSet("utf8")
  6490. .HasCollation("utf8_general_ci");
  6491. entity.Property(e => e.Title)
  6492. .HasColumnType("varchar(50)")
  6493. .HasCharSet("utf8")
  6494. .HasCollation("utf8_general_ci");
  6495. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6496. entity.Property(e => e.UpdateMan)
  6497. .HasColumnType("varchar(50)")
  6498. .HasCharSet("utf8")
  6499. .HasCollation("utf8_general_ci");
  6500. entity.Property(e => e.Version).HasColumnType("int(11)");
  6501. });
  6502. modelBuilder.Entity<StoreBalance>(entity =>
  6503. {
  6504. entity.Property(e => e.Id).HasColumnType("int(11)");
  6505. entity.Property(e => e.AfterLaveNum).HasColumnType("int(11)");
  6506. entity.Property(e => e.AfterOutNum).HasColumnType("int(11)");
  6507. entity.Property(e => e.AfterTotalNum).HasColumnType("int(11)");
  6508. entity.Property(e => e.BeforeLaveNum).HasColumnType("int(11)");
  6509. entity.Property(e => e.BeforeOutNum).HasColumnType("int(11)");
  6510. entity.Property(e => e.BeforeTotalNum).HasColumnType("int(11)");
  6511. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6512. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6513. entity.Property(e => e.CreateMan)
  6514. .HasColumnType("varchar(50)")
  6515. .HasCharSet("utf8")
  6516. .HasCollation("utf8_general_ci");
  6517. entity.Property(e => e.OpStoreNum).HasColumnType("int(11)");
  6518. entity.Property(e => e.OpSymbol)
  6519. .HasColumnType("varchar(1)")
  6520. .HasCharSet("utf8")
  6521. .HasCollation("utf8_general_ci");
  6522. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6523. entity.Property(e => e.SeoDescription)
  6524. .HasColumnType("varchar(500)")
  6525. .HasCharSet("utf8")
  6526. .HasCollation("utf8_general_ci");
  6527. entity.Property(e => e.SeoKeyword)
  6528. .HasColumnType("varchar(200)")
  6529. .HasCharSet("utf8")
  6530. .HasCollation("utf8_general_ci");
  6531. entity.Property(e => e.SeoTitle)
  6532. .HasColumnType("varchar(100)")
  6533. .HasCharSet("utf8")
  6534. .HasCollation("utf8_general_ci");
  6535. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6536. entity.Property(e => e.Status).HasColumnType("int(11)");
  6537. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6538. entity.Property(e => e.TransRecordNo)
  6539. .HasColumnType("varchar(32)")
  6540. .HasCharSet("utf8")
  6541. .HasCollation("utf8_general_ci");
  6542. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6543. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6544. entity.Property(e => e.UpdateMan)
  6545. .HasColumnType("varchar(50)")
  6546. .HasCharSet("utf8")
  6547. .HasCollation("utf8_general_ci");
  6548. entity.Property(e => e.Version).HasColumnType("int(11)");
  6549. });
  6550. modelBuilder.Entity<StoreChangeHistory>(entity =>
  6551. {
  6552. entity.Property(e => e.Id).HasColumnType("int(11)");
  6553. entity.Property(e => e.BizBatchNo)
  6554. .HasColumnType("varchar(32)")
  6555. .HasCharSet("utf8")
  6556. .HasCollation("utf8_general_ci");
  6557. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6558. entity.Property(e => e.ChangeRecordNo)
  6559. .HasColumnType("varchar(32)")
  6560. .HasCharSet("utf8")
  6561. .HasCollation("utf8_general_ci");
  6562. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6563. entity.Property(e => e.CreateMan)
  6564. .HasColumnType("varchar(50)")
  6565. .HasCharSet("utf8")
  6566. .HasCollation("utf8_general_ci");
  6567. entity.Property(e => e.DeviceModel)
  6568. .HasColumnType("varchar(32)")
  6569. .HasCharSet("utf8")
  6570. .HasCollation("utf8_general_ci");
  6571. entity.Property(e => e.DeviceType)
  6572. .HasColumnType("varchar(32)")
  6573. .HasCharSet("utf8")
  6574. .HasCollation("utf8_general_ci");
  6575. entity.Property(e => e.DeviceVendor)
  6576. .HasColumnType("varchar(32)")
  6577. .HasCharSet("utf8")
  6578. .HasCollation("utf8_general_ci");
  6579. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6580. entity.Property(e => e.FromRemark)
  6581. .HasColumnType("varchar(64)")
  6582. .HasCharSet("utf8")
  6583. .HasCollation("utf8_general_ci");
  6584. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6585. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6586. entity.Property(e => e.SeoDescription)
  6587. .HasColumnType("varchar(500)")
  6588. .HasCharSet("utf8")
  6589. .HasCollation("utf8_general_ci");
  6590. entity.Property(e => e.SeoKeyword)
  6591. .HasColumnType("varchar(200)")
  6592. .HasCharSet("utf8")
  6593. .HasCollation("utf8_general_ci");
  6594. entity.Property(e => e.SeoTitle)
  6595. .HasColumnType("varchar(100)")
  6596. .HasCharSet("utf8")
  6597. .HasCollation("utf8_general_ci");
  6598. entity.Property(e => e.SnNo)
  6599. .HasColumnType("varchar(32)")
  6600. .HasCharSet("utf8")
  6601. .HasCollation("utf8_general_ci");
  6602. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6603. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6604. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6605. entity.Property(e => e.Status).HasColumnType("int(11)");
  6606. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6607. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6608. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6609. entity.Property(e => e.ToRemark)
  6610. .HasColumnType("varchar(64)")
  6611. .HasCharSet("utf8")
  6612. .HasCollation("utf8_general_ci");
  6613. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6614. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6615. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6616. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6617. entity.Property(e => e.UpdateMan)
  6618. .HasColumnType("varchar(50)")
  6619. .HasCharSet("utf8")
  6620. .HasCollation("utf8_general_ci");
  6621. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6622. entity.Property(e => e.Version).HasColumnType("int(11)");
  6623. });
  6624. modelBuilder.Entity<StoreForCode>(entity =>
  6625. {
  6626. entity.HasKey(e => e.Code)
  6627. .HasName("PRIMARY");
  6628. entity.Property(e => e.Code)
  6629. .HasColumnType("varchar(30)")
  6630. .HasCharSet("utf8")
  6631. .HasCollation("utf8_general_ci");
  6632. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6633. });
  6634. modelBuilder.Entity<StoreForName>(entity =>
  6635. {
  6636. entity.HasKey(e => e.Name)
  6637. .HasName("PRIMARY");
  6638. entity.Property(e => e.Name)
  6639. .HasColumnType("varchar(30)")
  6640. .HasCharSet("utf8")
  6641. .HasCollation("utf8_general_ci");
  6642. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6643. });
  6644. modelBuilder.Entity<StoreHouse>(entity =>
  6645. {
  6646. entity.Property(e => e.Id).HasColumnType("int(11)");
  6647. entity.Property(e => e.Address)
  6648. .HasColumnType("varchar(128)")
  6649. .HasCharSet("utf8")
  6650. .HasCollation("utf8_general_ci");
  6651. entity.Property(e => e.Areas)
  6652. .HasColumnType("varchar(30)")
  6653. .HasCharSet("utf8")
  6654. .HasCollation("utf8_general_ci");
  6655. entity.Property(e => e.BrandId)
  6656. .HasColumnType("varchar(30)")
  6657. .HasCharSet("utf8")
  6658. .HasCollation("utf8_general_ci");
  6659. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6660. entity.Property(e => e.CreateMan)
  6661. .HasColumnType("varchar(50)")
  6662. .HasCharSet("utf8")
  6663. .HasCollation("utf8_general_ci");
  6664. entity.Property(e => e.LaveNum).HasColumnType("int(11)");
  6665. entity.Property(e => e.LimitTopUserId)
  6666. .HasColumnType("varchar(100)")
  6667. .HasCharSet("utf8")
  6668. .HasCollation("utf8_general_ci");
  6669. entity.Property(e => e.ManageMobile)
  6670. .HasColumnType("varchar(11)")
  6671. .HasCharSet("utf8")
  6672. .HasCollation("utf8_general_ci");
  6673. entity.Property(e => e.ManageUserId).HasColumnType("int(11)");
  6674. entity.Property(e => e.ManagerEmail)
  6675. .HasColumnType("varchar(32)")
  6676. .HasCharSet("utf8")
  6677. .HasCollation("utf8_general_ci");
  6678. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  6679. entity.Property(e => e.ParentNav)
  6680. .HasColumnType("longtext")
  6681. .HasCharSet("utf8")
  6682. .HasCollation("utf8_general_ci");
  6683. entity.Property(e => e.ParentStoreId).HasColumnType("int(11)");
  6684. entity.Property(e => e.ProductName)
  6685. .HasColumnType("varchar(32)")
  6686. .HasCharSet("utf8")
  6687. .HasCollation("utf8_general_ci");
  6688. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6689. entity.Property(e => e.Remark)
  6690. .HasColumnType("varchar(128)")
  6691. .HasCharSet("utf8")
  6692. .HasCollation("utf8_general_ci");
  6693. entity.Property(e => e.SeoDescription)
  6694. .HasColumnType("varchar(500)")
  6695. .HasCharSet("utf8")
  6696. .HasCollation("utf8_general_ci");
  6697. entity.Property(e => e.SeoKeyword)
  6698. .HasColumnType("varchar(200)")
  6699. .HasCharSet("utf8")
  6700. .HasCollation("utf8_general_ci");
  6701. entity.Property(e => e.SeoTitle)
  6702. .HasColumnType("varchar(100)")
  6703. .HasCharSet("utf8")
  6704. .HasCollation("utf8_general_ci");
  6705. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6706. entity.Property(e => e.Status).HasColumnType("int(11)");
  6707. entity.Property(e => e.StoreKind).HasColumnType("int(11)");
  6708. entity.Property(e => e.StoreName)
  6709. .HasColumnType("varchar(32)")
  6710. .HasCharSet("utf8")
  6711. .HasCollation("utf8_general_ci");
  6712. entity.Property(e => e.StoreNo)
  6713. .HasColumnType("varchar(16)")
  6714. .HasCharSet("utf8")
  6715. .HasCollation("utf8_general_ci");
  6716. entity.Property(e => e.StoreStatus).HasColumnType("int(11)");
  6717. entity.Property(e => e.StoreType).HasColumnType("int(11)");
  6718. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  6719. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6720. entity.Property(e => e.UpdateMan)
  6721. .HasColumnType("varchar(50)")
  6722. .HasCharSet("utf8")
  6723. .HasCollation("utf8_general_ci");
  6724. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6725. entity.Property(e => e.Version).HasColumnType("int(11)");
  6726. });
  6727. modelBuilder.Entity<StoreMallOrderSummary>(entity =>
  6728. {
  6729. entity.Property(e => e.Id).HasColumnType("int(11)");
  6730. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6731. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6732. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6733. entity.Property(e => e.CreateMan)
  6734. .HasColumnType("varchar(50)")
  6735. .HasCharSet("utf8")
  6736. .HasCollation("utf8_general_ci");
  6737. entity.Property(e => e.OrderAmt).HasColumnType("int(11)");
  6738. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  6739. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6740. entity.Property(e => e.RefundAmt).HasColumnType("decimal(18,2)");
  6741. entity.Property(e => e.RefundOrderNum).HasColumnType("int(11)");
  6742. entity.Property(e => e.Remark)
  6743. .HasColumnType("varchar(64)")
  6744. .HasCharSet("utf8")
  6745. .HasCollation("utf8_general_ci");
  6746. entity.Property(e => e.SeoDescription)
  6747. .HasColumnType("varchar(500)")
  6748. .HasCharSet("utf8")
  6749. .HasCollation("utf8_general_ci");
  6750. entity.Property(e => e.SeoKeyword)
  6751. .HasColumnType("varchar(200)")
  6752. .HasCharSet("utf8")
  6753. .HasCollation("utf8_general_ci");
  6754. entity.Property(e => e.SeoTitle)
  6755. .HasColumnType("varchar(100)")
  6756. .HasCharSet("utf8")
  6757. .HasCollation("utf8_general_ci");
  6758. entity.Property(e => e.SettleAmt).HasColumnType("decimal(18,2)");
  6759. entity.Property(e => e.SettleStatus).HasColumnType("int(11)");
  6760. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6761. entity.Property(e => e.Status).HasColumnType("int(11)");
  6762. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6763. entity.Property(e => e.TradeMonth)
  6764. .HasColumnType("varchar(6)")
  6765. .HasCharSet("utf8")
  6766. .HasCollation("utf8_general_ci");
  6767. entity.Property(e => e.UnitPrice).HasColumnType("decimal(18,2)");
  6768. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6769. entity.Property(e => e.UpdateMan)
  6770. .HasColumnType("varchar(50)")
  6771. .HasCharSet("utf8")
  6772. .HasCollation("utf8_general_ci");
  6773. entity.Property(e => e.Version).HasColumnType("int(11)");
  6774. });
  6775. modelBuilder.Entity<StoreSnActivateSummary>(entity =>
  6776. {
  6777. entity.Property(e => e.Id).HasColumnType("int(11)");
  6778. entity.Property(e => e.ActivateNum).HasColumnType("int(11)");
  6779. entity.Property(e => e.AgentStoreId).HasColumnType("int(11)");
  6780. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6781. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6782. entity.Property(e => e.CreateMan)
  6783. .HasColumnType("varchar(50)")
  6784. .HasCharSet("utf8")
  6785. .HasCollation("utf8_general_ci");
  6786. entity.Property(e => e.EffectActNum).HasColumnType("int(11)");
  6787. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6788. entity.Property(e => e.RejectActNum).HasColumnType("int(11)");
  6789. entity.Property(e => e.Remark)
  6790. .HasColumnType("varchar(64)")
  6791. .HasCharSet("utf8")
  6792. .HasCollation("utf8_general_ci");
  6793. entity.Property(e => e.SeoDescription)
  6794. .HasColumnType("varchar(500)")
  6795. .HasCharSet("utf8")
  6796. .HasCollation("utf8_general_ci");
  6797. entity.Property(e => e.SeoKeyword)
  6798. .HasColumnType("varchar(200)")
  6799. .HasCharSet("utf8")
  6800. .HasCollation("utf8_general_ci");
  6801. entity.Property(e => e.SeoTitle)
  6802. .HasColumnType("varchar(100)")
  6803. .HasCharSet("utf8")
  6804. .HasCollation("utf8_general_ci");
  6805. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6806. entity.Property(e => e.Status).HasColumnType("int(11)");
  6807. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6808. entity.Property(e => e.TradeDate)
  6809. .HasColumnType("varchar(8)")
  6810. .HasCharSet("utf8")
  6811. .HasCollation("utf8_general_ci");
  6812. entity.Property(e => e.TradeMonth)
  6813. .HasColumnType("varchar(6)")
  6814. .HasCharSet("utf8")
  6815. .HasCollation("utf8_general_ci");
  6816. entity.Property(e => e.TransferActNum).HasColumnType("int(11)");
  6817. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6818. entity.Property(e => e.UpdateMan)
  6819. .HasColumnType("varchar(50)")
  6820. .HasCharSet("utf8")
  6821. .HasCollation("utf8_general_ci");
  6822. entity.Property(e => e.UserApplyNum).HasColumnType("int(11)");
  6823. entity.Property(e => e.Version).HasColumnType("int(11)");
  6824. });
  6825. modelBuilder.Entity<StoreStockChange>(entity =>
  6826. {
  6827. entity.Property(e => e.Id).HasColumnType("int(11)");
  6828. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  6829. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  6830. entity.Property(e => e.BindMerchant).HasColumnType("int(11)");
  6831. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  6832. entity.Property(e => e.BizBatchNo)
  6833. .HasColumnType("varchar(32)")
  6834. .HasCharSet("utf8")
  6835. .HasCollation("utf8_general_ci");
  6836. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6837. entity.Property(e => e.BrandType)
  6838. .HasColumnType("varchar(10)")
  6839. .HasCharSet("utf8")
  6840. .HasCollation("utf8_general_ci");
  6841. entity.Property(e => e.ChangeNo)
  6842. .HasColumnType("varchar(32)")
  6843. .HasCharSet("utf8")
  6844. .HasCollation("utf8_general_ci");
  6845. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6846. entity.Property(e => e.CreateMan)
  6847. .HasColumnType("varchar(50)")
  6848. .HasCharSet("utf8")
  6849. .HasCollation("utf8_general_ci");
  6850. entity.Property(e => e.DeviceModel)
  6851. .HasColumnType("varchar(32)")
  6852. .HasCharSet("utf8")
  6853. .HasCollation("utf8_general_ci");
  6854. entity.Property(e => e.DeviceType)
  6855. .HasColumnType("varchar(32)")
  6856. .HasCharSet("utf8")
  6857. .HasCollation("utf8_general_ci");
  6858. entity.Property(e => e.DeviceVendor)
  6859. .HasColumnType("varchar(32)")
  6860. .HasCharSet("utf8")
  6861. .HasCollation("utf8_general_ci");
  6862. entity.Property(e => e.ExpressNo)
  6863. .HasColumnType("varchar(32)")
  6864. .HasCharSet("utf8")
  6865. .HasCollation("utf8_general_ci");
  6866. entity.Property(e => e.FromDate).HasColumnType("datetime");
  6867. entity.Property(e => e.FromRemark)
  6868. .HasColumnType("varchar(64)")
  6869. .HasCharSet("utf8")
  6870. .HasCollation("utf8_general_ci");
  6871. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  6872. entity.Property(e => e.ProductName)
  6873. .HasColumnType("varchar(32)")
  6874. .HasCharSet("utf8")
  6875. .HasCollation("utf8_general_ci");
  6876. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6877. entity.Property(e => e.SeoDescription)
  6878. .HasColumnType("varchar(500)")
  6879. .HasCharSet("utf8")
  6880. .HasCollation("utf8_general_ci");
  6881. entity.Property(e => e.SeoKeyword)
  6882. .HasColumnType("varchar(200)")
  6883. .HasCharSet("utf8")
  6884. .HasCollation("utf8_general_ci");
  6885. entity.Property(e => e.SeoTitle)
  6886. .HasColumnType("varchar(100)")
  6887. .HasCharSet("utf8")
  6888. .HasCollation("utf8_general_ci");
  6889. entity.Property(e => e.SnNo)
  6890. .HasColumnType("varchar(32)")
  6891. .HasCharSet("utf8")
  6892. .HasCollation("utf8_general_ci");
  6893. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  6894. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6895. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6896. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  6897. entity.Property(e => e.Status).HasColumnType("int(11)");
  6898. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  6899. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  6900. entity.Property(e => e.ToDate).HasColumnType("datetime");
  6901. entity.Property(e => e.ToRemark)
  6902. .HasColumnType("varchar(64)")
  6903. .HasCharSet("utf8")
  6904. .HasCollation("utf8_general_ci");
  6905. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  6906. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  6907. entity.Property(e => e.TransType).HasColumnType("int(11)");
  6908. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6909. entity.Property(e => e.UpdateMan)
  6910. .HasColumnType("varchar(50)")
  6911. .HasCharSet("utf8")
  6912. .HasCollation("utf8_general_ci");
  6913. entity.Property(e => e.Version).HasColumnType("int(11)");
  6914. });
  6915. modelBuilder.Entity<StoreSwapSn>(entity =>
  6916. {
  6917. entity.Property(e => e.Id).HasColumnType("int(11)");
  6918. entity.Property(e => e.ActType).HasColumnType("int(11)");
  6919. entity.Property(e => e.ActTypeDesc)
  6920. .HasColumnType("varchar(64)")
  6921. .HasCharSet("utf8")
  6922. .HasCollation("utf8_general_ci");
  6923. entity.Property(e => e.BizStatus).HasColumnType("int(11)");
  6924. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  6925. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6926. entity.Property(e => e.CreateMan)
  6927. .HasColumnType("varchar(50)")
  6928. .HasCharSet("utf8")
  6929. .HasCollation("utf8_general_ci");
  6930. entity.Property(e => e.PosType)
  6931. .HasColumnType("varchar(32)")
  6932. .HasCharSet("utf8")
  6933. .HasCollation("utf8_general_ci");
  6934. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  6935. entity.Property(e => e.Remark)
  6936. .HasColumnType("varchar(128)")
  6937. .HasCharSet("utf8")
  6938. .HasCollation("utf8_general_ci");
  6939. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  6940. entity.Property(e => e.SeoDescription)
  6941. .HasColumnType("varchar(500)")
  6942. .HasCharSet("utf8")
  6943. .HasCollation("utf8_general_ci");
  6944. entity.Property(e => e.SeoKeyword)
  6945. .HasColumnType("varchar(200)")
  6946. .HasCharSet("utf8")
  6947. .HasCollation("utf8_general_ci");
  6948. entity.Property(e => e.SeoTitle)
  6949. .HasColumnType("varchar(100)")
  6950. .HasCharSet("utf8")
  6951. .HasCollation("utf8_general_ci");
  6952. entity.Property(e => e.SnNo)
  6953. .HasColumnType("varchar(32)")
  6954. .HasCharSet("utf8")
  6955. .HasCollation("utf8_general_ci");
  6956. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  6957. entity.Property(e => e.SnType).HasColumnType("int(11)");
  6958. entity.Property(e => e.Sort).HasColumnType("int(11)");
  6959. entity.Property(e => e.StandardDate).HasColumnType("datetime");
  6960. entity.Property(e => e.Status).HasColumnType("int(11)");
  6961. entity.Property(e => e.SwapApplyDate).HasColumnType("datetime");
  6962. entity.Property(e => e.SwapApplyOrderNo)
  6963. .HasColumnType("varchar(32)")
  6964. .HasCharSet("utf8")
  6965. .HasCollation("utf8_general_ci");
  6966. entity.Property(e => e.SwapExtProductTypes)
  6967. .HasColumnType("varchar(16)")
  6968. .HasCharSet("utf8")
  6969. .HasCollation("utf8_general_ci");
  6970. entity.Property(e => e.SwapSnNo)
  6971. .HasColumnType("varchar(32)")
  6972. .HasCharSet("utf8")
  6973. .HasCollation("utf8_general_ci");
  6974. entity.Property(e => e.SwapStatus).HasColumnType("int(11)");
  6975. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  6976. entity.Property(e => e.UpdateMan)
  6977. .HasColumnType("varchar(50)")
  6978. .HasCharSet("utf8")
  6979. .HasCollation("utf8_general_ci");
  6980. entity.Property(e => e.UserId).HasColumnType("int(11)");
  6981. entity.Property(e => e.Version).HasColumnType("int(11)");
  6982. });
  6983. modelBuilder.Entity<SysAdmin>(entity =>
  6984. {
  6985. entity.Property(e => e.Id).HasColumnType("int(11)");
  6986. entity.Property(e => e.AdminName)
  6987. .HasColumnType("varchar(50)")
  6988. .HasCharSet("utf8")
  6989. .HasCollation("utf8_general_ci");
  6990. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  6991. entity.Property(e => e.CreateMan)
  6992. .HasColumnType("varchar(50)")
  6993. .HasCharSet("utf8")
  6994. .HasCollation("utf8_general_ci");
  6995. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  6996. entity.Property(e => e.Password)
  6997. .HasColumnType("varchar(32)")
  6998. .HasCharSet("utf8")
  6999. .HasCollation("utf8_general_ci");
  7000. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7001. entity.Property(e => e.RealName)
  7002. .HasColumnType("varchar(50)")
  7003. .HasCharSet("utf8")
  7004. .HasCollation("utf8_general_ci");
  7005. entity.Property(e => e.Role)
  7006. .HasColumnType("varchar(30)")
  7007. .HasCharSet("utf8")
  7008. .HasCollation("utf8_general_ci");
  7009. entity.Property(e => e.SeoDescription)
  7010. .HasColumnType("varchar(500)")
  7011. .HasCharSet("utf8")
  7012. .HasCollation("utf8_general_ci");
  7013. entity.Property(e => e.SeoKeyword)
  7014. .HasColumnType("varchar(200)")
  7015. .HasCharSet("utf8")
  7016. .HasCollation("utf8_general_ci");
  7017. entity.Property(e => e.SeoTitle)
  7018. .HasColumnType("varchar(100)")
  7019. .HasCharSet("utf8")
  7020. .HasCollation("utf8_general_ci");
  7021. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7022. entity.Property(e => e.Status).HasColumnType("int(11)");
  7023. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7024. entity.Property(e => e.UpdateMan)
  7025. .HasColumnType("varchar(50)")
  7026. .HasCharSet("utf8")
  7027. .HasCollation("utf8_general_ci");
  7028. entity.Property(e => e.Version).HasColumnType("int(11)");
  7029. });
  7030. modelBuilder.Entity<SysAdminRole>(entity =>
  7031. {
  7032. entity.Property(e => e.Id).HasColumnType("int(11)");
  7033. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7034. entity.Property(e => e.CreateMan)
  7035. .HasColumnType("varchar(50)")
  7036. .HasCharSet("utf8")
  7037. .HasCollation("utf8_general_ci");
  7038. entity.Property(e => e.Details)
  7039. .HasColumnType("longtext")
  7040. .HasCharSet("utf8")
  7041. .HasCollation("utf8_general_ci");
  7042. entity.Property(e => e.Name)
  7043. .HasColumnType("varchar(50)")
  7044. .HasCharSet("utf8")
  7045. .HasCollation("utf8_general_ci");
  7046. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7047. entity.Property(e => e.RightInfo)
  7048. .HasColumnType("longtext")
  7049. .HasCharSet("utf8")
  7050. .HasCollation("utf8_general_ci");
  7051. entity.Property(e => e.SeoDescription)
  7052. .HasColumnType("varchar(500)")
  7053. .HasCharSet("utf8")
  7054. .HasCollation("utf8_general_ci");
  7055. entity.Property(e => e.SeoKeyword)
  7056. .HasColumnType("varchar(200)")
  7057. .HasCharSet("utf8")
  7058. .HasCollation("utf8_general_ci");
  7059. entity.Property(e => e.SeoTitle)
  7060. .HasColumnType("varchar(100)")
  7061. .HasCharSet("utf8")
  7062. .HasCollation("utf8_general_ci");
  7063. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7064. entity.Property(e => e.Status).HasColumnType("int(11)");
  7065. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7066. entity.Property(e => e.UpdateMan)
  7067. .HasColumnType("varchar(50)")
  7068. .HasCharSet("utf8")
  7069. .HasCollation("utf8_general_ci");
  7070. entity.Property(e => e.Version).HasColumnType("int(11)");
  7071. });
  7072. modelBuilder.Entity<SysLog>(entity =>
  7073. {
  7074. entity.Property(e => e.Id).HasColumnType("int(11)");
  7075. entity.Property(e => e.Contents)
  7076. .HasColumnType("varchar(200)")
  7077. .HasCharSet("utf8")
  7078. .HasCollation("utf8_general_ci");
  7079. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7080. entity.Property(e => e.CreateMan)
  7081. .HasColumnType("varchar(50)")
  7082. .HasCharSet("utf8")
  7083. .HasCollation("utf8_general_ci");
  7084. });
  7085. modelBuilder.Entity<SysRechargeRecord>(entity =>
  7086. {
  7087. entity.Property(e => e.Id).HasColumnType("int(11)");
  7088. entity.Property(e => e.Amount).HasColumnType("decimal(18,2)");
  7089. entity.Property(e => e.BatchCode)
  7090. .HasColumnType("varchar(32)")
  7091. .HasCharSet("utf8")
  7092. .HasCollation("utf8_general_ci");
  7093. entity.Property(e => e.BizTime).HasColumnType("datetime");
  7094. entity.Property(e => e.BizType).HasColumnType("int(11)");
  7095. entity.Property(e => e.ClientIp)
  7096. .HasColumnType("varchar(15)")
  7097. .HasCharSet("utf8")
  7098. .HasCollation("utf8_general_ci");
  7099. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7100. entity.Property(e => e.CreateMan)
  7101. .HasColumnType("varchar(50)")
  7102. .HasCharSet("utf8")
  7103. .HasCollation("utf8_general_ci");
  7104. entity.Property(e => e.PartnerTradeNo)
  7105. .HasColumnType("varchar(32)")
  7106. .HasCharSet("utf8")
  7107. .HasCollation("utf8_general_ci");
  7108. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7109. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7110. entity.Property(e => e.RechargeRecNo)
  7111. .HasColumnType("varchar(32)")
  7112. .HasCharSet("utf8")
  7113. .HasCollation("utf8_general_ci");
  7114. entity.Property(e => e.SeoDescription)
  7115. .HasColumnType("varchar(500)")
  7116. .HasCharSet("utf8")
  7117. .HasCollation("utf8_general_ci");
  7118. entity.Property(e => e.SeoKeyword)
  7119. .HasColumnType("varchar(200)")
  7120. .HasCharSet("utf8")
  7121. .HasCollation("utf8_general_ci");
  7122. entity.Property(e => e.SeoTitle)
  7123. .HasColumnType("varchar(100)")
  7124. .HasCharSet("utf8")
  7125. .HasCollation("utf8_general_ci");
  7126. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7127. entity.Property(e => e.Status).HasColumnType("int(11)");
  7128. entity.Property(e => e.SyncStatus).HasColumnType("int(11)");
  7129. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7130. entity.Property(e => e.UpdateMan)
  7131. .HasColumnType("varchar(50)")
  7132. .HasCharSet("utf8")
  7133. .HasCollation("utf8_general_ci");
  7134. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7135. entity.Property(e => e.Version).HasColumnType("int(11)");
  7136. });
  7137. modelBuilder.Entity<SystemSet>(entity =>
  7138. {
  7139. entity.Property(e => e.Id).HasColumnType("int(11)");
  7140. entity.Property(e => e.Address)
  7141. .HasColumnType("varchar(100)")
  7142. .HasCharSet("utf8")
  7143. .HasCollation("utf8_general_ci");
  7144. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7145. entity.Property(e => e.CreateMan)
  7146. .HasColumnType("varchar(50)")
  7147. .HasCharSet("utf8")
  7148. .HasCollation("utf8_general_ci");
  7149. entity.Property(e => e.IndexDescription)
  7150. .HasColumnType("longtext")
  7151. .HasCharSet("utf8")
  7152. .HasCollation("utf8_general_ci");
  7153. entity.Property(e => e.IndexKeyword)
  7154. .HasColumnType("varchar(200)")
  7155. .HasCharSet("utf8")
  7156. .HasCollation("utf8_general_ci");
  7157. entity.Property(e => e.Logo)
  7158. .HasColumnType("varchar(200)")
  7159. .HasCharSet("utf8")
  7160. .HasCollation("utf8_general_ci");
  7161. entity.Property(e => e.Phone)
  7162. .HasColumnType("varchar(100)")
  7163. .HasCharSet("utf8")
  7164. .HasCollation("utf8_general_ci");
  7165. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7166. entity.Property(e => e.RightInfo)
  7167. .HasColumnType("longtext")
  7168. .HasCharSet("utf8")
  7169. .HasCollation("utf8_general_ci");
  7170. entity.Property(e => e.SeoDescription)
  7171. .HasColumnType("varchar(500)")
  7172. .HasCharSet("utf8")
  7173. .HasCollation("utf8_general_ci");
  7174. entity.Property(e => e.SeoKeyword)
  7175. .HasColumnType("varchar(200)")
  7176. .HasCharSet("utf8")
  7177. .HasCollation("utf8_general_ci");
  7178. entity.Property(e => e.SeoTitle)
  7179. .HasColumnType("varchar(100)")
  7180. .HasCharSet("utf8")
  7181. .HasCollation("utf8_general_ci");
  7182. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7183. entity.Property(e => e.StartAdPhoto)
  7184. .HasColumnType("varchar(200)")
  7185. .HasCharSet("utf8")
  7186. .HasCollation("utf8_general_ci");
  7187. entity.Property(e => e.Status).HasColumnType("int(11)");
  7188. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7189. entity.Property(e => e.UpdateMan)
  7190. .HasColumnType("varchar(50)")
  7191. .HasCharSet("utf8")
  7192. .HasCollation("utf8_general_ci");
  7193. entity.Property(e => e.UploadAutoWater)
  7194. .HasColumnType("bit(1)")
  7195. .HasDefaultValueSql("b'0'");
  7196. entity.Property(e => e.UploadAutoZoom)
  7197. .HasColumnType("bit(1)")
  7198. .HasDefaultValueSql("b'0'");
  7199. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  7200. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  7201. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  7202. entity.Property(e => e.UploadExt)
  7203. .HasColumnType("varchar(100)")
  7204. .HasCharSet("utf8")
  7205. .HasCollation("utf8_general_ci");
  7206. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  7207. entity.Property(e => e.UploadOss)
  7208. .HasColumnType("bit(1)")
  7209. .HasDefaultValueSql("b'0'");
  7210. entity.Property(e => e.UploadWaterPath)
  7211. .HasColumnType("varchar(200)")
  7212. .HasCharSet("utf8")
  7213. .HasCollation("utf8_general_ci");
  7214. entity.Property(e => e.UploadWaterPosition)
  7215. .HasColumnType("varchar(15)")
  7216. .HasCharSet("utf8")
  7217. .HasCollation("utf8_general_ci");
  7218. entity.Property(e => e.Version).HasColumnType("int(11)");
  7219. entity.Property(e => e.WebName)
  7220. .HasColumnType("varchar(50)")
  7221. .HasCharSet("utf8")
  7222. .HasCollation("utf8_general_ci");
  7223. entity.Property(e => e.WebStatCode)
  7224. .HasColumnType("longtext")
  7225. .HasCharSet("utf8")
  7226. .HasCollation("utf8_general_ci");
  7227. entity.Property(e => e.WebUrl)
  7228. .HasColumnType("varchar(200)")
  7229. .HasCharSet("utf8")
  7230. .HasCollation("utf8_general_ci");
  7231. });
  7232. modelBuilder.Entity<TeamApply>(entity =>
  7233. {
  7234. entity.Property(e => e.Id).HasColumnType("int(11)");
  7235. entity.Property(e => e.Areas)
  7236. .HasColumnType("varchar(30)")
  7237. .HasCharSet("utf8")
  7238. .HasCollation("utf8_general_ci");
  7239. entity.Property(e => e.AuditRemark)
  7240. .HasColumnType("varchar(64)")
  7241. .HasCharSet("utf8")
  7242. .HasCollation("utf8_general_ci");
  7243. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7244. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7245. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7246. entity.Property(e => e.CreateMan)
  7247. .HasColumnType("varchar(50)")
  7248. .HasCharSet("utf8")
  7249. .HasCollation("utf8_general_ci");
  7250. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7251. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7252. entity.Property(e => e.EnterEndDate).HasColumnType("datetime");
  7253. entity.Property(e => e.EnterStartDate).HasColumnType("datetime");
  7254. entity.Property(e => e.ManagerName)
  7255. .HasColumnType("varchar(32)")
  7256. .HasCharSet("utf8")
  7257. .HasCollation("utf8_general_ci");
  7258. entity.Property(e => e.ManagerNo)
  7259. .HasColumnType("varchar(32)")
  7260. .HasCharSet("utf8")
  7261. .HasCollation("utf8_general_ci");
  7262. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7263. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7264. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7265. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7266. entity.Property(e => e.Remark)
  7267. .HasColumnType("varchar(64)")
  7268. .HasCharSet("utf8")
  7269. .HasCollation("utf8_general_ci");
  7270. entity.Property(e => e.SeoDescription)
  7271. .HasColumnType("varchar(500)")
  7272. .HasCharSet("utf8")
  7273. .HasCollation("utf8_general_ci");
  7274. entity.Property(e => e.SeoKeyword)
  7275. .HasColumnType("varchar(200)")
  7276. .HasCharSet("utf8")
  7277. .HasCollation("utf8_general_ci");
  7278. entity.Property(e => e.SeoTitle)
  7279. .HasColumnType("varchar(100)")
  7280. .HasCharSet("utf8")
  7281. .HasCollation("utf8_general_ci");
  7282. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7283. entity.Property(e => e.Status).HasColumnType("int(11)");
  7284. entity.Property(e => e.TeamName)
  7285. .HasColumnType("varchar(32)")
  7286. .HasCharSet("utf8")
  7287. .HasCollation("utf8_general_ci");
  7288. entity.Property(e => e.TeamNo)
  7289. .HasColumnType("varchar(32)")
  7290. .HasCharSet("utf8")
  7291. .HasCollation("utf8_general_ci");
  7292. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7293. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7294. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7295. entity.Property(e => e.UpdateMan)
  7296. .HasColumnType("varchar(50)")
  7297. .HasCharSet("utf8")
  7298. .HasCollation("utf8_general_ci");
  7299. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7300. entity.Property(e => e.Version).HasColumnType("int(11)");
  7301. entity.Property(e => e.WatchWord)
  7302. .HasColumnType("varchar(32)")
  7303. .HasCharSet("utf8")
  7304. .HasCollation("utf8_general_ci");
  7305. });
  7306. modelBuilder.Entity<TeamApplyForTeamName>(entity =>
  7307. {
  7308. entity.HasKey(e => e.TeamName)
  7309. .HasName("PRIMARY");
  7310. entity.Property(e => e.TeamName)
  7311. .HasColumnType("varchar(32)")
  7312. .HasCharSet("utf8")
  7313. .HasCollation("utf8_general_ci");
  7314. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7315. });
  7316. modelBuilder.Entity<TeamApplyForTeamNo>(entity =>
  7317. {
  7318. entity.HasKey(e => e.TeamNo)
  7319. .HasName("PRIMARY");
  7320. entity.Property(e => e.TeamNo)
  7321. .HasColumnType("varchar(32)")
  7322. .HasCharSet("utf8")
  7323. .HasCollation("utf8_general_ci");
  7324. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7325. });
  7326. modelBuilder.Entity<TeamBlackList>(entity =>
  7327. {
  7328. entity.Property(e => e.Id).HasColumnType("int(11)");
  7329. entity.Property(e => e.BlackStatus).HasColumnType("int(11)");
  7330. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7331. entity.Property(e => e.CreateMan)
  7332. .HasColumnType("varchar(50)")
  7333. .HasCharSet("utf8")
  7334. .HasCollation("utf8_general_ci");
  7335. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7336. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7337. entity.Property(e => e.ManagerName)
  7338. .HasColumnType("varchar(32)")
  7339. .HasCharSet("utf8")
  7340. .HasCollation("utf8_general_ci");
  7341. entity.Property(e => e.ManagerNo)
  7342. .HasColumnType("varchar(32)")
  7343. .HasCharSet("utf8")
  7344. .HasCollation("utf8_general_ci");
  7345. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7346. entity.Property(e => e.Remark)
  7347. .HasColumnType("varchar(64)")
  7348. .HasCharSet("utf8")
  7349. .HasCollation("utf8_general_ci");
  7350. entity.Property(e => e.SeoDescription)
  7351. .HasColumnType("varchar(500)")
  7352. .HasCharSet("utf8")
  7353. .HasCollation("utf8_general_ci");
  7354. entity.Property(e => e.SeoKeyword)
  7355. .HasColumnType("varchar(200)")
  7356. .HasCharSet("utf8")
  7357. .HasCollation("utf8_general_ci");
  7358. entity.Property(e => e.SeoTitle)
  7359. .HasColumnType("varchar(100)")
  7360. .HasCharSet("utf8")
  7361. .HasCollation("utf8_general_ci");
  7362. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7363. entity.Property(e => e.Status).HasColumnType("int(11)");
  7364. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7365. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7366. entity.Property(e => e.UpdateMan)
  7367. .HasColumnType("varchar(50)")
  7368. .HasCharSet("utf8")
  7369. .HasCollation("utf8_general_ci");
  7370. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7371. entity.Property(e => e.Version).HasColumnType("int(11)");
  7372. });
  7373. modelBuilder.Entity<TeamConfig>(entity =>
  7374. {
  7375. entity.Property(e => e.Id).HasColumnType("int(11)");
  7376. entity.Property(e => e.BlacklistCycle).HasColumnType("int(11)");
  7377. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7378. entity.Property(e => e.CreateMan)
  7379. .HasColumnType("varchar(50)")
  7380. .HasCharSet("utf8")
  7381. .HasCollation("utf8_general_ci");
  7382. entity.Property(e => e.EnterEndMin).HasColumnType("int(11)");
  7383. entity.Property(e => e.LimitBuddyNo)
  7384. .HasColumnType("varchar(128)")
  7385. .HasCharSet("utf8")
  7386. .HasCollation("utf8_general_ci");
  7387. entity.Property(e => e.MaxCycleNum).HasColumnType("int(11)");
  7388. entity.Property(e => e.MaxStartDayLimit).HasColumnType("int(11)");
  7389. entity.Property(e => e.MaxUserNum).HasColumnType("int(11)");
  7390. entity.Property(e => e.MinCycleNum).HasColumnType("int(11)");
  7391. entity.Property(e => e.MinStartDayLimit).HasColumnType("int(11)");
  7392. entity.Property(e => e.MinUserNum).HasColumnType("int(11)");
  7393. entity.Property(e => e.OverlineStatus)
  7394. .HasColumnType("bit(1)")
  7395. .HasDefaultValueSql("b'0'");
  7396. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7397. entity.Property(e => e.Remark)
  7398. .HasColumnType("varchar(64)")
  7399. .HasCharSet("utf8")
  7400. .HasCollation("utf8_general_ci");
  7401. entity.Property(e => e.SeoDescription)
  7402. .HasColumnType("varchar(500)")
  7403. .HasCharSet("utf8")
  7404. .HasCollation("utf8_general_ci");
  7405. entity.Property(e => e.SeoKeyword)
  7406. .HasColumnType("varchar(200)")
  7407. .HasCharSet("utf8")
  7408. .HasCollation("utf8_general_ci");
  7409. entity.Property(e => e.SeoTitle)
  7410. .HasColumnType("varchar(100)")
  7411. .HasCharSet("utf8")
  7412. .HasCollation("utf8_general_ci");
  7413. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7414. entity.Property(e => e.Status).HasColumnType("int(11)");
  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.Version).HasColumnType("int(11)");
  7421. });
  7422. modelBuilder.Entity<TeamDayTop>(entity =>
  7423. {
  7424. entity.Property(e => e.Id).HasColumnType("int(11)");
  7425. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7426. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7427. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7428. entity.Property(e => e.CreateMan)
  7429. .HasColumnType("varchar(50)")
  7430. .HasCharSet("utf8")
  7431. .HasCollation("utf8_general_ci");
  7432. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7433. entity.Property(e => e.Remark)
  7434. .HasColumnType("varchar(64)")
  7435. .HasCharSet("utf8")
  7436. .HasCollation("utf8_general_ci");
  7437. entity.Property(e => e.SeoDescription)
  7438. .HasColumnType("varchar(500)")
  7439. .HasCharSet("utf8")
  7440. .HasCollation("utf8_general_ci");
  7441. entity.Property(e => e.SeoKeyword)
  7442. .HasColumnType("varchar(200)")
  7443. .HasCharSet("utf8")
  7444. .HasCollation("utf8_general_ci");
  7445. entity.Property(e => e.SeoTitle)
  7446. .HasColumnType("varchar(100)")
  7447. .HasCharSet("utf8")
  7448. .HasCollation("utf8_general_ci");
  7449. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7450. entity.Property(e => e.StatDate)
  7451. .HasColumnType("varchar(8)")
  7452. .HasCharSet("utf8")
  7453. .HasCollation("utf8_general_ci");
  7454. entity.Property(e => e.StatMonth)
  7455. .HasColumnType("varchar(6)")
  7456. .HasCharSet("utf8")
  7457. .HasCollation("utf8_general_ci");
  7458. entity.Property(e => e.Status).HasColumnType("int(11)");
  7459. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7460. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7461. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7462. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7463. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7464. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7465. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7466. entity.Property(e => e.UpdateMan)
  7467. .HasColumnType("varchar(50)")
  7468. .HasCharSet("utf8")
  7469. .HasCollation("utf8_general_ci");
  7470. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7471. entity.Property(e => e.Version).HasColumnType("int(11)");
  7472. });
  7473. modelBuilder.Entity<TeamOfferApply>(entity =>
  7474. {
  7475. entity.Property(e => e.Id).HasColumnType("int(11)");
  7476. entity.Property(e => e.Areas)
  7477. .HasColumnType("varchar(30)")
  7478. .HasCharSet("utf8")
  7479. .HasCollation("utf8_general_ci");
  7480. entity.Property(e => e.AuditRemark)
  7481. .HasColumnType("varchar(64)")
  7482. .HasCharSet("utf8")
  7483. .HasCollation("utf8_general_ci");
  7484. entity.Property(e => e.AuditResult).HasColumnType("int(11)");
  7485. entity.Property(e => e.AuditTime).HasColumnType("datetime");
  7486. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7487. entity.Property(e => e.CreateMan)
  7488. .HasColumnType("varchar(50)")
  7489. .HasCharSet("utf8")
  7490. .HasCollation("utf8_general_ci");
  7491. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  7492. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  7493. entity.Property(e => e.EnterDate).HasColumnType("datetime");
  7494. entity.Property(e => e.ManagerName)
  7495. .HasColumnType("varchar(32)")
  7496. .HasCharSet("utf8")
  7497. .HasCollation("utf8_general_ci");
  7498. entity.Property(e => e.ManagerNo)
  7499. .HasColumnType("varchar(32)")
  7500. .HasCharSet("utf8")
  7501. .HasCollation("utf8_general_ci");
  7502. entity.Property(e => e.NotifyFlag).HasColumnType("int(11)");
  7503. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7504. entity.Property(e => e.Remark)
  7505. .HasColumnType("varchar(64)")
  7506. .HasCharSet("utf8")
  7507. .HasCollation("utf8_general_ci");
  7508. entity.Property(e => e.SeoDescription)
  7509. .HasColumnType("varchar(500)")
  7510. .HasCharSet("utf8")
  7511. .HasCollation("utf8_general_ci");
  7512. entity.Property(e => e.SeoKeyword)
  7513. .HasColumnType("varchar(200)")
  7514. .HasCharSet("utf8")
  7515. .HasCollation("utf8_general_ci");
  7516. entity.Property(e => e.SeoTitle)
  7517. .HasColumnType("varchar(100)")
  7518. .HasCharSet("utf8")
  7519. .HasCollation("utf8_general_ci");
  7520. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7521. entity.Property(e => e.Status).HasColumnType("int(11)");
  7522. entity.Property(e => e.TeamApplyStatus).HasColumnType("int(11)");
  7523. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7524. entity.Property(e => e.TeamLeader).HasColumnType("int(11)");
  7525. entity.Property(e => e.TeamStatus).HasColumnType("int(11)");
  7526. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7527. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7528. entity.Property(e => e.UpdateMan)
  7529. .HasColumnType("varchar(50)")
  7530. .HasCharSet("utf8")
  7531. .HasCollation("utf8_general_ci");
  7532. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7533. entity.Property(e => e.Version).HasColumnType("int(11)");
  7534. });
  7535. modelBuilder.Entity<TeamPersonDayTop>(entity =>
  7536. {
  7537. entity.Property(e => e.Id).HasColumnType("int(11)");
  7538. entity.Property(e => e.ActMerNum).HasColumnType("int(11)");
  7539. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7540. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7541. entity.Property(e => e.CreateMan)
  7542. .HasColumnType("varchar(50)")
  7543. .HasCharSet("utf8")
  7544. .HasCollation("utf8_general_ci");
  7545. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7546. entity.Property(e => e.Remark)
  7547. .HasColumnType("varchar(64)")
  7548. .HasCharSet("utf8")
  7549. .HasCollation("utf8_general_ci");
  7550. entity.Property(e => e.SeoDescription)
  7551. .HasColumnType("varchar(500)")
  7552. .HasCharSet("utf8")
  7553. .HasCollation("utf8_general_ci");
  7554. entity.Property(e => e.SeoKeyword)
  7555. .HasColumnType("varchar(200)")
  7556. .HasCharSet("utf8")
  7557. .HasCollation("utf8_general_ci");
  7558. entity.Property(e => e.SeoTitle)
  7559. .HasColumnType("varchar(100)")
  7560. .HasCharSet("utf8")
  7561. .HasCollation("utf8_general_ci");
  7562. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7563. entity.Property(e => e.StatDate)
  7564. .HasColumnType("varchar(8)")
  7565. .HasCharSet("utf8")
  7566. .HasCollation("utf8_general_ci");
  7567. entity.Property(e => e.StatMonth)
  7568. .HasColumnType("varchar(6)")
  7569. .HasCharSet("utf8")
  7570. .HasCollation("utf8_general_ci");
  7571. entity.Property(e => e.Status).HasColumnType("int(11)");
  7572. entity.Property(e => e.TeamActMerNum).HasColumnType("int(11)");
  7573. entity.Property(e => e.TeamEndDate).HasColumnType("datetime");
  7574. entity.Property(e => e.TeamId).HasColumnType("int(11)");
  7575. entity.Property(e => e.TeamStartDate).HasColumnType("datetime");
  7576. entity.Property(e => e.TeamUserId).HasColumnType("int(11)");
  7577. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7578. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7579. entity.Property(e => e.UpdateMan)
  7580. .HasColumnType("varchar(50)")
  7581. .HasCharSet("utf8")
  7582. .HasCollation("utf8_general_ci");
  7583. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7584. entity.Property(e => e.Version).HasColumnType("int(11)");
  7585. });
  7586. modelBuilder.Entity<TmpCert>(entity =>
  7587. {
  7588. entity.HasKey(e => e.MakerCode)
  7589. .HasName("PRIMARY");
  7590. entity.Property(e => e.MakerCode)
  7591. .HasColumnType("varchar(50)")
  7592. .HasCharSet("latin1")
  7593. .HasCollation("latin1_swedish_ci");
  7594. entity.Property(e => e.CertId)
  7595. .HasColumnType("varchar(50)")
  7596. .HasCharSet("latin1")
  7597. .HasCollation("latin1_swedish_ci");
  7598. });
  7599. modelBuilder.Entity<TradeDaySummary>(entity =>
  7600. {
  7601. entity.Property(e => e.Id).HasColumnType("int(11)");
  7602. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7603. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7604. entity.Property(e => e.CreateMan)
  7605. .HasColumnType("varchar(50)")
  7606. .HasCharSet("utf8")
  7607. .HasCollation("utf8_general_ci");
  7608. entity.Property(e => e.HelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7609. entity.Property(e => e.HelpDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7610. entity.Property(e => e.HelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7611. entity.Property(e => e.HelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7612. entity.Property(e => e.HelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7613. entity.Property(e => e.HelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7614. entity.Property(e => e.HelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7615. entity.Property(e => e.HelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7616. entity.Property(e => e.HelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7617. entity.Property(e => e.HelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7618. entity.Property(e => e.HelpNonDirectDebitCapNum).HasColumnType("decimal(18,2)");
  7619. entity.Property(e => e.HelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7620. entity.Property(e => e.HelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7621. entity.Property(e => e.HelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7622. entity.Property(e => e.HelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7623. entity.Property(e => e.HelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7624. entity.Property(e => e.HelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7625. entity.Property(e => e.HelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7626. entity.Property(e => e.MgrName)
  7627. .HasColumnType("varchar(32)")
  7628. .HasCharSet("utf8")
  7629. .HasCollation("utf8_general_ci");
  7630. entity.Property(e => e.MgrNo)
  7631. .HasColumnType("varchar(16)")
  7632. .HasCharSet("utf8")
  7633. .HasCollation("utf8_general_ci");
  7634. entity.Property(e => e.NotHelpDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7635. entity.Property(e => e.NotHelpDirectDebitCapNum).HasColumnType("int(11)");
  7636. entity.Property(e => e.NotHelpDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7637. entity.Property(e => e.NotHelpDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7638. entity.Property(e => e.NotHelpDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7639. entity.Property(e => e.NotHelpDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7640. entity.Property(e => e.NotHelpDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7641. entity.Property(e => e.NotHelpDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7642. entity.Property(e => e.NotHelpDirectTradeAmt).HasColumnType("decimal(18,2)");
  7643. entity.Property(e => e.NotHelpNonDirectCreditTradeAmt).HasColumnType("decimal(18,2)");
  7644. entity.Property(e => e.NotHelpNonDirectDebitCapNum).HasColumnType("int(11)");
  7645. entity.Property(e => e.NotHelpNonDirectDebitCapTradeAmt).HasColumnType("decimal(18,2)");
  7646. entity.Property(e => e.NotHelpNonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  7647. entity.Property(e => e.NotHelpNonDirectNonQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7648. entity.Property(e => e.NotHelpNonDirectNonQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7649. entity.Property(e => e.NotHelpNonDirectQrCreditTradeAmt).HasColumnType("decimal(18,2)");
  7650. entity.Property(e => e.NotHelpNonDirectQrDebitTradeAmt).HasColumnType("decimal(18,2)");
  7651. entity.Property(e => e.NotHelpNonDirectTradeAmt).HasColumnType("decimal(18,2)");
  7652. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7653. entity.Property(e => e.SeoDescription)
  7654. .HasColumnType("varchar(500)")
  7655. .HasCharSet("utf8")
  7656. .HasCollation("utf8_general_ci");
  7657. entity.Property(e => e.SeoKeyword)
  7658. .HasColumnType("varchar(200)")
  7659. .HasCharSet("utf8")
  7660. .HasCollation("utf8_general_ci");
  7661. entity.Property(e => e.SeoTitle)
  7662. .HasColumnType("varchar(100)")
  7663. .HasCharSet("utf8")
  7664. .HasCollation("utf8_general_ci");
  7665. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7666. entity.Property(e => e.Status).HasColumnType("int(11)");
  7667. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7668. entity.Property(e => e.TradeDate)
  7669. .HasColumnType("varchar(8)")
  7670. .HasCharSet("utf8")
  7671. .HasCollation("utf8_general_ci");
  7672. entity.Property(e => e.TradeMonth)
  7673. .HasColumnType("varchar(6)")
  7674. .HasCharSet("utf8")
  7675. .HasCollation("utf8_general_ci");
  7676. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7677. entity.Property(e => e.UpdateMan)
  7678. .HasColumnType("varchar(50)")
  7679. .HasCharSet("utf8")
  7680. .HasCollation("utf8_general_ci");
  7681. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7682. entity.Property(e => e.Version).HasColumnType("int(11)");
  7683. });
  7684. modelBuilder.Entity<TradeRecord>(entity =>
  7685. {
  7686. entity.Property(e => e.Id).HasColumnType("int(11)");
  7687. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  7688. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7689. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  7690. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  7691. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7692. entity.Property(e => e.CreateMan)
  7693. .HasColumnType("varchar(50)")
  7694. .HasCharSet("utf8")
  7695. .HasCollation("utf8_general_ci");
  7696. entity.Property(e => e.DirectFlag)
  7697. .HasColumnType("bit(1)")
  7698. .HasDefaultValueSql("b'0'");
  7699. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  7700. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  7701. entity.Property(e => e.MerHelpFlag)
  7702. .HasColumnType("bit(1)")
  7703. .HasDefaultValueSql("b'0'");
  7704. entity.Property(e => e.MerNo)
  7705. .HasColumnType("varchar(32)")
  7706. .HasCharSet("utf8")
  7707. .HasCollation("utf8_general_ci");
  7708. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  7709. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7710. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  7711. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7712. entity.Property(e => e.RecordNo)
  7713. .HasColumnType("varchar(100)")
  7714. .HasCharSet("utf8")
  7715. .HasCollation("utf8_general_ci");
  7716. entity.Property(e => e.Remark)
  7717. .HasColumnType("varchar(64)")
  7718. .HasCharSet("utf8")
  7719. .HasCollation("utf8_general_ci");
  7720. entity.Property(e => e.SeoDescription)
  7721. .HasColumnType("varchar(500)")
  7722. .HasCharSet("utf8")
  7723. .HasCollation("utf8_general_ci");
  7724. entity.Property(e => e.SeoKeyword)
  7725. .HasColumnType("varchar(200)")
  7726. .HasCharSet("utf8")
  7727. .HasCollation("utf8_general_ci");
  7728. entity.Property(e => e.SeoTitle)
  7729. .HasColumnType("varchar(100)")
  7730. .HasCharSet("utf8")
  7731. .HasCollation("utf8_general_ci");
  7732. entity.Property(e => e.SnNo)
  7733. .HasColumnType("varchar(32)")
  7734. .HasCharSet("utf8")
  7735. .HasCollation("utf8_general_ci");
  7736. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7737. entity.Property(e => e.Status).HasColumnType("int(11)");
  7738. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7739. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  7740. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  7741. entity.Property(e => e.TradeSerialNo)
  7742. .HasColumnType("varchar(48)")
  7743. .HasCharSet("utf8")
  7744. .HasCollation("utf8_general_ci");
  7745. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7746. entity.Property(e => e.UpdateMan)
  7747. .HasColumnType("varchar(50)")
  7748. .HasCharSet("utf8")
  7749. .HasCollation("utf8_general_ci");
  7750. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7751. entity.Property(e => e.Version).HasColumnType("int(11)");
  7752. });
  7753. modelBuilder.Entity<TradeRecordCopy1>(entity =>
  7754. {
  7755. entity.ToTable("TradeRecord_copy1");
  7756. entity.Property(e => e.Id).HasColumnType("int(11)");
  7757. entity.Property(e => e.BankCardType).HasColumnType("int(11)");
  7758. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  7759. entity.Property(e => e.CapFlag).HasColumnType("int(11)");
  7760. entity.Property(e => e.ClearDate).HasColumnType("datetime");
  7761. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7762. entity.Property(e => e.CreateMan)
  7763. .HasColumnType("varchar(50)")
  7764. .HasCharSet("utf8")
  7765. .HasCollation("utf8_general_ci");
  7766. entity.Property(e => e.DirectFlag)
  7767. .HasColumnType("bit(1)")
  7768. .HasDefaultValueSql("b'0'");
  7769. entity.Property(e => e.HelpMonthCount).HasColumnType("int(11)");
  7770. entity.Property(e => e.MerBuddyType).HasColumnType("int(11)");
  7771. entity.Property(e => e.MerHelpFlag)
  7772. .HasColumnType("bit(1)")
  7773. .HasDefaultValueSql("b'0'");
  7774. entity.Property(e => e.MerNo)
  7775. .HasColumnType("varchar(32)")
  7776. .HasCharSet("utf8")
  7777. .HasCollation("utf8_general_ci");
  7778. entity.Property(e => e.MerUserId).HasColumnType("int(11)");
  7779. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  7780. entity.Property(e => e.QrPayFlag).HasColumnType("int(11)");
  7781. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7782. entity.Property(e => e.RecordNo)
  7783. .HasColumnType("varchar(32)")
  7784. .HasCharSet("utf8")
  7785. .HasCollation("utf8_general_ci");
  7786. entity.Property(e => e.Remark)
  7787. .HasColumnType("varchar(64)")
  7788. .HasCharSet("utf8")
  7789. .HasCollation("utf8_general_ci");
  7790. entity.Property(e => e.SeoDescription)
  7791. .HasColumnType("varchar(500)")
  7792. .HasCharSet("utf8")
  7793. .HasCollation("utf8_general_ci");
  7794. entity.Property(e => e.SeoKeyword)
  7795. .HasColumnType("varchar(200)")
  7796. .HasCharSet("utf8")
  7797. .HasCollation("utf8_general_ci");
  7798. entity.Property(e => e.SeoTitle)
  7799. .HasColumnType("varchar(100)")
  7800. .HasCharSet("utf8")
  7801. .HasCollation("utf8_general_ci");
  7802. entity.Property(e => e.SnNo)
  7803. .HasColumnType("varchar(32)")
  7804. .HasCharSet("utf8")
  7805. .HasCollation("utf8_general_ci");
  7806. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7807. entity.Property(e => e.Status).HasColumnType("int(11)");
  7808. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  7809. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  7810. entity.Property(e => e.TradeDate).HasColumnType("datetime");
  7811. entity.Property(e => e.TradeSerialNo)
  7812. .HasColumnType("varchar(48)")
  7813. .HasCharSet("utf8")
  7814. .HasCollation("utf8_general_ci");
  7815. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7816. entity.Property(e => e.UpdateMan)
  7817. .HasColumnType("varchar(50)")
  7818. .HasCharSet("utf8")
  7819. .HasCollation("utf8_general_ci");
  7820. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7821. entity.Property(e => e.Version).HasColumnType("int(11)");
  7822. });
  7823. modelBuilder.Entity<UploadParams>(entity =>
  7824. {
  7825. entity.Property(e => e.Id).HasColumnType("int(11)");
  7826. entity.Property(e => e.ColumnEnName)
  7827. .HasColumnType("varchar(50)")
  7828. .HasCharSet("utf8")
  7829. .HasCollation("utf8_general_ci");
  7830. entity.Property(e => e.ColumnName)
  7831. .HasColumnType("varchar(50)")
  7832. .HasCharSet("utf8")
  7833. .HasCollation("utf8_general_ci");
  7834. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7835. entity.Property(e => e.CreateMan)
  7836. .HasColumnType("varchar(50)")
  7837. .HasCharSet("utf8")
  7838. .HasCollation("utf8_general_ci");
  7839. entity.Property(e => e.ParamString)
  7840. .HasColumnType("varchar(200)")
  7841. .HasCharSet("utf8")
  7842. .HasCollation("utf8_general_ci");
  7843. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7844. entity.Property(e => e.SeoDescription)
  7845. .HasColumnType("varchar(500)")
  7846. .HasCharSet("utf8")
  7847. .HasCollation("utf8_general_ci");
  7848. entity.Property(e => e.SeoKeyword)
  7849. .HasColumnType("varchar(200)")
  7850. .HasCharSet("utf8")
  7851. .HasCollation("utf8_general_ci");
  7852. entity.Property(e => e.SeoTitle)
  7853. .HasColumnType("varchar(100)")
  7854. .HasCharSet("utf8")
  7855. .HasCollation("utf8_general_ci");
  7856. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7857. entity.Property(e => e.Status).HasColumnType("int(11)");
  7858. entity.Property(e => e.TableEnName)
  7859. .HasColumnType("varchar(50)")
  7860. .HasCharSet("utf8")
  7861. .HasCollation("utf8_general_ci");
  7862. entity.Property(e => e.TableName)
  7863. .HasColumnType("varchar(50)")
  7864. .HasCharSet("utf8")
  7865. .HasCollation("utf8_general_ci");
  7866. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7867. entity.Property(e => e.UpdateMan)
  7868. .HasColumnType("varchar(50)")
  7869. .HasCharSet("utf8")
  7870. .HasCollation("utf8_general_ci");
  7871. entity.Property(e => e.Version).HasColumnType("int(11)");
  7872. });
  7873. modelBuilder.Entity<UserAccount>(entity =>
  7874. {
  7875. entity.Property(e => e.Id).HasColumnType("int(11)");
  7876. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  7877. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  7878. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7879. entity.Property(e => e.CreateMan)
  7880. .HasColumnType("varchar(50)")
  7881. .HasCharSet("utf8")
  7882. .HasCollation("utf8_general_ci");
  7883. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  7884. entity.Property(e => e.LockStatus).HasColumnType("int(11)");
  7885. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7886. entity.Property(e => e.SeoDescription)
  7887. .HasColumnType("varchar(500)")
  7888. .HasCharSet("utf8")
  7889. .HasCollation("utf8_general_ci");
  7890. entity.Property(e => e.SeoKeyword)
  7891. .HasColumnType("varchar(200)")
  7892. .HasCharSet("utf8")
  7893. .HasCollation("utf8_general_ci");
  7894. entity.Property(e => e.SeoTitle)
  7895. .HasColumnType("varchar(100)")
  7896. .HasCharSet("utf8")
  7897. .HasCollation("utf8_general_ci");
  7898. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7899. entity.Property(e => e.Status).HasColumnType("int(11)");
  7900. entity.Property(e => e.TeamTotalOverProfit).HasColumnType("decimal(18,2)");
  7901. entity.Property(e => e.TeamTotalProfit).HasColumnType("decimal(18,2)");
  7902. entity.Property(e => e.TeamTotalServiceProfit).HasColumnType("decimal(18,2)");
  7903. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  7904. entity.Property(e => e.TotalOverProfit).HasColumnType("decimal(18,2)");
  7905. entity.Property(e => e.TotalProfit).HasColumnType("decimal(18,2)");
  7906. entity.Property(e => e.TotalServiceProfit).HasColumnType("decimal(18,2)");
  7907. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7908. entity.Property(e => e.UpdateMan)
  7909. .HasColumnType("varchar(50)")
  7910. .HasCharSet("utf8")
  7911. .HasCollation("utf8_general_ci");
  7912. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7913. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  7914. entity.Property(e => e.UserType).HasColumnType("int(11)");
  7915. entity.Property(e => e.Version).HasColumnType("int(11)");
  7916. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  7917. });
  7918. modelBuilder.Entity<UserAccountRecord>(entity =>
  7919. {
  7920. entity.Property(e => e.Id).HasColumnType("int(11)");
  7921. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  7922. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  7923. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  7924. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  7925. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  7926. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  7927. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  7928. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  7929. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7930. entity.Property(e => e.CreateMan)
  7931. .HasColumnType("varchar(50)")
  7932. .HasCharSet("utf8")
  7933. .HasCollation("utf8_general_ci");
  7934. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  7935. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7936. entity.Property(e => e.Remark)
  7937. .HasColumnType("varchar(64)")
  7938. .HasCharSet("utf8")
  7939. .HasCollation("utf8_general_ci");
  7940. entity.Property(e => e.SeoDescription)
  7941. .HasColumnType("varchar(500)")
  7942. .HasCharSet("utf8")
  7943. .HasCollation("utf8_general_ci");
  7944. entity.Property(e => e.SeoKeyword)
  7945. .HasColumnType("varchar(200)")
  7946. .HasCharSet("utf8")
  7947. .HasCollation("utf8_general_ci");
  7948. entity.Property(e => e.SeoTitle)
  7949. .HasColumnType("varchar(100)")
  7950. .HasCharSet("utf8")
  7951. .HasCollation("utf8_general_ci");
  7952. entity.Property(e => e.Sort).HasColumnType("int(11)");
  7953. entity.Property(e => e.Status).HasColumnType("int(11)");
  7954. entity.Property(e => e.TransRecordNo)
  7955. .HasColumnType("varchar(32)")
  7956. .HasCharSet("utf8")
  7957. .HasCollation("utf8_general_ci");
  7958. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  7959. entity.Property(e => e.UpdateMan)
  7960. .HasColumnType("varchar(50)")
  7961. .HasCharSet("utf8")
  7962. .HasCollation("utf8_general_ci");
  7963. entity.Property(e => e.UserId).HasColumnType("int(11)");
  7964. entity.Property(e => e.Version).HasColumnType("int(11)");
  7965. });
  7966. modelBuilder.Entity<UserAddress>(entity =>
  7967. {
  7968. entity.Property(e => e.Id).HasColumnType("int(11)");
  7969. entity.Property(e => e.Address)
  7970. .HasColumnType("varchar(100)")
  7971. .HasCharSet("utf8")
  7972. .HasCollation("utf8_general_ci");
  7973. entity.Property(e => e.Areas)
  7974. .HasColumnType("varchar(30)")
  7975. .HasCharSet("utf8")
  7976. .HasCollation("utf8_general_ci");
  7977. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  7978. entity.Property(e => e.CreateMan)
  7979. .HasColumnType("varchar(50)")
  7980. .HasCharSet("utf8")
  7981. .HasCollation("utf8_general_ci");
  7982. entity.Property(e => e.IsDefault)
  7983. .HasColumnType("bit(1)")
  7984. .HasDefaultValueSql("b'0'");
  7985. entity.Property(e => e.Mobile)
  7986. .HasColumnType("varchar(11)")
  7987. .HasCharSet("utf8")
  7988. .HasCollation("utf8_general_ci");
  7989. entity.Property(e => e.PostalCode)
  7990. .HasColumnType("varchar(6)")
  7991. .HasCharSet("utf8")
  7992. .HasCollation("utf8_general_ci");
  7993. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  7994. entity.Property(e => e.RealName)
  7995. .HasColumnType("varchar(10)")
  7996. .HasCharSet("utf8")
  7997. .HasCollation("utf8_general_ci");
  7998. entity.Property(e => e.SeoDescription)
  7999. .HasColumnType("varchar(500)")
  8000. .HasCharSet("utf8")
  8001. .HasCollation("utf8_general_ci");
  8002. entity.Property(e => e.SeoKeyword)
  8003. .HasColumnType("varchar(200)")
  8004. .HasCharSet("utf8")
  8005. .HasCollation("utf8_general_ci");
  8006. entity.Property(e => e.SeoTitle)
  8007. .HasColumnType("varchar(100)")
  8008. .HasCharSet("utf8")
  8009. .HasCollation("utf8_general_ci");
  8010. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8011. entity.Property(e => e.Status).HasColumnType("int(11)");
  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.UserId).HasColumnType("int(11)");
  8018. entity.Property(e => e.Version).HasColumnType("int(11)");
  8019. });
  8020. modelBuilder.Entity<UserAuthRecord>(entity =>
  8021. {
  8022. entity.Property(e => e.Id).HasColumnType("int(11)");
  8023. entity.Property(e => e.AuthType).HasColumnType("int(11)");
  8024. entity.Property(e => e.BankCardAccount)
  8025. .HasColumnType("varchar(32)")
  8026. .HasCharSet("utf8")
  8027. .HasCollation("utf8_general_ci");
  8028. entity.Property(e => e.BankMobile)
  8029. .HasColumnType("varchar(11)")
  8030. .HasCharSet("utf8")
  8031. .HasCollation("utf8_general_ci");
  8032. entity.Property(e => e.BankName)
  8033. .HasColumnType("varchar(64)")
  8034. .HasCharSet("utf8")
  8035. .HasCollation("utf8_general_ci");
  8036. entity.Property(e => e.ChannelCode)
  8037. .HasColumnType("varchar(16)")
  8038. .HasCharSet("utf8")
  8039. .HasCollation("utf8_general_ci");
  8040. entity.Property(e => e.ChannelName)
  8041. .HasColumnType("varchar(32)")
  8042. .HasCharSet("utf8")
  8043. .HasCollation("utf8_general_ci");
  8044. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8045. entity.Property(e => e.CreateMan)
  8046. .HasColumnType("varchar(50)")
  8047. .HasCharSet("utf8")
  8048. .HasCollation("utf8_general_ci");
  8049. entity.Property(e => e.IdcardNo)
  8050. .HasColumnType("varchar(18)")
  8051. .HasCharSet("utf8")
  8052. .HasCollation("utf8_general_ci");
  8053. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8054. entity.Property(e => e.RealName)
  8055. .HasColumnType("varchar(32)")
  8056. .HasCharSet("utf8")
  8057. .HasCollation("utf8_general_ci");
  8058. entity.Property(e => e.ReqData)
  8059. .HasColumnType("varchar(2048)")
  8060. .HasCharSet("utf8")
  8061. .HasCollation("utf8_general_ci");
  8062. entity.Property(e => e.ResData)
  8063. .HasColumnType("varchar(2048)")
  8064. .HasCharSet("utf8")
  8065. .HasCollation("utf8_general_ci");
  8066. entity.Property(e => e.ReturnCode)
  8067. .HasColumnType("varchar(32)")
  8068. .HasCharSet("utf8")
  8069. .HasCollation("utf8_general_ci");
  8070. entity.Property(e => e.ReturnMsg)
  8071. .HasColumnType("varchar(128)")
  8072. .HasCharSet("utf8")
  8073. .HasCollation("utf8_general_ci");
  8074. entity.Property(e => e.SeoDescription)
  8075. .HasColumnType("varchar(500)")
  8076. .HasCharSet("utf8")
  8077. .HasCollation("utf8_general_ci");
  8078. entity.Property(e => e.SeoKeyword)
  8079. .HasColumnType("varchar(200)")
  8080. .HasCharSet("utf8")
  8081. .HasCollation("utf8_general_ci");
  8082. entity.Property(e => e.SeoTitle)
  8083. .HasColumnType("varchar(100)")
  8084. .HasCharSet("utf8")
  8085. .HasCollation("utf8_general_ci");
  8086. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8087. entity.Property(e => e.Status).HasColumnType("int(11)");
  8088. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8089. entity.Property(e => e.UpdateMan)
  8090. .HasColumnType("varchar(50)")
  8091. .HasCharSet("utf8")
  8092. .HasCollation("utf8_general_ci");
  8093. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8094. entity.Property(e => e.Version).HasColumnType("int(11)");
  8095. });
  8096. modelBuilder.Entity<UserBack>(entity =>
  8097. {
  8098. entity.Property(e => e.Id).HasColumnType("int(11)");
  8099. entity.Property(e => e.BackKind).HasColumnType("int(11)");
  8100. entity.Property(e => e.BackStatus).HasColumnType("int(11)");
  8101. entity.Property(e => e.Content)
  8102. .HasColumnType("varchar(100)")
  8103. .HasCharSet("utf8")
  8104. .HasCollation("utf8_general_ci");
  8105. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8106. entity.Property(e => e.CreateMan)
  8107. .HasColumnType("varchar(50)")
  8108. .HasCharSet("utf8")
  8109. .HasCollation("utf8_general_ci");
  8110. entity.Property(e => e.IsPhoneCallBack)
  8111. .HasColumnType("bit(1)")
  8112. .HasDefaultValueSql("b'0'");
  8113. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8114. entity.Property(e => e.ReplyContent)
  8115. .HasColumnType("mediumtext")
  8116. .HasCharSet("utf8")
  8117. .HasCollation("utf8_general_ci");
  8118. entity.Property(e => e.SeoDescription)
  8119. .HasColumnType("varchar(500)")
  8120. .HasCharSet("utf8")
  8121. .HasCollation("utf8_general_ci");
  8122. entity.Property(e => e.SeoKeyword)
  8123. .HasColumnType("varchar(200)")
  8124. .HasCharSet("utf8")
  8125. .HasCollation("utf8_general_ci");
  8126. entity.Property(e => e.SeoTitle)
  8127. .HasColumnType("varchar(100)")
  8128. .HasCharSet("utf8")
  8129. .HasCollation("utf8_general_ci");
  8130. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8131. entity.Property(e => e.Status).HasColumnType("int(11)");
  8132. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8133. entity.Property(e => e.UpdateMan)
  8134. .HasColumnType("varchar(50)")
  8135. .HasCharSet("utf8")
  8136. .HasCollation("utf8_general_ci");
  8137. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8138. entity.Property(e => e.Version).HasColumnType("int(11)");
  8139. });
  8140. modelBuilder.Entity<UserBackKind>(entity =>
  8141. {
  8142. entity.Property(e => e.Id).HasColumnType("int(11)");
  8143. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8144. entity.Property(e => e.CreateMan)
  8145. .HasColumnType("varchar(50)")
  8146. .HasCharSet("utf8")
  8147. .HasCollation("utf8_general_ci");
  8148. entity.Property(e => e.Name)
  8149. .HasColumnType("varchar(50)")
  8150. .HasCharSet("utf8")
  8151. .HasCollation("utf8_general_ci");
  8152. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8153. entity.Property(e => e.SeoDescription)
  8154. .HasColumnType("varchar(500)")
  8155. .HasCharSet("utf8")
  8156. .HasCollation("utf8_general_ci");
  8157. entity.Property(e => e.SeoKeyword)
  8158. .HasColumnType("varchar(200)")
  8159. .HasCharSet("utf8")
  8160. .HasCollation("utf8_general_ci");
  8161. entity.Property(e => e.SeoTitle)
  8162. .HasColumnType("varchar(100)")
  8163. .HasCharSet("utf8")
  8164. .HasCollation("utf8_general_ci");
  8165. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8166. entity.Property(e => e.Status).HasColumnType("int(11)");
  8167. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8168. entity.Property(e => e.UpdateMan)
  8169. .HasColumnType("varchar(50)")
  8170. .HasCharSet("utf8")
  8171. .HasCollation("utf8_general_ci");
  8172. entity.Property(e => e.Version).HasColumnType("int(11)");
  8173. });
  8174. modelBuilder.Entity<UserBalanceTop>(entity =>
  8175. {
  8176. entity.Property(e => e.Id).HasColumnType("int(11)");
  8177. entity.Property(e => e.Balance).HasColumnType("decimal(18,2)");
  8178. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8179. entity.Property(e => e.CreateMan)
  8180. .HasColumnType("varchar(50)")
  8181. .HasCharSet("utf8")
  8182. .HasCollation("utf8_general_ci");
  8183. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8184. entity.Property(e => e.SeoDescription)
  8185. .HasColumnType("varchar(500)")
  8186. .HasCharSet("utf8")
  8187. .HasCollation("utf8_general_ci");
  8188. entity.Property(e => e.SeoKeyword)
  8189. .HasColumnType("varchar(200)")
  8190. .HasCharSet("utf8")
  8191. .HasCollation("utf8_general_ci");
  8192. entity.Property(e => e.SeoTitle)
  8193. .HasColumnType("varchar(100)")
  8194. .HasCharSet("utf8")
  8195. .HasCollation("utf8_general_ci");
  8196. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8197. entity.Property(e => e.StatDate)
  8198. .HasColumnType("varchar(8)")
  8199. .HasCharSet("utf8")
  8200. .HasCollation("utf8_general_ci");
  8201. entity.Property(e => e.StatMonth)
  8202. .HasColumnType("varchar(6)")
  8203. .HasCharSet("utf8")
  8204. .HasCollation("utf8_general_ci");
  8205. entity.Property(e => e.Status).HasColumnType("int(11)");
  8206. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8207. entity.Property(e => e.UpdateMan)
  8208. .HasColumnType("varchar(50)")
  8209. .HasCharSet("utf8")
  8210. .HasCollation("utf8_general_ci");
  8211. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8212. entity.Property(e => e.Version).HasColumnType("int(11)");
  8213. });
  8214. modelBuilder.Entity<UserCar>(entity =>
  8215. {
  8216. entity.Property(e => e.Id).HasColumnType("int(11)");
  8217. entity.Property(e => e.BuyCount).HasColumnType("int(11)");
  8218. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8219. entity.Property(e => e.CreateMan)
  8220. .HasColumnType("varchar(50)")
  8221. .HasCharSet("utf8")
  8222. .HasCollation("utf8_general_ci");
  8223. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8224. entity.Property(e => e.NormId).HasColumnType("int(11)");
  8225. entity.Property(e => e.ProductId).HasColumnType("int(11)");
  8226. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8227. entity.Property(e => e.SeoDescription)
  8228. .HasColumnType("varchar(500)")
  8229. .HasCharSet("utf8")
  8230. .HasCollation("utf8_general_ci");
  8231. entity.Property(e => e.SeoKeyword)
  8232. .HasColumnType("varchar(200)")
  8233. .HasCharSet("utf8")
  8234. .HasCollation("utf8_general_ci");
  8235. entity.Property(e => e.SeoTitle)
  8236. .HasColumnType("varchar(100)")
  8237. .HasCharSet("utf8")
  8238. .HasCollation("utf8_general_ci");
  8239. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8240. entity.Property(e => e.Status).HasColumnType("int(11)");
  8241. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8242. entity.Property(e => e.UpdateMan)
  8243. .HasColumnType("varchar(50)")
  8244. .HasCharSet("utf8")
  8245. .HasCollation("utf8_general_ci");
  8246. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8247. entity.Property(e => e.Version).HasColumnType("int(11)");
  8248. });
  8249. modelBuilder.Entity<UserCardForWeChat>(entity =>
  8250. {
  8251. entity.Property(e => e.Id).HasColumnType("int(11)");
  8252. entity.Property(e => e.BrandName)
  8253. .HasColumnType("varchar(12)")
  8254. .HasCharSet("utf8")
  8255. .HasCollation("utf8_general_ci");
  8256. entity.Property(e => e.CardId)
  8257. .HasColumnType("varchar(50)")
  8258. .HasCharSet("utf8")
  8259. .HasCollation("utf8_general_ci");
  8260. entity.Property(e => e.CardType)
  8261. .HasColumnType("varchar(30)")
  8262. .HasCharSet("utf8")
  8263. .HasCollation("utf8_general_ci");
  8264. entity.Property(e => e.CodeType)
  8265. .HasColumnType("varchar(50)")
  8266. .HasCharSet("utf8")
  8267. .HasCollation("utf8_general_ci");
  8268. entity.Property(e => e.Color)
  8269. .HasColumnType("varchar(20)")
  8270. .HasCharSet("utf8")
  8271. .HasCollation("utf8_general_ci");
  8272. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8273. entity.Property(e => e.CreateMan)
  8274. .HasColumnType("varchar(50)")
  8275. .HasCharSet("utf8")
  8276. .HasCollation("utf8_general_ci");
  8277. entity.Property(e => e.DateType)
  8278. .HasColumnType("varchar(50)")
  8279. .HasCharSet("utf8")
  8280. .HasCollation("utf8_general_ci");
  8281. entity.Property(e => e.Description)
  8282. .HasColumnType("varchar(1024)")
  8283. .HasCharSet("utf8")
  8284. .HasCollation("utf8_general_ci");
  8285. entity.Property(e => e.EnterName)
  8286. .HasColumnType("varchar(15)")
  8287. .HasCharSet("utf8")
  8288. .HasCollation("utf8_general_ci");
  8289. entity.Property(e => e.EnterTips)
  8290. .HasColumnType("varchar(6)")
  8291. .HasCharSet("utf8")
  8292. .HasCollation("utf8_general_ci");
  8293. entity.Property(e => e.EnterUrl)
  8294. .HasColumnType("varchar(200)")
  8295. .HasCharSet("utf8")
  8296. .HasCollation("utf8_general_ci");
  8297. entity.Property(e => e.LogoUrl)
  8298. .HasColumnType("varchar(200)")
  8299. .HasCharSet("utf8")
  8300. .HasCollation("utf8_general_ci");
  8301. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8302. entity.Property(e => e.Notice)
  8303. .HasColumnType("varchar(16)")
  8304. .HasCharSet("utf8")
  8305. .HasCollation("utf8_general_ci");
  8306. entity.Property(e => e.Prerogative)
  8307. .HasColumnType("varchar(1024)")
  8308. .HasCharSet("utf8")
  8309. .HasCollation("utf8_general_ci");
  8310. entity.Property(e => e.Quantity).HasColumnType("int(11)");
  8311. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8312. entity.Property(e => e.SeoDescription)
  8313. .HasColumnType("varchar(500)")
  8314. .HasCharSet("utf8")
  8315. .HasCollation("utf8_general_ci");
  8316. entity.Property(e => e.SeoKeyword)
  8317. .HasColumnType("varchar(200)")
  8318. .HasCharSet("utf8")
  8319. .HasCollation("utf8_general_ci");
  8320. entity.Property(e => e.SeoTitle)
  8321. .HasColumnType("varchar(100)")
  8322. .HasCharSet("utf8")
  8323. .HasCollation("utf8_general_ci");
  8324. entity.Property(e => e.Sku)
  8325. .HasColumnType("mediumtext")
  8326. .HasCharSet("utf8")
  8327. .HasCollation("utf8_general_ci");
  8328. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8329. entity.Property(e => e.Status).HasColumnType("int(11)");
  8330. entity.Property(e => e.SupplyBalance)
  8331. .HasColumnType("bit(1)")
  8332. .HasDefaultValueSql("b'0'");
  8333. entity.Property(e => e.SupplyBonus)
  8334. .HasColumnType("bit(1)")
  8335. .HasDefaultValueSql("b'0'");
  8336. entity.Property(e => e.Title)
  8337. .HasColumnType("varchar(9)")
  8338. .HasCharSet("utf8")
  8339. .HasCollation("utf8_general_ci");
  8340. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8341. entity.Property(e => e.UpdateMan)
  8342. .HasColumnType("varchar(50)")
  8343. .HasCharSet("utf8")
  8344. .HasCollation("utf8_general_ci");
  8345. entity.Property(e => e.Version).HasColumnType("int(11)");
  8346. });
  8347. modelBuilder.Entity<UserCardRecord>(entity =>
  8348. {
  8349. entity.Property(e => e.Id).HasColumnType("int(11)");
  8350. entity.Property(e => e.CardId).HasColumnType("int(11)");
  8351. entity.Property(e => e.ConsumerId).HasColumnType("int(11)");
  8352. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8353. entity.Property(e => e.CreateMan)
  8354. .HasColumnType("varchar(50)")
  8355. .HasCharSet("utf8")
  8356. .HasCollation("utf8_general_ci");
  8357. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8358. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8359. entity.Property(e => e.SeoDescription)
  8360. .HasColumnType("varchar(500)")
  8361. .HasCharSet("utf8")
  8362. .HasCollation("utf8_general_ci");
  8363. entity.Property(e => e.SeoKeyword)
  8364. .HasColumnType("varchar(200)")
  8365. .HasCharSet("utf8")
  8366. .HasCollation("utf8_general_ci");
  8367. entity.Property(e => e.SeoTitle)
  8368. .HasColumnType("varchar(100)")
  8369. .HasCharSet("utf8")
  8370. .HasCollation("utf8_general_ci");
  8371. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8372. entity.Property(e => e.Status).HasColumnType("int(11)");
  8373. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8374. entity.Property(e => e.UpdateMan)
  8375. .HasColumnType("varchar(50)")
  8376. .HasCharSet("utf8")
  8377. .HasCollation("utf8_general_ci");
  8378. entity.Property(e => e.Version).HasColumnType("int(11)");
  8379. });
  8380. modelBuilder.Entity<UserCashRecord>(entity =>
  8381. {
  8382. entity.Property(e => e.Id).HasColumnType("int(11)");
  8383. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  8384. entity.Property(e => e.CashOrderNo)
  8385. .HasColumnType("varchar(32)")
  8386. .HasCharSet("utf8")
  8387. .HasCollation("utf8_general_ci");
  8388. entity.Property(e => e.ChanelName)
  8389. .HasColumnType("varchar(32)")
  8390. .HasCharSet("utf8")
  8391. .HasCollation("utf8_general_ci");
  8392. entity.Property(e => e.ChannelCode)
  8393. .HasColumnType("varchar(16)")
  8394. .HasCharSet("utf8")
  8395. .HasCollation("utf8_general_ci");
  8396. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8397. entity.Property(e => e.CreateMan)
  8398. .HasColumnType("varchar(50)")
  8399. .HasCharSet("utf8")
  8400. .HasCollation("utf8_general_ci");
  8401. entity.Property(e => e.IdCardNo)
  8402. .HasColumnType("varchar(18)")
  8403. .HasCharSet("utf8")
  8404. .HasCollation("utf8_general_ci");
  8405. entity.Property(e => e.Ip)
  8406. .HasColumnType("varchar(15)")
  8407. .HasCharSet("utf8")
  8408. .HasCollation("utf8_general_ci");
  8409. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  8410. entity.Property(e => e.MediaSource)
  8411. .HasColumnType("varchar(16)")
  8412. .HasCharSet("utf8")
  8413. .HasCollation("utf8_general_ci");
  8414. entity.Property(e => e.PayTradeNo)
  8415. .HasColumnType("varchar(32)")
  8416. .HasCharSet("utf8")
  8417. .HasCollation("utf8_general_ci");
  8418. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  8419. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8420. entity.Property(e => e.Remark)
  8421. .HasColumnType("varchar(128)")
  8422. .HasCharSet("utf8")
  8423. .HasCollation("utf8_general_ci");
  8424. entity.Property(e => e.ReqData)
  8425. .HasColumnType("varchar(2048)")
  8426. .HasCharSet("utf8")
  8427. .HasCollation("utf8_general_ci");
  8428. entity.Property(e => e.ResData)
  8429. .HasColumnType("varchar(2048)")
  8430. .HasCharSet("utf8")
  8431. .HasCollation("utf8_general_ci");
  8432. entity.Property(e => e.ReturnCode)
  8433. .HasColumnType("varchar(32)")
  8434. .HasCharSet("utf8")
  8435. .HasCollation("utf8_general_ci");
  8436. entity.Property(e => e.ReturnMsg)
  8437. .HasColumnType("varchar(128)")
  8438. .HasCharSet("utf8")
  8439. .HasCollation("utf8_general_ci");
  8440. entity.Property(e => e.SeoDescription)
  8441. .HasColumnType("varchar(500)")
  8442. .HasCharSet("utf8")
  8443. .HasCollation("utf8_general_ci");
  8444. entity.Property(e => e.SeoKeyword)
  8445. .HasColumnType("varchar(200)")
  8446. .HasCharSet("utf8")
  8447. .HasCollation("utf8_general_ci");
  8448. entity.Property(e => e.SeoTitle)
  8449. .HasColumnType("varchar(100)")
  8450. .HasCharSet("utf8")
  8451. .HasCollation("utf8_general_ci");
  8452. entity.Property(e => e.SettleBankCardNo)
  8453. .HasColumnType("varchar(32)")
  8454. .HasCharSet("utf8")
  8455. .HasCollation("utf8_general_ci");
  8456. entity.Property(e => e.SettleBankName)
  8457. .HasColumnType("varchar(64)")
  8458. .HasCharSet("utf8")
  8459. .HasCollation("utf8_general_ci");
  8460. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8461. entity.Property(e => e.Status).HasColumnType("int(11)");
  8462. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  8463. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  8464. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  8465. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8466. entity.Property(e => e.UpdateMan)
  8467. .HasColumnType("varchar(50)")
  8468. .HasCharSet("utf8")
  8469. .HasCollation("utf8_general_ci");
  8470. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8471. entity.Property(e => e.Version).HasColumnType("int(11)");
  8472. });
  8473. modelBuilder.Entity<UserCenterIconList>(entity =>
  8474. {
  8475. entity.Property(e => e.Id).HasColumnType("int(11)");
  8476. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8477. entity.Property(e => e.CreateMan)
  8478. .HasColumnType("varchar(50)")
  8479. .HasCharSet("utf8")
  8480. .HasCollation("utf8_general_ci");
  8481. entity.Property(e => e.Icon)
  8482. .HasColumnType("varchar(200)")
  8483. .HasCharSet("utf8")
  8484. .HasCollation("utf8_general_ci");
  8485. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8486. entity.Property(e => e.SeoDescription)
  8487. .HasColumnType("varchar(500)")
  8488. .HasCharSet("utf8")
  8489. .HasCollation("utf8_general_ci");
  8490. entity.Property(e => e.SeoKeyword)
  8491. .HasColumnType("varchar(200)")
  8492. .HasCharSet("utf8")
  8493. .HasCollation("utf8_general_ci");
  8494. entity.Property(e => e.SeoTitle)
  8495. .HasColumnType("varchar(100)")
  8496. .HasCharSet("utf8")
  8497. .HasCollation("utf8_general_ci");
  8498. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8499. entity.Property(e => e.Status).HasColumnType("int(11)");
  8500. entity.Property(e => e.Title)
  8501. .HasColumnType("varchar(50)")
  8502. .HasCharSet("utf8")
  8503. .HasCollation("utf8_general_ci");
  8504. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8505. entity.Property(e => e.UpdateMan)
  8506. .HasColumnType("varchar(50)")
  8507. .HasCharSet("utf8")
  8508. .HasCollation("utf8_general_ci");
  8509. entity.Property(e => e.Url)
  8510. .HasColumnType("varchar(50)")
  8511. .HasCharSet("utf8")
  8512. .HasCollation("utf8_general_ci");
  8513. entity.Property(e => e.Version).HasColumnType("int(11)");
  8514. });
  8515. modelBuilder.Entity<UserCollection>(entity =>
  8516. {
  8517. entity.Property(e => e.Id).HasColumnType("int(11)");
  8518. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8519. entity.Property(e => e.CreateMan)
  8520. .HasColumnType("varchar(50)")
  8521. .HasCharSet("utf8")
  8522. .HasCollation("utf8_general_ci");
  8523. entity.Property(e => e.DataId).HasColumnType("int(11)");
  8524. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8525. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8526. entity.Property(e => e.SeoDescription)
  8527. .HasColumnType("varchar(500)")
  8528. .HasCharSet("utf8")
  8529. .HasCollation("utf8_general_ci");
  8530. entity.Property(e => e.SeoKeyword)
  8531. .HasColumnType("varchar(200)")
  8532. .HasCharSet("utf8")
  8533. .HasCollation("utf8_general_ci");
  8534. entity.Property(e => e.SeoTitle)
  8535. .HasColumnType("varchar(100)")
  8536. .HasCharSet("utf8")
  8537. .HasCollation("utf8_general_ci");
  8538. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8539. entity.Property(e => e.Status).HasColumnType("int(11)");
  8540. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8541. entity.Property(e => e.UpdateMan)
  8542. .HasColumnType("varchar(50)")
  8543. .HasCharSet("utf8")
  8544. .HasCollation("utf8_general_ci");
  8545. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8546. entity.Property(e => e.Version).HasColumnType("int(11)");
  8547. });
  8548. modelBuilder.Entity<UserData>(entity =>
  8549. {
  8550. entity.HasKey(e => e.UserId)
  8551. .HasName("PRIMARY");
  8552. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8553. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  8554. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  8555. entity.Property(e => e.CollectionCount).HasColumnType("int(11)");
  8556. entity.Property(e => e.Coupons).HasColumnType("decimal(18,2)");
  8557. entity.Property(e => e.CurMoney).HasColumnType("decimal(18,2)");
  8558. entity.Property(e => e.FansCount).HasColumnType("int(11)");
  8559. entity.Property(e => e.FollowCount).HasColumnType("int(11)");
  8560. entity.Property(e => e.GrowthValue).HasColumnType("int(11)");
  8561. entity.Property(e => e.Integral).HasColumnType("decimal(18,2)");
  8562. entity.Property(e => e.MachineCount).HasColumnType("int(11)");
  8563. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  8564. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  8565. entity.Property(e => e.ToCommentOrderCount).HasColumnType("int(11)");
  8566. entity.Property(e => e.ToPayOrderCount).HasColumnType("int(11)");
  8567. entity.Property(e => e.ToReceiveOrderCount).HasColumnType("int(11)");
  8568. entity.Property(e => e.ToRefundOrderCount).HasColumnType("int(11)");
  8569. entity.Property(e => e.ToSendOrderCount).HasColumnType("int(11)");
  8570. entity.Property(e => e.TotalOrderMoney).HasColumnType("decimal(18,2)");
  8571. entity.Property(e => e.TotalUseIntegral).HasColumnType("decimal(18,2)");
  8572. });
  8573. modelBuilder.Entity<UserDetail>(entity =>
  8574. {
  8575. entity.Property(e => e.Id).HasColumnType("int(11)");
  8576. entity.Property(e => e.AddMan).HasColumnType("int(11)");
  8577. entity.Property(e => e.Birthday).HasColumnType("datetime");
  8578. entity.Property(e => e.CardAddAddress).HasColumnType("int(11)");
  8579. entity.Property(e => e.CardExpireDate).HasColumnType("datetime");
  8580. entity.Property(e => e.EduLevel).HasColumnType("int(11)");
  8581. entity.Property(e => e.Email)
  8582. .HasColumnType("varchar(50)")
  8583. .HasCharSet("utf8")
  8584. .HasCollation("utf8_general_ci");
  8585. entity.Property(e => e.FamilyIncome).HasColumnType("int(11)");
  8586. entity.Property(e => e.Interests)
  8587. .HasColumnType("varchar(200)")
  8588. .HasCharSet("utf8")
  8589. .HasCollation("utf8_general_ci");
  8590. entity.Property(e => e.Note)
  8591. .HasColumnType("longtext")
  8592. .HasCharSet("utf8")
  8593. .HasCollation("utf8_general_ci");
  8594. entity.Property(e => e.OfficePhone)
  8595. .HasColumnType("varchar(50)")
  8596. .HasCharSet("utf8")
  8597. .HasCollation("utf8_general_ci");
  8598. entity.Property(e => e.PostalCode)
  8599. .HasColumnType("varchar(6)")
  8600. .HasCharSet("utf8")
  8601. .HasCollation("utf8_general_ci");
  8602. entity.Property(e => e.PrivatePhone)
  8603. .HasColumnType("varchar(50)")
  8604. .HasCharSet("utf8")
  8605. .HasCollation("utf8_general_ci");
  8606. entity.Property(e => e.ToShopDate).HasColumnType("datetime");
  8607. entity.Property(e => e.TrafficTool).HasColumnType("int(11)");
  8608. entity.Property(e => e.UpdateMan).HasColumnType("int(11)");
  8609. entity.Property(e => e.UserJob).HasColumnType("int(11)");
  8610. });
  8611. modelBuilder.Entity<UserFamilyMember>(entity =>
  8612. {
  8613. entity.Property(e => e.Id).HasColumnType("int(11)");
  8614. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8615. entity.Property(e => e.CreateMan)
  8616. .HasColumnType("varchar(50)")
  8617. .HasCharSet("utf8")
  8618. .HasCollation("utf8_general_ci");
  8619. entity.Property(e => e.IdCardNo)
  8620. .HasColumnType("varchar(18)")
  8621. .HasCharSet("utf8")
  8622. .HasCollation("utf8_general_ci");
  8623. entity.Property(e => e.Job).HasColumnType("int(11)");
  8624. entity.Property(e => e.MemberKind).HasColumnType("int(11)");
  8625. entity.Property(e => e.Mobile)
  8626. .HasColumnType("varchar(11)")
  8627. .HasCharSet("utf8")
  8628. .HasCollation("utf8_general_ci");
  8629. entity.Property(e => e.Name)
  8630. .HasColumnType("varchar(20)")
  8631. .HasCharSet("utf8")
  8632. .HasCollation("utf8_general_ci");
  8633. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8634. entity.Property(e => e.SeoDescription)
  8635. .HasColumnType("varchar(500)")
  8636. .HasCharSet("utf8")
  8637. .HasCollation("utf8_general_ci");
  8638. entity.Property(e => e.SeoKeyword)
  8639. .HasColumnType("varchar(200)")
  8640. .HasCharSet("utf8")
  8641. .HasCollation("utf8_general_ci");
  8642. entity.Property(e => e.SeoTitle)
  8643. .HasColumnType("varchar(100)")
  8644. .HasCharSet("utf8")
  8645. .HasCollation("utf8_general_ci");
  8646. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8647. entity.Property(e => e.Status).HasColumnType("int(11)");
  8648. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8649. entity.Property(e => e.UpdateMan)
  8650. .HasColumnType("varchar(50)")
  8651. .HasCharSet("utf8")
  8652. .HasCollation("utf8_general_ci");
  8653. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8654. entity.Property(e => e.Version).HasColumnType("int(11)");
  8655. });
  8656. modelBuilder.Entity<UserForMakerCode>(entity =>
  8657. {
  8658. entity.HasKey(e => e.MakerCode)
  8659. .HasName("PRIMARY");
  8660. entity.Property(e => e.MakerCode)
  8661. .HasColumnType("varchar(30)")
  8662. .HasCharSet("utf8")
  8663. .HasCollation("utf8_general_ci");
  8664. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8665. });
  8666. modelBuilder.Entity<UserForMobile>(entity =>
  8667. {
  8668. entity.HasKey(e => e.Mobile)
  8669. .HasName("PRIMARY");
  8670. entity.Property(e => e.Mobile)
  8671. .HasColumnType("varchar(11)")
  8672. .HasCharSet("utf8")
  8673. .HasCollation("utf8_general_ci");
  8674. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8675. });
  8676. modelBuilder.Entity<UserForRealName>(entity =>
  8677. {
  8678. entity.HasKey(e => e.RealName)
  8679. .HasName("PRIMARY");
  8680. entity.Property(e => e.RealName)
  8681. .HasColumnType("varchar(30)")
  8682. .HasCharSet("utf8")
  8683. .HasCollation("utf8_general_ci");
  8684. entity.Property(e => e.UserId)
  8685. .HasColumnType("varchar(100)")
  8686. .HasCharSet("utf8")
  8687. .HasCollation("utf8_general_ci");
  8688. });
  8689. modelBuilder.Entity<UserFriend>(entity =>
  8690. {
  8691. entity.Property(e => e.Id).HasColumnType("int(11)");
  8692. entity.Property(e => e.FriendId).HasColumnType("int(11)");
  8693. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8694. });
  8695. modelBuilder.Entity<UserGroup>(entity =>
  8696. {
  8697. entity.Property(e => e.Id).HasColumnType("int(11)");
  8698. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8699. entity.Property(e => e.CreateMan)
  8700. .HasColumnType("varchar(50)")
  8701. .HasCharSet("utf8")
  8702. .HasCollation("utf8_general_ci");
  8703. entity.Property(e => e.Details)
  8704. .HasColumnType("varchar(200)")
  8705. .HasCharSet("utf8")
  8706. .HasCollation("utf8_general_ci");
  8707. entity.Property(e => e.Name)
  8708. .HasColumnType("varchar(20)")
  8709. .HasCharSet("utf8")
  8710. .HasCollation("utf8_general_ci");
  8711. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8712. entity.Property(e => e.SeoDescription)
  8713. .HasColumnType("varchar(500)")
  8714. .HasCharSet("utf8")
  8715. .HasCollation("utf8_general_ci");
  8716. entity.Property(e => e.SeoKeyword)
  8717. .HasColumnType("varchar(200)")
  8718. .HasCharSet("utf8")
  8719. .HasCollation("utf8_general_ci");
  8720. entity.Property(e => e.SeoTitle)
  8721. .HasColumnType("varchar(100)")
  8722. .HasCharSet("utf8")
  8723. .HasCollation("utf8_general_ci");
  8724. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8725. entity.Property(e => e.Status).HasColumnType("int(11)");
  8726. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8727. entity.Property(e => e.UpdateMan)
  8728. .HasColumnType("varchar(50)")
  8729. .HasCharSet("utf8")
  8730. .HasCollation("utf8_general_ci");
  8731. entity.Property(e => e.Version).HasColumnType("int(11)");
  8732. });
  8733. modelBuilder.Entity<UserLevelSet>(entity =>
  8734. {
  8735. entity.Property(e => e.Id).HasColumnType("int(11)");
  8736. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8737. entity.Property(e => e.CreateMan)
  8738. .HasColumnType("varchar(50)")
  8739. .HasCharSet("utf8")
  8740. .HasCollation("utf8_general_ci");
  8741. entity.Property(e => e.Details)
  8742. .HasColumnType("varchar(200)")
  8743. .HasCharSet("utf8")
  8744. .HasCollation("utf8_general_ci");
  8745. entity.Property(e => e.Name)
  8746. .HasColumnType("varchar(20)")
  8747. .HasCharSet("utf8")
  8748. .HasCollation("utf8_general_ci");
  8749. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8750. entity.Property(e => e.SeoDescription)
  8751. .HasColumnType("varchar(500)")
  8752. .HasCharSet("utf8")
  8753. .HasCollation("utf8_general_ci");
  8754. entity.Property(e => e.SeoKeyword)
  8755. .HasColumnType("varchar(200)")
  8756. .HasCharSet("utf8")
  8757. .HasCollation("utf8_general_ci");
  8758. entity.Property(e => e.SeoTitle)
  8759. .HasColumnType("varchar(100)")
  8760. .HasCharSet("utf8")
  8761. .HasCollation("utf8_general_ci");
  8762. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8763. entity.Property(e => e.Status).HasColumnType("int(11)");
  8764. entity.Property(e => e.UpLevelDays).HasColumnType("int(11)");
  8765. entity.Property(e => e.UpLevelGrowth).HasColumnType("int(11)");
  8766. entity.Property(e => e.UpLevelIntegral).HasColumnType("decimal(10,0)");
  8767. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8768. entity.Property(e => e.UpdateMan)
  8769. .HasColumnType("varchar(50)")
  8770. .HasCharSet("utf8")
  8771. .HasCollation("utf8_general_ci");
  8772. entity.Property(e => e.Version).HasColumnType("int(11)");
  8773. });
  8774. modelBuilder.Entity<UserLoginRecord>(entity =>
  8775. {
  8776. entity.Property(e => e.Id).HasColumnType("int(11)");
  8777. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8778. entity.Property(e => e.CreateMan)
  8779. .HasColumnType("varchar(50)")
  8780. .HasCharSet("utf8")
  8781. .HasCollation("utf8_general_ci");
  8782. entity.Property(e => e.Kind).HasColumnType("int(11)");
  8783. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8784. entity.Property(e => e.SeoDescription)
  8785. .HasColumnType("varchar(500)")
  8786. .HasCharSet("utf8")
  8787. .HasCollation("utf8_general_ci");
  8788. entity.Property(e => e.SeoKeyword)
  8789. .HasColumnType("varchar(200)")
  8790. .HasCharSet("utf8")
  8791. .HasCollation("utf8_general_ci");
  8792. entity.Property(e => e.SeoTitle)
  8793. .HasColumnType("varchar(100)")
  8794. .HasCharSet("utf8")
  8795. .HasCollation("utf8_general_ci");
  8796. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8797. entity.Property(e => e.Status).HasColumnType("int(11)");
  8798. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8799. entity.Property(e => e.UpdateMan)
  8800. .HasColumnType("varchar(50)")
  8801. .HasCharSet("utf8")
  8802. .HasCollation("utf8_general_ci");
  8803. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8804. entity.Property(e => e.Version).HasColumnType("int(11)");
  8805. });
  8806. modelBuilder.Entity<UserMachineData>(entity =>
  8807. {
  8808. entity.HasKey(e => e.IdBrand)
  8809. .HasName("PRIMARY");
  8810. entity.Property(e => e.IdBrand)
  8811. .HasColumnType("varchar(50)")
  8812. .HasCharSet("utf8")
  8813. .HasCollation("utf8_general_ci");
  8814. entity.Property(e => e.ActProfit).HasColumnType("decimal(18,2)");
  8815. entity.Property(e => e.BindCount).HasColumnType("int(11)");
  8816. entity.Property(e => e.DividendsProfit).HasColumnType("decimal(18,2)");
  8817. entity.Property(e => e.FluxProfit).HasColumnType("decimal(18,2)");
  8818. entity.Property(e => e.OpenProfit).HasColumnType("decimal(18,2)");
  8819. entity.Property(e => e.OtherProfit).HasColumnType("decimal(18,2)");
  8820. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  8821. entity.Property(e => e.TradeProfit).HasColumnType("decimal(18,2)");
  8822. entity.Property(e => e.UnBindCount).HasColumnType("int(11)");
  8823. });
  8824. modelBuilder.Entity<UserMallLargeSn>(entity =>
  8825. {
  8826. entity.Property(e => e.Id).HasColumnType("int(11)");
  8827. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8828. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8829. entity.Property(e => e.CreateMan)
  8830. .HasColumnType("varchar(50)")
  8831. .HasCharSet("utf8")
  8832. .HasCollation("utf8_general_ci");
  8833. entity.Property(e => e.OrderAmount).HasColumnType("decimal(18,2)");
  8834. entity.Property(e => e.OrderNo)
  8835. .HasColumnType("varchar(32)")
  8836. .HasCharSet("utf8")
  8837. .HasCollation("utf8_general_ci");
  8838. entity.Property(e => e.OrderNum).HasColumnType("int(11)");
  8839. entity.Property(e => e.ProductName)
  8840. .HasColumnType("varchar(32)")
  8841. .HasCharSet("utf8")
  8842. .HasCollation("utf8_general_ci");
  8843. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8844. entity.Property(e => e.Remark)
  8845. .HasColumnType("varchar(64)")
  8846. .HasCharSet("utf8")
  8847. .HasCollation("utf8_general_ci");
  8848. entity.Property(e => e.RuleOrderAmt).HasColumnType("decimal(18,2)");
  8849. entity.Property(e => e.SeoDescription)
  8850. .HasColumnType("varchar(500)")
  8851. .HasCharSet("utf8")
  8852. .HasCollation("utf8_general_ci");
  8853. entity.Property(e => e.SeoKeyword)
  8854. .HasColumnType("varchar(200)")
  8855. .HasCharSet("utf8")
  8856. .HasCollation("utf8_general_ci");
  8857. entity.Property(e => e.SeoTitle)
  8858. .HasColumnType("varchar(100)")
  8859. .HasCharSet("utf8")
  8860. .HasCollation("utf8_general_ci");
  8861. entity.Property(e => e.SnNo)
  8862. .HasColumnType("varchar(32)")
  8863. .HasCharSet("utf8")
  8864. .HasCollation("utf8_general_ci");
  8865. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  8866. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  8867. entity.Property(e => e.SnType).HasColumnType("int(11)");
  8868. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8869. entity.Property(e => e.Status).HasColumnType("int(11)");
  8870. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  8871. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8872. entity.Property(e => e.UpdateMan)
  8873. .HasColumnType("varchar(50)")
  8874. .HasCharSet("utf8")
  8875. .HasCollation("utf8_general_ci");
  8876. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8877. entity.Property(e => e.Version).HasColumnType("int(11)");
  8878. });
  8879. modelBuilder.Entity<UserOfflineSignInRecords>(entity =>
  8880. {
  8881. entity.Property(e => e.Id).HasColumnType("int(11)");
  8882. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8883. entity.Property(e => e.CreateMan)
  8884. .HasColumnType("varchar(50)")
  8885. .HasCharSet("utf8")
  8886. .HasCollation("utf8_general_ci");
  8887. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  8888. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8889. entity.Property(e => e.SeoDescription)
  8890. .HasColumnType("varchar(500)")
  8891. .HasCharSet("utf8")
  8892. .HasCollation("utf8_general_ci");
  8893. entity.Property(e => e.SeoKeyword)
  8894. .HasColumnType("varchar(200)")
  8895. .HasCharSet("utf8")
  8896. .HasCollation("utf8_general_ci");
  8897. entity.Property(e => e.SeoTitle)
  8898. .HasColumnType("varchar(100)")
  8899. .HasCharSet("utf8")
  8900. .HasCollation("utf8_general_ci");
  8901. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8902. entity.Property(e => e.Status).HasColumnType("int(11)");
  8903. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8904. entity.Property(e => e.UpdateMan)
  8905. .HasColumnType("varchar(50)")
  8906. .HasCharSet("utf8")
  8907. .HasCollation("utf8_general_ci");
  8908. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8909. entity.Property(e => e.Version).HasColumnType("int(11)");
  8910. });
  8911. modelBuilder.Entity<UserProfit>(entity =>
  8912. {
  8913. entity.Property(e => e.Id).HasColumnType("int(11)");
  8914. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8915. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8916. entity.Property(e => e.CardType)
  8917. .HasColumnType("varchar(10)")
  8918. .HasCharSet("utf8")
  8919. .HasCollation("utf8_general_ci");
  8920. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8921. entity.Property(e => e.CreateMan)
  8922. .HasColumnType("varchar(50)")
  8923. .HasCharSet("utf8")
  8924. .HasCollation("utf8_general_ci");
  8925. entity.Property(e => e.HelpAddOrSubRate).HasColumnType("decimal(18,2)");
  8926. entity.Property(e => e.HelpProfitPercent).HasColumnType("decimal(18,2)");
  8927. entity.Property(e => e.HelpProfitRate).HasColumnType("decimal(18,2)");
  8928. entity.Property(e => e.HelpProfitRateBase).HasColumnType("decimal(18,2)");
  8929. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8930. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8931. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8932. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8933. entity.Property(e => e.Remark)
  8934. .HasColumnType("varchar(64)")
  8935. .HasCharSet("utf8")
  8936. .HasCollation("utf8_general_ci");
  8937. entity.Property(e => e.SeoDescription)
  8938. .HasColumnType("varchar(500)")
  8939. .HasCharSet("utf8")
  8940. .HasCollation("utf8_general_ci");
  8941. entity.Property(e => e.SeoKeyword)
  8942. .HasColumnType("varchar(200)")
  8943. .HasCharSet("utf8")
  8944. .HasCollation("utf8_general_ci");
  8945. entity.Property(e => e.SeoTitle)
  8946. .HasColumnType("varchar(100)")
  8947. .HasCharSet("utf8")
  8948. .HasCollation("utf8_general_ci");
  8949. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8950. entity.Property(e => e.Status).HasColumnType("int(11)");
  8951. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8952. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8953. entity.Property(e => e.UpdateMan)
  8954. .HasColumnType("varchar(50)")
  8955. .HasCharSet("utf8")
  8956. .HasCollation("utf8_general_ci");
  8957. entity.Property(e => e.UserId).HasColumnType("int(11)");
  8958. entity.Property(e => e.Version).HasColumnType("int(11)");
  8959. });
  8960. modelBuilder.Entity<UserProfitSet>(entity =>
  8961. {
  8962. entity.Property(e => e.Id).HasColumnType("int(11)");
  8963. entity.Property(e => e.AddOrSubRate).HasColumnType("decimal(18,2)");
  8964. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  8965. entity.Property(e => e.CardType).HasColumnType("int(11)");
  8966. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  8967. entity.Property(e => e.CreateMan)
  8968. .HasColumnType("varchar(50)")
  8969. .HasCharSet("utf8")
  8970. .HasCollation("utf8_general_ci");
  8971. entity.Property(e => e.HelpFlag).HasColumnType("int(11)");
  8972. entity.Property(e => e.ProfitPercent).HasColumnType("decimal(18,2)");
  8973. entity.Property(e => e.ProfitRate).HasColumnType("decimal(18,2)");
  8974. entity.Property(e => e.ProfitRateBase).HasColumnType("decimal(18,2)");
  8975. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  8976. entity.Property(e => e.Remark)
  8977. .HasColumnType("varchar(64)")
  8978. .HasCharSet("utf8")
  8979. .HasCollation("utf8_general_ci");
  8980. entity.Property(e => e.SeoDescription)
  8981. .HasColumnType("varchar(500)")
  8982. .HasCharSet("utf8")
  8983. .HasCollation("utf8_general_ci");
  8984. entity.Property(e => e.SeoKeyword)
  8985. .HasColumnType("varchar(200)")
  8986. .HasCharSet("utf8")
  8987. .HasCollation("utf8_general_ci");
  8988. entity.Property(e => e.SeoTitle)
  8989. .HasColumnType("varchar(100)")
  8990. .HasCharSet("utf8")
  8991. .HasCollation("utf8_general_ci");
  8992. entity.Property(e => e.Sort).HasColumnType("int(11)");
  8993. entity.Property(e => e.Status).HasColumnType("int(11)");
  8994. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  8995. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  8996. entity.Property(e => e.UpdateMan)
  8997. .HasColumnType("varchar(50)")
  8998. .HasCharSet("utf8")
  8999. .HasCollation("utf8_general_ci");
  9000. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9001. entity.Property(e => e.Version).HasColumnType("int(11)");
  9002. });
  9003. modelBuilder.Entity<UserProfitSubsidySummary>(entity =>
  9004. {
  9005. entity.Property(e => e.Id).HasColumnType("int(11)");
  9006. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9007. entity.Property(e => e.CheckStatus).HasColumnType("int(11)");
  9008. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9009. entity.Property(e => e.CreateMan)
  9010. .HasColumnType("varchar(50)")
  9011. .HasCharSet("utf8")
  9012. .HasCollation("utf8_general_ci");
  9013. entity.Property(e => e.MgrName)
  9014. .HasColumnType("varchar(32)")
  9015. .HasCharSet("utf8")
  9016. .HasCollation("utf8_general_ci");
  9017. entity.Property(e => e.MgrNo)
  9018. .HasColumnType("varchar(16)")
  9019. .HasCharSet("utf8")
  9020. .HasCollation("utf8_general_ci");
  9021. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9022. entity.Property(e => e.SeoDescription)
  9023. .HasColumnType("varchar(500)")
  9024. .HasCharSet("utf8")
  9025. .HasCollation("utf8_general_ci");
  9026. entity.Property(e => e.SeoKeyword)
  9027. .HasColumnType("varchar(200)")
  9028. .HasCharSet("utf8")
  9029. .HasCollation("utf8_general_ci");
  9030. entity.Property(e => e.SeoTitle)
  9031. .HasColumnType("varchar(100)")
  9032. .HasCharSet("utf8")
  9033. .HasCollation("utf8_general_ci");
  9034. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9035. entity.Property(e => e.Status).HasColumnType("int(11)");
  9036. entity.Property(e => e.SubsidyDirectProfit).HasColumnType("decimal(18,2)");
  9037. entity.Property(e => e.SubsidyJuniorProfit).HasColumnType("decimal(18,2)");
  9038. entity.Property(e => e.SubsidyTotalProfit).HasColumnType("decimal(18,2)");
  9039. entity.Property(e => e.TradeMonth)
  9040. .HasColumnType("varchar(6)")
  9041. .HasCharSet("utf8")
  9042. .HasCollation("utf8_general_ci");
  9043. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9044. entity.Property(e => e.UpdateMan)
  9045. .HasColumnType("varchar(50)")
  9046. .HasCharSet("utf8")
  9047. .HasCollation("utf8_general_ci");
  9048. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9049. entity.Property(e => e.Version).HasColumnType("int(11)");
  9050. });
  9051. modelBuilder.Entity<UserRank>(entity =>
  9052. {
  9053. entity.Property(e => e.Id).HasColumnType("int(11)");
  9054. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9055. entity.Property(e => e.CreateMan)
  9056. .HasColumnType("varchar(50)")
  9057. .HasCharSet("utf8")
  9058. .HasCollation("utf8_general_ci");
  9059. entity.Property(e => e.ExceedVal).HasColumnType("int(11)");
  9060. entity.Property(e => e.NextRank).HasColumnType("int(11)");
  9061. entity.Property(e => e.OperateDate).HasColumnType("datetime");
  9062. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9063. entity.Property(e => e.Rank).HasColumnType("int(11)");
  9064. entity.Property(e => e.SeoDescription)
  9065. .HasColumnType("varchar(500)")
  9066. .HasCharSet("utf8")
  9067. .HasCollation("utf8_general_ci");
  9068. entity.Property(e => e.SeoKeyword)
  9069. .HasColumnType("varchar(200)")
  9070. .HasCharSet("utf8")
  9071. .HasCollation("utf8_general_ci");
  9072. entity.Property(e => e.SeoTitle)
  9073. .HasColumnType("varchar(100)")
  9074. .HasCharSet("utf8")
  9075. .HasCollation("utf8_general_ci");
  9076. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9077. entity.Property(e => e.StatMonth).HasColumnType("int(11)");
  9078. entity.Property(e => e.StatYear).HasColumnType("int(11)");
  9079. entity.Property(e => e.Status).HasColumnType("int(11)");
  9080. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9081. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9082. entity.Property(e => e.UpdateMan)
  9083. .HasColumnType("varchar(50)")
  9084. .HasCharSet("utf8")
  9085. .HasCollation("utf8_general_ci");
  9086. entity.Property(e => e.UpgradeFlag)
  9087. .HasColumnType("bit(1)")
  9088. .HasDefaultValueSql("b'0'");
  9089. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9090. entity.Property(e => e.Version).HasColumnType("int(11)");
  9091. entity.Property(e => e.WhiteRank).HasColumnType("int(11)");
  9092. });
  9093. modelBuilder.Entity<UserRankWhite>(entity =>
  9094. {
  9095. entity.Property(e => e.Id).HasColumnType("int(11)");
  9096. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9097. entity.Property(e => e.CreateMan)
  9098. .HasColumnType("varchar(50)")
  9099. .HasCharSet("utf8")
  9100. .HasCollation("utf8_general_ci");
  9101. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9102. entity.Property(e => e.Rank).HasColumnType("int(11)");
  9103. entity.Property(e => e.SeoDescription)
  9104. .HasColumnType("varchar(500)")
  9105. .HasCharSet("utf8")
  9106. .HasCollation("utf8_general_ci");
  9107. entity.Property(e => e.SeoKeyword)
  9108. .HasColumnType("varchar(200)")
  9109. .HasCharSet("utf8")
  9110. .HasCollation("utf8_general_ci");
  9111. entity.Property(e => e.SeoTitle)
  9112. .HasColumnType("varchar(100)")
  9113. .HasCharSet("utf8")
  9114. .HasCollation("utf8_general_ci");
  9115. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9116. entity.Property(e => e.Status).HasColumnType("int(11)");
  9117. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9118. entity.Property(e => e.UpdateMan)
  9119. .HasColumnType("varchar(50)")
  9120. .HasCharSet("utf8")
  9121. .HasCollation("utf8_general_ci");
  9122. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9123. entity.Property(e => e.Version).HasColumnType("int(11)");
  9124. });
  9125. modelBuilder.Entity<UserRebateDetail>(entity =>
  9126. {
  9127. entity.Property(e => e.Id).HasColumnType("int(11)");
  9128. entity.Property(e => e.ChannelMerNo)
  9129. .HasColumnType("varchar(32)")
  9130. .HasCharSet("utf8")
  9131. .HasCollation("utf8_general_ci");
  9132. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9133. entity.Property(e => e.CreateMan)
  9134. .HasColumnType("varchar(50)")
  9135. .HasCharSet("utf8")
  9136. .HasCollation("utf8_general_ci");
  9137. entity.Property(e => e.CreditRewardAmount).HasColumnType("decimal(18,2)");
  9138. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9139. entity.Property(e => e.DebitRewardAmount).HasColumnType("decimal(18,2)");
  9140. entity.Property(e => e.DebitTradeAmt).HasColumnType("decimal(18,2)");
  9141. entity.Property(e => e.MerchantId).HasColumnType("int(11)");
  9142. entity.Property(e => e.MgrName)
  9143. .HasColumnType("varchar(32)")
  9144. .HasCharSet("utf8")
  9145. .HasCollation("utf8_general_ci");
  9146. entity.Property(e => e.MgrNo)
  9147. .HasColumnType("varchar(16)")
  9148. .HasCharSet("utf8")
  9149. .HasCollation("utf8_general_ci");
  9150. entity.Property(e => e.ProductName)
  9151. .HasColumnType("varchar(32)")
  9152. .HasCharSet("utf8")
  9153. .HasCollation("utf8_general_ci");
  9154. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  9155. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9156. entity.Property(e => e.RebateMonthCount).HasColumnType("int(11)");
  9157. entity.Property(e => e.RebateRewardNo)
  9158. .HasColumnType("varchar(32)")
  9159. .HasCharSet("utf8")
  9160. .HasCollation("utf8_general_ci");
  9161. entity.Property(e => e.RebateType).HasColumnType("int(11)");
  9162. entity.Property(e => e.Remark)
  9163. .HasColumnType("varchar(64)")
  9164. .HasCharSet("utf8")
  9165. .HasCollation("utf8_general_ci");
  9166. entity.Property(e => e.SeoDescription)
  9167. .HasColumnType("varchar(500)")
  9168. .HasCharSet("utf8")
  9169. .HasCollation("utf8_general_ci");
  9170. entity.Property(e => e.SeoKeyword)
  9171. .HasColumnType("varchar(200)")
  9172. .HasCharSet("utf8")
  9173. .HasCollation("utf8_general_ci");
  9174. entity.Property(e => e.SeoTitle)
  9175. .HasColumnType("varchar(100)")
  9176. .HasCharSet("utf8")
  9177. .HasCollation("utf8_general_ci");
  9178. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9179. entity.Property(e => e.Status).HasColumnType("int(11)");
  9180. entity.Property(e => e.TradeDate)
  9181. .HasColumnType("varchar(8)")
  9182. .HasCharSet("utf8")
  9183. .HasCollation("utf8_general_ci");
  9184. entity.Property(e => e.TradeMonth)
  9185. .HasColumnType("varchar(6)")
  9186. .HasCharSet("utf8")
  9187. .HasCollation("utf8_general_ci");
  9188. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9189. entity.Property(e => e.UpdateMan)
  9190. .HasColumnType("varchar(50)")
  9191. .HasCharSet("utf8")
  9192. .HasCollation("utf8_general_ci");
  9193. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9194. entity.Property(e => e.Version).HasColumnType("int(11)");
  9195. });
  9196. modelBuilder.Entity<UserSnActInfo>(entity =>
  9197. {
  9198. entity.Property(e => e.Id).HasColumnType("int(11)");
  9199. entity.Property(e => e.ActUserId).HasColumnType("int(11)");
  9200. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9201. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9202. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9203. entity.Property(e => e.CreateMan)
  9204. .HasColumnType("varchar(50)")
  9205. .HasCharSet("utf8")
  9206. .HasCollation("utf8_general_ci");
  9207. entity.Property(e => e.EffectEndActDate)
  9208. .HasColumnType("varchar(8)")
  9209. .HasCharSet("utf8")
  9210. .HasCollation("utf8_general_ci");
  9211. entity.Property(e => e.EffectEndCycleDate)
  9212. .HasColumnType("varchar(8)")
  9213. .HasCharSet("utf8")
  9214. .HasCollation("utf8_general_ci");
  9215. entity.Property(e => e.EffectStartActDate)
  9216. .HasColumnType("varchar(8)")
  9217. .HasCharSet("utf8")
  9218. .HasCollation("utf8_general_ci");
  9219. entity.Property(e => e.EffectStartCycleDate)
  9220. .HasColumnType("varchar(8)")
  9221. .HasCharSet("utf8")
  9222. .HasCollation("utf8_general_ci");
  9223. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9224. entity.Property(e => e.Remark)
  9225. .HasColumnType("varchar(128)")
  9226. .HasCharSet("utf8")
  9227. .HasCollation("utf8_general_ci");
  9228. entity.Property(e => e.SeoDescription)
  9229. .HasColumnType("varchar(500)")
  9230. .HasCharSet("utf8")
  9231. .HasCollation("utf8_general_ci");
  9232. entity.Property(e => e.SeoKeyword)
  9233. .HasColumnType("varchar(200)")
  9234. .HasCharSet("utf8")
  9235. .HasCollation("utf8_general_ci");
  9236. entity.Property(e => e.SeoTitle)
  9237. .HasColumnType("varchar(100)")
  9238. .HasCharSet("utf8")
  9239. .HasCollation("utf8_general_ci");
  9240. entity.Property(e => e.SnNo)
  9241. .HasColumnType("varchar(32)")
  9242. .HasCharSet("utf8")
  9243. .HasCollation("utf8_general_ci");
  9244. entity.Property(e => e.SnShipDate).HasColumnType("datetime");
  9245. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9246. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9247. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9248. entity.Property(e => e.SourceShipDate).HasColumnType("datetime");
  9249. entity.Property(e => e.SourceSnNo)
  9250. .HasColumnType("varchar(32)")
  9251. .HasCharSet("utf8")
  9252. .HasCollation("utf8_general_ci");
  9253. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9254. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9255. entity.Property(e => e.StandardDate)
  9256. .HasColumnType("varchar(8)")
  9257. .HasCharSet("utf8")
  9258. .HasCollation("utf8_general_ci");
  9259. entity.Property(e => e.Status).HasColumnType("int(11)");
  9260. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9261. entity.Property(e => e.UpdateMan)
  9262. .HasColumnType("varchar(50)")
  9263. .HasCharSet("utf8")
  9264. .HasCollation("utf8_general_ci");
  9265. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9266. entity.Property(e => e.Version).HasColumnType("int(11)");
  9267. });
  9268. modelBuilder.Entity<UserSnDelayChange>(entity =>
  9269. {
  9270. entity.Property(e => e.Id).HasColumnType("int(11)");
  9271. entity.Property(e => e.ActivityRuleId).HasColumnType("int(11)");
  9272. entity.Property(e => e.AfterEndCycleDate)
  9273. .HasColumnType("varchar(8)")
  9274. .HasCharSet("utf8")
  9275. .HasCollation("utf8_general_ci");
  9276. entity.Property(e => e.BeforeEndCycleDate)
  9277. .HasColumnType("varchar(8)")
  9278. .HasCharSet("utf8")
  9279. .HasCollation("utf8_general_ci");
  9280. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9281. entity.Property(e => e.ChangeRecordNo)
  9282. .HasColumnType("varchar(32)")
  9283. .HasCharSet("utf8")
  9284. .HasCollation("utf8_general_ci");
  9285. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9286. entity.Property(e => e.CreateMan)
  9287. .HasColumnType("varchar(50)")
  9288. .HasCharSet("utf8")
  9289. .HasCollation("utf8_general_ci");
  9290. entity.Property(e => e.InitCycleDate)
  9291. .HasColumnType("varchar(8)")
  9292. .HasCharSet("utf8")
  9293. .HasCollation("utf8_general_ci");
  9294. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9295. entity.Property(e => e.RecUserId).HasColumnType("int(11)");
  9296. entity.Property(e => e.Remark)
  9297. .HasColumnType("varchar(128)")
  9298. .HasCharSet("utf8")
  9299. .HasCollation("utf8_general_ci");
  9300. entity.Property(e => e.SeoDescription)
  9301. .HasColumnType("varchar(500)")
  9302. .HasCharSet("utf8")
  9303. .HasCollation("utf8_general_ci");
  9304. entity.Property(e => e.SeoKeyword)
  9305. .HasColumnType("varchar(200)")
  9306. .HasCharSet("utf8")
  9307. .HasCollation("utf8_general_ci");
  9308. entity.Property(e => e.SeoTitle)
  9309. .HasColumnType("varchar(100)")
  9310. .HasCharSet("utf8")
  9311. .HasCollation("utf8_general_ci");
  9312. entity.Property(e => e.SnDelayDay).HasColumnType("int(11)");
  9313. entity.Property(e => e.SnNo)
  9314. .HasColumnType("varchar(32)")
  9315. .HasCharSet("utf8")
  9316. .HasCollation("utf8_general_ci");
  9317. entity.Property(e => e.SnStoreId).HasColumnType("int(11)");
  9318. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9319. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9320. entity.Property(e => e.SourceSnNo)
  9321. .HasColumnType("varchar(32)")
  9322. .HasCharSet("utf8")
  9323. .HasCollation("utf8_general_ci");
  9324. entity.Property(e => e.SourceSnShipDate).HasColumnType("datetime");
  9325. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9326. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9327. entity.Property(e => e.Status).HasColumnType("int(11)");
  9328. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9329. entity.Property(e => e.UpdateMan)
  9330. .HasColumnType("varchar(50)")
  9331. .HasCharSet("utf8")
  9332. .HasCollation("utf8_general_ci");
  9333. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9334. entity.Property(e => e.Version).HasColumnType("int(11)");
  9335. });
  9336. modelBuilder.Entity<UserStoreChange>(entity =>
  9337. {
  9338. entity.Property(e => e.Id).HasColumnType("int(11)");
  9339. entity.Property(e => e.ActRewardUserId).HasColumnType("int(11)");
  9340. entity.Property(e => e.ActiveStatus).HasColumnType("int(11)");
  9341. entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
  9342. entity.Property(e => e.BindStatus).HasColumnType("int(11)");
  9343. entity.Property(e => e.BizBatchNo)
  9344. .HasColumnType("varchar(32)")
  9345. .HasCharSet("utf8")
  9346. .HasCollation("utf8_general_ci");
  9347. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9348. entity.Property(e => e.BrandType)
  9349. .HasColumnType("varchar(10)")
  9350. .HasCharSet("utf8")
  9351. .HasCollation("utf8_general_ci");
  9352. entity.Property(e => e.ChangeRecordNo)
  9353. .HasColumnType("varchar(32)")
  9354. .HasCharSet("utf8")
  9355. .HasCollation("utf8_general_ci");
  9356. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9357. entity.Property(e => e.CreateMan)
  9358. .HasColumnType("varchar(50)")
  9359. .HasCharSet("utf8")
  9360. .HasCollation("utf8_general_ci");
  9361. entity.Property(e => e.DeviceModel)
  9362. .HasColumnType("varchar(32)")
  9363. .HasCharSet("utf8")
  9364. .HasCollation("utf8_general_ci");
  9365. entity.Property(e => e.DeviceType)
  9366. .HasColumnType("varchar(32)")
  9367. .HasCharSet("utf8")
  9368. .HasCollation("utf8_general_ci");
  9369. entity.Property(e => e.DeviceVendor)
  9370. .HasColumnType("varchar(32)")
  9371. .HasCharSet("utf8")
  9372. .HasCollation("utf8_general_ci");
  9373. entity.Property(e => e.FromDate).HasColumnType("datetime");
  9374. entity.Property(e => e.FromRemark)
  9375. .HasColumnType("varchar(64)")
  9376. .HasCharSet("utf8")
  9377. .HasCollation("utf8_general_ci");
  9378. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  9379. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9380. entity.Property(e => e.SeoDescription)
  9381. .HasColumnType("varchar(500)")
  9382. .HasCharSet("utf8")
  9383. .HasCollation("utf8_general_ci");
  9384. entity.Property(e => e.SeoKeyword)
  9385. .HasColumnType("varchar(200)")
  9386. .HasCharSet("utf8")
  9387. .HasCollation("utf8_general_ci");
  9388. entity.Property(e => e.SeoTitle)
  9389. .HasColumnType("varchar(100)")
  9390. .HasCharSet("utf8")
  9391. .HasCollation("utf8_general_ci");
  9392. entity.Property(e => e.SnNo)
  9393. .HasColumnType("varchar(32)")
  9394. .HasCharSet("utf8")
  9395. .HasCollation("utf8_general_ci");
  9396. entity.Property(e => e.SnStatus).HasColumnType("int(11)");
  9397. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9398. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9399. entity.Property(e => e.SourceStoreId).HasColumnType("int(11)");
  9400. entity.Property(e => e.Status).HasColumnType("int(11)");
  9401. entity.Property(e => e.StockOpDirect).HasColumnType("int(11)");
  9402. entity.Property(e => e.ToDate).HasColumnType("datetime");
  9403. entity.Property(e => e.ToRemark)
  9404. .HasColumnType("varchar(64)")
  9405. .HasCharSet("utf8")
  9406. .HasCollation("utf8_general_ci");
  9407. entity.Property(e => e.ToStoreId).HasColumnType("int(11)");
  9408. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  9409. entity.Property(e => e.TransType).HasColumnType("int(11)");
  9410. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9411. entity.Property(e => e.UpdateMan)
  9412. .HasColumnType("varchar(50)")
  9413. .HasCharSet("utf8")
  9414. .HasCollation("utf8_general_ci");
  9415. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9416. entity.Property(e => e.Version).HasColumnType("int(11)");
  9417. });
  9418. modelBuilder.Entity<UserSwapDetail>(entity =>
  9419. {
  9420. entity.Property(e => e.Id).HasColumnType("int(11)");
  9421. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9422. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9423. entity.Property(e => e.CreateMan)
  9424. .HasColumnType("varchar(50)")
  9425. .HasCharSet("utf8")
  9426. .HasCollation("utf8_general_ci");
  9427. entity.Property(e => e.DirectSnTradeAmt).HasColumnType("decimal(18,2)");
  9428. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9429. entity.Property(e => e.RecordNo)
  9430. .HasColumnType("varchar(32)")
  9431. .HasCharSet("utf8")
  9432. .HasCollation("utf8_general_ci");
  9433. entity.Property(e => e.Remark)
  9434. .HasColumnType("varchar(64)")
  9435. .HasCharSet("utf8")
  9436. .HasCollation("utf8_general_ci");
  9437. entity.Property(e => e.RiskResult).HasColumnType("int(11)");
  9438. entity.Property(e => e.SeoDescription)
  9439. .HasColumnType("varchar(500)")
  9440. .HasCharSet("utf8")
  9441. .HasCollation("utf8_general_ci");
  9442. entity.Property(e => e.SeoKeyword)
  9443. .HasColumnType("varchar(200)")
  9444. .HasCharSet("utf8")
  9445. .HasCollation("utf8_general_ci");
  9446. entity.Property(e => e.SeoTitle)
  9447. .HasColumnType("varchar(100)")
  9448. .HasCharSet("utf8")
  9449. .HasCollation("utf8_general_ci");
  9450. entity.Property(e => e.SnNo)
  9451. .HasColumnType("varchar(32)")
  9452. .HasCharSet("utf8")
  9453. .HasCollation("utf8_general_ci");
  9454. entity.Property(e => e.SnType).HasColumnType("int(11)");
  9455. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9456. entity.Property(e => e.SourceSnNo)
  9457. .HasColumnType("varchar(32)")
  9458. .HasCharSet("utf8")
  9459. .HasCollation("utf8_general_ci");
  9460. entity.Property(e => e.SourceSnType).HasColumnType("int(11)");
  9461. entity.Property(e => e.Status).HasColumnType("int(11)");
  9462. entity.Property(e => e.SwapExtProductTypes)
  9463. .HasColumnType("varchar(16)")
  9464. .HasCharSet("utf8")
  9465. .HasCollation("utf8_general_ci");
  9466. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9467. entity.Property(e => e.TradeDate)
  9468. .HasColumnType("varchar(8)")
  9469. .HasCharSet("utf8")
  9470. .HasCollation("utf8_general_ci");
  9471. entity.Property(e => e.TradeMonth)
  9472. .HasColumnType("varchar(6)")
  9473. .HasCharSet("utf8")
  9474. .HasCollation("utf8_general_ci");
  9475. entity.Property(e => e.UpSourceSnNo)
  9476. .HasColumnType("varchar(32)")
  9477. .HasCharSet("utf8")
  9478. .HasCollation("utf8_general_ci");
  9479. entity.Property(e => e.UpSourceSnType).HasColumnType("int(11)");
  9480. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9481. entity.Property(e => e.UpdateMan)
  9482. .HasColumnType("varchar(50)")
  9483. .HasCharSet("utf8")
  9484. .HasCollation("utf8_general_ci");
  9485. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9486. entity.Property(e => e.Version).HasColumnType("int(11)");
  9487. });
  9488. modelBuilder.Entity<UserSwapSummary>(entity =>
  9489. {
  9490. entity.Property(e => e.Id).HasColumnType("int(11)");
  9491. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9492. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9493. entity.Property(e => e.CreateMan)
  9494. .HasColumnType("varchar(50)")
  9495. .HasCharSet("utf8")
  9496. .HasCollation("utf8_general_ci");
  9497. entity.Property(e => e.DirAvgTradeAmt).HasColumnType("decimal(18,2)");
  9498. entity.Property(e => e.DirectActMerCount).HasColumnType("int(11)");
  9499. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9500. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9501. entity.Property(e => e.RiskStatus).HasColumnType("int(11)");
  9502. entity.Property(e => e.RuleId).HasColumnType("int(11)");
  9503. entity.Property(e => e.SeoDescription)
  9504. .HasColumnType("varchar(500)")
  9505. .HasCharSet("utf8")
  9506. .HasCollation("utf8_general_ci");
  9507. entity.Property(e => e.SeoKeyword)
  9508. .HasColumnType("varchar(200)")
  9509. .HasCharSet("utf8")
  9510. .HasCollation("utf8_general_ci");
  9511. entity.Property(e => e.SeoTitle)
  9512. .HasColumnType("varchar(100)")
  9513. .HasCharSet("utf8")
  9514. .HasCollation("utf8_general_ci");
  9515. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9516. entity.Property(e => e.Status).HasColumnType("int(11)");
  9517. entity.Property(e => e.SwapExtProductTypes)
  9518. .HasColumnType("varchar(16)")
  9519. .HasCharSet("utf8")
  9520. .HasCollation("utf8_general_ci");
  9521. entity.Property(e => e.TopUserId).HasColumnType("int(11)");
  9522. entity.Property(e => e.TradeMonth)
  9523. .HasColumnType("varchar(6)")
  9524. .HasCharSet("utf8")
  9525. .HasCollation("utf8_general_ci");
  9526. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9527. entity.Property(e => e.UpdateMan)
  9528. .HasColumnType("varchar(50)")
  9529. .HasCharSet("utf8")
  9530. .HasCollation("utf8_general_ci");
  9531. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9532. entity.Property(e => e.Version).HasColumnType("int(11)");
  9533. });
  9534. modelBuilder.Entity<UserSwapWhite>(entity =>
  9535. {
  9536. entity.Property(e => e.Id).HasColumnType("int(11)");
  9537. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9538. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9539. entity.Property(e => e.CreateMan)
  9540. .HasColumnType("varchar(50)")
  9541. .HasCharSet("utf8")
  9542. .HasCollation("utf8_general_ci");
  9543. entity.Property(e => e.EndEffectTime).HasColumnType("datetime");
  9544. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9545. entity.Property(e => e.Remark)
  9546. .HasColumnType("varchar(64)")
  9547. .HasCharSet("utf8")
  9548. .HasCollation("utf8_general_ci");
  9549. entity.Property(e => e.RiskType).HasColumnType("int(11)");
  9550. entity.Property(e => e.SeoDescription)
  9551. .HasColumnType("varchar(500)")
  9552. .HasCharSet("utf8")
  9553. .HasCollation("utf8_general_ci");
  9554. entity.Property(e => e.SeoKeyword)
  9555. .HasColumnType("varchar(200)")
  9556. .HasCharSet("utf8")
  9557. .HasCollation("utf8_general_ci");
  9558. entity.Property(e => e.SeoTitle)
  9559. .HasColumnType("varchar(100)")
  9560. .HasCharSet("utf8")
  9561. .HasCollation("utf8_general_ci");
  9562. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9563. entity.Property(e => e.StartEffectTime).HasColumnType("datetime");
  9564. entity.Property(e => e.Status).HasColumnType("int(11)");
  9565. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9566. entity.Property(e => e.UpdateMan)
  9567. .HasColumnType("varchar(50)")
  9568. .HasCharSet("utf8")
  9569. .HasCollation("utf8_general_ci");
  9570. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9571. entity.Property(e => e.Version).HasColumnType("int(11)");
  9572. });
  9573. modelBuilder.Entity<UserTradeDaySummary>(entity =>
  9574. {
  9575. entity.Property(e => e.Id).HasColumnType("int(11)");
  9576. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9577. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9578. entity.Property(e => e.CreateMan)
  9579. .HasColumnType("varchar(50)")
  9580. .HasCharSet("utf8")
  9581. .HasCollation("utf8_general_ci");
  9582. entity.Property(e => e.DirectDebitCapNum).HasColumnType("int(11)");
  9583. entity.Property(e => e.DirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9584. entity.Property(e => e.DirectTradeAmt).HasColumnType("decimal(18,2)");
  9585. entity.Property(e => e.NonDirectDebitCapNum).HasColumnType("int(11)");
  9586. entity.Property(e => e.NonDirectDebitTradeAmt).HasColumnType("decimal(18,2)");
  9587. entity.Property(e => e.NonDirectTradeAmt).HasColumnType("decimal(18,2)");
  9588. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9589. entity.Property(e => e.Remark)
  9590. .HasColumnType("varchar(64)")
  9591. .HasCharSet("utf8")
  9592. .HasCollation("utf8_general_ci");
  9593. entity.Property(e => e.SeoDescription)
  9594. .HasColumnType("varchar(500)")
  9595. .HasCharSet("utf8")
  9596. .HasCollation("utf8_general_ci");
  9597. entity.Property(e => e.SeoKeyword)
  9598. .HasColumnType("varchar(200)")
  9599. .HasCharSet("utf8")
  9600. .HasCollation("utf8_general_ci");
  9601. entity.Property(e => e.SeoTitle)
  9602. .HasColumnType("varchar(100)")
  9603. .HasCharSet("utf8")
  9604. .HasCollation("utf8_general_ci");
  9605. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9606. entity.Property(e => e.Status).HasColumnType("int(11)");
  9607. entity.Property(e => e.TradeDate)
  9608. .HasColumnType("varchar(8)")
  9609. .HasCharSet("utf8")
  9610. .HasCollation("utf8_general_ci");
  9611. entity.Property(e => e.TradeMonth)
  9612. .HasColumnType("varchar(6)")
  9613. .HasCharSet("utf8")
  9614. .HasCollation("utf8_general_ci");
  9615. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9616. entity.Property(e => e.UpdateMan)
  9617. .HasColumnType("varchar(50)")
  9618. .HasCharSet("utf8")
  9619. .HasCollation("utf8_general_ci");
  9620. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9621. entity.Property(e => e.Version).HasColumnType("int(11)");
  9622. });
  9623. modelBuilder.Entity<UserTradeMonthSummary>(entity =>
  9624. {
  9625. entity.Property(e => e.Id).HasColumnType("int(11)");
  9626. entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
  9627. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  9628. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9629. entity.Property(e => e.CreateMan)
  9630. .HasColumnType("varchar(50)")
  9631. .HasCharSet("utf8")
  9632. .HasCollation("utf8_general_ci");
  9633. entity.Property(e => e.CreditTradeAmt).HasColumnType("decimal(18,2)");
  9634. entity.Property(e => e.DebitCapTradeAmt).HasColumnType("decimal(18,2)");
  9635. entity.Property(e => e.DebitCapTradeNum).HasColumnType("int(11)");
  9636. entity.Property(e => e.DebitNotCapTradeAmt).HasColumnType("decimal(18,2)");
  9637. entity.Property(e => e.MallPosOrderStatus).HasColumnType("int(11)");
  9638. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9639. entity.Property(e => e.Remark)
  9640. .HasColumnType("varchar(64)")
  9641. .HasCharSet("utf8")
  9642. .HasCollation("utf8_general_ci");
  9643. entity.Property(e => e.SeoDescription)
  9644. .HasColumnType("varchar(500)")
  9645. .HasCharSet("utf8")
  9646. .HasCollation("utf8_general_ci");
  9647. entity.Property(e => e.SeoKeyword)
  9648. .HasColumnType("varchar(200)")
  9649. .HasCharSet("utf8")
  9650. .HasCollation("utf8_general_ci");
  9651. entity.Property(e => e.SeoTitle)
  9652. .HasColumnType("varchar(100)")
  9653. .HasCharSet("utf8")
  9654. .HasCollation("utf8_general_ci");
  9655. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9656. entity.Property(e => e.StatType).HasColumnType("int(11)");
  9657. entity.Property(e => e.Status).HasColumnType("int(11)");
  9658. entity.Property(e => e.TradeAmt).HasColumnType("decimal(18,2)");
  9659. entity.Property(e => e.TradeMonth)
  9660. .HasColumnType("varchar(6)")
  9661. .HasCharSet("utf8")
  9662. .HasCollation("utf8_general_ci");
  9663. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9664. entity.Property(e => e.UpdateMan)
  9665. .HasColumnType("varchar(50)")
  9666. .HasCharSet("utf8")
  9667. .HasCollation("utf8_general_ci");
  9668. entity.Property(e => e.UserId).HasColumnType("int(11)");
  9669. entity.Property(e => e.Version).HasColumnType("int(11)");
  9670. });
  9671. modelBuilder.Entity<Users>(entity =>
  9672. {
  9673. entity.Property(e => e.Id).HasColumnType("int(11)");
  9674. entity.Property(e => e.AccessToken)
  9675. .HasColumnType("varchar(64)")
  9676. .HasCharSet("utf8")
  9677. .HasCollation("utf8_general_ci");
  9678. entity.Property(e => e.ActiveRewardAmount).HasColumnType("decimal(18,2)");
  9679. entity.Property(e => e.Address)
  9680. .HasColumnType("varchar(50)")
  9681. .HasCharSet("utf8")
  9682. .HasCollation("utf8_general_ci");
  9683. entity.Property(e => e.AgentAreas)
  9684. .HasColumnType("varchar(50)")
  9685. .HasCharSet("utf8")
  9686. .HasCollation("utf8_general_ci");
  9687. entity.Property(e => e.AgentLevel).HasColumnType("int(11)");
  9688. entity.Property(e => e.AlipayUserId)
  9689. .HasColumnType("varchar(50)")
  9690. .HasCharSet("utf8")
  9691. .HasCollation("utf8_general_ci");
  9692. entity.Property(e => e.Areas)
  9693. .HasColumnType("varchar(30)")
  9694. .HasCharSet("utf8")
  9695. .HasCollation("utf8_general_ci");
  9696. entity.Property(e => e.AuditStatus).HasColumnType("int(11)");
  9697. entity.Property(e => e.AuthDate).HasColumnType("datetime");
  9698. entity.Property(e => e.AuthFlag)
  9699. .HasColumnType("bit(1)")
  9700. .HasDefaultValueSql("b'0'");
  9701. entity.Property(e => e.BankCardPositiveImage)
  9702. .HasColumnType("varchar(200)")
  9703. .HasCharSet("utf8")
  9704. .HasCollation("utf8_general_ci");
  9705. entity.Property(e => e.CarIds)
  9706. .HasColumnType("varchar(100)")
  9707. .HasCharSet("utf8")
  9708. .HasCollation("utf8_general_ci");
  9709. entity.Property(e => e.CardNo)
  9710. .HasColumnType("varchar(30)")
  9711. .HasCharSet("utf8")
  9712. .HasCollation("utf8_general_ci");
  9713. entity.Property(e => e.CardRecCode)
  9714. .HasColumnType("varchar(200)")
  9715. .HasCharSet("utf8")
  9716. .HasCollation("utf8_general_ci");
  9717. entity.Property(e => e.CashFreezeAmt).HasColumnType("decimal(18,2)");
  9718. entity.Property(e => e.CertFrontImage)
  9719. .HasColumnType("varchar(200)")
  9720. .HasCharSet("utf8")
  9721. .HasCollation("utf8_general_ci");
  9722. entity.Property(e => e.CertId)
  9723. .HasColumnType("varchar(18)")
  9724. .HasCharSet("utf8")
  9725. .HasCollation("utf8_general_ci");
  9726. entity.Property(e => e.CertReverseImage)
  9727. .HasColumnType("varchar(200)")
  9728. .HasCharSet("utf8")
  9729. .HasCollation("utf8_general_ci");
  9730. entity.Property(e => e.CertValidEndDate).HasColumnType("datetime");
  9731. entity.Property(e => e.CertValidStartDate).HasColumnType("datetime");
  9732. entity.Property(e => e.CitySetDate).HasColumnType("datetime");
  9733. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  9734. entity.Property(e => e.CreateMan)
  9735. .HasColumnType("varchar(50)")
  9736. .HasCharSet("utf8")
  9737. .HasCollation("utf8_general_ci");
  9738. entity.Property(e => e.DeviceId)
  9739. .HasColumnType("varchar(128)")
  9740. .HasCharSet("utf8")
  9741. .HasCollation("utf8_general_ci");
  9742. entity.Property(e => e.DeviceToken)
  9743. .HasColumnType("varchar(64)")
  9744. .HasCharSet("utf8")
  9745. .HasCollation("utf8_general_ci");
  9746. entity.Property(e => e.ExpiredDate).HasColumnType("datetime");
  9747. entity.Property(e => e.GroupId)
  9748. .HasColumnType("varchar(200)")
  9749. .HasCharSet("utf8")
  9750. .HasCollation("utf8_general_ci");
  9751. entity.Property(e => e.HandCertImage)
  9752. .HasColumnType("varchar(200)")
  9753. .HasCharSet("utf8")
  9754. .HasCollation("utf8_general_ci");
  9755. entity.Property(e => e.HandPwd)
  9756. .HasColumnType("varchar(32)")
  9757. .HasCharSet("utf8")
  9758. .HasCollation("utf8_general_ci");
  9759. entity.Property(e => e.HeadPhoto)
  9760. .HasColumnType("varchar(2000)")
  9761. .HasCharSet("utf8")
  9762. .HasCollation("utf8_general_ci");
  9763. entity.Property(e => e.IdCardEndNo)
  9764. .HasColumnType("varchar(4)")
  9765. .HasCharSet("utf8")
  9766. .HasCollation("utf8_general_ci");
  9767. entity.Property(e => e.IsNewUser)
  9768. .HasColumnType("bit(1)")
  9769. .HasDefaultValueSql("b'0'");
  9770. entity.Property(e => e.LockStatus)
  9771. .HasColumnType("bit(1)")
  9772. .HasDefaultValueSql("b'0'");
  9773. entity.Property(e => e.LoginPwd)
  9774. .HasColumnType("varchar(32)")
  9775. .HasCharSet("utf8")
  9776. .HasCollation("utf8_general_ci");
  9777. entity.Property(e => e.LoginStatus).HasColumnType("int(11)");
  9778. entity.Property(e => e.MakerCode)
  9779. .HasColumnType("varchar(32)")
  9780. .HasCharSet("utf8")
  9781. .HasCollation("utf8_general_ci");
  9782. entity.Property(e => e.MerchantDate).HasColumnType("datetime");
  9783. entity.Property(e => e.MerchantType).HasColumnType("int(11)");
  9784. entity.Property(e => e.Mobile)
  9785. .HasColumnType("varchar(11)")
  9786. .HasCharSet("utf8")
  9787. .HasCollation("utf8_general_ci");
  9788. entity.Property(e => e.NickName)
  9789. .HasColumnType("varchar(300)")
  9790. .HasCharSet("utf8")
  9791. .HasCollation("utf8_general_ci");
  9792. entity.Property(e => e.OpenId)
  9793. .HasColumnType("varchar(50)")
  9794. .HasCharSet("utf8")
  9795. .HasCollation("utf8_general_ci");
  9796. entity.Property(e => e.ParentNav)
  9797. .HasColumnType("longtext")
  9798. .HasCharSet("utf8")
  9799. .HasCollation("utf8_general_ci");
  9800. entity.Property(e => e.ParentUserId).HasColumnType("int(11)");
  9801. entity.Property(e => e.PayPwd)
  9802. .HasColumnType("varchar(32)")
  9803. .HasCharSet("utf8")
  9804. .HasCollation("utf8_general_ci");
  9805. entity.Property(e => e.ProfitRewardRate).HasColumnType("decimal(18,2)");
  9806. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  9807. entity.Property(e => e.RealName)
  9808. .HasColumnType("varchar(30)")
  9809. .HasCharSet("utf8")
  9810. .HasCollation("utf8_general_ci");
  9811. entity.Property(e => e.ReferenceCode)
  9812. .HasColumnType("varchar(200)")
  9813. .HasCharSet("utf8")
  9814. .HasCollation("utf8_general_ci");
  9815. entity.Property(e => e.ReferenceQrCode)
  9816. .HasColumnType("varchar(200)")
  9817. .HasCharSet("utf8")
  9818. .HasCollation("utf8_general_ci");
  9819. entity.Property(e => e.ReferralUserId).HasColumnType("int(11)");
  9820. entity.Property(e => e.Remark)
  9821. .HasColumnType("mediumtext")
  9822. .HasCharSet("utf8")
  9823. .HasCollation("utf8_general_ci");
  9824. entity.Property(e => e.RiskFlag)
  9825. .HasColumnType("bit(1)")
  9826. .HasDefaultValueSql("b'0'");
  9827. entity.Property(e => e.RiskRemark)
  9828. .HasColumnType("varchar(64)")
  9829. .HasCharSet("utf8")
  9830. .HasCollation("utf8_general_ci");
  9831. entity.Property(e => e.RreezeRemark)
  9832. .HasColumnType("varchar(64)")
  9833. .HasCharSet("utf8")
  9834. .HasCollation("utf8_general_ci");
  9835. entity.Property(e => e.SeoDescription)
  9836. .HasColumnType("varchar(500)")
  9837. .HasCharSet("utf8")
  9838. .HasCollation("utf8_general_ci");
  9839. entity.Property(e => e.SeoKeyword)
  9840. .HasColumnType("varchar(200)")
  9841. .HasCharSet("utf8")
  9842. .HasCollation("utf8_general_ci");
  9843. entity.Property(e => e.SeoTitle)
  9844. .HasColumnType("varchar(100)")
  9845. .HasCharSet("utf8")
  9846. .HasCollation("utf8_general_ci");
  9847. entity.Property(e => e.SettleAmount).HasColumnType("decimal(18,2)");
  9848. entity.Property(e => e.SettleBankCardName)
  9849. .HasColumnType("varchar(20)")
  9850. .HasCharSet("utf8")
  9851. .HasCollation("utf8_general_ci");
  9852. entity.Property(e => e.SettleBankCardNo)
  9853. .HasColumnType("varchar(32)")
  9854. .HasCharSet("utf8")
  9855. .HasCollation("utf8_general_ci");
  9856. entity.Property(e => e.SettleBankName)
  9857. .HasColumnType("varchar(32)")
  9858. .HasCharSet("utf8")
  9859. .HasCollation("utf8_general_ci");
  9860. entity.Property(e => e.SettleRemark)
  9861. .HasColumnType("varchar(64)")
  9862. .HasCharSet("utf8")
  9863. .HasCollation("utf8_general_ci");
  9864. entity.Property(e => e.Sex).HasColumnType("int(11)");
  9865. entity.Property(e => e.SignImgUrl)
  9866. .HasColumnType("varchar(200)")
  9867. .HasCharSet("utf8")
  9868. .HasCollation("utf8_general_ci");
  9869. entity.Property(e => e.Sort).HasColumnType("int(11)");
  9870. entity.Property(e => e.Status).HasColumnType("int(11)");
  9871. entity.Property(e => e.Tags)
  9872. .HasColumnType("varchar(200)")
  9873. .HasCharSet("utf8")
  9874. .HasCollation("utf8_general_ci");
  9875. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  9876. entity.Property(e => e.UpdateMan)
  9877. .HasColumnType("varchar(50)")
  9878. .HasCharSet("utf8")
  9879. .HasCollation("utf8_general_ci");
  9880. entity.Property(e => e.UserLevel).HasColumnType("int(11)");
  9881. entity.Property(e => e.UserProperty).HasColumnType("int(11)");
  9882. entity.Property(e => e.UserType).HasColumnType("int(11)");
  9883. entity.Property(e => e.Version).HasColumnType("int(11)");
  9884. });
  9885. OnModelCreatingPartial(modelBuilder);
  9886. }
  9887. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  9888. }
  9889. }