···8899### Backend - `src-tauri/src/drafts.rs` + `src-tauri/src/commands/drafts.rs`
10101111-- [ ] SQLite migration: `drafts` table (`id TEXT PRIMARY KEY, account_did TEXT NOT NULL, text TEXT NOT NULL, reply_parent_uri TEXT, reply_parent_cid TEXT, reply_root_uri TEXT, reply_root_cid TEXT, quote_uri TEXT, quote_cid TEXT, title TEXT, created_at TEXT NOT NULL, updated_at TEXT NOT NULL`)
1212-- [ ] `Draft` and `DraftInput` structs mirroring the schema
1313-- [ ] `list_drafts(account_did: String)` — return all drafts for the account, ordered by `updated_at` desc
1414-- [ ] `get_draft(id: String)` — single draft by ID
1515-- [ ] `save_draft(input: DraftInput)` — upsert: if `id` is present and exists, update; otherwise insert with new UUID
1616-- [ ] `delete_draft(id: String)` — hard delete
1717-- [ ] `submit_draft(id: String)` — load draft, call `create_post`, delete draft on success, return `CreateRecordResult`
1111+- [x] SQLite migration: `drafts` table (`id TEXT PRIMARY KEY, account_did TEXT NOT NULL, text TEXT NOT NULL, reply_parent_uri TEXT, reply_parent_cid TEXT, reply_root_uri TEXT, reply_root_cid TEXT, quote_uri TEXT, quote_cid TEXT, title TEXT, created_at TEXT NOT NULL, updated_at TEXT NOT NULL`)
1212+- [x] `Draft` and `DraftInput` structs mirroring the schema
1313+- [x] `list_drafts(account_did: String)` — return all drafts for the account, ordered by `updated_at` desc
1414+- [x] `get_draft(id: String)` — single draft by ID
1515+- [x] `save_draft(input: DraftInput)` — upsert: if `id` is present and exists, update; otherwise insert with new UUID
1616+- [x] `delete_draft(id: String)` — hard delete
1717+- [x] `submit_draft(id: String)` — load draft, call `create_post`, delete draft on success, return `CreateRecordResult`
18181919### Frontend - Drafts List Panel
2020
···11+CREATE TABLE drafts (
22+ id TEXT PRIMARY KEY,
33+ account_did TEXT NOT NULL,
44+ text TEXT NOT NULL,
55+ reply_parent_uri TEXT,
66+ reply_parent_cid TEXT,
77+ reply_root_uri TEXT,
88+ reply_root_cid TEXT,
99+ quote_uri TEXT,
1010+ quote_cid TEXT,
1111+ title TEXT,
1212+ created_at TEXT NOT NULL,
1313+ updated_at TEXT NOT NULL
1414+);
1515+1616+CREATE INDEX idx_drafts_account_updated ON drafts (account_did, updated_at DESC);