Files
veille-reglementaire/drizzle/0008_worried_molten_man.sql

11 lines
402 B
SQL

CREATE TABLE `article_reads` (
`id` int AUTO_INCREMENT NOT NULL,
`userId` int NOT NULL,
`articleType` enum('veille','aap') NOT NULL,
`articleId` int NOT NULL,
`readAt` timestamp NOT NULL DEFAULT (now()),
CONSTRAINT `article_reads_id` PRIMARY KEY(`id`)
);
--> statement-breakpoint
ALTER TABLE `aap_items` ADD `iaResume` text;--> statement-breakpoint
ALTER TABLE `veille_items` ADD `iaResume` text;