WebCMSEntities.cs 112 KB

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