using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OASystem.Domain.Entities.PersonnelModule
{
    /// <summary>
    /// 物品领用明细表
    /// </summary>
    [SugarTable(tableName: "Pm_GoodsReceiveDetails", tableDescription: "物品领用明细表")]
    public class Pm_GoodsReceiveDetails: EntityBase
    {
        /// <summary>
        /// 物品领用Id
        /// </summary>
        [SugarColumn(ColumnDescription = "物品领用Id", IsNullable = true, ColumnDataType = "int")]
        public int GoodsReceiveId { get; set; }
        /// <summary>
        /// 物品Id
        /// Pm_GoodsInfo Id
        /// </summary>
        [SugarColumn(ColumnDescription = "物品Id", IsNullable = true, ColumnDataType = "int")]
        public int GoodsId { get; set; }
        /// <summary>
        /// 物资入库批次信息
        /// {storageId:1,quantity:10}
        /// </summary>
        [SugarColumn(ColumnDescription = "物资入库批次信息", IsNullable = true, ColumnDataType = "varchar(200)")]
        public string? GoodsStorageInfo { get; set; }
        /// <summary>
        /// 领用数量
        /// </summary>
        [SugarColumn(ColumnDescription = "领用数量", IsNullable = true, ColumnDataType = "decimal(8,2)")]
        public decimal Quantity { get; set; }
    }
}