matabas/schema.sql

9 lines
322 B
SQL

CREATE TABLE IF NOT EXISTS ingredient_data
( productId INTEGER NOT NULL PRIMARY KEY -- https://handlaprivatkund.ica.se/stores/1004247/api/v4/products/bop?retailerProductId=...
, name TEXT NOT NULL
, costPerKg REAL NOT NULL
, costPerUnit REAL NOT NULL
, image BYTEA NOT NULL
, fetchedAt TIMESTAMP NOT NULL
);