chore: update table var to follow table name in db
This commit is contained in:
parent
a6fc74e851
commit
52bfa28fcd
6 changed files with 18 additions and 14 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { pgTable, text } from "drizzle-orm/pg-core";
|
||||
import { timestamps } from "./column.helpers";
|
||||
|
||||
export const user = pgTable("users", {
|
||||
export const users = pgTable("users", {
|
||||
id: text("id").primaryKey(), // Clerk user ID
|
||||
email: text("email").notNull(),
|
||||
name: text("name"),
|
||||
|
|
@ -9,5 +9,5 @@ export const user = pgTable("users", {
|
|||
...timestamps,
|
||||
});
|
||||
|
||||
export type InsertUser = typeof user.$inferInsert;
|
||||
export type SelectUser = typeof user.$inferSelect;
|
||||
export type InsertUser = typeof users.$inferInsert;
|
||||
export type SelectUser = typeof users.$inferSelect;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue