Skip to content

공유일기장 엔티티/테이블 관련 #67

Description

@ingkoon

현재 공유일기장 관련된 두개의 테이블에 대해 고민이 있습니다.
각각

  1. ShareGroupInvite
  • id
  • shareGroupId
  • userId
  • status(초대에 대해 대기/수락/거절 세가지의 enum 상태를 가짐)
  1. ShareGroupUser
  • id
  • shareGroupId
  • userId
  • status(관리자/ 일반 멤버 두가지의 enum 상태를 가짐)

현재는 이에 따르는 비즈니스 로직으로 shareGroupInvite에서 수락으로 전환 될 시, 해당 정보를 바탕으로 ShareGroupUser를 생성합니다.

여기서 든 생각은 두개의 테이블을 관리하지 말고
두 테이블을 하나로 합쳐서 수락시, 상태만 대기-> 일반멤버같은 방식으로 전환하는 것은 어떨까 싶습니다.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions