export const events = mysqlTable("events", {
id: cuid2("id").primaryKey().notNull(),
name: text("name").notNull(),
description: text("description"),
image: text("image").notNull(),
privacy: text("privacy", { enum: ["public", "private"] }).notNull(),
startDate: timestamp("startDate").notNull(),
endDate: timestamp("endDate").notNull(),
createdByUserId: cuid2("created_by_user_id").notNull(),
created_at: timestamp("created_at").notNull().defaultNow(),
updated_at: timestamp("updated_at").notNull().defaultNow().onUpdateNow()
});
export const events = mysqlTable("events", {
id: cuid2("id").primaryKey().notNull(),
name: text("name").notNull(),
description: text("description"),
image: text("image").notNull(),
privacy: text("privacy", { enum: ["public", "private"] }).notNull(),
startDate: timestamp("startDate").notNull(),
endDate: timestamp("endDate").notNull(),
createdByUserId: cuid2("created_by_user_id").notNull(),
created_at: timestamp("created_at").notNull().defaultNow(),
updated_at: timestamp("updated_at").notNull().defaultNow().onUpdateNow()
});