export const project = pgTable("project", {
id: uuid("id").primaryKey().notNull(),
name: text("name").notNull(),
url: text("url").notNull(),
description: text("description"),
submittedBy: uuid("id").notNull().references(() => auth.users.id, { onDelete: "cascade" }),
createdAt: timestamp("created_at", {
withTimezone: true,
})
.notNull()
.defaultNow(),
updatedAt: timestamp("updated_at", {
withTimezone: true,
})
.notNull()
.defaultNow(),
});
export const project = pgTable("project", {
id: uuid("id").primaryKey().notNull(),
name: text("name").notNull(),
url: text("url").notNull(),
description: text("description"),
submittedBy: uuid("id").notNull().references(() => auth.users.id, { onDelete: "cascade" }),
createdAt: timestamp("created_at", {
withTimezone: true,
})
.notNull()
.defaultNow(),
updatedAt: timestamp("updated_at", {
withTimezone: true,
})
.notNull()
.defaultNow(),
});