const { Decimal, Uuid, Relationship, Integer } = require('@keystonejs/fields'); module.exports = { fields: { id: { type: Uuid, isRequired: true, label: 'stocktaking_items' }, stocktaking_id: { type: Relationship, ref: 'stocktaking', many: false, isRequired: true, label: 'stocktaking' }, quantity: { type: Decimal, knexOptions: { precision: 14, scale: 3 }, label: 'Ilosc' }, quantity2: { type: Decimal, knexOptions: { precision: 14, scale: 3 }, label: 'quantity2' }, value_purchase: { type: Decimal, knexOptions: { precision: 12, scale: 2 }, label: 'Wartosc zakupu' }, price: { type: Decimal, knexOptions: { precision: 12, scale: 2 }, label: 'Cena' }, items_id: { type: Relationship, ref: 'items', many: false, isRequired: true, label: 'Egzemplarz' }, shops_id: { type: Relationship, ref: 'shops', many: false, isRequired: true, label: 'Magazyn' }, }, label: 'Stocktaking_item'//, plural: 'Stocktaking_itemss' };