From 35b6d276bdeabdf7bf5eee59d85dfefee7531fce Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Wed, 7 Oct 2020 10:54:15 -0500 Subject: Add expected expenses --- src/index.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/index.js') 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, -- cgit v1.2.3