Initial commit, project structure and domain models
This commit is contained in:
0
src/api/MicCheck.Api/Identities/.gitkeep
Normal file
0
src/api/MicCheck.Api/Identities/.gitkeep
Normal file
13
src/api/MicCheck.Api/Identities/Identity.cs
Normal file
13
src/api/MicCheck.Api/Identities/Identity.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using MicCheck.Api.Features;
|
||||
|
||||
namespace MicCheck.Api.Identities;
|
||||
|
||||
public class Identity
|
||||
{
|
||||
public int Id { get; init; }
|
||||
public required string Identifier { get; set; }
|
||||
public int EnvironmentId { get; init; }
|
||||
public DateTimeOffset CreatedAt { get; init; }
|
||||
public ICollection<IdentityTrait> Traits { get; init; } = [];
|
||||
public ICollection<FeatureState> FeatureStateOverrides { get; init; } = [];
|
||||
}
|
||||
12
src/api/MicCheck.Api/Identities/IdentityTrait.cs
Normal file
12
src/api/MicCheck.Api/Identities/IdentityTrait.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace MicCheck.Api.Identities;
|
||||
|
||||
public class IdentityTrait
|
||||
{
|
||||
public int Id { get; init; }
|
||||
public int IdentityId { get; init; }
|
||||
public required string Key { get; set; }
|
||||
public required string Value { get; set; }
|
||||
public TraitValueType ValueType { get; set; }
|
||||
}
|
||||
|
||||
public enum TraitValueType { String, Integer, Float, Boolean }
|
||||
Reference in New Issue
Block a user