mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
feat: set default notification channel
This commit is contained in:
@@ -4,6 +4,7 @@ import {z} from "zod";
|
||||
import {timestamps} from "@/db/schema/00_common";
|
||||
import {storageChannel} from "@/db/schema/12_storage-channel";
|
||||
import {relations} from "drizzle-orm";
|
||||
import {notificationChannel} from "@/db/schema/09_notification-channel";
|
||||
|
||||
|
||||
export const setting = pgTable("settings", {
|
||||
@@ -15,6 +16,8 @@ export const setting = pgTable("settings", {
|
||||
smtpPort: varchar("smtp_port", {length: 255}),
|
||||
smtpUser: varchar("smtp_user", {length: 255}),
|
||||
smtpSecure: boolean("smtp_secure"),
|
||||
defaultNotificationChannelId: uuid('default_notification_channel_id')
|
||||
.references(() => notificationChannel.id, {onDelete: "set null"}),
|
||||
defaultStorageChannelId: uuid('default_storage_channel_id')
|
||||
.references(() => storageChannel.id, {onDelete: "set null"}),
|
||||
encryption: boolean("encryption").default(false),
|
||||
|
||||
Reference in New Issue
Block a user