WebCMSEntities.cs 78 KB

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