# Creating a Table

In this class you can create your own custom getters and setters.

**Design Tables**

```java
/**
 * <h1>Represents the customer table</h1>
 */
public class CustomerTable extends TableAdapter<Customer> {

    @Override
    public @NotNull String getName() {
        return "Customer";
    }
}
```

```java
/**
 * <h1>Represents a purchase table</h1>
 */
public class PurchaseTable extends TableAdapter<Purchase> {

    @Override
    public @NotNull String getName() {
        return "Purchase";
    }
}
```

**Add to the Database**

```java
CustomerTable customerTable = new CustomerTable();
database.createTable(customerTable);

PurchaseTable purchaseTable = new PurchaseTable();
database.createTable(purchaseTable);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smuddgge.gitbook.io/squishy-database/creating-a-table.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
