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
+3
View File
@@ -14,6 +14,9 @@ function run(command, args) {
if (result.error) throw result.error;
if (result.status !== 0) process.exit(result.status ?? 1);
}
// Workflow tests write fixtures. Recreate only the disposable test service; never touch db.
run('docker', ['compose', '--profile', 'test', 'stop', 'db-test']);
run('docker', ['compose', '--profile', 'test', 'rm', '-f', 'db-test']);
run('docker', ['compose', '--profile', 'test', 'up', '-d', '--wait', 'db-test']);
run('pnpm', ['exec', 'turbo', 'run', 'build']);
run('pnpm', ['--filter', '@merchantflow/database', 'migrate']);