using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace MiAssessment.Admin.Business.Entities; /// /// 业务介绍页表 /// [Table("business_pages")] public class BusinessPage { /// /// 主键ID /// [Key] public long Id { get; set; } /// /// 标题 /// [Required] [MaxLength(100)] public string Title { get; set; } = null!; /// /// 图片URL /// [Required] [MaxLength(500)] public string ImageUrl { get; set; } = null!; /// /// 是否显示操作按钮 /// [Column("ShowButton")] public bool HasActionButton { get; set; } /// /// 操作按钮文字 /// [Column("ButtonText")] [MaxLength(50)] public string? ActionButtonText { get; set; } /// /// 操作按钮跳转链接 /// [Column("ButtonLink")] [MaxLength(500)] public string? ActionButtonLink { get; set; } /// /// 排序 /// 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; } }