package space.nstart.pcp.pcp_satellite_catalog_service.entity

import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.IdClass
import jakarta.persistence.Table
import java.io.Serializable

@Entity
@Table(name = "satellite_group_satellite")
@IdClass(SatelliteGroupSatelliteId::class)
class SatelliteGroupSatelliteEntity(
    @Id
    @Column(name = "group_id")
    val groupId: Long = 0,
    @Id
    @Column(name = "satellite_id")
    val satelliteId: Long = 0
)

data class SatelliteGroupSatelliteId(
    val groupId: Long = 0,
    val satelliteId: Long = 0
) : Serializable
