-- Content audit fields for Category (same pattern as Procedure / Article)
ALTER TABLE `Category` ADD COLUMN `createdById` VARCHAR(191) NULL,
    ADD COLUMN `updatedById` VARCHAR(191) NULL;

ALTER TABLE `Category` ADD CONSTRAINT `Category_createdById_fkey` FOREIGN KEY (`createdById`) REFERENCES `User`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;

ALTER TABLE `Category` ADD CONSTRAINT `Category_updatedById_fkey` FOREIGN KEY (`updatedById`) REFERENCES `User`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;

CREATE INDEX `Category_createdAt_idx` ON `Category`(`createdAt`);
CREATE INDEX `Category_updatedAt_idx` ON `Category`(`updatedAt`);
CREATE INDEX `Category_createdById_idx` ON `Category`(`createdById`);
CREATE INDEX `Category_updatedById_idx` ON `Category`(`updatedById`);
