2026-06-04 15:54:30 +08:00
|
|
|
|
using SqlSugar;
|
2026-06-08 16:57:44 +08:00
|
|
|
|
using QYZH.InteractiveMagazine.Models.Enum;
|
2026-06-04 15:54:30 +08:00
|
|
|
|
|
|
|
|
|
|
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")]
|
2026-06-08 16:57:44 +08:00
|
|
|
|
public UserJournalTypeEnum Type { get; set; }
|
2026-06-04 15:54:30 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Desc:状态: Active(正常), Inactive(失效)
|
|
|
|
|
|
/// Default:Active
|
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "Status")]
|
2026-06-08 16:57:44 +08:00
|
|
|
|
public UserJournalStatusEnum Status { get; set; }
|
2026-06-04 15:54:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|