making needed changes to make the table names strict

This commit is contained in:
Arjun Patel
2019-04-13 18:06:18 -07:00
parent 7fd0128864
commit 9faff9e6e8
12 changed files with 428 additions and 329 deletions
+18 -9
View File
@@ -1,12 +1,21 @@
"use strict";
'use strict';
module.exports = (sequelize, DataTypes) => {
const PaymentStatus = sequelize.define("PaymentStatus", {
name: {
type: DataTypes.STRING,
primaryKey: true,
allowNull: false
}
});
const PaymentStatus = sequelize.define(
'PaymentStatus',
{
name: {
type: DataTypes.STRING,
primaryKey: true,
allowNull: false
}
},
{
freezeTableName: true,
return PaymentStatus;
// define the table's name
tableName: 'paymentstatuses'
}
);
return PaymentStatus;
};