All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zepben.evolve.database.sqlite.metrics.tables.TableJobs.kt Maven / Gradle / Ivy

There is a newer version: 0.24.0rc1
Show newest version
/*
 * Copyright 2024 Zeppelin Bend Pty Ltd
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */

package com.zepben.evolve.database.sqlite.metrics.tables

import com.zepben.evolve.database.sqlite.cim.tables.Column
import com.zepben.evolve.database.sqlite.cim.tables.Column.Nullable.NOT_NULL

@Suppress("PropertyName")
class TableJobs : MultiJobTable() {

    val INGEST_TIME: Column = Column(++columnIndex, "ingest_time", "TEXT", NOT_NULL)
    val SOURCE: Column = Column(++columnIndex, "source", "TEXT", NOT_NULL)
    val APPLICATION: Column = Column(++columnIndex, "application", "TEXT", NOT_NULL)
    val APPLICATION_VERSION: Column = Column(++columnIndex, "application_version", "TEXT", NOT_NULL)

    override val uniqueIndexColumns: MutableList> = mutableListOf(
        listOf(JOB_ID)
    )

    override val nonUniqueIndexColumns: MutableList> = mutableListOf(
        listOf(INGEST_TIME),
        listOf(SOURCE),
        listOf(APPLICATION, APPLICATION_VERSION)
    )

    override val name: String = "jobs"

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy