Created
August 22, 2019 14:58
-
-
Save mchernyavskaya/760a5dfddea660404e65ae6287bd9efc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Document(collection = "priceHistory") | |
data class PriceHistory( | |
@Id | |
val id: String? = null, | |
val sku: String, | |
val prices: MutableList<PriceEntry> = mutableListOf() | |
) | |
data class PriceEntry( | |
val price: Double, | |
val expired: Date? = null | |
) | |
interface PriceHistoryRepository : MongoRepository<PriceHistory, String> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment