36 lines
819 B
C#
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; }
|
|
}
|
|
}
|