import { customType, pgTable, text } from "drizzle-orm/pg-core";
const bytea = customType<{ data: Buffer }>({
dataType() {
return "bytea";
},
});
export const users = pgTable("users", {
id: text("id").notNull().primaryKey(),
email: text("email").notNull().unique(),
passwordHash: text("password_hash").notNull(),
salt: bytea("salt").notNull(),
});
import { customType, pgTable, text } from "drizzle-orm/pg-core";
const bytea = customType<{ data: Buffer }>({
dataType() {
return "bytea";
},
});
export const users = pgTable("users", {
id: text("id").notNull().primaryKey(),
email: text("email").notNull().unique(),
passwordHash: text("password_hash").notNull(),
salt: bytea("salt").notNull(),
});