using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using SqlSugar;
|
using WIDESEA_Core.DB.Models;
|
|
namespace WIDESEA_Model.Models
|
{
|
/// <summary>
|
/// 产品信息表
|
/// </summary>
|
[SugarTable(nameof(Dt_Products), TableDescription = "产品信息表")]
|
public class Dt_Products : BaseEntity
|
{
|
/// <summary>
|
/// 主键
|
/// </summary>
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
|
public int Id { get; set; }
|
|
/// <summary>
|
/// 产品名称
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 100, ColumnDescription = "产品名称")]
|
public string ProductName { get; set; } = null!;
|
|
/// <summary>
|
/// 产品描述
|
/// </summary>
|
[SugarColumn(IsNullable = true, Length = 2000, ColumnDescription = "产品描述")]
|
public string? ProductDescription { get; set; }
|
|
/// <summary>
|
/// 分类(桌面/移动/中间件等)
|
/// </summary>
|
[SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "分类(桌面/移动/中间件等)")]
|
public string ProductCategory { get; set; } = null!;
|
|
/// <summary>
|
/// 是否启用
|
/// </summary>
|
[SugarColumn(IsNullable = false, ColumnDescription = "是否启用")]
|
public bool IsEnable { get; set; }
|
}
|
}
|