Skip to main content

# ColumnStructure

`Object`

This defines a single column object used by Structure.

## Example structure​

    {
        Field: "Column name",
        Type: "Column type",
        Null: "YES",
        Key: "PRI",
        Default: "Some default value",
        Extra: ""
    }

## Properties​

### .Field​

→ String

The column name.

### .Type​

→ String

The column type.

### .Null​

→ Enum → `YES`/`NO`

Whether the column allows null-values.

### .Key​

→ Enum → `` /`PRI`/`MUL`/`UNI`

Key-Values for the table.

- `` (Empty) = None
- `PRI` = Primary
- `MUL` = Indexed
- `UNI` = Unique

### .Default​

→ String / null

Default value for a new row.

### .Extra​

→ Enum → `` /`auto_increment`

Extra values for the table.

- `` (Empty) = None
- `auto_increment` = Primary key will be incremented on new data