const options = {
  noCellUpdate: true,
  headers: [
    {
      title: 'Icon',
      type: 'picture',
      baseY: 25,
      contain: true,
      minWidth: 70,
      noOrder: true,
      key: `thumbnail.large`,
    },
    { title: 'title', key: 'title' },
  ],
  model: [
    {
      type: 'section',
      fields: [
        { type: 'string', label: '_id', name: '_id', noUpdate: true, noCreate: true },
        { type: 'string', label: 'Type', name: 'ressourceType', noUpdate: true, noCreate: true },
        { type: 'multi', label: 'title', name: 'title', required: true },
        { type: 'multi', label: 'teaser', name: 'teaser', required: true },
        {
          type: 'picture',
          apollo: true,
          asObject: true,
          noResize: true,
          displayValue: 'large',
          label: 'thumbnail',
          name: 'thumbnail',
        },
        {
          type: 'picture',
          apollo: true,
          asObject: true,
          displayValue: 'large',
          noResize: true,
          label: 'cover',
          name: 'cover',
        },
        { type: 'string', label: 'color', name: 'colorCode' },
      ],
    },
  ],
};

export default options;
