namespace ZR.Mall.Model
{
///
/// 商城目录
///
[SugarTable("mms_category", "商城目录")]
[Tenant("1")]
public class Category
{
///
/// 目录id
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "category_id")]
public int CategoryId { get; set; }
[SugarColumn(ColumnDescription = "目录名", Length = 20, ExtendedAttribute = ProteryConstant.NOTNULL)]
public string Name { get; set; }
[SugarColumn(ColumnDescription = "图标")]
public string Icon { get; set; }
///
/// 排序id
///
public int OrderNum { get; set; }
public int? ParentId { get; set; }
///
/// 说明
///
public string Introduce { get; set; }
///
/// 是否删除
///
[SugarColumn(DefaultValue = "0")]
public int IsDelete { get; set; }
///
/// 是否显示
///
[SugarColumn(DefaultValue = "1")]
public int ShowStatus { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnDescription = "创建时间", ColumnName = "create_time", InsertServerTime = true)]
public DateTime? CreateTime { get; set; }
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
[SugarColumn(IsIgnore = true)]
public List Children { get; set; }
}
}