mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-25 15:24:58 +00:00
Co-authored-by: Kit Langton <kit.langton@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
14 lines
431 B
TypeScript
14 lines
431 B
TypeScript
import { sqliteTable, text } from "drizzle-orm/sqlite-core"
|
|
import { SessionTable } from "../session/session.sql"
|
|
import { Timestamps } from "../storage/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,
|
|
})
|