WebCMSEntities.cs 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613
  1. using System;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata;
  4. namespace MySystem.Models
  5. {
  6. public partial class WebCMSEntities : DbContext
  7. {
  8. public WebCMSEntities()
  9. {
  10. }
  11. public WebCMSEntities(DbContextOptions<WebCMSEntities> options)
  12. : base(options)
  13. {
  14. }
  15. public virtual DbSet<Advertisment> Advertisment { get; set; }
  16. public virtual DbSet<Col> Col { get; set; }
  17. public virtual DbSet<MenuRight> MenuRight { get; set; }
  18. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  19. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  20. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  21. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  22. public virtual DbSet<MsgPush> MsgPush { get; set; }
  23. public virtual DbSet<MsgSms> MsgSms { get; set; }
  24. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  25. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  26. public virtual DbSet<OperateLog> OperateLog { get; set; }
  27. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  28. public virtual DbSet<PageInfo> PageInfo { get; set; }
  29. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  30. public virtual DbSet<RightDic> RightDic { get; set; }
  31. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  32. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  33. public virtual DbSet<SysLog> SysLog { get; set; }
  34. public virtual DbSet<SystemSet> SystemSet { get; set; }
  35. public virtual DbSet<UploadParams> UploadParams { get; set; }
  36. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  37. {
  38. if (!optionsBuilder.IsConfigured)
  39. {
  40. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["BsSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  41. }
  42. }
  43. protected override void OnModelCreating(ModelBuilder modelBuilder)
  44. {
  45. modelBuilder.Entity<Advertisment>(entity =>
  46. {
  47. entity.Property(e => e.Id).HasColumnType("int(11)");
  48. entity.Property(e => e.ColId)
  49. .HasColumnType("varchar(30)")
  50. .HasCharSet("utf8")
  51. .HasCollation("utf8_general_ci");
  52. entity.Property(e => e.Contents)
  53. .HasColumnType("longtext")
  54. .HasCharSet("utf8")
  55. .HasCollation("utf8_general_ci");
  56. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  57. entity.Property(e => e.CreateMan)
  58. .HasColumnType("varchar(50)")
  59. .HasCharSet("utf8")
  60. .HasCollation("utf8_general_ci");
  61. entity.Property(e => e.PicPath)
  62. .HasColumnType("varchar(200)")
  63. .HasCharSet("utf8")
  64. .HasCollation("utf8_general_ci");
  65. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  66. entity.Property(e => e.SeoDescription)
  67. .HasColumnType("varchar(500)")
  68. .HasCharSet("utf8")
  69. .HasCollation("utf8_general_ci");
  70. entity.Property(e => e.SeoKeyword)
  71. .HasColumnType("varchar(200)")
  72. .HasCharSet("utf8")
  73. .HasCollation("utf8_general_ci");
  74. entity.Property(e => e.SeoTitle)
  75. .HasColumnType("varchar(100)")
  76. .HasCharSet("utf8")
  77. .HasCollation("utf8_general_ci");
  78. entity.Property(e => e.Sort).HasColumnType("int(11)");
  79. entity.Property(e => e.Status).HasColumnType("int(11)");
  80. entity.Property(e => e.Title)
  81. .HasColumnType("varchar(50)")
  82. .HasCharSet("utf8")
  83. .HasCollation("utf8_general_ci");
  84. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  85. entity.Property(e => e.UpdateMan)
  86. .HasColumnType("varchar(50)")
  87. .HasCharSet("utf8")
  88. .HasCollation("utf8_general_ci");
  89. entity.Property(e => e.Url)
  90. .HasColumnType("longtext")
  91. .HasCharSet("utf8")
  92. .HasCollation("utf8_general_ci");
  93. entity.Property(e => e.Version).HasColumnType("int(11)");
  94. });
  95. modelBuilder.Entity<Col>(entity =>
  96. {
  97. entity.Property(e => e.Id).HasColumnType("int(11)");
  98. entity.Property(e => e.ColDetail)
  99. .HasColumnType("varchar(50)")
  100. .HasCharSet("utf8")
  101. .HasCollation("utf8_general_ci");
  102. entity.Property(e => e.ColEnName)
  103. .HasColumnType("varchar(50)")
  104. .HasCharSet("utf8")
  105. .HasCollation("utf8_general_ci");
  106. entity.Property(e => e.ColId)
  107. .HasColumnType("varchar(30)")
  108. .HasCharSet("utf8")
  109. .HasCollation("utf8_general_ci");
  110. entity.Property(e => e.ColName)
  111. .HasColumnType("varchar(50)")
  112. .HasCharSet("utf8")
  113. .HasCollation("utf8_general_ci");
  114. entity.Property(e => e.ColPicPath)
  115. .HasColumnType("varchar(200)")
  116. .HasCharSet("utf8")
  117. .HasCollation("utf8_general_ci");
  118. entity.Property(e => e.Contents)
  119. .HasColumnType("longtext")
  120. .HasCharSet("utf8")
  121. .HasCollation("utf8_general_ci");
  122. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  123. entity.Property(e => e.CreateMan)
  124. .HasColumnType("varchar(50)")
  125. .HasCharSet("utf8")
  126. .HasCollation("utf8_general_ci");
  127. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  128. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  129. entity.Property(e => e.Recommend)
  130. .HasColumnType("bit(1)")
  131. .HasDefaultValueSql("b'0'");
  132. entity.Property(e => e.SeoDescription)
  133. .HasColumnType("varchar(500)")
  134. .HasCharSet("utf8")
  135. .HasCollation("utf8_general_ci");
  136. entity.Property(e => e.SeoKeyword)
  137. .HasColumnType("varchar(200)")
  138. .HasCharSet("utf8")
  139. .HasCollation("utf8_general_ci");
  140. entity.Property(e => e.SeoTitle)
  141. .HasColumnType("varchar(100)")
  142. .HasCharSet("utf8")
  143. .HasCollation("utf8_general_ci");
  144. entity.Property(e => e.Sort).HasColumnType("int(11)");
  145. entity.Property(e => e.Status).HasColumnType("int(11)");
  146. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  147. entity.Property(e => e.UpdateMan)
  148. .HasColumnType("varchar(50)")
  149. .HasCharSet("utf8")
  150. .HasCollation("utf8_general_ci");
  151. entity.Property(e => e.Url)
  152. .HasColumnType("longtext")
  153. .HasCharSet("utf8")
  154. .HasCollation("utf8_general_ci");
  155. entity.Property(e => e.Version).HasColumnType("int(11)");
  156. });
  157. modelBuilder.Entity<MenuRight>(entity =>
  158. {
  159. entity.HasKey(e => e.MenuId)
  160. .HasName("PRIMARY");
  161. entity.Property(e => e.MenuId)
  162. .HasColumnType("varchar(50)")
  163. .HasCharSet("utf8")
  164. .HasCollation("utf8_general_ci");
  165. entity.Property(e => e.Name)
  166. .HasColumnType("varchar(50)")
  167. .HasCharSet("utf8")
  168. .HasCollation("utf8_general_ci");
  169. });
  170. modelBuilder.Entity<MsgBlackList>(entity =>
  171. {
  172. entity.Property(e => e.Id).HasColumnType("int(11)");
  173. entity.Property(e => e.ColId)
  174. .HasColumnType("varchar(30)")
  175. .HasCharSet("utf8")
  176. .HasCollation("utf8_general_ci");
  177. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  178. entity.Property(e => e.CreateMan)
  179. .HasColumnType("varchar(50)")
  180. .HasCharSet("utf8")
  181. .HasCollation("utf8_general_ci");
  182. entity.Property(e => e.Extend)
  183. .HasColumnType("varchar(2000)")
  184. .HasCharSet("utf8")
  185. .HasCollation("utf8_general_ci");
  186. entity.Property(e => e.Ip)
  187. .HasColumnType("varchar(64)")
  188. .HasCharSet("utf8")
  189. .HasCollation("utf8_general_ci");
  190. entity.Property(e => e.Mobile)
  191. .HasColumnType("varchar(11)")
  192. .HasCharSet("utf8")
  193. .HasCollation("utf8_general_ci");
  194. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  195. entity.Property(e => e.Reason)
  196. .HasColumnType("varchar(512)")
  197. .HasCharSet("utf8")
  198. .HasCollation("utf8_general_ci");
  199. entity.Property(e => e.Remark)
  200. .HasColumnType("varchar(64)")
  201. .HasCharSet("utf8")
  202. .HasCollation("utf8_general_ci");
  203. entity.Property(e => e.SeoDescription)
  204. .HasColumnType("varchar(500)")
  205. .HasCharSet("utf8")
  206. .HasCollation("utf8_general_ci");
  207. entity.Property(e => e.SeoKeyword)
  208. .HasColumnType("varchar(200)")
  209. .HasCharSet("utf8")
  210. .HasCollation("utf8_general_ci");
  211. entity.Property(e => e.SeoTitle)
  212. .HasColumnType("varchar(100)")
  213. .HasCharSet("utf8")
  214. .HasCollation("utf8_general_ci");
  215. entity.Property(e => e.Sort).HasColumnType("int(11)");
  216. entity.Property(e => e.Status).HasColumnType("int(11)");
  217. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  218. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  219. entity.Property(e => e.UpdateMan)
  220. .HasColumnType("varchar(50)")
  221. .HasCharSet("utf8")
  222. .HasCollation("utf8_general_ci");
  223. entity.Property(e => e.Version).HasColumnType("int(11)");
  224. });
  225. modelBuilder.Entity<MsgPersonal>(entity =>
  226. {
  227. entity.Property(e => e.Id).HasColumnType("int(11)");
  228. entity.Property(e => e.BgPic)
  229. .HasColumnType("varchar(200)")
  230. .HasCharSet("utf8")
  231. .HasCollation("utf8_general_ci");
  232. entity.Property(e => e.Content)
  233. .HasColumnType("longtext")
  234. .HasCharSet("utf8")
  235. .HasCollation("utf8_general_ci");
  236. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  237. entity.Property(e => e.CreateMan)
  238. .HasColumnType("varchar(50)")
  239. .HasCharSet("utf8")
  240. .HasCollation("utf8_general_ci");
  241. entity.Property(e => e.ExtendColumn)
  242. .HasColumnType("mediumtext")
  243. .HasCharSet("utf8")
  244. .HasCollation("utf8_general_ci");
  245. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  246. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  247. entity.Property(e => e.PushParam)
  248. .HasColumnType("varchar(255)")
  249. .HasCharSet("utf8")
  250. .HasCollation("utf8_general_ci");
  251. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  252. entity.Property(e => e.ReadFlag)
  253. .HasColumnType("bit(1)")
  254. .HasDefaultValueSql("b'0'");
  255. entity.Property(e => e.Remark)
  256. .HasColumnType("varchar(255)")
  257. .HasCharSet("utf8")
  258. .HasCollation("utf8_general_ci");
  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.Summary)
  274. .HasColumnType("varchar(500)")
  275. .HasCharSet("utf8")
  276. .HasCollation("utf8_general_ci");
  277. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  278. entity.Property(e => e.Title)
  279. .HasColumnType("varchar(50)")
  280. .HasCharSet("utf8")
  281. .HasCollation("utf8_general_ci");
  282. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  283. entity.Property(e => e.UpdateMan)
  284. .HasColumnType("varchar(50)")
  285. .HasCharSet("utf8")
  286. .HasCollation("utf8_general_ci");
  287. entity.Property(e => e.Url)
  288. .HasColumnType("varchar(500)")
  289. .HasCharSet("utf8")
  290. .HasCollation("utf8_general_ci");
  291. entity.Property(e => e.UserId).HasColumnType("int(11)");
  292. entity.Property(e => e.Version).HasColumnType("int(11)");
  293. });
  294. modelBuilder.Entity<MsgPlacard>(entity =>
  295. {
  296. entity.Property(e => e.Id).HasColumnType("int(11)");
  297. entity.Property(e => e.BgPic)
  298. .HasColumnType("varchar(200)")
  299. .HasCharSet("utf8")
  300. .HasCollation("utf8_general_ci");
  301. entity.Property(e => e.Content)
  302. .HasColumnType("longtext")
  303. .HasCharSet("utf8")
  304. .HasCollation("utf8_general_ci");
  305. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  306. entity.Property(e => e.CreateMan)
  307. .HasColumnType("varchar(50)")
  308. .HasCharSet("utf8")
  309. .HasCollation("utf8_general_ci");
  310. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  311. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  312. entity.Property(e => e.ExtendColumn)
  313. .HasColumnType("mediumtext")
  314. .HasCharSet("utf8")
  315. .HasCollation("utf8_general_ci");
  316. entity.Property(e => e.IsTop)
  317. .HasColumnType("bit(1)")
  318. .HasDefaultValueSql("b'0'");
  319. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  320. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  321. entity.Property(e => e.PushParam)
  322. .HasColumnType("varchar(255)")
  323. .HasCharSet("utf8")
  324. .HasCollation("utf8_general_ci");
  325. entity.Property(e => e.PushTime).HasColumnType("datetime");
  326. entity.Property(e => e.PushType).HasColumnType("int(11)");
  327. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  328. entity.Property(e => e.Remark)
  329. .HasColumnType("varchar(255)")
  330. .HasCharSet("utf8")
  331. .HasCollation("utf8_general_ci");
  332. entity.Property(e => e.SeoDescription)
  333. .HasColumnType("varchar(500)")
  334. .HasCharSet("utf8")
  335. .HasCollation("utf8_general_ci");
  336. entity.Property(e => e.SeoKeyword)
  337. .HasColumnType("varchar(200)")
  338. .HasCharSet("utf8")
  339. .HasCollation("utf8_general_ci");
  340. entity.Property(e => e.SeoTitle)
  341. .HasColumnType("varchar(100)")
  342. .HasCharSet("utf8")
  343. .HasCollation("utf8_general_ci");
  344. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  345. entity.Property(e => e.Sort).HasColumnType("int(11)");
  346. entity.Property(e => e.Status).HasColumnType("int(11)");
  347. entity.Property(e => e.Summary)
  348. .HasColumnType("varchar(500)")
  349. .HasCharSet("utf8")
  350. .HasCollation("utf8_general_ci");
  351. entity.Property(e => e.Title)
  352. .HasColumnType("varchar(50)")
  353. .HasCharSet("utf8")
  354. .HasCollation("utf8_general_ci");
  355. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  356. entity.Property(e => e.UpdateMan)
  357. .HasColumnType("varchar(50)")
  358. .HasCharSet("utf8")
  359. .HasCollation("utf8_general_ci");
  360. entity.Property(e => e.Url)
  361. .HasColumnType("varchar(500)")
  362. .HasCharSet("utf8")
  363. .HasCollation("utf8_general_ci");
  364. entity.Property(e => e.Version).HasColumnType("int(11)");
  365. });
  366. modelBuilder.Entity<MsgPlacardRead>(entity =>
  367. {
  368. entity.Property(e => e.Id).HasColumnType("int(11)");
  369. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  370. entity.Property(e => e.CreateMan)
  371. .HasColumnType("varchar(50)")
  372. .HasCharSet("utf8")
  373. .HasCollation("utf8_general_ci");
  374. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  375. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  376. entity.Property(e => e.ReadFlag)
  377. .HasColumnType("bit(1)")
  378. .HasDefaultValueSql("b'0'");
  379. entity.Property(e => e.Remark)
  380. .HasColumnType("varchar(255)")
  381. .HasCharSet("utf8")
  382. .HasCollation("utf8_general_ci");
  383. entity.Property(e => e.SeoDescription)
  384. .HasColumnType("varchar(500)")
  385. .HasCharSet("utf8")
  386. .HasCollation("utf8_general_ci");
  387. entity.Property(e => e.SeoKeyword)
  388. .HasColumnType("varchar(200)")
  389. .HasCharSet("utf8")
  390. .HasCollation("utf8_general_ci");
  391. entity.Property(e => e.SeoTitle)
  392. .HasColumnType("varchar(100)")
  393. .HasCharSet("utf8")
  394. .HasCollation("utf8_general_ci");
  395. entity.Property(e => e.Sort).HasColumnType("int(11)");
  396. entity.Property(e => e.Status).HasColumnType("int(11)");
  397. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  398. entity.Property(e => e.UpdateMan)
  399. .HasColumnType("varchar(50)")
  400. .HasCharSet("utf8")
  401. .HasCollation("utf8_general_ci");
  402. entity.Property(e => e.UserId)
  403. .HasColumnType("varchar(64)")
  404. .HasCharSet("utf8")
  405. .HasCollation("utf8_general_ci");
  406. entity.Property(e => e.Version).HasColumnType("int(11)");
  407. });
  408. modelBuilder.Entity<MsgPush>(entity =>
  409. {
  410. entity.Property(e => e.Id).HasColumnType("int(11)");
  411. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  412. entity.Property(e => e.ClientType)
  413. .HasColumnType("varchar(20)")
  414. .HasCharSet("utf8")
  415. .HasCollation("utf8_general_ci");
  416. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  417. entity.Property(e => e.CreateMan)
  418. .HasColumnType("varchar(50)")
  419. .HasCharSet("utf8")
  420. .HasCollation("utf8_general_ci");
  421. entity.Property(e => e.Details)
  422. .HasColumnType("varchar(200)")
  423. .HasCharSet("utf8")
  424. .HasCollation("utf8_general_ci");
  425. entity.Property(e => e.Devices)
  426. .HasColumnType("mediumtext")
  427. .HasCharSet("utf8")
  428. .HasCollation("utf8_general_ci");
  429. entity.Property(e => e.IsSilent)
  430. .HasColumnType("bit(1)")
  431. .HasDefaultValueSql("b'0'");
  432. entity.Property(e => e.MessageId)
  433. .HasColumnType("varchar(50)")
  434. .HasCharSet("utf8")
  435. .HasCollation("utf8_general_ci");
  436. entity.Property(e => e.Mobiles)
  437. .HasColumnType("mediumtext")
  438. .HasCharSet("utf8")
  439. .HasCollation("utf8_general_ci");
  440. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  441. entity.Property(e => e.SeoDescription)
  442. .HasColumnType("varchar(500)")
  443. .HasCharSet("utf8")
  444. .HasCollation("utf8_general_ci");
  445. entity.Property(e => e.SeoKeyword)
  446. .HasColumnType("varchar(200)")
  447. .HasCharSet("utf8")
  448. .HasCollation("utf8_general_ci");
  449. entity.Property(e => e.SeoTitle)
  450. .HasColumnType("varchar(100)")
  451. .HasCharSet("utf8")
  452. .HasCollation("utf8_general_ci");
  453. entity.Property(e => e.Sort).HasColumnType("int(11)");
  454. entity.Property(e => e.Status).HasColumnType("int(11)");
  455. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  456. entity.Property(e => e.Title)
  457. .HasColumnType("varchar(50)")
  458. .HasCharSet("utf8")
  459. .HasCollation("utf8_general_ci");
  460. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  461. entity.Property(e => e.UpdateMan)
  462. .HasColumnType("varchar(50)")
  463. .HasCharSet("utf8")
  464. .HasCollation("utf8_general_ci");
  465. entity.Property(e => e.Url)
  466. .HasColumnType("varchar(500)")
  467. .HasCharSet("utf8")
  468. .HasCollation("utf8_general_ci");
  469. entity.Property(e => e.Version).HasColumnType("int(11)");
  470. });
  471. modelBuilder.Entity<MsgSms>(entity =>
  472. {
  473. entity.Property(e => e.Id).HasColumnType("int(11)");
  474. entity.Property(e => e.Code).HasColumnType("int(11)");
  475. entity.Property(e => e.ColId)
  476. .HasColumnType("varchar(30)")
  477. .HasCharSet("utf8")
  478. .HasCollation("utf8_general_ci");
  479. entity.Property(e => e.Content)
  480. .HasColumnType("varchar(200)")
  481. .HasCharSet("utf8")
  482. .HasCollation("utf8_general_ci");
  483. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  484. entity.Property(e => e.CreateMan)
  485. .HasColumnType("varchar(50)")
  486. .HasCharSet("utf8")
  487. .HasCollation("utf8_general_ci");
  488. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  489. entity.Property(e => e.Ip)
  490. .HasColumnType("varchar(15)")
  491. .HasCharSet("utf8")
  492. .HasCollation("utf8_general_ci");
  493. entity.Property(e => e.Kind)
  494. .HasColumnType("varchar(64)")
  495. .HasCharSet("utf8")
  496. .HasCollation("utf8_general_ci");
  497. entity.Property(e => e.Mobile)
  498. .HasColumnType("varchar(11)")
  499. .HasCharSet("utf8")
  500. .HasCollation("utf8_general_ci");
  501. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  502. entity.Property(e => e.RespCode)
  503. .HasColumnType("varchar(16)")
  504. .HasCharSet("utf8")
  505. .HasCollation("utf8_general_ci");
  506. entity.Property(e => e.RespContent)
  507. .HasColumnType("varchar(500)")
  508. .HasCharSet("utf8")
  509. .HasCollation("utf8_general_ci");
  510. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  511. entity.Property(e => e.SendTime).HasColumnType("datetime");
  512. entity.Property(e => e.SendType).HasColumnType("int(11)");
  513. entity.Property(e => e.SeoDescription)
  514. .HasColumnType("varchar(500)")
  515. .HasCharSet("utf8")
  516. .HasCollation("utf8_general_ci");
  517. entity.Property(e => e.SeoKeyword)
  518. .HasColumnType("varchar(200)")
  519. .HasCharSet("utf8")
  520. .HasCollation("utf8_general_ci");
  521. entity.Property(e => e.SeoTitle)
  522. .HasColumnType("varchar(100)")
  523. .HasCharSet("utf8")
  524. .HasCollation("utf8_general_ci");
  525. entity.Property(e => e.SignName)
  526. .HasColumnType("varchar(10)")
  527. .HasCharSet("utf8")
  528. .HasCollation("utf8_general_ci");
  529. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  530. entity.Property(e => e.Sort).HasColumnType("int(11)");
  531. entity.Property(e => e.Status).HasColumnType("int(11)");
  532. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  533. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  534. entity.Property(e => e.UpdateMan)
  535. .HasColumnType("varchar(50)")
  536. .HasCharSet("utf8")
  537. .HasCollation("utf8_general_ci");
  538. entity.Property(e => e.VerifyCode)
  539. .HasColumnType("varchar(6)")
  540. .HasCharSet("utf8")
  541. .HasCollation("utf8_general_ci");
  542. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  543. entity.Property(e => e.Version).HasColumnType("int(11)");
  544. });
  545. modelBuilder.Entity<MsgSmsSet>(entity =>
  546. {
  547. entity.Property(e => e.Id).HasColumnType("int(11)");
  548. entity.Property(e => e.AuthPwd)
  549. .HasColumnType("varchar(50)")
  550. .HasCharSet("utf8")
  551. .HasCollation("utf8_general_ci");
  552. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  553. entity.Property(e => e.CreateMan)
  554. .HasColumnType("varchar(50)")
  555. .HasCharSet("utf8")
  556. .HasCollation("utf8_general_ci");
  557. entity.Property(e => e.Name)
  558. .HasColumnType("varchar(50)")
  559. .HasCharSet("utf8")
  560. .HasCollation("utf8_general_ci");
  561. entity.Property(e => e.Params)
  562. .HasColumnType("varchar(200)")
  563. .HasCharSet("utf8")
  564. .HasCollation("utf8_general_ci");
  565. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  566. entity.Property(e => e.ReqUrl)
  567. .HasColumnType("varchar(200)")
  568. .HasCharSet("utf8")
  569. .HasCollation("utf8_general_ci");
  570. entity.Property(e => e.SeoDescription)
  571. .HasColumnType("varchar(500)")
  572. .HasCharSet("utf8")
  573. .HasCollation("utf8_general_ci");
  574. entity.Property(e => e.SeoKeyword)
  575. .HasColumnType("varchar(200)")
  576. .HasCharSet("utf8")
  577. .HasCollation("utf8_general_ci");
  578. entity.Property(e => e.SeoTitle)
  579. .HasColumnType("varchar(100)")
  580. .HasCharSet("utf8")
  581. .HasCollation("utf8_general_ci");
  582. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  583. entity.Property(e => e.Sort).HasColumnType("int(11)");
  584. entity.Property(e => e.Status).HasColumnType("int(11)");
  585. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  586. entity.Property(e => e.UpdateMan)
  587. .HasColumnType("varchar(50)")
  588. .HasCharSet("utf8")
  589. .HasCollation("utf8_general_ci");
  590. entity.Property(e => e.UserName)
  591. .HasColumnType("varchar(50)")
  592. .HasCharSet("utf8")
  593. .HasCollation("utf8_general_ci");
  594. entity.Property(e => e.Version).HasColumnType("int(11)");
  595. });
  596. modelBuilder.Entity<MsgTemplate>(entity =>
  597. {
  598. entity.Property(e => e.Id).HasColumnType("int(11)");
  599. entity.Property(e => e.ColId)
  600. .HasColumnType("varchar(30)")
  601. .HasCharSet("utf8")
  602. .HasCollation("utf8_general_ci");
  603. entity.Property(e => e.Content)
  604. .HasColumnType("varchar(200)")
  605. .HasCharSet("utf8")
  606. .HasCollation("utf8_general_ci");
  607. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  608. entity.Property(e => e.CreateMan)
  609. .HasColumnType("varchar(50)")
  610. .HasCharSet("utf8")
  611. .HasCollation("utf8_general_ci");
  612. entity.Property(e => e.Extend)
  613. .HasColumnType("varchar(2000)")
  614. .HasCharSet("utf8")
  615. .HasCollation("utf8_general_ci");
  616. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  617. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  618. entity.Property(e => e.Remark)
  619. .HasColumnType("varchar(64)")
  620. .HasCharSet("utf8")
  621. .HasCollation("utf8_general_ci");
  622. entity.Property(e => e.SeoDescription)
  623. .HasColumnType("varchar(500)")
  624. .HasCharSet("utf8")
  625. .HasCollation("utf8_general_ci");
  626. entity.Property(e => e.SeoKeyword)
  627. .HasColumnType("varchar(200)")
  628. .HasCharSet("utf8")
  629. .HasCollation("utf8_general_ci");
  630. entity.Property(e => e.SeoTitle)
  631. .HasColumnType("varchar(100)")
  632. .HasCharSet("utf8")
  633. .HasCollation("utf8_general_ci");
  634. entity.Property(e => e.SignName)
  635. .HasColumnType("varchar(10)")
  636. .HasCharSet("utf8")
  637. .HasCollation("utf8_general_ci");
  638. entity.Property(e => e.Sort).HasColumnType("int(11)");
  639. entity.Property(e => e.Status).HasColumnType("int(11)");
  640. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  641. entity.Property(e => e.Title)
  642. .HasColumnType("varchar(50)")
  643. .HasCharSet("utf8")
  644. .HasCollation("utf8_general_ci");
  645. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  646. entity.Property(e => e.UpdateMan)
  647. .HasColumnType("varchar(50)")
  648. .HasCharSet("utf8")
  649. .HasCollation("utf8_general_ci");
  650. entity.Property(e => e.Version).HasColumnType("int(11)");
  651. });
  652. modelBuilder.Entity<OperateLog>(entity =>
  653. {
  654. entity.Property(e => e.Id).HasColumnType("int(11)");
  655. entity.Property(e => e.AfterOperate)
  656. .HasColumnType("mediumtext")
  657. .HasCharSet("utf8")
  658. .HasCollation("utf8_general_ci");
  659. entity.Property(e => e.BeforeOperate)
  660. .HasColumnType("mediumtext")
  661. .HasCharSet("utf8")
  662. .HasCollation("utf8_general_ci");
  663. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  664. entity.Property(e => e.CreateMan)
  665. .HasColumnType("varchar(50)")
  666. .HasCharSet("utf8")
  667. .HasCollation("utf8_general_ci");
  668. entity.Property(e => e.OpMode)
  669. .HasColumnType("varchar(30)")
  670. .HasCharSet("utf8")
  671. .HasCollation("utf8_general_ci");
  672. entity.Property(e => e.OperateMan)
  673. .HasColumnType("varchar(50)")
  674. .HasCharSet("utf8")
  675. .HasCollation("utf8_general_ci");
  676. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  677. entity.Property(e => e.SeoDescription)
  678. .HasColumnType("varchar(500)")
  679. .HasCharSet("utf8")
  680. .HasCollation("utf8_general_ci");
  681. entity.Property(e => e.SeoKeyword)
  682. .HasColumnType("varchar(200)")
  683. .HasCharSet("utf8")
  684. .HasCollation("utf8_general_ci");
  685. entity.Property(e => e.SeoTitle)
  686. .HasColumnType("varchar(100)")
  687. .HasCharSet("utf8")
  688. .HasCollation("utf8_general_ci");
  689. entity.Property(e => e.Sort).HasColumnType("int(11)");
  690. entity.Property(e => e.Status).HasColumnType("int(11)");
  691. entity.Property(e => e.TableEnName)
  692. .HasColumnType("varchar(50)")
  693. .HasCharSet("utf8")
  694. .HasCollation("utf8_general_ci");
  695. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  696. entity.Property(e => e.UpdateMan)
  697. .HasColumnType("varchar(50)")
  698. .HasCharSet("utf8")
  699. .HasCollation("utf8_general_ci");
  700. entity.Property(e => e.Version).HasColumnType("int(11)");
  701. });
  702. modelBuilder.Entity<OperateRightList>(entity =>
  703. {
  704. entity.Property(e => e.Id).HasColumnType("int(11)");
  705. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  706. entity.Property(e => e.CreateMan)
  707. .HasColumnType("varchar(50)")
  708. .HasCharSet("utf8")
  709. .HasCollation("utf8_general_ci");
  710. entity.Property(e => e.EnName)
  711. .HasColumnType("varchar(50)")
  712. .HasCharSet("utf8")
  713. .HasCollation("utf8_general_ci");
  714. entity.Property(e => e.Name)
  715. .HasColumnType("varchar(50)")
  716. .HasCharSet("utf8")
  717. .HasCollation("utf8_general_ci");
  718. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  719. entity.Property(e => e.SeoDescription)
  720. .HasColumnType("varchar(500)")
  721. .HasCharSet("utf8")
  722. .HasCollation("utf8_general_ci");
  723. entity.Property(e => e.SeoKeyword)
  724. .HasColumnType("varchar(200)")
  725. .HasCharSet("utf8")
  726. .HasCollation("utf8_general_ci");
  727. entity.Property(e => e.SeoTitle)
  728. .HasColumnType("varchar(100)")
  729. .HasCharSet("utf8")
  730. .HasCollation("utf8_general_ci");
  731. entity.Property(e => e.Sort).HasColumnType("int(11)");
  732. entity.Property(e => e.Status).HasColumnType("int(11)");
  733. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  734. entity.Property(e => e.UpdateMan)
  735. .HasColumnType("varchar(50)")
  736. .HasCharSet("utf8")
  737. .HasCollation("utf8_general_ci");
  738. entity.Property(e => e.Version).HasColumnType("int(11)");
  739. });
  740. modelBuilder.Entity<PageInfo>(entity =>
  741. {
  742. entity.Property(e => e.Id).HasColumnType("int(11)");
  743. entity.Property(e => e.ColId)
  744. .HasColumnType("varchar(30)")
  745. .HasCharSet("utf8")
  746. .HasCollation("utf8_general_ci");
  747. entity.Property(e => e.Contents)
  748. .HasColumnType("longtext")
  749. .HasCharSet("utf8")
  750. .HasCollation("utf8_general_ci");
  751. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  752. entity.Property(e => e.CreateMan)
  753. .HasColumnType("varchar(50)")
  754. .HasCharSet("utf8")
  755. .HasCollation("utf8_general_ci");
  756. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  757. entity.Property(e => e.SeoDescription)
  758. .HasColumnType("varchar(500)")
  759. .HasCharSet("utf8")
  760. .HasCollation("utf8_general_ci");
  761. entity.Property(e => e.SeoKeyword)
  762. .HasColumnType("varchar(200)")
  763. .HasCharSet("utf8")
  764. .HasCollation("utf8_general_ci");
  765. entity.Property(e => e.SeoTitle)
  766. .HasColumnType("varchar(100)")
  767. .HasCharSet("utf8")
  768. .HasCollation("utf8_general_ci");
  769. entity.Property(e => e.Sort).HasColumnType("int(11)");
  770. entity.Property(e => e.Status).HasColumnType("int(11)");
  771. entity.Property(e => e.Title)
  772. .HasColumnType("varchar(200)")
  773. .HasCharSet("utf8")
  774. .HasCollation("utf8_general_ci");
  775. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  776. entity.Property(e => e.UpdateMan)
  777. .HasColumnType("varchar(50)")
  778. .HasCharSet("utf8")
  779. .HasCollation("utf8_general_ci");
  780. entity.Property(e => e.Version).HasColumnType("int(11)");
  781. });
  782. modelBuilder.Entity<PublicAccountSet>(entity =>
  783. {
  784. entity.Property(e => e.Id).HasColumnType("int(11)");
  785. entity.Property(e => e.AlipayAppId)
  786. .HasColumnType("varchar(50)")
  787. .HasCharSet("utf8")
  788. .HasCollation("utf8_general_ci");
  789. entity.Property(e => e.AlipayPartnerId)
  790. .HasColumnType("varchar(50)")
  791. .HasCharSet("utf8")
  792. .HasCollation("utf8_general_ci");
  793. entity.Property(e => e.AlipayPrivateKey)
  794. .HasColumnType("mediumtext")
  795. .HasCharSet("utf8")
  796. .HasCollation("utf8_general_ci");
  797. entity.Property(e => e.AlipayPublicKey)
  798. .HasColumnType("mediumtext")
  799. .HasCharSet("utf8")
  800. .HasCollation("utf8_general_ci");
  801. entity.Property(e => e.AliyunAccessKeyId)
  802. .HasColumnType("varchar(50)")
  803. .HasCharSet("utf8")
  804. .HasCollation("utf8_general_ci");
  805. entity.Property(e => e.AliyunAccessKeySecret)
  806. .HasColumnType("varchar(50)")
  807. .HasCharSet("utf8")
  808. .HasCollation("utf8_general_ci");
  809. entity.Property(e => e.AliyunAndroidActivity)
  810. .HasColumnType("varchar(100)")
  811. .HasCharSet("utf8")
  812. .HasCollation("utf8_general_ci");
  813. entity.Property(e => e.AliyunAndroidNotifyTitle)
  814. .HasColumnType("varchar(20)")
  815. .HasCharSet("utf8")
  816. .HasCollation("utf8_general_ci");
  817. entity.Property(e => e.AliyunPushAndroidAppId)
  818. .HasColumnType("varchar(50)")
  819. .HasCharSet("utf8")
  820. .HasCollation("utf8_general_ci");
  821. entity.Property(e => e.AliyunPushAndroidAppSecret)
  822. .HasColumnType("varchar(50)")
  823. .HasCharSet("utf8")
  824. .HasCollation("utf8_general_ci");
  825. entity.Property(e => e.AliyunPushIosAppId)
  826. .HasColumnType("varchar(500)")
  827. .HasCharSet("utf8")
  828. .HasCollation("utf8_general_ci");
  829. entity.Property(e => e.AliyunPushIosAppSecret)
  830. .HasColumnType("varchar(50)")
  831. .HasCharSet("utf8")
  832. .HasCollation("utf8_general_ci");
  833. entity.Property(e => e.AliyunRegionId)
  834. .HasColumnType("varchar(30)")
  835. .HasCharSet("utf8")
  836. .HasCollation("utf8_general_ci");
  837. entity.Property(e => e.ErpApiUrl)
  838. .HasColumnType("varchar(200)")
  839. .HasCharSet("utf8")
  840. .HasCollation("utf8_general_ci");
  841. entity.Property(e => e.ErpAppCode)
  842. .HasColumnType("varchar(100)")
  843. .HasCharSet("utf8")
  844. .HasCollation("utf8_general_ci");
  845. entity.Property(e => e.MeiQiaAppKey)
  846. .HasColumnType("varchar(50)")
  847. .HasCharSet("utf8")
  848. .HasCollation("utf8_general_ci");
  849. entity.Property(e => e.MobAppKey)
  850. .HasColumnType("varchar(50)")
  851. .HasCharSet("utf8")
  852. .HasCollation("utf8_general_ci");
  853. entity.Property(e => e.MobAppSecret)
  854. .HasColumnType("varchar(50)")
  855. .HasCharSet("utf8")
  856. .HasCollation("utf8_general_ci");
  857. entity.Property(e => e.QqAndroidAppId)
  858. .HasColumnType("varchar(50)")
  859. .HasCharSet("utf8")
  860. .HasCollation("utf8_general_ci");
  861. entity.Property(e => e.QqAndroidAppKey)
  862. .HasColumnType("varchar(50)")
  863. .HasCharSet("utf8")
  864. .HasCollation("utf8_general_ci");
  865. entity.Property(e => e.QqIosAppId)
  866. .HasColumnType("varchar(50)")
  867. .HasCharSet("utf8")
  868. .HasCollation("utf8_general_ci");
  869. entity.Property(e => e.QqIosAppKey)
  870. .HasColumnType("varchar(50)")
  871. .HasCharSet("utf8")
  872. .HasCollation("utf8_general_ci");
  873. entity.Property(e => e.ServerIp)
  874. .HasColumnType("varchar(15)")
  875. .HasCharSet("utf8")
  876. .HasCollation("utf8_general_ci");
  877. entity.Property(e => e.SmsApiDefaultTemplate)
  878. .HasColumnType("varchar(200)")
  879. .HasCharSet("utf8")
  880. .HasCollation("utf8_general_ci");
  881. entity.Property(e => e.SmsApiPwd)
  882. .HasColumnType("varchar(50)")
  883. .HasCharSet("utf8")
  884. .HasCollation("utf8_general_ci");
  885. entity.Property(e => e.SmsApiSign)
  886. .HasColumnType("varchar(10)")
  887. .HasCharSet("utf8")
  888. .HasCollation("utf8_general_ci");
  889. entity.Property(e => e.SmsApiUserId)
  890. .HasColumnType("varchar(50)")
  891. .HasCharSet("utf8")
  892. .HasCollation("utf8_general_ci");
  893. entity.Property(e => e.WeChatAppId)
  894. .HasColumnType("varchar(50)")
  895. .HasCharSet("utf8")
  896. .HasCollation("utf8_general_ci");
  897. entity.Property(e => e.WeChatAppSecret)
  898. .HasColumnType("varchar(50)")
  899. .HasCharSet("utf8")
  900. .HasCollation("utf8_general_ci");
  901. entity.Property(e => e.WeChatMchId)
  902. .HasColumnType("varchar(20)")
  903. .HasCharSet("utf8")
  904. .HasCollation("utf8_general_ci");
  905. entity.Property(e => e.WeChatMiniAppId)
  906. .HasColumnType("varchar(50)")
  907. .HasCharSet("utf8")
  908. .HasCollation("utf8_general_ci");
  909. entity.Property(e => e.WeChatMiniAppSecret)
  910. .HasColumnType("varchar(50)")
  911. .HasCharSet("utf8")
  912. .HasCollation("utf8_general_ci");
  913. entity.Property(e => e.WeChatOpenAppId)
  914. .HasColumnType("varchar(50)")
  915. .HasCharSet("utf8")
  916. .HasCollation("utf8_general_ci");
  917. entity.Property(e => e.WeChatOpenAppSecret)
  918. .HasColumnType("varchar(50)")
  919. .HasCharSet("utf8")
  920. .HasCollation("utf8_general_ci");
  921. entity.Property(e => e.WeChatPayKey)
  922. .HasColumnType("varchar(50)")
  923. .HasCharSet("utf8")
  924. .HasCollation("utf8_general_ci");
  925. });
  926. modelBuilder.Entity<RightDic>(entity =>
  927. {
  928. entity.Property(e => e.Id)
  929. .HasColumnName("ID")
  930. .HasColumnType("varchar(50)")
  931. .HasCharSet("utf8")
  932. .HasCollation("utf8_general_ci");
  933. entity.Property(e => e.Icon)
  934. .HasColumnType("varchar(50)")
  935. .HasCharSet("utf8")
  936. .HasCollation("utf8_general_ci");
  937. entity.Property(e => e.MainDataList)
  938. .HasColumnType("bit(1)")
  939. .HasDefaultValueSql("b'0'");
  940. entity.Property(e => e.MainMenu)
  941. .HasColumnType("bit(1)")
  942. .HasDefaultValueSql("b'0'");
  943. entity.Property(e => e.MainStat)
  944. .HasColumnType("bit(1)")
  945. .HasDefaultValueSql("b'0'");
  946. entity.Property(e => e.Name)
  947. .HasColumnType("varchar(50)")
  948. .HasCharSet("utf8")
  949. .HasCollation("utf8_general_ci");
  950. entity.Property(e => e.OtherRight)
  951. .HasColumnType("varchar(500)")
  952. .HasCharSet("utf8")
  953. .HasCollation("utf8_general_ci");
  954. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  955. entity.Property(e => e.Sort).HasColumnType("int(11)");
  956. entity.Property(e => e.Url)
  957. .HasColumnType("varchar(200)")
  958. .HasCharSet("utf8")
  959. .HasCollation("utf8_general_ci");
  960. });
  961. modelBuilder.Entity<SysAdmin>(entity =>
  962. {
  963. entity.Property(e => e.Id).HasColumnType("int(11)");
  964. entity.Property(e => e.AdminName)
  965. .HasColumnType("varchar(50)")
  966. .HasCharSet("utf8")
  967. .HasCollation("utf8_general_ci");
  968. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  969. entity.Property(e => e.CreateMan)
  970. .HasColumnType("varchar(50)")
  971. .HasCharSet("utf8")
  972. .HasCollation("utf8_general_ci");
  973. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  974. entity.Property(e => e.Password)
  975. .HasColumnType("varchar(32)")
  976. .HasCharSet("utf8")
  977. .HasCollation("utf8_general_ci");
  978. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  979. entity.Property(e => e.RealName)
  980. .HasColumnType("varchar(50)")
  981. .HasCharSet("utf8")
  982. .HasCollation("utf8_general_ci");
  983. entity.Property(e => e.Role)
  984. .HasColumnType("varchar(30)")
  985. .HasCharSet("utf8")
  986. .HasCollation("utf8_general_ci");
  987. entity.Property(e => e.SeoDescription)
  988. .HasColumnType("varchar(500)")
  989. .HasCharSet("utf8")
  990. .HasCollation("utf8_general_ci");
  991. entity.Property(e => e.SeoKeyword)
  992. .HasColumnType("varchar(200)")
  993. .HasCharSet("utf8")
  994. .HasCollation("utf8_general_ci");
  995. entity.Property(e => e.SeoTitle)
  996. .HasColumnType("varchar(100)")
  997. .HasCharSet("utf8")
  998. .HasCollation("utf8_general_ci");
  999. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1000. entity.Property(e => e.Status).HasColumnType("int(11)");
  1001. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1002. entity.Property(e => e.UpdateMan)
  1003. .HasColumnType("varchar(50)")
  1004. .HasCharSet("utf8")
  1005. .HasCollation("utf8_general_ci");
  1006. entity.Property(e => e.Version).HasColumnType("int(11)");
  1007. });
  1008. modelBuilder.Entity<SysAdminRole>(entity =>
  1009. {
  1010. entity.Property(e => e.Id).HasColumnType("int(11)");
  1011. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1012. entity.Property(e => e.CreateMan)
  1013. .HasColumnType("varchar(50)")
  1014. .HasCharSet("utf8")
  1015. .HasCollation("utf8_general_ci");
  1016. entity.Property(e => e.Details)
  1017. .HasColumnType("longtext")
  1018. .HasCharSet("utf8")
  1019. .HasCollation("utf8_general_ci");
  1020. entity.Property(e => e.Name)
  1021. .HasColumnType("varchar(50)")
  1022. .HasCharSet("utf8")
  1023. .HasCollation("utf8_general_ci");
  1024. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1025. entity.Property(e => e.RightInfo)
  1026. .HasColumnType("longtext")
  1027. .HasCharSet("utf8")
  1028. .HasCollation("utf8_general_ci");
  1029. entity.Property(e => e.SeoDescription)
  1030. .HasColumnType("varchar(500)")
  1031. .HasCharSet("utf8")
  1032. .HasCollation("utf8_general_ci");
  1033. entity.Property(e => e.SeoKeyword)
  1034. .HasColumnType("varchar(200)")
  1035. .HasCharSet("utf8")
  1036. .HasCollation("utf8_general_ci");
  1037. entity.Property(e => e.SeoTitle)
  1038. .HasColumnType("varchar(100)")
  1039. .HasCharSet("utf8")
  1040. .HasCollation("utf8_general_ci");
  1041. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1042. entity.Property(e => e.Status).HasColumnType("int(11)");
  1043. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1044. entity.Property(e => e.UpdateMan)
  1045. .HasColumnType("varchar(50)")
  1046. .HasCharSet("utf8")
  1047. .HasCollation("utf8_general_ci");
  1048. entity.Property(e => e.Version).HasColumnType("int(11)");
  1049. });
  1050. modelBuilder.Entity<SysLog>(entity =>
  1051. {
  1052. entity.Property(e => e.Id).HasColumnType("int(11)");
  1053. entity.Property(e => e.Contents)
  1054. .HasColumnType("varchar(200)")
  1055. .HasCharSet("utf8")
  1056. .HasCollation("utf8_general_ci");
  1057. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1058. entity.Property(e => e.CreateMan)
  1059. .HasColumnType("varchar(50)")
  1060. .HasCharSet("utf8")
  1061. .HasCollation("utf8_general_ci");
  1062. });
  1063. modelBuilder.Entity<SystemSet>(entity =>
  1064. {
  1065. entity.Property(e => e.Id).HasColumnType("int(11)");
  1066. entity.Property(e => e.Address)
  1067. .HasColumnType("varchar(100)")
  1068. .HasCharSet("utf8")
  1069. .HasCollation("utf8_general_ci");
  1070. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1071. entity.Property(e => e.CreateMan)
  1072. .HasColumnType("varchar(50)")
  1073. .HasCharSet("utf8")
  1074. .HasCollation("utf8_general_ci");
  1075. entity.Property(e => e.IndexDescription)
  1076. .HasColumnType("longtext")
  1077. .HasCharSet("utf8")
  1078. .HasCollation("utf8_general_ci");
  1079. entity.Property(e => e.IndexKeyword)
  1080. .HasColumnType("varchar(200)")
  1081. .HasCharSet("utf8")
  1082. .HasCollation("utf8_general_ci");
  1083. entity.Property(e => e.Logo)
  1084. .HasColumnType("varchar(200)")
  1085. .HasCharSet("utf8")
  1086. .HasCollation("utf8_general_ci");
  1087. entity.Property(e => e.Phone)
  1088. .HasColumnType("varchar(100)")
  1089. .HasCharSet("utf8")
  1090. .HasCollation("utf8_general_ci");
  1091. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1092. entity.Property(e => e.RightInfo)
  1093. .HasColumnType("longtext")
  1094. .HasCharSet("utf8")
  1095. .HasCollation("utf8_general_ci");
  1096. entity.Property(e => e.SeoDescription)
  1097. .HasColumnType("varchar(500)")
  1098. .HasCharSet("utf8")
  1099. .HasCollation("utf8_general_ci");
  1100. entity.Property(e => e.SeoKeyword)
  1101. .HasColumnType("varchar(200)")
  1102. .HasCharSet("utf8")
  1103. .HasCollation("utf8_general_ci");
  1104. entity.Property(e => e.SeoTitle)
  1105. .HasColumnType("varchar(100)")
  1106. .HasCharSet("utf8")
  1107. .HasCollation("utf8_general_ci");
  1108. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1109. entity.Property(e => e.StartAdPhoto)
  1110. .HasColumnType("varchar(200)")
  1111. .HasCharSet("utf8")
  1112. .HasCollation("utf8_general_ci");
  1113. entity.Property(e => e.Status).HasColumnType("int(11)");
  1114. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1115. entity.Property(e => e.UpdateMan)
  1116. .HasColumnType("varchar(50)")
  1117. .HasCharSet("utf8")
  1118. .HasCollation("utf8_general_ci");
  1119. entity.Property(e => e.UploadAutoWater)
  1120. .HasColumnType("bit(1)")
  1121. .HasDefaultValueSql("b'0'");
  1122. entity.Property(e => e.UploadAutoZoom)
  1123. .HasColumnType("bit(1)")
  1124. .HasDefaultValueSql("b'0'");
  1125. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  1126. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  1127. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  1128. entity.Property(e => e.UploadExt)
  1129. .HasColumnType("varchar(100)")
  1130. .HasCharSet("utf8")
  1131. .HasCollation("utf8_general_ci");
  1132. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  1133. entity.Property(e => e.UploadOss)
  1134. .HasColumnType("bit(1)")
  1135. .HasDefaultValueSql("b'0'");
  1136. entity.Property(e => e.UploadWaterPath)
  1137. .HasColumnType("varchar(200)")
  1138. .HasCharSet("utf8")
  1139. .HasCollation("utf8_general_ci");
  1140. entity.Property(e => e.UploadWaterPosition)
  1141. .HasColumnType("varchar(15)")
  1142. .HasCharSet("utf8")
  1143. .HasCollation("utf8_general_ci");
  1144. entity.Property(e => e.Version).HasColumnType("int(11)");
  1145. entity.Property(e => e.WebName)
  1146. .HasColumnType("varchar(50)")
  1147. .HasCharSet("utf8")
  1148. .HasCollation("utf8_general_ci");
  1149. entity.Property(e => e.WebStatCode)
  1150. .HasColumnType("longtext")
  1151. .HasCharSet("utf8")
  1152. .HasCollation("utf8_general_ci");
  1153. entity.Property(e => e.WebUrl)
  1154. .HasColumnType("varchar(200)")
  1155. .HasCharSet("utf8")
  1156. .HasCollation("utf8_general_ci");
  1157. });
  1158. modelBuilder.Entity<UploadParams>(entity =>
  1159. {
  1160. entity.Property(e => e.Id).HasColumnType("int(11)");
  1161. entity.Property(e => e.ColumnEnName)
  1162. .HasColumnType("varchar(50)")
  1163. .HasCharSet("utf8")
  1164. .HasCollation("utf8_general_ci");
  1165. entity.Property(e => e.ColumnName)
  1166. .HasColumnType("varchar(50)")
  1167. .HasCharSet("utf8")
  1168. .HasCollation("utf8_general_ci");
  1169. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1170. entity.Property(e => e.CreateMan)
  1171. .HasColumnType("varchar(50)")
  1172. .HasCharSet("utf8")
  1173. .HasCollation("utf8_general_ci");
  1174. entity.Property(e => e.ParamString)
  1175. .HasColumnType("varchar(200)")
  1176. .HasCharSet("utf8")
  1177. .HasCollation("utf8_general_ci");
  1178. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1179. entity.Property(e => e.SeoDescription)
  1180. .HasColumnType("varchar(500)")
  1181. .HasCharSet("utf8")
  1182. .HasCollation("utf8_general_ci");
  1183. entity.Property(e => e.SeoKeyword)
  1184. .HasColumnType("varchar(200)")
  1185. .HasCharSet("utf8")
  1186. .HasCollation("utf8_general_ci");
  1187. entity.Property(e => e.SeoTitle)
  1188. .HasColumnType("varchar(100)")
  1189. .HasCharSet("utf8")
  1190. .HasCollation("utf8_general_ci");
  1191. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1192. entity.Property(e => e.Status).HasColumnType("int(11)");
  1193. entity.Property(e => e.TableEnName)
  1194. .HasColumnType("varchar(50)")
  1195. .HasCharSet("utf8")
  1196. .HasCollation("utf8_general_ci");
  1197. entity.Property(e => e.TableName)
  1198. .HasColumnType("varchar(50)")
  1199. .HasCharSet("utf8")
  1200. .HasCollation("utf8_general_ci");
  1201. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1202. entity.Property(e => e.UpdateMan)
  1203. .HasColumnType("varchar(50)")
  1204. .HasCharSet("utf8")
  1205. .HasCollation("utf8_general_ci");
  1206. entity.Property(e => e.Version).HasColumnType("int(11)");
  1207. });
  1208. OnModelCreatingPartial(modelBuilder);
  1209. }
  1210. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  1211. }
  1212. }