const { Text, Decimal, Uuid, Relationship } = require('@keystonejs/fields'); const { AutoIncrement } = require('@keystonejs/fields-auto-increment'); module.exports = { fields: { deliverymaterialprices_id: { type: Uuid, isRequired: true, label: 'deliverymaterialprices' }, material: { type: Text, isRequired: true, label: 'Surowiec' }, price: { type: Decimal, knexOptions: { precision: 12, scale: 2 }, isRequired: true, label: 'Cena' }, documents_id: { type: Relationship, ref: 'documents', many: true, isRequired: true, label: 'documents' }, shops_id: { type: Relationship, ref: 'shops', many: true, isRequired: true, label: 'Magazyn' }, }, label: 'Deliverymaterialprice'//, plural: 'Deliverymaterialpricess' };