users email duplicate check

This commit is contained in:
2025-01-15 17:17:20 -05:00
parent aabaa586bf
commit 8ede08bb99
3 changed files with 21 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ export const products = pgTable("products", {
});
export const usersMerged = pgTable("users", {
export const users = pgTable("users", {
id: text("id")
.primaryKey()
.$defaultFn(() => crypto.randomUUID()),