Download packages/core/src/credential/sql.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 548 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/credential/sql.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/core/src/credential/sql.ts
-
curl -L -o sql.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/credential/sql.ts
548 Bytes
| import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core" | |
| import { Timestamps } from "../database/schema.sql" | |
| import type { Credential } from "../credential" | |
| export const CredentialTable = sqliteTable("credential", { | |
| id: text().$type<Credential.ID>().primaryKey(), | |
| integration_id: text().$type<Credential.Info["integrationID"]>(), | |
| label: text().notNull(), | |
| value: text({ mode: "json" }).$type<Credential.Value>().notNull(), | |
| connector_id: text(), | |
| method_id: text(), | |
| active: integer({ mode: "boolean" }), | |
| ...Timestamps, | |
| }) | |