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.

48 lines
1.7 KiB

using FreeSql.DataAnnotations;
namespace Znyc.CloudCar.Model.Entities
{
/// <summary>
/// 商品图片实体
/// </summary>
[Table(Name = "rm_product_pic")]
public class ProductPicEntity : EntityBase
{
/// <summary>
/// 产品Id
/// </summary>
public long ProductId { get; set; }
/// <summary>
/// 图片描述
/// </summary>
[Column(StringLength = 50)]
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“PicDesc”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string PicDesc { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“PicDesc”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
/// <summary>
/// 图片url
/// </summary>
[Column(StringLength = 125)]
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的 属性“PicUrl”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
public string PicUrl { get; set; }
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的 属性“PicUrl”必须包含非 null 值。请考虑将 属性 声明为可以为 null。
/// <summary>
/// 是否主图:0.非主图1.主图
/// </summary>
public bool IsMaster { get; set; }
/// <summary>
/// 图片排序
/// </summary>
public int Sort { get; set; }
/// <summary>
/// 图片是否有效:0无效 1有效
/// </summary>
public int PicStatus { get; set; }
}
}