15 lines
499 B
SQL
15 lines
499 B
SQL
CREATE TABLE `ideas` (
|
|
`id` int AUTO_INCREMENT NOT NULL,
|
|
`userId` int NOT NULL,
|
|
`userName` varchar(255) NOT NULL,
|
|
`titre` varchar(512) NOT NULL,
|
|
`message` text NOT NULL,
|
|
`statut` enum('ouvert','en_cours','resolu','ferme') NOT NULL DEFAULT 'ouvert',
|
|
`reponseAdmin` text,
|
|
`reponduPar` varchar(255),
|
|
`reponduAt` timestamp,
|
|
`createdAt` timestamp NOT NULL DEFAULT (now()),
|
|
`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
|
|
CONSTRAINT `ideas_id` PRIMARY KEY(`id`)
|
|
);
|