37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System;
|
|
using AyaNova.Biz;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace AyaNova.Models
|
|
{
|
|
|
|
public partial class FileAttachment
|
|
{
|
|
public long Id { get; set; }
|
|
public uint ConcurrencyToken { get; set; }
|
|
public DateTime Created { get; set; }//time it was uploaded not original file creation time, we don't have that
|
|
[Required]
|
|
public long OwnerId { 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
|
|
public string Notes { get; set; }
|
|
|
|
|
|
public FileAttachment()
|
|
{
|
|
Created = System.DateTime.UtcNow;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
//"AttachToObjectType and / or AttachToObjectId public AuthorizationRoles Roles { get; set; } |