Check out example codes for "postgresql add not null and not empty constraint". It will help you in understanding the concepts better.

Code Example 1

ads character varying(60) NOT NULL CHECK (ads <> '')

Learn ReactJs, React Native from akashmittal.com