making primary key work inside create

column node's primaryKey attribute is only used during autojoin, this makes the attribute output the correct SQL on create()