Init applications

This commit is contained in:
NVWA Bot
2025-12-24 02:07:58 +00:00
commit 1b780dc67e
193 changed files with 35016 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();