'integer', 'source_catalog_item_id' => 'integer', 'source_variant_id' => 'integer', 'image_attachment_id' => 'integer', 'variant_attributes' => 'array', 'cantidad' => 'integer', 'precio_unitario' => 'decimal:2', 'discount_total' => 'decimal:2', 'tax_total' => 'decimal:2', 'total' => 'decimal:2', ]; } /** * @return BelongsTo */ public function purchase(): BelongsTo { return $this->belongsTo(Purchase::class, 'compra_id'); } /** @return BelongsTo */ public function imageAttachment(): BelongsTo { return $this->belongsTo(Attachment::class, 'image_attachment_id'); } }