feat: add listed field to note for public listing visibility

Notes with listed=false are filtered out from all GET /notes queries.
The field defaults to true so existing and new notes without it remain visible.
Migration handles existing databases with ALTER TABLE ADD COLUMN.
This commit is contained in:
Julien Calixte
2026-02-25 23:03:00 +01:00
parent 62f981dd93
commit f39f62f1c7
4 changed files with 24 additions and 7 deletions

View File

@@ -4,4 +4,5 @@ export type Note = {
title: string;
publishedAt: string;
createdAt: string;
listed?: boolean;
};