improve collaborative UX

This commit is contained in:
Vikhyath Mondreti
2026-02-12 15:18:54 -08:00
parent 508772cf58
commit aefa281677
35 changed files with 528 additions and 217 deletions

View File

@@ -6,6 +6,7 @@ CREATE TABLE "credential" (
"workspace_id" text NOT NULL,
"type" "credential_type" NOT NULL,
"display_name" text NOT NULL,
"description" text,
"provider_id" text,
"account_id" text,
"env_key" text,
@@ -57,6 +58,7 @@ CREATE TABLE IF NOT EXISTS "pending_credential_draft" (
"workspace_id" text NOT NULL,
"provider_id" text NOT NULL,
"display_name" text NOT NULL,
"description" text,
"expires_at" timestamp NOT NULL,
"created_at" timestamp DEFAULT now() NOT NULL
);

View File

@@ -2022,6 +2022,7 @@ export const credential = pgTable(
.references(() => workspace.id, { onDelete: 'cascade' }),
type: credentialTypeEnum('type').notNull(),
displayName: text('display_name').notNull(),
description: text('description'),
providerId: text('provider_id'),
accountId: text('account_id').references(() => account.id, { onDelete: 'cascade' }),
envKey: text('env_key'),
@@ -2107,6 +2108,7 @@ export const pendingCredentialDraft = pgTable(
.references(() => workspace.id, { onDelete: 'cascade' }),
providerId: text('provider_id').notNull(),
displayName: text('display_name').notNull(),
description: text('description'),
expiresAt: timestamp('expires_at').notNull(),
createdAt: timestamp('created_at').notNull().defaultNow(),
},