WebCMSEntities.cs 100 KB

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