| 1234567891011121314 |
- const { DateTime, Decimal, Relationship } = require('@keystonejs/fields');
- const { AutoIncrement } = require('@keystonejs/fields-auto-increment');
- module.exports = {
- fields: {
- products_minmax_id: { type: AutoIncrement, isRequired: true, label: 'products_minmax' },
- products_id: { type: Relationship, ref: 'products', many: true, isRequired: true, label: 'products' },
- shops_id: { type: Relationship, ref: 'shops', many: true, isRequired: true, label: 'Magazyn' },
- date_from: { type: DateTime, label: 'Od' },
- date_to: { type: DateTime, label: 'Do' },
- min: { type: Decimal, knexOptions: { precision: 10, scale: 4 }, isRequired: true, label: 'min' },
- max: { type: Decimal, knexOptions: { precision: 10, scale: 4 }, isRequired: true, label: 'max' },
- }, label: 'Products_minmax'//, plural: 'Products_minmaxs'
- };
|