using Hncore.Infrastructure.DDD;
using System;

namespace Hncore.Pass.BaseInfo.Models
{
    public partial class UserScore : EntityWithTime<int>, ITenant
    {
        public int TenantId { get; set; } = 0;

        public int UserId { get; set; }

        public string UserName { get; set; }

        public string OperateUserName { get; set; }

        public ScoreType ScoreType { get; set; }

        public string ScoreTypeName { get; set; }

        public decimal ScoreValue { get; set; } = 0;

        public string ScoreTarget { get; set; }

        public string Remark { get; set; }

        /// <summary>
        /// 消费前余额
        /// </summary>
        public decimal? RestAmount1 { get; set; } = 0;

        /// <summary>
        /// 消费后余额
        /// </summary>
        public decimal? RestAmount2 { get; set; } = 0;
    }
}