package com.syncflow.data.db

import androidx.room.TypeConverter
import java.time.Instant

class DbConverters {
    @TypeConverter fun fromInstant(v: Instant?): Long? = v?.toEpochMilli()
    @TypeConverter fun toInstant(v: Long?): Instant? = v?.let { Instant.ofEpochMilli(it) }
}
