feat: set default notification channel

This commit is contained in:
charles-gauthereau
2026-03-25 22:19:41 +01:00
parent 61b1a2e724
commit a8e11ebef7
2 changed files with 46 additions and 7 deletions
+1
View File
@@ -26,6 +26,7 @@ export const setting = pgTable("settings", {
export const settingRelations = relations(setting, ({one, many}) => ({
storageChannel: one(storageChannel, {fields: [setting.defaultStorageChannelId], references: [storageChannel.id]}),
notificationChannel: one(notificationChannel, {fields: [setting.defaultNotificationChannelId], references: [notificationChannel.id]}),
}));