GHHG10's picture
download
raw
562 Bytes
import { mysqlTable, varchar, uniqueIndex } from "drizzle-orm/mysql-core"
import { timestamps, ulid, utc, workspaceColumns } from "../drizzle/types"
import { workspaceIndexes } from "./workspace.sql"
export const KeyTable = mysqlTable(
"key",
{
...workspaceColumns,
...timestamps,
name: varchar("name", { length: 255 }).notNull(),
key: varchar("key", { length: 255 }).notNull(),
userID: ulid("user_id").notNull(),
timeUsed: utc("time_used"),
},
(table) => [...workspaceIndexes(table), uniqueIndex("global_key").on(table.key)],
)

Xet Storage Details

Size:
562 Bytes
·
Xet hash:
58c31e7c95e758f2c25ccb7591e51b44250337357cd0925c93bd421b49b8a306

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.