create-entity-server 0.0.27 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/package.json +1 -1
  2. package/template/configs/cache.json +2 -1
  3. package/template/configs/database.json +18 -7
  4. package/template/entities/README.md +3 -3
  5. package/template/entities/System/Address/addr_dong.json +10115 -0
  6. package/template/entities/System/Address/addr_sido.json +39 -0
  7. package/template/entities/System/Address/addr_sigungu.json +1398 -0
  8. package/template/entities/System/Auth/account.json +94 -18
  9. package/template/entities/System/Auth/account_audit.json +11 -3
  10. package/template/entities/System/Auth/account_device.json +13 -27
  11. package/template/entities/System/Auth/account_login_log.json +17 -7
  12. package/template/entities/System/Auth/anon_device.json +56 -0
  13. package/template/entities/System/Auth/api_keys.json +18 -9
  14. package/template/entities/System/Auth/license.json +41 -20
  15. package/template/entities/System/Auth/rbac_roles.json +10 -7
  16. package/template/entities/System/Backup/backup_log.json +11 -7
  17. package/template/entities/System/Email/smtp_log.json +9 -5
  18. package/template/entities/System/Email/smtp_msg.json +5 -5
  19. package/template/entities/System/Storage/file_backup_log.json +11 -6
  20. package/template/entities/System/Storage/file_download_log.json +7 -5
  21. package/template/entities/System/Storage/file_meta.json +20 -7
  22. package/template/entities/System/system_audit_log.json +38 -34
  23. package/template/entities/company.json +5 -2
  24. package/template/entities/goods.json +10 -3
  25. package/template/entities/todo.json +4 -2
  26. package/template/samples/entities/01_basic_fields.json +15 -2
  27. package/template/samples/entities/02_types_and_defaults.json +15 -5
  28. package/template/samples/entities/03_hash_and_unique.json +18 -3
  29. package/template/samples/entities/04_fk_and_composite_unique.json +18 -3
  30. package/template/samples/entities/05_cache.json +15 -9
  31. package/template/samples/entities/06_history_and_hard_delete.json +19 -6
  32. package/template/samples/entities/07_license_scope.json +18 -3
  33. package/template/samples/entities/08_hook_sql.json +24 -5
  34. package/template/samples/entities/09_hook_entity.json +12 -2
  35. package/template/samples/entities/10_hook_submit_delete.json +14 -5
  36. package/template/samples/entities/11_hook_webhook.json +20 -6
  37. package/template/samples/entities/12_hook_push.json +15 -2
  38. package/template/samples/entities/13_read_only.json +8 -4
  39. package/template/samples/entities/14_optimistic_lock.json +13 -2
  40. package/template/samples/entities/15_reset_defaults.json +7 -1
  41. package/template/samples/entities/16_isolated_license.json +19 -6
  42. package/template/scripts/reset-all.sh +130 -3
  43. package/template/scripts/run.sh +129 -33
  44. package/template/templates/ocr/business_reg.json +145 -0
  45. package/template/templates/ocr/career_cert.json +93 -0
  46. package/template/templates/ocr/driver_license.json +89 -0
  47. package/template/templates/ocr/facility_card.json +82 -0
  48. package/template/templates/ocr/id_card.json +55 -0
  49. package/template/templates/ocr/invoice.json +92 -0
  50. package/template/templates/ocr/namecard.json +116 -0
  51. package/template/templates/ocr/prompts/business_reg.json +14 -0
  52. package/template/templates/ocr/prompts/career_cert.json +16 -0
  53. package/template/templates/ocr/prompts/driver_license.json +14 -0
  54. package/template/templates/ocr/prompts/facility_card.json +15 -0
  55. package/template/templates/ocr/prompts/general.json +13 -0
  56. package/template/templates/ocr/prompts/id_card.json +11 -0
  57. package/template/templates/ocr/prompts/invoice.json +17 -0
  58. package/template/templates/ocr/prompts/namecard.json +15 -0
  59. package/template/templates/ocr/prompts/receipt.json +14 -0
  60. package/template/templates/ocr/receipt.json +79 -0
  61. package/template/configs/auth/identity.json +0 -27
  62. package/template/configs/auth/oauth.json +0 -40
  63. package/template/configs/auth/password.json +0 -33
  64. package/template/configs/auth/privacy_policy.json +0 -28
  65. package/template/configs/auth/two_factor.json +0 -12
  66. package/template/configs/extensions/pg.json +0 -37
  67. package/template/configs/extensions/tax-invoice.json +0 -59
  68. package/template/configs/keys/apns.p8.example +0 -7
  69. package/template/configs/keys/firebase.pem.example +0 -7
  70. package/template/configs/notification/alimtalk.json +0 -75
  71. package/template/configs/notification/push.json +0 -25
  72. package/template/configs/notification/sms.json +0 -54
  73. package/template/entities/System/Auth/account_oauth.json +0 -45
  74. package/template/entities/System/Auth/identity_verification.json +0 -95
  75. package/template/entities/System/Auth/password_history.json +0 -20
  76. package/template/entities/System/Notification/alimtalk_log.json +0 -45
  77. package/template/entities/System/Notification/alimtalk_msg.json +0 -39
  78. package/template/entities/System/Notification/friendtalk_log.json +0 -48
  79. package/template/entities/System/Notification/friendtalk_msg.json +0 -63
  80. package/template/entities/System/Notification/sms_log.json +0 -26
  81. package/template/entities/System/Notification/sms_msg.json +0 -52
  82. package/template/entities/System/Notification/sms_verification.json +0 -40
  83. package/template/entities/System/Payment/pg_cancel.json +0 -45
  84. package/template/entities/System/Payment/pg_order.json +0 -88
  85. package/template/entities/System/Payment/pg_webhook_log.json +0 -37
  86. package/template/entities/System/Push/push_log.json +0 -71
  87. package/template/entities/System/Push/push_msg.json +0 -55
  88. package/template/templates/email/account/dormancy_warning.html +0 -20
  89. package/template/templates/email/account/password_expiry_warning.html +0 -21
  90. package/template/templates/email/auth/2fa_disabled.html +0 -23
  91. package/template/templates/email/auth/2fa_recovery_regenerated.html +0 -31
  92. package/template/templates/email/auth/2fa_setup_complete.html +0 -43
  93. package/template/templates/email/auth/email_verification.html +0 -18
  94. package/template/templates/email/auth/force_reset.html +0 -18
  95. package/template/templates/email/auth/password_reset.html +0 -19
  96. package/template/templates/email/auth/verification.html +0 -15
  97. package/template/templates/email/auth/verification_link.html +0 -25
  98. package/template/templates/email/auth/welcome.html +0 -18
  99. package/template/templates/email/order/order_confirmation.html +0 -30
  100. /package/template/configs/{notification/smtp.json → smtp.json} +0 -0
