위챗

테이블 (33)

tb_cmpgn_info

  • cmpgn_id — bigint — 기본 키 — NOT NULL — 캠페인 ID (PK)
  • cmpgn_type — text — NOT NULL — 발송 모드: SERVICE(개인화 알림형) | ADS(방송형/군발)
  • cmpgn_nm — text — 캠페인명
  • msg_type — text — 메시지 종류
  • tmpl_id — text — (서비스성) 승인된 템플릿 ID
  • pyld_tmpl — jsonb — 변수 치환 페이로드 템플릿 (JSONB)
  • stat_cd — text — 캠페인 상태코드
  • tot_cnt — integer — 전체 대상 수
  • snt_cnt — integer — 성공 수 (비정규화 집계)
  • fail_cnt — integer — 실패 수 (비정규화 집계)
  • reg_dt — timestamp with time zone — 생성 시각
  • lnk_url — text — 템플릿 메시지 클릭 시 이동 링크(백엔드 발송 접수 시 기록)

tb_dlvr_evt

  • dlvr_evt_id — bigint — 기본 키 — NOT NULL — 우편함 이벤트 ID (PK)
  • evt_type_cd — text — NOT NULL — 이벤트 유형: TEMPLATE(템플릿 도달)|MASS(군발 완료)
  • wx_msg_id — bigint — NOT NULL — 콜백 MsgID(잡 매칭 키)
  • dlvr_stat_cd — text — TEMPLATE 전용: DELIVERED|BLOCKED|SYSTEM_FAILED
  • succ_yn — character(1) — MASS 전용: 콜백 Status가 send success면 Y, 그 외 N
  • tot_cnt — integer — MASS 전용: TotalCount(전체 대상)
  • fltr_cnt — integer — MASS 전용: FilterCount(필터 후 실발송 대상)
  • snt_cnt — integer — MASS 전용: SentCount(성공)
  • err_cnt — integer — MASS 전용: ErrorCount(실패)
  • prcs_stat_cd — text — NOT NULL — 처리 상태(PENDING|DONE|EXPIRED)
  • prcs_dt — timestamp with time zone — DONE/EXPIRED 처리 시각
  • reg_dt — timestamp with time zone — NOT NULL — 수신(INSERT) 시각

tb_mass_art_stat

  • stat_id — bigint — 기본 키 — NOT NULL — 통계 ID (PK)
  • mass_job_id — bigint — 외래 키 → tb_mass_job.mass_job_id — NOT NULL — 군발 작업 ID (FK -> tb_mass_job)
  • stat_dt — date — 통계 일자
  • rd_cnt — integer — 원문 열람 수
  • shr_cnt — integer — 공유 수
  • fav_cnt — integer — 즐겨찾기 수

tb_mass_job

  • mass_job_id — bigint — 기본 키 — NOT NULL — 군발 작업 ID (PK)
  • cmpgn_id — bigint — 외래 키 → tb_cmpgn_info.cmpgn_id — NOT NULL — 캠페인 ID (FK -> tb_cmpgn_info)
  • tgt_type — text — 대상 유형: ALL(전체) | TAG(태그) | OPENID_LIST(지정목록)
  • tag_id — bigint — 대상 태그 ID
  • msg_type — text — 메시지 유형(mpnews/text/image 등)
  • media_id — text — 소재 ID (uploadnews 등)
  • wx_msg_id — bigint — mass/sendall 응답 msg_id (상태조회/콜백 매칭 키)
  • wx_msg_data_id — bigint — 통계 조회용 msg_data_id (datacube)
  • stat_cd — text — 상태코드(DRAFT~SENT/FAILED/STATS_DONE)
  • tot_cnt — integer — 콜백 TotalCount (전체 수)
  • fltr_cnt — integer — 콜백 FilterCount (필터 후 수)
  • snt_cnt — integer — 콜백 SentCount (성공 수)
  • err_cnt — integer — 콜백 ErrorCount (실패 수)
  • sbmt_dt — timestamp with time zone — 발송 접수 시각 (월 발송 횟수 차감 지점)
  • fnl_dt — timestamp with time zone — 결과 확정 시각
  • reg_dt — timestamp with time zone — 생성 시각
  • openid_list — jsonb — 지정목록(OPENID_LIST) 발송 대상 openid 배열 (JSONB)
  • schd_dt — timestamp with time zone — 발송 예정 시각 (SCHEDULED 수거 기준 — 즉시 발송은 접수 시각)
  • payload — jsonb — 발송 콘텐츠 원본(JSONB, msg_type별 구조)

