Check out example codes for "create table postgresql primary key". It will help you in understanding the concepts better.
Code Example 1
CREATE TABLE TABLE (
column_1 data_type PRIMARY KEY,
column_2 data_type,
…
);
Learn ReactJs, React Native from akashmittal.com