package org.nstart.dep265.requestservice.entity

import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.Table

@Entity
@Table(name = "earth_grid_settings")
class EarthGridSettingsEntity(
    @Id
    @Column(name = "settings_id")
    var settingsId: Long = DEFAULT_SETTINGS_ID,

    @Column(name = "calculation_step", nullable = false)
    var calculationStep: Double = DEFAULT_CALCULATION_STEP,
) {
    companion object {
        const val DEFAULT_SETTINGS_ID = 1L
        const val DEFAULT_CALCULATION_STEP = 2.0
    }
}
