using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace MiAssessment.Model.Entities; /// /// 宣传图表 /// [Table("promotions")] public class Promotion { /// /// 主键ID /// [Key] public long Id { get; set; } /// /// 标题 /// [MaxLength(100)] public string? Title { get; set; } /// /// 图片URL /// [Required] [MaxLength(500)] public string ImageUrl { get; set; } = null!; /// /// 图标URL(未选中状态) /// [MaxLength(500)] public string? IconUrl { get; set; } /// /// 图标URL(选中状态) /// [MaxLength(500)] public string? ActiveIconUrl { get; set; } /// /// 位置:1首页底部 2团队页 /// public int Position { get; set; } = 1; /// /// 排序 /// public int Sort { get; set; } /// /// 状态:0禁用 1启用 /// public int Status { get; set; } = 1; /// /// 创建时间 /// public DateTime CreateTime { get; set; } /// /// 更新时间 /// public DateTime UpdateTime { get; set; } /// /// 软删除标记 /// public bool IsDeleted { get; set; } }