Implemented the database, authentication, access rules, and seed data

This commit is contained in:
Oleksandr Prokhorenko
2026-09-24 19:08:55 +03:00
parent 3aa47d825f
commit 5de240fda3
27 changed files with 3793 additions and 277 deletions
+1 -3
View File
@@ -14,8 +14,6 @@ test('every role receives its exact merchant scope', () => {
assert.deepEqual(merchantScope({ role: 'ACCOUNT_MANAGER', id: 'manager-1' }), {
ownerId: 'manager-1',
});
assert.deepEqual(merchantScope({ role: 'COMPLIANCE_OFFICER' }), {
status: { in: ['KYB', 'COMPLIANCE_REVIEW'] },
});
assert.deepEqual(merchantScope({ role: 'COMPLIANCE_OFFICER' }), {});
assert.deepEqual(merchantScope({ role: 'unexpected' }), { id: '__no_access__' });
});