Skip to content

Commit 71c941d

Browse files
authored
Merge pull request #19 from cnbrown04/role-creation
fix(sign-up): default user roleid value?
2 parents 3c19732 + 518bda5 commit 71c941d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/abac/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ const abac = (db: Kysely<Database>, debugLogs: boolean) => {
124124
roleId: {
125125
type: "string",
126126
references: { model: "role", field: "id" },
127+
defaultValue: `"USER"`,
127128
},
128129
},
129130
},

0 commit comments

Comments
 (0)