tb_mass_job_hist

  • hist_id — bigint — 기본 키 — NOT NULL — 이력 ID (PK)
  • mass_job_id — bigint — 외래 키 → tb_mass_job.mass_job_id — NOT NULL — 군발 작업 ID (FK -> tb_mass_job)
  • evt_type — text — 이벤트 유형(CREATED/SUBMITTED/FAILED 등)
  • fr_stat_cd — text — 전이 전 상태
  • to_stat_cd — text — 전이 후 상태
  • dtl — jsonb — 상세 정보 (JSONB) - 콜백 원문 요약/에러 사유 등
  • reg_dt — timestamp with time zone — 기록 시각

tb_rcpnt_info

  • openid — text — 기본 키 — NOT NULL — 수신자 OpenID (PK)
  • last_intrc_dt — timestamp with time zone — 최근 상호작용 시각 (48시간 윈도우 판정)
  • subsc_stat_cd — text — 구독 상태코드 (예: SUBSCRIBED)
  • subsc_scn — text — 구독 경로/시나리오
  • tag_list — jsonb — 태그 목록 (JSONB)
  • upd_dt — timestamp with time zone — 갱신 시각
  • opt_out_yn — boolean — 수신거부 여부(true=발송 차단)
  • opt_out_dt — timestamp with time zone — 수신거부 등록 시각

tb_send_job

  • send_job_id — bigint — 기본 키 — NOT NULL — 발송 작업 ID (PK)
  • cmpgn_id — bigint — 외래 키 → tb_cmpgn_info.cmpgn_id — NOT NULL — 캠페인 ID (FK -> tb_cmpgn_info)
  • openid — text — NOT NULL — 수신자 OpenID
  • idmp_key — text — NOT NULL — 멱등키(cmpgn_id:openid, UNIQUE)
  • stat_cd — text — NOT NULL — 상태코드(PENDING/SENDING/SENT/FAILED 등)
  • atmpt_cnt — integer — 시도 횟수
  • max_atmpt_cnt — integer — 최대 시도 횟수
  • wx_errcd — integer — WeChat API 응답 errcode
  • wx_msg_id — bigint — 발송 성공 시 메시지 ID
  • last_err_msg — text — 마지막 에러 메시지
  • reg_dt — timestamp with time zone — 생성 시각
  • enq_dt — timestamp with time zone — 큐 투입(enqueue) 시각
  • frst_atmpt_dt — timestamp with time zone — 최초 시도 시각
  • last_atmpt_dt — timestamp with time zone — 마지막 시도 시각
  • schd_dt — timestamp with time zone — 다음 재시도 예정 시각
  • snt_dt — timestamp with time zone — 최종 성공 시각
  • fnl_dt — timestamp with time zone — 종료 상태(SENT/FAILED/SKIPPED) 확정 시각
  • upd_dt — timestamp with time zone — 갱신 시각
  • payload — jsonb — 수신자별 치환 데이터(JSONB)
  • dlvr_stat_cd — text — 도달 상태(DELIVERED|BLOCKED|SYSTEM_FAILED)
  • dlvr_dt — timestamp with time zone — 도달 확정 시각

tb_send_job_hist

  • hist_id — bigint — 기본 키 — NOT NULL — 이력 ID (PK)
  • send_job_id — bigint — 외래 키 → tb_send_job.send_job_id — NOT NULL — 발송 작업 ID (FK -> tb_send_job)
  • cmpgn_id — bigint — NOT NULL — 캠페인 ID
  • openid — text — NOT NULL — 수신자 OpenID
  • evt_type — text — NOT NULL — 이벤트 유형(CREATED/SENT/FAILED 등)
  • fr_stat_cd — text — 전이 전 상태
  • to_stat_cd — text — 전이 후 상태
  • atmpt_no — integer — 몇 번째 시도였는지
  • wx_errcd — integer — 실패 시 WeChat errcode
  • wx_msg_id — bigint — 성공 시 메시지 ID
  • dtl — jsonb — 상세 정보 (JSONB) - 에러 메시지/페이로드 요약 등
  • wrkr_id — text — 처리한 워커 ID
  • reg_dt — timestamp with time zone — 기록 시각

