xiangyixiangqin/server/src/XiangYi.Core/Entities/Biz/MemberTierConfig.cs
2026-01-20 21:39:19 +08:00

62 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using FreeSql.DataAnnotations;
namespace XiangYi.Core.Entities.Biz;
/// <summary>
/// 会员等级配置表
/// </summary>
[Table(Name = "MemberTierConfig")]
public class MemberTierConfig : BaseEntity
{
/// <summary>
/// 会员等级1永久会员 2诚意会员 3家庭版会员
/// </summary>
public int Level { get; set; }
/// <summary>
/// 等级名称
/// </summary>
[Column(StringLength = 50)]
public string Name { get; set; } = string.Empty;
/// <summary>
/// 角标文字(如"家庭版"
/// </summary>
[Column(StringLength = 50)]
public string? Badge { get; set; }
/// <summary>
/// 现价(元)
/// </summary>
[Column(Precision = 10, Scale = 2)]
public decimal Price { get; set; }
/// <summary>
/// 原价(元)
/// </summary>
[Column(Precision = 10, Scale = 2)]
public decimal OriginalPrice { get; set; }
/// <summary>
/// 折扣描述(如"8折优惠"
/// </summary>
[Column(StringLength = 50)]
public string? Discount { get; set; }
/// <summary>
/// 权益图片URL
/// </summary>
[Column(StringLength = 500)]
public string? BenefitsImage { get; set; }
/// <summary>
/// 排序
/// </summary>
public int Sort { get; set; } = 0;
/// <summary>
/// 状态1启用 2禁用
/// </summary>
public int Status { get; set; } = 1;
}