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

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

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

CREATE INDEX `Article_createdAt_idx` ON `Article`(`createdAt`);
CREATE INDEX `Article_updatedAt_idx` ON `Article`(`updatedAt`);
CREATE INDEX `Article_createdById_idx` ON `Article`(`createdById`);
CREATE INDEX `Article_updatedById_idx` ON `Article`(`updatedById`);
