/*
 * 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.CitizenAppealingViolationsFz53Record;


/**
 * Обжалование нарушений ФЗ-53
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CitizenAppealingViolationsFz53 extends TableImpl<CitizenAppealingViolationsFz53Record> {

    private static final long serialVersionUID = 1L;

    /**
     * The reference instance of
     * <code>ervu_dashboard.citizen_appealing_violations_fz53</code>
     */
    public static final CitizenAppealingViolationsFz53 CITIZEN_APPEALING_VIOLATIONS_FZ53 = new CitizenAppealingViolationsFz53();

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

    /**
     * The column
     * <code>ervu_dashboard.citizen_appealing_violations_fz53.citizen_appealing_violations_fz53_id</code>.
     */
    public final TableField<CitizenAppealingViolationsFz53Record, Long> CITIZEN_APPEALING_VIOLATIONS_FZ53_ID = createField(DSL.name("citizen_appealing_violations_fz53_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");

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

    /**
     * The column
     * <code>ervu_dashboard.citizen_appealing_violations_fz53.number_appealed</code>.
     * Номер обжалуемого решения
     */
    public final TableField<CitizenAppealingViolationsFz53Record, String> NUMBER_APPEALED = createField(DSL.name("number_appealed"), SQLDataType.VARCHAR, this, "Номер обжалуемого решения");

    /**
     * The column
     * <code>ervu_dashboard.citizen_appealing_violations_fz53.date_appealed</code>.
     * Дата обжалуемого решения
     */
    public final TableField<CitizenAppealingViolationsFz53Record, Date> DATE_APPEALED = createField(DSL.name("date_appealed"), SQLDataType.DATE, this, "Дата обжалуемого решения");

    /**
     * The column
     * <code>ervu_dashboard.citizen_appealing_violations_fz53.case_number</code>.
     * Номер принятого решения
     */
    public final TableField<CitizenAppealingViolationsFz53Record, String> CASE_NUMBER = createField(DSL.name("case_number"), SQLDataType.VARCHAR, this, "Номер принятого решения");

    /**
     * The column
     * <code>ervu_dashboard.citizen_appealing_violations_fz53.decision_date</code>.
     * Дата принятия решения
     */
    public final TableField<CitizenAppealingViolationsFz53Record, Date> DECISION_DATE = createField(DSL.name("decision_date"), SQLDataType.DATE, this, "Дата принятия решения");

    /**
     * The column
     * <code>ervu_dashboard.citizen_appealing_violations_fz53.result_appeal</code>.
     * Результат обжалования
     */
    public final TableField<CitizenAppealingViolationsFz53Record, String> RESULT_APPEAL = createField(DSL.name("result_appeal"), SQLDataType.VARCHAR, this, "Результат обжалования");

    /**
     * The column
     * <code>ervu_dashboard.citizen_appealing_violations_fz53.name_commission</code>.
     * Наименование комиссии, принявшей решение
     */
    public final TableField<CitizenAppealingViolationsFz53Record, String> NAME_COMMISSION = createField(DSL.name("name_commission"), SQLDataType.VARCHAR, this, "Наименование комиссии, принявшей решение");

    /**
     * The column
     * <code>ervu_dashboard.citizen_appealing_violations_fz53.grounds</code>.
     * Основание для внесения записи
     */
    public final TableField<CitizenAppealingViolationsFz53Record, String> GROUNDS = createField(DSL.name("grounds"), SQLDataType.VARCHAR, this, "Основание для внесения записи");

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

    private CitizenAppealingViolationsFz53(Name alias, Table<CitizenAppealingViolationsFz53Record> aliased, Field<?>[] parameters, Condition where) {
        super(alias, null, aliased, parameters, DSL.comment("Обжалование нарушений ФЗ-53"), TableOptions.table(), where);
    }

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

    /**
     * Create an aliased
     * <code>ervu_dashboard.citizen_appealing_violations_fz53</code> table
     * reference
     */
    public CitizenAppealingViolationsFz53(Name alias) {
        this(alias, CITIZEN_APPEALING_VIOLATIONS_FZ53);
    }

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

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

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

    @Override
    public UniqueKey<CitizenAppealingViolationsFz53Record> getPrimaryKey() {
        return Keys.PK_CITIZEN_APPEALING_VIOLATIONS_FZ53;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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