using Business.Core.Attributes;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Business.Domain
{
///
/// 物料库存表
///
[CollectionName("dopbase", "ic_item_stock")]
[Comment("物料库存表")]
[Index(nameof(icitem_number), nameof(fversion), nameof(tenant_id), nameof(factory_id), IsUnique = true)]
public class ic_item_stock : BaseEntity
{
///
/// 物料id
///
[Required]
[Comment("物料id")]
public long icitem_id { get; set; }
///
/// 物料编码
///
[StringLength(80)]
[Comment("物料编码")]
public string icitem_number { get; set; }
///
/// 物料名称
///
[StringLength(80)]
[Comment("物料名称")]
public string icitem_name { get; set; }
///
/// 版本号
///
[StringLength(80)]
[Comment("版本号")]
public string fversion { get; set; }
///
/// 物料库存量
///
[Precision(23, 10)]
[Comment("物料库存量")]
public decimal? sqty { get; set; }
///
/// 调拨在途数量
///
[Precision(23, 10)]
[Comment("调拨在途数量")]
public decimal? quantity_in_transit { get; set; }
///
/// 计算id
///
[Comment("计算id")]
[NotMapped]
public long? bang_id { get; set; }
}
}