Files
StopShopping/StopShopping.EF/Models/Category.cs
2026-03-25 14:55:34 +08:00

55 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
namespace StopShopping.EF.Models;
/// <summary>
/// 商品分类
/// </summary>
public partial class Category
{
/// <summary>
/// 主键
/// </summary>
public int Id { get; set; }
/// <summary>
/// 父级id顶级为0
/// </summary>
public int ParentId { get; set; }
/// <summary>
/// id路径枚举/1/2/3/
/// </summary>
public string Path { get; set; } = null!;
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; } = null!;
/// <summary>
/// 层级从1开始
/// </summary>
public short Level { get; set; }
/// <summary>
/// logo图片名后台生成地址
/// </summary>
public string? Logo { get; set; }
/// <summary>
/// 层级中序号
/// </summary>
public short Order { get; set; }
/// <summary>
/// 软删除标识
/// </summary>
public bool Deleted { get; set; }
public virtual ICollection<Product> Products { get; set; } = new List<Product>();
public virtual ICollection<Request> Requests { get; set; } = new List<Request>();
}