portail-associations/drizzle/0033_association_directory_update_proposals.sql

14 lines
600 B
SQL

CREATE TABLE `associationDirectoryUpdateProposals` (
`id` int AUTO_INCREMENT NOT NULL,
`directoryEntryId` int NOT NULL,
`sourceType` enum('official_registry','helloasso') NOT NULL,
`sourceLabel` varchar(255),
`summary` varchar(255),
`payload` text NOT NULL,
`status` enum('pending','applied','dismissed') NOT NULL DEFAULT 'pending',
`appliedAt` timestamp NULL,
`dismissedAt` timestamp NULL,
`createdAt` timestamp NOT NULL DEFAULT (now()),
`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
CONSTRAINT `associationDirectoryUpdateProposals_id` PRIMARY KEY(`id`)
);