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

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

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

CREATE INDEX `Doctor_createdAt_idx` ON `Doctor`(`createdAt`);
CREATE INDEX `Doctor_updatedAt_idx` ON `Doctor`(`updatedAt`);
CREATE INDEX `Doctor_createdById_idx` ON `Doctor`(`createdById`);
CREATE INDEX `Doctor_updatedById_idx` ON `Doctor`(`updatedById`);
