import type { InferInsertModel, InferSelectModel } from "drizzle-orm"; import { pgTable, text, timestamp } from "drizzle-orm/pg-core"; import shouts from "./shouts"; import users from "./users"; const shoutReports = pgTable("shout_reports", { id: text("xata_id").primaryKey(), userId: text("user_id") .notNull() .references(() => users.id), shoutId: text("shout_id") .notNull() .references(() => shouts.id), createdAt: timestamp("xata_createdat").defaultNow().notNull(), }); export type SelectShoutReport = InferSelectModel; export type InsertShoutReport = InferInsertModel; export default shoutReports;