11 lines
394 B
TypeScript
11 lines
394 B
TypeScript
import type { InferSelectModel } from "drizzle-orm";
|
|
import { integer, pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
|
|
|
export const serverStats = pgTable("stats", {
|
|
id: text("id").primaryKey().default("serverStats"),
|
|
build: integer("build").notNull().default(1),
|
|
lastUpdate: timestamp("last_update").defaultNow(),
|
|
});
|
|
|
|
export type ServerStats = InferSelectModel<typeof serverStats>;
|