
CREATE TABLE tcg.public.Error_Type_Audit (
	  audit_id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY
    , error_type_id INT NOT NULL
    , CONSTRAINT FK_Error_Type_Audit_error_type_id
		FOREIGN KEY (error_type_id)
        REFERENCES tcg.public.Error_Type(error_type_id)
    , name_field TEXT NOT NULL
    , value_prev TEXT
    , value_new TEXT
    , change_set_id INT NOT NULL
    , CONSTRAINT FK_Error_Type_Audit_change_set_id
		FOREIGN KEY (change_set_id)
        REFERENCES tcg.public.TCG_Change_Set(change_set_id)
);