对所有实体类的SugarTable特性以及菜单初始化SQL中的表名进行统一修改,将原有的零散表名调整为带业务前缀的规范命名,例如将系统管理相关表加上System_前缀、内容相关表加上Content_前缀、商城相关表加上Mall_前缀等,统一数据库表命名规范
59 lines
1.5 KiB
C#
59 lines
1.5 KiB
C#
using SqlSugar;
|
|
using QYZH.InteractiveMagazine.Models.Enum;
|
|
|
|
namespace QYZH.InteractiveMagazine.Models.Entity
|
|
{
|
|
///<summary>
|
|
///签到记录表
|
|
///</summary>
|
|
[SugarTable("CheckIn_Record")]
|
|
public partial class CheckInRecord : SqlSugarBaseEntity
|
|
{
|
|
public CheckInRecord(){
|
|
|
|
|
|
}
|
|
/// <summary>
|
|
/// Desc:用户Id
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public long UserId {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:签到日期
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public DateTime CheckInDate {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:本次签到获得积分
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public int PointsAwarded {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:本次签到获得成长值(喂养宠物)
|
|
/// Default:0
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public int GrowthPointsAwarded {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:连续签到天数
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public int ConsecutiveDays {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:签到类型: Normal, MakeUp
|
|
/// Default:Normal
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public CheckInRecordTypeEnum Type { get;set;}
|
|
}
|
|
}
|