24 lines
689 B
C#
24 lines
689 B
C#
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; }
|
|
[UIHint("FileSize")]
|
|
public long Size { get; set; }
|
|
|
|
public string Title { get; set; }
|
|
[UIHint("CommaSeparatedList")]
|
|
public List<string> Authors { get; set; }
|
|
public string Category { get; set; }
|
|
[Display(Name = "Date added")]
|
|
public DateTime DateAdded { get; set; }
|
|
[UIHint("CommaSeparatedList")]
|
|
public List<string> Tags { get; set; }
|
|
public Boolean Read { get; set; }
|
|
public string Notes { get; set; }
|
|
}
|
|
}
|