diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-25 23:02:35 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-25 23:02:35 +0900 |
| commit | 38b8fc0e9927c4146b4c8b309b2bcc644abd63d0 (patch) | |
| tree | f76ba23251645e552fccd201362064b06de50bdd /src/server/db/schema.ts | |
| parent | 7a77e72bb49ed3990a0c4581292a37a8a4f35231 (diff) | |
| download | kioku-38b8fc0e9927c4146b4c8b309b2bcc644abd63d0.tar.gz kioku-38b8fc0e9927c4146b4c8b309b2bcc644abd63d0.tar.zst kioku-38b8fc0e9927c4146b4c8b309b2bcc644abd63d0.zip | |
Allow each deck to specify a default note type that is auto-selected
when creating new notes. Includes DB schema migration, server API
updates, sync layer support, and UI for editing the default in the
deck settings modal.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/server/db/schema.ts')
| -rw-r--r-- | src/server/db/schema.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/db/schema.ts b/src/server/db/schema.ts index 55be210..24c4a78 100644 --- a/src/server/db/schema.ts +++ b/src/server/db/schema.ts @@ -101,6 +101,9 @@ export const decks = pgTable("decks", { .references(() => users.id), name: varchar("name", { length: 255 }).notNull(), description: text("description"), + defaultNoteTypeId: uuid("default_note_type_id").references( + () => noteTypes.id, + ), createdAt: timestamp("created_at", { withTimezone: true }) .notNull() .defaultNow(), |
