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

namespace QYZH.InteractiveMagazine.Models.Entity
{
    ///<summary>
    ///用户与期刊关联表
    ///</summary>
    [SugarTable("UserJournal")]
    public partial class UserJournal : SqlSugarBaseEntity
    {
        public UserJournal()
        {

        }

        /// <summary>
        /// Desc:用户Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(ColumnName = "UserId")]
        public long UserId { get; set; }

        /// <summary>
        /// Desc:期刊模板Id（对应Journal表的期刊定义）
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(ColumnName = "JournalId")]
        public long JournalId { get; set; }

        /// <summary>
        /// Desc:关联类型: Read(已读), Favorite(收藏), Subscribe(订阅)
        /// Default:Read
        /// Nullable:False
        /// </summary>           
        [SugarColumn(ColumnName = "Type")]
        public UserJournalTypeEnum Type { get; set; }

    }
}
