Support user config of notification types, fixes #994

코어에서 지원하는 알림 종류 및 알림 수신 방법이 늘어남에 따라,
관리자가 설정한 범위 내에서 회원들이 알림 수신 방법을 선택할 수 있도록 합니다.
기존에는 수신 여부만 선택할 수 있었으나 이제 더 세부적인 설정이 가능합니다.
예를 들어 웹 알림과 푸시알림은 받고, 메일 알림과 문자 알림은 끌 수 있습니다.

이 기능을 지원하기 위해 ncenterlite_user_set 테이블 스키마를 대폭 조정합니다.
기존 설정은 가능하면 그대로 유지하려고 노력하였습니다.
This commit is contained in:
Kijin Sung 2020-12-17 23:41:31 +09:00
parent 3032784ca7
commit c52187a8f2
14 changed files with 435 additions and 531 deletions

View file

@ -2,12 +2,13 @@
<tables>
<table name="ncenterlite_notify_type" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="equal" column="notify_type_srl" var="notify_type_srl" notnull="notnull" />
<condition operation="equal" column="notify_type_srl" var="notify_type_srl" />
</conditions>
<navigation>
<index var="list_order" default="notify_type_srl" order="asc" />
</navigation>
</query>

View file

@ -17,7 +17,8 @@
<column name="target_summary" var="target_summary" />
<column name="target_browser" var="target_browser" />
<column name="target_url" var="target_url" notnull="notnull" />
<column name="regdate" var="regdate" />
<column name="readed" var="readed" default="N" />
<column name="regdate" var="regdate" default="curdate()" />
<column name="target_p_srl" var="target_p_srl" filter="number" />
<column name="notify_type" var="notify_type" />
</columns>