1
|
using System;
|
2
|
using System.Collections.Generic;
|
3
|
using System.ComponentModel.DataAnnotations;
|
4
|
using System.ComponentModel.DataAnnotations.Schema;
|
5
|
using System.Linq;
|
6
|
using System.Text;
|
7
|
using System.Threading.Tasks;
|
8
|
|
9
|
namespace Core.Entities
|
10
|
{
|
11
|
#nullable disable
|
12
|
public class Document : BaseEntity
|
13
|
{
|
14
|
/// <summary>
|
15
|
/// Document name
|
16
|
/// </summary>
|
17
|
public string Name { get; set; }
|
18
|
|
19
|
/// <summary>
|
20
|
/// Length in characters
|
21
|
/// </summary>
|
22
|
public int Length { get; set; }
|
23
|
|
24
|
/// <summary>
|
25
|
/// Actual content
|
26
|
/// </summary>
|
27
|
public DocumentContent Content { get; set; }
|
28
|
|
29
|
/// <summary>
|
30
|
/// Date added
|
31
|
/// </summary>
|
32
|
public DateTime DateAdded { get; set; }
|
33
|
|
34
|
/// <summary>
|
35
|
/// User who added it
|
36
|
/// </summary>
|
37
|
public User UserAdded { get; set; }
|
38
|
|
39
|
/// <summary>
|
40
|
/// Number of required annotations
|
41
|
/// </summary>
|
42
|
public int RequiredAnnotations { get; set; }
|
43
|
}
|
44
|
}
|