wx_access_log

  • log_id — bigint — 기본 키 — NOT NULL — 로그 PK
  • admin_id — bigint — 외래 키 → wx_admin.admin_id — 관리자
  • action — character varying(100) — 행위
  • menu — character varying(50) — 메뉴
  • ip — character varying(50) — 접속 IP
  • detail — character varying(500) — 상세
  • log_dt — timestamp without time zone — NOT NULL — 발생일시
  • device — character varying(200) — 기기/UA
  • log_type — character varying(20) — 로그유형(LOGIN 등)
  • login_id — character varying(50) — 시도한 로그인 ID(실패 기록용)
  • result — character varying(20) — 결과(SUCCESS/FAIL)

wx_access_token

  • token_id — bigint — 기본 키 — NOT NULL — 토큰 PK
  • account_id — bigint — 외래 키 → wx_mp_account.account_id — NOT NULL — 계정
  • access_token — character varying(512) — NOT NULL — 토큰값
  • issued_dt — timestamp without time zone — NOT NULL — 발급시각
  • expire_dt — timestamp without time zone — NOT NULL — 만료시각
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시

wx_admin

  • admin_id — bigint — 기본 키 — NOT NULL — 관리자 PK
  • login_id — character varying(50) — NOT NULL — 로그인 ID
  • password — character varying(200) — NOT NULL — 비밀번호
  • admin_name — character varying(50) — NOT NULL — 관리자명
  • email — character varying(100) — 이메일
  • status — character varying(20) — 상태
  • last_login_dt — timestamp without time zone — 최종로그인
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시
  • reg_id — character varying(50) — 등록자
  • upd_dt — timestamp without time zone — 수정일시
  • upd_id — character varying(50) — 수정자

wx_admin_token

  • token_id — bigint — 기본 키 — NOT NULL — 토큰 PK
  • admin_id — bigint — 외래 키 → wx_admin.admin_id — NOT NULL — 관리자
  • refresh_token — character varying(512) — NOT NULL — 리프레시 토큰
  • issued_dt — timestamp without time zone — NOT NULL — 발급일시
  • expire_dt — timestamp without time zone — NOT NULL — 만료일시
  • device — character varying(200) — 기기/UA
  • ip — character varying(50) — 발급 IP
  • revoked_yn — character varying(1) — NOT NULL — 폐기여부
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시

wx_event_log

  • event_id — bigint — 기본 키 — NOT NULL — 이벤트 PK
  • event_key — character varying(512) — EventKey(qrscene/메뉴키/VIEW URL)
  • event_time — timestamp(6) without time zone — WeChat CreateTime(epoch 초) 변환
  • event_type — character varying(20) — NOT NULL — 이벤트유형(subscribe 등 6종)
  • geo_precision — double precision — 위치정확도(LOCATION, precision은 예약어라 회피)
  • latitude — double precision — 위도(LOCATION)
  • longitude — double precision — 경도(LOCATION)
  • open_id — character varying(64) — NOT NULL — OpenID(FromUserName)
  • raw_xml — text — 원본 본문(감사/디버깅)
  • reg_dt — timestamp(6) without time zone — NOT NULL — 서버 수신 일시
  • ticket — character varying(512) — QR ticket(subscribe·SCAN)
  • to_user_name — character varying(64) — 공식계정 식별자(ToUserName)

wx_h5_link

  • link_id — bigint — 기본 키 — NOT NULL — 트래킹링크 PK
  • h5_id — bigint — 외래 키 → wx_h5_page.h5_id — NOT NULL — H5 페이지
  • code — character varying(16) — NOT NULL — 단축코드
  • campaign_name — character varying(100) — 캠페인명
  • utm_source — character varying(100) — UTM소스
  • utm_medium — character varying(100) — UTM매체
  • click_count — bigint — NOT NULL — 클릭수
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시
  • reg_id — character varying(50) — 등록자

