create db manually
This commit is contained in:
parent
2e89f9bf2d
commit
7ccf6917c8
17
README.md
17
README.md
|
@ -95,3 +95,20 @@ python3 ticketfrei.py
|
||||||
|
|
||||||
To log out of the screen session, press "ctrl+a", and then "d".
|
To log out of the screen session, press "ctrl+a", and then "d".
|
||||||
|
|
||||||
|
### Manually creating the database
|
||||||
|
|
||||||
|
Unfortunately, if you want to help developing, you have to create the
|
||||||
|
database manually for now.
|
||||||
|
|
||||||
|
At the moment, we use a SQLITE3 database. If you are in the repo
|
||||||
|
directory, just open it with ```sqlitebrowser ticketfrei.sqlite```.
|
||||||
|
Then execute following SQL to create the tables:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
CREATE TABLE `user` (
|
||||||
|
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
||||||
|
`email` TEXT,
|
||||||
|
`pass_hashed` TEXT,
|
||||||
|
`enabled` INTEGER
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue