matabas/schema.sql

9 lines
322 B
MySQL
Raw Normal View History

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