forked from equinor/flotilla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAssetDeck.cs
45 lines (36 loc) · 1008 Bytes
/
AssetDeck.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
36
37
38
39
40
41
42
43
44
45
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
#pragma warning disable CS8618
namespace Api.Database.Models
{
public class AssetDeck
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public string Id { get; set; }
[Required]
[MaxLength(200)]
public string AssetCode { get; set; }
[Required]
[MaxLength(200)]
public string DeckName { get; set; }
[Required]
public Pose DefaultLocalizationPose { get; set; }
public IList<SafePosition> SafePositions { get; set; }
}
public class SafePosition
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public string Id { get; set; }
public Pose Pose { get; set; }
public SafePosition()
{
Pose = new Pose();
}
public SafePosition(Pose pose)
{
Pose = pose;
}
}
}