GHHG10's picture
download
raw
644 Bytes
import { sqliteTable, text, integer } from "drizzle-orm/sqlite-core"
import { ProjectTable } from "../project/sql"
import { ProjectV2 } from "../project"
import { WorkspaceV2 } from "../workspace"
export const WorkspaceTable = sqliteTable("workspace", {
id: text().$type<WorkspaceV2.ID>().primaryKey(),
type: text().notNull(),
name: text().notNull().default(""),
branch: text(),
directory: text(),
extra: text({ mode: "json" }),
project_id: text()
.$type<ProjectV2.ID>()
.notNull()
.references(() => ProjectTable.id, { onDelete: "cascade" }),
time_used: integer()
.notNull()
.$default(() => Date.now()),
})

Xet Storage Details

Size:
644 Bytes
·
Xet hash:
80e56345966c51f97a1a94a7a971030761135f780deba5f1b3cb12101b9297ae

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