Files
Atomx/Atomx.Common/Entities/PostTagRelation.cs
2025-12-22 17:54:57 +08:00

36 lines
819 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Atomx.Common.Entities
{
/// <summary>
/// 内容标签关系表
/// </summary>
[Table("PostTagRelations")]
public class PostTagRelation
{
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Key]
public long Id { get; set; }
public long ContentType { get; set; }
/// <summary>
/// 内容ID
/// </summary>
public long ContentId { get; set; }
/// <summary>
/// 标签ID
/// </summary>
public long TagId { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column(TypeName = "timestamptz")]
public DateTime CreateTime { get; set; }
}
}