WebCMSEntities.cs 102 KB

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