Home >Web Front-end >JS Tutorial >Day Designing Database Schema
As we know from from first episode we have these functional requirements
So the above requirement demonstrates we need to register the user to our system and the user should be able to mark prayers done or if he missed it will be marked missed. To meet requirements we need a user entity and prayer entity but for more granular control and to avoid redundancy, we also need a profile table. note I skipped analytics to
make starting more easier.
I added support of credentials and Google Oauth support in the user table for now I'll add just credentials authentication but later in the next phases, I'll add signIn with Google support. In the profile table which has a one-to-one relation with the user table, I added the user's social information.in the prayer table, I added all necessary fields to track and store user prayer information.
In the next episode, we'll implement complete credentials based authentication with a stateless JWT auth mechanism with
The above is the detailed content of Day Designing Database Schema. For more information, please follow other related articles on the PHP Chinese website!