'value') * @param array $field * @return mixed */ public function selectRowByFieldWhere( $field = array() ); /** * @desc beacause there is no autoindex this has to be part of every database model * class, so the next index is always correctly set * @return mixed */ public function nextInsertIndex(); /** * @desc loads the password from the datbaase for remembering * @param bool $user_name * @return mixed */ public function loadPasswordByUsername( $user_name = false ); /** * @desc Deletes a row from the database by its ID. * @param int $id The ID of the row to be deleted. Defaults to 0. * @return bool Returns true if the deletion was successful, false otherwise. */ public function deleteRowById( int $id = 0 ): bool; }