using System;
using AyaNova.Biz;
using System.ComponentModel.DataAnnotations;

namespace AyaNova.Models
{

    public class FileAttachment
    {
        public FileAttachment()
        {
            //all start out as synchronized
            Exists = true;

        }
        public long Id { get; set; }
        public uint Concurrency { get; set; }


        //-----------------------------------------
        [Required]
        public long AttachToObjectId { get; set; }
        [Required]
        public AyaType AttachToObjectType { get; set; }//int
        [Required]
        public string StoredFileName { get; set; }
        [Required]
        public string DisplayFileName { get; set; }
        [Required]
        public string ContentType { get; set; }//mime type       
        [Required]
        public DateTime LastModified { get; set; }
        public string Notes { get; set; }

        [Required]
        public bool Exists { get; set; }//was on disk last sync check

        [Required]
        public long Size { get; set; }

    }
}