WebCMSEntities.cs 109 KB

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