eshop_removed.js 826 B

12345678910111213
  1. const { DateTime, Relationship } = require('@keystonejs/fields');
  2. const { AutoIncrement } = require('@keystonejs/fields-auto-increment');
  3. module.exports = {
  4. fields: {
  5. eshop_removed_id: { type: AutoIncrement, isRequired: true, label: 'eshop_removed' },
  6. shops_id: { type: Relationship, ref: 'shops', many: false, label: 'Magazyn' },
  7. items_id: { type: Relationship, ref: 'items', many: false, label: 'Egzemplarze' },
  8. article_id: { type: Relationship, ref: 'items', many: false, label: 'Artykul' },
  9. productsguid_id: { type: Relationship, ref: 'products', many: false, label: 'Produkt' },
  10. removed_at: { type: DateTime, format: 'DD.MM.YYYY h:mm', isRequired: true, label: 'Data usuniecia' },
  11. }//, label: 'Usuniete z e-sklepu'////, plural: 'Usuniete z e-sklepu'
  12. };