chore
This commit is contained in:
35
Atomx.Common/Entities/PostTagRelation.cs
Normal file
35
Atomx.Common/Entities/PostTagRelation.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user