markcloud-ibk

Tables (20)

AppUser (app_user)

  • 유저 식별자 (id) — PK — Primary key — NOT NULL
  • 로그인 아이디 (login_id) — NOT NULL, UNIQUE
  • 권한 (role) — NOT NULL
  • 유저 이름 (name) — NOT NULL
  • 부서명 (dept) — NOT NULL
  • 직위/직책 (position) — NOT NULL
  • 입사일 (joined_date) — NULL
  • 이메일 (email) — NOT NULL, UNIQUE
  • 전화번호 (phone) — NOT NULL
  • 비밀번호 해시 (password_hash) — NOT NULL
  • 계정 활성화 유무 (status) — NOT NULL
  • 로그인 실패 횟수 (failed_login_count) — NOT NULL, default=0
  • 마지막 로그인 시간 (last_login_at) — NULL
  • 비밀번호 필수 변경 여부 (must_change_password) — NOT NULL, default=false
  • 로그인 아이디 변경 가능 여부 (can_change_login_id) — NOT NULL, default=false
  • 생성 시간 (created_at) — NOT NULL
  • 수정 시간 (updated_at) — NOT NULL
  • 삭제 시간 (soft deleted) (deleted_at) — NULL

AuditLog (audit_log)

  • 감사로그 식별자 (id) — PK — Primary key — NOT NULL
  • 행위자 식별자 (actor_id) — NOT NULL
  • 행위자 ip 주소 (ip) — NOT NULL
  • 행위자 이름 (actor_name) — NOT NULL
  • 행위자 권한 (role) — NOT NULL
  • 감사 이벤트 유형 (action) — NOT NULL
  • 이벤트 대상 식별 (target) — NOT NULL
  • 변경 전후 | 이벤트 상세 (diff) — NOT NULL, default={}
  • 요청 세션 식별자 (session_id) — NULL
  • 이벤트 발생 시간 (ts) — NOT NULL

Batch (batch)

  • 차수 식별자 (id) — PK — Primary key — NOT NULL
  • 차수 번호 (batch_number) — NOT NULL, UNIQUE
  • 차수 표시명 (label) — NULL
  • 차수 생성 유저 (created_by_user_id) — NOT NULL
  • 숨김 처리 시간 (hidden_at) — NULL
  • 삭제 시간 (soft deleted) (deleted_at) — NULL
  • 생성 시간 (created_at) — NOT NULL
  • 수정 시간 (updated_at) — NOT NULL

BatchContributor (batch_contiributor)

  • 업로드 참여자 집계 row 식별자 (id) — PK — Primary key — NOT NULL
  • 유저 식별자 (user_id) — FK — Foreign key → AppUser.유저 식별자 — NOT NULL
  • 참여 차수 (batch_id) — FK — Foreign key → Batch.차수 식별자 — NOT NULL
  • 최초 업로드 시간 (first_uploaded_at) — NOT NULL
  • 마지막 업로드 시간 (last_uploaded_at) — NOT NULL
  • 해당 차수 업로드 횟수 (upload_count) — NOT NULL, dafult = 0
  • 생성 시간 (created_at) — NOT NULL
  • 수정 시간 (updated_at) — NOT NULL

Copy Of t (CopyOft)

  • (id) — PK — Primary key — NOT NULL
  • 삭제 이유 (delete_reason) — NULL
  • 삭제 시간 (soft deleted) (deleted_at) — NULL
  • 생성 시간 (created_at) — NOT NULL
  • 수정 시간 (updated_at) — NOT NULL

FAQ (faq)

  • FAQ 식별자 (id) — PK — Primary key — NOT NULL
  • 카테고리 (cat) — NOT NULL
  • 질문 (question) — NOT NULL
  • 본문 (body) — NOT NULL
  • 공개 여부 (published) — NOT NULL
  • 생성 시간 (created_at) — NOT NULL
  • 수정 시간 (updated_at) — NOT NULL
  • 삭제 시간 (soft deleted) (deleted_at) — NOT NULL

