Update some labels I missed to make more sense with new schema
This commit is contained in:
parent
171de4104d
commit
588eea3a03
@ -44,7 +44,7 @@ export default function CreateUserPage() {
|
|||||||
<h1 className="text-2xl mb-4">Test Create User</h1>
|
<h1 className="text-2xl mb-4">Test Create User</h1>
|
||||||
<form onSubmit={handleSubmit} className="space-y-4">
|
<form onSubmit={handleSubmit} className="space-y-4">
|
||||||
<div>
|
<div>
|
||||||
<label htmlFor="appleId" className="block">Username:</label>
|
<label htmlFor="appleId" className="block">Apple ID:</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
id="appleId"
|
id="appleId"
|
||||||
@ -55,7 +55,7 @@ export default function CreateUserPage() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label htmlFor="appleEmail" className="block">Email:</label>
|
<label htmlFor="appleEmail" className="block">Apple Email:</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
id="appleEmail"
|
id="appleEmail"
|
||||||
@ -66,7 +66,7 @@ export default function CreateUserPage() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label htmlFor="fullName" className="block">Name:</label>
|
<label htmlFor="fullName" className="block">Full Name:</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
id="fullName"
|
id="fullName"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
|
|
||||||
export default function GetUserByUsernamePage() {
|
export default function GetUserByAppleEmail() {
|
||||||
const [appleEmail, setAppleEmail] = useState('');
|
const [appleEmail, setAppleEmail] = useState('');
|
||||||
const [result, setResult] = useState<string | null>(null);
|
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
|
<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">
|
bg-gradient-to-b from-pink-500 to-orange-400 text-white cursor-pointer">
|
||||||
<div className="p-4">
|
<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">
|
<form onSubmit={handleSubmit} className="space-y-4">
|
||||||
<div>
|
<div>
|
||||||
<label htmlFor="userId" className="block">User ID:</label>
|
<label htmlFor="userId" className="block">User ID:</label>
|
||||||
@ -44,7 +44,7 @@ export default function GetUserByUsernamePage() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<button type='submit' className='bg-blue-500 p-2 rounded'>
|
<button type='submit' className='bg-blue-500 p-2 rounded'>
|
||||||
Get User By ID
|
Get User By Apple Email
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
{result && (
|
{result && (
|
||||||
|
@ -23,7 +23,7 @@ export const users = createTable(
|
|||||||
appleEmail: varchar("apple_email", { length: 255 }).unique().notNull(),
|
appleEmail: varchar("apple_email", { length: 255 }).unique().notNull(),
|
||||||
fullName: varchar("full_name", { length: 100 }),
|
fullName: varchar("full_name", { length: 100 }),
|
||||||
pfpURL: varchar("pfp_url", { length: 255 }),
|
pfpURL: varchar("pfp_url", { length: 255 }),
|
||||||
pushToken: varchar("pushToken", { length: 255 }),
|
pushToken: varchar("push_token", { length: 255 }),
|
||||||
createdAt: timestamp("created_at", { withTimezone: true })
|
createdAt: timestamp("created_at", { withTimezone: true })
|
||||||
.default(sql`CURRENT_TIMESTAMP`)
|
.default(sql`CURRENT_TIMESTAMP`)
|
||||||
.notNull(),
|
.notNull(),
|
||||||
@ -34,7 +34,7 @@ export const relationships = createTable(
|
|||||||
"relationship",
|
"relationship",
|
||||||
{
|
{
|
||||||
id: serial("id").primaryKey(),
|
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(),
|
status: statusEnum("status").default("pending").notNull(),
|
||||||
relationshipStartDate: timestamp("relationship_start_date", { withTimezone: true })
|
relationshipStartDate: timestamp("relationship_start_date", { withTimezone: true })
|
||||||
.default(sql`CURRENT_TIMESTAMP`).notNull(),
|
.default(sql`CURRENT_TIMESTAMP`).notNull(),
|
||||||
|
Loading…
Reference in New Issue
Block a user