create table tb_notification_target_setting
(
    SETTING_ID   varchar(20) not null comment '설정 ID'
        primary key,
    SETTING_TYPE varchar(50) not null comment '설정 구분 (QNA_MANAGER, BATCH_MANAGER 등)',
    USER_ID      varchar(20) not null comment '사용자 ID',
    REG_DTTM     datetime    null comment '등록 일시',
    RGTR         varchar(20) null comment '등록자',
    MDFCN_DTTM   datetime    null comment '수정 일시',
    MDFR         varchar(20) null comment '수정자',
    constraint fk_notification_target_setting_user
        foreign key (USER_ID) references tb_user (USER_ID)
)
    comment '알림 대상자 설정';

create index idx_notification_target_setting_type
    on tb_notification_target_setting (SETTING_TYPE);

create index idx_notification_target_setting_user
    on tb_notification_target_setting (USER_ID);

