Files
g.hnyhua.cn/Mtxfw.Model/user_sign_log.cs
2026-02-07 15:48:27 +08:00

74 lines
1.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 SqlSugar;
using System.Collections.Generic;
namespace Mtxfw.Model
{
/// <summary>
///
/// @author xubo
/// @date 2026-02-01
/// </summary>
[SugarTable("user_sign_log")]
public class UserSignLog
{
/// <summary>
/// Id
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
/// <summary>
/// 会员编号
/// </summary>
[SugarColumn(ColumnName = "user_id")]
public int UserId { get; set; }
/// <summary>
/// 之前的兑换券
/// </summary>
[SugarColumn(ColumnName = "before_point")]
public decimal BeforePoint { get; set; } = 0.00M;
/// <summary>
/// 本次签到获得的兑换券
/// </summary>
public decimal Point { get; set; }= 0.00M;
/// <summary>
/// 本次更新后的兑换券
/// </summary>
[SugarColumn(ColumnName = "after_point")]
public decimal AfterPoint { get; set; } = 0.00M;
/// <summary>
/// 连续签到第N天
/// </summary>
[SugarColumn(ColumnName = "number_day")]
public int NumberDay { get; set; } = 0;
/// <summary>
/// 类型1=用户签到2=用户自行兑换
/// </summary>
[SugarColumn(ColumnName = "class_id")]
public int ClassId { get; set; } = 1;
/// <summary>
/// 创建日期
/// </summary>
[SugarColumn(ColumnName = "create_day")]
public string CreateDay { get; set; } = DateTime.Today.ToString("yyyy-MM-dd");
/// <summary>
/// CreateTime
/// </summary>
[SugarColumn(ColumnName = "create_time")]
public DateTime CreateTime { get; set; } = DateTime.Now;
/// <summary>
/// Remark
/// </summary>
public string Remark { get; set; }
}
}