\echo group_factor_map

create table group_factor_map
(
    id                                       integer    primary key generated always as identity,
    factor_group_id                          integer,
    factor_id                                integer,
    factor_sequence                          integer,
    created_at                               timestamp  default now(),
    updated_at                               timestamp,
    constraint foreign_key_group_factor_map_to_factor_group foreign key (factor_group_id) references factor_group(id),
    constraint foreign_key_group_factor_map_to_factor foreign key (factor_id) references factor(id)
);


alter table group_factor_map owner to developer;
