const { Text, Checkbox, Decimal, Integer } = require('@keystonejs/fields'); const { AutoIncrement } = require('@keystonejs/fields-auto-increment'); module.exports = { fields: { id: { type: Integer, isRequired: true, label: 'ID Szablonu wydruku' }, name: { type: Text, isRequired: true, label: 'Nazwa' }, dtype: { type: Text, isRequired: true, label: 'Typ dokumentu' }, landscape: { type: Checkbox, isRequired: true, label: 'Poziomy' }, sourcedoc: { type: Checkbox, isRequired: true, label: 'Dokument zrodlowy' }, docpayment: { type: Checkbox, isRequired: true, label: 'Dokument sprzedazy' }, linesvert: { type: Checkbox, isRequired: true, label: 'linesvert' }, lineshorz: { type: Checkbox, isRequired: true, label: 'lineshorz' }, values: { type: Checkbox, isRequired: true, label: 'Wartosci' }, unrestricted: { type: Checkbox, isRequired: true, label: 'unrestricted' }, positions_text_size: { type: Decimal, knexOptions: { precision: 5, scale: 2 }, isRequired: true, label: 'positions_text_size' }, positionstable: { type: Text, isRequired: true, label: 'positionstable' }, default_template: { type: Checkbox, isRequired: true, label: 'Domyslny szablon' }, print_date_c: { type: Checkbox, isRequired: true, label: 'print_date_c' }, }, label: 'Szablon wydruku'//, plural: 'Szablony wydruku' };