Module exposing: appMeta, appSettings, workspaces, nodes, spaces, spaceNodes, nodeScrollback, terminalRecoveryRecords
// Source: https://github.com/DeadWaveWave/opencove | License: MIT | Copyright 2026 DeadWaveWave
// Provided via justclaw.it.com; keep this notice with the code.
import {
integer,
real,
sqliteTable,
text,
primaryKey,
index,
uniqueIndex,
} from 'drizzle-orm/sqlite-core'
export type DbAppMetaKey =
| 'format_version'
| 'active_workspace_id'
| 'app_state_revision'
| 'canvas_collapse_state'
export const appMeta = sqliteTable('app_meta', {
key: text('key').$type<DbAppMetaKey>().primaryKey(),
value: text('value').notNull(),
})
export const appSettings = sqliteTable('app_settings', {
id: integer('id').primaryKey(),
value: text('value').notNull(),
})
export const workspaces = sqliteTable('workspaces', {
id: text('id').primaryKey(),
name: text('name').notNull(),
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key