You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.6 KiB

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