"""ScheduleAttachment marshmallow schemas.""" from abacus_common_logic.marshalling.custom_fields import ma from abacus_schedule.constants import constants class ScheduleAttachmentDetailSchema(ma.Schema): """Schedule Attachment Detail Schema.""" schedule_attachment_id = ma.IntegerId(required=True) schedule_id = ma.IntegerId(required=True) target_id = ma.String(required=True) target_type = ma.Enum( options=constants.SCHEDULE_ATTACHMENT_TARGET_TYPE, required=True )