feat(app): stats added in to check if build in last build and also if theres a pending file

This commit is contained in:
2025-09-26 10:44:41 -05:00
parent 86dea6083e
commit 58aedecd4d
25 changed files with 2113 additions and 42 deletions

View File

@@ -0,0 +1,12 @@
import type { InferInsertModel, InferSelectModel } from "drizzle-orm";
import { integer, pgTable, text, timestamp } from "drizzle-orm/pg-core";
import type z from "zod";
export const serverStats = pgTable("serverStats", {
id: text("id").primaryKey().default("serverStats"),
build: integer("build").notNull().default(1),
lastUpdate: timestamp("lastUpdate").defaultNow(),
});
export type ServerStats = InferSelectModel<typeof serverStats>; // SELECT type
//export type NewServerStats = InferInsertModel<typeof serverStats, "insert">; // INSERT type