Meditation App: S.R Field Name Data Type (Size) Constraints Description

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

S.

R Field Name Data Type(Size) Constraints Description


1. id (auto-increment) Integer(11) Primary Key Login id is unique
2. first_name Varchar(255) Not Null User first name
3. last_name Varchar(255) Not Null User last name
4. email Varchar(255) Not Null User email
5. password Varchar (255) Not Null User password
6. phone Integer(11) Not null User Phone
7. profile_photo Varchar(255) Not null Profile Photo
8. otp Integer(6) Nullable OTP for Varification
9. created_at Datetime(20) Not null
10. updated_at Datetime(20) Not null

Meditation App
Users Table :-
Meditation Table :-

S.R Field Name Data Type(Size) Constraints Description


1. id (auto-increment) Integer(11) Primary Key Meditation Id
2. meditation_title Varchar(255) Not null Title of Meditation
3. description Text(1000) Not null Description
4. image Varchar(255) Not null Banner image
5. meditation_data Json Not null Data in Json Format

Json of Meditation Data :

[
{
"category_title" : "Category 1",
"category_description" : "Category 1",
"category_image" : "category_1.jpg",
"musics" : [
{
"music_title" : "Music 1",
"path" : "music1.mp3"
},
{
"music_title" : "Music 2",
"path" : "music2.mp3"
}
]
},
{
"category_title" : "Category 2",
"category_description" : "Category 2",
"category_image" : "category_1.jpg",
"musics" : [
{
"music_title" : "Music 1",
"path" : "music1.mp3"
},
{
"music_title" : "Music 2",
"path" : "music2.mp3"
}
]
}
]

Sleep Table :-

S.R Field Name Data Type(Size) Constraints Description


1. id (auto-increment) Integer(11) Primary Key Sleep Id
2. sleep_title Varchar(255) Not null Title of Sleep
3. description Text(1000) Not null Description
4. image Varchar(255) Not null Banner image
5. sleep_data Json Not null Data in Json Format

Note : Sleep data is same as meditation data JSON.

Yoga Table :-
S.R Field Name Data Type(Size) Constraints Description
1. id (auto-increment) Integer(11) Primary Key Yoga Id
2. yoga_title Varchar(255) Not null Title of Yoga
3. description Text(1000) Not null Description
4. image Varchar(255) Not null Banner image
5. Yoga_video_data Json Not null Data in Json Format

Yoga video data JSON :

[
    {
        "video_title": "Video 1",
        "path": "video1.mp4"
    },
    {
        "video_title": "Video 2",
        "path": "video2.mp4"
    }
]

DFD at Level 0 :
DFD at Level 1:
DFD at Level 2:
ER Diagram :

You might also like