|
|
@ -15,6 +15,8 @@ Setup the database:
|
|
|
|
`CREATE TABLE balance (id SERIAL UNIQUE,balance NUMERIC);`
|
|
|
|
`CREATE TABLE balance (id SERIAL UNIQUE,balance NUMERIC);`
|
|
|
|
|
|
|
|
|
|
|
|
`CREATE TABLE transaction (id NUMERIC,username VARCHAR(50),amount NUMERIC,timestamp TIMESTAMP);`
|
|
|
|
`CREATE TABLE transaction (id NUMERIC,username VARCHAR(50),amount NUMERIC,timestamp TIMESTAMP);`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Create a config file named `ddbank_config` located in the same directory as the script.**
|
|
|
|
**Create a config file named `ddbank_config` located in the same directory as the script.**
|
|
|
|
**Config file should have the following:**
|
|
|
|
**Config file should have the following:**
|
|
|
|
```
|
|
|
|
```
|
|
|
|