diff options
| author | Adam Soltys <[email protected]> | 2020-08-16 21:34:13 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-08-16 21:34:13 -0700 |
| commit | 7ab3036cb1576fe38ba1fd423a58b7cd97a58579 (patch) | |
| tree | 305b1a0aa321389b60385009876bbdb1fe0a1c68 /db/index.js | |
| parent | b2208797d3c5559c7e8cc7d35b7a020da0c61193 (diff) | |
| download | coinos-server-7ab3036cb1576fe38ba1fd423a58b7cd97a58579.tar.gz coinos-server-7ab3036cb1576fe38ba1fd423a58b7cd97a58579.zip | |
non-custodial liquid wallets
Diffstat (limited to 'db/index.js')
| -rw-r--r-- | db/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/index.js b/db/index.js index 7f011c9c..6fa225e6 100644 --- a/db/index.js +++ b/db/index.js @@ -41,6 +41,11 @@ db["User"].belongsTo(db["Account"], { foreignKey: "account_id" }); +db["Invoice"].belongsTo(db["Account"], { + as: "account", + foreignKey: "account_id" +}); + db["Account"].belongsTo(db["User"], { as: "user", foreignKey: "user_id" |
