Files
dax-pay/_config/sql/datas-protocol.sql
DaxPay Dev 0d22a53fa6 feat: 预置用户协议与隐私政策数据(Web端/中文)
- 用户协议(USER_AGREEMENT)与隐私政策(PRIVACY_POLICY)各一条
- 通用支付平台模板,含 [平台名称] 等占位符
- 版本状态 PUBLISHED + default_protocol=true,findDefault 可直接查询
- 可重复执行(ON CONFLICT DO NOTHING)
2026-07-16 13:56:54 +08:00

275 lines
14 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- =====================================================================
-- 用户协议与隐私政策预置数据Web 端 · 中文)
-- 通用支付平台模板,含 [平台名称] 等占位符,部署后请在后台修改为实际内容
-- 可重复执行ON CONFLICT DO NOTHING
-- 依赖表base_user_protocol / base_user_protocol_version
-- =====================================================================
-- ---------------------------------------------------------------------
-- 1. 协议主表base_user_protocol
-- ---------------------------------------------------------------------
-- 用户协议Web 端)
INSERT INTO "public"."base_user_protocol" (
"id", "name", "show_name", "type", "client_type",
"default_protocol", "default_language",
"creator", "create_time", "last_modifier", "last_modified_time",
"version", "deleted"
) VALUES (
1854000000000000001, 'Web端用户协议', '用户协议', 'USER_AGREEMENT', 'WEB',
true, 'zh-CN',
NULL, NOW(), NULL, NOW(),
0, false
) ON CONFLICT ("id") DO NOTHING;
-- 隐私政策Web 端)
INSERT INTO "public"."base_user_protocol" (
"id", "name", "show_name", "type", "client_type",
"default_protocol", "default_language",
"creator", "create_time", "last_modifier", "last_modified_time",
"version", "deleted"
) VALUES (
1854000000000000002, 'Web端隐私政策', '隐私政策', 'PRIVACY_POLICY', 'WEB',
true, 'zh-CN',
NULL, NOW(), NULL, NOW(),
0, false
) ON CONFLICT ("id") DO NOTHING;
-- ---------------------------------------------------------------------
-- 2. 协议版本表base_user_protocol_version已发布版本
-- ---------------------------------------------------------------------
-- 用户协议 · 中文 v1.0(已发布)
INSERT INTO "public"."base_user_protocol_version" (
"id", "protocol_id", "language", "version_no", "version_label",
"title", "content", "content_html", "content_format", "status",
"effective_time", "summary",
"creator", "create_time", "last_modifier", "last_modified_time",
"version", "deleted"
) VALUES (
1854000000000000003,
1854000000000000001,
'zh-CN', 1, 'v1.0',
'用户协议',
$md$
#
**2026716**
使 []"本平台" []"我们"使
使使
---
##
1. [] 使
2. "本服务"线
3.
##
1. ****使
2. ****
3. ****退
4. ****
##
1. ****/使
2. ****
3. ****
4. ****使
5. ****使
##
1. ****线
2. ****
3. ****
-
-
- 退退
4. ****
##
使
1.
2.
3.
4.
5.
6.
7.
##
1.
2. 使
3.
##
1.
2.
3. 使
##
1.
2.
3.
4.
##
1.
2.
3. 线
##
1. ****使
2. ****
3. ****
##
1.
2.
---
****
- []
- []
- []
- []
>
$md$,
NULL, 'MARKDOWN', 'PUBLISHED',
NOW(), '首次发布',
NULL, NOW(), NULL, NOW(),
0, false
) ON CONFLICT ("id") DO NOTHING;
-- 隐私政策 · 中文 v1.0(已发布)
INSERT INTO "public"."base_user_protocol_version" (
"id", "protocol_id", "language", "version_no", "version_label",
"title", "content", "content_html", "content_format", "status",
"effective_time", "summary",
"creator", "create_time", "last_modifier", "last_modified_time",
"version", "deleted"
) VALUES (
1854000000000000004,
1854000000000000002,
'zh-CN', 1, 'v1.0',
'隐私政策',
$md$
#
**2026716**
[]"本平台" []"我们"
使使使
---
##
### 1.
- ****
- ****
- ****
- ****
### 2.
- ****
- ****IP 访
- **使**使
### 3.
- 使
-
## 使
1. ****
2. ****
3. ****使
4. ****
5. ****
##
1. ****
2. ****
3. ****
4. ****
5. ****
##
1. 访
2.
3.
## Cookie
1. 使 Cookie LocalStorage
2. Cookie使
##
1. **访**
2. ****
3. ****
4. ****
5. ****
使
##
1.
2. 使
3.
##
1.
2.
3. 使
##
使
- []
- []
- []
- []
>
$md$,
NULL, 'MARKDOWN', 'PUBLISHED',
NOW(), '首次发布',
NULL, NOW(), NULL, NOW(),
0, false
) ON CONFLICT ("id") DO NOTHING;