https://github.com/andreuvv/sql_alchemy_instagram
https://github.com/andreuvv/sql_alchemy_instagram
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andreuvv/sql_alchemy_instagram
- Owner: andreuvv
- Created: 2020-01-27T22:29:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-27T22:30:02.000Z (over 6 years ago)
- Last Synced: 2025-03-24T20:38:50.057Z (about 1 year ago)
- Language: Python
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Create the database model for Instagram
Inside he `src/models.py` file you will find have a couple of classes describing an example database.
Here is a 4min video explaining what UML is: [https://www.youtube.com/watch?v=UI6lqHOVHic](https://www.youtube.com/watch?v=UI6lqHOVHic)
## 📝Instructions
Your Job is to update he `src/models.py` file with the code needed to replicate he instagram data model.
The project is using the SQLAlchemy Python library to generate the database.
- What tables you think instagram my have on its database: E.g: Post, User, etc.?
- What properties should go inside the user? or inside the Post table?
- Please add at least 4 models with all of its properties.
- Degenerate the diagram.png file at the end by running `$ python3 models.py` on the console.
## ❔How to generate the UML diagram?
Remember to install dependencies:
`$ pipenv install`
and run the environment:
`$ pipenv shell`
Type `$ python3 src/models.py` on the console.
Open he file `diagram.png` to check out your URML diagram!