aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: e70b91f4d88ce6277c704c9bb86fa19cb286c8b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Debt
A debt recorder, which helps to remember who owns you money


## Database

```sql
CREATE TABLE Agents (
    id INTEGER PRIMARY KEY,
    name TEXT NOT NULL UNIQUE
    )
```

```sql
CREATE TABLE Registers (
    id INTEGER PRIMARY KEY,
    agent_id INTEGER,
    register_date INTEGER NOT NULL,
    amount INTEGER NOT NULL,
    note TEXT,
    FOREIGN KEY(agent_id) REFERENCES Agents(id)
    )
```

## Client

```
Usage:
    debt action [options]
```

## Server
Feel free to download, copy and edit any repo