From 3ae2e322e61fbddf7987dee6fe9843c0d92df228 Mon Sep 17 00:00:00 2001 From: Kieran Klukas <92754843+kcoderhtml@users.noreply.github.com> Date: Mon, 29 Apr 2024 15:45:14 -0400 Subject: [PATCH] Add default value for allergies column in User table --- db/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/config.ts b/db/config.ts index 6afc52a..01cfc63 100644 --- a/db/config.ts +++ b/db/config.ts @@ -20,7 +20,7 @@ const User = defineTable({ email: column.text(), image: column.text(), role: column.text(), - allergies: column.text({ optional: true }), + allergies: column.text({ optional: true, default: "please fill out" }), }, indexes: { userIdx: { on: ["userId"], unique: true },