Add public characters and visibility flag

This commit is contained in:
Clément Pons
2025-04-29 17:48:49 +02:00
parent 1ee895ab42
commit 871861e66e
15 changed files with 623 additions and 60 deletions

View File

@@ -59,6 +59,7 @@ export const characterTable = sqliteTable("character", {
owner: int().notNull().references(() => usersTable.id, { onDelete: 'cascade', onUpdate: 'cascade' }),
progress: text({ mode: 'json' }).notNull(),
values: text({ mode: 'json' }).notNull().default({}),
visibility: text({ enum: ['private', 'public'] }).notNull().default('private'),
thumbnail: blob(),
})