-- Create "profile_roles" table (profiles.role_id references this)
CREATE TABLE "public"."profile_roles" (
  "id" uuid NOT NULL DEFAULT gen_random_uuid(),
  "title" text NOT NULL,
  "status" text NOT NULL DEFAULT 'active',
  "created_at" timestamptz NOT NULL DEFAULT now(),
  "updated_at" timestamptz NOT NULL DEFAULT now(),
  "deleted_at" timestamptz NULL,
  PRIMARY KEY ("id")
);

CREATE INDEX "profile_roles_status_idx" ON "public"."profile_roles" ("status");
CREATE INDEX "profile_roles_deleted_at_idx" ON "public"."profile_roles" ("deleted_at");
