Files
glz 195792ec66 refactor: 统一数据库表名前缀,按业务模块拆分表名
对所有实体类的SugarTable特性以及菜单初始化SQL中的表名进行统一修改,将原有的零散表名调整为带业务前缀的规范命名,例如将系统管理相关表加上System_前缀、内容相关表加上Content_前缀、商城相关表加上Mall_前缀等,统一数据库表命名规范
2026-07-08 10:37:03 +08:00

102 lines
2.9 KiB
C#
Raw Permalink 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 System;
using System.Linq;
using System.Text;
using SqlSugar;
namespace QYZH.InteractiveMagazine.Models.Entity
{
///<summary>
///勋章获取规则配置表
///</summary>
[SugarTable("Medal_Rule")]
public partial class MedalRule : SqlSugarBaseEntity
{
/// <summary>
/// Desc:关联的勋章ID
/// Default:
/// Nullable:False
/// </summary>
public long MedalId {get;set;}
/// <summary>
/// Desc:目标表名JournalPageTask、UserAction等
/// Default:
/// Nullable:False
/// </summary>
public string TargetTable {get;set;}
/// <summary>
/// Desc:目标字段名TotalScore、LoginDays等
/// Default:
/// Nullable:False
/// </summary>
public string TargetField {get;set;}
/// <summary>
/// Desc:比较运算符: >=, >, =, <=, <
/// Default:>=
/// Nullable:False
/// </summary>
public string Operator {get;set;}
/// <summary>
/// Desc:阈值数量
/// Default:
/// Nullable:False
/// </summary>
public int ThresholdValue {get;set;}
/// <summary>
/// Desc:额外筛选条件JSON格式{"Type": 1, "Status": 2}
/// Default:
/// Nullable:True
/// </summary>
public string FilterCondition {get;set;}
/// <summary>
/// Desc:时间范围类型: All/CurrentMonth/CurrentWeek/Last7Days/Custom
/// Default:
/// Nullable:True
/// </summary>
public string DateRangeType {get;set;}
/// <summary>
/// Desc:自定义起始时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? DateRangeStart {get;set;}
/// <summary>
/// Desc:自定义结束时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? DateRangeEnd {get;set;}
/// <summary>
/// Desc:多规则间的逻辑关系: AND/OR
/// Default:AND
/// Nullable:False
/// </summary>
public string LogicOperator {get;set;}
/// <summary>
/// Desc:规则执行顺序(多个规则时生效)
/// Default:0
/// Nullable:False
/// </summary>
public int RuleOrder {get;set;}
/// <summary>
/// Desc:规则说明
/// Default:
/// Nullable:True
/// </summary>
public string Description {get;set;}
}
}