feat: add invitation link limits
This commit is contained in:
3
drizzle/0006_petite_night_nurse.sql
Normal file
3
drizzle/0006_petite_night_nurse.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE "organization_invitations" ADD COLUMN "max_uses" integer DEFAULT 1 NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "organization_invitations" ADD COLUMN "used_count" integer DEFAULT 0 NOT NULL;--> statement-breakpoint
|
||||
UPDATE "organization_invitations" SET "used_count" = "max_uses" WHERE "status" <> 'active';
|
||||
4510
drizzle/meta/0006_snapshot.json
Normal file
4510
drizzle/meta/0006_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -43,6 +43,13 @@
|
||||
"when": 1783071837853,
|
||||
"tag": "0005_quiet_sandman",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 6,
|
||||
"version": "7",
|
||||
"when": 1783077936270,
|
||||
"tag": "0006_petite_night_nurse",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user