insert($data); } public function getAll($id) { return $this->where('product_id', $id)->findAll(); } public function deleteOne(int $id) { return $this->where('id', $id)->delete(); } }