package request

type FileManagerAttachmentCreateAttributes struct {
	FileID    string  `json:"file_id" validate:"required" example:"018f3a5c-7a6f-7c2a-8d4a-4b5b1f6c8e9d"`
	RefType   string  `json:"ref_type" validate:"required" example:"helicopter"`
	RefID     string  `json:"ref_id" validate:"required" example:"018f3a5c-7a6f-7c2a-8d4a-4b5b1f6c8e9d"`
	Category  *string `json:"category,omitempty" example:"document"`
	SortOrder *int    `json:"sort_order,omitempty" example:"0"`
	IsPrimary *bool   `json:"is_primary,omitempty" example:"false"`
}

type FileManagerAttachmentCreateData struct {
	Type       string                                `json:"type" validate:"required,oneof=file_manager_attachment_create file_manager_attachment" example:"file_manager_attachment_create"`
	Attributes FileManagerAttachmentCreateAttributes `json:"attributes" validate:"required"`
}

type FileManagerAttachmentCreateRequest struct {
	Data FileManagerAttachmentCreateData `json:"data" validate:"required"`
}
