using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Business.Domain
{
///
/// 整体需求计划主表
///
[Comment("整体需求计划主表")]
[Index(nameof(Version), nameof(tenant_id), nameof(factory_id), IsUnique = true)]
public class OverallDemandPlanMain
{
///
/// 主键
///
[Comment("主键")]
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
///
/// 年
///
[Comment("年")]
public int? Year { get; set; }
///
/// 月
///
[Comment("月")]
public int? Month { get; set; }
///
/// 版本号
///
[Comment("版本号")]
public string Version { get; set; }
///
/// 操作人
///
[Comment("操作人")]
public string UserName { get; set; }
///
/// 操作人工号
///
[Comment("操作人工号")]
public string Account { get; set; }
///
/// 操作时间
///
[Comment("操作时间")]
public DateTime? ImportDate { get; set; }
///
/// 流水号
///
[Comment("流水号")]
public int? SerialNum { get; set; }
///
/// 集团id
///
[Comment("集团id")]
public long? tenant_id { get; set; }
///
/// 工厂id
///
[Comment("工厂id")]
public long? factory_id { get; set; }
}
}