using System; using Sockeye.Biz; using System.ComponentModel.DataAnnotations; namespace Sockeye.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 SockType AttachToAType { 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 long AttachedByUserId { get; set; } [Required] public bool Exists { get; set; }//was on disk last sync check [Required] public long Size { get; set; } } }