import express from "express";
import { mountCrudTables } from "./crudRouter.js";

const router = express.Router();

/** User/org admin — admin JWT only (same rules as ORAC `/api/orac`). */
mountCrudTables(router, [
  ["country", ["country_id"]],
  ["roles", ["role_id"]],
  ["user_role", ["user_role_id"]],
  ["account_status", ["status_id"]],
  ["users", ["user_id"]],
  ["users_logs", ["log_id"]],
]);

export default router;
