MCPcopy Create free account
hub / github.com/ReviewStage/stage-cli / baseColumns

Function baseColumns

packages/cli/src/db/schema/columns.ts:4–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { integer, text } from "drizzle-orm/sqlite-core";
3
4export function baseColumns() {
5 return {
6 id: text()
7 .primaryKey()
8 .$defaultFn(() => randomUUID()),
9 createdAt: integer({ mode: "timestamp_ms" })
10 .$defaultFn(() => new Date())
11 .notNull(),
12 updatedAt: integer({ mode: "timestamp_ms" })
13 .$defaultFn(() => new Date())
14 .$onUpdateFn(() => new Date())
15 .notNull(),
16 };
17}

Callers 9

file-view.tsFile · 0.85
comment-thread.tsFile · 0.85
key-change-view.tsFile · 0.85
key-change.tsFile · 0.85
chapter-view.tsFile · 0.85
chapter-run.tsFile · 0.85
chapter.tsFile · 0.85
comment.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected