aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2024-06-19 09:15:10 -0500
committerjvech <jmvalenciae@unal.edu.co>2024-06-19 09:15:10 -0500
commit4b14f87cc80e7cfb78480644281022296973bc66 (patch)
tree74a2cf5fba8557730837f1d681ea1d203b8775f7 /README.md
parent821eeb0263725d33cbb5d1a044ca593d5959031f (diff)
feat: agent deletion and name update done
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 13 insertions, 3 deletions
diff --git a/README.md b/README.md
index 2f3b57f..159733d 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ Commands:
init Initialize Database
register Register a transaction
view View Registered data
- add Add a new agent to lend or pay
+ agent Add, update or remove an agent
help Print this message or the help of the given subcommand(s)
Options:
@@ -36,7 +36,7 @@ CREATE TABLE Registers (
register_date INTEGER NOT NULL,
amount INTEGER NOT NULL,
note TEXT,
- FOREIGN KEY(agent_id) REFERENCES Agents(id)
+ FOREIGN KEY(agent_id) REFERENCES Agents(id) ON DELETE CASCADE
)
```
@@ -48,7 +48,17 @@ debt init
Add a new debtor:
```
-debt add 'Jane Doe'
+debt agent -a 'Jane Doe'
+```
+
+Delete a created agent
+```
+debt agent -d 'Jane Doe'
+```
+
+Update a created agent:
+```
+debt agent 'Jane Doe' -u 'Joe Doe'
```
Borrow 1000 (dollars, euros or whatever) to Jane Doe:
Feel free to download, copy and edit any repo