aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2020-10-07 10:54:15 -0500
committerMark Powers <markppowers0@gmail.com>2020-10-07 10:54:15 -0500
commit35b6d276bdeabdf7bf5eee59d85dfefee7531fce (patch)
treed4332664d0f38d9c5738ee5ddad0d314fbe7152e /src/index.js
parent98da11b940c194f5e4bd423cb57d252df6185715 (diff)
Add expected expenses
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 bf64586..0cbba31 100644
--- a/src/index.js
+++ b/src/index.js
@@ -90,6 +90,24 @@ function setUpModels() {
allowNull: false,
}
}),
+ "expected": database.define('expected', {
+ username: {
+ type: Sequelize.STRING,
+ allowNull: false,
+ },
+ name: {
+ type: Sequelize.STRING,
+ allowNull: false,
+ },
+ total: {
+ type: Sequelize.DECIMAL,
+ allowNull: false,
+ },
+ days: {
+ type: Sequelize.INTEGER,
+ allowNull: false,
+ }
+ }),
"users": database.define('user', {
username: {
type: Sequelize.STRING,