using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Atomx.Common.Entities
{
///
/// 标签
///
[Table("Tags")]
public class Tag
{
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Key]
public long Id { get; set; }
///
/// 标签名称
///
[Column(TypeName = "varchar(64)")]
public string Name { get; set; } = string.Empty;
///
/// 颜色
///
[Column(TypeName = "varchar(12)")]
public string Color { get; set; } = string.Empty;
///
/// URL标识
///
[Column(TypeName = "varchar(128)")]
public string Slug { get; set; } = string.Empty;
///
/// 使用次数
///
public int Count { get; set; }
///
/// 是否启用
///
public int Enabled { get; set; }
///
/// 创建时间
///
[Column(TypeName = "timestamptz")]
public DateTime CreateTime { get; set; }
///
/// 更新时间
///
[Column(TypeName = "timestamptz")]
public DateTime? UpdateTime { get; set; }
}
}