feat(domain): entités métier Vehicle/Recording/LicensePlate/StoragePolicy + relations Event→Vehicle/Recording, Camera→StoragePolicy (Fixes #6)
This commit is contained in:
1 parent
33a08f5ea0
commit
29ff980db5
19 files changed
+3658
No files matched your search
@@ -60,6 +60,12 @@ public class AppDbContext : IdentityDbContext<AppUser, AppRole, Guid>, IApplicat
|
||||
// 2FA recovery codes (stored hashed)
|
||||
public DbSet<UserRecoveryCode> UserRecoveryCodes => Set<UserRecoveryCode>();
|
||||
|
||||
// Domain métier (spec 2.1)
|
||||
public DbSet<Vehicle> Vehicles => Set<Vehicle>();
|
||||
public DbSet<Recording> Recordings => Set<Recording>();
|
||||
public DbSet<LicensePlate> LicensePlates => Set<LicensePlate>();
|
||||
public DbSet<StoragePolicy> StoragePolicies => Set<StoragePolicy>();
|
||||
|
||||
public async Task SaveChangesWithRetryAsync(int maxRetries = 3, CancellationToken ct = default)
|
||||
{
|
||||
await DbContextExtensions.SaveChangesWithRetryAsync(this, maxRetries, ct).ConfigureAwait(false);
|
||||
|
||||
Reference in new issue
Block a user