home / shop

product_variants

Price variants/sizes for each product

3 rows where product_id = "3xhusnhc0y"

✎ View and edit SQL

This data as json, CSV (advanced)

id ▼ product_id price description sort_order
1221 White Peony 3xhusnhc0y 300.0 2 pcks 1
1222 White Peony 3xhusnhc0y 450.0 3 pcks 2
1223 White Peony 3xhusnhc0y 600.0 4 pcks 3

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE product_variants (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    product_id TEXT NOT NULL,
    price REAL,
    description TEXT,
    sort_order INTEGER,
    FOREIGN KEY (product_id) REFERENCES products(id),
    UNIQUE(product_id, sort_order)
);
Powered by Datasette · Queries took 8.626ms