# Schema Generator - Columns

Source: https://help.codestencil.com/schemas/schema-generator-columns

Here you enter the columns for your tables.

You should note that primary and foreign key columns are automatically created for you based on the [Relationship ](https://help.codestencil.com/schemas/schema-generator-relationships)you defined between the tables, so you will not need to create these.

![image.png](https://cdn.eniston.com/bases/5691f589-9697-4a3a-b3a1-f6588fa2e596/attachments/1788777513_6a9e94299bfb6.png)

1. **Column** - This is where you specify the name of the column.
2. **Type** - Here you can specify the data type for the column.
3. **Size** - You can specify the size of the column. This usually applies to string-based data types.
4. **Clear** - You can reset whatever entries you have input in (1), (2), and (3) using this button.
5. **Add** - Once you have filled (1), (2), and (3), this button will create a column and it will be listed in (9).
6. **Multiple Columns** - You can specify multiple columns for faster column generation here. You specify one column per line. See [Data Type Expansion](#date-type-expansion) on how to speed up column creation.
7. **Add Columns** -
8. **Table** - This drop-list allows you to select what has already been defined in [Tables](https://help.codestencil.com/schemas/schema-generator-tables).
9. **Existing Columns** - This shows all the columns already created.
10. **Delete** - This will delete whatever column is highlighted.
11. **Save Schema** - You can save whatever you have done so far with this button.

Data Type Expansion



You can speed up the creation of columns with shortened tags/letters enclosed in parentheses. This works in conjunction with configuration settings. For example:

FirstName(s25) will create a string column named "FirstName" of size 25

StartDate(d) will create a DateTime column named "StartDate".

The following letter(s) will expand to the necessary data type:

| **b** - bool | **by** - byte | **sb** - sbyte | **c** - char |
|---|---|---|---|
| **l** -  long | **ul** - ulong | **o** -  object | **s** - short |
| **de** - decimal | **f** - float | **i** - int | **ui** - uint |
| **us** - ushort | **d** - datetime | **s** - string | **gu** - guild |

Click [NEXT](https://help.codestencil.com/schemas/schema-generator-summary) to continue.
