Update database schema and add signup_date, last_login, and role columns to user table

This commit is contained in:
Sean Morley
2024-04-18 01:15:52 +00:00
parent f0eb5441f0
commit 2249052ab7
10 changed files with 456 additions and 2 deletions

View File

@@ -28,6 +28,15 @@ export const userTable = pgTable("user", {
last_name: text("last_name").notNull(),
icon: text("icon"),
hashed_password: varchar("hashed_password").notNull(),
signup_date: timestamp("signup_date", {
withTimezone: true,
mode: "date",
}).notNull(),
last_login: timestamp("last_login", {
withTimezone: true,
mode: "date",
}),
role: text("role").notNull(),
});
// export type SelectUser = typeof userTable.$inferSelect;