Entities
profiles
idmatchesauth.users.idis_renter/is_ownerdrive dashboard accesslast_dashboardisrenter,owner, or null- Display fields (name, avatar) may be added as product needs them
properties
- Owned by a profile with
is_ownertrue at write time - Publicly readable for browse and detail pages
reviews
- Written by a profile with
is_rentertrue at write time ratingis an integer from 1 to 5- Publicly readable on property detail pages
RLS summary
Do not grant broad anon writes. Authenticated server code uses the user session so RLS applies. Prefer the service role only for trusted admin or system jobs, never in the browser.
Migrations
SQL migrations live inratemyrental-web under supabase/migrations. Apply them with the Supabase CLI or the project SQL editor. See the web repo README for the current project ref.