using IRaCIS.Core.Domain.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IRaCIS.Core.Domain.Models
{
[Comment("稽查文档管理")]
[Table("AuditDocument")]
public class AuditDocument : BaseFullAuditEntity
{
///
/// 文件夹名或者文件名
///
public string Name { get; set; }
///
/// 文档类型
///
public AuditDocumentType AuditDocumentTypeEnum { get; set; }
///
/// 父文件夹Id
///
public Guid? ParentId { get; set; }
///
/// 文件路径
///
[StringLength(1000)]
public string FilePath { get; set; } = string.Empty;
///
/// 文件大小
///
public decimal? FileSize { get; set; }
///
/// 文件类型
///
public string FileFormat { get; set; } = string.Empty;
///
/// 版本
///
public int? Version { get; set; }
///
/// 主文件Id
///
public Guid? MainFileId { get; set; }
///
/// 是否授权
///
public bool IsAuthorization { get; set; } = false;
}
///
/// 稽查文档类型
///
public enum AuditDocumentType
{
///
/// 文件夹
///
Folder = 0,
///
/// 文件
///
File = 1,
///
/// 历史版本
///
HistoricalVersion = 2,
}
}