Table "cafe.draft_orders" Column | Type | Collation | Nullable | Default ------------+--------------------------+-----------+----------+------------------- id | uuid | | not null | gen_random_uuid() tenant_id | uuid | | not null | session_id | uuid | | not null | label | character varying(50) | | not null | payload | jsonb | | not null | created_at | timestamp with time zone | | not null | CURRENT_TIMESTAMP updated_at | timestamp with time zone | | not null | CURRENT_TIMESTAMP Indexes: "draft_orders_pkey" PRIMARY KEY, btree (id) "cafe_draft_orders_session_idx" btree (session_id) "cafe_draft_orders_tenant_session_idx" btree (tenant_id, session_id) Foreign-key constraints: "draft_orders_session_id_foreign" FOREIGN KEY (session_id) REFERENCES cafe.sessions(id) ON DELETE CASCADE "draft_orders_tenant_id_foreign" FOREIGN KEY (tenant_id) REFERENCES tenants(id) ON DELETE CASCADE