feat(database): add created_at column to invitation table and update schema

- Introduced a new column "created_at" with a default timestamp to the "invitation" table.
- Updated the account schema to reflect this change, ensuring consistency across the database structure.
- Added corresponding metadata in the snapshot and journal files for versioning.
This commit is contained in:
Mauricio Siu
2026-02-06 23:48:21 -06:00
parent f4ad3dae35
commit dde00fc380
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 }) => ({