generated from pure_sagacity/turborepo-starter-project
added realtime stuff (NOT TESTED)
This commit is contained in:
@@ -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),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user