
CREATE TABLE tcg.public.TCG_User_Relationship_Audit (
	  audit_id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY
    , relationship_id INT NOT NULL
    , CONSTRAINT FK_TCG_User_Audit_relationship_id
		FOREIGN KEY (relationship_id)
        REFERENCES tcg.public.TCG_User_Relationship(relationship_id)
    , name_field TEXT NOT NULL
    , value_prev TEXT
    , value_new TEXT
    , change_set_id INT NOT NULL
    , CONSTRAINT FK_TCG_User_Audit_change_set_id
		FOREIGN KEY (change_set_id)
        REFERENCES tcg.public.TCG_Change_Set(change_set_id)
);