deliverymaterialprices.js 771 B

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