CREATE TABLE `associationDirectoryReviews` (
  `id` int AUTO_INCREMENT NOT NULL,
  `sourceType` enum('portal_signup','helloasso') NOT NULL,
  `sourceLabel` varchar(255),
  `userId` int,
  `resolvedDirectoryEntryId` int,
  `proposedNomAssociation` varchar(255) NOT NULL,
  `proposedEmail` varchar(320),
  `proposedEmailNormalise` varchar(320),
  `proposedSiret` varchar(14),
  `proposedRna` varchar(10),
  `proposedVille` varchar(100),
  `matchStatus` varchar(40),
  `payload` text,
  `status` enum('pending','linked','created','ignored') NOT NULL DEFAULT 'pending',
  `resolutionNote` text,
  `createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  CONSTRAINT `associationDirectoryReviews_id` PRIMARY KEY(`id`)
);
