Added product groups (this closes #55)

This commit is contained in:
Bernd Bestel
2018-09-24 13:02:52 +02:00
parent e472711d23
commit 66095738e3
15 changed files with 339 additions and 29 deletions

9
migrations/0037.sql Normal file
View File

@@ -0,0 +1,9 @@
ALTER TABLE products
ADD product_group_id INTEGER;
CREATE TABLE product_groups (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
name TEXT NOT NULL UNIQUE,
description TEXT,
row_created_timestamp DATETIME DEFAULT (datetime('now', 'localtime'))
);