Skip to content

Commit

Permalink
Database modeling
Browse files Browse the repository at this point in the history
  • Loading branch information
MdSamsuzzohaShayon committed Nov 3, 2023
1 parent 3ccb0e3 commit 9314633
Show file tree
Hide file tree
Showing 52 changed files with 36 additions and 847 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Web Dev Lab

### Database Modeling
- Articles Table:
- article_id (Primary Key)
- title
- content
- publication_date
- author_id (Foreign Key referencing the Authors Table)
- category_id (Foreign Key referencing the Categories Table)

- Authors Table:
- author_id (Primary Key)
- name
- email
- bio

- Comments Table:
- comment_id (Primary Key)
- article_id (Foreign Key referencing the Articles Table)
- author_name
- email
- comment_text
- comment_date

- Categories Table:
- category_id (Primary Key)
- name

- Tags Table:
- tag_id (Primary Key)
- name

- ArticleTags Table (a junction table to implement many-to-many relationship between Articles and Tags):
- article_id (Foreign Key referencing the Articles Table)
- tag_id (Foreign Key referencing the Tags Table)
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 0 additions & 16 deletions coursetutorials/coursetutorials/asgi.py

This file was deleted.

133 changes: 0 additions & 133 deletions coursetutorials/coursetutorials/settings.py

This file was deleted.

24 changes: 0 additions & 24 deletions coursetutorials/coursetutorials/urls.py

This file was deleted.

16 changes: 0 additions & 16 deletions coursetutorials/coursetutorials/wsgi.py

This file was deleted.

Binary file removed coursetutorials/db.sqlite3
Binary file not shown.
22 changes: 0 additions & 22 deletions coursetutorials/manage.py

This file was deleted.

7 changes: 0 additions & 7 deletions coursetutorials/static/css/bootstrap.min.css

This file was deleted.

Empty file.
7 changes: 0 additions & 7 deletions coursetutorials/static/js/bootstrap.min.js

This file was deleted.

70 changes: 0 additions & 70 deletions coursetutorials/static/js/main.js

This file was deleted.

Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 0 additions & 6 deletions coursetutorials/tutorials/admin.py

This file was deleted.

6 changes: 0 additions & 6 deletions coursetutorials/tutorials/apps.py

This file was deleted.

34 changes: 0 additions & 34 deletions coursetutorials/tutorials/migrations/0001_initial.py

This file was deleted.

19 changes: 0 additions & 19 deletions coursetutorials/tutorials/migrations/0002_alter_tutorial_series.py

This file was deleted.

Loading

0 comments on commit 9314633

Please sign in to comment.