using System;
using System.Collections.Generic;
using SqlSugar;
using OfficeOpenXml.Attributes;
using Newtonsoft.Json;
namespace ARW.Model.Models.Business.OrderManage.OrderGoodss
{
///
/// 订单商品记录,数据实体对象
///
/// @author lwh
/// @date 2023-09-01
///
[SugarTable("tb_order_goods")]
public class OrderGoods : BusinessBase
{
///
/// 描述 :
/// 空值 : false
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "order_goods_id")]
public int OrderGoodsId { get; set; }
///
/// 描述 :
/// 空值 : false
///
[JsonConverter(typeof(ValueToStringConverter))]
[SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnName = "order_goods_guid")]
public long OrderGoodsGuid { get; set; }
///
/// 描述 :订单guid
/// 空值 : false
///
[JsonConverter(typeof(ValueToStringConverter))]
[SugarColumn(ColumnName = "order_guid")]
public long OrderGuid { get; set; }
///
/// 描述 :商品guid
/// 空值 : false
///
[JsonConverter(typeof(ValueToStringConverter))]
[SugarColumn(ColumnName = "goods_guid")]
public long GoodsGuid { get; set; }
///
/// 描述 :商品sku唯一标识
/// 空值 : true
///
[SugarColumn(ColumnName = "goods_sku_id")]
public int? GoodsSkuId { get; set; }
///
/// 描述 :商品单价
/// 空值 : false
///
[SugarColumn(ColumnName = "goods_price")]
public decimal GoodsPrice { get; set; }
///
/// 描述 :商品购买数量
/// 空值 : false
///
[SugarColumn(ColumnName = "goods_total_num")]
public int GoodsTotalNum { get; set; }
///
/// 描述 :商品总额(单价 × 数量)
/// 空值 : false
///
[SugarColumn(ColumnName = "goods_total_amoun")]
public decimal GoodsTotalAmoun { get; set; }
}
}