package space.nstart.pcp.tle_monitoring_service.entity

import jakarta.persistence.*
import space.nstart.pcp.pcp_types_lib.utils.UtcDateTimes
import java.time.LocalDateTime


@Entity
@Table(name = "tle")
class TLEEntity (
    @Id
    @Column(name = "tle_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    val id : Long? = null,

    @Column(nullable = false)
    val satelliteId : Long = 0,

    @Column(nullable = false)
    val revolution : Long = 0,

    @Column(nullable = false)
    val tle : String = "",
    var timeTle : LocalDateTime? = null,
    @Column(name = "time_rec", nullable = false)
    val timeRec : LocalDateTime = UtcDateTimes.now()
)
