Giter Site home page Giter Site logo

hanghae99mini2_back's Introduction

🚀 Kim Gaeun


좋은 서비스를 만드는 개발자가 되고 싶어요.

📚 기술스택




🍄 사이드 프로젝트

포카이브 "방탄소년단(BTS) 포토카드 교환 플랫폼" (서비스 중!) App douwnload

Zzz project "함께 얘기하며 즐기는 온라인 3D 방탈출!!" GitHub

More

💬 e-mail: [email protected]


Hits

hanghae99mini2_back's People

Contributors

paran22 avatar wjdtjsah12 avatar wonjaeban avatar

Watchers

 avatar

Forkers

wonjaeban

hanghae99mini2_back's Issues

[코멘트 요청] 테이블 설계 및 연관관계

image

사용자 정보인 User와 스터디 정보인 Study가 다대다 관계여서 중간에 StudyInfo라는 테이블을 만들고 일대다, 다대일 단방향으로 연결했습니다.(/model/Study, StudyInfo, User)

그리고 User에서 참여한 Study를 조회할 때나, 반대로 Study에서 참여한 User를 조회할 때는 양방향으로 매핑하지 않고 해당되는 StudyInfo를 find해서 StudyInfo에서 User나 Study를 꺼내는 방식으로 코드를 작성하였습니다.(boardService.getBoard, userService.getUserInfo)

단순 일대다, 다대일의 경우 참조가 필요하면 양방향으로 연결해서 바로 꺼내왔는데 중간 테이블이 생기니까 조회할 때도 어떻게 하면 좋을지 고민입니다.

테이블 설계할 때 고민이 많았는데 전체적으로 검토 요청드립니다!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.