mirror of https://github.com/buster-so/buster.git
added slack tracking on chats
This commit is contained in:
parent
0a665da961
commit
0d217714cc
|
@ -0,0 +1,4 @@
|
||||||
|
CREATE TYPE "public"."slack_chat_authorization_enum" AS ENUM('unauthorized', 'authorized', 'auto_added');--> statement-breakpoint
|
||||||
|
ALTER TABLE "chats" ADD COLUMN "slack_chat_authorization" "slack_chat_authorization_enum";--> statement-breakpoint
|
||||||
|
ALTER TABLE "chats" ADD COLUMN "slack_thread_ts" text;--> statement-breakpoint
|
||||||
|
ALTER TABLE "chats" ADD COLUMN "slack_channel_id" text;
|
File diff suppressed because it is too large
Load Diff
|
@ -554,6 +554,13 @@
|
||||||
"when": 1752184722835,
|
"when": 1752184722835,
|
||||||
"tag": "0078_adorable_layla_miller",
|
"tag": "0078_adorable_layla_miller",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 79,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1752686086591,
|
||||||
|
"tag": "0079_sloppy_red_skull",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -91,6 +91,12 @@ export const slackIntegrationStatusEnum = pgEnum('slack_integration_status_enum'
|
||||||
'revoked',
|
'revoked',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
export const slackChatAuthorizationEnum = pgEnum('slack_chat_authorization_enum', [
|
||||||
|
'unauthorized',
|
||||||
|
'authorized',
|
||||||
|
'auto_added',
|
||||||
|
]);
|
||||||
|
|
||||||
export const apiKeys = pgTable(
|
export const apiKeys = pgTable(
|
||||||
'api_keys',
|
'api_keys',
|
||||||
{
|
{
|
||||||
|
@ -963,6 +969,9 @@ export const chats = pgTable(
|
||||||
mostRecentFileId: uuid('most_recent_file_id'),
|
mostRecentFileId: uuid('most_recent_file_id'),
|
||||||
mostRecentFileType: varchar('most_recent_file_type', { length: 255 }),
|
mostRecentFileType: varchar('most_recent_file_type', { length: 255 }),
|
||||||
mostRecentVersionNumber: integer('most_recent_version_number'),
|
mostRecentVersionNumber: integer('most_recent_version_number'),
|
||||||
|
slackChatAuthorization: slackChatAuthorizationEnum('slack_chat_authorization'),
|
||||||
|
slackThreadTs: text('slack_thread_ts'),
|
||||||
|
slackChannelId: text('slack_channel_id'),
|
||||||
},
|
},
|
||||||
(table) => [
|
(table) => [
|
||||||
index('chats_created_at_idx').using(
|
index('chats_created_at_idx').using(
|
||||||
|
|
Loading…
Reference in New Issue