Download packages/core/src/share/sql.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 424 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/share/sql.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/core/src/share/sql.ts
-
curl -L -o sql.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/share/sql.ts
424 Bytes
| import { sqliteTable, text } from "drizzle-orm/sqlite-core" | |
| import { SessionTable } from "../session/sql" | |
| import { Timestamps } from "../database/schema.sql" | |
| export const SessionShareTable = sqliteTable("session_share", { | |
| session_id: text() | |
| .primaryKey() | |
| .references(() => SessionTable.id, { onDelete: "cascade" }), | |
| id: text().notNull(), | |
| secret: text().notNull(), | |
| url: text().notNull(), | |
| ...Timestamps, | |
| }) | |