A database modeling tool, not a drawing tool
In a drawing, a foreign key is a line, and you type the column yourself. In ERDsmith the line is the foreign key: the column, its type and its name follow from it.

MemberId is added with Member's type and marked FK.01 · Draw a relationship
Draw a line, get the foreign key
Member’s key has a poor name, Column1. Drag a relationship from Member to Booking and Booking gets Column1 (FK), with the key’s type. The name is no problem: it can change at any time.


02 · Rename the key
Rename the key, the column follows
Rename Member’s key from Column1 to MemberId and the column in Booking takes the new name. Done, nothing else to edit.


03 · Change the key's type
Change the key's type, the column follows
Make Member’s key bigint and Booking’s MemberId is a bigint too. Nothing blocks you: ERDsmith does the follow-up, so a foreign key of another type, which SQL Server refuses with Msg 1778, never exists.


04 · Export the model
Export the model as SQL
Export DDL writes the model as SQL Server’s CREATE TABLE script, the bigint key in both tables. Pick a table and its block is marked. More on exporting DDL.
![The Export DDL tab: the tables list with Member picked, and the script with the block of [dbo].[Member] marked, its MemberId a BIGINT, then [dbo].[Booking] with MemberId a BIGINT and its foreign key to [dbo].[Member].](/assets/export-C62yUg6Z.png)
A drawing or a model
| In a drawing | In ERDsmith | |
|---|---|---|
| The foreign key column | typed by hand | added by the line |
| Its type | whatever was typed | the parent key's, kept in step |
| A rename | every name edited by hand | names follow, each one listed |
| A design SQL Server rejects | found at deploy | marked as you work |