const { DateTime, Text, Decimal, Uuid, Relationship, Integer } = require('@keystonejs/fields'); const { AutoIncrement } = require('@keystonejs/fields-auto-increment'); module.exports = { fields: { id: { type: Integer, isRequired: true, label: 'fifopos' }, fifopart_id: { type: Relationship, ref: 'fifopart', many: false, label: 'fifopart' }, pos_id: {type: Relationship, ref: 'positions', many: false, label: 'pos_id' }, date_part: { type: DateTime, isRequired: true, label: 'date_part' }, id: { type: Text, label: 'id' }, items_id: { type: Relationship, ref: 'items', many: false, label: 'Egzemplarz' }, quantity: { type: Decimal, knexOptions: { precision: 14, scale: 3 }, label: 'Ilosc' }, price_purchase: { type: Decimal, knexOptions: { precision: 12, scale: 2 }, label: 'price_purchase' }, value: { type: Decimal, knexOptions: { precision: 12, scale: 2 }, label: 'value' }, price_orig: { type: Decimal, knexOptions: { precision: 12, scale: 2 }, label: 'price_orig' }, }, label: 'Fifopo'//, plural: 'Fifoposs' };