Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DB] DB 스키마 정의 #8

Open
dlgustn555 opened this issue Jan 21, 2019 · 0 comments
Open

[DB] DB 스키마 정의 #8

dlgustn555 opened this issue Jan 21, 2019 · 0 comments
Assignees
Labels

Comments

@dlgustn555
Copy link
Owner

dlgustn555 commented Jan 21, 2019

● 스캐줄 : schedule

{
  _id:  스캐줄 ID,
  userID: 사용자ID,
  templateId: 템플릿 ID,
  order: 프로그램 일차,
  part: 운동명,
  program: [
  {
      name: '벤치프레스',
      course: [
        { set: 1, value: 10, unit: 'kg', repeat: 10},
        { set: 2, value: 10, unit: 'kg', repeat: 10},
        { set: 3, value: 10, unit: 'kg', repeat: 10}
      ]
  },
  {
      name: '벤치프레스',
      course: [
        { set: 1, value: 10, unit: 'kg', repeat: 10},
        { set: 2, value: 10, unit: 'kg', repeat: 10},
        { set: 3, value: 10, unit: 'kg', repeat: 10}
      ]
    }
],
  modDate: 운동날짜 (기록날짜)
}

● 운동 템플릿 : template

http://local-health.lhs.com:1702/exercise

[GET] : /template/[[userID]]/[[templateID]]
[POST] : /template
[PUT] : /template/[[userID]]/[[templateID]]

이름 name 타입 example
운동타입 tag String ex) 웨이트, 요가, 복싱 ...
운동요일 days String[] ex) 월화수목금토일
운동회차 dayCount Number ex) 1회차
운동부위 part String[] ex) 가슴 / 등 / 어깨 / 하체
운동명 name String[] ex) 벤치 프레스
세트 set Number ex) 3
단위 unit String ex) Set / Km / Hour / Min
{
    _id: 'aaaaaaaasdf',
    userId: 'dlgustn555',
    tag: '웨이트',
    days: ['월','화','수'],
    programs: [
        {
            part: '가슴',
            order: 1,
            course: [
                { name: '벤치프레스', set: 3, unit: 'Set' },
                { name: '디클라인 벤치프레스', set: 3, unit: 'Set' },
                { name: '인클라인 벤치프레스', set: 3, unit: 'Set' }
            ]
        },
        {
            part: '등',
            order: 2,
            template: [
                { name: '벤치프레스', set: 3, unit: 'Set' },
                { name: '디클라인 벤치프레스', set: 3, unit: 'Set' },
                { name: '인클라인 벤치프레스', set: 3, unit: 'Set' }
            ]
        },
        {
            part: '데드리프트',
            order: 3,
            course: [
                { name: '벤치프레스', set: 3, unit: 'Set' },
                { name: '디클라인 벤치프레스', set: 3, unit: 'Set' },
                { name: '인클라인 벤치프레스', set: 3, unit: 'Set' }
            ]
        },
    ]
}
@dlgustn555 dlgustn555 self-assigned this Jan 21, 2019
This was referenced Aug 1, 2019
dlgustn555 added a commit that referenced this issue Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant