package space.nstart.pcp.pcp_mission_planing_service.entity

import jakarta.persistence.Column
import jakarta.persistence.DiscriminatorValue
import jakarta.persistence.Entity
import jakarta.persistence.Table
import java.time.OffsetDateTime

@Entity
@Table(name = "drop_modes")
@DiscriminatorValue("DROP")
class DropModeEntity(
    id: Long? = null,
    plan: PlanEntity? = null,
    timeStart: OffsetDateTime? = null,
    revolution: Long = 0,

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

    @Column(name = "duration", nullable = false)
    var duration: Double = 0.0
) : ModeEntity(id, plan, timeStart, revolution)
