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


import com.nisemoe.generated.tables.ScoresSimilarity

import java.time.LocalDateTime

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


/**
 * This class is generated by jOOQ.
 */
@Suppress("UNCHECKED_CAST")
open class ScoresSimilarityRecord private constructor() : UpdatableRecordImpl<ScoresSimilarityRecord>(ScoresSimilarity.SCORES_SIMILARITY) {

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

    open var beatmapId: Int?
        set(value): Unit = set(1, value)
        get(): Int? = get(1) as Int?

    open var replayId_1: Long?
        set(value): Unit = set(2, value)
        get(): Long? = get(2) as Long?

    open var replayId_2: Long?
        set(value): Unit = set(3, value)
        get(): Long? = get(3) as Long?

    open var similarity: Double?
        set(value): Unit = set(4, value)
        get(): Double? = get(4) as Double?

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

    open var createdAt: LocalDateTime?
        set(value): Unit = set(6, value)
        get(): LocalDateTime? = get(6) as LocalDateTime?

    open var sentDiscordNotification: Boolean?
        set(value): Unit = set(7, value)
        get(): Boolean? = get(7) as Boolean?

    open var cgSimilarity: Double?
        set(value): Unit = set(8, value)
        get(): Double? = get(8) as Double?

    open var cgCorrelation: Double?
        set(value): Unit = set(9, value)
        get(): Double? = get(9) as Double?

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

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

    /**
     * Create a detached, initialised ScoresSimilarityRecord
     */
    constructor(id: Int? = null, beatmapId: Int? = null, replayId_1: Long? = null, replayId_2: Long? = null, similarity: Double? = null, correlation: Double? = null, createdAt: LocalDateTime? = null, sentDiscordNotification: Boolean? = null, cgSimilarity: Double? = null, cgCorrelation: Double? = null): this() {
        this.id = id
        this.beatmapId = beatmapId
        this.replayId_1 = replayId_1
        this.replayId_2 = replayId_2
        this.similarity = similarity
        this.correlation = correlation
        this.createdAt = createdAt
        this.sentDiscordNotification = sentDiscordNotification
        this.cgSimilarity = cgSimilarity
        this.cgCorrelation = cgCorrelation
        resetChangedOnNotNull()
    }
}
