adding charges table and starting the endpoint for charging for a grant
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user