From d7aeb68d94d94019591938ffa333a74f4085fc32 Mon Sep 17 00:00:00 2001 From: Lorena Burrell Date: Wed, 6 Oct 2021 12:21:43 -0400 Subject: [PATCH] updating the User Model --- README.md | 5 ++++- src/models/User.ts | 23 ++++++++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 03a01c9..1b3c1b7 100644 --- a/README.md +++ b/README.md @@ -5,5 +5,8 @@ Skeleton code for the ColorStack Sprout Fall '21 pod project. PodSpace is a priv ## Collaborators Jeremiah Anim / CS @ JWU '23 + Lorena Burrell / CS @ GSU -Ekow Thompson / CS @UA + +Ekow Thompson / CS @ UA + diff --git a/src/models/User.ts b/src/models/User.ts index c17ca9d..40d575e 100644 --- a/src/models/User.ts +++ b/src/models/User.ts @@ -75,7 +75,28 @@ const userSchema: Schema = new Schema( * - Delete this comment and the example field. * - Add comment(s) to explain your work. */ - exampleField: { required: false, type: String, unique: false }, + // exampleField: { required: false, type: String, unique: false }, + + // Construct the User Schema + + emailAddress: { required: false, type: String, unique: true }, + + firstName: { require: false, type: String, unique: false }, + + lastName: { require: false, type: String, unique: false }, + + instagramUrl: { require: false, type: String, unique: false }, + + linkedInUrl: { require: false, type: String, unique: false }, + + twitterUrl: { require: false, type: String, unique: false}, + + phoneNumber: { require: true, type: String, unique: true }, + + profilePictureKey: { require: false, type: String, unique: true }, + + profilePictureUrl: { require: false, type: String, unique: true }, + // We shouldn't be returning the refreshToken when fetching a user from // the database, since that is sensitive information.