import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core"; export const snapshots = sqliteTable("snapshots", { ts: integer("ts").primaryKey(), branch: text("branch").notNull(), headShort: text("head_short").notNull(), porcelainLines: integer("porcelain_lines").notNull(), hasUpstream: integer("has_upstream").notNull(), aheadCount: integer("ahead_count").notNull(), behindCount: integer("behind_count").notNull(), /** Empty string when the snapshot succeeded; otherwise a short error summary. */ gitError: text("git_error").notNull(), });