InspectionGenerationJob (inspection_generation_job)

  • 검수 생성 job 식별자 (id) — PK — Primary key — NOT NULL
  • 검수 생성 대상 차수 (batch_id) — FK — Foreign key → Batch.차수 식별자 — NOT NULL
  • 검수 생성 요청 사용자 (requested_by_user_id) — FK — Foreign key → AppUser.유저 식별자 — NOT NULL
  • 검수 생성 job 상태 (status) — NOT NULL, default = pending
  • 처리 대상 매칭 수 (total_match_count) — NOT NULL, default = 0
  • 신규 생성 item/snapshot 수 (created_count) — NOT NULL, default = 0
  • 갱신된 item/snapshot 수 (refreshed_count) — NOT NULL, default = 0
  • 건너뛴 매칭 수 (skipped_count) — NOT NULL, default = 0
  • job 실패 메시지 (error_message) — NULL
  • 생성 시간 (created_at) — NOT NULL
  • 처리 시작 시간 (started_at) — NULL
  • 처리 완료 시간 (completed_at) — NULL

InspectionItem (inspection_item)

  • 검수 아이템 식별자 (id) — PK — Primary key — NOT NULL
  • 소속 차수 (batch_id) — FK — Foreign key → Batch.차수 식별자 — NOT NULL
  • 심의자료-크롤러 매칭 식별자 (id2) — PK — Foreign key → ReviewCrawlMatch.심의자료-크롤러 매칭 식별자 — NOT NULL
  • 사용자 검수 상태 (inspection_status) — NOT NULL, default = pending
  • 삭제 이유 (delete_reason) — NULL
  • 삭제 시간 (soft deleted) (deleted_at) — NULL
  • 생성 시간 (created_at) — NOT NULL
  • 수정 시간 (updated_at) — NOT NULL

InspectionItemSnapshot (inspection_item_snapshot)

  • 검수 snapshot 식별자 (id) — PK — Primary key — NOT NULL
  • snapshot 원천 검수 아이템 식별자 (inspection_item_id) — FK — Foreign key → InspectionItem.검수 아이템 식별자 — NOT NULL
  • snaoshot을 생성한 job 식별자 (generation_job_id) — FK — Foreign key → InspectionGenerationJob.검수 생성 job 식별자 — NOT NULL
  • 동일한 심의번호 및 게시물로 생성된 snapshot들 순번 (snapshot_no) — NOT NULL
  • AI 분석에 사용한 심의자료 텍스트 (review_input_text) — NULL
  • AI 분석 에 사용한 크롤러 원천 텍스트 (crawler_input_text) — NULL
  • 심의자료 입력 텍스트 해시 (review_input_hash) — NULL
  • 크롤러 입력 텍스트 해시 (crawler_input_hash) — NULL
  • 매칭 콘텐츠 해시 (match_content_hash) — NULL
  • 심의자료 입력 텍스트 길이 (review_input_length) — NOT NULL, defualt = 0
  • 크롤러 입력 텍스트 길이 (crawler_input_length) — NOT NULL, default = 0
  • AI 분석 상태 (ai_analysis_status) — NOT NULL, default = pending
  • AI 분석 실패 코드 (analysis_error_code) — NULL
  • AI 분석 실패 메시지 (analysis_error_message) — NULL
  • 심의자료와 크롤러 텍스트 유사도 (text_similarity) — NULL
  • AI 적정성 점수/비율 (is_appropriate_rate) — NULL
  • AI가 표시한 주요 사유 목록 (flagged_reasons) — NOT NULL, default = []
  • AI 분석 완료 시간 (analyed_at) — NULL
  • 생성 시간 (created_at) — NOT NULL

InspectionItemSnapshotCheck (inspection_item_snapshot_check)

  • snapshot chek 식별자 (id) — PK — Primary key — NOT NULL
  • 소속 snapshot 식별자 (snapshot_id) — FK — Foreign key → InspectionItemSnapshot.검수 snapshot 식별자 — NOT NULL
  • 검수 항목 유형 (check_type) — NOT NULL
  • 검수 항목 판정 상태 (check_status) — NOT NULL
  • 위반 심각도 (severity) — NOT NULL
  • 기준 코드 (criteria_code) — NULL
  • 기준 이름 (criteria_name) — NOT NULL
  • 기준이 적용되는 상품 유형 (product_type) — NULL
  • 기대 문구 목록 (expected_phrases) — NOT NULL, default = []
  • 매칭된 문구 목록 (matched_phrases) — NOT NULL, default = []
  • 누락된 문구 목록 (missing_phrases) — NOT NULL, default = []
  • 판정 근거 설명 (evidence_message) — NOT NULL
  • 심의자료 근거 발췌 (review_excerpt) — NULL
  • 크롤러 원천 근거 발췌 (crawler_excerpt) — NULL
  • UI 표시 순서 (sort_order) — NOT NULL, default = 0
  • 생성 시간 (created_at) — NOT NULL

