Init applications

This commit is contained in:
NVWA Bot
2025-12-17 08:22:33 +00:00
commit 51a29e87a4
81 changed files with 7574 additions and 0 deletions

7
database/common.ts Normal file
View File

@@ -0,0 +1,7 @@
import { serial, timestamp } from "drizzle-orm/pg-core";
export const id = serial("id").primaryKey();
export const createdAt = timestamp("created_at").defaultNow().notNull();
export const updatedAt = timestamp("updated_at").defaultNow()
.$onUpdate(() => new Date()).notNull();