WebCMSEntities.cs 81 KB

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