InspectionItemViewLog (inspection_item_view_log)

  • 검수 아이템 조회 이력 식별자 (id) — PK — Primary key — NOT NULL
  • 조회한 검수 아이템의 차수 (batch_id) — FK, NOT NULL — Foreign key → Batch.차수 식별자 — NOT NULL
  • 검수 아이템 식별자 (item_id) — FK, NOT NULL — Foreign key → InspectionItem.검수 아이템 식별자 — NOT NULL
  • 조회한 유저 (user_id) — FK, NOT NULL — Foreign key → AppUser.유저 식별자 — NOT NULL
  • 조회 시간 (viewed_at) — NOT NULL
  • 생성 시간 (created_at) — NOT NULL

NOTIFICATION (notification)

  • 알람 식별자 (id) — PK — Primary key — NOT NULL
  • 행위자 식별자 (user_id) — NOT NULL
  • 유형 (type) — NOT NULL
  • 중복여부 판단 키 (idempotency) — NOT NULL
  • 알람 본문 (payload_json) — NOT NULL
  • 확인 시간 (read_at) — NOT NULL
  • 생성 시간 (created_at) — NOT NULL

RefreshToken (refresh_token)

  • refresh 토큰 식별자 (id) — PK — Primary key — NOT NULL
  • 소유자 식별자 (user_id) — FK — Foreign key → AppUser.유저 식별자 — NOT NULL
  • 클라이언트 세션 식별자 (session_id) — NOT NULL
  • 해시화된 토큰값 (token_hash) — NOT NULL, UNIQUE
  • 발급 시간 (issued_at) — NOT NULL
  • 만료 시간 (expires_at) — NOT NULL
  • 폐기 시간 (soft deleted) (revoked_at) — NOT NULL

ReviewCrawlMatch (review_crawl_match)

  • 심의자료-크롤러 매칭 식별자 (id) — PK — Primary key — NOT NULL
  • 매칭된 심의자료 (review_source_id) — PK — Foreign key → ReviewSource.심의자료 원본 식별자 — NOT NULL
  • 매칭 기준 심의번호 (review_number) — NULL
  • 매칭된 게시물(크롤링 자료) (crawler_source_id) — NOT NULL
  • 매칭된 게시물(크롤링 자료) 종류 (crawler_source_type) — NOT NULL
  • 일일 크롤링 작업 식별자 (crawl_run_id) — NOT NULL
  • 채널(사이트) 별 크롤링 작업 식별자 (job_id) — NOT NULL
  • 수집한 채널(사이트) 식별 코드 (site_code) — NOT NULL
  • 수집한 페이지 url (url) — NOT NULL
  • 해싱 처리한 url (url_hash) — NOT NULL
  • 게시물(크롤링 자료) 수집 시간 (collected_at) — NOT NULL
  • 게시물(크롤링 자료) 수집 일자 (collected_date) — NOT NULL
  • 게시물(크롤링 자료) 콘텐츠 해시 (content_hash) — NULL
  • 게시물(크롤링 자료) 콘텐츠 길이 (content_length) — NOT NULL, default = 0
  • 이전 게시물(크롤링 자료) 대비 변경 상태 (change_status) — NOT NULL, default = new
  • 비교 대상(이전 게시물) 식별자 (previous_crawler_source_id) — NULL
  • 삭제 이유 (delete_reason) — NULL
  • 삭제 시간 (soft deleted) (deleted_at) — NULL
  • 생성 시간 (created_at) — NOT NULL
  • 수정 시간 (updated_at) — NOT NULL

