aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/Database/Models/File.cs
blob: 63d4d75f8a52d0698083c03687592779faae83ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace Quality.Storage.Api.Database.Models;

public class File : Base.WithOwner
{
	public File() { }

	public File(Guid createdBy) : base(createdBy) { }

	[MaxLength(200)]
	public string Name { get; set; }

	[MaxLength(100)]
	public string MimeType { get; set; }

	public long SizeInBytes { get; set; }
	public Folder Folder { get; set; }
	public Guid FolderId { get; set; }
	public bool IsEncrypted { get; set; }
	public bool IsBinned { get; set; }
	public virtual List<Permission> Permissions { get; set; }
}