---
title: "Comment by Mohit Vachhani on \"Building A Node.js - Express App (covid19-updates)|Part-2\" | Hashnode"
description: "Just a fun fact, you are using phone number as the primary key for your database. Email can be a better primary key for user I think so."
url: "https://hashnode.com/posts/building-a-nodejs-express-app-covid19-updatesorpart-2/5e9196f2c492833a1752e55d/comment/5e933c523519866555761231"
---

[Discussion](https://hashnode.com/posts/building-a-nodejs-express-app-covid19-updatesorpart-2/5e9196f2c492833a1752e55d)

Comment [Building A Node.js - Express App (covid19-updates)|Part-2](https://hashnode.com/posts/building-a-nodejs-express-app-covid19-updatesorpart-2/5e9196f2c492833a1752e55d)

[Mohit Vachhani](https://hashnode.com/@mohit_97)

[Apr 12, 2020](https://hashnode.com/posts/building-a-nodejs-express-app-covid19-updatesorpart-2/5e9196f2c492833a1752e55d/comment/5e933c523519866555761231)

Just a fun fact, you are using phone number as the primary key for your database. Email can be a better primary key for user I think so.

[James Shah](https://hashnode.com/@jamesshah)

[Apr 13, 2020](https://hashnode.com/posts/building-a-nodejs-express-app-covid19-updatesorpart-2/5e9196f2c492833a1752e55d/comment/5e933c523519866555761231#reply-5e94aed24e2f534a59f358cf)

Indeed, but here i didn't want users to enter their email ids. No specific reason but I didn't thought it from the database point of view,but I wanted to learn Node.js and Express and thus, I built this project. But you are very much correct that email id should be used as primary key. Thank you for reading and your feedback 🤗🤗
