diff options
author | Mark Powers <markppowers0@gmail.com> | 2020-10-07 08:45:32 -0500 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2020-10-07 08:45:32 -0500 |
commit | 98da11b940c194f5e4bd423cb57d252df6185715 (patch) | |
tree | a6b55f19fe08be5cc68033fee2b72c53ac269170 /src/index.js | |
parent | 0712bdcc1e9c67bdde0a89c94ca5d72822ead854 (diff) |
Add budget goals
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index f783076..bf64586 100644 --- a/src/index.js +++ b/src/index.js @@ -72,6 +72,24 @@ function setUpModels() { allowNull: false, }, }), + "goals": database.define('goal', { + username: { + type: Sequelize.STRING, + allowNull: false, + }, + name: { + type: Sequelize.STRING, + allowNull: false, + }, + total: { + type: Sequelize.DECIMAL, + allowNull: false, + }, + amount: { + type: Sequelize.DECIMAL, + allowNull: false, + } + }), "users": database.define('user', { username: { type: Sequelize.STRING, |