This commit is contained in:
2026-03-25 14:55:34 +08:00
commit 2c44b3a4b2
131 changed files with 7453 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
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>();
}