WebCMSEntities.cs 113 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981
  1. using System;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata;
  4. namespace MySystem.OpModels
  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<ActMerDaySummary> ActMerDaySummary { get; set; }
  16. public virtual DbSet<ActMerMonthSummary> ActMerMonthSummary { get; set; }
  17. public virtual DbSet<Advertisment> Advertisment { get; set; }
  18. public virtual DbSet<AmountRecord> AmountRecord { get; set; }
  19. public virtual DbSet<Col> Col { get; set; }
  20. public virtual DbSet<MachineApplyOpRecord> MachineApplyOpRecord { get; set; }
  21. public virtual DbSet<MenuRight> MenuRight { get; set; }
  22. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  23. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  24. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  25. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  26. public virtual DbSet<MsgPush> MsgPush { get; set; }
  27. public virtual DbSet<MsgSms> MsgSms { get; set; }
  28. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  29. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  30. public virtual DbSet<OperateForCode> OperateForCode { get; set; }
  31. public virtual DbSet<OperateLog> OperateLog { get; set; }
  32. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  33. public virtual DbSet<PageInfo> PageInfo { get; set; }
  34. public virtual DbSet<PosCouponDaySummary> PosCouponDaySummary { get; set; }
  35. public virtual DbSet<PosCouponForOp> PosCouponForOp { get; set; }
  36. public virtual DbSet<PosCouponMonthSummary> PosCouponMonthSummary { get; set; }
  37. public virtual DbSet<PosCouponOrders> PosCouponOrders { get; set; }
  38. public virtual DbSet<PosCouponRecord> PosCouponRecord { get; set; }
  39. public virtual DbSet<PosCoupons> PosCoupons { get; set; }
  40. public virtual DbSet<PosMachines> PosMachines { get; set; }
  41. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  42. public virtual DbSet<RightDic> RightDic { get; set; }
  43. public virtual DbSet<SendDaySummary> SendDaySummary { get; set; }
  44. public virtual DbSet<SendMonthSummary> SendMonthSummary { get; set; }
  45. public virtual DbSet<StoreActMerDaySummary> StoreActMerDaySummary { get; set; }
  46. public virtual DbSet<StoreActMerMonthSummary> StoreActMerMonthSummary { get; set; }
  47. public virtual DbSet<StoreForOperate> StoreForOperate { get; set; }
  48. public virtual DbSet<StoreMachineApply> StoreMachineApply { get; set; }
  49. public virtual DbSet<StoreSendDaySummary> StoreSendDaySummary { get; set; }
  50. public virtual DbSet<StoreSendMonthSummary> StoreSendMonthSummary { get; set; }
  51. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  52. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  53. public virtual DbSet<SysLog> SysLog { get; set; }
  54. public virtual DbSet<SystemSet> SystemSet { get; set; }
  55. public virtual DbSet<UploadParams> UploadParams { get; set; }
  56. public virtual DbSet<UserAccount> UserAccount { get; set; }
  57. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  58. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  59. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  60. {
  61. if (!optionsBuilder.IsConfigured)
  62. {
  63. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["OpSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  64. }
  65. }
  66. protected override void OnModelCreating(ModelBuilder modelBuilder)
  67. {
  68. modelBuilder.Entity<ActMerDaySummary>(entity =>
  69. {
  70. entity.Property(e => e.Id).HasColumnType("int(11)");
  71. entity.Property(e => e.ActCount).HasColumnType("int(11)");
  72. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  73. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  74. entity.Property(e => e.CreateMan)
  75. .HasColumnType("varchar(50)")
  76. .HasCharSet("utf8")
  77. .HasCollation("utf8_general_ci");
  78. entity.Property(e => e.OpId).HasColumnType("int(11)");
  79. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  80. entity.Property(e => e.SeoDescription)
  81. .HasColumnType("varchar(500)")
  82. .HasCharSet("utf8")
  83. .HasCollation("utf8_general_ci");
  84. entity.Property(e => e.SeoKeyword)
  85. .HasColumnType("varchar(200)")
  86. .HasCharSet("utf8")
  87. .HasCollation("utf8_general_ci");
  88. entity.Property(e => e.SeoTitle)
  89. .HasColumnType("varchar(100)")
  90. .HasCharSet("utf8")
  91. .HasCollation("utf8_general_ci");
  92. entity.Property(e => e.Sort).HasColumnType("int(11)");
  93. entity.Property(e => e.Status).HasColumnType("int(11)");
  94. entity.Property(e => e.TradeDate)
  95. .HasColumnType("varchar(8)")
  96. .HasCharSet("utf8")
  97. .HasCollation("utf8_general_ci");
  98. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  99. entity.Property(e => e.UpdateMan)
  100. .HasColumnType("varchar(50)")
  101. .HasCharSet("utf8")
  102. .HasCollation("utf8_general_ci");
  103. entity.Property(e => e.Version).HasColumnType("int(11)");
  104. });
  105. modelBuilder.Entity<ActMerMonthSummary>(entity =>
  106. {
  107. entity.Property(e => e.Id).HasColumnType("int(11)");
  108. entity.Property(e => e.ActCount).HasColumnType("int(11)");
  109. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  110. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  111. entity.Property(e => e.CreateMan)
  112. .HasColumnType("varchar(50)")
  113. .HasCharSet("utf8")
  114. .HasCollation("utf8_general_ci");
  115. entity.Property(e => e.OpId).HasColumnType("int(11)");
  116. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  117. entity.Property(e => e.SeoDescription)
  118. .HasColumnType("varchar(500)")
  119. .HasCharSet("utf8")
  120. .HasCollation("utf8_general_ci");
  121. entity.Property(e => e.SeoKeyword)
  122. .HasColumnType("varchar(200)")
  123. .HasCharSet("utf8")
  124. .HasCollation("utf8_general_ci");
  125. entity.Property(e => e.SeoTitle)
  126. .HasColumnType("varchar(100)")
  127. .HasCharSet("utf8")
  128. .HasCollation("utf8_general_ci");
  129. entity.Property(e => e.Sort).HasColumnType("int(11)");
  130. entity.Property(e => e.Status).HasColumnType("int(11)");
  131. entity.Property(e => e.TradeMonth)
  132. .HasColumnType("varchar(6)")
  133. .HasCharSet("utf8")
  134. .HasCollation("utf8_general_ci");
  135. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  136. entity.Property(e => e.UpdateMan)
  137. .HasColumnType("varchar(50)")
  138. .HasCharSet("utf8")
  139. .HasCollation("utf8_general_ci");
  140. entity.Property(e => e.Version).HasColumnType("int(11)");
  141. });
  142. modelBuilder.Entity<Advertisment>(entity =>
  143. {
  144. entity.Property(e => e.Id).HasColumnType("int(11)");
  145. entity.Property(e => e.ColId)
  146. .HasColumnType("varchar(30)")
  147. .HasCharSet("utf8")
  148. .HasCollation("utf8_general_ci");
  149. entity.Property(e => e.Contents)
  150. .HasColumnType("longtext")
  151. .HasCharSet("utf8")
  152. .HasCollation("utf8_general_ci");
  153. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  154. entity.Property(e => e.CreateMan)
  155. .HasColumnType("varchar(50)")
  156. .HasCharSet("utf8")
  157. .HasCollation("utf8_general_ci");
  158. entity.Property(e => e.PicPath)
  159. .HasColumnType("varchar(200)")
  160. .HasCharSet("utf8")
  161. .HasCollation("utf8_general_ci");
  162. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  163. entity.Property(e => e.SeoDescription)
  164. .HasColumnType("varchar(500)")
  165. .HasCharSet("utf8")
  166. .HasCollation("utf8_general_ci");
  167. entity.Property(e => e.SeoKeyword)
  168. .HasColumnType("varchar(200)")
  169. .HasCharSet("utf8")
  170. .HasCollation("utf8_general_ci");
  171. entity.Property(e => e.SeoTitle)
  172. .HasColumnType("varchar(100)")
  173. .HasCharSet("utf8")
  174. .HasCollation("utf8_general_ci");
  175. entity.Property(e => e.Sort).HasColumnType("int(11)");
  176. entity.Property(e => e.Status).HasColumnType("int(11)");
  177. entity.Property(e => e.Title)
  178. .HasColumnType("varchar(50)")
  179. .HasCharSet("utf8")
  180. .HasCollation("utf8_general_ci");
  181. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  182. entity.Property(e => e.UpdateMan)
  183. .HasColumnType("varchar(50)")
  184. .HasCharSet("utf8")
  185. .HasCollation("utf8_general_ci");
  186. entity.Property(e => e.Url)
  187. .HasColumnType("longtext")
  188. .HasCharSet("utf8")
  189. .HasCollation("utf8_general_ci");
  190. entity.Property(e => e.Version).HasColumnType("int(11)");
  191. });
  192. modelBuilder.Entity<AmountRecord>(entity =>
  193. {
  194. entity.Property(e => e.Id).HasColumnType("int(11)");
  195. entity.Property(e => e.AfterAmount).HasColumnType("decimal(18,2)");
  196. entity.Property(e => e.AfterTotalAmt)
  197. .HasColumnType("decimal(18,2)")
  198. .HasComment("使用后未使用额度");
  199. entity.Property(e => e.AfterValidAmount)
  200. .HasColumnType("decimal(18,2)")
  201. .HasComment("使用后关联分仓额度");
  202. entity.Property(e => e.AfterValidForGetAmount)
  203. .HasColumnType("decimal(18,2)")
  204. .HasComment("使用后可提现额度");
  205. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  206. entity.Property(e => e.BeforeAmount).HasColumnType("decimal(18,2)");
  207. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  208. entity.Property(e => e.CreateMan)
  209. .HasColumnType("varchar(50)")
  210. .HasCharSet("utf8")
  211. .HasCollation("utf8_general_ci");
  212. entity.Property(e => e.OperateType).HasColumnType("int(11)");
  213. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  214. entity.Property(e => e.SeoDescription)
  215. .HasColumnType("varchar(500)")
  216. .HasCharSet("utf8")
  217. .HasCollation("utf8_general_ci");
  218. entity.Property(e => e.SeoKeyword)
  219. .HasColumnType("varchar(200)")
  220. .HasCharSet("utf8")
  221. .HasCollation("utf8_general_ci");
  222. entity.Property(e => e.SeoTitle)
  223. .HasColumnType("varchar(100)")
  224. .HasCharSet("utf8")
  225. .HasCollation("utf8_general_ci");
  226. entity.Property(e => e.Sort).HasColumnType("int(11)");
  227. entity.Property(e => e.Status).HasColumnType("int(11)");
  228. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  229. entity.Property(e => e.UpdateMan)
  230. .HasColumnType("varchar(50)")
  231. .HasCharSet("utf8")
  232. .HasCollation("utf8_general_ci");
  233. entity.Property(e => e.UseAmount).HasColumnType("decimal(18,2)");
  234. entity.Property(e => e.UserId).HasColumnType("int(11)");
  235. entity.Property(e => e.Version).HasColumnType("int(11)");
  236. });
  237. modelBuilder.Entity<Col>(entity =>
  238. {
  239. entity.Property(e => e.Id).HasColumnType("int(11)");
  240. entity.Property(e => e.ColDetail)
  241. .HasColumnType("varchar(50)")
  242. .HasCharSet("utf8")
  243. .HasCollation("utf8_general_ci");
  244. entity.Property(e => e.ColEnName)
  245. .HasColumnType("varchar(50)")
  246. .HasCharSet("utf8")
  247. .HasCollation("utf8_general_ci");
  248. entity.Property(e => e.ColId)
  249. .HasColumnType("varchar(30)")
  250. .HasCharSet("utf8")
  251. .HasCollation("utf8_general_ci");
  252. entity.Property(e => e.ColName)
  253. .HasColumnType("varchar(50)")
  254. .HasCharSet("utf8")
  255. .HasCollation("utf8_general_ci");
  256. entity.Property(e => e.ColPicPath)
  257. .HasColumnType("varchar(200)")
  258. .HasCharSet("utf8")
  259. .HasCollation("utf8_general_ci");
  260. entity.Property(e => e.Contents)
  261. .HasColumnType("longtext")
  262. .HasCharSet("utf8")
  263. .HasCollation("utf8_general_ci");
  264. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  265. entity.Property(e => e.CreateMan)
  266. .HasColumnType("varchar(50)")
  267. .HasCharSet("utf8")
  268. .HasCollation("utf8_general_ci");
  269. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  270. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  271. entity.Property(e => e.Recommend)
  272. .HasColumnType("bit(1)")
  273. .HasDefaultValueSql("b'0'");
  274. entity.Property(e => e.SeoDescription)
  275. .HasColumnType("varchar(500)")
  276. .HasCharSet("utf8")
  277. .HasCollation("utf8_general_ci");
  278. entity.Property(e => e.SeoKeyword)
  279. .HasColumnType("varchar(200)")
  280. .HasCharSet("utf8")
  281. .HasCollation("utf8_general_ci");
  282. entity.Property(e => e.SeoTitle)
  283. .HasColumnType("varchar(100)")
  284. .HasCharSet("utf8")
  285. .HasCollation("utf8_general_ci");
  286. entity.Property(e => e.Sort).HasColumnType("int(11)");
  287. entity.Property(e => e.Status).HasColumnType("int(11)");
  288. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  289. entity.Property(e => e.UpdateMan)
  290. .HasColumnType("varchar(50)")
  291. .HasCharSet("utf8")
  292. .HasCollation("utf8_general_ci");
  293. entity.Property(e => e.Url)
  294. .HasColumnType("longtext")
  295. .HasCharSet("utf8")
  296. .HasCollation("utf8_general_ci");
  297. entity.Property(e => e.Version).HasColumnType("int(11)");
  298. });
  299. modelBuilder.Entity<MachineApplyOpRecord>(entity =>
  300. {
  301. entity.Property(e => e.Id).HasColumnType("int(11)");
  302. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  303. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  304. entity.Property(e => e.CreateMan)
  305. .HasColumnType("varchar(50)")
  306. .HasCharSet("utf8")
  307. .HasCollation("utf8_general_ci");
  308. entity.Property(e => e.OpId).HasColumnType("int(11)");
  309. entity.Property(e => e.OpType).HasColumnType("int(11)");
  310. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  311. entity.Property(e => e.SeoDescription)
  312. .HasColumnType("varchar(500)")
  313. .HasCharSet("utf8")
  314. .HasCollation("utf8_general_ci");
  315. entity.Property(e => e.SeoKeyword)
  316. .HasColumnType("varchar(200)")
  317. .HasCharSet("utf8")
  318. .HasCollation("utf8_general_ci");
  319. entity.Property(e => e.SeoTitle)
  320. .HasColumnType("varchar(100)")
  321. .HasCharSet("utf8")
  322. .HasCollation("utf8_general_ci");
  323. entity.Property(e => e.Sort).HasColumnType("int(11)");
  324. entity.Property(e => e.SourceSn)
  325. .HasColumnType("varchar(500)")
  326. .HasCharSet("utf8")
  327. .HasCollation("utf8_general_ci");
  328. entity.Property(e => e.Status).HasColumnType("int(11)");
  329. entity.Property(e => e.TargetSn)
  330. .HasColumnType("varchar(500)")
  331. .HasCharSet("utf8")
  332. .HasCollation("utf8_general_ci");
  333. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  334. entity.Property(e => e.UpdateMan)
  335. .HasColumnType("varchar(50)")
  336. .HasCharSet("utf8")
  337. .HasCollation("utf8_general_ci");
  338. entity.Property(e => e.Version).HasColumnType("int(11)");
  339. });
  340. modelBuilder.Entity<MenuRight>(entity =>
  341. {
  342. entity.HasKey(e => e.MenuId)
  343. .HasName("PRIMARY");
  344. entity.Property(e => e.MenuId)
  345. .HasColumnType("varchar(50)")
  346. .HasCharSet("utf8")
  347. .HasCollation("utf8_general_ci");
  348. entity.Property(e => e.Name)
  349. .HasColumnType("varchar(50)")
  350. .HasCharSet("utf8")
  351. .HasCollation("utf8_general_ci");
  352. });
  353. modelBuilder.Entity<MsgBlackList>(entity =>
  354. {
  355. entity.Property(e => e.Id).HasColumnType("int(11)");
  356. entity.Property(e => e.ColId)
  357. .HasColumnType("varchar(30)")
  358. .HasCharSet("utf8")
  359. .HasCollation("utf8_general_ci");
  360. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  361. entity.Property(e => e.CreateMan)
  362. .HasColumnType("varchar(50)")
  363. .HasCharSet("utf8")
  364. .HasCollation("utf8_general_ci");
  365. entity.Property(e => e.Extend)
  366. .HasColumnType("varchar(2000)")
  367. .HasCharSet("utf8")
  368. .HasCollation("utf8_general_ci");
  369. entity.Property(e => e.Ip)
  370. .HasColumnType("varchar(64)")
  371. .HasCharSet("utf8")
  372. .HasCollation("utf8_general_ci");
  373. entity.Property(e => e.Mobile)
  374. .HasColumnType("varchar(11)")
  375. .HasCharSet("utf8")
  376. .HasCollation("utf8_general_ci");
  377. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  378. entity.Property(e => e.Reason)
  379. .HasColumnType("varchar(512)")
  380. .HasCharSet("utf8")
  381. .HasCollation("utf8_general_ci");
  382. entity.Property(e => e.Remark)
  383. .HasColumnType("varchar(64)")
  384. .HasCharSet("utf8")
  385. .HasCollation("utf8_general_ci");
  386. entity.Property(e => e.SeoDescription)
  387. .HasColumnType("varchar(500)")
  388. .HasCharSet("utf8")
  389. .HasCollation("utf8_general_ci");
  390. entity.Property(e => e.SeoKeyword)
  391. .HasColumnType("varchar(200)")
  392. .HasCharSet("utf8")
  393. .HasCollation("utf8_general_ci");
  394. entity.Property(e => e.SeoTitle)
  395. .HasColumnType("varchar(100)")
  396. .HasCharSet("utf8")
  397. .HasCollation("utf8_general_ci");
  398. entity.Property(e => e.Sort).HasColumnType("int(11)");
  399. entity.Property(e => e.Status).HasColumnType("int(11)");
  400. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  401. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  402. entity.Property(e => e.UpdateMan)
  403. .HasColumnType("varchar(50)")
  404. .HasCharSet("utf8")
  405. .HasCollation("utf8_general_ci");
  406. entity.Property(e => e.Version).HasColumnType("int(11)");
  407. });
  408. modelBuilder.Entity<MsgPersonal>(entity =>
  409. {
  410. entity.Property(e => e.Id).HasColumnType("int(11)");
  411. entity.Property(e => e.BgPic)
  412. .HasColumnType("varchar(200)")
  413. .HasCharSet("utf8")
  414. .HasCollation("utf8_general_ci");
  415. entity.Property(e => e.Content)
  416. .HasColumnType("longtext")
  417. .HasCharSet("utf8")
  418. .HasCollation("utf8_general_ci");
  419. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  420. entity.Property(e => e.CreateMan)
  421. .HasColumnType("varchar(50)")
  422. .HasCharSet("utf8")
  423. .HasCollation("utf8_general_ci");
  424. entity.Property(e => e.ExtendColumn)
  425. .HasColumnType("mediumtext")
  426. .HasCharSet("utf8")
  427. .HasCollation("utf8_general_ci");
  428. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  429. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  430. entity.Property(e => e.PushParam)
  431. .HasColumnType("varchar(255)")
  432. .HasCharSet("utf8")
  433. .HasCollation("utf8_general_ci");
  434. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  435. entity.Property(e => e.ReadFlag)
  436. .HasColumnType("bit(1)")
  437. .HasDefaultValueSql("b'0'");
  438. entity.Property(e => e.Remark)
  439. .HasColumnType("varchar(255)")
  440. .HasCharSet("utf8")
  441. .HasCollation("utf8_general_ci");
  442. entity.Property(e => e.SeoDescription)
  443. .HasColumnType("varchar(500)")
  444. .HasCharSet("utf8")
  445. .HasCollation("utf8_general_ci");
  446. entity.Property(e => e.SeoKeyword)
  447. .HasColumnType("varchar(200)")
  448. .HasCharSet("utf8")
  449. .HasCollation("utf8_general_ci");
  450. entity.Property(e => e.SeoTitle)
  451. .HasColumnType("varchar(100)")
  452. .HasCharSet("utf8")
  453. .HasCollation("utf8_general_ci");
  454. entity.Property(e => e.Sort).HasColumnType("int(11)");
  455. entity.Property(e => e.Status).HasColumnType("int(11)");
  456. entity.Property(e => e.Summary)
  457. .HasColumnType("varchar(500)")
  458. .HasCharSet("utf8")
  459. .HasCollation("utf8_general_ci");
  460. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  461. entity.Property(e => e.Title)
  462. .HasColumnType("varchar(50)")
  463. .HasCharSet("utf8")
  464. .HasCollation("utf8_general_ci");
  465. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  466. entity.Property(e => e.UpdateMan)
  467. .HasColumnType("varchar(50)")
  468. .HasCharSet("utf8")
  469. .HasCollation("utf8_general_ci");
  470. entity.Property(e => e.Url)
  471. .HasColumnType("varchar(500)")
  472. .HasCharSet("utf8")
  473. .HasCollation("utf8_general_ci");
  474. entity.Property(e => e.UserId).HasColumnType("int(11)");
  475. entity.Property(e => e.Version).HasColumnType("int(11)");
  476. });
  477. modelBuilder.Entity<MsgPlacard>(entity =>
  478. {
  479. entity.Property(e => e.Id).HasColumnType("int(11)");
  480. entity.Property(e => e.BgPic)
  481. .HasColumnType("varchar(200)")
  482. .HasCharSet("utf8")
  483. .HasCollation("utf8_general_ci");
  484. entity.Property(e => e.Content)
  485. .HasColumnType("longtext")
  486. .HasCharSet("utf8")
  487. .HasCollation("utf8_general_ci");
  488. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  489. entity.Property(e => e.CreateMan)
  490. .HasColumnType("varchar(50)")
  491. .HasCharSet("utf8")
  492. .HasCollation("utf8_general_ci");
  493. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  494. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  495. entity.Property(e => e.ExtendColumn)
  496. .HasColumnType("mediumtext")
  497. .HasCharSet("utf8")
  498. .HasCollation("utf8_general_ci");
  499. entity.Property(e => e.IsTop)
  500. .HasColumnType("bit(1)")
  501. .HasDefaultValueSql("b'0'");
  502. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  503. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  504. entity.Property(e => e.PushParam)
  505. .HasColumnType("varchar(255)")
  506. .HasCharSet("utf8")
  507. .HasCollation("utf8_general_ci");
  508. entity.Property(e => e.PushTime).HasColumnType("datetime");
  509. entity.Property(e => e.PushType).HasColumnType("int(11)");
  510. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  511. entity.Property(e => e.Remark)
  512. .HasColumnType("varchar(255)")
  513. .HasCharSet("utf8")
  514. .HasCollation("utf8_general_ci");
  515. entity.Property(e => e.SeoDescription)
  516. .HasColumnType("varchar(500)")
  517. .HasCharSet("utf8")
  518. .HasCollation("utf8_general_ci");
  519. entity.Property(e => e.SeoKeyword)
  520. .HasColumnType("varchar(200)")
  521. .HasCharSet("utf8")
  522. .HasCollation("utf8_general_ci");
  523. entity.Property(e => e.SeoTitle)
  524. .HasColumnType("varchar(100)")
  525. .HasCharSet("utf8")
  526. .HasCollation("utf8_general_ci");
  527. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  528. entity.Property(e => e.Sort).HasColumnType("int(11)");
  529. entity.Property(e => e.Status).HasColumnType("int(11)");
  530. entity.Property(e => e.Summary)
  531. .HasColumnType("varchar(500)")
  532. .HasCharSet("utf8")
  533. .HasCollation("utf8_general_ci");
  534. entity.Property(e => e.Title)
  535. .HasColumnType("varchar(50)")
  536. .HasCharSet("utf8")
  537. .HasCollation("utf8_general_ci");
  538. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  539. entity.Property(e => e.UpdateMan)
  540. .HasColumnType("varchar(50)")
  541. .HasCharSet("utf8")
  542. .HasCollation("utf8_general_ci");
  543. entity.Property(e => e.Url)
  544. .HasColumnType("varchar(500)")
  545. .HasCharSet("utf8")
  546. .HasCollation("utf8_general_ci");
  547. entity.Property(e => e.Version).HasColumnType("int(11)");
  548. });
  549. modelBuilder.Entity<MsgPlacardRead>(entity =>
  550. {
  551. entity.Property(e => e.Id).HasColumnType("int(11)");
  552. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  553. entity.Property(e => e.CreateMan)
  554. .HasColumnType("varchar(50)")
  555. .HasCharSet("utf8")
  556. .HasCollation("utf8_general_ci");
  557. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  558. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  559. entity.Property(e => e.ReadFlag)
  560. .HasColumnType("bit(1)")
  561. .HasDefaultValueSql("b'0'");
  562. entity.Property(e => e.Remark)
  563. .HasColumnType("varchar(255)")
  564. .HasCharSet("utf8")
  565. .HasCollation("utf8_general_ci");
  566. entity.Property(e => e.SeoDescription)
  567. .HasColumnType("varchar(500)")
  568. .HasCharSet("utf8")
  569. .HasCollation("utf8_general_ci");
  570. entity.Property(e => e.SeoKeyword)
  571. .HasColumnType("varchar(200)")
  572. .HasCharSet("utf8")
  573. .HasCollation("utf8_general_ci");
  574. entity.Property(e => e.SeoTitle)
  575. .HasColumnType("varchar(100)")
  576. .HasCharSet("utf8")
  577. .HasCollation("utf8_general_ci");
  578. entity.Property(e => e.Sort).HasColumnType("int(11)");
  579. entity.Property(e => e.Status).HasColumnType("int(11)");
  580. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  581. entity.Property(e => e.UpdateMan)
  582. .HasColumnType("varchar(50)")
  583. .HasCharSet("utf8")
  584. .HasCollation("utf8_general_ci");
  585. entity.Property(e => e.UserId)
  586. .HasColumnType("varchar(64)")
  587. .HasCharSet("utf8")
  588. .HasCollation("utf8_general_ci");
  589. entity.Property(e => e.Version).HasColumnType("int(11)");
  590. });
  591. modelBuilder.Entity<MsgPush>(entity =>
  592. {
  593. entity.Property(e => e.Id).HasColumnType("int(11)");
  594. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  595. entity.Property(e => e.ClientType)
  596. .HasColumnType("varchar(20)")
  597. .HasCharSet("utf8")
  598. .HasCollation("utf8_general_ci");
  599. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  600. entity.Property(e => e.CreateMan)
  601. .HasColumnType("varchar(50)")
  602. .HasCharSet("utf8")
  603. .HasCollation("utf8_general_ci");
  604. entity.Property(e => e.Details)
  605. .HasColumnType("varchar(200)")
  606. .HasCharSet("utf8")
  607. .HasCollation("utf8_general_ci");
  608. entity.Property(e => e.Devices)
  609. .HasColumnType("mediumtext")
  610. .HasCharSet("utf8")
  611. .HasCollation("utf8_general_ci");
  612. entity.Property(e => e.IsSilent)
  613. .HasColumnType("bit(1)")
  614. .HasDefaultValueSql("b'0'");
  615. entity.Property(e => e.MessageId)
  616. .HasColumnType("varchar(50)")
  617. .HasCharSet("utf8")
  618. .HasCollation("utf8_general_ci");
  619. entity.Property(e => e.Mobiles)
  620. .HasColumnType("mediumtext")
  621. .HasCharSet("utf8")
  622. .HasCollation("utf8_general_ci");
  623. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  624. entity.Property(e => e.SeoDescription)
  625. .HasColumnType("varchar(500)")
  626. .HasCharSet("utf8")
  627. .HasCollation("utf8_general_ci");
  628. entity.Property(e => e.SeoKeyword)
  629. .HasColumnType("varchar(200)")
  630. .HasCharSet("utf8")
  631. .HasCollation("utf8_general_ci");
  632. entity.Property(e => e.SeoTitle)
  633. .HasColumnType("varchar(100)")
  634. .HasCharSet("utf8")
  635. .HasCollation("utf8_general_ci");
  636. entity.Property(e => e.Sort).HasColumnType("int(11)");
  637. entity.Property(e => e.Status).HasColumnType("int(11)");
  638. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  639. entity.Property(e => e.Title)
  640. .HasColumnType("varchar(50)")
  641. .HasCharSet("utf8")
  642. .HasCollation("utf8_general_ci");
  643. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  644. entity.Property(e => e.UpdateMan)
  645. .HasColumnType("varchar(50)")
  646. .HasCharSet("utf8")
  647. .HasCollation("utf8_general_ci");
  648. entity.Property(e => e.Url)
  649. .HasColumnType("varchar(500)")
  650. .HasCharSet("utf8")
  651. .HasCollation("utf8_general_ci");
  652. entity.Property(e => e.Version).HasColumnType("int(11)");
  653. });
  654. modelBuilder.Entity<MsgSms>(entity =>
  655. {
  656. entity.Property(e => e.Id).HasColumnType("int(11)");
  657. entity.Property(e => e.Code).HasColumnType("int(11)");
  658. entity.Property(e => e.ColId)
  659. .HasColumnType("varchar(30)")
  660. .HasCharSet("utf8")
  661. .HasCollation("utf8_general_ci");
  662. entity.Property(e => e.Content)
  663. .HasColumnType("varchar(200)")
  664. .HasCharSet("utf8")
  665. .HasCollation("utf8_general_ci");
  666. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  667. entity.Property(e => e.CreateMan)
  668. .HasColumnType("varchar(50)")
  669. .HasCharSet("utf8")
  670. .HasCollation("utf8_general_ci");
  671. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  672. entity.Property(e => e.Ip)
  673. .HasColumnType("varchar(15)")
  674. .HasCharSet("utf8")
  675. .HasCollation("utf8_general_ci");
  676. entity.Property(e => e.Kind)
  677. .HasColumnType("varchar(64)")
  678. .HasCharSet("utf8")
  679. .HasCollation("utf8_general_ci");
  680. entity.Property(e => e.Mobile)
  681. .HasColumnType("varchar(11)")
  682. .HasCharSet("utf8")
  683. .HasCollation("utf8_general_ci");
  684. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  685. entity.Property(e => e.RespCode)
  686. .HasColumnType("varchar(16)")
  687. .HasCharSet("utf8")
  688. .HasCollation("utf8_general_ci");
  689. entity.Property(e => e.RespContent)
  690. .HasColumnType("varchar(500)")
  691. .HasCharSet("utf8")
  692. .HasCollation("utf8_general_ci");
  693. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  694. entity.Property(e => e.SendTime).HasColumnType("datetime");
  695. entity.Property(e => e.SendType).HasColumnType("int(11)");
  696. entity.Property(e => e.SeoDescription)
  697. .HasColumnType("varchar(500)")
  698. .HasCharSet("utf8")
  699. .HasCollation("utf8_general_ci");
  700. entity.Property(e => e.SeoKeyword)
  701. .HasColumnType("varchar(200)")
  702. .HasCharSet("utf8")
  703. .HasCollation("utf8_general_ci");
  704. entity.Property(e => e.SeoTitle)
  705. .HasColumnType("varchar(100)")
  706. .HasCharSet("utf8")
  707. .HasCollation("utf8_general_ci");
  708. entity.Property(e => e.SignName)
  709. .HasColumnType("varchar(10)")
  710. .HasCharSet("utf8")
  711. .HasCollation("utf8_general_ci");
  712. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  713. entity.Property(e => e.Sort).HasColumnType("int(11)");
  714. entity.Property(e => e.Status).HasColumnType("int(11)");
  715. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  716. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  717. entity.Property(e => e.UpdateMan)
  718. .HasColumnType("varchar(50)")
  719. .HasCharSet("utf8")
  720. .HasCollation("utf8_general_ci");
  721. entity.Property(e => e.VerifyCode)
  722. .HasColumnType("varchar(6)")
  723. .HasCharSet("utf8")
  724. .HasCollation("utf8_general_ci");
  725. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  726. entity.Property(e => e.Version).HasColumnType("int(11)");
  727. });
  728. modelBuilder.Entity<MsgSmsSet>(entity =>
  729. {
  730. entity.Property(e => e.Id).HasColumnType("int(11)");
  731. entity.Property(e => e.AuthPwd)
  732. .HasColumnType("varchar(50)")
  733. .HasCharSet("utf8")
  734. .HasCollation("utf8_general_ci");
  735. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  736. entity.Property(e => e.CreateMan)
  737. .HasColumnType("varchar(50)")
  738. .HasCharSet("utf8")
  739. .HasCollation("utf8_general_ci");
  740. entity.Property(e => e.Name)
  741. .HasColumnType("varchar(50)")
  742. .HasCharSet("utf8")
  743. .HasCollation("utf8_general_ci");
  744. entity.Property(e => e.Params)
  745. .HasColumnType("varchar(200)")
  746. .HasCharSet("utf8")
  747. .HasCollation("utf8_general_ci");
  748. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  749. entity.Property(e => e.ReqUrl)
  750. .HasColumnType("varchar(200)")
  751. .HasCharSet("utf8")
  752. .HasCollation("utf8_general_ci");
  753. entity.Property(e => e.SeoDescription)
  754. .HasColumnType("varchar(500)")
  755. .HasCharSet("utf8")
  756. .HasCollation("utf8_general_ci");
  757. entity.Property(e => e.SeoKeyword)
  758. .HasColumnType("varchar(200)")
  759. .HasCharSet("utf8")
  760. .HasCollation("utf8_general_ci");
  761. entity.Property(e => e.SeoTitle)
  762. .HasColumnType("varchar(100)")
  763. .HasCharSet("utf8")
  764. .HasCollation("utf8_general_ci");
  765. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  766. entity.Property(e => e.Sort).HasColumnType("int(11)");
  767. entity.Property(e => e.Status).HasColumnType("int(11)");
  768. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  769. entity.Property(e => e.UpdateMan)
  770. .HasColumnType("varchar(50)")
  771. .HasCharSet("utf8")
  772. .HasCollation("utf8_general_ci");
  773. entity.Property(e => e.UserName)
  774. .HasColumnType("varchar(50)")
  775. .HasCharSet("utf8")
  776. .HasCollation("utf8_general_ci");
  777. entity.Property(e => e.Version).HasColumnType("int(11)");
  778. });
  779. modelBuilder.Entity<MsgTemplate>(entity =>
  780. {
  781. entity.Property(e => e.Id).HasColumnType("int(11)");
  782. entity.Property(e => e.ColId)
  783. .HasColumnType("varchar(30)")
  784. .HasCharSet("utf8")
  785. .HasCollation("utf8_general_ci");
  786. entity.Property(e => e.Content)
  787. .HasColumnType("varchar(200)")
  788. .HasCharSet("utf8")
  789. .HasCollation("utf8_general_ci");
  790. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  791. entity.Property(e => e.CreateMan)
  792. .HasColumnType("varchar(50)")
  793. .HasCharSet("utf8")
  794. .HasCollation("utf8_general_ci");
  795. entity.Property(e => e.Extend)
  796. .HasColumnType("varchar(2000)")
  797. .HasCharSet("utf8")
  798. .HasCollation("utf8_general_ci");
  799. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  800. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  801. entity.Property(e => e.Remark)
  802. .HasColumnType("varchar(64)")
  803. .HasCharSet("utf8")
  804. .HasCollation("utf8_general_ci");
  805. entity.Property(e => e.SeoDescription)
  806. .HasColumnType("varchar(500)")
  807. .HasCharSet("utf8")
  808. .HasCollation("utf8_general_ci");
  809. entity.Property(e => e.SeoKeyword)
  810. .HasColumnType("varchar(200)")
  811. .HasCharSet("utf8")
  812. .HasCollation("utf8_general_ci");
  813. entity.Property(e => e.SeoTitle)
  814. .HasColumnType("varchar(100)")
  815. .HasCharSet("utf8")
  816. .HasCollation("utf8_general_ci");
  817. entity.Property(e => e.SignName)
  818. .HasColumnType("varchar(10)")
  819. .HasCharSet("utf8")
  820. .HasCollation("utf8_general_ci");
  821. entity.Property(e => e.Sort).HasColumnType("int(11)");
  822. entity.Property(e => e.Status).HasColumnType("int(11)");
  823. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  824. entity.Property(e => e.Title)
  825. .HasColumnType("varchar(50)")
  826. .HasCharSet("utf8")
  827. .HasCollation("utf8_general_ci");
  828. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  829. entity.Property(e => e.UpdateMan)
  830. .HasColumnType("varchar(50)")
  831. .HasCharSet("utf8")
  832. .HasCollation("utf8_general_ci");
  833. entity.Property(e => e.Version).HasColumnType("int(11)");
  834. });
  835. modelBuilder.Entity<OperateForCode>(entity =>
  836. {
  837. entity.HasKey(e => e.OpCode)
  838. .HasName("PRIMARY");
  839. entity.Property(e => e.OpCode)
  840. .HasColumnType("varchar(20)")
  841. .HasCharSet("utf8")
  842. .HasCollation("utf8_general_ci");
  843. entity.Property(e => e.OpId).HasColumnType("int(11)");
  844. });
  845. modelBuilder.Entity<OperateLog>(entity =>
  846. {
  847. entity.Property(e => e.Id).HasColumnType("int(11)");
  848. entity.Property(e => e.AfterOperate)
  849. .HasColumnType("mediumtext")
  850. .HasCharSet("utf8")
  851. .HasCollation("utf8_general_ci");
  852. entity.Property(e => e.BeforeOperate)
  853. .HasColumnType("mediumtext")
  854. .HasCharSet("utf8")
  855. .HasCollation("utf8_general_ci");
  856. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  857. entity.Property(e => e.CreateMan)
  858. .HasColumnType("varchar(50)")
  859. .HasCharSet("utf8")
  860. .HasCollation("utf8_general_ci");
  861. entity.Property(e => e.OpMode)
  862. .HasColumnType("varchar(30)")
  863. .HasCharSet("utf8")
  864. .HasCollation("utf8_general_ci");
  865. entity.Property(e => e.OperateMan)
  866. .HasColumnType("varchar(50)")
  867. .HasCharSet("utf8")
  868. .HasCollation("utf8_general_ci");
  869. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  870. entity.Property(e => e.SeoDescription)
  871. .HasColumnType("varchar(500)")
  872. .HasCharSet("utf8")
  873. .HasCollation("utf8_general_ci");
  874. entity.Property(e => e.SeoKeyword)
  875. .HasColumnType("varchar(200)")
  876. .HasCharSet("utf8")
  877. .HasCollation("utf8_general_ci");
  878. entity.Property(e => e.SeoTitle)
  879. .HasColumnType("varchar(100)")
  880. .HasCharSet("utf8")
  881. .HasCollation("utf8_general_ci");
  882. entity.Property(e => e.Sort).HasColumnType("int(11)");
  883. entity.Property(e => e.Status).HasColumnType("int(11)");
  884. entity.Property(e => e.TableEnName)
  885. .HasColumnType("varchar(50)")
  886. .HasCharSet("utf8")
  887. .HasCollation("utf8_general_ci");
  888. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  889. entity.Property(e => e.UpdateMan)
  890. .HasColumnType("varchar(50)")
  891. .HasCharSet("utf8")
  892. .HasCollation("utf8_general_ci");
  893. entity.Property(e => e.Version).HasColumnType("int(11)");
  894. });
  895. modelBuilder.Entity<OperateRightList>(entity =>
  896. {
  897. entity.Property(e => e.Id).HasColumnType("int(11)");
  898. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  899. entity.Property(e => e.CreateMan)
  900. .HasColumnType("varchar(50)")
  901. .HasCharSet("utf8")
  902. .HasCollation("utf8_general_ci");
  903. entity.Property(e => e.EnName)
  904. .HasColumnType("varchar(50)")
  905. .HasCharSet("utf8")
  906. .HasCollation("utf8_general_ci");
  907. entity.Property(e => e.Name)
  908. .HasColumnType("varchar(50)")
  909. .HasCharSet("utf8")
  910. .HasCollation("utf8_general_ci");
  911. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  912. entity.Property(e => e.SeoDescription)
  913. .HasColumnType("varchar(500)")
  914. .HasCharSet("utf8")
  915. .HasCollation("utf8_general_ci");
  916. entity.Property(e => e.SeoKeyword)
  917. .HasColumnType("varchar(200)")
  918. .HasCharSet("utf8")
  919. .HasCollation("utf8_general_ci");
  920. entity.Property(e => e.SeoTitle)
  921. .HasColumnType("varchar(100)")
  922. .HasCharSet("utf8")
  923. .HasCollation("utf8_general_ci");
  924. entity.Property(e => e.Sort).HasColumnType("int(11)");
  925. entity.Property(e => e.Status).HasColumnType("int(11)");
  926. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  927. entity.Property(e => e.UpdateMan)
  928. .HasColumnType("varchar(50)")
  929. .HasCharSet("utf8")
  930. .HasCollation("utf8_general_ci");
  931. entity.Property(e => e.Version).HasColumnType("int(11)");
  932. });
  933. modelBuilder.Entity<PageInfo>(entity =>
  934. {
  935. entity.Property(e => e.Id).HasColumnType("int(11)");
  936. entity.Property(e => e.ColId)
  937. .HasColumnType("varchar(30)")
  938. .HasCharSet("utf8")
  939. .HasCollation("utf8_general_ci");
  940. entity.Property(e => e.Contents)
  941. .HasColumnType("longtext")
  942. .HasCharSet("utf8")
  943. .HasCollation("utf8_general_ci");
  944. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  945. entity.Property(e => e.CreateMan)
  946. .HasColumnType("varchar(50)")
  947. .HasCharSet("utf8")
  948. .HasCollation("utf8_general_ci");
  949. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  950. entity.Property(e => e.SeoDescription)
  951. .HasColumnType("varchar(500)")
  952. .HasCharSet("utf8")
  953. .HasCollation("utf8_general_ci");
  954. entity.Property(e => e.SeoKeyword)
  955. .HasColumnType("varchar(200)")
  956. .HasCharSet("utf8")
  957. .HasCollation("utf8_general_ci");
  958. entity.Property(e => e.SeoTitle)
  959. .HasColumnType("varchar(100)")
  960. .HasCharSet("utf8")
  961. .HasCollation("utf8_general_ci");
  962. entity.Property(e => e.Sort).HasColumnType("int(11)");
  963. entity.Property(e => e.Status).HasColumnType("int(11)");
  964. entity.Property(e => e.Title)
  965. .HasColumnType("varchar(200)")
  966. .HasCharSet("utf8")
  967. .HasCollation("utf8_general_ci");
  968. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  969. entity.Property(e => e.UpdateMan)
  970. .HasColumnType("varchar(50)")
  971. .HasCharSet("utf8")
  972. .HasCollation("utf8_general_ci");
  973. entity.Property(e => e.Version).HasColumnType("int(11)");
  974. });
  975. modelBuilder.Entity<PosCouponDaySummary>(entity =>
  976. {
  977. entity.Property(e => e.Id).HasColumnType("int(11)");
  978. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  979. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  980. entity.Property(e => e.CreateMan)
  981. .HasColumnType("varchar(50)")
  982. .HasCharSet("utf8")
  983. .HasCollation("utf8_general_ci");
  984. entity.Property(e => e.OpId).HasColumnType("int(11)");
  985. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  986. entity.Property(e => e.SaleCount).HasColumnType("int(11)");
  987. entity.Property(e => e.SeoDescription)
  988. .HasColumnType("varchar(500)")
  989. .HasCharSet("utf8")
  990. .HasCollation("utf8_general_ci");
  991. entity.Property(e => e.SeoKeyword)
  992. .HasColumnType("varchar(200)")
  993. .HasCharSet("utf8")
  994. .HasCollation("utf8_general_ci");
  995. entity.Property(e => e.SeoTitle)
  996. .HasColumnType("varchar(100)")
  997. .HasCharSet("utf8")
  998. .HasCollation("utf8_general_ci");
  999. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1000. entity.Property(e => e.Status).HasColumnType("int(11)");
  1001. entity.Property(e => e.TradeDate)
  1002. .HasColumnType("varchar(8)")
  1003. .HasCharSet("utf8")
  1004. .HasCollation("utf8_general_ci");
  1005. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1006. entity.Property(e => e.UpdateMan)
  1007. .HasColumnType("varchar(50)")
  1008. .HasCharSet("utf8")
  1009. .HasCollation("utf8_general_ci");
  1010. entity.Property(e => e.Version).HasColumnType("int(11)");
  1011. });
  1012. modelBuilder.Entity<PosCouponForOp>(entity =>
  1013. {
  1014. entity.Property(e => e.Id).HasColumnType("int(11)");
  1015. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1016. entity.Property(e => e.CreateMan)
  1017. .HasColumnType("varchar(50)")
  1018. .HasCharSet("utf8")
  1019. .HasCollation("utf8_general_ci");
  1020. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  1021. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1022. entity.Property(e => e.SeoDescription)
  1023. .HasColumnType("varchar(500)")
  1024. .HasCharSet("utf8")
  1025. .HasCollation("utf8_general_ci");
  1026. entity.Property(e => e.SeoKeyword)
  1027. .HasColumnType("varchar(200)")
  1028. .HasCharSet("utf8")
  1029. .HasCollation("utf8_general_ci");
  1030. entity.Property(e => e.SeoTitle)
  1031. .HasColumnType("varchar(100)")
  1032. .HasCharSet("utf8")
  1033. .HasCollation("utf8_general_ci");
  1034. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1035. entity.Property(e => e.Status).HasColumnType("int(11)");
  1036. entity.Property(e => e.StockNum).HasColumnType("int(11)");
  1037. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  1038. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1039. entity.Property(e => e.UpdateMan)
  1040. .HasColumnType("varchar(50)")
  1041. .HasCharSet("utf8")
  1042. .HasCollation("utf8_general_ci");
  1043. entity.Property(e => e.Version).HasColumnType("int(11)");
  1044. });
  1045. modelBuilder.Entity<PosCouponMonthSummary>(entity =>
  1046. {
  1047. entity.Property(e => e.Id).HasColumnType("int(11)");
  1048. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1049. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1050. entity.Property(e => e.CreateMan)
  1051. .HasColumnType("varchar(50)")
  1052. .HasCharSet("utf8")
  1053. .HasCollation("utf8_general_ci");
  1054. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1055. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1056. entity.Property(e => e.SaleCount).HasColumnType("int(11)");
  1057. entity.Property(e => e.SeoDescription)
  1058. .HasColumnType("varchar(500)")
  1059. .HasCharSet("utf8")
  1060. .HasCollation("utf8_general_ci");
  1061. entity.Property(e => e.SeoKeyword)
  1062. .HasColumnType("varchar(200)")
  1063. .HasCharSet("utf8")
  1064. .HasCollation("utf8_general_ci");
  1065. entity.Property(e => e.SeoTitle)
  1066. .HasColumnType("varchar(100)")
  1067. .HasCharSet("utf8")
  1068. .HasCollation("utf8_general_ci");
  1069. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1070. entity.Property(e => e.Status).HasColumnType("int(11)");
  1071. entity.Property(e => e.TradeMonth)
  1072. .HasColumnType("varchar(6)")
  1073. .HasCharSet("utf8")
  1074. .HasCollation("utf8_general_ci");
  1075. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1076. entity.Property(e => e.UpdateMan)
  1077. .HasColumnType("varchar(50)")
  1078. .HasCharSet("utf8")
  1079. .HasCollation("utf8_general_ci");
  1080. entity.Property(e => e.Version).HasColumnType("int(11)");
  1081. });
  1082. modelBuilder.Entity<PosCouponOrders>(entity =>
  1083. {
  1084. entity.Property(e => e.Id).HasColumnType("int(11)");
  1085. entity.Property(e => e.AfterOut).HasColumnType("int(11)");
  1086. entity.Property(e => e.AfterStock).HasColumnType("int(11)");
  1087. entity.Property(e => e.AfterTotal).HasColumnType("int(11)");
  1088. entity.Property(e => e.BeforeOut).HasColumnType("int(11)");
  1089. entity.Property(e => e.BeforeStock).HasColumnType("int(11)");
  1090. entity.Property(e => e.BeforeTotal).HasColumnType("int(11)");
  1091. entity.Property(e => e.ChangeCount).HasColumnType("int(11)");
  1092. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  1093. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1094. entity.Property(e => e.CreateMan)
  1095. .HasColumnType("varchar(50)")
  1096. .HasCharSet("utf8")
  1097. .HasCollation("utf8_general_ci");
  1098. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1099. entity.Property(e => e.OrderNo)
  1100. .HasColumnType("varchar(50)")
  1101. .HasCharSet("utf8")
  1102. .HasCollation("utf8_general_ci");
  1103. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1104. entity.Property(e => e.SeoDescription)
  1105. .HasColumnType("varchar(500)")
  1106. .HasCharSet("utf8")
  1107. .HasCollation("utf8_general_ci");
  1108. entity.Property(e => e.SeoKeyword)
  1109. .HasColumnType("varchar(200)")
  1110. .HasCharSet("utf8")
  1111. .HasCollation("utf8_general_ci");
  1112. entity.Property(e => e.SeoTitle)
  1113. .HasColumnType("varchar(100)")
  1114. .HasCharSet("utf8")
  1115. .HasCollation("utf8_general_ci");
  1116. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1117. entity.Property(e => e.Status).HasColumnType("int(11)");
  1118. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1119. entity.Property(e => e.UpdateMan)
  1120. .HasColumnType("varchar(50)")
  1121. .HasCharSet("utf8")
  1122. .HasCollation("utf8_general_ci");
  1123. entity.Property(e => e.Version).HasColumnType("int(11)");
  1124. });
  1125. modelBuilder.Entity<PosCouponRecord>(entity =>
  1126. {
  1127. entity.Property(e => e.Id).HasColumnType("int(11)");
  1128. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  1129. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1130. entity.Property(e => e.CreateMan)
  1131. .HasColumnType("varchar(50)")
  1132. .HasCharSet("utf8")
  1133. .HasCollation("utf8_general_ci");
  1134. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  1135. entity.Property(e => e.OrderNo)
  1136. .HasColumnType("varchar(50)")
  1137. .HasCharSet("utf8")
  1138. .HasCollation("utf8_general_ci");
  1139. entity.Property(e => e.PosCouponId).HasColumnType("int(11)");
  1140. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1141. entity.Property(e => e.SeoDescription)
  1142. .HasColumnType("varchar(500)")
  1143. .HasCharSet("utf8")
  1144. .HasCollation("utf8_general_ci");
  1145. entity.Property(e => e.SeoKeyword)
  1146. .HasColumnType("varchar(200)")
  1147. .HasCharSet("utf8")
  1148. .HasCollation("utf8_general_ci");
  1149. entity.Property(e => e.SeoTitle)
  1150. .HasColumnType("varchar(100)")
  1151. .HasCharSet("utf8")
  1152. .HasCollation("utf8_general_ci");
  1153. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1154. entity.Property(e => e.Status).HasColumnType("int(11)");
  1155. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  1156. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1157. entity.Property(e => e.UpdateMan)
  1158. .HasColumnType("varchar(50)")
  1159. .HasCharSet("utf8")
  1160. .HasCollation("utf8_general_ci");
  1161. entity.Property(e => e.Version).HasColumnType("int(11)");
  1162. });
  1163. modelBuilder.Entity<PosCoupons>(entity =>
  1164. {
  1165. entity.Property(e => e.Id).HasColumnType("int(11)");
  1166. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1167. entity.Property(e => e.CreateMan)
  1168. .HasColumnType("varchar(50)")
  1169. .HasCharSet("utf8")
  1170. .HasCollation("utf8_general_ci");
  1171. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1172. entity.Property(e => e.PosCouponId).HasColumnType("int(11)");
  1173. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1174. entity.Property(e => e.SeoDescription)
  1175. .HasColumnType("varchar(500)")
  1176. .HasCharSet("utf8")
  1177. .HasCollation("utf8_general_ci");
  1178. entity.Property(e => e.SeoKeyword)
  1179. .HasColumnType("varchar(200)")
  1180. .HasCharSet("utf8")
  1181. .HasCollation("utf8_general_ci");
  1182. entity.Property(e => e.SeoTitle)
  1183. .HasColumnType("varchar(100)")
  1184. .HasCharSet("utf8")
  1185. .HasCollation("utf8_general_ci");
  1186. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1187. entity.Property(e => e.Status).HasColumnType("int(11)");
  1188. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1189. entity.Property(e => e.UpdateMan)
  1190. .HasColumnType("varchar(50)")
  1191. .HasCharSet("utf8")
  1192. .HasCollation("utf8_general_ci");
  1193. entity.Property(e => e.Version).HasColumnType("int(11)");
  1194. });
  1195. modelBuilder.Entity<PosMachines>(entity =>
  1196. {
  1197. entity.Property(e => e.Id).HasColumnType("int(11)");
  1198. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1199. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1200. entity.Property(e => e.CreateMan)
  1201. .HasColumnType("varchar(50)")
  1202. .HasCharSet("utf8")
  1203. .HasCollation("utf8_general_ci");
  1204. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1205. entity.Property(e => e.PosId).HasColumnType("int(11)");
  1206. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1207. entity.Property(e => e.SeoDescription)
  1208. .HasColumnType("varchar(500)")
  1209. .HasCharSet("utf8")
  1210. .HasCollation("utf8_general_ci");
  1211. entity.Property(e => e.SeoKeyword)
  1212. .HasColumnType("varchar(200)")
  1213. .HasCharSet("utf8")
  1214. .HasCollation("utf8_general_ci");
  1215. entity.Property(e => e.SeoTitle)
  1216. .HasColumnType("varchar(100)")
  1217. .HasCharSet("utf8")
  1218. .HasCollation("utf8_general_ci");
  1219. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1220. entity.Property(e => e.Status).HasColumnType("int(11)");
  1221. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1222. entity.Property(e => e.UpdateMan)
  1223. .HasColumnType("varchar(50)")
  1224. .HasCharSet("utf8")
  1225. .HasCollation("utf8_general_ci");
  1226. entity.Property(e => e.Version).HasColumnType("int(11)");
  1227. });
  1228. modelBuilder.Entity<PublicAccountSet>(entity =>
  1229. {
  1230. entity.Property(e => e.Id).HasColumnType("int(11)");
  1231. entity.Property(e => e.AlipayAppId)
  1232. .HasColumnType("varchar(50)")
  1233. .HasCharSet("utf8")
  1234. .HasCollation("utf8_general_ci");
  1235. entity.Property(e => e.AlipayPartnerId)
  1236. .HasColumnType("varchar(50)")
  1237. .HasCharSet("utf8")
  1238. .HasCollation("utf8_general_ci");
  1239. entity.Property(e => e.AlipayPrivateKey)
  1240. .HasColumnType("mediumtext")
  1241. .HasCharSet("utf8")
  1242. .HasCollation("utf8_general_ci");
  1243. entity.Property(e => e.AlipayPublicKey)
  1244. .HasColumnType("mediumtext")
  1245. .HasCharSet("utf8")
  1246. .HasCollation("utf8_general_ci");
  1247. entity.Property(e => e.AliyunAccessKeyId)
  1248. .HasColumnType("varchar(50)")
  1249. .HasCharSet("utf8")
  1250. .HasCollation("utf8_general_ci");
  1251. entity.Property(e => e.AliyunAccessKeySecret)
  1252. .HasColumnType("varchar(50)")
  1253. .HasCharSet("utf8")
  1254. .HasCollation("utf8_general_ci");
  1255. entity.Property(e => e.AliyunAndroidActivity)
  1256. .HasColumnType("varchar(100)")
  1257. .HasCharSet("utf8")
  1258. .HasCollation("utf8_general_ci");
  1259. entity.Property(e => e.AliyunAndroidNotifyTitle)
  1260. .HasColumnType("varchar(20)")
  1261. .HasCharSet("utf8")
  1262. .HasCollation("utf8_general_ci");
  1263. entity.Property(e => e.AliyunPushAndroidAppId)
  1264. .HasColumnType("varchar(50)")
  1265. .HasCharSet("utf8")
  1266. .HasCollation("utf8_general_ci");
  1267. entity.Property(e => e.AliyunPushAndroidAppSecret)
  1268. .HasColumnType("varchar(50)")
  1269. .HasCharSet("utf8")
  1270. .HasCollation("utf8_general_ci");
  1271. entity.Property(e => e.AliyunPushIosAppId)
  1272. .HasColumnType("varchar(500)")
  1273. .HasCharSet("utf8")
  1274. .HasCollation("utf8_general_ci");
  1275. entity.Property(e => e.AliyunPushIosAppSecret)
  1276. .HasColumnType("varchar(50)")
  1277. .HasCharSet("utf8")
  1278. .HasCollation("utf8_general_ci");
  1279. entity.Property(e => e.AliyunRegionId)
  1280. .HasColumnType("varchar(30)")
  1281. .HasCharSet("utf8")
  1282. .HasCollation("utf8_general_ci");
  1283. entity.Property(e => e.ErpApiUrl)
  1284. .HasColumnType("varchar(200)")
  1285. .HasCharSet("utf8")
  1286. .HasCollation("utf8_general_ci");
  1287. entity.Property(e => e.ErpAppCode)
  1288. .HasColumnType("varchar(100)")
  1289. .HasCharSet("utf8")
  1290. .HasCollation("utf8_general_ci");
  1291. entity.Property(e => e.MeiQiaAppKey)
  1292. .HasColumnType("varchar(50)")
  1293. .HasCharSet("utf8")
  1294. .HasCollation("utf8_general_ci");
  1295. entity.Property(e => e.MobAppKey)
  1296. .HasColumnType("varchar(50)")
  1297. .HasCharSet("utf8")
  1298. .HasCollation("utf8_general_ci");
  1299. entity.Property(e => e.MobAppSecret)
  1300. .HasColumnType("varchar(50)")
  1301. .HasCharSet("utf8")
  1302. .HasCollation("utf8_general_ci");
  1303. entity.Property(e => e.QqAndroidAppId)
  1304. .HasColumnType("varchar(50)")
  1305. .HasCharSet("utf8")
  1306. .HasCollation("utf8_general_ci");
  1307. entity.Property(e => e.QqAndroidAppKey)
  1308. .HasColumnType("varchar(50)")
  1309. .HasCharSet("utf8")
  1310. .HasCollation("utf8_general_ci");
  1311. entity.Property(e => e.QqIosAppId)
  1312. .HasColumnType("varchar(50)")
  1313. .HasCharSet("utf8")
  1314. .HasCollation("utf8_general_ci");
  1315. entity.Property(e => e.QqIosAppKey)
  1316. .HasColumnType("varchar(50)")
  1317. .HasCharSet("utf8")
  1318. .HasCollation("utf8_general_ci");
  1319. entity.Property(e => e.ServerIp)
  1320. .HasColumnType("varchar(15)")
  1321. .HasCharSet("utf8")
  1322. .HasCollation("utf8_general_ci");
  1323. entity.Property(e => e.SmsApiDefaultTemplate)
  1324. .HasColumnType("varchar(200)")
  1325. .HasCharSet("utf8")
  1326. .HasCollation("utf8_general_ci");
  1327. entity.Property(e => e.SmsApiPwd)
  1328. .HasColumnType("varchar(50)")
  1329. .HasCharSet("utf8")
  1330. .HasCollation("utf8_general_ci");
  1331. entity.Property(e => e.SmsApiSign)
  1332. .HasColumnType("varchar(10)")
  1333. .HasCharSet("utf8")
  1334. .HasCollation("utf8_general_ci");
  1335. entity.Property(e => e.SmsApiUserId)
  1336. .HasColumnType("varchar(50)")
  1337. .HasCharSet("utf8")
  1338. .HasCollation("utf8_general_ci");
  1339. entity.Property(e => e.WeChatAppId)
  1340. .HasColumnType("varchar(50)")
  1341. .HasCharSet("utf8")
  1342. .HasCollation("utf8_general_ci");
  1343. entity.Property(e => e.WeChatAppSecret)
  1344. .HasColumnType("varchar(50)")
  1345. .HasCharSet("utf8")
  1346. .HasCollation("utf8_general_ci");
  1347. entity.Property(e => e.WeChatMchId)
  1348. .HasColumnType("varchar(20)")
  1349. .HasCharSet("utf8")
  1350. .HasCollation("utf8_general_ci");
  1351. entity.Property(e => e.WeChatMiniAppId)
  1352. .HasColumnType("varchar(50)")
  1353. .HasCharSet("utf8")
  1354. .HasCollation("utf8_general_ci");
  1355. entity.Property(e => e.WeChatMiniAppSecret)
  1356. .HasColumnType("varchar(50)")
  1357. .HasCharSet("utf8")
  1358. .HasCollation("utf8_general_ci");
  1359. entity.Property(e => e.WeChatOpenAppId)
  1360. .HasColumnType("varchar(50)")
  1361. .HasCharSet("utf8")
  1362. .HasCollation("utf8_general_ci");
  1363. entity.Property(e => e.WeChatOpenAppSecret)
  1364. .HasColumnType("varchar(50)")
  1365. .HasCharSet("utf8")
  1366. .HasCollation("utf8_general_ci");
  1367. entity.Property(e => e.WeChatPayKey)
  1368. .HasColumnType("varchar(50)")
  1369. .HasCharSet("utf8")
  1370. .HasCollation("utf8_general_ci");
  1371. });
  1372. modelBuilder.Entity<RightDic>(entity =>
  1373. {
  1374. entity.Property(e => e.Id)
  1375. .HasColumnName("ID")
  1376. .HasColumnType("varchar(50)")
  1377. .HasCharSet("utf8")
  1378. .HasCollation("utf8_general_ci");
  1379. entity.Property(e => e.Icon)
  1380. .HasColumnType("varchar(50)")
  1381. .HasCharSet("utf8")
  1382. .HasCollation("utf8_general_ci");
  1383. entity.Property(e => e.MainDataList)
  1384. .HasColumnType("bit(1)")
  1385. .HasDefaultValueSql("b'0'");
  1386. entity.Property(e => e.MainMenu)
  1387. .HasColumnType("bit(1)")
  1388. .HasDefaultValueSql("b'0'");
  1389. entity.Property(e => e.MainStat)
  1390. .HasColumnType("bit(1)")
  1391. .HasDefaultValueSql("b'0'");
  1392. entity.Property(e => e.Name)
  1393. .HasColumnType("varchar(50)")
  1394. .HasCharSet("utf8")
  1395. .HasCollation("utf8_general_ci");
  1396. entity.Property(e => e.OtherRight)
  1397. .HasColumnType("varchar(500)")
  1398. .HasCharSet("utf8")
  1399. .HasCollation("utf8_general_ci");
  1400. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  1401. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1402. entity.Property(e => e.Url)
  1403. .HasColumnType("varchar(200)")
  1404. .HasCharSet("utf8")
  1405. .HasCollation("utf8_general_ci");
  1406. });
  1407. modelBuilder.Entity<SendDaySummary>(entity =>
  1408. {
  1409. entity.Property(e => e.Id).HasColumnType("int(11)");
  1410. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1411. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1412. entity.Property(e => e.CreateMan)
  1413. .HasColumnType("varchar(50)")
  1414. .HasCharSet("utf8")
  1415. .HasCollation("utf8_general_ci");
  1416. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1417. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1418. entity.Property(e => e.SendCount).HasColumnType("int(11)");
  1419. entity.Property(e => e.SeoDescription)
  1420. .HasColumnType("varchar(500)")
  1421. .HasCharSet("utf8")
  1422. .HasCollation("utf8_general_ci");
  1423. entity.Property(e => e.SeoKeyword)
  1424. .HasColumnType("varchar(200)")
  1425. .HasCharSet("utf8")
  1426. .HasCollation("utf8_general_ci");
  1427. entity.Property(e => e.SeoTitle)
  1428. .HasColumnType("varchar(100)")
  1429. .HasCharSet("utf8")
  1430. .HasCollation("utf8_general_ci");
  1431. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1432. entity.Property(e => e.Status).HasColumnType("int(11)");
  1433. entity.Property(e => e.TradeDate)
  1434. .HasColumnType("varchar(8)")
  1435. .HasCharSet("utf8")
  1436. .HasCollation("utf8_general_ci");
  1437. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1438. entity.Property(e => e.UpdateMan)
  1439. .HasColumnType("varchar(50)")
  1440. .HasCharSet("utf8")
  1441. .HasCollation("utf8_general_ci");
  1442. entity.Property(e => e.Version).HasColumnType("int(11)");
  1443. });
  1444. modelBuilder.Entity<SendMonthSummary>(entity =>
  1445. {
  1446. entity.Property(e => e.Id).HasColumnType("int(11)");
  1447. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1448. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1449. entity.Property(e => e.CreateMan)
  1450. .HasColumnType("varchar(50)")
  1451. .HasCharSet("utf8")
  1452. .HasCollation("utf8_general_ci");
  1453. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1454. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1455. entity.Property(e => e.SendCount).HasColumnType("int(11)");
  1456. entity.Property(e => e.SeoDescription)
  1457. .HasColumnType("varchar(500)")
  1458. .HasCharSet("utf8")
  1459. .HasCollation("utf8_general_ci");
  1460. entity.Property(e => e.SeoKeyword)
  1461. .HasColumnType("varchar(200)")
  1462. .HasCharSet("utf8")
  1463. .HasCollation("utf8_general_ci");
  1464. entity.Property(e => e.SeoTitle)
  1465. .HasColumnType("varchar(100)")
  1466. .HasCharSet("utf8")
  1467. .HasCollation("utf8_general_ci");
  1468. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1469. entity.Property(e => e.Status).HasColumnType("int(11)");
  1470. entity.Property(e => e.TradeMonth)
  1471. .HasColumnType("varchar(6)")
  1472. .HasCharSet("utf8")
  1473. .HasCollation("utf8_general_ci");
  1474. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1475. entity.Property(e => e.UpdateMan)
  1476. .HasColumnType("varchar(50)")
  1477. .HasCharSet("utf8")
  1478. .HasCollation("utf8_general_ci");
  1479. entity.Property(e => e.Version).HasColumnType("int(11)");
  1480. });
  1481. modelBuilder.Entity<StoreActMerDaySummary>(entity =>
  1482. {
  1483. entity.Property(e => e.Id).HasColumnType("int(11)");
  1484. entity.Property(e => e.ActCount).HasColumnType("int(11)");
  1485. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1486. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1487. entity.Property(e => e.CreateMan)
  1488. .HasColumnType("varchar(50)")
  1489. .HasCharSet("utf8")
  1490. .HasCollation("utf8_general_ci");
  1491. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1492. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1493. entity.Property(e => e.SeoDescription)
  1494. .HasColumnType("varchar(500)")
  1495. .HasCharSet("utf8")
  1496. .HasCollation("utf8_general_ci");
  1497. entity.Property(e => e.SeoKeyword)
  1498. .HasColumnType("varchar(200)")
  1499. .HasCharSet("utf8")
  1500. .HasCollation("utf8_general_ci");
  1501. entity.Property(e => e.SeoTitle)
  1502. .HasColumnType("varchar(100)")
  1503. .HasCharSet("utf8")
  1504. .HasCollation("utf8_general_ci");
  1505. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1506. entity.Property(e => e.Status).HasColumnType("int(11)");
  1507. entity.Property(e => e.TradeDate)
  1508. .HasColumnType("varchar(8)")
  1509. .HasCharSet("utf8")
  1510. .HasCollation("utf8_general_ci");
  1511. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1512. entity.Property(e => e.UpdateMan)
  1513. .HasColumnType("varchar(50)")
  1514. .HasCharSet("utf8")
  1515. .HasCollation("utf8_general_ci");
  1516. entity.Property(e => e.Version).HasColumnType("int(11)");
  1517. });
  1518. modelBuilder.Entity<StoreActMerMonthSummary>(entity =>
  1519. {
  1520. entity.Property(e => e.Id).HasColumnType("int(11)");
  1521. entity.Property(e => e.ActCount).HasColumnType("int(11)");
  1522. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1523. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1524. entity.Property(e => e.CreateMan)
  1525. .HasColumnType("varchar(50)")
  1526. .HasCharSet("utf8")
  1527. .HasCollation("utf8_general_ci");
  1528. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1529. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1530. entity.Property(e => e.SeoDescription)
  1531. .HasColumnType("varchar(500)")
  1532. .HasCharSet("utf8")
  1533. .HasCollation("utf8_general_ci");
  1534. entity.Property(e => e.SeoKeyword)
  1535. .HasColumnType("varchar(200)")
  1536. .HasCharSet("utf8")
  1537. .HasCollation("utf8_general_ci");
  1538. entity.Property(e => e.SeoTitle)
  1539. .HasColumnType("varchar(100)")
  1540. .HasCharSet("utf8")
  1541. .HasCollation("utf8_general_ci");
  1542. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1543. entity.Property(e => e.Status).HasColumnType("int(11)");
  1544. entity.Property(e => e.TradeMonth)
  1545. .HasColumnType("varchar(6)")
  1546. .HasCharSet("utf8")
  1547. .HasCollation("utf8_general_ci");
  1548. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1549. entity.Property(e => e.UpdateMan)
  1550. .HasColumnType("varchar(50)")
  1551. .HasCharSet("utf8")
  1552. .HasCollation("utf8_general_ci");
  1553. entity.Property(e => e.Version).HasColumnType("int(11)");
  1554. });
  1555. modelBuilder.Entity<StoreForOperate>(entity =>
  1556. {
  1557. entity.Property(e => e.Id).HasColumnType("int(11)");
  1558. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1559. entity.Property(e => e.CreateMan)
  1560. .HasColumnType("varchar(50)")
  1561. .HasCharSet("utf8")
  1562. .HasCollation("utf8_general_ci");
  1563. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1564. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1565. entity.Property(e => e.SeoDescription)
  1566. .HasColumnType("varchar(500)")
  1567. .HasCharSet("utf8")
  1568. .HasCollation("utf8_general_ci");
  1569. entity.Property(e => e.SeoKeyword)
  1570. .HasColumnType("varchar(200)")
  1571. .HasCharSet("utf8")
  1572. .HasCollation("utf8_general_ci");
  1573. entity.Property(e => e.SeoTitle)
  1574. .HasColumnType("varchar(100)")
  1575. .HasCharSet("utf8")
  1576. .HasCollation("utf8_general_ci");
  1577. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1578. entity.Property(e => e.Status).HasColumnType("int(11)");
  1579. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1580. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1581. entity.Property(e => e.UpdateMan)
  1582. .HasColumnType("varchar(50)")
  1583. .HasCharSet("utf8")
  1584. .HasCollation("utf8_general_ci");
  1585. entity.Property(e => e.Version).HasColumnType("int(11)");
  1586. });
  1587. modelBuilder.Entity<StoreMachineApply>(entity =>
  1588. {
  1589. entity.Property(e => e.Id).HasColumnType("int(11)");
  1590. entity.Property(e => e.ApplyNo)
  1591. .HasColumnType("varchar(50)")
  1592. .HasCharSet("utf8")
  1593. .HasCollation("utf8_general_ci");
  1594. entity.Property(e => e.ApplyNum).HasColumnType("int(11)");
  1595. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1596. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1597. entity.Property(e => e.CreateMan)
  1598. .HasColumnType("varchar(50)")
  1599. .HasCharSet("utf8")
  1600. .HasCollation("utf8_general_ci");
  1601. entity.Property(e => e.ErpCode)
  1602. .HasColumnType("varchar(50)")
  1603. .HasCharSet("utf8")
  1604. .HasCollation("utf8_general_ci");
  1605. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1606. entity.Property(e => e.SendMode)
  1607. .HasColumnType("varchar(50)")
  1608. .HasCharSet("utf8")
  1609. .HasCollation("utf8_general_ci");
  1610. entity.Property(e => e.SendNum).HasColumnType("int(11)");
  1611. entity.Property(e => e.SendSn)
  1612. .HasColumnType("mediumtext")
  1613. .HasCharSet("utf8")
  1614. .HasCollation("utf8_general_ci");
  1615. entity.Property(e => e.SeoDescription)
  1616. .HasColumnType("varchar(500)")
  1617. .HasCharSet("utf8")
  1618. .HasCollation("utf8_general_ci");
  1619. entity.Property(e => e.SeoKeyword)
  1620. .HasColumnType("varchar(200)")
  1621. .HasCharSet("utf8")
  1622. .HasCollation("utf8_general_ci");
  1623. entity.Property(e => e.SeoTitle)
  1624. .HasColumnType("varchar(100)")
  1625. .HasCharSet("utf8")
  1626. .HasCollation("utf8_general_ci");
  1627. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1628. entity.Property(e => e.Status).HasColumnType("int(11)");
  1629. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1630. entity.Property(e => e.UpdateMan)
  1631. .HasColumnType("varchar(50)")
  1632. .HasCharSet("utf8")
  1633. .HasCollation("utf8_general_ci");
  1634. entity.Property(e => e.UseAmount).HasColumnType("decimal(18,2)");
  1635. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1636. entity.Property(e => e.Version).HasColumnType("int(11)");
  1637. });
  1638. modelBuilder.Entity<StoreSendDaySummary>(entity =>
  1639. {
  1640. entity.Property(e => e.Id).HasColumnType("int(11)");
  1641. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1642. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1643. entity.Property(e => e.CreateMan)
  1644. .HasColumnType("varchar(50)")
  1645. .HasCharSet("utf8")
  1646. .HasCollation("utf8_general_ci");
  1647. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1648. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1649. entity.Property(e => e.SendCount).HasColumnType("int(11)");
  1650. entity.Property(e => e.SeoDescription)
  1651. .HasColumnType("varchar(500)")
  1652. .HasCharSet("utf8")
  1653. .HasCollation("utf8_general_ci");
  1654. entity.Property(e => e.SeoKeyword)
  1655. .HasColumnType("varchar(200)")
  1656. .HasCharSet("utf8")
  1657. .HasCollation("utf8_general_ci");
  1658. entity.Property(e => e.SeoTitle)
  1659. .HasColumnType("varchar(100)")
  1660. .HasCharSet("utf8")
  1661. .HasCollation("utf8_general_ci");
  1662. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1663. entity.Property(e => e.Status).HasColumnType("int(11)");
  1664. entity.Property(e => e.TradeDate)
  1665. .HasColumnType("varchar(8)")
  1666. .HasCharSet("utf8")
  1667. .HasCollation("utf8_general_ci");
  1668. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1669. entity.Property(e => e.UpdateMan)
  1670. .HasColumnType("varchar(50)")
  1671. .HasCharSet("utf8")
  1672. .HasCollation("utf8_general_ci");
  1673. entity.Property(e => e.Version).HasColumnType("int(11)");
  1674. });
  1675. modelBuilder.Entity<StoreSendMonthSummary>(entity =>
  1676. {
  1677. entity.Property(e => e.Id).HasColumnType("int(11)");
  1678. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1679. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1680. entity.Property(e => e.CreateMan)
  1681. .HasColumnType("varchar(50)")
  1682. .HasCharSet("utf8")
  1683. .HasCollation("utf8_general_ci");
  1684. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1685. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1686. entity.Property(e => e.SendCount).HasColumnType("int(11)");
  1687. entity.Property(e => e.SeoDescription)
  1688. .HasColumnType("varchar(500)")
  1689. .HasCharSet("utf8")
  1690. .HasCollation("utf8_general_ci");
  1691. entity.Property(e => e.SeoKeyword)
  1692. .HasColumnType("varchar(200)")
  1693. .HasCharSet("utf8")
  1694. .HasCollation("utf8_general_ci");
  1695. entity.Property(e => e.SeoTitle)
  1696. .HasColumnType("varchar(100)")
  1697. .HasCharSet("utf8")
  1698. .HasCollation("utf8_general_ci");
  1699. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1700. entity.Property(e => e.Status).HasColumnType("int(11)");
  1701. entity.Property(e => e.TradeMonth)
  1702. .HasColumnType("varchar(6)")
  1703. .HasCharSet("utf8")
  1704. .HasCollation("utf8_general_ci");
  1705. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1706. entity.Property(e => e.UpdateMan)
  1707. .HasColumnType("varchar(50)")
  1708. .HasCharSet("utf8")
  1709. .HasCollation("utf8_general_ci");
  1710. entity.Property(e => e.Version).HasColumnType("int(11)");
  1711. });
  1712. modelBuilder.Entity<SysAdmin>(entity =>
  1713. {
  1714. entity.Property(e => e.Id).HasColumnType("int(11)");
  1715. entity.Property(e => e.AdminName)
  1716. .HasColumnType("varchar(50)")
  1717. .HasCharSet("utf8")
  1718. .HasCollation("utf8_general_ci");
  1719. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1720. entity.Property(e => e.CreateMan)
  1721. .HasColumnType("varchar(50)")
  1722. .HasCharSet("utf8")
  1723. .HasCollation("utf8_general_ci");
  1724. entity.Property(e => e.FilePath)
  1725. .HasColumnType("varchar(200)")
  1726. .HasCharSet("utf8")
  1727. .HasCollation("utf8_general_ci");
  1728. entity.Property(e => e.HeadPhoto)
  1729. .HasColumnType("varchar(200)")
  1730. .HasCharSet("utf8")
  1731. .HasCollation("utf8_general_ci");
  1732. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  1733. entity.Property(e => e.MakerCode)
  1734. .HasColumnType("varchar(20)")
  1735. .HasCharSet("utf8")
  1736. .HasCollation("utf8_general_ci");
  1737. entity.Property(e => e.MakerMobile)
  1738. .HasColumnType("varchar(11)")
  1739. .HasCharSet("utf8")
  1740. .HasCollation("utf8_general_ci");
  1741. entity.Property(e => e.MakerName)
  1742. .HasColumnType("varchar(30)")
  1743. .HasCharSet("utf8")
  1744. .HasCollation("utf8_general_ci");
  1745. entity.Property(e => e.OpCode)
  1746. .HasColumnType("varchar(20)")
  1747. .HasCharSet("utf8")
  1748. .HasCollation("utf8_general_ci");
  1749. entity.Property(e => e.Password)
  1750. .HasColumnType("varchar(32)")
  1751. .HasCharSet("utf8")
  1752. .HasCollation("utf8_general_ci");
  1753. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1754. entity.Property(e => e.RealName)
  1755. .HasColumnType("varchar(50)")
  1756. .HasCharSet("utf8")
  1757. .HasCollation("utf8_general_ci");
  1758. entity.Property(e => e.Role)
  1759. .HasColumnType("varchar(30)")
  1760. .HasCharSet("utf8")
  1761. .HasCollation("utf8_general_ci");
  1762. entity.Property(e => e.SeoDescription)
  1763. .HasColumnType("varchar(500)")
  1764. .HasCharSet("utf8")
  1765. .HasCollation("utf8_general_ci");
  1766. entity.Property(e => e.SeoKeyword)
  1767. .HasColumnType("varchar(200)")
  1768. .HasCharSet("utf8")
  1769. .HasCollation("utf8_general_ci");
  1770. entity.Property(e => e.SeoTitle)
  1771. .HasColumnType("varchar(100)")
  1772. .HasCharSet("utf8")
  1773. .HasCollation("utf8_general_ci");
  1774. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1775. entity.Property(e => e.Status).HasColumnType("int(11)");
  1776. entity.Property(e => e.StoreCount).HasColumnType("int(11)");
  1777. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  1778. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1779. entity.Property(e => e.UpdateMan)
  1780. .HasColumnType("varchar(50)")
  1781. .HasCharSet("utf8")
  1782. .HasCollation("utf8_general_ci");
  1783. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1784. entity.Property(e => e.Version).HasColumnType("int(11)");
  1785. });
  1786. modelBuilder.Entity<SysAdminRole>(entity =>
  1787. {
  1788. entity.Property(e => e.Id).HasColumnType("int(11)");
  1789. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1790. entity.Property(e => e.CreateMan)
  1791. .HasColumnType("varchar(50)")
  1792. .HasCharSet("utf8")
  1793. .HasCollation("utf8_general_ci");
  1794. entity.Property(e => e.Details)
  1795. .HasColumnType("longtext")
  1796. .HasCharSet("utf8")
  1797. .HasCollation("utf8_general_ci");
  1798. entity.Property(e => e.Name)
  1799. .HasColumnType("varchar(50)")
  1800. .HasCharSet("utf8")
  1801. .HasCollation("utf8_general_ci");
  1802. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1803. entity.Property(e => e.RightInfo)
  1804. .HasColumnType("longtext")
  1805. .HasCharSet("utf8")
  1806. .HasCollation("utf8_general_ci");
  1807. entity.Property(e => e.SeoDescription)
  1808. .HasColumnType("varchar(500)")
  1809. .HasCharSet("utf8")
  1810. .HasCollation("utf8_general_ci");
  1811. entity.Property(e => e.SeoKeyword)
  1812. .HasColumnType("varchar(200)")
  1813. .HasCharSet("utf8")
  1814. .HasCollation("utf8_general_ci");
  1815. entity.Property(e => e.SeoTitle)
  1816. .HasColumnType("varchar(100)")
  1817. .HasCharSet("utf8")
  1818. .HasCollation("utf8_general_ci");
  1819. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1820. entity.Property(e => e.Status).HasColumnType("int(11)");
  1821. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1822. entity.Property(e => e.UpdateMan)
  1823. .HasColumnType("varchar(50)")
  1824. .HasCharSet("utf8")
  1825. .HasCollation("utf8_general_ci");
  1826. entity.Property(e => e.Version).HasColumnType("int(11)");
  1827. });
  1828. modelBuilder.Entity<SysLog>(entity =>
  1829. {
  1830. entity.Property(e => e.Id).HasColumnType("int(11)");
  1831. entity.Property(e => e.Contents)
  1832. .HasColumnType("varchar(200)")
  1833. .HasCharSet("utf8")
  1834. .HasCollation("utf8_general_ci");
  1835. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1836. entity.Property(e => e.CreateMan)
  1837. .HasColumnType("varchar(50)")
  1838. .HasCharSet("utf8")
  1839. .HasCollation("utf8_general_ci");
  1840. });
  1841. modelBuilder.Entity<SystemSet>(entity =>
  1842. {
  1843. entity.Property(e => e.Id).HasColumnType("int(11)");
  1844. entity.Property(e => e.Address)
  1845. .HasColumnType("varchar(100)")
  1846. .HasCharSet("utf8")
  1847. .HasCollation("utf8_general_ci");
  1848. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1849. entity.Property(e => e.CreateMan)
  1850. .HasColumnType("varchar(50)")
  1851. .HasCharSet("utf8")
  1852. .HasCollation("utf8_general_ci");
  1853. entity.Property(e => e.IndexDescription)
  1854. .HasColumnType("longtext")
  1855. .HasCharSet("utf8")
  1856. .HasCollation("utf8_general_ci");
  1857. entity.Property(e => e.IndexKeyword)
  1858. .HasColumnType("varchar(200)")
  1859. .HasCharSet("utf8")
  1860. .HasCollation("utf8_general_ci");
  1861. entity.Property(e => e.Logo)
  1862. .HasColumnType("varchar(200)")
  1863. .HasCharSet("utf8")
  1864. .HasCollation("utf8_general_ci");
  1865. entity.Property(e => e.Phone)
  1866. .HasColumnType("varchar(100)")
  1867. .HasCharSet("utf8")
  1868. .HasCollation("utf8_general_ci");
  1869. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1870. entity.Property(e => e.RightInfo)
  1871. .HasColumnType("longtext")
  1872. .HasCharSet("utf8")
  1873. .HasCollation("utf8_general_ci");
  1874. entity.Property(e => e.SeoDescription)
  1875. .HasColumnType("varchar(500)")
  1876. .HasCharSet("utf8")
  1877. .HasCollation("utf8_general_ci");
  1878. entity.Property(e => e.SeoKeyword)
  1879. .HasColumnType("varchar(200)")
  1880. .HasCharSet("utf8")
  1881. .HasCollation("utf8_general_ci");
  1882. entity.Property(e => e.SeoTitle)
  1883. .HasColumnType("varchar(100)")
  1884. .HasCharSet("utf8")
  1885. .HasCollation("utf8_general_ci");
  1886. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1887. entity.Property(e => e.StartAdPhoto)
  1888. .HasColumnType("varchar(200)")
  1889. .HasCharSet("utf8")
  1890. .HasCollation("utf8_general_ci");
  1891. entity.Property(e => e.Status).HasColumnType("int(11)");
  1892. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1893. entity.Property(e => e.UpdateMan)
  1894. .HasColumnType("varchar(50)")
  1895. .HasCharSet("utf8")
  1896. .HasCollation("utf8_general_ci");
  1897. entity.Property(e => e.UploadAutoWater)
  1898. .HasColumnType("bit(1)")
  1899. .HasDefaultValueSql("b'0'");
  1900. entity.Property(e => e.UploadAutoZoom)
  1901. .HasColumnType("bit(1)")
  1902. .HasDefaultValueSql("b'0'");
  1903. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  1904. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  1905. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  1906. entity.Property(e => e.UploadExt)
  1907. .HasColumnType("varchar(100)")
  1908. .HasCharSet("utf8")
  1909. .HasCollation("utf8_general_ci");
  1910. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  1911. entity.Property(e => e.UploadOss)
  1912. .HasColumnType("bit(1)")
  1913. .HasDefaultValueSql("b'0'");
  1914. entity.Property(e => e.UploadWaterPath)
  1915. .HasColumnType("varchar(200)")
  1916. .HasCharSet("utf8")
  1917. .HasCollation("utf8_general_ci");
  1918. entity.Property(e => e.UploadWaterPosition)
  1919. .HasColumnType("varchar(15)")
  1920. .HasCharSet("utf8")
  1921. .HasCollation("utf8_general_ci");
  1922. entity.Property(e => e.Version).HasColumnType("int(11)");
  1923. entity.Property(e => e.WebName)
  1924. .HasColumnType("varchar(50)")
  1925. .HasCharSet("utf8")
  1926. .HasCollation("utf8_general_ci");
  1927. entity.Property(e => e.WebStatCode)
  1928. .HasColumnType("longtext")
  1929. .HasCharSet("utf8")
  1930. .HasCollation("utf8_general_ci");
  1931. entity.Property(e => e.WebUrl)
  1932. .HasColumnType("varchar(200)")
  1933. .HasCharSet("utf8")
  1934. .HasCollation("utf8_general_ci");
  1935. });
  1936. modelBuilder.Entity<UploadParams>(entity =>
  1937. {
  1938. entity.Property(e => e.Id).HasColumnType("int(11)");
  1939. entity.Property(e => e.ColumnEnName)
  1940. .HasColumnType("varchar(50)")
  1941. .HasCharSet("utf8")
  1942. .HasCollation("utf8_general_ci");
  1943. entity.Property(e => e.ColumnName)
  1944. .HasColumnType("varchar(50)")
  1945. .HasCharSet("utf8")
  1946. .HasCollation("utf8_general_ci");
  1947. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1948. entity.Property(e => e.CreateMan)
  1949. .HasColumnType("varchar(50)")
  1950. .HasCharSet("utf8")
  1951. .HasCollation("utf8_general_ci");
  1952. entity.Property(e => e.ParamString)
  1953. .HasColumnType("varchar(200)")
  1954. .HasCharSet("utf8")
  1955. .HasCollation("utf8_general_ci");
  1956. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1957. entity.Property(e => e.SeoDescription)
  1958. .HasColumnType("varchar(500)")
  1959. .HasCharSet("utf8")
  1960. .HasCollation("utf8_general_ci");
  1961. entity.Property(e => e.SeoKeyword)
  1962. .HasColumnType("varchar(200)")
  1963. .HasCharSet("utf8")
  1964. .HasCollation("utf8_general_ci");
  1965. entity.Property(e => e.SeoTitle)
  1966. .HasColumnType("varchar(100)")
  1967. .HasCharSet("utf8")
  1968. .HasCollation("utf8_general_ci");
  1969. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1970. entity.Property(e => e.Status).HasColumnType("int(11)");
  1971. entity.Property(e => e.TableEnName)
  1972. .HasColumnType("varchar(50)")
  1973. .HasCharSet("utf8")
  1974. .HasCollation("utf8_general_ci");
  1975. entity.Property(e => e.TableName)
  1976. .HasColumnType("varchar(50)")
  1977. .HasCharSet("utf8")
  1978. .HasCollation("utf8_general_ci");
  1979. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1980. entity.Property(e => e.UpdateMan)
  1981. .HasColumnType("varchar(50)")
  1982. .HasCharSet("utf8")
  1983. .HasCollation("utf8_general_ci");
  1984. entity.Property(e => e.Version).HasColumnType("int(11)");
  1985. });
  1986. modelBuilder.Entity<UserAccount>(entity =>
  1987. {
  1988. entity.Property(e => e.Id).HasColumnType("int(11)");
  1989. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  1990. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  1991. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1992. entity.Property(e => e.CreateMan)
  1993. .HasColumnType("varchar(50)")
  1994. .HasCharSet("utf8")
  1995. .HasCollation("utf8_general_ci");
  1996. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  1997. entity.Property(e => e.PosCouponApplyAmount).HasColumnType("decimal(18,2)");
  1998. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1999. entity.Property(e => e.SeoDescription)
  2000. .HasColumnType("varchar(500)")
  2001. .HasCharSet("utf8")
  2002. .HasCollation("utf8_general_ci");
  2003. entity.Property(e => e.SeoKeyword)
  2004. .HasColumnType("varchar(200)")
  2005. .HasCharSet("utf8")
  2006. .HasCollation("utf8_general_ci");
  2007. entity.Property(e => e.SeoTitle)
  2008. .HasColumnType("varchar(100)")
  2009. .HasCharSet("utf8")
  2010. .HasCollation("utf8_general_ci");
  2011. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2012. entity.Property(e => e.Status).HasColumnType("int(11)");
  2013. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  2014. entity.Property(e => e.TotalAmt).HasColumnType("decimal(18,2)");
  2015. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2016. entity.Property(e => e.UpdateMan)
  2017. .HasColumnType("varchar(50)")
  2018. .HasCharSet("utf8")
  2019. .HasCollation("utf8_general_ci");
  2020. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2021. entity.Property(e => e.ValidAmount).HasColumnType("decimal(18,2)");
  2022. entity.Property(e => e.ValidForGetAmount).HasColumnType("decimal(18,2)");
  2023. entity.Property(e => e.Version).HasColumnType("int(11)");
  2024. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  2025. entity.Property(e => e.WithdrawingAmount).HasColumnType("decimal(18,2)");
  2026. });
  2027. modelBuilder.Entity<UserAccountRecord>(entity =>
  2028. {
  2029. entity.Property(e => e.Id).HasColumnType("int(11)");
  2030. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  2031. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  2032. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  2033. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  2034. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  2035. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  2036. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  2037. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  2038. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2039. entity.Property(e => e.CreateMan)
  2040. .HasColumnType("varchar(50)")
  2041. .HasCharSet("utf8")
  2042. .HasCollation("utf8_general_ci");
  2043. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  2044. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2045. entity.Property(e => e.Remark)
  2046. .HasColumnType("varchar(64)")
  2047. .HasCharSet("utf8")
  2048. .HasCollation("utf8_general_ci");
  2049. entity.Property(e => e.SeoDescription)
  2050. .HasColumnType("varchar(500)")
  2051. .HasCharSet("utf8")
  2052. .HasCollation("utf8_general_ci");
  2053. entity.Property(e => e.SeoKeyword)
  2054. .HasColumnType("varchar(200)")
  2055. .HasCharSet("utf8")
  2056. .HasCollation("utf8_general_ci");
  2057. entity.Property(e => e.SeoTitle)
  2058. .HasColumnType("varchar(100)")
  2059. .HasCharSet("utf8")
  2060. .HasCollation("utf8_general_ci");
  2061. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2062. entity.Property(e => e.Status).HasColumnType("int(11)");
  2063. entity.Property(e => e.TransRecordNo)
  2064. .HasColumnType("varchar(32)")
  2065. .HasCharSet("utf8")
  2066. .HasCollation("utf8_general_ci");
  2067. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2068. entity.Property(e => e.UpdateMan)
  2069. .HasColumnType("varchar(50)")
  2070. .HasCharSet("utf8")
  2071. .HasCollation("utf8_general_ci");
  2072. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2073. entity.Property(e => e.Version).HasColumnType("int(11)");
  2074. });
  2075. modelBuilder.Entity<UserCashRecord>(entity =>
  2076. {
  2077. entity.Property(e => e.Id).HasColumnType("int(11)");
  2078. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  2079. entity.Property(e => e.CashOrderNo)
  2080. .HasColumnType("varchar(32)")
  2081. .HasCharSet("utf8")
  2082. .HasCollation("utf8_general_ci");
  2083. entity.Property(e => e.ChanelName)
  2084. .HasColumnType("varchar(32)")
  2085. .HasCharSet("utf8")
  2086. .HasCollation("utf8_general_ci");
  2087. entity.Property(e => e.ChannelCode)
  2088. .HasColumnType("varchar(16)")
  2089. .HasCharSet("utf8")
  2090. .HasCollation("utf8_general_ci");
  2091. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2092. entity.Property(e => e.CreateMan)
  2093. .HasColumnType("varchar(50)")
  2094. .HasCharSet("utf8")
  2095. .HasCollation("utf8_general_ci");
  2096. entity.Property(e => e.IdCardNo)
  2097. .HasColumnType("varchar(18)")
  2098. .HasCharSet("utf8")
  2099. .HasCollation("utf8_general_ci");
  2100. entity.Property(e => e.Ip)
  2101. .HasColumnType("varchar(15)")
  2102. .HasCharSet("utf8")
  2103. .HasCollation("utf8_general_ci");
  2104. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  2105. entity.Property(e => e.MediaSource)
  2106. .HasColumnType("varchar(16)")
  2107. .HasCharSet("utf8")
  2108. .HasCollation("utf8_general_ci");
  2109. entity.Property(e => e.PayTradeNo)
  2110. .HasColumnType("varchar(32)")
  2111. .HasCharSet("utf8")
  2112. .HasCollation("utf8_general_ci");
  2113. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  2114. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2115. entity.Property(e => e.Remark)
  2116. .HasColumnType("varchar(128)")
  2117. .HasCharSet("utf8")
  2118. .HasCollation("utf8_general_ci");
  2119. entity.Property(e => e.ReqData)
  2120. .HasColumnType("varchar(2048)")
  2121. .HasCharSet("utf8")
  2122. .HasCollation("utf8_general_ci");
  2123. entity.Property(e => e.ResData)
  2124. .HasColumnType("varchar(2048)")
  2125. .HasCharSet("utf8")
  2126. .HasCollation("utf8_general_ci");
  2127. entity.Property(e => e.ReturnCode)
  2128. .HasColumnType("varchar(32)")
  2129. .HasCharSet("utf8")
  2130. .HasCollation("utf8_general_ci");
  2131. entity.Property(e => e.ReturnMsg)
  2132. .HasColumnType("varchar(128)")
  2133. .HasCharSet("utf8")
  2134. .HasCollation("utf8_general_ci");
  2135. entity.Property(e => e.SeoDescription)
  2136. .HasColumnType("varchar(500)")
  2137. .HasCharSet("utf8")
  2138. .HasCollation("utf8_general_ci");
  2139. entity.Property(e => e.SeoKeyword)
  2140. .HasColumnType("varchar(200)")
  2141. .HasCharSet("utf8")
  2142. .HasCollation("utf8_general_ci");
  2143. entity.Property(e => e.SeoTitle)
  2144. .HasColumnType("varchar(100)")
  2145. .HasCharSet("utf8")
  2146. .HasCollation("utf8_general_ci");
  2147. entity.Property(e => e.SettleBankCardNo)
  2148. .HasColumnType("varchar(32)")
  2149. .HasCharSet("utf8")
  2150. .HasCollation("utf8_general_ci");
  2151. entity.Property(e => e.SettleBankName)
  2152. .HasColumnType("varchar(64)")
  2153. .HasCharSet("utf8")
  2154. .HasCollation("utf8_general_ci");
  2155. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2156. entity.Property(e => e.Status).HasColumnType("int(11)");
  2157. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  2158. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  2159. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  2160. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2161. entity.Property(e => e.UpdateMan)
  2162. .HasColumnType("varchar(50)")
  2163. .HasCharSet("utf8")
  2164. .HasCollation("utf8_general_ci");
  2165. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2166. entity.Property(e => e.Version).HasColumnType("int(11)");
  2167. });
  2168. OnModelCreatingPartial(modelBuilder);
  2169. }
  2170. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  2171. }
  2172. }