feat(F-048): completed feature
This commit is contained in:
26
project/src/modules/backoffice/domain/backoffice-user.ts
Normal file
26
project/src/modules/backoffice/domain/backoffice-user.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user