feat(app): stats added in to check if build in last build and also if theres a pending file
This commit is contained in:
12
app/src/pkg/db/schema/serverstats.ts
Normal file
12
app/src/pkg/db/schema/serverstats.ts
Normal 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
|
||||
Reference in New Issue
Block a user