package space.nstart.pcp.pcp_mission_planing_service.entity

import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.Table
import java.time.LocalDateTime
import java.util.UUID

@Entity
@Table(name = "missions")
class MissionEntity(
    @Id
    @Column(name = "mission_id", nullable = false, updatable = false)
    val missionId: UUID = UUID.randomUUID(),

    @Column(name = "satellite_id", nullable = false)
    var satelliteId: Long = 0,

    @Column(name = "station", length = 32)
    var station: String? = null,

    @Column(name = "mission_start")
    var missionStart: LocalDateTime? = null,

    @Column(name = "mission_stop")
    var missionStop: LocalDateTime? = null,

    @Column(name = "status", length = 15)
    var status: String = "NEW"
)
