Merge pull request #3617 from Dokploy/fix/add-missing-field-created-invitation-table

feat(database): add created_at column to invitation table and update …
This commit is contained in:
Mauricio Siu
2026-02-06 23:48:41 -06:00
committed by GitHub
4 changed files with 7245 additions and 0 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE "invitation" ADD COLUMN "created_at" timestamp DEFAULT now() NOT NULL;

File diff suppressed because it is too large Load Diff

View File

@@ -974,6 +974,13 @@
"when": 1770324882572,
"tag": "0138_pretty_ironclad",
"breakpoints": true
},
{
"idx": 139,
"version": "7",
"when": 1770442690721,
"tag": "0139_brave_bloodstorm",
"breakpoints": true
}
]
}

View File

@@ -155,6 +155,7 @@ export const invitation = pgTable("invitation", {
.notNull()
.references(() => user.id, { onDelete: "cascade" }),
teamId: text("team_id"),
createdAt: timestamp("created_at").defaultNow().notNull(),
});
export const invitationRelations = relations(invitation, ({ one }) => ({