There is main table: Users CREATE TABLE users( id bigserial PRIMARY KEY
There is subordinate table: CREATE TABLE users_history: ... FOREIGN KEY(user_id) REFERENCES users(