mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-13 16:05:09 -05:00
improve collaborative UX
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
@@ -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(),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user