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; } } /// ///文件信息类 /// [SugarTable("t_doc_file")] public class File_Info { /// /// id /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public int id { get; set; } /// /// 原文件名称 /// public string fileoldname { get; set; } /// /// 新名称 /// public string filenewname { get; set; } /// /// 保存文件名称 /// public string fileservername { get; set; } /// /// 文件大小(字节) /// public int filesize { get; set; } /// /// 后缀名 /// public string suffix { get; set; } /// /// 更新时间 /// public DateTime uptime { get; set; } /// /// 文档ID /// public int doc_id { get; set; } /// /// 状态 /// public int status { get; set; } /// /// 文件类型 /// 001-资质文档 /// 002-业绩文档 /// 003-方案文档 /// 004-财务文档 /// 005-技术文档 /// 006-设备文档 /// 007-质检文档 /// 008-制度流程文档 /// public string filetype { get; set; } /// /// 上传人员 /// public int up_userid { get; set; } /// /// 上传人员 /// public string up_username { get; set; } /// /// 路径 /// public string filepath { get; set; } } }