aboutsummaryrefslogtreecommitdiff
path: root/drizzle/0001_dry_meteorite.sql
diff options
context:
space:
mode:
Diffstat (limited to 'drizzle/0001_dry_meteorite.sql')
-rw-r--r--drizzle/0001_dry_meteorite.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/drizzle/0001_dry_meteorite.sql b/drizzle/0001_dry_meteorite.sql
new file mode 100644
index 0000000..ae22f4b
--- /dev/null
+++ b/drizzle/0001_dry_meteorite.sql
@@ -0,0 +1,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
+);