You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
clean-parking/DB-DDL/maria/ddl/xitframework/tb_notification_target.sql

19 lines
942 B
SQL

create table tb_notification_target
(
NOTIFICATION_ID varchar(20) not null comment '알림 ID',
USER_ID varchar(20) not null comment '사용자 ID',
READ_YN varchar(1) default 'N' not null comment '확인 여부(Y/N)',
READ_DTTM datetime null comment '확인 일시',
REG_DTTM datetime null comment '등록 일시',
RGTR varchar(20) null comment '등록자',
MDFCN_DTTM datetime null comment '수정 일시',
MDFR varchar(20) null comment '수정자',
primary key (NOTIFICATION_ID, USER_ID),
constraint fk_notification_target_notification
foreign key (NOTIFICATION_ID) references tb_notification (NOTIFICATION_ID),
constraint fk_notification_target_user
foreign key (USER_ID) references tb_user (USER_ID)
)
comment '알림 대상자';