Skip to content

Database

TeemuKautto edited this page Dec 9, 2022 · 10 revisions
  • User has 1 portfolio website
  • Portfolio website has multiple sections, links to sections also in navigation
  • Section has 1 heading and 1 layout component (grid/image gallery/video gallery/side-scroller)
  • Layout component has multiple items (images, text, columns, rows)

RDS Postgresql database is split into 4 tables:

users table has all of the verified users. image

pending_users table has all of the unverified users. image

sections table has all of the user created portfolio sections. image

components table has all of the components that users have created in their sections. image

Best practices on storing large dataobjects in database: https://www.youtube.com/watch?v=OxNxheQkFTc

AWS Amplify tutorial: https://amplify-sns.workshop.aws/en/00_prerequisites.html

Create postgresql database https://aws.amazon.com/getting-started/hands-on/create-connect-postgresql-db/

  • Different DB for media items and other stuff RDS Postgres

databasediagram2

Clone this wiki locally