update backend for appleauth
This commit is contained in:
@@ -19,14 +19,11 @@ export const users = createTable(
|
||||
"user",
|
||||
{
|
||||
id: serial("id").primaryKey(),
|
||||
username: varchar("username", { length: 50 }).unique().notNull(),
|
||||
email: varchar("email", { length: 255 }).unique().notNull(),
|
||||
passwordHash: varchar("password_hash", {length: 255}).notNull(),
|
||||
name: varchar("name", { length: 100 }),
|
||||
appleId: varchar("apple_id", { length: 255 }).unique(),
|
||||
appleEmail: varchar("apple_email", { length: 255 }).unique().notNull(),
|
||||
fullName: varchar("full_name", { length: 100 }),
|
||||
pfpURL: varchar("pfp_url", { length: 255 }),
|
||||
pushToken: varchar("pushToken", { length: 255 }),
|
||||
refreshToken: varchar("refreshToken", { length: 255 }),
|
||||
lastLogin: timestamp("last_login", { withTimezone: true }),
|
||||
createdAt: timestamp("created_at", { withTimezone: true })
|
||||
.default(sql`CURRENT_TIMESTAMP`)
|
||||
.notNull(),
|
||||
|
||||
Reference in New Issue
Block a user