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