Add print padding and padding properties to document size schema
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good

- Introduced new fields for printPadding, paddingLeft, paddingRight, paddingTop, and paddingBottom in the document size schema.
- Ensured all new fields are required with appropriate default values, enhancing the schema's capability to manage document layout settings.
This commit is contained in:
Tom Butcher 2026-08-21 22:39:22 +01:00
parent ecbdfb97c1
commit 4fca989b04

View File

@ -25,6 +25,31 @@ const documentSizeSchema = new Schema(
required: true, required: true,
default: false, default: false,
}, },
printPadding: {
type: Boolean,
required: true,
default: false,
},
paddingLeft: {
type: Number,
required: true,
default: 0,
},
paddingRight: {
type: Number,
required: true,
default: 0,
},
paddingTop: {
type: Number,
required: true,
default: 0,
},
paddingBottom: {
type: Number,
required: true,
default: 0,
},
}, },
{ timestamps: true } { timestamps: true }
); );