package sqlite.kripton96;

import com.abubusoft.kripton.android.sqlite.SQLiteTable;

/**
 * <p>
 * Entity <code>Bean96</code> is associated to table <code>bean96</code>
 * This class represents table associated to entity.
 * </p>
 *  @see Bean96
 */
public class Bean96Table implements SQLiteTable {
  /**
   * Costant represents typeName of table bean96
   */
  public static final String TABLE_NAME = "bean96";

  /**
   * <p>
   * DDL to create table bean96
   * </p>
   *
   * <pre>CREATE TABLE bean96 (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name TEXT, surname TEXT);</pre>
   */
  public static final String CREATE_TABLE_SQL = "CREATE TABLE bean96 (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name TEXT, surname TEXT);";

  /**
   * <p>
   * DDL to drop table bean96
   * </p>
   *
   * <pre>DROP TABLE IF EXISTS bean96;</pre>
   */
  public static final String DROP_TABLE_SQL = "DROP TABLE IF EXISTS bean96;";

  /**
   * Entity's property <code>id</code> is associated to table column <code>id</code>. This costant represents column name.
   *
   *  @see Bean96#id
   */
  public static final String COLUMN_ID = "id";

  /**
   * Entity's property <code>name</code> is associated to table column <code>name</code>. This costant represents column name.
   *
   *  @see Bean96#name
   */
  public static final String COLUMN_NAME = "name";

  /**
   * Entity's property <code>surname</code> is associated to table column <code>surname</code>. This costant represents column name.
   *
   *  @see Bean96#surname
   */
  public static final String COLUMN_SURNAME = "surname";

  /**
   * Columns array
   */
  private static final String[] COLUMNS = {COLUMN_ID, COLUMN_NAME, COLUMN_SURNAME};

  /**
   * Columns array
   */
  @Override
  public String[] columns() {
    return COLUMNS;
  }

  /**
   * table name
   */
  @Override
  public String name() {
    return TABLE_NAME;
  }
}
