using SqlSugar;
using QYZH.InteractiveMagazine.Models.Enum;

namespace QYZH.InteractiveMagazine.Models.Entity
{
    ///<summary>
    ///积分流水记录表
    ///</summary>
    [SugarTable("PointsRecord")]
    public partial class PointsRecord : SqlSugarBaseEntity
    {
           public PointsRecord(){


           }

        /// <summary>
        /// Desc:用户Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public long UserId {get;set;}

           /// <summary>
           /// Desc:变动数值
           /// Default:
           /// Nullable:False
           /// </summary>           
           public int ChangeAmount {get;set;}

           /// <summary>
           /// Desc:变动后余额
           /// Default:
           /// Nullable:False
           /// </summary>           
           public int BalanceAfter {get;set;}

           /// <summary>
           /// Desc:变动类型: Exchange, FeedPet, SignIn, TaskReward
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string ChangeType {get;set;}

           /// <summary>
           /// Desc:关联业务Id
           /// Default:
           /// Nullable:True
           /// </summary>           
           public long? RelatedId {get;set;}

           /// <summary>
           /// Desc:备注
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Description {get;set;}

           /// <summary>
           /// Desc:流水分类
           /// Default:
           /// Nullable:True
           /// </summary>           
           public PointsFlowTypeEnum Type {get;set;}

    }
}
