feat: limit Discord sharing and support community allowlists

This commit is contained in:
syntaxbullet
2026-09-04 18:25:09 +02:00
parent d624ee6c3c
commit 32002151e0
9 changed files with 892 additions and 7 deletions

View File

@@ -60,3 +60,9 @@ export const combinedCharts = sqliteTable('combined_charts', {
habitIds: text('habit_ids', { mode: 'json' }).$type<string[]>().notNull(), settings: text('settings', { mode: 'json' }).$type<import('../habits/contracts').CalendarSettings>().notNull(),
createdAt: integer('created_at').notNull(), updatedAt: integer('updated_at').notNull(),
}, t => [index('combined_charts_user_idx').on(t.userId)]);
export const sharingLimits = sqliteTable('sharing_limits', {
key: text('key').primaryKey(),
startedAt: integer('started_at').notNull(),
count: integer('count').notNull(),
});