task최종

테이블 (10)

favorite

  • id — bigint — 기본 키 — NOT NULL
  • user_id — bigint — NOT NULL — 즐겨찾기한 user id
  • target_type — varchar(16) — NOT NULL — 대상 종류
  • target_id — bigint — NOT NULL — 대상 식별자
  • inserted_at — timestamptz — NOT NULL — 등록 시각(해제는 행 삭제)

feed_item

  • id — bigint — 기본 키 — NOT NULL
  • task_id — bigint — NOT NULL — 대상 할 일
  • type — varchar(48) — NOT NULL — 피드 종류(댓글/활동)
  • actor_id — bigint — NOT NULL — 작성자/행위자 user id
  • content — text — 표시 내용(댓글 본문). 활동은 시스템 생성
  • payload — jsonb — 변경/수정 전후 등 부가 데이터(jsonb)
  • inserted_at — timestamptz — NOT NULL — 생성 시각(시간축 정렬 기준)
  • updated_at — timestamptz — '수정 시각 NULL=미수정',
  • deleted_at — timestamptz — 'soft delete NULL=유효',

project

  • id — bigint — 기본 키 — NOT NULL
  • space_id — bigint — NOT NULL — 워크스페이스 id
  • name — varchar(255) — NOT NULL — 프로젝트명
  • description — text — 프로젝트 설명
  • start_date — date — 시작일(YYYYMMDD)
  • end_date — date — 종료일(YYYYMMDD)
  • visibility — varchar(32) — NOT NULL — 공개 범위
  • status — varchar(32) — NOT NULL — 프로젝트 상태
  • creator_id — bigint — NOT NULL — 생성자 user id
  • folder_id — bigint — '소속 폴더 NULL=폴더 미지정',
  • linked_rooms — jsonb — 연결 채팅방/채널(jsonb)
  • inserted_at — timestamptz — NOT NULL — 생성 시각
  • updated_at — timestamptz — NOT NULL — 수정 시각
  • archived_at — timestamptz — '보관 시각 NULL=미보관',
  • deleted_at — timestamptz — 'soft delete NULL=유효',

project_folder

  • id — bigint — 기본 키 — NOT NULL
  • space_id — bigint — NOT NULL — 워크스페이스 id
  • name — varchar(255) — NOT NULL — 폴더명
  • owner_id — bigint — NOT NULL — 폴더 소유자 user id
  • parent_folder_id — bigint — '상위 폴더 NULL=최상위',
  • inserted_at — timestamptz — NOT NULL — 생성 시각
  • updated_at — timestamptz — NOT NULL — 수정 시각

project_member

  • id — bigint — 기본 키 — NOT NULL
  • project_id — bigint — NOT NULL — 소속 프로젝트
  • user_id — bigint — NOT NULL — 멤버 user id
  • role — varchar(16) — NOT NULL — 멤버 권한
  • inserted_at — timestamptz — NOT NULL — 참여(생성) 시각
  • updated_at — timestamptz — NOT NULL — 수정 시각
  • deleted_at — timestamptz — 'soft delete(탈퇴) NULL=유효',

task

  • id — bigint — 기본 키 — NOT NULL
  • space_id — bigint — NOT NULL — 워크스페이스 id
  • project_id — bigint — '소속 프로젝트 NULL=프로젝트 미지정',
  • title — varchar(100) — NOT NULL — 제목 1~100자
  • description — text — '내용 5 000자 이하, 마크다운',
  • requester_id — bigint — NOT NULL — 요청자(등록자) user id
  • status — varchar(32) — NOT NULL — 상태
  • priority — varchar(16) — NOT NULL — 우선순위
  • due_date — timestamptz — 마감일
  • conversation_id — bigint — 연결 채팅방 id
  • message_id — bigint — 연결 메시지 id
  • legacy_id — bigint — 구 task-v1 id
  • last_reminded_at — timestamptz — 최근 리마인드 발송 시각
  • started_at — timestamptz — 최초 진행 중 전환 시각
  • completed_at — timestamptz — 완료 전환 시각(재오픈 시 최신)
  • inserted_at — timestamptz — NOT NULL — 생성 시각
  • updated_at — timestamptz — NOT NULL — 수정 시각
  • deleted_at — timestamptz — 'soft delete NULL=유효',

task_assignee

  • id — bigint — 기본 키 — NOT NULL
  • task_id — bigint — NOT NULL — 대상 할 일
  • user_id — bigint — NOT NULL — 담당자 user id
  • completed_at — timestamptz — 담당자별 완료 시각
  • inserted_at — timestamptz — NOT NULL — 지정(생성) 시각
  • updated_at — timestamptz — NOT NULL — 수정 시각

task_attachment

  • id — bigint — 기본 키 — NOT NULL
  • space_id — bigint — NOT NULL — 워크스페이스 id
  • task_id — bigint — NOT NULL — 대상 할 일
  • file_id — bigint — NOT NULL — 파일 id
  • file_name — varchar(255) — 파일명
  • content_type — varchar(128) — MIME 타입
  • byte_size — bigint — 파일 크기(byte)
  • inserted_at — timestamptz — NOT NULL — 첨부 시각
  • deleted_at — timestamptz — 'soft delete NULL=유효',

task_pin

  • id — bigint — 기본 키 — NOT NULL
  • user_id — bigint — NOT NULL — 고정한 user id
  • task_id — bigint — NOT NULL — 고정 대상 할 일
  • inserted_at — timestamptz — NOT NULL — 고정 시각(고정 해제는 행 삭제)

task_reminder_log

  • id — bigint — 기본 키 — NOT NULL
  • task_id — bigint — NOT NULL — 대상 할 일
  • sender_id — bigint — NOT NULL — 발송자 user id
  • receiver_id — bigint — NOT NULL — 수신자 user id
  • sent_at — timestamptz — NOT NULL — 발송 시각