using FreeSql.DataAnnotations;
using Newtonsoft.Json;
namespace MoviconWebApi.Entities
{
///
/// 不论多部件还是单部件均采用数组,若为单部件则数组中仅有一个对象
///
[Table(Name = "ComponentsInfo")]
public class ComponentsInfo
{
///
/// 主键ID
///
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
///
/// 车型
///
[JsonProperty("part_Vehicle_model")]
[Column(Name = "part_Vehicle_model", StringLength = 100, IsNullable = true)]
public string? part_Vehicle_model { get; set; }
///
/// 车号
///
[JsonProperty("part_locomotive_number")]
[Column(Name = "part_locomotive_number", StringLength = 100, IsNullable = true)]
public string? part_locomotive_number { get; set; }
///
/// 修程
///
[JsonProperty("part_repair_process")]
[Column(Name = "part_repair_process", StringLength = 100, IsNullable = true)]
public string? part_repair_process { get; set; }
///
/// 位别
///
[JsonProperty("part_position")]
[Column(Name = "part_position", StringLength = 100, IsNullable = true)]
public string? part_position { get; set; }
///
/// 部件名称
///
[JsonProperty("part_name")]
[Column(Name = "part_name", StringLength = 100, IsNullable = true)]
public string? part_name { get; set; }
///
/// 部件编号
///
[JsonProperty("part_num")]
[Column(Name = "part_num", StringLength = 100, IsNullable = true)]
public string? part_num { get; set; }
///
/// 二维码id
///
[JsonProperty("part_qrid")]
[Column(Name = "part_qrid", StringLength = 100, IsNullable = true)]
public string? part_qrid { get; set; }
///
/// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
///
public long DataReocrdId { get; set; }
public DataReocrd? DataReocrd { get; set; }
}
}