text: const Sequelize = require('sequelize');
  module.exports = function(sequelize, DataTypes) {
    return sequelize.define('categories', {
      id: {
        autoIncrement: true,
        type: DataTypes.INTEGER,
        allowNull: false,
        primaryKey: true
      },
      name: {
        type: DataTypes.STRING(25),
        allowNull: false
      },
      last_update: {
        type: DataTypes.DATE,
        allowNull: false,
        defaultValue: Sequelize.Sequelize.fn('now')
      }
    }, {
      sequelize,
      tableName: 'categories',
      schema: 'public',
      hasTrigger: true,
      timestamps: false,
      indexes: [
        {
          name: "categories_pkey",
          unique: true,
          fields: [
            { name: "id" },
          ]
        },
      ]
    });
  };
  