From 588eea3a03cbaf071c0ce3b0b437e888f7fa5a3d Mon Sep 17 00:00:00 2001 From: gibbyb Date: Wed, 9 Oct 2024 10:40:17 -0500 Subject: [PATCH] Update some labels I missed to make more sense with new schema --- src/app/users/createUser/page.tsx | 6 +++--- src/app/users/getUserByAppleEmail/page.tsx | 6 +++--- src/server/db/schema.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/users/createUser/page.tsx b/src/app/users/createUser/page.tsx index 8de19e0..3b72a4a 100644 --- a/src/app/users/createUser/page.tsx +++ b/src/app/users/createUser/page.tsx @@ -44,7 +44,7 @@ export default function CreateUserPage() {

Test Create User

- +
- +
- + (null); @@ -30,7 +30,7 @@ export default function GetUserByUsernamePage() {
-

Test Get User By Username

+

Test Get User By Apple Email

@@ -44,7 +44,7 @@ export default function GetUserByUsernamePage() { />
{result && ( diff --git a/src/server/db/schema.ts b/src/server/db/schema.ts index 11aa78a..88425a2 100755 --- a/src/server/db/schema.ts +++ b/src/server/db/schema.ts @@ -23,7 +23,7 @@ export const users = createTable( 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 }), + pushToken: varchar("push_token", { length: 255 }), createdAt: timestamp("created_at", { withTimezone: true }) .default(sql`CURRENT_TIMESTAMP`) .notNull(), @@ -34,7 +34,7 @@ export const relationships = createTable( "relationship", { id: serial("id").primaryKey(), - title: varchar("title", { length: 100 }).default("Relationship").notNull(), + title: varchar("title", { length: 100 }).default("My Relationship").notNull(), status: statusEnum("status").default("pending").notNull(), relationshipStartDate: timestamp("relationship_start_date", { withTimezone: true }) .default(sql`CURRENT_TIMESTAMP`).notNull(),