This commit is contained in:
yxw
2025-12-22 17:54:57 +08:00
parent 903d6d9304
commit 1f0c84f75e
6 changed files with 139 additions and 8 deletions

View File

@@ -0,0 +1,35 @@
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; }
}
}