using FreeSql.DataAnnotations;
namespace Znyc.CloudCar.Model.Entities
{
///
/// 商品分类表
///
[Table(Name = "rm_product_category")]
public class ProductCategoryEntity : EntityBase
{
///
/// 分类编码
///
[Column(StringLength = 10)]
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Code”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string Code { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Code”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
///
/// 分类名称
///
[Column(StringLength = 10)]
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Name”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string Name { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Name”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
///
/// 父分类ID
///
public long ParentId { get; set; }
///
/// 分类层级
///
public long Level { get; set; }
///
/// 分类状态
///
public int Status { get; set; }
///
/// 排序
///
public int Sort { get; set; }
}
}