mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-25 21:48:28 +00:00
fix: migration for user metadata
This commit is contained in:
parent
db7608d735
commit
6ddcab873a
@ -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 {
|
||||||
|
|||||||
@ -0,0 +1,2 @@
|
|||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "User" ADD COLUMN "metadata" JSONB NOT NULL DEFAULT '{}';
|
||||||
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user