@@ -1,37 +0,0 @@
1
- {
2
- "enabled": false,
3
- "default": "toss_payments",
4
- "webhook_secret": "${PG_WEBHOOK_SECRET}",
5
- "order_id_prefix": "ORD",
6
- "success_url": "/payment/success",
7
- "fail_url": "/payment/fail",
8
- "webhook_url": "/v1/pg/webhook",
9
- "amount_limit": {
10
- "min": 100,
11
- "max": 10000000
12
- },
13
- "workers": 2,
14
- "providers": [
15
- {
16
- "driver": "toss_payments",
17
- "client_key": "${TOSS_CLIENT_KEY}",
18
- "secret_key": "${TOSS_SECRET_KEY}",
19
- "api_url": "https://api.tosspayments.com",
20
- "api_version": "2022-11-16"
21
- },
22
- {
23
- "_comment": "NHN KCP (Phase 2)",
24
- "driver": "kcp",
25
- "site_cd": "${KCP_SITE_CD}",
26
- "secret_key": "${KCP_SECRET_KEY}",
27
- "api_url": "https://api.pay.kcp.co.kr"
28
- },
29
- {
30
- "_comment": "KG 이니시스 (Phase 2)",
31
- "driver": "inicis",
32
- "store_id": "${INICIS_STORE_ID}",
33
- "sign_key": "${INICIS_SIGN_KEY}",
34
- "api_url": "https://api.inicis.com"
35
- }
36
- ]
37
- }
@@ -1,59 +0,0 @@
1
- {
2
- "enabled": true,
3
- "default": "barobill",
4
- "workers": 2,
5
- "queue_size": 100,
6
- "dispatch_interval_sec": 10,
7
- "max_retries": 3,
8
- "providers": [
9
- {
10
- "driver": "barobill",
11
- "cert_key": "${TAXINVOICE_CERT_KEY}",
12
- "corp_num": "${TAXINVOICE_CORP_NUM}",
13
- "user_id": "${TAXINVOICE_USER_ID}",
14
- "api_endpoint": "https://barobill.co.kr/TAPI/TaxInvoiceService.asmx",
15
- "timeout_sec": 30
16
- },
17
- {
18
- "driver": "popbill",
19
- "link_id": "${TAXINVOICE_LINK_ID}",
20
- "secret_key": "${TAXINVOICE_SECRET_KEY}",
21
- "corp_num": "${TAXINVOICE_CORP_NUM}",
22
- "api_endpoint": "https://taxinvoice.linkhub.co.kr",
23
- "timeout_sec": 30
24
- },
25
- {
26
- "driver": "bolta",
27
- "api_key": "${TAXINVOICE_API_KEY}",
28
- "customer_key": "${TAXINVOICE_CUSTOMER_KEY}",
29
- "api_endpoint": "https://xapi.bolta.io/v1",
30
- "timeout_sec": 30
31
- },
32
- {
33
- "driver": "smartbill",
34
- "api_key": "${TAXINVOICE_API_KEY}",
35
- "corp_num": "${TAXINVOICE_CORP_NUM}",
36
- "api_endpoint": "https://nxapi.smartbill.co.kr",
37
- "timeout_sec": 30
38
- },
39
- {
40
- "driver": "esero",
41
- "corp_num": "${TAXINVOICE_CORP_NUM}",
42
- "cert_path": "/run/secrets/esero_cert.pfx",
43
- "cert_pass": "${TAXINVOICE_CERT_PASS}",
44
- "api_endpoint": "https://esero.go.kr/api/v1",
45
- "timeout_sec": 60
46
- }
47
- ],
48
- "nts": {
49
- "taxation_option": 1,
50
- "taxation_add_tax_allow": 0,
51
- "tax_exemption_option": 1,
52
- "tax_exemption_add_tax_allow": 0
53
- },
54
- "notify": ["log", "smtp", "alimtalk"],
55
- "sync": {
56
- "state_sync_interval_min": 10,
57
- "max_list_days": 200
58
- }
59
- }
@@ -1,7 +0,0 @@
1
- -----BEGIN PRIVATE KEY-----
2
- (샘플) Apple Developer Console → Certificates, Identifiers & Profiles
3
- → Keys → "+" 버튼으로 APNs 키 생성 후 다운로드한 .p8 파일 내용을 여기에 붙여넣으세요.
4
-
5
- 실제 키는 아래와 같은 형식입니다:
6
- MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg...
7
- -----END PRIVATE KEY-----
@@ -1,7 +0,0 @@
1
- -----BEGIN PRIVATE KEY-----
2
- (샘플) Firebase Console → 프로젝트 설정 → 서비스 계정 → 새 비공개 키 생성
3
- 으로 다운로드한 JSON 파일의 private_key 값을 여기에 붙여넣으세요.
4
-
5
- 실제 키는 아래와 같은 형식입니다:
6
- MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC...
7
- -----END PRIVATE KEY-----
@@ -1,75 +0,0 @@
1
- {
2
- "_comment": "알림톡(Kakao Alimtalk) 설정 예시 — 4개 프로바이더 전체 구성",
3
- "enabled": false,
4
- "default": "aligo",
5
- "sender_key": "YOUR_KAKAO_SENDER_KEY",
6
- "workers": 2,
7
- "dispatch_interval_sec": 5,
8
- "queue_size": 200,
9
- "max_retries": 3,
10
- "fallback": {
11
- "enabled": true,
12
- "sender": "01012345678",
13
- "type": "sms"
14
- },
15
- "template_cache_ttl_sec": 300,
16
- "providers": {
17
- "aligo": {
18
- "driver": "aligo",
19
- "api_key": "YOUR_ALIGO_API_KEY",
20
- "user_id": "YOUR_ALIGO_USER_ID",
21
- "sender_key": "YOUR_KAKAO_SENDER_KEY"
22
- },
23
- "solapi": {
24
- "driver": "solapi",
25
- "api_key": "YOUR_SOLAPI_API_KEY",
26
- "api_secret": "YOUR_SOLAPI_API_SECRET",
27
- "pf_id": "YOUR_SOLAPI_PF_ID",
28
- "sender_key": "YOUR_KAKAO_SENDER_KEY"
29
- },
30
- "ppurio": {
31
- "driver": "ppurio",
32
- "account": "YOUR_PPURIO_ACCOUNT",
33
- "api_key": "YOUR_PPURIO_API_KEY",
34
- "sender_key": "YOUR_KAKAO_SENDER_KEY"
35
- },
36
- "nhn": {
37
- "driver": "nhn_cloud",
38
- "app_key": "YOUR_NHN_APP_KEY",
39
- "secret_key": "YOUR_NHN_SECRET_KEY",
40
- "sender_key": "YOUR_KAKAO_SENDER_KEY"
41
- }
42
- },
43
- "templates": [
44
- {
45
- "code": "AUTH_001",
46
- "description": "인증번호 발송",
47
- "variables": ["code", "minutes"],
48
- "fallback_sms": true
49
- },
50
- {
51
- "code": "ORDER_001",
52
- "description": "주문 접수 확인",
53
- "variables": ["name", "order_no", "amount"],
54
- "fallback_sms": true
55
- },
56
- {
57
- "code": "DELIVERY_001",
58
- "description": "배송 시작 알림",
59
- "variables": ["name", "tracking_no", "courier"],
60
- "fallback_sms": true
61
- },
62
- {
63
- "code": "PAYMENT_001",
64
- "description": "결제 완료",
65
- "variables": ["name", "amount", "method"],
66
- "fallback_sms": false
67
- },
68
- {
69
- "code": "NOTICE_001",
70
- "description": "일반 공지",
71
- "variables": ["title", "content"],
72
- "fallback_sms": false
73
- }
74
- ]
75
- }
@@ -1,25 +0,0 @@
1
- {
2
- "workers": 2,
3
- "queue_size": 500,
4
- "fcm": {
5
- "enabled": false,
6
- "type": "service_account",
7
- "project_id": "your-firebase-project-id",
8
- "private_key_id": "abc123def456...",
9
- "private_key_file": "./configs/keys/firebase.pem",
10
- "client_email": "firebase-adminsdk-xxxxx@your-firebase-project-id.iam.gserviceaccount.com",
11
- "client_id": "123456789012345678901",
12
- "auth_uri": "https://accounts.google.com/o/oauth2/auth",
13
- "token_uri": "https://oauth2.googleapis.com/token",
14
- "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
15
- "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-xxxxx%40your-firebase-project-id.iam.gserviceaccount.com"
16
- },
17
- "apns": {
18
- "enabled": false,
19
- "key_file": "./configs/keys/apns.p8",
20
- "key_id": "ABCDE12345",
21
- "team_id": "FGHIJ67890",
22
- "bundle_id": "com.example.myapp",
23
- "production": false
24
- }
25
- }
@@ -1,54 +0,0 @@
1
- {
2
- "enabled": true,
3
- "default": "aligo",
4
- "sender": "01012345678",
5
- "workers": 2,
6
- "queue_size": 200,
7
- "dispatch_interval_sec": 5,
8
- "max_retries": 3,
9
- "auto_lms": true,
10
- "lms_threshold_bytes": 80,
11
- "providers": {
12
- "aligo": {
13
- "driver": "aligo",
14
- "api_key": "${ALIGO_API_KEY}",
15
- "user_id": "${ALIGO_USER_ID}",
16
- "sender": "01012345678"
17
- },
18
- "solapi": {
19
- "driver": "solapi",
20
- "api_key": "${SOLAPI_API_KEY}",
21
- "api_secret": "${SOLAPI_API_SECRET}",
22
- "sender": "01012345678"
23
- },
24
- "ppurio": {
25
- "driver": "ppurio",
26
- "account": "${PPURIO_ACCOUNT}",
27
- "api_key": "${PPURIO_API_KEY}",
28
- "sender": "01012345678"
29
- },
30
- "nhn": {
31
- "driver": "nhn_cloud",
32
- "app_key": "${NHN_SMS_APP_KEY}",
33
- "secret_key": "${NHN_SMS_SECRET_KEY}",
34
- "sender": "01012345678"
35
- },
36
- "aws": {
37
- "driver": "aws_sns",
38
- "region": "ap-northeast-2",
39
- "access_key": "${AWS_ACCESS_KEY}",
40
- "secret_key": "${AWS_SECRET_KEY}"
41
- }
42
- },
43
- "rate_limit": {
44
- "per_number_per_minute": 5,
45
- "per_minute": 60,
46
- "per_hour": 500
47
- },
48
- "verification": {
49
- "code_length": 6,
50
- "ttl_sec": 180,
51
- "max_attempts": 5,
52
- "cooldown_sec": 60
53
- }
54
- }
@@ -1,45 +0,0 @@
1
- {
2
- "name": "account_oauth",
3
- "description": "소셜 로그인 OAuth 프로바이더 연동 정보. 사용자 환경에 맞게 index·fields를 자유롭게 확장할 수 있습니다.",
4
- "history": false,
5
- "hard_delete": true,
6
- "index": {
7
- "account_seq": {
8
- "required": true,
9
- "comment": "계정 seq"
10
- },
11
- "provider": {
12
- "type": ["google", "github", "naver", "kakao", "apple"],
13
- "required": true
14
- },
15
- "provider_id": {
16
- "type": "string",
17
- "required": true,
18
- "comment": "프로바이더 고유 사용자 ID"
19
- },
20
- "status": {
21
- "type": ["active", "unlinked"],
22
- "default": "active"
23
- }
24
- },
25
- "fields": {
26
- "email": { "type": "email", "comment": "프로바이더에서 제공한 이메일" },
27
- "name": { "type": "string", "comment": "프로바이더에서 제공한 이름" },
28
- "profile_image": { "type": "string", "comment": "프로필 이미지 URL" },
29
- "access_token": {
30
- "type": "string",
31
- "comment": "OAuth access token (암호화 저장)"
32
- },
33
- "refresh_token": {
34
- "type": "string",
35
- "comment": "OAuth refresh token (암호화 저장)"
36
- },
37
- "token_expires_at": {
38
- "type": "string",
39
- "comment": "access token 만료 시각 (RFC3339)"
40
- },
41
- "raw": { "type": "json", "comment": "프로바이더 원본 응답 (디버깅용)" },
42
- "linked_at": { "type": "string", "comment": "연결 시각" },
43
- "unlinked_at": { "type": "string", "comment": "연결 해제 시각" }
44
- }
45
- }
@@ -1,95 +0,0 @@
1
- {
2
- "name": "identity_verification",
3
- "description": "휴대폰 본인인증 요청 및 결과 저장. 사용자 환경에 맞게 index·fields를 자유롭게 확장할 수 있습니다.",
4
- "history": false,
5
- "hard_delete": false,
6
- "compress": true,
7
- "index": {
8
- "request_id": {
9
- "type": "string",
10
- "required": true,
11
- "unique": true,
12
- "comment": "인증 요청 고유 ID (32바이트 hex)"
13
- },
14
- "status": {
15
- "type": ["pending", "verified", "failed", "expired"],
16
- "default": "pending"
17
- },
18
- "purpose": {
19
- "type": [
20
- "signup",
21
- "find_account",
22
- "password_reset",
23
- "adult_verify",
24
- "identity_change"
25
- ],
26
- "required": true
27
- },
28
- "provider": {
29
- "type": ["nice", "kmc", "danal"],
30
- "required": true
31
- }
32
- },
33
- "fields": {
34
- "ci_hash": {
35
- "type": "string",
36
- "comment": "CI의 SHA-256 해시 (중복 조회용)"
37
- },
38
- "di": {
39
- "type": "string",
40
- "comment": "DI 원문 (암호화 저장)"
41
- },
42
- "name": {
43
- "type": "string",
44
- "comment": "인증된 실명"
45
- },
46
- "birth_date": {
47
- "type": "string",
48
- "comment": "생년월일 (YYYYMMDD)"
49
- },
50
- "gender": {
51
- "type": "string",
52
- "comment": "성별 (M/F)"
53
- },
54
- "carrier": {
55
- "type": "string",
56
- "comment": "통신사 코드"
57
- },
58
- "phone": {
59
- "type": "string",
60
- "comment": "인증 휴대폰 번호"
61
- },
62
- "nationality": {
63
- "type": "string",
64
- "comment": "내/외국인 (local/foreign)"
65
- },
66
- "account_seq": {
67
- "type": "int",
68
- "comment": "연결된 계정 seq (인증 완료 후 설정)"
69
- },
70
- "ip_address": {
71
- "type": "string",
72
- "comment": "요청 IP 주소"
73
- },
74
- "user_agent": {
75
- "type": "string",
76
- "comment": "요청 User-Agent"
77
- },
78
- "verified_at": {
79
- "type": "string",
80
- "comment": "인증 완료 시각 (RFC3339)"
81
- },
82
- "expires_at": {
83
- "type": "string",
84
- "comment": "요청 만료 시각 (RFC3339)"
85
- },
86
- "error_message": {
87
- "type": "string",
88
- "comment": "실패 시 에러 메시지"
89
- },
90
- "raw_response": {
91
- "type": "json",
92
- "comment": "중계사 원본 응답 (디버깅용, 암호화)"
93
- }
94
- }
95
- }
@@ -1,20 +0,0 @@
1
- {
2
- "name": "password_history",
3
- "description": "비밀번호 변경 이력 (재사용 금지 정책용) 사용자 환경에 맞게 index·fields를 자유롭게 확장할 수 있습니다.",
4
- "hard_delete": true,
5
- "index": {
6
- "account_seq": {
7
- "comment": "계정 seq",
8
- "type": "integer",
9
- "required": true
10
- }
11
- },
12
- "fields": {
13
- "passwd_hash": {
14
- "comment": "변경 시점의 비밀번호 해시 (salt 포함)"
15
- },
16
- "changed_time": {
17
- "comment": "비밀번호 변경 시각"
18
- }
19
- }
20
- }
@@ -1,45 +0,0 @@
1
- {
2
- "name": "alimtalk_log",
3
- "description": "알림톡 발송 로그 — 워커가 소비하는 DB 큐 역할을 합니다. 사용자 환경에 맞게 index·fields를 자유롭게 확장할 수 있습니다.",
4
- "history": false,
5
- "read_only": true,
6
- "compress": true,
7
- "index": {
8
- "status": {
9
- "type": [
10
- "pending",
11
- "processing",
12
- "sent",
13
- "delivered",
14
- "failed",
15
- "expired"
16
- ],
17
- "default": "pending",
18
- "comment": "발송 상태 (delivered = 프로바이더 수신 확인)"
19
- },
20
- "template_code": {
21
- "comment": "카카오 알림톡 템플릿 코드",
22
- "required": true
23
- },
24
- "receiver": {
25
- "comment": "수신자 전화번호",
26
- "required": true
27
- },
28
- "alimtalk_msg_seq": {
29
- "comment": "alimtalk_msg 참조 seq"
30
- }
31
- },
32
- "fields": {
33
- "template_name": { "comment": "내부 템플릿 이름" },
34
- "variables_json": { "type": "text", "comment": "템플릿 변수 JSON" },
35
- "provider": { "comment": "사용 프로바이더" },
36
- "provider_msg_id": { "comment": "프로바이더 메시지 ID" },
37
- "error_message": { "type": "text", "comment": "오류 메시지" },
38
- "retry_count": { "type": "uint", "default": 0 },
39
- "sent_at": { "type": "string" },
40
- "delivered_at": {
41
- "type": "string",
42
- "comment": "프로바이더 수신 확인 시각"
43
- }
44
- }
45
- }
@@ -1,39 +0,0 @@
1
- {
2
- "name": "alimtalk_msg",
3
- "description": "알림톡 발송 트리거 엔티티 — Hook 또는 API를 통해 생성되면 알림톡 발송이 시작됩니다. 사용자 환경에 맞게 index·fields를 자유롭게 확장할 수 있습니다.",
4
- "history": false,
5
- "index": {
6
- "template_code": {
7
- "comment": "카카오 알림톡 템플릿 코드",
8
- "required": true
9
- },
10
- "receiver": {
11
- "comment": "수신자 전화번호",
12
- "required": true
13
- },
14
- "status": {
15
- "type": ["pending", "processing", "sent", "delivered", "failed"],
16
- "default": "pending",
17
- "comment": "발송 상태 (delivered = 프로바이더 수신 확인)"
18
- }
19
- },
20
- "fields": {
21
- "variables_json": {
22
- "type": "text",
23
- "comment": "템플릿 변수 JSON (#{key} 바인딩)"
24
- },
25
- "provider": { "comment": "프로바이더 키 (빈 값이면 default)" },
26
- "ref_entity": { "comment": "참조 엔티티 이름" },
27
- "ref_seq": { "type": "int" }
28
- },
29
- "hooks": {
30
- "after_insert": [
31
- {
32
- "type": "alimtalk",
33
- "alimtalk_receiver": "${new.receiver}",
34
- "alimtalk_template_code": "${new.template_code}",
35
- "alimtalk_variables": "${new.variables_json}"
36
- }
37
- ]
38
- }
39
- }
@@ -1,48 +0,0 @@
1
- {
2
- "name": "friendtalk_log",
3
- "description": "친구톡(브랜드메시지) 발송 로그 — 워커가 소비하는 DB 큐 역할을 합니다. 사용자 환경에 맞게 index·fields를 자유롭게 확장할 수 있습니다.",
4
- "history": false,
5
- "read_only": true,
6
- "compress": true,
7
- "index": {
8
- "status": {
9
- "type": ["pending", "processing", "sent", "failed", "expired"],
10
- "default": "pending",
11
- "comment": "발송 상태"
12
- },
13
- "msg_type": {
14
- "type": [
15
- "text",
16
- "image",
17
- "wide_image",
18
- "wide_item_list",
19
- "carousel"
20
- ],
21
- "default": "text"
22
- },
23
- "receiver": { "comment": "수신자 전화번호", "required": true },
24
- "friendtalk_msg_seq": { "comment": "friendtalk_msg 참조 seq" }
25
- },
26
- "fields": {
27
- "content": { "type": "text", "comment": "메시지 본문" },
28
- "image_url": { "comment": "이미지 URL" },
29
- "image_link": { "comment": "이미지 클릭 시 이동 URL" },
30
- "is_ad": {
31
- "type": "bool",
32
- "default": true,
33
- "comment": "광고성 메시지 여부"
34
- },
35
- "buttons_json": { "type": "text", "comment": "버튼 목록 JSON" },
36
- "carousel_json": { "type": "text", "comment": "캐러셀 데이터 JSON" },
37
- "items_json": {
38
- "type": "text",
39
- "comment": "와이드 아이템 리스트 JSON"
40
- },
41
- "header": { "comment": "와이드 아이템 리스트 헤더" },
42
- "provider": { "comment": "사용 프로바이더" },
43
- "provider_msg_id": { "comment": "프로바이더 메시지 ID" },
44
- "error_message": { "type": "text", "comment": "오류 메시지" },
45
- "retry_count": { "type": "uint", "default": 0 },
46
- "sent_at": { "type": "string" }
47
- }
48
- }
@@ -1,63 +0,0 @@
1
- {
2
- "name": "friendtalk_msg",
3
- "description": "친구톡(브랜드메시지) 발송 트리거 엔티티 — Hook 또는 API를 통해 생성되면 친구톡 발송이 시작됩니다. 사용자 환경에 맞게 index·fields를 자유롭게 확장할 수 있습니다.",
4
- "history": false,
5
- "index": {
6
- "receiver": { "comment": "수신자 전화번호", "required": true },
7
- "msg_type": {
8
- "type": [
9
- "text",
10
- "image",
11
- "wide_image",
12
- "wide_item_list",
13
- "carousel"
14
- ],
15
- "default": "text"
16
- },
17
- "status": {
18
- "type": ["pending", "processing", "sent", "failed"],
19
- "default": "pending"
20
- }
21
- },
22
- "fields": {
23
- "content": {
24
- "type": "text",
25
- "required": true,
26
- "comment": "메시지 본문"
27
- },
28
- "image_url": { "comment": "이미지 URL" },
29
- "image_link": { "comment": "이미지 클릭 시 이동 URL" },
30
- "is_ad": {
31
- "type": "bool",
32
- "default": true,
33
- "comment": "광고성 메시지 여부"
34
- },
35
- "buttons_json": { "type": "text", "comment": "버튼 목록 JSON" },
36
- "carousel_json": { "type": "text", "comment": "캐러셀 데이터 JSON" },
37
- "items_json": {
38
- "type": "text",
39
- "comment": "와이드 아이템 리스트 JSON"
40
- },
41
- "header": { "comment": "와이드 아이템 리스트 헤더" },
42
- "provider": { "comment": "프로바이더 키 (빈 값이면 default)" },
43
- "ref_entity": { "comment": "참조 엔티티 이름" },
44
- "ref_seq": { "type": "int" }
45
- },
46
- "hooks": {
47
- "after_insert": [
48
- {
49
- "type": "friendtalk",
50
- "friendtalk_receiver": "${new.receiver}",
51
- "friendtalk_content": "${new.content}",
52
- "friendtalk_msg_type": "${new.msg_type}",
53
- "friendtalk_image_url": "${new.image_url}",
54
- "friendtalk_image_link": "${new.image_link}",
55
- "friendtalk_is_ad": "${new.is_ad}",
56
- "friendtalk_buttons_json": "${new.buttons_json}",
57
- "friendtalk_carousel_json": "${new.carousel_json}",
58
- "friendtalk_items_json": "${new.items_json}",
59
- "friendtalk_header": "${new.header}"
60
- }
61
- ]
62
- }
63
- }
@@ -1,26 +0,0 @@
1
- {
2
- "name": "sms_log",
3
- "description": "SMS/LMS/MMS 발송 이력 로그. 사용자 환경에 맞게 index·fields를 자유롭게 확장할 수 있습니다.",
4
- "license_scope": false,
5
- "hard_delete": true,
6
- "history": false,
7
- "read_only": true,
8
- "compress": true,
9
- "index": {
10
- "status": { "type": ["pending", "processing", "sent", "failed"] },
11
- "msg_type": { "type": ["sms", "lms", "mms"] },
12
- "receiver": { "type": "string" },
13
- "sms_msg_seq": { "comment": "sms_msg 참조 seq" }
14
- },
15
- "fields": {
16
- "sender": { "type": "string" },
17
- "subject": { "type": "string" },
18
- "content": { "type": "string" },
19
- "image_url": { "type": "string", "comment": "MMS 이미지 URL" },
20
- "provider": { "type": "string" },
21
- "provider_msg_id": { "type": "string" },
22
- "error_message": { "type": "string" },
23
- "retry_count": { "type": "uint" },
24
- "sent_at": { "type": "string" }
25
- }
26
- }