mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 10:05:53 +02:00
basic invite user functional
This commit is contained in:
parent
a6bb8f5bb1
commit
a6baebb216
15 changed files with 684 additions and 137 deletions
|
@ -210,13 +210,13 @@ export const userInvites = sqliteTable("userInvites", {
|
|||
inviteId: text("inviteId").primaryKey(),
|
||||
orgId: text("orgId")
|
||||
.notNull()
|
||||
.references(() => orgs.orgId),
|
||||
.references(() => orgs.orgId, { onDelete: "cascade" }),
|
||||
email: text("email").notNull(),
|
||||
expiresAt: integer("expiresAt").notNull(),
|
||||
tokenHash: text("token").notNull(),
|
||||
roleId: integer("roleId")
|
||||
.notNull()
|
||||
.references(() => roles.roleId),
|
||||
.references(() => roles.roleId, { onDelete: "cascade" }),
|
||||
});
|
||||
|
||||
export type Org = InferSelectModel<typeof orgs>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue