using Ant.Core.SqlServer.BaseEntities;
using Central.Control.WebApi.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
namespace Central.Control.WebApi.Models
{
///
/// YW_PRODUCT商品表
///
public class YW_Product : SoftBaseEntity
{
///
/// 主键ID
///
[Key]
[MaxLength(50)]
public string Id { set; get; } = string.Empty;
///
/// 商品名称
///
[MaxLength(100)]
[Required(AllowEmptyStrings = true)]
public string Name { set; get; } = string.Empty;
///
/// 商品编号(唯一)
///
[MaxLength(50)]
[Required(AllowEmptyStrings = true)]
public string Code { set; get; } = string.Empty;
///
/// 商品图片
///
[MaxLength(200)]
[Required(AllowEmptyStrings = true)]
public string Img { set; get; } = string.Empty;
///
/// 商品简介
///
[MaxLength(200)]
[Required(AllowEmptyStrings = true)]
public string Info { set; get; } = string.Empty;
///
/// 售卖价
///
public decimal Price { set; get; }
///
/// 进货价
///
public decimal BuyingPrice { set; get; }
///
/// 库存
///
public int Stock { set; get; }
///
/// 售卖状态
///
public SaleEnum Sale { set; get; } = SaleEnum.Off;
}
}