/**
 * Permission.js
 *
 * @description :: A model definition represents a database table/collection.
 * @docs        :: https://sailsjs.com/docs/concepts/models-and-orm/models
 */

module.exports = {

  attributes: {

   /* id: {
      type: 'number',
     // columnName: 'id',
     // unique: true,
      autoIncrement: true,
      //required: true,
      //columnType: 'integer',
    },*/

    slug: {
      type: 'string',
      required: true
    },
    description: {
      type: 'string',
      required: true
    },
    owners: {
      collection: 'utilisateurs',
      via: 'permissions'
    }
  },

};

