Let's run
Tables (5)
Meeting (런닝 모임)
- id (모임 ID) — UUID — Primary key — NOT NULL
- userId (생성한 유저 ID) — UUID — Foreign key → User.id — NOT NULL
- title (모임 제목) — VARCHAR(20) — NOT NULL
- distance (달릴 거리) — Integer — NOT NULL
- startedAt (시작 시간) — LocalDateTime — NOT NULL
- startLongitude (시작한 경도) — Float — NOT NULL
- startLatitude (시작한 위도) — Float — NOT NULL
- endLongitude (끝나는 경도) — Float
- endLatitude (끝나는 위도) — Float
- status (런닝글 현황) — Boolean — NOT NULL — default: true
MeetingMember (모임 멤버)
- id (모임 멤버 ID) — UUID — Primary key — NOT NULL
- meetingId (모임 ID) — UUID — Foreign key → Meeting.id — NOT NULL
- userId (달리는 유저 ID) — UUID — Foreign key → User.id — NOT NULL
- status (달린 상태) — Boolean — NOT NULL — default: false
Run (달린 정보)
- id (거리 ID) — UUID — Primary key — NOT NULL
- meetingId (모임 ID) — UUID — Foreign key → Meeting.id — NOT NULL
- userId (달린 유저 Id) — UUID — Foreign key → User.id — NOT NULL
- distance (달린 거리) — Integer — NOT NULL — default: 0km
- startLongitude (시작한 경도) — Float — NOT NULL
- startLatitude (시작한 위도) — Float — NOT NULL
- endLongitude (끝난 경도) — Float — NOT NULL
- endLatitude (끝난 위도) — Float — NOT NULL
- runningTime (달린 시간) — Time — NOT NULL — 24:21
RunningUser (달린 유저의 합계)
- id (총 달린 정보 ID) — Primary key — NOT NULL
- id (유저 ID) — UUID — Foreign key → User.id — NOT NULL
- totalDistance (총 달린 거리) — NOT NULL — default: 0.0km
- bestDistance (가장 많이 달린 거리) — NOT NULL — default: 0.0km
- worstDistance (가장 적게 달린 거리) — NOT NULL — default: 0.0km
- levelPercentage (다음 레벨까지 남은 퍼센트) — NOT NULL — default: 0.0%
- level (현재 레벨) — NOT NULL — default: 0
User (유저)
- id (유저 ID) — UUID — Primary key — NOT NULL
- name (유저 이름) — VARCHAR(10) — NOT NULL
- height (키) — Float(10) — NOT NULL — 단위: cm
- weight (몸무게) — Float(10) — NOT NULL — 단위: kg
- gender (성별) — VARCHAR
- age (나이대) — VARCHAR
- mobile (전화번호) — VARCHAR — NOT NULL — 010-xxxx-xxxx
- role (권한) — VARCHAR — NOT NULL — ROLE_USER, ROLE_ADMIN