export const event = pgTable("event", {
id: bigserial("id", { mode: "number" }).primaryKey(),
name: varchar("name").notNull().unique(),
description: text("description"),
startDate: date("start_date").notNull(),
endDate: date("end_date").notNull(),
// ...
createdAt: timestamp("created_at").notNull().defaultNow(),
updatedAt: timestamp("updated_at"),
})
export const event = pgTable("event", {
id: bigserial("id", { mode: "number" }).primaryKey(),
name: varchar("name").notNull().unique(),
description: text("description"),
startDate: date("start_date").notNull(),
endDate: date("end_date").notNull(),
// ...
createdAt: timestamp("created_at").notNull().defaultNow(),
updatedAt: timestamp("updated_at"),
})