using System;
using System.ComponentModel.DataAnnotations;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;

namespace YGNT.File.Core
{
    public class File : Entity<Guid>, ICreationAudited, ISoftDelete
    {
        /// <summary>
        /// 文件名称
        /// </summary>
        [Required]
        public string FileName { get; set; }

        /// <summary>
        /// 文件路径(相对路径)
        /// </summary>
        [Required]
        public string Path { get; set; }

        /// <summary>
        /// 物理完整路径
        /// </summary>
        //[Required]
        //public string PhysicsPath { get; set; }

        [Required]
        public string Md5 { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public long Size { get; set; }

        /// <summary>
        /// 文件后缀
        /// </summary>
        public string Suffix { get; set; }

        public DateTime CreationTime { get; set; }

        public long? CreatorUserId { get; set; }

        public bool IsDeleted { get; set; }
    }
}