BuptleBiz ERD - 복잡한 버전

테이블 (23)

계약 (contract_bcontract)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 워크플로우 (workflows_id) — integer — 외래 키 → 워크플로우.식별자 — NOT NULL
  • 마스터 계약서 (master_contract_id) — integer — 외래 키 → 계약.식별자 — NOT NULL
  • 유저 프로필 (userprofile_id) — integer — 외래 키 → 유저 프로필.식별자 — NOT NULL
  • 생성자 부서 (creator_dept_id) — integer — 외래 키 → 부서.식별자 — NOT NULL
  • 자회사 (subsidiary_id) — integer — 외래 키 → 자회사.식별자 — NOT NULL
  • 템플릿 (template_id) — integer — 외래 키 → 템플릿.식별자 — NOT NULL
  • 리비전 넘버 (workflow_rev_num) — uuid

계약 스캔문서등록_원장 (contract_brsdattachment)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 계약서 (contract_id) — integer — 외래 키 → 계약.식별자 — NOT NULL

계약 옵션 (contract_bcontract_option)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 계약서 (contract_id) — integer — 외래 키 → 계약.식별자 — NOT NULL

계약서_변경내역 (contract_bcontract_history)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 계약서 (contract_id) — integer — 외래 키 → 계약.식별자 — NOT NULL
  • 생성자 (create_user_id) — integer — 외래 키 → 유저.식별자 — NOT NULL
  • 계약참여자 (contractor_id) — integer — 외래 키 → 계약참여자.식별자 — NOT NULL

계약서_액션 (contract_bcontract_action)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 계약서 (contract_id) — integer — 외래 키 → 계약.식별자 — NOT NULL
  • 계약참여자 (contractor_id) — integer — 외래 키 → 계약참여자.식별자 — NOT NULL

계약참여자 (contract_bcontractor)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 유저 (user_id) — integer — 외래 키 → 유저.식별자 — NOT NULL
  • 계약 (contract_id) — integer — 외래 키 → 계약.식별자 — NOT NULL
  • 계약참여자 등록인 (create_contractor_id) — integer — 외래 키 → 계약참여자.식별자 — NOT NULL
  • 계약 진행상태 (status_on_workflow) — integer
  • 권한 (responsibility) — integer
  • 분류 (classification) — integer[]

계약태그 (contract_bcontract_tags)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 태그 (tags_id) — integer — 외래 키 → 태그.식별자 — NOT NULL
  • 계약서 (contract_id) — integer — 외래 키 → 계약.식별자 — NOT NULL
  • 생성자 (creator_id) — integer — 외래 키 → 유저 프로필.식별자 — NOT NULL

보안등급 (security_grades_bsecuritygrade)

  • 식별자 (id) — integer — 기본 키 — NOT NULL

부서 (main_bdepartment)

  • 식별자 (id) — integer — 기본 키 — NOT NULL

워크플로우 (workflows_bworkflow)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 유저아이디 (user_id) — integer — 외래 키 → 유저.식별자 — NOT NULL
  • 보안 단계 (security_grade_id) — integer — 외래 키 → 보안등급.식별자 — NOT NULL

워크플로우_계약참여자 (workflows_bworkflow_contractor)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 유저 (user_id) — integer — 외래 키 → 유저.식별자 — NOT NULL
  • 워크플로우 (workflow_id) — integer — 외래 키 → 워크플로우.식별자 — NOT NULL

워크플로우_옵션 (workflows_bworkflow_option)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 워크플로우 (workflow_id) — integer — 외래 키 → 워크플로우.식별자 — NOT NULL
  • 워크플로우 프로세스 (workflow_process_id) — integer — 외래 키 → 워크플로우_프로세스.식별자 — NOT NULL
  • 리비전 번호 (rev_num) — uuid

워크플로우_이메일 (workflows_bworkflowpaperemailcontent)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 워크플로우 (workflow_id) — integer — 외래 키 → 워크플로우.식별자 — NOT NULL

워크플로우_태그 (workflows_bworkflow_tag)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 워크플로우 (workflow_id) — integer — 외래 키 → 워크플로우.식별자 — NOT NULL
  • 태그 (tags_id) — integer — 외래 키 → 태그.식별자 — NOT NULL

워크플로우_프로세스 (workflows_bworkflow_process)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 워크플로우 (workflows_id) — integer — 외래 키 → 워크플로우.식별자 — NOT NULL
  • 리비전 번호 (rev_num) — uuid

유저 (users_user)

  • 식별자 (id) — integer — 기본 키 — NOT NULL

유저 프로필 (main_userprofile)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 유저 (user_id) — integer — 외래 키 → 유저.식별자 — NOT NULL

인감 (main_seal_stamp)

  • 식별자 (id) — integer — 기본 키 — NOT NULL

자회사 (main_bsubsidiary)

  • 식별자 (id) — integer — 기본 키 — NOT NULL

코멘트 (contract_bcomment)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 계약서 (contract_id) — integer — 외래 키 → 계약.식별자 — NOT NULL
  • 유저 (user_id) — integer — 외래 키 → 유저 프로필.식별자 — NOT NULL

태그 (manage_btags)

  • 식별자 (id) — integer — 기본 키 — NOT NULL

템플릿 (contract_btemplate)

  • 식별자 (id) — 기본 키 — NOT NULL
  • 유저 (user_id) — integer — 외래 키 → 유저.식별자 — NOT NULL
  • 워크플로우 (workflows_id) — integer — 외래 키 → 워크플로우.식별자 — NOT NULL
  • 인감 (seal_stamp_id) — integer — 외래 키 → 인감.식별자 — NOT NULL
  • 보안 단계 (security_grade_id) — integer — 외래 키 → 보안등급.식별자 — NOT NULL
  • HTML 문서 (body) — bytea
  • Docx 문서 (docxbody) — bytea
  • Docx 문서 경로 (docxbody_file) — varchar(500)
  • 카테고리 여부 (isFolder) — boolean
  • 상위 카테고리 (parent_folder_id) — integer
  • 추가정보들 (extra_field) — jsonb

템플릿 변경 이력 (contract_btemplate_history)

  • 식별자 (id) — integer — 기본 키 — NOT NULL
  • 템플릿 (template_id) — integer — 외래 키 → 템플릿.식별자 — NOT NULL
  • 생성자 (creator_id) — integer — 외래 키 → 유저.식별자 — NOT NULL