• This project
    • Loading...
  • Sign in

윤준석 / mamuri-bot

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
Merged
Merge Request !17 opened 2022-05-24 13:12:08 UTC by 윤준석@2018102211

Feature/220524 nodejs orm model

nodejs 서버 유저 및 키워드 database connection 및 모델 생성 및 쿼리 함수

database connection

  1. Sequelize ORM 사용하여 db connection

Model

  1. User model 생성
  2. Keyword model 생성
  3. User-Keyword many to many 관계 생성

Query

  • addKeyword

    • 키워드 추가 함수 INPUT: {keyword, userId}
    • 유저 id 기반으로 키워드 추가 및 연결 테이블 레코드 생성
  • deleteKeyword

    • 키워드 삭제 함수 INPUT: {userId, keyword}
    • 유저 id 기반으로 연결 테이블 레코드 삭제
  • getKeywordsByUserId

    • 유저가 등록한 키워드 조회 함수 INPUT: {userId}
    • 유저 id 기반으로 연결된 모든 키워드 조회
  • getUsersByKeyword

    • 키워드를 등록환 유저 조회 함수 INPUT: {keyword}
    • 키워드 기반으로 연결된 모든 유저 조회
  • getAllUsers

    • 등록된 모든 유저 조회 함수 INPUT: {NONE}
  • getAllKeywords

    • 등록된 모든 키워드 조회 함수 INPUT: {NONE}
Edited 2023-05-07 15:10:42 UTC
Request to merge feature/220524_nodejs_orm_model into main
×

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch origin
git checkout -b feature/220524_nodejs_orm_model origin/feature/220524_nodejs_orm_model

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git checkout main
git merge --no-ff feature/220524_nodejs_orm_model

Step 4. Push the result of the merge to GitLab

git push origin main

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

Merged

The changes were merged into main.

  • Discussion 0
  • Commits 10
  • Changes 8
  • {{ resolvedDiscussionCount }}/{{ discussionCount }} {{ discussionCount | pluralize 'discussion' }} resolved
  • 윤준석
    @2018102211 2022-05-24 13:13:30 UTC

    Mentioned in commit f19ad05b

  • 윤준석
    @2018102211 2022-05-24 13:13:30 UTC

    Status changed to merged

  • Please register or login to post a comment
유명현
Assignee
유명현 @2018102209
Assign to
None
Milestone
None
Assign milestone
0
Labels
None
Assign labels
  • View labels
2
2 participants
Reference: 2018102211/mamuri-bot!17
×

Revert this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.
×

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.