aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2020-10-07 08:45:32 -0500
committerMark Powers <markppowers0@gmail.com>2020-10-07 08:45:32 -0500
commit98da11b940c194f5e4bd423cb57d252df6185715 (patch)
treea6b55f19fe08be5cc68033fee2b72c53ac269170 /src/index.js
parent0712bdcc1e9c67bdde0a89c94ca5d72822ead854 (diff)
Add budget goals
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js18
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,