blob: ae22f4bb6e390bfdf75a140e5d27b6d7244c1133 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
CREATE TABLE `references` (
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
`grocery_id` integer NOT NULL,
`brand` text NOT NULL,
`price` real,
`unit` text,
`quality_score` integer,
FOREIGN KEY (`grocery_id`) REFERENCES `groceries`(`id`) ON UPDATE no action ON DELETE cascade
);
|