/*
 * This file is generated by jOOQ.
 */
package com.nisemoe.generated.tables.records


import com.nisemoe.generated.enums.JudgementType
import com.nisemoe.generated.tables.ScoresJudgements

import org.jooq.Record1
import org.jooq.impl.UpdatableRecordImpl


/**
 * This class is generated by jOOQ.
 */
@Suppress("UNCHECKED_CAST")
open class ScoresJudgementsRecord private constructor() : UpdatableRecordImpl<ScoresJudgementsRecord>(ScoresJudgements.SCORES_JUDGEMENTS) {

    open var id: Int?
        set(value): Unit = set(0, value)
        get(): Int? = get(0) as Int?

    open var time: Double?
        set(value): Unit = set(1, value)
        get(): Double? = get(1) as Double?

    open var x: Double?
        set(value): Unit = set(2, value)
        get(): Double? = get(2) as Double?

    open var y: Double?
        set(value): Unit = set(3, value)
        get(): Double? = get(3) as Double?

    open var type: JudgementType?
        set(value): Unit = set(4, value)
        get(): JudgementType? = get(4) as JudgementType?

    open var distanceCenter: Double?
        set(value): Unit = set(5, value)
        get(): Double? = get(5) as Double?

    open var distanceEdge: Double?
        set(value): Unit = set(6, value)
        get(): Double? = get(6) as Double?

    open var error: Double?
        set(value): Unit = set(7, value)
        get(): Double? = get(7) as Double?

    open var scoreId: Int?
        set(value): Unit = set(8, value)
        get(): Int? = get(8) as Int?

    // -------------------------------------------------------------------------
    // Primary key information
    // -------------------------------------------------------------------------

    override fun key(): Record1<Int?> = super.key() as Record1<Int?>

    /**
     * Create a detached, initialised ScoresJudgementsRecord
     */
    constructor(id: Int? = null, time: Double? = null, x: Double? = null, y: Double? = null, type: JudgementType? = null, distanceCenter: Double? = null, distanceEdge: Double? = null, error: Double? = null, scoreId: Int? = null): this() {
        this.id = id
        this.time = time
        this.x = x
        this.y = y
        this.type = type
        this.distanceCenter = distanceCenter
        this.distanceEdge = distanceEdge
        this.error = error
        this.scoreId = scoreId
        resetChangedOnNotNull()
    }
}
