{"version":3,"file":"index.mjs","sources":["../../../../server/content-types/role/index.js"],"sourcesContent":["'use strict';\n\nmodule.exports = {\n  collectionName: 'up_roles',\n  info: {\n    name: 'role',\n    description: '',\n    singularName: 'role',\n    pluralName: 'roles',\n    displayName: 'Role',\n  },\n  pluginOptions: {\n    'content-manager': {\n      visible: false,\n    },\n    'content-type-builder': {\n      visible: false,\n    },\n  },\n  attributes: {\n    name: {\n      type: 'string',\n      minLength: 3,\n      required: true,\n      configurable: false,\n    },\n    description: {\n      type: 'string',\n      configurable: false,\n    },\n    type: {\n      type: 'string',\n      unique: true,\n      configurable: false,\n    },\n    permissions: {\n      type: 'relation',\n      relation: 'oneToMany',\n      target: 'plugin::users-permissions.permission',\n      mappedBy: 'role',\n      configurable: false,\n    },\n    users: {\n      type: 'relation',\n      relation: 'oneToMany',\n      target: 'plugin::users-permissions.user',\n      mappedBy: 'role',\n      configurable: false,\n    },\n  },\n};\n"],"names":["role","collectionName","info","name","description","singularName","pluralName","displayName","pluginOptions","visible","attributes","type","minLength","required","configurable","unique","permissions","relation","target","mappedBy","users"],"mappings":";;;;;IAEAA,IAAAA,GAAiB;QACfC,cAAAA,EAAgB,UAAA;QAChBC,IAAAA,EAAM;YACJC,IAAAA,EAAM,MAAA;YACNC,WAAAA,EAAa,EAAA;YACbC,YAAAA,EAAc,MAAA;YACdC,UAAAA,EAAY,OAAA;YACZC,WAAAA,EAAa;AACjB,SAAA;QACEC,aAAAA,EAAe;YACb,iBAAA,EAAmB;gBACjBC,OAAAA,EAAS;AACf,aAAA;YACI,sBAAA,EAAwB;gBACtBA,OAAAA,EAAS;AACf;AACA,SAAA;QACEC,UAAAA,EAAY;YACVP,IAAAA,EAAM;gBACJQ,IAAAA,EAAM,QAAA;gBACNC,SAAAA,EAAW,CAAA;gBACXC,QAAAA,EAAU,IAAA;gBACVC,YAAAA,EAAc;AACpB,aAAA;YACIV,WAAAA,EAAa;gBACXO,IAAAA,EAAM,QAAA;gBACNG,YAAAA,EAAc;AACpB,aAAA;YACIH,IAAAA,EAAM;gBACJA,IAAAA,EAAM,QAAA;gBACNI,MAAAA,EAAQ,IAAA;gBACRD,YAAAA,EAAc;AACpB,aAAA;YACIE,WAAAA,EAAa;gBACXL,IAAAA,EAAM,UAAA;gBACNM,QAAAA,EAAU,WAAA;gBACVC,MAAAA,EAAQ,sCAAA;gBACRC,QAAAA,EAAU,MAAA;gBACVL,YAAAA,EAAc;AACpB,aAAA;YACIM,KAAAA,EAAO;gBACLT,IAAAA,EAAM,UAAA;gBACNM,QAAAA,EAAU,WAAA;gBACVC,MAAAA,EAAQ,gCAAA;gBACRC,QAAAA,EAAU,MAAA;gBACVL,YAAAA,EAAc;AACpB;AACA;AACA,KAAA;;;;;;"}