20 lines
460 B
Kotlin
20 lines
460 B
Kotlin
package space.luminic.finance.models
|
|
|
|
import org.springframework.data.annotation.CreatedDate
|
|
import org.springframework.data.annotation.LastModifiedDate
|
|
import java.time.Instant
|
|
|
|
data class Subscription(
|
|
var id: Int? = null,
|
|
val user: User,
|
|
val endpoint: String,
|
|
val auth: String,
|
|
val p256dh: String,
|
|
var isActive: Boolean,
|
|
@CreatedDate val createdAt: Instant? = null,
|
|
@LastModifiedDate val updatedAt: Instant? = null,
|
|
|
|
)
|
|
|
|
|