MediaEntity.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace AI.Platform.Core.Entity.Media
  6. {
  7. [SugarTable(null,"广告列表")]
  8. public class MediaEntity: EntityBaseLite
  9. {
  10. [SugarColumn(ColumnDescription = "集团ID", IsNullable = false)]
  11. public long GroupId { get; set; }
  12. [SugarColumn(ColumnDescription = "站点ID", IsNullable = false)]
  13. public long BusinessUnitId { get; set; }
  14. [SugarColumn(ColumnDescription = "广告文件本地存储路径", IsNullable = false, DefaultValue = "")]
  15. public string LocalPath { get; set; }
  16. [SugarColumn(ColumnDescription = "文件名", IsNullable = false, DefaultValue = "")]
  17. public string FileName { get; set; }
  18. [SugarColumn(ColumnDescription = "加上Guid前缀文件名", IsNullable = false, DefaultValue = "")]
  19. public string GuidFileName { get; set; }
  20. [SugarColumn(ColumnDescription = "文件后缀", IsNullable = false, DefaultValue = "")]
  21. public string FileExtension { get; set; }
  22. [SugarColumn(ColumnDescription = "开始播放时间(小时,0~23)", IsNullable = false)]
  23. public int StartTime { get; set; }
  24. [SugarColumn(ColumnDescription = "结束播放时间(小时,0~23)", IsNullable = false)]
  25. public int EndTime { get; set; }
  26. [SugarColumn(ColumnDescription = "广告生效日期", IsNullable = false)]
  27. public DateTime EffectiveTime { get; set; }
  28. [SugarColumn(ColumnDescription = "广告失效日期", IsNullable = false)]
  29. public DateTime FailureTime { get; set; }
  30. [SugarColumn(ColumnDescription = "油机状态,json串存储。设置该广告在什么油机状态下播放", IsNullable = false)]
  31. public string MachineState { get; set; }
  32. [SugarColumn(ColumnDescription = "广告状态,0:禁用;1:启用", IsNullable = false)]
  33. public int MediaState { get; set; }
  34. [SugarColumn(ColumnDescription = "上传人", IsNullable = false, DefaultValue = "")]
  35. public string Uploader { get; set; }
  36. [SugarColumn(ColumnDescription = "修改时间", IsNullable = false)]
  37. public DateTime EditTime { get; set; }
  38. [SugarColumn(ColumnDescription = "备注", IsNullable = true, DefaultValue = "")]
  39. public string Remark{ get; set; }
  40. }
  41. }