/**
 * @openapi
 * /api/timetables:
 *   get:
 *     tags: [Timetables]
 *     summary: List timetables (tenant-scoped)
 *     description: Requires READ_TIMETABLES.
 *     responses:
 *       200:
 *         description: List payload.
 *         content:
 *           application/json:
 *             schema: { $ref: '#/components/schemas/ListResponse' }
 *       401: { $ref: '#/components/responses/UnauthorizedError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 *   post:
 *     tags: [Timetables]
 *     summary: Create a timetables record
 *     description: Requires CREATE_TIMETABLES.
 *     responses:
 *       200: { description: Created. }
 *       400: { $ref: '#/components/responses/ValidationError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/timetables/count:
 *   get:
 *     tags: [Timetables]
 *     summary: Count timetables
 *     description: Requires READ_TIMETABLES.
 *     responses:
 *       200: { description: Count. }
 * /api/timetables/autocomplete:
 *   get:
 *     tags: [Timetables]
 *     summary: Autocomplete timetables
 *     description: Requires READ_TIMETABLES.
 *     responses:
 *       200: { description: Autocomplete results. }
 * /api/timetables/bulk-import:
 *   post:
 *     tags: [Timetables]
 *     summary: Bulk-import timetables from CSV
 *     description: Requires CREATE_TIMETABLES.
 *     responses:
 *       200: { description: Imported. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/timetables/deleteByIds:
 *   post:
 *     tags: [Timetables]
 *     summary: Delete multiple timetables records
 *     description: Requires DELETE_TIMETABLES.
 *     responses:
 *       200: { description: Deleted. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/timetables/{id}:
 *   get:
 *     tags: [Timetables]
 *     summary: Get a timetables record by id
 *     description: Requires READ_TIMETABLES.
 *     parameters:
 *       - in: path
 *         name: id
 *         required: true
 *         schema: { type: string, format: uuid }
 *     responses:
 *       200: { description: The record. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 *       404: { description: Not found. }
 *   put:
 *     tags: [Timetables]
 *     summary: Update a timetables record
 *     description: Requires UPDATE_TIMETABLES.
 *     parameters:
 *       - in: path
 *         name: id
 *         required: true
 *         schema: { type: string, format: uuid }
 *     responses:
 *       200: { description: Updated. }
 *       400: { $ref: '#/components/responses/ValidationError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 *   delete:
 *     tags: [Timetables]
 *     summary: Delete a timetables record
 *     description: Requires DELETE_TIMETABLES.
 *     parameters:
 *       - in: path
 *         name: id
 *         required: true
 *         schema: { type: string, format: uuid }
 *     responses:
 *       200: { description: Deleted. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 */
import controller from '@/api/controllers/timetables.controller';
import { createCrudRouter } from '@/api/http/crud-router';

export default createCrudRouter(controller, { permission: 'timetables' });
