pictures.js 829 B

12345678910111213141516
  1. const { Text, Checkbox, Integer, Relationship } = require('@keystonejs/fields');
  2. const { AutoIncrement } = require('@keystonejs/fields-auto-increment');
  3. module.exports = {
  4. fields: {
  5. id: { type: Integer, isRequired: true, label: 'ID Zdjecia' },
  6. filename: { type: Text, label: 'Nazwa pliku' },
  7. filepath: { type: Text, label: 'Ściezka pliku' },
  8. srvname: { type: Text, label: 'srvname' },
  9. main: { type: Checkbox, isRequired: true, label: 'Glowne' },
  10. description: { type: Text, label: 'Opis' },
  11. image_file_size: { type: Integer, label: 'Rozmiar' },
  12. thumb_file_size: { type: Integer, label: 'Rozmiar miniatury' },
  13. article_id: { type: Relationship, ref: 'items', many: false, label: 'Produkt' },
  14. }, label: 'Zdjecie'//, plural: 'Zdjecia'
  15. };