productsgroup.js 573 B

1234567891011
  1. const { Text, Uuid, Relationship, Integer } = require('@keystonejs/fields');
  2. const { AutoIncrement } = require('@keystonejs/fields-auto-increment');
  3. module.exports = {
  4. fields: {
  5. id: { type: Integer, many: false, isRequired: true, label: 'productsgroup' },
  6. name: { type: Text, label: 'Nazwa' },
  7. suppliers_id: { type: Relationship, ref: 'suppliers', many: false, label: 'suppliers' },
  8. productsgroup_guid: { type: Uuid, isRequired: true, label: 'productsgroup_guid' },
  9. }, label: 'Productsgroup'//, plural: 'Productsgroups'
  10. };