jak
08/30/2021, 11:28 AMapollonian
08/30/2021, 1:04 PMbuildings
+ PK + Name
| 1 | Tower A
| 2 | Tower B
amenities
+ PK + Name
| 1 | Terrace
| 2 | Reception Area
building_amenities* (Junction)
+ Building FK + Amenity FK
| 1 | 1
| 2 | 1
| 2 | 2
HorseShoe
08/30/2021, 1:08 PMHorseShoe
08/30/2021, 1:08 PMHorseShoe
08/30/2021, 1:09 PMHorseShoe
08/30/2021, 1:10 PMHorseShoe
08/30/2021, 1:10 PMHorseShoe
08/30/2021, 1:10 PMHorseShoe
08/30/2021, 1:10 PMHorseShoe
08/30/2021, 1:11 PMHorseShoe
08/30/2021, 1:11 PMHorseShoe
08/30/2021, 1:12 PMjak
08/30/2021, 1:40 PMjak
08/30/2021, 1:41 PMapollonian
08/30/2021, 1:49 PMjak
08/30/2021, 2:01 PMMattias
09/02/2021, 9:57 AMHorseShoe
09/02/2021, 1:56 PMHorseShoe
09/02/2021, 1:56 PMapollonian
09/03/2021, 3:46 AMMattias
09/03/2021, 6:50 AMHorseShoe
09/03/2021, 7:02 AMMattias
09/03/2021, 7:26 AMHorseShoe
09/03/2021, 7:35 AMHorseShoe
09/03/2021, 7:36 AMHorseShoe
09/03/2021, 7:38 AMHorseShoe
09/03/2021, 7:39 AMHorseShoe
09/03/2021, 7:41 AMjavascript
let result = await supabase.from('customers').select('customerName, customer_purchases ( product ( name, id, etc ) )').maybeSingle();
//result : { customerName: "Mattias", customer_purchases: [{ product: { name, id, etc} }, { product: { name, id, etc} }] }
Mattias
09/03/2021, 11:39 AMapollonian
09/03/2021, 3:38 PMHorseShoe
09/03/2021, 7:08 PM