Merge pull request #167 from R0m1k3/antigravity

feat: Add recurring tasks management (frontend, backend, automation)
This commit is contained in:
LogiFlow authored and GitHub committed 2026-01-06 21:14:48 +01:00
commit 3f297f453a
822 files changed
+133208 -787

No files matched your search

+20
View File
@@ -171,6 +171,24 @@ async function initDatabase() {
)
`);
// Table recurring_todos (tâches récurrentes)
await client.query(`
CREATE TABLE IF NOT EXISTS recurring_todos (
id SERIAL PRIMARY KEY,
user_id INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE,
text TEXT NOT NULL,
recurrence_type VARCHAR(20) NOT NULL,
recurrence_interval INTEGER DEFAULT 1,
day_of_week INTEGER,
day_of_month INTEGER,
priority BOOLEAN DEFAULT FALSE,
next_occurrence DATE NOT NULL,
last_generated DATE,
enabled BOOLEAN DEFAULT TRUE,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)
`);
// Table note_images
await client.query(`
CREATE TABLE IF NOT EXISTS note_images (
@@ -302,6 +320,8 @@ async function initDatabase() {
await client.query('CREATE INDEX IF NOT EXISTS idx_rss_articles_date ON rss_articles(pub_date DESC)');
await client.query('CREATE INDEX IF NOT EXISTS idx_calendar_events_user ON calendar_events(user_id)');
await client.query('CREATE INDEX IF NOT EXISTS idx_calendar_events_start ON calendar_events(start_time)');
await client.query('CREATE INDEX IF NOT EXISTS idx_recurring_todos_user ON recurring_todos(user_id)');
await client.query('CREATE INDEX IF NOT EXISTS idx_recurring_todos_next ON recurring_todos(next_occurrence)');
logger.info('✓ Tables PostgreSQL créées avec succès');