chore : ajouter fichiers non versionnés (migrations SQL, 404, PROJET.md)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-15 09:18:34 +02:00
parent 16965ee8cb
commit 819d6d1b8f
12 changed files with 264 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
CREATE TABLE IF NOT EXISTS mail_queue (
id SERIAL PRIMARY KEY,
to_email TEXT NOT NULL,
subject TEXT NOT NULL,
body TEXT NOT NULL,
status TEXT NOT NULL DEFAULT 'pending',
attempts INTEGER NOT NULL DEFAULT 0,
available_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
locked_at TIMESTAMP WITH TIME ZONE,
last_error TEXT,
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()
);
CREATE INDEX IF NOT EXISTS idx_mail_queue_pending
ON mail_queue (available_at ASC, id ASC)
WHERE status = 'pending';