Database Diagram for Tuq

2. Create an database diagram (along with all required joins and model details) for a simple messaging app capable of sending messages, attaching files (images and text), and having group chats.

Messages

id (primary)

message_text

message_file

created_at

sender_id

reciever_id

Group

id (primary)

name

created_at

recieved_at

Users

id (primary)

name

number

password

profile

bio

Group_messages

UserID (primary)

message_id

group_id

created_at

join

UserID (primary)

group_id

updated_id

created_at