2020-09-15 12:31:52 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
namespace Snootalogue.Models {
|
|
|
|
public class Document {
|
|
|
|
public int ID { get; set; }
|
|
|
|
public string Filename { get; set; }
|
|
|
|
public string Hash { get; set; }
|
2020-09-16 01:43:55 +00:00
|
|
|
[UIHint("FileSize")]
|
2020-09-15 12:31:52 +00:00
|
|
|
public long Size { get; set; }
|
|
|
|
|
|
|
|
public string Title { get; set; }
|
2020-09-16 01:43:55 +00:00
|
|
|
[UIHint("CommaSeparatedList")]
|
2020-09-15 12:31:52 +00:00
|
|
|
public List<string> Authors { get; set; }
|
|
|
|
public string Category { get; set; }
|
2020-09-17 13:37:11 +00:00
|
|
|
[Display(Name = "Date added")]
|
2020-09-15 12:31:52 +00:00
|
|
|
public DateTime DateAdded { get; set; }
|
2020-09-16 01:43:55 +00:00
|
|
|
[UIHint("CommaSeparatedList")]
|
2020-09-15 12:31:52 +00:00
|
|
|
public List<string> Tags { get; set; }
|
|
|
|
public Boolean Read { get; set; }
|
2020-09-17 13:37:11 +00:00
|
|
|
public string Notes { get; set; }
|
2020-09-15 12:31:52 +00:00
|
|
|
}
|
|
|
|
}
|