wx_h5_page

  • h5_id — bigint — 기본 키 — NOT NULL — H5 PK
  • page_name — character varying(100) — NOT NULL — 페이지명
  • page_url — character varying(300) — NOT NULL — H5 URL
  • usage — character varying(50) — 사용처
  • oauth_type — character varying(30) — 웹인증방식
  • track_yn — character varying(1) — NOT NULL — 트래킹사용
  • utm_yn — character varying(1) — NOT NULL — UTM부착
  • domain_status — character varying(20) — 도메인상태
  • memo — character varying(300) — 메모
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시
  • reg_id — character varying(50) — 등록자
  • page_code — character varying(16) — 페이지 코드(자체 호스팅 URL 파생 키, UNIQUE)
  • content_type — character varying(10) — 본문 형식
  • content — text — 자체 저작 본문

wx_h5_track

  • click_id — bigint — 기본 키 — NOT NULL — 클릭 PK
  • h5_id — bigint — 외래 키 → wx_h5_page.h5_id — NOT NULL — H5 페이지
  • broadcast_id — bigint — 외래 키 → wx_mass_msg.broadcast_id — 유입 발송
  • open_id — character varying(64) — OpenID
  • click_dt — timestamp without time zone — NOT NULL — 클릭일시
  • ip — character varying(50) — IP
  • user_agent — character varying(300) — UA
  • utm_source — character varying(100) — UTM소스
  • link_id — bigint — 외래 키 → wx_h5_link.link_id — 트래킹 링크

wx_mass_msg

  • broadcast_id — bigint — 기본 키 — NOT NULL — 발송 PK
  • account_id — bigint — 외래 키 → wx_mp_account.account_id — NOT NULL — 계정
  • title — character varying(200) — NOT NULL — 제목
  • msg_type — character varying(20) — NOT NULL — 메시지유형
  • target_type — character varying(20) — NOT NULL — 발송대상
  • tag_id — bigint — 외래 키 → wx_user_tag.tag_id — 대상그룹
  • send_type — character varying(20) — NOT NULL — 발송시점
  • schedule_dt — timestamp without time zone — 예약시간
  • status — character varying(20) — NOT NULL — 상태
  • wx_msg_id — character varying(50) — 위챗 메시지ID
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시
  • reg_id — character varying(50) — 등록자
  • upd_dt — timestamp without time zone — 수정일시
  • upd_id — character varying(50) — 수정자
  • content — text — TEXT 발송 본문
  • media_id — bigint — 소재 참조(wx_material 논리 FK)
  • mass_job_id — bigint — 엔진 군발 잡 ID(핸드오프 전 NULL)

wx_mass_news

  • article_id — bigint — 기본 키 — NOT NULL — 기사 PK
  • broadcast_id — bigint — 외래 키 → wx_mass_msg.broadcast_id — NOT NULL — 발송작업
  • seq — integer — NOT NULL — 순서
  • article_title — character varying(200) — NOT NULL — 기사제목
  • author — character varying(100) — 작성자
  • content — text — 본문
  • cover_media_id — character varying(64) — 표지 media_id
  • digest — character varying(120) — 요약
  • h5_page_id — bigint — 외래 키 → wx_h5_page.h5_id — 연결 H5
  • source_url — character varying(300) — 원문 URL
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시

wx_mass_result

  • result_id — bigint — 기본 키 — NOT NULL — 결과 PK
  • broadcast_id — bigint — 외래 키 → wx_mass_msg.broadcast_id — NOT NULL — 발송작업
  • target_cnt — integer — 대상수
  • sent_cnt — integer — 발송수
  • success_cnt — integer — 성공수
  • fail_cnt — integer — 실패수
  • read_cnt — integer — 열람수
  • finish_dt — timestamp without time zone — 완료수신일시
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시

wx_material

  • material_id — bigint — 기본 키 — NOT NULL — 소재 PK
  • wx_media_id — character varying(64) — media_id
  • material_type — character varying(20) — NOT NULL — 소재유형
  • store_type — character varying(20) — NOT NULL — 저장구분
  • file_name — character varying(200) — 파일명
  • file_url — character varying(300) — 파일경로
  • file_size — integer — 파일크기
  • video_title — character varying(200) — 영상제목
  • video_desc — character varying(300) — 영상소개
  • expire_dt — timestamp without time zone — 만료일시
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시
  • reg_id — character varying(50) — 등록자
  • group_id — bigint — 소속 그룹ID(null=미분류)

