fix: remove duplicate users table definition in schema

The users table was defined twice with conflicting field orderings
(timestamp vs boolean for emailVerified, different default placements).
Kept the cleaner definition and removed the duplicate.
This commit is contained in:
Christopher Mayor
2026-04-26 15:55:47 -07:00
parent 3c5df6a74c
commit 494dcb91fa

View File

@@ -14,10 +14,10 @@ export const users = pgTable("users", {
id: text("id").primaryKey(), id: text("id").primaryKey(),
name: text("name"), name: text("name"),
email: text("email").notNull().unique(), email: text("email").notNull().unique(),
emailVerified: timestamp("email_verified", { withTimezone: true }), emailVerified: boolean("email_verified").default(false),
image: text("image"), image: text("image"),
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(), createdAt: timestamp("created_at", { withTimezone: true }).defaultNow().notNull(),
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(), updatedAt: timestamp("updated_at", { withTimezone: true }).defaultNow().notNull(),
}); });
export const comparisonStatusEnum = pgEnum("comparison_status", [ export const comparisonStatusEnum = pgEnum("comparison_status", [
@@ -26,16 +26,6 @@ export const comparisonStatusEnum = pgEnum("comparison_status", [
"failed", "failed",
]); ]);
export const users = pgTable("users", {
id: text("id").primaryKey(),
name: text("name"),
email: text("email").notNull().unique(),
emailVerified: boolean("email_verified").default(false),
image: text("image"),
createdAt: timestamp("created_at").defaultNow().notNull(),
updatedAt: timestamp("updated_at").defaultNow().notNull(),
});
export const sessions = pgTable("sessions", { export const sessions = pgTable("sessions", {
id: text("id").primaryKey(), id: text("id").primaryKey(),
userId: text("user_id") userId: text("user_id")