text: /* jshint indent: 2 */
  
  const config = require('../config/app');
  
  module.exports = function(sequelize, DataTypes) {
    return sequelize.define(config.db.prefix + 'role', {
      id: {
        type: DataTypes.BIGINT,
        allowNull: false,
        primaryKey: true,
        autoIncrement: true
      },
      name: {
        type: DataTypes.STRING,
        allowNull: false,
        defaultValue: ''
      },
      shortname: {
        type: DataTypes.STRING,
        allowNull: false,
        defaultValue: ''
      },
      description: {
        type: DataTypes.TEXT,
        allowNull: false
      },
      sortorder: {
        type: DataTypes.BIGINT,
        allowNull: false,
        defaultValue: '0'
      },
      archetype: {
        type: DataTypes.STRING,
        allowNull: false,
        defaultValue: ''
      }
    }, {
      tableName: config.db.prefix + 'role'
    });
  };
  