wx_material_group

  • group_id — bigserial — 기본 키 — NOT NULL — 그룹ID
  • group_name — character varying(50) — NOT NULL — 그룹명
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시
  • reg_id — character varying(50) — 등록자
  • sort_order — integer — 드래그 정렬 순서(NULL이면 후순위)

wx_menu_button

  • button_id — bigint — 기본 키 — NOT NULL — 버튼 PK
  • account_id — bigint — NOT NULL — 대상 공식계정 ID(발행 단위)
  • parent_id — bigint — 상위 버튼 ID. NULL=1급 버튼
  • sort_no — integer — NOT NULL — 형제 내 정렬 순서(오름차순)
  • name — character varying(64) — NOT NULL — 버튼명
  • type — character varying(20) — 버튼 타입 VIEW/CLICK 등. 하위를 가진 1급 컨테이너면 NULL
  • url — character varying(1024) — VIEW 버튼 직접 URL(h5_link_id 없을 때)
  • event_key — character varying(128) — CLICK 버튼 이벤트 키
  • h5_link_id — bigint — H5 추적링크 연결(발행 시 /r/{code} 치환)
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시
  • reg_id — character varying(50) — 등록자
  • upd_dt — timestamp without time zone — 수정일시
  • upd_id — character varying(50) — 수정자

wx_mp_account

  • account_id — bigint — 기본 키 — NOT NULL — 계정 PK
  • app_id — character varying(50) — NOT NULL — AppID
  • app_secret — character varying(200) — NOT NULL — AppSecret
  • account_name — character varying(100) — 계정명
  • original_id — character varying(50) — 원본 ID
  • account_type — character varying(20) — 계정유형
  • biz_domain — character varying(200) — 업무도메인
  • oauth_domain — character varying(200) — 웹인증도메인
  • monthly_limit — integer — 월 발송한도
  • use_yn — character varying(1) — NOT NULL — 사용여부
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시
  • reg_id — character varying(50) — 등록자
  • upd_dt — timestamp without time zone — 수정일시
  • upd_id — character varying(50) — 수정자
  • ip_whitelist — character varying(500) — IP화이트리스트
  • server_url — character varying(300) — 서버URL
  • server_token — character varying(100) — 서버Token
  • encoding_aes_key — character varying(100) — EncodingAESKey
  • msg_encrypt_mode — character varying(20) — 메시지암복호화모드

wx_subscribe_grant

  • grant_id — bigint — 기본 키 — NOT NULL — 승인 PK(1행=1승인=1발송권)
  • cmpgn_id — bigint — 차감한 발송의 엔진 tb_cmpgn_info 논리 참조(CONSUMED일 때)
  • consumed_dt — timestamp(6) without time zone — 발송권 차감(CONSUMED) 시각
  • openid — character varying(64) — NOT NULL — 승인자 OpenID(비팔로워 포함)
  • page_code — character varying(60) — 승인 받은 H5 페이지 코드
  • pri_tmpl_id — character varying(64) — NOT NULL — 구독 템플릿 식별자(논리 참조)
  • reg_dt — timestamp(6) without time zone — NOT NULL — 승인 기록 일시
  • status — character varying(20) — NOT NULL — GRANTED|CONSUMED|REJECTED
  • subscriber_id — bigint — 로컬 구독자 매칭(비팔로워 승인은 null)

wx_subscribe_send

  • send_id — bigint — 기본 키 — NOT NULL — 발송 PK
  • cmpgn_id — bigint — NOT NULL — 엔진 tb_cmpgn_info 논리 참조(msg_type=SUBSCRIBE)
  • page — character varying(500) — bizsend page(클릭 시 이동 링크)
  • reg_id — character varying(50) — 등록자
  • send_dt — timestamp(6) without time zone — NOT NULL — 발송 접수 일시
  • subscribe_template_id — bigint — NOT NULL — 구독 템플릿(wx_subscribe_template 논리 참조)
  • target_cnt — integer — NOT NULL — 접수 대상 수(발송권 차감 성공분)

