adding charges table and starting the endpoint for charging for a grant

This commit is contained in:
Arjun Patel
2019-01-29 10:32:21 -08:00
parent 6ca8807a9b
commit e3b7a1699e
13 changed files with 148 additions and 9 deletions
+10
View File
@@ -0,0 +1,10 @@
'use strict';
module.exports = (sequelize, DataTypes) => {
const Charge = sequelize.define('charges', {
id: { type: DataTypes.UUID, primaryKey: true, allowNull: false },
description: DataTypes.STRING,
amount: DataTypes.INTEGER
});
return Charge;
};