mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-12 14:21:33 +00:00
wip: zen
This commit is contained in:
parent
1c31c2dd97
commit
8d368fdfd2
11 changed files with 621 additions and 25 deletions
|
|
@ -1,13 +1,14 @@
|
|||
import { text, mysqlTable, varchar, uniqueIndex } from "drizzle-orm/mysql-core"
|
||||
import { mysqlTable, varchar, uniqueIndex, json } from "drizzle-orm/mysql-core"
|
||||
import { timestamps, utc, workspaceColumns } from "../drizzle/types"
|
||||
import { workspaceIndexes } from "./workspace.sql"
|
||||
import { Actor } from "../actor"
|
||||
|
||||
export const KeyTable = mysqlTable(
|
||||
"key",
|
||||
{
|
||||
...workspaceColumns,
|
||||
...timestamps,
|
||||
userID: text("user_id").notNull(),
|
||||
actor: json("actor").$type<Actor.Info>(),
|
||||
name: varchar("name", { length: 255 }).notNull(),
|
||||
key: varchar("key", { length: 255 }).notNull(),
|
||||
timeUsed: utc("time_used"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue