You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contains bullet points after the table that state which foreign keys will reference to which table, or references to the associations which will be made
foreign key and table name are lowercased, snake_cased and back_ticked
Correctly formatted
schema is written in a table format
the table's name are lowercased, snake_cased and back_ticked
the table header column names are bolded
columns names are lowercased and snaked_cased and back_ticked
Comments
your messages table has two primary keys, and the parent_message_id has a 'text' datatype
if dms is going to be a joins table, it needs two foreign keys: the sender and the receiver. If it's going to be a table for messages, it should have a 'body'
reacts table has two primary keys
a separate message_properties table may not be necessary. The messages table can have more foreign keys pointing to the author and channel of each message. Consider making that change, as well as making the dms table into a joins table. Simplifying this will make it easier for you to implement.
Database Schema
back_tickedback_tickedback_tickedComments
parent_message_idhas a 'text' datatypedmsis going to be a joins table, it needs two foreign keys: the sender and the receiver. If it's going to be a table for messages, it should have a 'body'reactstable has two primary keysmessage_propertiestable may not be necessary. The messages table can have more foreign keys pointing to the author and channel of each message. Consider making that change, as well as making the dms table into a joins table. Simplifying this will make it easier for you to implement.