const Sequelize = require('sequelize'); module.exports = function(sequelize, DataTypes) { return sequelize.define('TransportProviders', { id: { autoIncrement: true, type: DataTypes.INTEGER, allowNull: false, primaryKey: true }, name: { type: DataTypes.STRING(50), allowNull: false }, client: { type: DataTypes.STRING(100), allowNull: true }, token: { type: DataTypes.STRING(200), allowNull: true }, code: { type: DataTypes.STRING(100), allowNull: true }, access_token: { type: DataTypes.STRING(200), allowNull: true }, active: { type: DataTypes.SMALLINT, allowNull: true, defaultValue: 1 }, timeout: { type: DataTypes.INTEGER, allowNull: true, defaultValue: 3000 }, retries: { type: DataTypes.INTEGER, allowNull: true, defaultValue: 5 }, category: { type: DataTypes.STRING(30), allowNull: true }, name_alias: { type: DataTypes.STRING(100), allowNull: true } }, { sequelize, tableName: 'transport_providers', schema: 'public', timestamps: false }); };