v0.1.17 - 목표 패널 및 D-DAY 선택 추가

This commit is contained in:
2026-04-21 18:37:06 +09:00
parent 440f0f46a1
commit 4355185203
11 changed files with 429 additions and 21 deletions

View File

@@ -32,5 +32,18 @@ export function ensureDatabaseSchema() {
CREATE UNIQUE INDEX IF NOT EXISTS planner_entries_user_date_unique
ON planner_entries (user_id, entry_date);
CREATE TABLE IF NOT EXISTS goals (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id INTEGER NOT NULL,
title TEXT NOT NULL,
target_date TEXT NOT NULL,
status TEXT NOT NULL DEFAULT 'active',
color TEXT NOT NULL DEFAULT '#1c1917',
created_at INTEGER NOT NULL,
updated_at INTEGER NOT NULL,
completed_at INTEGER,
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
);
`)
}