/*
 * This file is generated by jOOQ.
 */
package ru.micord.ervu_dashboard.db_beans.ervu_dashboard.tables;


import java.sql.Date;
import java.util.Collection;
import java.util.UUID;

import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.Identity;
import org.jooq.Name;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
import org.jooq.SQL;
import org.jooq.Schema;
import org.jooq.Select;
import org.jooq.Stringly;
import org.jooq.Table;
import org.jooq.TableField;
import org.jooq.TableOptions;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;

import ru.micord.ervu_dashboard.db_beans.ervu_dashboard.ErvuDashboard;
import ru.micord.ervu_dashboard.db_beans.ervu_dashboard.Keys;
import ru.micord.ervu_dashboard.db_beans.ervu_dashboard.tables.records.CitizenCriminalLiabilityFz53Record;


/**
 * Уголовная ответственность  в связи с нарушением ФЗ-53
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CitizenCriminalLiabilityFz53 extends TableImpl<CitizenCriminalLiabilityFz53Record> {

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of
     * <code>ervu_dashboard.citizen_criminal_liability_fz53</code>
     */
    public static final CitizenCriminalLiabilityFz53 CITIZEN_CRIMINAL_LIABILITY_FZ53 = new CitizenCriminalLiabilityFz53();

    /**
     * The class holding records for this type
     */
    @Override
    public Class<CitizenCriminalLiabilityFz53Record> getRecordType() {
        return CitizenCriminalLiabilityFz53Record.class;
    }

    /**
     * The column
     * <code>ervu_dashboard.citizen_criminal_liability_fz53.citizen_criminal_liability_fz53_id</code>.
     */
    public final TableField<CitizenCriminalLiabilityFz53Record, Long> CITIZEN_CRIMINAL_LIABILITY_FZ53_ID = createField(DSL.name("citizen_criminal_liability_fz53_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");

    /**
     * The column
     * <code>ervu_dashboard.citizen_criminal_liability_fz53.recruit_id</code>.
     * ссылка на гражданина (citizen)
     */
    public final TableField<CitizenCriminalLiabilityFz53Record, UUID> RECRUIT_ID = createField(DSL.name("recruit_id"), SQLDataType.UUID.nullable(false), this, "ссылка на гражданина (citizen)");

    /**
     * The column
     * <code>ervu_dashboard.citizen_criminal_liability_fz53.fact_criminal_prosecution</code>.
     * Сведения о факте уголовного преследования
     */
    public final TableField<CitizenCriminalLiabilityFz53Record, String> FACT_CRIMINAL_PROSECUTION = createField(DSL.name("fact_criminal_prosecution"), SQLDataType.VARCHAR, this, "Сведения о факте уголовного преследования");

    /**
     * The column
     * <code>ervu_dashboard.citizen_criminal_liability_fz53.case_number_before</code>.
     * Номер уголовного дела (досудебный)
     */
    public final TableField<CitizenCriminalLiabilityFz53Record, String> CASE_NUMBER_BEFORE = createField(DSL.name("case_number_before"), SQLDataType.VARCHAR, this, "Номер уголовного дела (досудебный)");

    /**
     * The column
     * <code>ervu_dashboard.citizen_criminal_liability_fz53.date_initiation</code>.
     * Дата возбуждения уголовного дела
     */
    public final TableField<CitizenCriminalLiabilityFz53Record, Date> DATE_INITIATION = createField(DSL.name("date_initiation"), SQLDataType.DATE, this, "Дата возбуждения уголовного дела");

    /**
     * The column
     * <code>ervu_dashboard.citizen_criminal_liability_fz53.body_initiated</code>.
     * Орган, возбудивший уголовное дело
     */
    public final TableField<CitizenCriminalLiabilityFz53Record, String> BODY_INITIATED = createField(DSL.name("body_initiated"), SQLDataType.VARCHAR, this, "Орган, возбудивший уголовное дело");

    /**
     * The column
     * <code>ervu_dashboard.citizen_criminal_liability_fz53.case_number</code>.
     * Номер уголовного дела (судебный)
     */
    public final TableField<CitizenCriminalLiabilityFz53Record, String> CASE_NUMBER = createField(DSL.name("case_number"), SQLDataType.VARCHAR, this, "Номер уголовного дела (судебный)");

    /**
     * The column
     * <code>ervu_dashboard.citizen_criminal_liability_fz53.sentence_date</code>.
     * Дата приговора
     */
    public final TableField<CitizenCriminalLiabilityFz53Record, Date> SENTENCE_DATE = createField(DSL.name("sentence_date"), SQLDataType.DATE, this, "Дата приговора");

    /**
     * The column
     * <code>ervu_dashboard.citizen_criminal_liability_fz53.court_decision</code>.
     * Суд, вынесший приговор
     */
    public final TableField<CitizenCriminalLiabilityFz53Record, String> COURT_DECISION = createField(DSL.name("court_decision"), SQLDataType.VARCHAR, this, "Суд, вынесший приговор");

    /**
     * The column
     * <code>ervu_dashboard.citizen_criminal_liability_fz53.type_punishment</code>.
     * Вид наказания
     */
    public final TableField<CitizenCriminalLiabilityFz53Record, String> TYPE_PUNISHMENT = createField(DSL.name("type_punishment"), SQLDataType.VARCHAR, this, "Вид наказания");

    private CitizenCriminalLiabilityFz53(Name alias, Table<CitizenCriminalLiabilityFz53Record> aliased) {
        this(alias, aliased, (Field<?>[]) null, null);
    }

    private CitizenCriminalLiabilityFz53(Name alias, Table<CitizenCriminalLiabilityFz53Record> aliased, Field<?>[] parameters, Condition where) {
        super(alias, null, aliased, parameters, DSL.comment("Уголовная ответственность  в связи с нарушением ФЗ-53"), TableOptions.table(), where);
    }

    /**
     * Create an aliased
     * <code>ervu_dashboard.citizen_criminal_liability_fz53</code> table
     * reference
     */
    public CitizenCriminalLiabilityFz53(String alias) {
        this(DSL.name(alias), CITIZEN_CRIMINAL_LIABILITY_FZ53);
    }

    /**
     * Create an aliased
     * <code>ervu_dashboard.citizen_criminal_liability_fz53</code> table
     * reference
     */
    public CitizenCriminalLiabilityFz53(Name alias) {
        this(alias, CITIZEN_CRIMINAL_LIABILITY_FZ53);
    }

    /**
     * Create a <code>ervu_dashboard.citizen_criminal_liability_fz53</code>
     * table reference
     */
    public CitizenCriminalLiabilityFz53() {
        this(DSL.name("citizen_criminal_liability_fz53"), null);
    }

    @Override
    public Schema getSchema() {
        return aliased() ? null : ErvuDashboard.ERVU_DASHBOARD;
    }

    @Override
    public Identity<CitizenCriminalLiabilityFz53Record, Long> getIdentity() {
        return (Identity<CitizenCriminalLiabilityFz53Record, Long>) super.getIdentity();
    }

    @Override
    public UniqueKey<CitizenCriminalLiabilityFz53Record> getPrimaryKey() {
        return Keys.PK_CITIZEN_CRIMINAL_LIABILITY_FZ53;
    }

    @Override
    public CitizenCriminalLiabilityFz53 as(String alias) {
        return new CitizenCriminalLiabilityFz53(DSL.name(alias), this);
    }

    @Override
    public CitizenCriminalLiabilityFz53 as(Name alias) {
        return new CitizenCriminalLiabilityFz53(alias, this);
    }

    @Override
    public CitizenCriminalLiabilityFz53 as(Table<?> alias) {
        return new CitizenCriminalLiabilityFz53(alias.getQualifiedName(), this);
    }

    /**
     * Rename this table
     */
    @Override
    public CitizenCriminalLiabilityFz53 rename(String name) {
        return new CitizenCriminalLiabilityFz53(DSL.name(name), null);
    }

    /**
     * Rename this table
     */
    @Override
    public CitizenCriminalLiabilityFz53 rename(Name name) {
        return new CitizenCriminalLiabilityFz53(name, null);
    }

    /**
     * Rename this table
     */
    @Override
    public CitizenCriminalLiabilityFz53 rename(Table<?> name) {
        return new CitizenCriminalLiabilityFz53(name.getQualifiedName(), null);
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public CitizenCriminalLiabilityFz53 where(Condition condition) {
        return new CitizenCriminalLiabilityFz53(getQualifiedName(), aliased() ? this : null, null, condition);
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public CitizenCriminalLiabilityFz53 where(Collection<? extends Condition> conditions) {
        return where(DSL.and(conditions));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public CitizenCriminalLiabilityFz53 where(Condition... conditions) {
        return where(DSL.and(conditions));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public CitizenCriminalLiabilityFz53 where(Field<Boolean> condition) {
        return where(DSL.condition(condition));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    @PlainSQL
    public CitizenCriminalLiabilityFz53 where(SQL condition) {
        return where(DSL.condition(condition));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    @PlainSQL
    public CitizenCriminalLiabilityFz53 where(@Stringly.SQL String condition) {
        return where(DSL.condition(condition));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    @PlainSQL
    public CitizenCriminalLiabilityFz53 where(@Stringly.SQL String condition, Object... binds) {
        return where(DSL.condition(condition, binds));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    @PlainSQL
    public CitizenCriminalLiabilityFz53 where(@Stringly.SQL String condition, QueryPart... parts) {
        return where(DSL.condition(condition, parts));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public CitizenCriminalLiabilityFz53 whereExists(Select<?> select) {
        return where(DSL.exists(select));
    }

    /**
     * Create an inline derived table from this table
     */
    @Override
    public CitizenCriminalLiabilityFz53 whereNotExists(Select<?> select) {
        return where(DSL.notExists(select));
    }
}
