제목 없음

엔티티 속성 및 데이터 구조

image.png

엔티티 간의 관계

데이터 구조

**[study]**
{
	"id": 5,
  "name": "영은",
  "studyName": "코딩 스터디",
  "content": "언어 : 파이썬",
  "background": "/static/media/background_6.6e72435894445884511d.png",
  "password": "12345",
  "point": 0,
  "createdAt": "2024-08-14T05:39:01.788Z"
}
전달해야하는 값 : name, studyName, content, background, password,
자동으로 들어가는 값 : id, point, createdAt

**[reaction]**
{
	"id": 12,
  "emoji": "😇",
  "count": 1,
  "studyId": 5,
  "createdAt": "2024-08-16T07:08:09.264Z"
}
전달해야 하는 값 : emoji, studyId
자동으로 들어가는 값 : id, count, createdAt

**[habit]**
{
	"id": 5,
  "habitName": "스트레칭",
  "studyId": 5,
  "date": "2024-08-19T06:16:46.055Z",
  "isActive": true,
  "endDate": null
}
전달해야 하는 값 : habitName
자동으로 들어가는 값 : id, studyId, date, isActive, endDate
// 습관 삭제시 클릭시 데이터 변화
{
	"id": 12,
  "habitName": "30분 운동하기",
  "studyId": 5,
  "date": "2024-08-21T01:15:52.507Z",
  "isActive": true,
  "endDate": "2024-08-22T04:45:37.174Z"
}
전달해야 하는 값 : X
자동으로 들어가는 값 : endDate

**[completeHabit]**
{
	"id": 28,
  "studyId": 5,
  "habitId": 8,
  "createdAt": "2024-08-21T02:21:20.836Z"
}
전달해야 하는 값 : X
자동으로 들어가는 값 : id, studyId, habitId, createdAt

API 명세서

url : https://study-api-m36o.onrender.com

[study 테이블]