wip: zen
This commit is contained in:
parent
1d621260ff
commit
b168bfe40d
9 changed files with 1233 additions and 0 deletions
14
packages/console/core/src/schema/provider.sql.ts
Normal file
14
packages/console/core/src/schema/provider.sql.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { mysqlTable, text, uniqueIndex, varchar } from "drizzle-orm/mysql-core"
|
||||
import { timestamps, workspaceColumns } from "../drizzle/types"
|
||||
import { workspaceIndexes } from "./workspace.sql"
|
||||
|
||||
export const ProviderTable = mysqlTable(
|
||||
"provider",
|
||||
{
|
||||
...workspaceColumns,
|
||||
...timestamps,
|
||||
provider: varchar("provider", { length: 64 }).notNull(),
|
||||
credentials: text("credentials").notNull(),
|
||||
},
|
||||
(table) => [...workspaceIndexes(table), uniqueIndex("workspace_provider").on(table.workspaceID, table.provider)],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue