Skip to content

Commit 0de39ba

Browse files
authored
Docu demodata (#9)
* add demo data * Update README Fix Syntax error * Update README add user rights for webinferface
1 parent b9b1cea commit 0de39ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README

+4
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ but you need to modify a few things.
7979
`sqlite3 shop.db "INSERT INTO users (id, email, firstname, lastname) VALUES (1, 'test@tester', 'Firstname', 'Lastname');"`
8080
* Setup user password
8181
`mdbus2 -s io.mainframe.shopsystem.Database /io/mainframe/shopsystem/database io.mainframe.shopsystem.Database.SetUserPassword 1 "password"`
82+
`sqlite3 shop.db "UPDATE authentication set superuser = 1,auth_users = 1, auth_products = 1,auth_cashbox = 1 where user = 1";`
83+
* Demo Data
84+
`sqlite3 shop.db "INSERT INTO categories (name) VALUES ('Getränke')";`
85+
`sqlite3 shop.db "INSERT INTO supplier (name,city,postal_code,street,phone,website) VALUES ('Demo Lieferant','Musterstadt','12345','Musterstraße 5','+49 1234 56789','https://www.ktt.de')";`
8286

8387
== Customize Your Shop ==
8488

0 commit comments

Comments
 (0)