Skip to content

Commit 3cf7a67

Browse files
authored
remove email from app (#65)
1 parent eb57f72 commit 3cf7a67

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

app/config/swaggerconfig.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,6 @@ const swaggerDefinition = {
136136
"pattern": "^\\+?[1-9]\\d{1,14}$",
137137
"example": "+15551234567",
138138
},
139-
"email": {
140-
"type": "string",
141-
"description": "Contact email address",
142-
"pattern": "^[\\w.-]+@[\\w.-]+\\.\\w{2,}$",
143-
"example": "[email protected]"
144-
},
145139
"school": {
146140
"type": "string",
147141
"description": "Current school/university",

app/database/Prisma.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ const applicationSchema = z.object({
4646
ethnicity: z.string().min(1, "Ethnicity is required"),
4747
gradYear: z.number().int().min(new Date().getFullYear(), "Graduation year must be current year or later"),
4848
phoneNumber: z.string().regex(/^\+?[0-9]{10,15}$/, "Phone number must be valid"),
49-
email: z.string().email("Email must be valid"),
5049
school: z.string().min(1, "School name is required"),
5150
city: z.string().min(1, "City is required"),
5251
state: z.string().min(1, "State is required"),
@@ -194,7 +193,6 @@ const userUpdateSchema = userSchema.omit({
194193
}).partial().strict();
195194
const applicationUpdateSchema = applicationSchema.omit({
196195
userId: true,
197-
email: true,
198196
applicationYear: true,
199197
id: true,
200198
status: true
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
Warnings:
3+
4+
- You are about to drop the column `email` on the `Application` table. All the data in the column will be lost.
5+
6+
*/
7+
-- DropIndex
8+
DROP INDEX "Application_email_idx";
9+
10+
-- AlterTable
11+
ALTER TABLE "Application" DROP COLUMN "email";

prisma/schema.prisma

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ model Application {
3030
ethnicity String
3131
gradYear Int
3232
phoneNumber String
33-
email String
3433
school String
3534
city String
3635
state String
@@ -54,7 +53,6 @@ model Application {
5453
@@index([applicationYear])
5554
@@index([status])
5655
@@index([applicationYear, status])
57-
@@index([email])
5856
}
5957

6058
model Project {

0 commit comments

Comments
 (0)