forked from equinor/flotilla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMissionDefinition.cs
35 lines (26 loc) · 884 Bytes
/
MissionDefinition.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
#pragma warning disable CS8618
namespace Api.Database.Models
{
public class MissionDefinition : SortableRecord
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public string Id { get; set; }
[Required]
public Source Source { get; set; }
[Required]
[MaxLength(200)]
public string Name { get; set; }
[Required]
public string InstallationCode { get; set; }
[MaxLength(1000)]
public string? Comment { get; set; }
[Column(TypeName = "bigint")]
public TimeSpan? InspectionFrequency { get; set; }
public virtual MissionRun? LastRun { get; set; }
public Area? Area { get; set; }
public bool IsDeprecated { get; set; }
}
}