using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Atomx.Common.Entities
{
///
/// 原料采购批次
///
[Table("MaterialBatchs")]
public class MaterialBatch
{
///
/// 数据ID
///
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Key]
public long Id { get; set; }
///
/// 类型:采购、借调、借调归还
///
public int Type { get; set; }
///
/// 原料数据ID
///
public long MaterialId { get; set; }
///
/// 原料归属公司ID
///
public long CorporationId { get; set; }
///
/// 原料归属店铺网点ID
///
public long StoreId { get; set; }
///
/// 原料当前数量
///
public decimal Quantity { get; set; }
///
/// 原料批次总量
///
public decimal TotalQuantity { get; set; }
///
/// 原料采购价格
///
public decimal Price { get; set; }
///
/// 数据创建时间
///
[Column(TypeName = "timestamptz")]
public DateTime CreateTime { get; set; } = DateTime.UtcNow;
///
/// 数据最后更新时间
///
[Column(TypeName = "timestamptz")]
public DateTime? UpdateTime { get; set; }
}
}