From c8de57c876e64ec0106756b04ebc0dace75673f4 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Sun, 23 Jan 2022 00:55:26 +0200 Subject: [PATCH] Update README.md --- README.md | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index eb6da05..29fcdf2 100644 --- a/README.md +++ b/README.md @@ -61,31 +61,31 @@ LndHub.go supports PostgreSQL and SQLite as database backend. But SQLite does no ### Data model ``` - ┌─────────────┐ - │ User │ - └─────────────┘ - │ - ┌─────────────────┬───────┴─────────┬─────────────────┐ - ▼ ▼ ▼ ▼ - Accounts: ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ - │ Incoming │ │ Current │ │ Outgoing │ │ Fees │ - Every user has └──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘ - four accounts - - Every Transaction Entry is associated to one debit account and one - credit account - - ┌────────────────────────┐ - │Transaction Entry │ - │ │ - │+ user_id │ - ┌────────────┐ │+ invoice_id │ - │ Invoice │────────────────▶+ debit_account_id │ - └────────────┘ │+ credit_account_id │ - │+ amount │ - Invoice holds the │+ ... │ - lightning related │ │ - data └────────────────────────┘ - + ┌─────────────┐ + │ User │ + └─────────────┘ + │ + ┌─────────────────┬───────┴─────────┬─────────────────┐ + ▼ ▼ ▼ ▼ + Accounts: ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ + │ Incoming │ │ Current │ │ Outgoing │ │ Fees │ + Every user has └──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘ + four accounts + + Every Transaction Entry is associated to one debit account and one + credit account + + ┌────────────────────────┐ + │Transaction Entry │ + │ │ + │+ user_id │ + ┌────────────┐ │+ invoice_id │ + │ Invoice │────────────────▶+ debit_account_id │ + └────────────┘ │+ credit_account_id │ + │+ amount │ + Invoice holds the │+ ... │ + lightning related │ │ + data └────────────────────────┘ + ```