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

namespace QYZH.InteractiveMagazine.Models.Entity
{
    ///<summary>
    ///用户勋章表
    ///</summary>
    [SugarTable("UserMedal")]
    public partial class UserMedal : SqlSugarBaseEntity
    {
           public UserMedal(){


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

           /// <summary>
           /// Desc:勋章Id
           /// Default:
           /// Nullable:False
           /// </summary>           
           public long MedalId {get;set;}

           /// <summary>
           /// Desc:获得时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? AwardedAt {get;set;}

           /// <summary>
           /// Desc:勋章记录类型
           /// Default:
           /// Nullable:True
           /// </summary>           
           public UserMedalTypeEnum Type {get;set;}
    }
}
