using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace LearningOfficer.OA.Core.Entities.OA.UserPoints
{
///
/// 积分详细表
///
[SugarTable("points_detail")]
public class PointsDetail : BaseEntity
{
///
/// 备 注:用户id
/// 默认值:
///
[SugarColumn(ColumnName = "userid" )]
public long Userid { get; set; }
///
/// 备 注:变化积分(可正可负)(当时的执行规则的积分)
/// 默认值:
///
[SugarColumn(ColumnName = "change_points" )]
public int ChangePoints { get; set; }
///
/// 备 注:执行规则id(区分类型用)(0为非规则)
/// 默认值:
///
[SugarColumn(ColumnName = "rules_id")]
public long RulesId { get; set; }
///
/// 备 注:事项名称
/// 默认值:
///
[SugarColumn(ColumnName = "detail_name")]
public string DetailName { get; set; }
///
/// 备 注:操作类型(人为、程序)
/// 默认值:
///
[SugarColumn(ColumnName = "is_auto" )]
public int IsAuto { get; set; }
///
/// 备 注:人为操作用户id
/// 默认值:
///
[SugarColumn(ColumnName = "add_userid" )]
public long AddUserid { get; set; }
///
/// 备 注:相关id
/// 默认值:
///
[SugarColumn(ColumnName = "source_id" )]
public long? SourceId { get; set; }
///
/// 备 注:变化后的剩余可用积分(用于对账)
/// 默认值:
///
[SugarColumn(ColumnName = "remaining_points" )]
public int RemainingPoints { get; set; }
///
/// 备 注:发生时间
/// 默认值:
///
[SugarColumn(ColumnName = "add_time" )]
public DateTime AddTime { get; set; }
}
}