stocktaking.js 734 B

12345678910111213
  1. const { Checkbox, DateTime, Text, Integer, Uuid, Relationship } = require('@keystonejs/fields');
  2. module.exports = {
  3. fields: {
  4. stocktaking_id: { type: Uuid, isRequired: true, label: 'stocktaking' },
  5. accepted: { type: Checkbox, isRequired: true, label: 'Zatwierdzono' },
  6. date_o: { type: DateTime, label: 'date_o' },
  7. name: { type: Text, label: 'Nazwa' },
  8. posnumber: { type: Integer, label: 'posnumber' },
  9. operators_id: { type: Relationship, ref: 'operators', many: true, isRequired: true, label: 'Uzytkownik' },
  10. shops_id: { type: Relationship, ref: 'shops', many: true, isRequired: true, label: 'Magazyn' },
  11. }, label: 'Stocktaking'//, plural: 'Stocktakings'
  12. };