Skip to content

Commit

Permalink
Add default value for allergies column in User table
Browse files Browse the repository at this point in the history
  • Loading branch information
kcoderhtml committed Apr 29, 2024
1 parent 5b041a0 commit 3ae2e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 3ae2e32

Please sign in to comment.