ReviewParseJob (review_parse_job)

  • 파싱 job 식별자 (id) — PK — Primary key — NOT NULL
  • 업로드 요청 세션 식별자 (upload_session_id) — FK — Foreign key → ReviewUploadSession.업로드 요청 세션 식별자 — NOT NULL
  • 파싱될 심의자료 식별자 (review_source_id) — FK — Foreign key → ReviewSource.심의자료 원본 식별자 — NOT NULL
  • 파싱 job 상태 (status) — NOT NULL, default = pending
  • 파싱 시도 횟수 (attempt_count) — NOT NULL, default = 0
  • 실패 분류 코드 (failure_code) — NULL
  • 실패 상세 메시지 (error_message) — NULL
  • job을 처리하는 worker 식별자 (worker_id) — NULL
  • 생성 시간 (created_at) — NOT NULL
  • 처리 시작 시간 (started_at) — NULL
  • 처리 종료 시간 (finished_at) — NULL

ReviewSource (review_source)

  • 심의자료 원본 식별자 (id) — PK — Primary key — NOT NULL
  • 차수 식별자 (batch_id) — FK — Foreign key → Batch.차수 식별자 — NOT NULL
  • 업무상 자료명/상품명 (source_name) — NOT NULL
  • 심의번호 (review_number) — NOT NULL
  • 심의 유효기간 시작일 (valid_from) — NULL
  • 심의 유효기간 종료일 (valid_until) — NULL
  • 파싱된 심의자료 본문 (text_content) — NULL
  • 파일 저장소 종류 (storage_provider) — NOT NULL
  • 저장소 내 파일 경로 (stored_file_path) — NOT NULL
  • 업로드한 원본 파일명 (original_filename) — NOT NULL
  • 업로드 묶음 내 상대 경로 (relative_path) — NULL
  • 파일 MIME 타입 (mime_type) — NOT NULL
  • 파일 크기 byte (file _size) — NOT NULL, default = 0
  • 파일 SHA-256 해시 (sha256) — NOT NULL
  • 파싱 상태 (parse_status) — NOT NULL, default = pending
  • 파싱 실패 메시지 (parse_error_message) — NULL
  • 자료 조회 시간 (viewed_at) — NULL
  • 자료 조회 사용자 식별자 (viewed_by) — NULL
  • 업로드 시간 (uploaded_at) — NOT NULL
  • 업로드 사용자 식별자 (uploaded_by) — NOT NULL
  • 삭제 시각 (soft delete) (deleted_at) — NULL

ReviewUploadSession (review_upload_session)

  • 업로드 요청 세션 식별자 (id) — PK — Primary key — NOT NULL
  • 차수 식별자 (batch_id) — FK — Foreign key → Batch.차수 식별자 — NOT NULL
  • 업로드 요청 사용자 식별자 (requested_by) — NOT NULL
  • 업로드 세션 처리 상태 (status) — NOT NULL
  • 요청 파일 전체 수 (total_count) — NOT NULL, default=0
  • 접수된 파일 수 (accepted_count) — NOT NULL, default=0
  • 중복/정책상 건너뛴 파일 수 (skipped_count) — NOT NULL, default=0
  • 실패 파일 수 (failed_count) — NOT NULL, default=0
  • 생성 시간 (created_at) — NOT NULL
  • 세션 완료 시간 (completed_at) — NULL

Untitled

  • Key (id) — PK — Primary key — NOT NULL
  • Field

UserActivityLog (user_activity_log)

  • 유저 활동 기록 식별자 (id) — PK — Primary key — NOT NULL
  • 유저 식별자 (user_id) — FK — Foreign key → AppUser.유저 식별자 — NOT NULL
  • 활동 발생 시간 (occurred_at) — NOT NULL
  • 활용 유형 (action) — NOT NULL
  • 활동 대상 (target) — NOT NULL
  • 활동 채널 (channel) — NOT NULL
  • 변경 전 상태 (from_status) — NULL
  • 변경 후 상태 (to_status) — NULL
  • 생성 시간 (created_at) — NOT NULL

t

  • (id) — PK — Primary key — NOT NULL
  • 생성 시간 (created_at) — NOT NULL
  • 수정 시간 (updated_at) — NOT NULL
  • 삭제 시간 (soft deleted) (deleted_at) — NULL