Plus the two things are not contradictory. You can do them in the GUi and get the resulting SQL / DDL code to automate them later.