Download packages/console/core/src/schema/provider.sql.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 531 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/console/core/src/schema/provider.sql.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/console/core/src/schema/provider.sql.ts
-
curl -L -o provider.sql.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/console/core/src/schema/provider.sql.ts
531 Bytes
| 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)], | |
| ) | |