using Business.Core.Attributes;
using Microsoft.EntityFrameworkCore;
using MongoDB.Bson.Serialization.Attributes;
using System.ComponentModel.DataAnnotations;
namespace Business.Domain
{
///
/// 工艺路径表
///
[CollectionName("dopbase", "mes_technique")]
[Comment("工艺路径表")]
public class mes_technique : BaseEntity
{
/////
///// 工艺路径主键
/////
//[Key]
//[Comment("工艺路径主键")]
//public long tech_id { get; set; }
///
/// 工艺路径名称
///
[Required]
[StringLength(100)]
[Comment("工艺路径名称")]
[BsonRepresentation(MongoDB.Bson.BsonType.String)]
public string tech_name { get; set; }
///
/// 效率计算层级
///
[Comment("效率计算层级")]
public int? level { get; set; }
///
/// 产品
///
[StringLength(100)]
[Comment("产品")]
[BsonRepresentation(MongoDB.Bson.BsonType.String)]
public string bom { get; set; }
///
/// 产品版本
///
[StringLength(100)]
[Comment("产品版本")]
[BsonRepresentation(MongoDB.Bson.BsonType.String)]
public string bomver { get; set; }
///
/// 描述
///
[StringLength(100)]
[Comment("描述")]
[BsonRepresentation(MongoDB.Bson.BsonType.String)]
public string desc { get; set; }
}
}