87 lines
2.2 KiB
C#
87 lines
2.2 KiB
C#
|
|
using SqlSugar;
|
||
|
|
|
||
|
|
namespace QYZH.InteractiveMagazine.Models.Entity
|
||
|
|
{
|
||
|
|
///<summary>
|
||
|
|
///虚拟商品表
|
||
|
|
///</summary>
|
||
|
|
[SugarTable("Product")]
|
||
|
|
public partial class Product : BaseEntity
|
||
|
|
{
|
||
|
|
public Product(){
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
/// <summary>
|
||
|
|
/// Desc:主键
|
||
|
|
/// Default:
|
||
|
|
/// Nullable:False
|
||
|
|
/// </summary>
|
||
|
|
[SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
|
||
|
|
public new int Id {get;set;}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Desc:商品名称
|
||
|
|
/// Default:
|
||
|
|
/// Nullable:False
|
||
|
|
/// </summary>
|
||
|
|
public string Name {get;set;}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Desc:描述
|
||
|
|
/// Default:
|
||
|
|
/// Nullable:True
|
||
|
|
/// </summary>
|
||
|
|
public string Description {get;set;}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Desc:商品图片
|
||
|
|
/// Default:
|
||
|
|
/// Nullable:True
|
||
|
|
/// </summary>
|
||
|
|
public string ImageUrl {get;set;}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Desc:所需积分
|
||
|
|
/// Default:
|
||
|
|
/// Nullable:False
|
||
|
|
/// </summary>
|
||
|
|
public int Price {get;set;}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Desc:商品类型: MakeUpCard, PetBg
|
||
|
|
/// Default:
|
||
|
|
/// Nullable:False
|
||
|
|
/// </summary>
|
||
|
|
public string Type {get;set;}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Desc:状态: OnSale, OffSale
|
||
|
|
/// Default:OnSale
|
||
|
|
/// Nullable:False
|
||
|
|
/// </summary>
|
||
|
|
public string Status {get;set;}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Desc:扩展数据
|
||
|
|
/// Default:
|
||
|
|
/// Nullable:True
|
||
|
|
/// </summary>
|
||
|
|
public string MetaData {get;set;}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Desc:是否上架
|
||
|
|
/// Default:b'1'
|
||
|
|
/// Nullable:False
|
||
|
|
/// </summary>
|
||
|
|
public bool IsActive {get;set;}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Desc:库存(-1无限)
|
||
|
|
/// Default:-1
|
||
|
|
/// Nullable:False
|
||
|
|
/// </summary>
|
||
|
|
public int Stock {get;set;}
|
||
|
|
}
|
||
|
|
}
|