package com.gestoreasy.database.dao

import androidx.room.*
import com.gestoreasy.database.entities.PendingSync

@Dao
interface PendingSyncDao {
    @Insert
    suspend fun insert(pendingSync: PendingSync): Long
    
    @Query("SELECT * FROM pending_sync ORDER BY created_at ASC")
    suspend fun getAll(): List<PendingSync>
    
    @Query("DELETE FROM pending_sync WHERE id = :id")
    suspend fun delete(id: Long)
    
    @Query("DELETE FROM pending_sync")
    suspend fun deleteAll()
}

