Implement complete Organizations feature with RBAC

- Add owner/admin/member roles with proper permissions
- Implement invite links and join requests system
- Add organization settings dialog with member management
- Create database migrations for invitations and invite links
- Update backend API with org management endpoints
- Fix compilation errors and audit logging
- Update frontend models and API integration
This commit is contained in:
Leon Bösche
2026-01-23 23:21:23 +01:00
parent a03b0dfe33
commit 20bc0ac757
15 changed files with 1461 additions and 42 deletions

View File

@@ -31,20 +31,28 @@ run_migration() {
}
# Run migrations in order
echo "Step 1/4: Initial schema..."
echo "Step 1/6: Initial schema..."
run_migration "$SCRIPT_DIR/0001_initial.sql"
echo
echo "Step 2/4: Passkeys and authentication..."
echo "Step 2/6: Passkeys and authentication..."
run_migration "$SCRIPT_DIR/0002_passkeys.sql"
echo
echo "Step 3/4: Files and storage..."
echo "Step 3/6: Files and storage..."
run_migration "$SCRIPT_DIR/0003_files.sql"
echo
echo "Step 4/4: Organization ownership and slug scope..."
echo "Step 4/6: Organization ownership and slug scope..."
run_migration "$SCRIPT_DIR/0004_org_owner_slug.sql"
echo
echo "Step 5/6: Organization invitations and join requests..."
run_migration "$SCRIPT_DIR/0005_org_invitations.sql"
echo
echo "Step 6/6: Organization invite links..."
run_migration "$SCRIPT_DIR/0006_org_invite_link.sql"
echo
echo "=== All migrations completed successfully! ==="