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
+30
View File
@@ -0,0 +1,30 @@
const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
return sequelize.define('TestAccounts', {
id: {
autoIncrement: true,
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true
},
member_id: {
type: DataTypes.INTEGER,
allowNull: true
},
status: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: 1
},
added: {
type: DataTypes.DATE,
allowNull: true,
defaultValue: Sequelize.Sequelize.fn('now')
}
}, {
sequelize,
tableName: 'test_accounts',
schema: 'public',
timestamps: false
});
};