rename prototype folder -> web_backend. closes #75
This commit is contained in:
15
web_backend/scripts/addarticles.sql
Normal file
15
web_backend/scripts/addarticles.sql
Normal file
@ -0,0 +1,15 @@
|
||||
/*
|
||||
* add a supplier first
|
||||
*/
|
||||
|
||||
INSERT INTO article_offers ("manufacturer", "article_number", "price_per_unit_net", "title", "vat_percent", "should_be_advertised", "cheapest_supplier_id")
|
||||
VALUES ("McDonalds", "1", 4242, "McPizza", 7, 1, 1);
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* There is no need for the add article, you can add one form the UI on the offerd article page
|
||||
*/
|
||||
INSERT INTO articles ("related_id", "shop_price_per_unit_net_cent", "warehouse_units_per_slot", "should_reorder", "reorder_max_price", "title", "description", "image_id")
|
||||
VALUES (1, 19.99, 10, 1, 15, "Huge Hamburger", "This huge Hamburger is awesome!", NULL);
|
||||
|
6
web_backend/scripts/addsupplier.sql
Normal file
6
web_backend/scripts/addsupplier.sql
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
INSERT INTO suppliers ("api_url", "name", "uuid")
|
||||
VALUES ("https://api.com", "Conrad", "fdfdfg4gdfgdf4gfg");
|
||||
|
||||
|
||||
|
3
web_backend/scripts/addsupplierorders.sql
Normal file
3
web_backend/scripts/addsupplierorders.sql
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
INSERT INTO supplier_orders ("created", "delivered", "number_of_units", "price_per_unit_net_cent", "total_price_net", "ordered_id", "supplier_id")
|
||||
VALUES ('0', '0', '42', '42', '42', '1', '1');
|
9
web_backend/scripts/addusers.sql
Normal file
9
web_backend/scripts/addusers.sql
Normal file
@ -0,0 +1,9 @@
|
||||
/* password is 123 */
|
||||
INSERT INTO users ("created", "email", "password_hash", "is_active", "is_employee")
|
||||
VALUES (datetime('now','localtime') ||'.0', "emp@ecom", "$2a$10$zFiqcePBmXHErD86vkI.vO1dnX20ezoVSM8xjGi59nktXYQv0o.fK", "1", "1");
|
||||
|
||||
INSERT INTO users ("created", "email", "password_hash", "is_active", "is_employee")
|
||||
VALUES (datetime('now','localtime') ||'.0', "user@ecom", "$2a$10$zFiqcePBmXHErD86vkI.vO1dnX20ezoVSM8xjGi59nktXYQv0o.fK", "1", "0");
|
||||
|
||||
INSERT INTO users ("created", "email", "password_hash", "is_active", "is_employee")
|
||||
VALUES (datetime('now','localtime') ||'.0', "blocked@ecom", "$2a$10$zFiqcePBmXHErD86vkI.vO1dnX20ezoVSM8xjGi59nktXYQv0o.fK", "0", "0");
|
Reference in New Issue
Block a user