new IdField('id', 'id'
))->
addFlags(new ApiAware(),
new PrimaryKey(),
new Required()),
(new FkField('document_type_id', 'documentTypeId', DocumentTypeDefinition::
class))->
addFlags(new ApiAware(),
new Required()),
(new FkField('logo_id', 'logoId', MediaDefinition::
class))->
addFlags(new ApiAware()),
(new StringField('name', 'name'
))->
addFlags(new ApiAware(),
new Required()),
(new StringField('filename_prefix', 'filenamePrefix'
))->
addFlags(new ApiAware()),
(new StringField('filename_suffix', 'filenameSuffix'
))->
addFlags(new ApiAware()),
(new BoolField('global', 'global'
))->
addFlags(new ApiAware(),
new Required()),
(new NumberRangeField('document_number', 'documentNumber'
))->
addFlags(new ApiAware()),
(new JsonField('config', 'config'
))->
addFlags(new ApiAware()),
(new CreatedAtField())->
addFlags(new ApiAware()),
(new CustomFields())->
addFlags(new ApiAware()),
new ManyToOneAssociationField('documentType', 'document_type_id', DocumentTypeDefinition::
class, 'id'
),
(new ManyToOneAssociationField('logo', 'logo_id', MediaDefinition::
class, 'id'
))->
addFlags(new ApiAware()),
(new OneToManyAssociationField('salesChannels', DocumentBaseConfigSalesChannelDefinition::
class, 'document_base_config_id', 'id'
))->
addFlags(new CascadeDelete()),
]);
}}