This commit is contained in:
Dax Raad
2025-09-02 23:56:10 -04:00
parent 1c31c2dd97
commit 8d368fdfd2
11 changed files with 621 additions and 25 deletions

View File

@@ -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"),