using Business.Core.Attributes;
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Business.Domain
{
///
/// 采购申请单占用
///
[CollectionName("dopbase", "srm_pr_main_occupy")]
[Comment("采购申请单占用")]
[Index(nameof(morder_mo),nameof(morder_id), nameof(tenant_id), nameof(company_id), nameof(factory_id), IsUnique = true)]
public class srm_pr_main_occupy : BaseEntity
{
///
/// 工单ID
///
[Comment("工单ID")]
public long? morder_id { get; set; }
///
/// 工单编号
///
[Comment("工单编号")]
public string morder_mo { get; set; }
///
/// 占用量
///
[Precision(23, 10)]
[Comment("占用量")]
public decimal? qty { get; set; }
///
/// 占用状态
///
[Comment("占用状态")]
public int? state { get; set; }
///
/// 计算ID
///
[Comment("计算id")]
[NotMapped]
public long? bang_id { get; set; }
}
}