You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
3.0 KiB
90 lines
3.0 KiB
using FreeSql.DataAnnotations;
|
|
|
|
namespace Znyc.CloudCar.Model.Entities
|
|
{
|
|
/// <summary>
|
|
/// 商品信息实体
|
|
/// </summary>
|
|
[Table(Name = "rm_product_info")]
|
|
public class ProductInfoEntity : EntityBase
|
|
{
|
|
/// <summary>
|
|
/// 商品编码
|
|
/// </summary>
|
|
[Column(StringLength = 11)]
|
|
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“ProductCode”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
public string ProductCode { get; set; }
|
|
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“ProductCode”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
|
|
/// <summary>
|
|
/// 商品名称
|
|
/// </summary>
|
|
[Column(StringLength = 25)]
|
|
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“ProductName”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
public string ProductName { get; set; }
|
|
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“ProductName”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
|
|
/// <summary>
|
|
/// 品牌表的ID
|
|
/// </summary>
|
|
public long BrandId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分类ID
|
|
/// </summary>
|
|
public long CategoryId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 商品销售价
|
|
/// </summary>
|
|
public decimal Price { get; set; }
|
|
|
|
/// <summary>
|
|
/// 商品价值
|
|
/// </summary>
|
|
public int ProductValue { get; set; }
|
|
|
|
/// <summary>
|
|
/// 上下架状态:0下架1上架
|
|
/// </summary>
|
|
public int PublishStatus { get; set; }
|
|
|
|
/// <summary>
|
|
/// 审核状态:0未审核,1已审核
|
|
/// </summary>
|
|
public int AuditStatus { get; set; }
|
|
|
|
/// <summary>
|
|
/// 重量
|
|
/// </summary>
|
|
public float Weight { get; set; }
|
|
|
|
/// <summary>
|
|
/// 长度
|
|
/// </summary>
|
|
public float Length { get; set; }
|
|
|
|
/// <summary>
|
|
/// 高度
|
|
/// </summary>
|
|
public float Height { get; set; }
|
|
|
|
/// <summary>
|
|
/// 宽度
|
|
/// </summary>
|
|
public float Width { get; set; }
|
|
|
|
/// <summary>
|
|
/// 商品描述
|
|
/// </summary>
|
|
[Column(StringLength = 55)]
|
|
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“Description”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
public string Description { get; set; }
|
|
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“Description”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
|
|
|
|
/// <summary>
|
|
/// 录入时间
|
|
/// </summary>
|
|
public DateTime InDate { get; set; }
|
|
}
|
|
}
|