/**
* Swaggy Jenkins
* Jenkins API clients generated from Swagger / Open API specification
*
* The version of the OpenAPI document: 1.5.1-pre.0
* Contact: blah@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools.database.models

import org.ktorm.dsl.*
import org.ktorm.schema.*
import org.ktorm.database.Database
import .*


/**
 * 
 * @param self 
 * @param propertyClass 
 */
object GithubRepositorieslinkss : BaseTable<GithubRepositorieslinks>("GithubRepositorieslinks") {
    val self = long("self") /* null */
    val propertyClass = text("_class") /* null */

    /**
     * Create an entity of type GithubRepositorieslinks from the model
     */
    override fun doCreateEntity(row: QueryRowSet, withReferences: Boolean) = GithubRepositorieslinks(
        self = Links.createEntity(row, withReferences) /* Link? */,
        propertyClass = row[propertyClass]  /* kotlin.String? */
    )

    /**
    * Assign all the columns from the entity of type GithubRepositorieslinks to the DML expression.
    *
    * Usage:
    *
    * ```kotlin
    * let entity = GithubRepositorieslinks()
    * database.update(GithubRepositorieslinkss, {
    *     assignFrom(entity)
    * })
    * ```
    * @return the builder with the columns for the update or insert.
    */
    fun AssignmentsBuilder.assignFrom(entity: GithubRepositorieslinks) {
        this.apply {
            set(GithubRepositorieslinkss.self, entity.self)
            set(GithubRepositorieslinkss.propertyClass, entity.propertyClass)
        }
    }

}


