-- ADR-0023 rejected the legacy `PlatformRoleAssignment` / `PlatformRole`{ADMIN,TEACHER}
-- model: the platform administration control plane is a separate identity/session/
-- audit surface, intentionally not built
-- in alpha (ADR-0025, `hub/deploy/README.md`). The legacy table has no runtime
-- reader — no guard, route, or service queries it for an authorization decision —
-- and ADR-0023 requires it to be migrated/replaced before the platform panel ships.
-- Drop the table, the `User.platformRoles` relation, and the enum.

-- DropForeignKey
ALTER TABLE "PlatformRoleAssignment" DROP CONSTRAINT "PlatformRoleAssignment_userId_fkey";

-- DropIndex
DROP INDEX IF EXISTS "PlatformRoleAssignment_userId_revokedAt_idx";
DROP INDEX IF EXISTS "PlatformRoleAssignment_role_revokedAt_idx";

-- DropTable
DROP TABLE IF EXISTS "PlatformRoleAssignment";

-- DropEnum
DROP TYPE IF EXISTS "PlatformRole";
