const model = [
  {
    type: 'section',
    label: 'Infos',
    fields: [
      { type: 'text', label: 'Id', name: '_id', noUpdate: true },
      {
        type: 'select',
        label: 'types',
        // multiple: true,
        name: 'types',
        values: ['user', 'admin', 'organisationOwner', 'parkingManager'],
      },
      {
        type: 'input',
        label: 'organisationIds',
        name: 'organisationIds',
      },

      {
        type: 'input',
        label: 'firstName',
        name: 'firstName',
      },
      {
        type: 'input',
        label: 'lastName',
        name: 'lastName',
      },
      {
        type: 'input',
        label: 'userName',
        name: 'userName',
      },
      {
        type: 'input',
        label: 'email',
        name: 'email',
      },
      {
        type: 'input',
        label: 'phoneNumber',
        name: 'phoneNumber',
      },
      {
        type: 'select',
        label: 'gender',
        name: 'gender',
        values: ['m', 'f'],
      },
      // {
      //   type: 'input',
      //   inputType: 'number',
      //   label: 'age',
      //   name: 'age',
      // },
    ],
  },
];

const options = {
  titleList: 'accounts',
  titleDetail: 'account',
  titleCreate: 'Add account',
  titleUpdate: 'Edit account',

  apollo: true,
  resource: 'me',
  resourceUpdate: 'me',

  profileFields: model,
};

export default options;
