added realtime stuff (NOT TESTED)

This commit is contained in:
2026-07-17 23:34:03 -05:00
parent 9c56d278e6
commit 0a3b13c147
7 changed files with 251 additions and 24 deletions
+12 -1
View File
@@ -1 +1,12 @@
export * from "./auth";
import { integer, pgTable, text, serial, boolean } from "drizzle-orm/pg-core";
export * from "./auth";
export const message = pgTable("message", {
id: serial("id").primaryKey(),
roomId: text("room_id").notNull(),
username: text("username").notNull(),
content: text("content").notNull(),
timestamp: integer("timestamp").notNull(),
deleted: boolean("deleted").notNull().default(false),
});