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

I use React and Supabase. You must define your data shape first.

PostgreSQL uses these rules for tables:

You use four main actions for data:

One rule saves you from a big mistake. Always use WHERE with UPDATE and DELETE. You will wipe your whole table without it.

Apps use multiple tables. A project belongs to a client. You link them with a foreign key.

A foreign key ensures every project has a valid client. The database keeps your data clean.

Prisma lets you do this with a JavaScript API. 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