feat(organization): allow setting a default role for new members

This commit is contained in:
Mauricio Siu
2026-08-11 02:21:33 -06:00
parent 1ccf15f331
commit aaf8d7e12f
10 changed files with 9241 additions and 9 deletions
+1
View File
@@ -66,6 +66,7 @@ export const organization = pgTable("organization", {
logo: text("logo"),
createdAt: timestamp("created_at").notNull(),
metadata: text("metadata"),
defaultRole: text("default_role"),
ownerId: text("owner_id")
.notNull()
.references(() => user.id, { onDelete: "cascade" }),