Skip to content

Commit

Permalink
Change plant and installation to required
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Aug 24, 2023
1 parent a87981a commit 5a704b7
Show file tree
Hide file tree
Showing 6 changed files with 1,246 additions and 10 deletions.
4 changes: 2 additions & 2 deletions backend/api/Database/Models/Area.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public class Area

public virtual Deck? Deck { get; set; }

public virtual Plant? Plant { get; set; }
public virtual Plant Plant { get; set; }

public virtual Installation? Installation { get; set; }
public virtual Installation Installation { get; set; }

[Required]
[MaxLength(200)]
Expand Down
4 changes: 2 additions & 2 deletions backend/api/Database/Models/Deck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public class Deck
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public string Id { get; set; }

public virtual Plant? Plant { get; set; }
public virtual Plant Plant { get; set; }

public virtual Installation? Installation { get; set; }
public virtual Installation Installation { get; set; }

[Required]
[MaxLength(200)]
Expand Down
2 changes: 1 addition & 1 deletion backend/api/Database/Models/Plant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class Plant
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public string Id { get; set; }

public virtual Installation? Installation { get; set; }
public virtual Installation Installation { get; set; }

[Required]
[MaxLength(10)]
Expand Down
Loading

0 comments on commit 5a704b7

Please sign in to comment.