productfeatures.js 678 B

12345678910111213
  1. const { Text, Relationship, Integer } = require('@keystonejs/fields');
  2. const { AutoIncrement } = require('@keystonejs/fields-auto-increment');
  3. module.exports = {
  4. fields: {
  5. id: { type: Integer, isRequired: true, label: 'productfeatures' },
  6. features_id: { type: Relationship, ref: 'features', many: false, label: 'features' },
  7. featuresval_id: { type: Relationship, ref: 'featuresval', many: false, label: 'featuresval' },
  8. article_id: { type: Relationship, ref: 'items', many: false, label: 'article' },
  9. custom_value: { type: Text, label: 'custom_value' },
  10. }, label: 'Productfeature'//, plural: 'Productfeaturess'
  11. };