๐—–๐—ผ๐—ป๐˜๐—ถ๐—ป๐˜‚๐—ฎ๐˜๐—ถ๐—ผ๐—ป: ๐—ง๐—ฎ๐—ฏ๐—น๐—ฒ๐˜€, ๐—–๐—ฅ๐—จ๐——, ๐—ฎ๐—ป๐—ฑ ๐—™๐—ผ๐—ฟ๐—ฒ๐—ถ๐—ด๐—ป ๐—ž๐—ฒ๐˜†๐˜€

I use React and Supabase. Define your data shape before you write queries.

PostgreSQL basics:

You use four main operations:

Always use WHERE with UPDATE and DELETE. You will change or erase every row if you forget.

Real apps use multiple tables. A project belongs to a client. Foreign keys link these tables. This keeps your data clean. The database stops you from adding a project to a client who does not exist.

Prisma provides a JavaScript API for these tasks. You do not need to write raw SQL.

Building in public. Week 3 of 16.

Source: https://dev.to/chinwuba_jeffrey/continuation-tables-crud-and-foreign-keys-1o1e