SyncOpEntity.kt 17 lignes · 447 octets
package fr.ebii.card2vcf.sync

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "sync_ops")
data class SyncOpEntity(
    @PrimaryKey(autoGenerate = true) val id: Long = 0,
    val entityType: String,
    val op: String,
    val payloadJson: String = "{}",
    val localId: Long? = null,
    val serverId: String? = null,
    val createdAt: Long = 0L,
    val attempts: Int = 0,
    val lastError: String? = null,
)