com.zepben.evolve.database.sqlite.metrics.tables.TableJobSources.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evolve-sdk Show documentation
Show all versions of evolve-sdk Show documentation
SDK for interaction with the evolve platform
/*
* 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
import com.zepben.evolve.database.sqlite.cim.tables.Column.Nullable.NULL
@Suppress("PropertyName")
class TableJobSources : MultiJobTable() {
val DATA_SOURCE: Column = Column(++columnIndex, "data_source", "TEXT", NOT_NULL)
val SOURCE_TIME: Column = Column(++columnIndex, "source_time", "TEXT", NULL)
val FILE_SHA: Column = Column(++columnIndex, "file_sha", "BLOB", NULL)
override val uniqueIndexColumns: MutableList> = mutableListOf(
listOf(JOB_ID, DATA_SOURCE)
)
override val nonUniqueIndexColumns: MutableList> = mutableListOf(
listOf(FILE_SHA)
)
override val name: String = "job_sources"
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy