Skip to content

Commit

Permalink
Add LocationId to Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
GregFinzer committed Nov 8, 2024
1 parent a946008 commit ebdbbc7
Show file tree
Hide file tree
Showing 5 changed files with 1,421 additions and 0 deletions.
5 changes: 5 additions & 0 deletions BedBrigade.Common/Models/Configuration.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using BedBrigade.Common.Constants;
using BedBrigade.Common.Enums;
using BedBrigade.Common.Logic;

Expand All @@ -12,6 +14,9 @@ public class Configuration : BaseEntity

[MaxLength(255), Required] public String? ConfigurationValue { get; set; } = string.Empty;

[Required, DefaultValue(1)]
public int LocationId { get; set; } = Defaults.NationalLocationId;

/// <summary>
/// Defines the section that configuration value belongs to. Defaulted to overall system.
/// The enum is defined in BedBrigade.Common
Expand Down
Loading

0 comments on commit ebdbbc7

Please sign in to comment.