update profile and models

This commit is contained in:
Le Viet
2022-03-30 16:49:28 +07:00
parent 4e8d728142
commit eb5caa83a1
158 changed files with 7371 additions and 156 deletions
+24
View File
@@ -0,0 +1,24 @@
const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
return sequelize.define('CreditCards', {
id: {
autoIncrement: true,
type: DataTypes.BIGINT,
allowNull: false,
primaryKey: true
},
bank_id: {
type: DataTypes.BIGINT,
allowNull: true
},
card_name: {
type: DataTypes.STRING(50),
allowNull: true
}
}, {
sequelize,
tableName: 'credit_cards',
schema: 'public',
timestamps: false
});
};