text: const Sequelize = require('sequelize');
  module.exports = function(sequelize, DataTypes) {
    return sequelize.define('color', {
      id: {
        type: DataTypes.STRING(32),
        allowNull: false,
        defaultValue: Sequelize.Sequelize.fn('generate_object_id'),
        primaryKey: true
      },
      codigo: {
        type: DataTypes.STRING(8),
        allowNull: false
      },
      nombre: {
        type: DataTypes.STRING(64),
        allowNull: false
      },
      estado: {
        type: DataTypes.SMALLINT,
        allowNull: false,
        defaultValue: 1
      },
      activo: {
        type: DataTypes.BOOLEAN,
        allowNull: false,
        defaultValue: true
      },
      fecha_creacion: {
        type: DataTypes.DATE,
        allowNull: false,
        defaultValue: Sequelize.Sequelize.fn('now')
      },
      pseudo: {
        type: DataTypes.STRING(16),
        allowNull: true
      }
    }, {
      sequelize,
      tableName: 'color',
      schema: 'public',
      timestamps: false,
      indexes: [
        {
          name: "colores_pkey",
          unique: true,
          fields: [
            { name: "id" },
          ]
        },
      ]
    });
  };
  