fix: migration for user metadata

This commit is contained in:
Harshith Mullapudi 2025-09-09 08:58:58 +05:30
parent db7608d735
commit 6ddcab873a
3 changed files with 28 additions and 0 deletions

View File

@ -210,6 +210,18 @@ model InvitationCode {
createdAt DateTime @default(now()) createdAt DateTime @default(now())
} }
model MCPSession {
id String @id @default(cuid())
source String
integrations String[]
workspace Workspace? @relation(references: [id], fields: [workspaceId])
workspaceId String?
createdAt DateTime @default(now())
deleted DateTime?
}
model OAuthAuthorizationCode { model OAuthAuthorizationCode {
id String @id @default(cuid()) id String @id @default(cuid())
@ -628,6 +640,7 @@ model Workspace {
OAuthRefreshToken OAuthRefreshToken[] OAuthRefreshToken OAuthRefreshToken[]
RecallLog RecallLog[] RecallLog RecallLog[]
Space Space[] Space Space[]
MCPSession MCPSession[]
} }
enum AuthenticationMethod { enum AuthenticationMethod {

View File

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "User" ADD COLUMN "metadata" JSONB NOT NULL DEFAULT '{}';

View File

@ -210,6 +210,18 @@ model InvitationCode {
createdAt DateTime @default(now()) createdAt DateTime @default(now())
} }
model MCPSession {
id String @id @default(cuid())
source String
integrations String[]
workspace Workspace? @relation(references: [id], fields: [workspaceId])
workspaceId String?
createdAt DateTime @default(now())
deleted DateTime?
}
model OAuthAuthorizationCode { model OAuthAuthorizationCode {
id String @id @default(cuid()) id String @id @default(cuid())
@ -628,6 +640,7 @@ model Workspace {
OAuthRefreshToken OAuthRefreshToken[] OAuthRefreshToken OAuthRefreshToken[]
RecallLog RecallLog[] RecallLog RecallLog[]
Space Space[] Space Space[]
MCPSession MCPSession[]
} }
enum AuthenticationMethod { enum AuthenticationMethod {