From 7ab3036cb1576fe38ba1fd423a58b7cd97a58579 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 16 Aug 2020 21:34:13 -0700 Subject: non-custodial liquid wallets --- db/index.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'db/index.js') 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" -- cgit v1.2.3