WebCMSEntities.cs 97 KB

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