CREATE TABLE `onboarding` (
	`id` int unsigned AUTO_INCREMENT NOT NULL,
	`type` enum('info','position','photo','installation') NOT NULL DEFAULT 'info',
	`titre` varchar(80) NOT NULL,
	`texte` varchar(220) NOT NULL,
	`image_id` char(36),
	`ordre` int unsigned NOT NULL DEFAULT 0,
	`actif` boolean NOT NULL DEFAULT true,
	`cree_le` datetime NOT NULL,
	`maj_le` datetime NOT NULL,
	CONSTRAINT `onboarding_id` PRIMARY KEY(`id`)
);
--> statement-breakpoint
ALTER TABLE `medias` MODIFY COLUMN `cible` enum('reponse','agent','general','signature_auditeur','signature_responsable','preuve_action','logo','onboarding') NOT NULL;--> statement-breakpoint
CREATE INDEX `ix_onboarding_ordre` ON `onboarding` (`actif`,`ordre`);