package com.prodhack.moscow2025.data.data_providers.local_db.dao

import androidx.paging.PagingSource
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Upsert
import com.prodhack.moscow2025.data.base.BasePaginationDAO
import com.prodhack.moscow2025.data.data_providers.local_db.entities.ResumeHistoryEntity

@Dao
interface ResumeHistoryDao : BasePaginationDAO<ResumeHistoryEntity> {

	@Query("DELETE FROM resume_history")
	override suspend fun clearAll()

	@Upsert
	override suspend fun upsertAll(data: List<ResumeHistoryEntity>)

	@Query("SELECT * FROM resume_history")
	override fun getPaginatedData(): PagingSource<Int, ResumeHistoryEntity>
}
