Files
raven/server/AyaNova/models/FileAttachment.cs
2020-06-26 18:22:11 +00:00

39 lines
992 B
C#

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
}
}