'decimal:2', 'last_restocked_at' => 'datetime', 'expiry_date' => 'date:Y-m-d', 'is_active' => 'boolean', 'is_locked' => 'boolean', 'last_app_lock_rev' => 'integer', 'last_app_expiry_rev' => 'integer', ]; public function machine() { return $this->belongsTo(Machine::class); } public function product() { return $this->belongsTo(Product::class); } }