Update some labels I missed to make more sense with new schema

This commit is contained in:
Gabriel Brown 2024-10-09 10:40:17 -05:00
parent 171de4104d
commit 588eea3a03
3 changed files with 8 additions and 8 deletions

View File

@ -44,7 +44,7 @@ export default function CreateUserPage() {
<h1 className="text-2xl mb-4">Test Create User</h1>
<form onSubmit={handleSubmit} className="space-y-4">
<div>
<label htmlFor="appleId" className="block">Username:</label>
<label htmlFor="appleId" className="block">Apple ID:</label>
<input
type="text"
id="appleId"
@ -55,7 +55,7 @@ export default function CreateUserPage() {
/>
</div>
<div>
<label htmlFor="appleEmail" className="block">Email:</label>
<label htmlFor="appleEmail" className="block">Apple Email:</label>
<input
type="text"
id="appleEmail"
@ -66,7 +66,7 @@ export default function CreateUserPage() {
/>
</div>
<div>
<label htmlFor="fullName" className="block">Name:</label>
<label htmlFor="fullName" className="block">Full Name:</label>
<input
type="text"
id="fullName"

View File

@ -2,7 +2,7 @@
import React, { useState } from 'react';
export default function GetUserByUsernamePage() {
export default function GetUserByAppleEmail() {
const [appleEmail, setAppleEmail] = useState('');
const [result, setResult] = useState<string | null>(null);
@ -30,7 +30,7 @@ export default function GetUserByUsernamePage() {
<main className="flex min-h-screen flex-col items-center justify-center
bg-gradient-to-b from-pink-500 to-orange-400 text-white cursor-pointer">
<div className="p-4">
<h1 className="text-2xl mb-4">Test Get User By Username</h1>
<h1 className="text-2xl mb-4">Test Get User By Apple Email</h1>
<form onSubmit={handleSubmit} className="space-y-4">
<div>
<label htmlFor="userId" className="block">User ID:</label>
@ -44,7 +44,7 @@ export default function GetUserByUsernamePage() {
/>
</div>
<button type='submit' className='bg-blue-500 p-2 rounded'>
Get User By ID
Get User By Apple Email
</button>
</form>
{result && (

View File

@ -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(),