using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace HoneyBox.Model.Entities;

/// <summary>
/// 福利屋配置表
/// </summary>
[Table("welfare_house")]
public class WelfareHouse
{
    [Key]
    [Column("id")]
    public int Id { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [Column("name")]
    [MaxLength(100)]
    public string Name { get; set; } = string.Empty;

    /// <summary>
    /// 图片
    /// </summary>
    [Column("image")]
    [MaxLength(255)]
    public string Image { get; set; } = string.Empty;

    /// <summary>
    /// 跳转链接
    /// </summary>
    [Column("url")]
    [MaxLength(255)]
    public string Url { get; set; } = string.Empty;

    /// <summary>
    /// 排序
    /// </summary>
    [Column("sort")]
    public int Sort { get; set; }

    /// <summary>
    /// 状态：0禁用 1启用
    /// </summary>
    [Column("status")]
    public byte Status { get; set; } = 1;

    /// <summary>
    /// 创建时间
    /// </summary>
    [Column("create_time")]
    public int? CreateTime { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    [Column("update_time")]
    public int? UpdateTime { get; set; }
}
