zero-to-mastery / breads-server

Server code for Breads. Keep track of what you read online, and see what your friends are reading.
https://www.breads.io/
Other
13 stars 29 forks source link

Restructure tables #21

Closed aubundy closed 3 years ago

aubundy commented 3 years ago
aubundy commented 3 years ago

return tag info in readings apicall normalize tag info into readings - each reading has tags key with array of tag ids tags - object key is tag id, value is array of tag_name, reading_id, user_id objects

    I'm returning tags id with readings now. 
    need to add user readings table - how to transfer data from one table to another?
        user id, reading id, created date
         IS READING_TAGS ALREADY THE USER READINGS TABLE I NEED?
            maybe a user tags table, user readings table, and reading tags table
                user -> tags, user -> readings, reading -> tags