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

Code Example 1

CREATE TABLE table_name (
	column_name TYPE column_constraint,
	table_constraint table_constraint
) INHERITS existing_table_name;

Learn ReactJs, React Native from akashmittal.com