Check out example codes for "postgres create table". It will help you in understanding the concepts better.

Code Example 1

-- Basic table creation
CREATE TABLE table_name(
   column1 datatype,
   column2 datatype,
   column3 datatype,
   .....
   columnN datatype,
   PRIMARY KEY( one or more columns )
);

Learn ReactJs, React Native from akashmittal.com