WebCMSEntities.cs 83 KB

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