SQL Generation - primary key

When generating a create table script is there a way to have it include the creation of the primary key?

Hello,

In order to include PK in script generation you should open RHS Script tab of
the table and check ‘Primary keys’ checkbox. Now PK will be
displayed in script when you use ‘Generate SQL’

Thanks,

Anastasia