working changes to use sequelize auto index

This commit is contained in:
Arjun Patel
2019-03-16 22:41:57 -07:00
parent 52c284f02a
commit e5c204890e
26 changed files with 82 additions and 91 deletions
+10
View File
@@ -0,0 +1,10 @@
'use strict';
module.exports = (sequelize, DataTypes) => {
const Charge = sequelize.define('Charge', {
id: { type: DataTypes.UUID, primaryKey: true, allowNull: false },
description: DataTypes.STRING,
amount: DataTypes.INTEGER
});
return Charge;
};