From 98da11b940c194f5e4bd423cb57d252df6185715 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Wed, 7 Oct 2020 08:45:32 -0500 Subject: Add budget goals --- 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 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, -- cgit v1.2.3