GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — opencode/packages/opencode/src/control/control.sql.ts at dev · un33k/opencode Expand file tree/ Copy pathcontrol.sql.tsMore file actions 22 lines (21 loc) · 694 Bytes / Copy pathcontrol.sql.tsFile metadata and controls22 lines (21 loc) · 694 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 import { sqliteTable, text, integer, primaryKey, uniqueIndex } from "drizzle-orm/sqlite-core" import { eq } from "drizzle-orm" import { Timestamps } from "@/storage/schema.sql" export const ControlAccountTable = sqliteTable( "control_account", { email: text().notNull(), url: text().notNull(), access_token: text().notNull(), refresh_token: text().notNull(), token_expiry: integer(), active: integer({ mode: "boolean" }) .notNull() .$default(() => false), ...Timestamps, }, (table) => [ primaryKey({ columns: [table.email, table.url] }), // uniqueIndex("control_account_active_idx").on(table.email).where(eq(table.active, true)), ], ) |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |