using SqlSugar;
namespace DocumentServiceAPI.Model.cyDocumentModel
{
///
///文档管理类
///
[SugarTable("t_document")]
public class Doc_Info : Doc_Base
{
public Doc_Info()
{
}
///
/// id
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int id { get; set; }
///
/// 文档分类编码
///
public string doc_code { get; set; }
///
/// 归属分类(子类型)
///
public int? classification_id { get; set; }
///
/// 名称
///
public string doc_name { get; set; }
///
/// 单位ID
///
public int? org_id { get; set; }
///
/// 项目id
///
public int? project_id { get; set; }
///
/// 删除标记
///
public bool is_del { get; set; }
///
/// 关联分类
///
[SugarColumn(IsIgnore = true)]
[Navigate(NavigateType.OneToOne, nameof(classification_id))]
public Doc_Classification? DocClassification { get; set; }
///
/// 关联投标单位
///
[SugarColumn(IsIgnore = true)]
[Navigate(NavigateType.OneToOne, nameof(org_id))]
public Document_TenderUnit? DocOrganization { get; set; }
///
/// 关联项目
///
[SugarColumn(IsIgnore = true)]
[Navigate(NavigateType.OneToOne, nameof(project_id))]
public Document_ProjectInfo? DocProject { get; set; }
}
}