== DATABASE_TEST_URL= npx vitest run tests/integration/tenant-isolation.test.ts (база 778ba2d, до исправления) RUN v5.0.1 /workspace/krona-staff ❯ tests/integration/tenant-isolation.test.ts (1 test) 114ms ⎯⎯⎯⎯⎯⎯ Failed Suites 1 ⎯⎯⎯⎯⎯⎯⎯ FAIL tests/integration/tenant-isolation.test.ts > PostgreSQL tenant isolation error: permission denied for table staff_employees ❯ node_modules/pg/lib/client.js:694:17 ❯ tests/integration/tenant-isolation.test.ts:40:7 38| await client.query('DELETE FROM staff_outbox WHERE id = $1', [ev… 39| await client.query('DELETE FROM staff_professions WHERE id = $1'… 40| await client.query('DELETE FROM staff_employees WHERE id = $1', … | ^ 41| }); 42| await database.close(); ❯ Database.tenantTransaction src/infrastructure/database.ts:30:22 ❯ tests/integration/tenant-isolation.test.ts:31:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯ Test Files 1 failed (1) Tests 1 passed (1) Start at 14:20:47 Duration 265ms (tests 62%, transform 23%, import 14%, worker 1%) exit=1