Check out example codes for "restart identity cascade". It will help you in understanding the concepts better.
Code Example 1
TRUNCATE bigtable, fattable RESTART IDENTITY;
Code Example 2
TRUNCATE <table_name> RESTART IDENTITY CASCADE; --RESTART will reset the identity sequence --CASCADE all tables that have a foreign key reference to --table_name will be truncated as well
Learn ReactJs, React Native from akashmittal.com