WebCMSEntities.cs 109 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885
  1. using System;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata;
  4. namespace MySystem.OpModels
  5. {
  6. public partial class WebCMSEntities : DbContext
  7. {
  8. public WebCMSEntities()
  9. {
  10. }
  11. public WebCMSEntities(DbContextOptions<WebCMSEntities> options)
  12. : base(options)
  13. {
  14. }
  15. public virtual DbSet<ActMerDaySummary> ActMerDaySummary { get; set; }
  16. public virtual DbSet<ActMerMonthSummary> ActMerMonthSummary { get; set; }
  17. public virtual DbSet<Advertisment> Advertisment { get; set; }
  18. public virtual DbSet<AmountRecord> AmountRecord { get; set; }
  19. public virtual DbSet<Col> Col { get; set; }
  20. public virtual DbSet<MachineApplyOpRecord> MachineApplyOpRecord { get; set; }
  21. public virtual DbSet<MenuRight> MenuRight { get; set; }
  22. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  23. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  24. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  25. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  26. public virtual DbSet<MsgPush> MsgPush { get; set; }
  27. public virtual DbSet<MsgSms> MsgSms { get; set; }
  28. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  29. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  30. public virtual DbSet<OperateForCode> OperateForCode { get; set; }
  31. public virtual DbSet<OperateLog> OperateLog { get; set; }
  32. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  33. public virtual DbSet<PageInfo> PageInfo { get; set; }
  34. public virtual DbSet<PosCouponDaySummary> PosCouponDaySummary { get; set; }
  35. public virtual DbSet<PosCouponForOp> PosCouponForOp { get; set; }
  36. public virtual DbSet<PosCouponMonthSummary> PosCouponMonthSummary { get; set; }
  37. public virtual DbSet<PosCouponOrders> PosCouponOrders { get; set; }
  38. public virtual DbSet<PosCouponRecord> PosCouponRecord { get; set; }
  39. public virtual DbSet<PosCoupons> PosCoupons { get; set; }
  40. public virtual DbSet<PosMachines> PosMachines { get; set; }
  41. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  42. public virtual DbSet<RightDic> RightDic { get; set; }
  43. public virtual DbSet<SendDaySummary> SendDaySummary { get; set; }
  44. public virtual DbSet<SendMonthSummary> SendMonthSummary { get; set; }
  45. public virtual DbSet<StoreActMerDaySummary> StoreActMerDaySummary { get; set; }
  46. public virtual DbSet<StoreActMerMonthSummary> StoreActMerMonthSummary { get; set; }
  47. public virtual DbSet<StoreForOperate> StoreForOperate { get; set; }
  48. public virtual DbSet<StoreMachineApply> StoreMachineApply { get; set; }
  49. public virtual DbSet<StoreSendDaySummary> StoreSendDaySummary { get; set; }
  50. public virtual DbSet<StoreSendMonthSummary> StoreSendMonthSummary { get; set; }
  51. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  52. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  53. public virtual DbSet<SysLog> SysLog { get; set; }
  54. public virtual DbSet<SystemSet> SystemSet { get; set; }
  55. public virtual DbSet<UploadParams> UploadParams { get; set; }
  56. public virtual DbSet<UserAccount> UserAccount { get; set; }
  57. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  58. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  59. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  60. {
  61. if (!optionsBuilder.IsConfigured)
  62. {
  63. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["OpSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  64. }
  65. }
  66. protected override void OnModelCreating(ModelBuilder modelBuilder)
  67. {
  68. modelBuilder.Entity<ActMerDaySummary>(entity =>
  69. {
  70. entity.Property(e => e.Id).HasColumnType("int(11)");
  71. entity.Property(e => e.ActCount).HasColumnType("int(11)");
  72. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  73. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  74. entity.Property(e => e.CreateMan)
  75. .HasColumnType("varchar(50)")
  76. .HasCharSet("utf8")
  77. .HasCollation("utf8_general_ci");
  78. entity.Property(e => e.OpId).HasColumnType("int(11)");
  79. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  80. entity.Property(e => e.SeoDescription)
  81. .HasColumnType("varchar(500)")
  82. .HasCharSet("utf8")
  83. .HasCollation("utf8_general_ci");
  84. entity.Property(e => e.SeoKeyword)
  85. .HasColumnType("varchar(200)")
  86. .HasCharSet("utf8")
  87. .HasCollation("utf8_general_ci");
  88. entity.Property(e => e.SeoTitle)
  89. .HasColumnType("varchar(100)")
  90. .HasCharSet("utf8")
  91. .HasCollation("utf8_general_ci");
  92. entity.Property(e => e.Sort).HasColumnType("int(11)");
  93. entity.Property(e => e.Status).HasColumnType("int(11)");
  94. entity.Property(e => e.TradeDate)
  95. .HasColumnType("varchar(8)")
  96. .HasCharSet("utf8")
  97. .HasCollation("utf8_general_ci");
  98. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  99. entity.Property(e => e.UpdateMan)
  100. .HasColumnType("varchar(50)")
  101. .HasCharSet("utf8")
  102. .HasCollation("utf8_general_ci");
  103. entity.Property(e => e.Version).HasColumnType("int(11)");
  104. });
  105. modelBuilder.Entity<ActMerMonthSummary>(entity =>
  106. {
  107. entity.Property(e => e.Id).HasColumnType("int(11)");
  108. entity.Property(e => e.ActCount).HasColumnType("int(11)");
  109. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  110. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  111. entity.Property(e => e.CreateMan)
  112. .HasColumnType("varchar(50)")
  113. .HasCharSet("utf8")
  114. .HasCollation("utf8_general_ci");
  115. entity.Property(e => e.OpId).HasColumnType("int(11)");
  116. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  117. entity.Property(e => e.SeoDescription)
  118. .HasColumnType("varchar(500)")
  119. .HasCharSet("utf8")
  120. .HasCollation("utf8_general_ci");
  121. entity.Property(e => e.SeoKeyword)
  122. .HasColumnType("varchar(200)")
  123. .HasCharSet("utf8")
  124. .HasCollation("utf8_general_ci");
  125. entity.Property(e => e.SeoTitle)
  126. .HasColumnType("varchar(100)")
  127. .HasCharSet("utf8")
  128. .HasCollation("utf8_general_ci");
  129. entity.Property(e => e.Sort).HasColumnType("int(11)");
  130. entity.Property(e => e.Status).HasColumnType("int(11)");
  131. entity.Property(e => e.TradeMonth)
  132. .HasColumnType("varchar(6)")
  133. .HasCharSet("utf8")
  134. .HasCollation("utf8_general_ci");
  135. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  136. entity.Property(e => e.UpdateMan)
  137. .HasColumnType("varchar(50)")
  138. .HasCharSet("utf8")
  139. .HasCollation("utf8_general_ci");
  140. entity.Property(e => e.Version).HasColumnType("int(11)");
  141. });
  142. modelBuilder.Entity<Advertisment>(entity =>
  143. {
  144. entity.Property(e => e.Id).HasColumnType("int(11)");
  145. entity.Property(e => e.ColId)
  146. .HasColumnType("varchar(30)")
  147. .HasCharSet("utf8")
  148. .HasCollation("utf8_general_ci");
  149. entity.Property(e => e.Contents)
  150. .HasColumnType("longtext")
  151. .HasCharSet("utf8")
  152. .HasCollation("utf8_general_ci");
  153. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  154. entity.Property(e => e.CreateMan)
  155. .HasColumnType("varchar(50)")
  156. .HasCharSet("utf8")
  157. .HasCollation("utf8_general_ci");
  158. entity.Property(e => e.PicPath)
  159. .HasColumnType("varchar(200)")
  160. .HasCharSet("utf8")
  161. .HasCollation("utf8_general_ci");
  162. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  163. entity.Property(e => e.SeoDescription)
  164. .HasColumnType("varchar(500)")
  165. .HasCharSet("utf8")
  166. .HasCollation("utf8_general_ci");
  167. entity.Property(e => e.SeoKeyword)
  168. .HasColumnType("varchar(200)")
  169. .HasCharSet("utf8")
  170. .HasCollation("utf8_general_ci");
  171. entity.Property(e => e.SeoTitle)
  172. .HasColumnType("varchar(100)")
  173. .HasCharSet("utf8")
  174. .HasCollation("utf8_general_ci");
  175. entity.Property(e => e.Sort).HasColumnType("int(11)");
  176. entity.Property(e => e.Status).HasColumnType("int(11)");
  177. entity.Property(e => e.Title)
  178. .HasColumnType("varchar(50)")
  179. .HasCharSet("utf8")
  180. .HasCollation("utf8_general_ci");
  181. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  182. entity.Property(e => e.UpdateMan)
  183. .HasColumnType("varchar(50)")
  184. .HasCharSet("utf8")
  185. .HasCollation("utf8_general_ci");
  186. entity.Property(e => e.Url)
  187. .HasColumnType("longtext")
  188. .HasCharSet("utf8")
  189. .HasCollation("utf8_general_ci");
  190. entity.Property(e => e.Version).HasColumnType("int(11)");
  191. });
  192. modelBuilder.Entity<AmountRecord>(entity =>
  193. {
  194. entity.Property(e => e.Id).HasColumnType("int(11)");
  195. entity.Property(e => e.AfterAmount).HasColumnType("decimal(18,2)");
  196. entity.Property(e => e.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.OpId).HasColumnType("int(11)");
  1159. entity.Property(e => e.PosCouponId).HasColumnType("int(11)");
  1160. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1161. entity.Property(e => e.SeoDescription)
  1162. .HasColumnType("varchar(500)")
  1163. .HasCharSet("utf8")
  1164. .HasCollation("utf8_general_ci");
  1165. entity.Property(e => e.SeoKeyword)
  1166. .HasColumnType("varchar(200)")
  1167. .HasCharSet("utf8")
  1168. .HasCollation("utf8_general_ci");
  1169. entity.Property(e => e.SeoTitle)
  1170. .HasColumnType("varchar(100)")
  1171. .HasCharSet("utf8")
  1172. .HasCollation("utf8_general_ci");
  1173. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1174. entity.Property(e => e.Status).HasColumnType("int(11)");
  1175. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1176. });
  1177. modelBuilder.Entity<PosMachines>(entity =>
  1178. {
  1179. entity.Property(e => e.Id).HasColumnType("int(11)");
  1180. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1181. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1182. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1183. entity.Property(e => e.PosId).HasColumnType("int(11)");
  1184. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1185. entity.Property(e => e.SeoDescription)
  1186. .HasColumnType("varchar(500)")
  1187. .HasCharSet("utf8")
  1188. .HasCollation("utf8_general_ci");
  1189. entity.Property(e => e.SeoKeyword)
  1190. .HasColumnType("varchar(200)")
  1191. .HasCharSet("utf8")
  1192. .HasCollation("utf8_general_ci");
  1193. entity.Property(e => e.SeoTitle)
  1194. .HasColumnType("varchar(100)")
  1195. .HasCharSet("utf8")
  1196. .HasCollation("utf8_general_ci");
  1197. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1198. entity.Property(e => e.Status).HasColumnType("int(11)");
  1199. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1200. });
  1201. modelBuilder.Entity<PublicAccountSet>(entity =>
  1202. {
  1203. entity.Property(e => e.Id).HasColumnType("int(11)");
  1204. entity.Property(e => e.AlipayAppId)
  1205. .HasColumnType("varchar(50)")
  1206. .HasCharSet("utf8")
  1207. .HasCollation("utf8_general_ci");
  1208. entity.Property(e => e.AlipayPartnerId)
  1209. .HasColumnType("varchar(50)")
  1210. .HasCharSet("utf8")
  1211. .HasCollation("utf8_general_ci");
  1212. entity.Property(e => e.AlipayPrivateKey)
  1213. .HasColumnType("mediumtext")
  1214. .HasCharSet("utf8")
  1215. .HasCollation("utf8_general_ci");
  1216. entity.Property(e => e.AlipayPublicKey)
  1217. .HasColumnType("mediumtext")
  1218. .HasCharSet("utf8")
  1219. .HasCollation("utf8_general_ci");
  1220. entity.Property(e => e.AliyunAccessKeyId)
  1221. .HasColumnType("varchar(50)")
  1222. .HasCharSet("utf8")
  1223. .HasCollation("utf8_general_ci");
  1224. entity.Property(e => e.AliyunAccessKeySecret)
  1225. .HasColumnType("varchar(50)")
  1226. .HasCharSet("utf8")
  1227. .HasCollation("utf8_general_ci");
  1228. entity.Property(e => e.AliyunAndroidActivity)
  1229. .HasColumnType("varchar(100)")
  1230. .HasCharSet("utf8")
  1231. .HasCollation("utf8_general_ci");
  1232. entity.Property(e => e.AliyunAndroidNotifyTitle)
  1233. .HasColumnType("varchar(20)")
  1234. .HasCharSet("utf8")
  1235. .HasCollation("utf8_general_ci");
  1236. entity.Property(e => e.AliyunPushAndroidAppId)
  1237. .HasColumnType("varchar(50)")
  1238. .HasCharSet("utf8")
  1239. .HasCollation("utf8_general_ci");
  1240. entity.Property(e => e.AliyunPushAndroidAppSecret)
  1241. .HasColumnType("varchar(50)")
  1242. .HasCharSet("utf8")
  1243. .HasCollation("utf8_general_ci");
  1244. entity.Property(e => e.AliyunPushIosAppId)
  1245. .HasColumnType("varchar(500)")
  1246. .HasCharSet("utf8")
  1247. .HasCollation("utf8_general_ci");
  1248. entity.Property(e => e.AliyunPushIosAppSecret)
  1249. .HasColumnType("varchar(50)")
  1250. .HasCharSet("utf8")
  1251. .HasCollation("utf8_general_ci");
  1252. entity.Property(e => e.AliyunRegionId)
  1253. .HasColumnType("varchar(30)")
  1254. .HasCharSet("utf8")
  1255. .HasCollation("utf8_general_ci");
  1256. entity.Property(e => e.ErpApiUrl)
  1257. .HasColumnType("varchar(200)")
  1258. .HasCharSet("utf8")
  1259. .HasCollation("utf8_general_ci");
  1260. entity.Property(e => e.ErpAppCode)
  1261. .HasColumnType("varchar(100)")
  1262. .HasCharSet("utf8")
  1263. .HasCollation("utf8_general_ci");
  1264. entity.Property(e => e.MeiQiaAppKey)
  1265. .HasColumnType("varchar(50)")
  1266. .HasCharSet("utf8")
  1267. .HasCollation("utf8_general_ci");
  1268. entity.Property(e => e.MobAppKey)
  1269. .HasColumnType("varchar(50)")
  1270. .HasCharSet("utf8")
  1271. .HasCollation("utf8_general_ci");
  1272. entity.Property(e => e.MobAppSecret)
  1273. .HasColumnType("varchar(50)")
  1274. .HasCharSet("utf8")
  1275. .HasCollation("utf8_general_ci");
  1276. entity.Property(e => e.QqAndroidAppId)
  1277. .HasColumnType("varchar(50)")
  1278. .HasCharSet("utf8")
  1279. .HasCollation("utf8_general_ci");
  1280. entity.Property(e => e.QqAndroidAppKey)
  1281. .HasColumnType("varchar(50)")
  1282. .HasCharSet("utf8")
  1283. .HasCollation("utf8_general_ci");
  1284. entity.Property(e => e.QqIosAppId)
  1285. .HasColumnType("varchar(50)")
  1286. .HasCharSet("utf8")
  1287. .HasCollation("utf8_general_ci");
  1288. entity.Property(e => e.QqIosAppKey)
  1289. .HasColumnType("varchar(50)")
  1290. .HasCharSet("utf8")
  1291. .HasCollation("utf8_general_ci");
  1292. entity.Property(e => e.ServerIp)
  1293. .HasColumnType("varchar(15)")
  1294. .HasCharSet("utf8")
  1295. .HasCollation("utf8_general_ci");
  1296. entity.Property(e => e.SmsApiDefaultTemplate)
  1297. .HasColumnType("varchar(200)")
  1298. .HasCharSet("utf8")
  1299. .HasCollation("utf8_general_ci");
  1300. entity.Property(e => e.SmsApiPwd)
  1301. .HasColumnType("varchar(50)")
  1302. .HasCharSet("utf8")
  1303. .HasCollation("utf8_general_ci");
  1304. entity.Property(e => e.SmsApiSign)
  1305. .HasColumnType("varchar(10)")
  1306. .HasCharSet("utf8")
  1307. .HasCollation("utf8_general_ci");
  1308. entity.Property(e => e.SmsApiUserId)
  1309. .HasColumnType("varchar(50)")
  1310. .HasCharSet("utf8")
  1311. .HasCollation("utf8_general_ci");
  1312. entity.Property(e => e.WeChatAppId)
  1313. .HasColumnType("varchar(50)")
  1314. .HasCharSet("utf8")
  1315. .HasCollation("utf8_general_ci");
  1316. entity.Property(e => e.WeChatAppSecret)
  1317. .HasColumnType("varchar(50)")
  1318. .HasCharSet("utf8")
  1319. .HasCollation("utf8_general_ci");
  1320. entity.Property(e => e.WeChatMchId)
  1321. .HasColumnType("varchar(20)")
  1322. .HasCharSet("utf8")
  1323. .HasCollation("utf8_general_ci");
  1324. entity.Property(e => e.WeChatMiniAppId)
  1325. .HasColumnType("varchar(50)")
  1326. .HasCharSet("utf8")
  1327. .HasCollation("utf8_general_ci");
  1328. entity.Property(e => e.WeChatMiniAppSecret)
  1329. .HasColumnType("varchar(50)")
  1330. .HasCharSet("utf8")
  1331. .HasCollation("utf8_general_ci");
  1332. entity.Property(e => e.WeChatOpenAppId)
  1333. .HasColumnType("varchar(50)")
  1334. .HasCharSet("utf8")
  1335. .HasCollation("utf8_general_ci");
  1336. entity.Property(e => e.WeChatOpenAppSecret)
  1337. .HasColumnType("varchar(50)")
  1338. .HasCharSet("utf8")
  1339. .HasCollation("utf8_general_ci");
  1340. entity.Property(e => e.WeChatPayKey)
  1341. .HasColumnType("varchar(50)")
  1342. .HasCharSet("utf8")
  1343. .HasCollation("utf8_general_ci");
  1344. });
  1345. modelBuilder.Entity<RightDic>(entity =>
  1346. {
  1347. entity.Property(e => e.Id)
  1348. .HasColumnName("ID")
  1349. .HasColumnType("varchar(50)")
  1350. .HasCharSet("utf8")
  1351. .HasCollation("utf8_general_ci");
  1352. entity.Property(e => e.Icon)
  1353. .HasColumnType("varchar(50)")
  1354. .HasCharSet("utf8")
  1355. .HasCollation("utf8_general_ci");
  1356. entity.Property(e => e.MainDataList)
  1357. .HasColumnType("bit(1)")
  1358. .HasDefaultValueSql("b'0'");
  1359. entity.Property(e => e.MainMenu)
  1360. .HasColumnType("bit(1)")
  1361. .HasDefaultValueSql("b'0'");
  1362. entity.Property(e => e.MainStat)
  1363. .HasColumnType("bit(1)")
  1364. .HasDefaultValueSql("b'0'");
  1365. entity.Property(e => e.Name)
  1366. .HasColumnType("varchar(50)")
  1367. .HasCharSet("utf8")
  1368. .HasCollation("utf8_general_ci");
  1369. entity.Property(e => e.OtherRight)
  1370. .HasColumnType("varchar(500)")
  1371. .HasCharSet("utf8")
  1372. .HasCollation("utf8_general_ci");
  1373. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  1374. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1375. entity.Property(e => e.Url)
  1376. .HasColumnType("varchar(200)")
  1377. .HasCharSet("utf8")
  1378. .HasCollation("utf8_general_ci");
  1379. });
  1380. modelBuilder.Entity<SendDaySummary>(entity =>
  1381. {
  1382. entity.Property(e => e.Id).HasColumnType("int(11)");
  1383. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1384. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1385. entity.Property(e => e.CreateMan)
  1386. .HasColumnType("varchar(50)")
  1387. .HasCharSet("utf8")
  1388. .HasCollation("utf8_general_ci");
  1389. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1390. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1391. entity.Property(e => e.SendCount).HasColumnType("int(11)");
  1392. entity.Property(e => e.SeoDescription)
  1393. .HasColumnType("varchar(500)")
  1394. .HasCharSet("utf8")
  1395. .HasCollation("utf8_general_ci");
  1396. entity.Property(e => e.SeoKeyword)
  1397. .HasColumnType("varchar(200)")
  1398. .HasCharSet("utf8")
  1399. .HasCollation("utf8_general_ci");
  1400. entity.Property(e => e.SeoTitle)
  1401. .HasColumnType("varchar(100)")
  1402. .HasCharSet("utf8")
  1403. .HasCollation("utf8_general_ci");
  1404. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1405. entity.Property(e => e.Status).HasColumnType("int(11)");
  1406. entity.Property(e => e.TradeDate)
  1407. .HasColumnType("varchar(8)")
  1408. .HasCharSet("utf8")
  1409. .HasCollation("utf8_general_ci");
  1410. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1411. entity.Property(e => e.UpdateMan)
  1412. .HasColumnType("varchar(50)")
  1413. .HasCharSet("utf8")
  1414. .HasCollation("utf8_general_ci");
  1415. entity.Property(e => e.Version).HasColumnType("int(11)");
  1416. });
  1417. modelBuilder.Entity<SendMonthSummary>(entity =>
  1418. {
  1419. entity.Property(e => e.Id).HasColumnType("int(11)");
  1420. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1421. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1422. entity.Property(e => e.CreateMan)
  1423. .HasColumnType("varchar(50)")
  1424. .HasCharSet("utf8")
  1425. .HasCollation("utf8_general_ci");
  1426. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1427. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1428. entity.Property(e => e.SendCount).HasColumnType("int(11)");
  1429. entity.Property(e => e.SeoDescription)
  1430. .HasColumnType("varchar(500)")
  1431. .HasCharSet("utf8")
  1432. .HasCollation("utf8_general_ci");
  1433. entity.Property(e => e.SeoKeyword)
  1434. .HasColumnType("varchar(200)")
  1435. .HasCharSet("utf8")
  1436. .HasCollation("utf8_general_ci");
  1437. entity.Property(e => e.SeoTitle)
  1438. .HasColumnType("varchar(100)")
  1439. .HasCharSet("utf8")
  1440. .HasCollation("utf8_general_ci");
  1441. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1442. entity.Property(e => e.Status).HasColumnType("int(11)");
  1443. entity.Property(e => e.TradeMonth)
  1444. .HasColumnType("varchar(6)")
  1445. .HasCharSet("utf8")
  1446. .HasCollation("utf8_general_ci");
  1447. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1448. entity.Property(e => e.UpdateMan)
  1449. .HasColumnType("varchar(50)")
  1450. .HasCharSet("utf8")
  1451. .HasCollation("utf8_general_ci");
  1452. entity.Property(e => e.Version).HasColumnType("int(11)");
  1453. });
  1454. modelBuilder.Entity<StoreActMerDaySummary>(entity =>
  1455. {
  1456. entity.Property(e => e.Id).HasColumnType("int(11)");
  1457. entity.Property(e => e.ActCount).HasColumnType("int(11)");
  1458. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1459. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1460. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1461. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1462. entity.Property(e => e.SeoDescription)
  1463. .HasColumnType("varchar(500)")
  1464. .HasCharSet("utf8")
  1465. .HasCollation("utf8_general_ci");
  1466. entity.Property(e => e.SeoKeyword)
  1467. .HasColumnType("varchar(200)")
  1468. .HasCharSet("utf8")
  1469. .HasCollation("utf8_general_ci");
  1470. entity.Property(e => e.SeoTitle)
  1471. .HasColumnType("varchar(100)")
  1472. .HasCharSet("utf8")
  1473. .HasCollation("utf8_general_ci");
  1474. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1475. entity.Property(e => e.Status).HasColumnType("int(11)");
  1476. entity.Property(e => e.TradeDate)
  1477. .HasColumnType("varchar(8)")
  1478. .HasCharSet("utf8")
  1479. .HasCollation("utf8_general_ci");
  1480. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1481. });
  1482. modelBuilder.Entity<StoreActMerMonthSummary>(entity =>
  1483. {
  1484. entity.Property(e => e.Id).HasColumnType("int(11)");
  1485. entity.Property(e => e.ActCount).HasColumnType("int(11)");
  1486. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1487. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1488. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1489. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1490. entity.Property(e => e.SeoDescription)
  1491. .HasColumnType("varchar(500)")
  1492. .HasCharSet("utf8")
  1493. .HasCollation("utf8_general_ci");
  1494. entity.Property(e => e.SeoKeyword)
  1495. .HasColumnType("varchar(200)")
  1496. .HasCharSet("utf8")
  1497. .HasCollation("utf8_general_ci");
  1498. entity.Property(e => e.SeoTitle)
  1499. .HasColumnType("varchar(100)")
  1500. .HasCharSet("utf8")
  1501. .HasCollation("utf8_general_ci");
  1502. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1503. entity.Property(e => e.Status).HasColumnType("int(11)");
  1504. entity.Property(e => e.TradeMonth)
  1505. .HasColumnType("varchar(6)")
  1506. .HasCharSet("utf8")
  1507. .HasCollation("utf8_general_ci");
  1508. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1509. });
  1510. modelBuilder.Entity<StoreForOperate>(entity =>
  1511. {
  1512. entity.Property(e => e.Id).HasColumnType("int(11)");
  1513. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1514. entity.Property(e => e.CreateMan)
  1515. .HasColumnType("varchar(50)")
  1516. .HasCharSet("utf8")
  1517. .HasCollation("utf8_general_ci");
  1518. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1519. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1520. entity.Property(e => e.SeoDescription)
  1521. .HasColumnType("varchar(500)")
  1522. .HasCharSet("utf8")
  1523. .HasCollation("utf8_general_ci");
  1524. entity.Property(e => e.SeoKeyword)
  1525. .HasColumnType("varchar(200)")
  1526. .HasCharSet("utf8")
  1527. .HasCollation("utf8_general_ci");
  1528. entity.Property(e => e.SeoTitle)
  1529. .HasColumnType("varchar(100)")
  1530. .HasCharSet("utf8")
  1531. .HasCollation("utf8_general_ci");
  1532. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1533. entity.Property(e => e.Status).HasColumnType("int(11)");
  1534. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1535. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1536. entity.Property(e => e.UpdateMan)
  1537. .HasColumnType("varchar(50)")
  1538. .HasCharSet("utf8")
  1539. .HasCollation("utf8_general_ci");
  1540. entity.Property(e => e.Version).HasColumnType("int(11)");
  1541. });
  1542. modelBuilder.Entity<StoreMachineApply>(entity =>
  1543. {
  1544. entity.Property(e => e.Id).HasColumnType("int(11)");
  1545. entity.Property(e => e.ApplyNo)
  1546. .HasColumnType("varchar(50)")
  1547. .HasCharSet("utf8")
  1548. .HasCollation("utf8_general_ci");
  1549. entity.Property(e => e.ApplyNum).HasColumnType("int(11)");
  1550. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1551. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1552. entity.Property(e => e.ErpCode)
  1553. .HasColumnType("varchar(50)")
  1554. .HasCharSet("utf8")
  1555. .HasCollation("utf8_general_ci");
  1556. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1557. entity.Property(e => e.SendMode)
  1558. .HasColumnType("varchar(50)")
  1559. .HasCharSet("utf8")
  1560. .HasCollation("utf8_general_ci");
  1561. entity.Property(e => e.SendNum).HasColumnType("int(11)");
  1562. entity.Property(e => e.SendSn)
  1563. .HasColumnType("mediumtext")
  1564. .HasCharSet("utf8")
  1565. .HasCollation("utf8_general_ci");
  1566. entity.Property(e => e.SeoDescription)
  1567. .HasColumnType("varchar(500)")
  1568. .HasCharSet("utf8")
  1569. .HasCollation("utf8_general_ci");
  1570. entity.Property(e => e.SeoKeyword)
  1571. .HasColumnType("varchar(200)")
  1572. .HasCharSet("utf8")
  1573. .HasCollation("utf8_general_ci");
  1574. entity.Property(e => e.SeoTitle)
  1575. .HasColumnType("varchar(100)")
  1576. .HasCharSet("utf8")
  1577. .HasCollation("utf8_general_ci");
  1578. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1579. entity.Property(e => e.Status).HasColumnType("int(11)");
  1580. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1581. entity.Property(e => e.UseAmount).HasColumnType("decimal(18,2)");
  1582. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1583. });
  1584. modelBuilder.Entity<StoreSendDaySummary>(entity =>
  1585. {
  1586. entity.Property(e => e.Id).HasColumnType("int(11)");
  1587. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1588. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1589. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1590. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1591. entity.Property(e => e.SendCount).HasColumnType("int(11)");
  1592. entity.Property(e => e.SeoDescription)
  1593. .HasColumnType("varchar(500)")
  1594. .HasCharSet("utf8")
  1595. .HasCollation("utf8_general_ci");
  1596. entity.Property(e => e.SeoKeyword)
  1597. .HasColumnType("varchar(200)")
  1598. .HasCharSet("utf8")
  1599. .HasCollation("utf8_general_ci");
  1600. entity.Property(e => e.SeoTitle)
  1601. .HasColumnType("varchar(100)")
  1602. .HasCharSet("utf8")
  1603. .HasCollation("utf8_general_ci");
  1604. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1605. entity.Property(e => e.Status).HasColumnType("int(11)");
  1606. entity.Property(e => e.TradeDate)
  1607. .HasColumnType("varchar(8)")
  1608. .HasCharSet("utf8")
  1609. .HasCollation("utf8_general_ci");
  1610. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1611. });
  1612. modelBuilder.Entity<StoreSendMonthSummary>(entity =>
  1613. {
  1614. entity.Property(e => e.Id).HasColumnType("int(11)");
  1615. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1616. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1617. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1618. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1619. entity.Property(e => e.SendCount).HasColumnType("int(11)");
  1620. entity.Property(e => e.SeoDescription)
  1621. .HasColumnType("varchar(500)")
  1622. .HasCharSet("utf8")
  1623. .HasCollation("utf8_general_ci");
  1624. entity.Property(e => e.SeoKeyword)
  1625. .HasColumnType("varchar(200)")
  1626. .HasCharSet("utf8")
  1627. .HasCollation("utf8_general_ci");
  1628. entity.Property(e => e.SeoTitle)
  1629. .HasColumnType("varchar(100)")
  1630. .HasCharSet("utf8")
  1631. .HasCollation("utf8_general_ci");
  1632. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1633. entity.Property(e => e.Status).HasColumnType("int(11)");
  1634. entity.Property(e => e.TradeMonth)
  1635. .HasColumnType("varchar(6)")
  1636. .HasCharSet("utf8")
  1637. .HasCollation("utf8_general_ci");
  1638. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1639. });
  1640. modelBuilder.Entity<SysAdmin>(entity =>
  1641. {
  1642. entity.Property(e => e.Id).HasColumnType("int(11)");
  1643. entity.Property(e => e.AdminName)
  1644. .HasColumnType("varchar(50)")
  1645. .HasCharSet("utf8")
  1646. .HasCollation("utf8_general_ci");
  1647. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1648. entity.Property(e => e.CreateMan)
  1649. .HasColumnType("varchar(50)")
  1650. .HasCharSet("utf8")
  1651. .HasCollation("utf8_general_ci");
  1652. entity.Property(e => e.FilePath)
  1653. .HasColumnType("varchar(200)")
  1654. .HasCharSet("utf8")
  1655. .HasCollation("utf8_general_ci");
  1656. entity.Property(e => e.HeadPhoto)
  1657. .HasColumnType("varchar(200)")
  1658. .HasCharSet("utf8")
  1659. .HasCollation("utf8_general_ci");
  1660. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  1661. entity.Property(e => e.MakerCode)
  1662. .HasColumnType("varchar(20)")
  1663. .HasCharSet("utf8")
  1664. .HasCollation("utf8_general_ci");
  1665. entity.Property(e => e.MakerMobile)
  1666. .HasColumnType("varchar(11)")
  1667. .HasCharSet("utf8")
  1668. .HasCollation("utf8_general_ci");
  1669. entity.Property(e => e.MakerName)
  1670. .HasColumnType("varchar(30)")
  1671. .HasCharSet("utf8")
  1672. .HasCollation("utf8_general_ci");
  1673. entity.Property(e => e.OpCode)
  1674. .HasColumnType("varchar(20)")
  1675. .HasCharSet("utf8")
  1676. .HasCollation("utf8_general_ci");
  1677. entity.Property(e => e.Password)
  1678. .HasColumnType("varchar(32)")
  1679. .HasCharSet("utf8")
  1680. .HasCollation("utf8_general_ci");
  1681. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1682. entity.Property(e => e.RealName)
  1683. .HasColumnType("varchar(50)")
  1684. .HasCharSet("utf8")
  1685. .HasCollation("utf8_general_ci");
  1686. entity.Property(e => e.Role)
  1687. .HasColumnType("varchar(30)")
  1688. .HasCharSet("utf8")
  1689. .HasCollation("utf8_general_ci");
  1690. entity.Property(e => e.SeoDescription)
  1691. .HasColumnType("varchar(500)")
  1692. .HasCharSet("utf8")
  1693. .HasCollation("utf8_general_ci");
  1694. entity.Property(e => e.SeoKeyword)
  1695. .HasColumnType("varchar(200)")
  1696. .HasCharSet("utf8")
  1697. .HasCollation("utf8_general_ci");
  1698. entity.Property(e => e.SeoTitle)
  1699. .HasColumnType("varchar(100)")
  1700. .HasCharSet("utf8")
  1701. .HasCollation("utf8_general_ci");
  1702. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1703. entity.Property(e => e.Status).HasColumnType("int(11)");
  1704. entity.Property(e => e.StoreCount).HasColumnType("int(11)");
  1705. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  1706. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1707. entity.Property(e => e.UpdateMan)
  1708. .HasColumnType("varchar(50)")
  1709. .HasCharSet("utf8")
  1710. .HasCollation("utf8_general_ci");
  1711. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1712. entity.Property(e => e.Version).HasColumnType("int(11)");
  1713. });
  1714. modelBuilder.Entity<SysAdminRole>(entity =>
  1715. {
  1716. entity.Property(e => e.Id).HasColumnType("int(11)");
  1717. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1718. entity.Property(e => e.CreateMan)
  1719. .HasColumnType("varchar(50)")
  1720. .HasCharSet("utf8")
  1721. .HasCollation("utf8_general_ci");
  1722. entity.Property(e => e.Details)
  1723. .HasColumnType("longtext")
  1724. .HasCharSet("utf8")
  1725. .HasCollation("utf8_general_ci");
  1726. entity.Property(e => e.Name)
  1727. .HasColumnType("varchar(50)")
  1728. .HasCharSet("utf8")
  1729. .HasCollation("utf8_general_ci");
  1730. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1731. entity.Property(e => e.RightInfo)
  1732. .HasColumnType("longtext")
  1733. .HasCharSet("utf8")
  1734. .HasCollation("utf8_general_ci");
  1735. entity.Property(e => e.SeoDescription)
  1736. .HasColumnType("varchar(500)")
  1737. .HasCharSet("utf8")
  1738. .HasCollation("utf8_general_ci");
  1739. entity.Property(e => e.SeoKeyword)
  1740. .HasColumnType("varchar(200)")
  1741. .HasCharSet("utf8")
  1742. .HasCollation("utf8_general_ci");
  1743. entity.Property(e => e.SeoTitle)
  1744. .HasColumnType("varchar(100)")
  1745. .HasCharSet("utf8")
  1746. .HasCollation("utf8_general_ci");
  1747. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1748. entity.Property(e => e.Status).HasColumnType("int(11)");
  1749. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1750. entity.Property(e => e.UpdateMan)
  1751. .HasColumnType("varchar(50)")
  1752. .HasCharSet("utf8")
  1753. .HasCollation("utf8_general_ci");
  1754. entity.Property(e => e.Version).HasColumnType("int(11)");
  1755. });
  1756. modelBuilder.Entity<SysLog>(entity =>
  1757. {
  1758. entity.Property(e => e.Id).HasColumnType("int(11)");
  1759. entity.Property(e => e.Contents)
  1760. .HasColumnType("varchar(200)")
  1761. .HasCharSet("utf8")
  1762. .HasCollation("utf8_general_ci");
  1763. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1764. entity.Property(e => e.CreateMan)
  1765. .HasColumnType("varchar(50)")
  1766. .HasCharSet("utf8")
  1767. .HasCollation("utf8_general_ci");
  1768. });
  1769. modelBuilder.Entity<SystemSet>(entity =>
  1770. {
  1771. entity.Property(e => e.Id).HasColumnType("int(11)");
  1772. entity.Property(e => e.Address)
  1773. .HasColumnType("varchar(100)")
  1774. .HasCharSet("utf8")
  1775. .HasCollation("utf8_general_ci");
  1776. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1777. entity.Property(e => e.CreateMan)
  1778. .HasColumnType("varchar(50)")
  1779. .HasCharSet("utf8")
  1780. .HasCollation("utf8_general_ci");
  1781. entity.Property(e => e.IndexDescription)
  1782. .HasColumnType("longtext")
  1783. .HasCharSet("utf8")
  1784. .HasCollation("utf8_general_ci");
  1785. entity.Property(e => e.IndexKeyword)
  1786. .HasColumnType("varchar(200)")
  1787. .HasCharSet("utf8")
  1788. .HasCollation("utf8_general_ci");
  1789. entity.Property(e => e.Logo)
  1790. .HasColumnType("varchar(200)")
  1791. .HasCharSet("utf8")
  1792. .HasCollation("utf8_general_ci");
  1793. entity.Property(e => e.Phone)
  1794. .HasColumnType("varchar(100)")
  1795. .HasCharSet("utf8")
  1796. .HasCollation("utf8_general_ci");
  1797. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1798. entity.Property(e => e.RightInfo)
  1799. .HasColumnType("longtext")
  1800. .HasCharSet("utf8")
  1801. .HasCollation("utf8_general_ci");
  1802. entity.Property(e => e.SeoDescription)
  1803. .HasColumnType("varchar(500)")
  1804. .HasCharSet("utf8")
  1805. .HasCollation("utf8_general_ci");
  1806. entity.Property(e => e.SeoKeyword)
  1807. .HasColumnType("varchar(200)")
  1808. .HasCharSet("utf8")
  1809. .HasCollation("utf8_general_ci");
  1810. entity.Property(e => e.SeoTitle)
  1811. .HasColumnType("varchar(100)")
  1812. .HasCharSet("utf8")
  1813. .HasCollation("utf8_general_ci");
  1814. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1815. entity.Property(e => e.StartAdPhoto)
  1816. .HasColumnType("varchar(200)")
  1817. .HasCharSet("utf8")
  1818. .HasCollation("utf8_general_ci");
  1819. entity.Property(e => e.Status).HasColumnType("int(11)");
  1820. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1821. entity.Property(e => e.UpdateMan)
  1822. .HasColumnType("varchar(50)")
  1823. .HasCharSet("utf8")
  1824. .HasCollation("utf8_general_ci");
  1825. entity.Property(e => e.UploadAutoWater)
  1826. .HasColumnType("bit(1)")
  1827. .HasDefaultValueSql("b'0'");
  1828. entity.Property(e => e.UploadAutoZoom)
  1829. .HasColumnType("bit(1)")
  1830. .HasDefaultValueSql("b'0'");
  1831. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  1832. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  1833. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  1834. entity.Property(e => e.UploadExt)
  1835. .HasColumnType("varchar(100)")
  1836. .HasCharSet("utf8")
  1837. .HasCollation("utf8_general_ci");
  1838. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  1839. entity.Property(e => e.UploadOss)
  1840. .HasColumnType("bit(1)")
  1841. .HasDefaultValueSql("b'0'");
  1842. entity.Property(e => e.UploadWaterPath)
  1843. .HasColumnType("varchar(200)")
  1844. .HasCharSet("utf8")
  1845. .HasCollation("utf8_general_ci");
  1846. entity.Property(e => e.UploadWaterPosition)
  1847. .HasColumnType("varchar(15)")
  1848. .HasCharSet("utf8")
  1849. .HasCollation("utf8_general_ci");
  1850. entity.Property(e => e.Version).HasColumnType("int(11)");
  1851. entity.Property(e => e.WebName)
  1852. .HasColumnType("varchar(50)")
  1853. .HasCharSet("utf8")
  1854. .HasCollation("utf8_general_ci");
  1855. entity.Property(e => e.WebStatCode)
  1856. .HasColumnType("longtext")
  1857. .HasCharSet("utf8")
  1858. .HasCollation("utf8_general_ci");
  1859. entity.Property(e => e.WebUrl)
  1860. .HasColumnType("varchar(200)")
  1861. .HasCharSet("utf8")
  1862. .HasCollation("utf8_general_ci");
  1863. });
  1864. modelBuilder.Entity<UploadParams>(entity =>
  1865. {
  1866. entity.Property(e => e.Id).HasColumnType("int(11)");
  1867. entity.Property(e => e.ColumnEnName)
  1868. .HasColumnType("varchar(50)")
  1869. .HasCharSet("utf8")
  1870. .HasCollation("utf8_general_ci");
  1871. entity.Property(e => e.ColumnName)
  1872. .HasColumnType("varchar(50)")
  1873. .HasCharSet("utf8")
  1874. .HasCollation("utf8_general_ci");
  1875. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1876. entity.Property(e => e.CreateMan)
  1877. .HasColumnType("varchar(50)")
  1878. .HasCharSet("utf8")
  1879. .HasCollation("utf8_general_ci");
  1880. entity.Property(e => e.ParamString)
  1881. .HasColumnType("varchar(200)")
  1882. .HasCharSet("utf8")
  1883. .HasCollation("utf8_general_ci");
  1884. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1885. entity.Property(e => e.SeoDescription)
  1886. .HasColumnType("varchar(500)")
  1887. .HasCharSet("utf8")
  1888. .HasCollation("utf8_general_ci");
  1889. entity.Property(e => e.SeoKeyword)
  1890. .HasColumnType("varchar(200)")
  1891. .HasCharSet("utf8")
  1892. .HasCollation("utf8_general_ci");
  1893. entity.Property(e => e.SeoTitle)
  1894. .HasColumnType("varchar(100)")
  1895. .HasCharSet("utf8")
  1896. .HasCollation("utf8_general_ci");
  1897. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1898. entity.Property(e => e.Status).HasColumnType("int(11)");
  1899. entity.Property(e => e.TableEnName)
  1900. .HasColumnType("varchar(50)")
  1901. .HasCharSet("utf8")
  1902. .HasCollation("utf8_general_ci");
  1903. entity.Property(e => e.TableName)
  1904. .HasColumnType("varchar(50)")
  1905. .HasCharSet("utf8")
  1906. .HasCollation("utf8_general_ci");
  1907. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1908. entity.Property(e => e.UpdateMan)
  1909. .HasColumnType("varchar(50)")
  1910. .HasCharSet("utf8")
  1911. .HasCollation("utf8_general_ci");
  1912. entity.Property(e => e.Version).HasColumnType("int(11)");
  1913. });
  1914. modelBuilder.Entity<UserAccount>(entity =>
  1915. {
  1916. entity.Property(e => e.Id).HasColumnType("int(11)");
  1917. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  1918. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  1919. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1920. entity.Property(e => e.CreateMan)
  1921. .HasColumnType("varchar(50)")
  1922. .HasCharSet("utf8")
  1923. .HasCollation("utf8_general_ci");
  1924. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  1925. entity.Property(e => e.PosCouponApplyAmount).HasColumnType("decimal(18,2)");
  1926. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1927. entity.Property(e => e.SeoDescription)
  1928. .HasColumnType("varchar(500)")
  1929. .HasCharSet("utf8")
  1930. .HasCollation("utf8_general_ci");
  1931. entity.Property(e => e.SeoKeyword)
  1932. .HasColumnType("varchar(200)")
  1933. .HasCharSet("utf8")
  1934. .HasCollation("utf8_general_ci");
  1935. entity.Property(e => e.SeoTitle)
  1936. .HasColumnType("varchar(100)")
  1937. .HasCharSet("utf8")
  1938. .HasCollation("utf8_general_ci");
  1939. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1940. entity.Property(e => e.Status).HasColumnType("int(11)");
  1941. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  1942. entity.Property(e => e.TotalAmt).HasColumnType("decimal(18,2)");
  1943. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1944. entity.Property(e => e.UpdateMan)
  1945. .HasColumnType("varchar(50)")
  1946. .HasCharSet("utf8")
  1947. .HasCollation("utf8_general_ci");
  1948. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1949. entity.Property(e => e.ValidAmount).HasColumnType("decimal(18,2)");
  1950. entity.Property(e => e.ValidForGetAmount).HasColumnType("decimal(18,2)");
  1951. entity.Property(e => e.Version).HasColumnType("int(11)");
  1952. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  1953. entity.Property(e => e.WithdrawingAmount).HasColumnType("decimal(18,2)");
  1954. });
  1955. modelBuilder.Entity<UserAccountRecord>(entity =>
  1956. {
  1957. entity.Property(e => e.Id).HasColumnType("int(11)");
  1958. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  1959. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  1960. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  1961. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  1962. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  1963. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  1964. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  1965. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  1966. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1967. entity.Property(e => e.CreateMan)
  1968. .HasColumnType("varchar(50)")
  1969. .HasCharSet("utf8")
  1970. .HasCollation("utf8_general_ci");
  1971. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  1972. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1973. entity.Property(e => e.Remark)
  1974. .HasColumnType("varchar(64)")
  1975. .HasCharSet("utf8")
  1976. .HasCollation("utf8_general_ci");
  1977. entity.Property(e => e.SeoDescription)
  1978. .HasColumnType("varchar(500)")
  1979. .HasCharSet("utf8")
  1980. .HasCollation("utf8_general_ci");
  1981. entity.Property(e => e.SeoKeyword)
  1982. .HasColumnType("varchar(200)")
  1983. .HasCharSet("utf8")
  1984. .HasCollation("utf8_general_ci");
  1985. entity.Property(e => e.SeoTitle)
  1986. .HasColumnType("varchar(100)")
  1987. .HasCharSet("utf8")
  1988. .HasCollation("utf8_general_ci");
  1989. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1990. entity.Property(e => e.Status).HasColumnType("int(11)");
  1991. entity.Property(e => e.TransRecordNo)
  1992. .HasColumnType("varchar(32)")
  1993. .HasCharSet("utf8")
  1994. .HasCollation("utf8_general_ci");
  1995. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1996. entity.Property(e => e.UpdateMan)
  1997. .HasColumnType("varchar(50)")
  1998. .HasCharSet("utf8")
  1999. .HasCollation("utf8_general_ci");
  2000. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2001. entity.Property(e => e.Version).HasColumnType("int(11)");
  2002. });
  2003. modelBuilder.Entity<UserCashRecord>(entity =>
  2004. {
  2005. entity.Property(e => e.Id).HasColumnType("int(11)");
  2006. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  2007. entity.Property(e => e.CashOrderNo)
  2008. .HasColumnType("varchar(32)")
  2009. .HasCharSet("utf8")
  2010. .HasCollation("utf8_general_ci");
  2011. entity.Property(e => e.ChanelName)
  2012. .HasColumnType("varchar(32)")
  2013. .HasCharSet("utf8")
  2014. .HasCollation("utf8_general_ci");
  2015. entity.Property(e => e.ChannelCode)
  2016. .HasColumnType("varchar(16)")
  2017. .HasCharSet("utf8")
  2018. .HasCollation("utf8_general_ci");
  2019. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2020. entity.Property(e => e.CreateMan)
  2021. .HasColumnType("varchar(50)")
  2022. .HasCharSet("utf8")
  2023. .HasCollation("utf8_general_ci");
  2024. entity.Property(e => e.IdCardNo)
  2025. .HasColumnType("varchar(18)")
  2026. .HasCharSet("utf8")
  2027. .HasCollation("utf8_general_ci");
  2028. entity.Property(e => e.Ip)
  2029. .HasColumnType("varchar(15)")
  2030. .HasCharSet("utf8")
  2031. .HasCollation("utf8_general_ci");
  2032. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  2033. entity.Property(e => e.MediaSource)
  2034. .HasColumnType("varchar(16)")
  2035. .HasCharSet("utf8")
  2036. .HasCollation("utf8_general_ci");
  2037. entity.Property(e => e.PayTradeNo)
  2038. .HasColumnType("varchar(32)")
  2039. .HasCharSet("utf8")
  2040. .HasCollation("utf8_general_ci");
  2041. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  2042. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2043. entity.Property(e => e.Remark)
  2044. .HasColumnType("varchar(128)")
  2045. .HasCharSet("utf8")
  2046. .HasCollation("utf8_general_ci");
  2047. entity.Property(e => e.ReqData)
  2048. .HasColumnType("varchar(2048)")
  2049. .HasCharSet("utf8")
  2050. .HasCollation("utf8_general_ci");
  2051. entity.Property(e => e.ResData)
  2052. .HasColumnType("varchar(2048)")
  2053. .HasCharSet("utf8")
  2054. .HasCollation("utf8_general_ci");
  2055. entity.Property(e => e.ReturnCode)
  2056. .HasColumnType("varchar(32)")
  2057. .HasCharSet("utf8")
  2058. .HasCollation("utf8_general_ci");
  2059. entity.Property(e => e.ReturnMsg)
  2060. .HasColumnType("varchar(128)")
  2061. .HasCharSet("utf8")
  2062. .HasCollation("utf8_general_ci");
  2063. entity.Property(e => e.SeoDescription)
  2064. .HasColumnType("varchar(500)")
  2065. .HasCharSet("utf8")
  2066. .HasCollation("utf8_general_ci");
  2067. entity.Property(e => e.SeoKeyword)
  2068. .HasColumnType("varchar(200)")
  2069. .HasCharSet("utf8")
  2070. .HasCollation("utf8_general_ci");
  2071. entity.Property(e => e.SeoTitle)
  2072. .HasColumnType("varchar(100)")
  2073. .HasCharSet("utf8")
  2074. .HasCollation("utf8_general_ci");
  2075. entity.Property(e => e.SettleBankCardNo)
  2076. .HasColumnType("varchar(32)")
  2077. .HasCharSet("utf8")
  2078. .HasCollation("utf8_general_ci");
  2079. entity.Property(e => e.SettleBankName)
  2080. .HasColumnType("varchar(64)")
  2081. .HasCharSet("utf8")
  2082. .HasCollation("utf8_general_ci");
  2083. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2084. entity.Property(e => e.Status).HasColumnType("int(11)");
  2085. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  2086. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  2087. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  2088. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2089. entity.Property(e => e.UpdateMan)
  2090. .HasColumnType("varchar(50)")
  2091. .HasCharSet("utf8")
  2092. .HasCollation("utf8_general_ci");
  2093. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2094. entity.Property(e => e.Version).HasColumnType("int(11)");
  2095. });
  2096. OnModelCreatingPartial(modelBuilder);
  2097. }
  2098. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  2099. }
  2100. }