--- autoreplies-default-group

INSERT INTO autoreply_groups (
    id,
    project_id,
    title,
    deleted,
    channel_ids,

    created_at,
    updated_at
) (
    SELECT 
        autoreply_groups_id_seq.nextval,
        id as project_id,
        'default',
        0,
        '',
        current_timestamp,
        current_timestamp
    FROM
        projects
);
