feat(F-048): completed feature

This commit is contained in:
chattie
2026-08-19 07:17:14 +02:00
parent 8ee1938af9
commit 835ab66eda
187 changed files with 12361 additions and 1065 deletions

View File

@@ -0,0 +1,26 @@
/**
* FIX-14: Backoffice user domain model.
* Backoffice users (admin/editor) are physically separated from storefront
* customers (identity_users) and authenticate through a separate mechanism.
*/
export type BackofficeRole = 'admin' | 'editor';
export interface BackofficeUser {
id: string;
email: string;
role: BackofficeRole;
mfaEnrolled: boolean;
createdAt: Date;
updatedAt: Date;
}
export interface BackofficeUserWithHash extends BackofficeUser {
passwordHash: string;
}
export interface NewBackofficeUser {
email: string;
passwordHash: string;
role?: BackofficeRole;
mfaEnrolled?: boolean;
}