wx_subscribe_template

  • subscribe_template_id — bigint — 기본 키 — NOT NULL — 템플릿 PK
  • content — text — 템플릿 내용(변수 목록)
  • example — text — 예시
  • pri_tmpl_id — character varying(64) — NOT NULL — WeChat 구독 템플릿 식별자(발송 시 template_id)
  • reg_dt — timestamp(6) without time zone — NOT NULL — 등록일시
  • reg_id — character varying(50) — 등록자
  • title — character varying(200) — 템플릿 제목
  • tmpl_type — integer — 2=일회성(一次性: 1승인=1발송) | 3=장기(长期)
  • upd_dt — timestamp(6) without time zone — 수정일시
  • upd_id — character varying(50) — 수정자
  • use_yn — character varying(1) — NOT NULL — 로컬 발송 허용 스위치 — 원격 삭제분은 sync가 N 처리

wx_template

  • template_id — bigint — 기본 키 — NOT NULL — 템플릿 PK
  • wx_template_id — character varying(64) — 위챗 템플릿ID
  • template_name — character varying(200) — NOT NULL — 템플릿명
  • industry — character varying(50) — 업종
  • content — text — 내용
  • review_status — character varying(20) — NOT NULL — 심사상태
  • use_yn — character varying(1) — NOT NULL — 사용여부
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시
  • reg_id — character varying(50) — 등록자
  • upd_dt — timestamp without time zone — 수정일시
  • upd_id — character varying(50) — 수정자
  • industry_secondary — character varying(50) — 2차업종

wx_template_audit

  • review_id — bigint — 기본 키 — NOT NULL — 심사 PK
  • template_id — bigint — 외래 키 → wx_template.template_id — NOT NULL — 템플릿
  • status — character varying(20) — NOT NULL — 상태
  • apply_dt — timestamp without time zone — NOT NULL — 신청일시
  • result_dt — timestamp without time zone — 결과일시
  • reject_reason — character varying(300) — 반려사유
  • reg_id — character varying(50) — 등록자

wx_template_send

  • send_id — bigint — 기본 키 — NOT NULL — 발송 PK
  • template_id — bigint — 외래 키 → wx_template.template_id — NOT NULL — 템플릿
  • send_dt — timestamp without time zone — NOT NULL — 발송일시
  • target_cnt — integer — 대상수
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시
  • reg_id — character varying(50) — 등록자
  • cmpgn_id — bigint — 엔진 tb_cmpgn_info 논리 참조(발송 1회=캠페인 1건)

wx_user

  • subscriber_id — bigint — 기본 키 — NOT NULL — 구독자 PK
  • open_id — character varying(64) — NOT NULL — OpenID
  • union_id — character varying(64) — UnionID
  • nickname — character varying(100) — 닉네임
  • gender — character varying(1) — 성별
  • city — character varying(50) — 도시
  • province — character varying(50) — 성/지역
  • country — character varying(50) — 국가
  • subscribe_yn — character varying(1) — NOT NULL — 구독여부
  • subscribe_dt — timestamp without time zone — 구독일시
  • unsubscribe_dt — timestamp without time zone — 해지일시
  • tag — character varying(200) — 태그
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시
  • upd_dt — timestamp without time zone — 수정일시
  • blacklist_yn — character varying(1) — NOT NULL — 블랙리스트여부
  • memo — character varying(300) — 메모

wx_user_tag

  • tag_id — bigint — 기본 키 — NOT NULL — 그룹 PK
  • tag_name — character varying(100) — NOT NULL — 그룹명
  • tag_desc — character varying(200) — 설명
  • tag_type — character varying(20) — 그룹유형
  • member_cnt — integer — 구성원수
  • use_yn — character varying(1) — NOT NULL — 사용여부
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시
  • reg_id — character varying(50) — 등록자
  • wx_tag_id — integer — WeChat 실제 태그 ID(tags/create 응답)

wx_user_tag_rel

  • tag_id — bigint — 외래 키 → wx_user_tag.tag_id — NOT NULL — 그룹
  • subscriber_id — bigint — 외래 키 → wx_user.subscriber_id — NOT NULL — 구독자
  • reg_dt — timestamp without time zone — NOT NULL — 등록일시

wx_welcome_msg

  • welcome_id — bigint — 기본 키 — NOT NULL — 환영메시지 PK
  • account_id — bigint — NOT NULL — 공식계정(계정당 1건, UNIQUE)
  • content — text — 회신 텍스트(최대 600자)
  • reg_dt — timestamp(6) without time zone — NOT NULL — 등록일시
  • upd_dt — timestamp(6) without time zone — 수정일시
  • use_yn — character varying(1) — NOT NULL — 사용여부(ON/OFF)