milo
Tables (7)
comments (댓글)
- comment_id (댓글 식별 번호) — bigint — Primary key — NOT NULL
- course_id (산책로 식별 번호) — bigint — Foreign key → courses.course_id — NOT NULL
- log_id (사용자 실제 산책 식별 번호) — bigint — Foreign key → courses.log_id — NOT NULL
- pet_id (애완동물 식별 번호) — bigint — Foreign key → courses.pet_id — NOT NULL
- user_id (사용자 식별 번호) — bigint — Foreign key → courses.user_id — NOT NULL
- content (댓글 내용) — VARCHAR(200)
- created_at (댓글 작성 시간) — datetime
courses (산책로)
- course_id (산책로 식별 번호) — bigint — Primary key — NOT NULL
- log_id (사용자 실제 산책 식별 번호) — bigint — Foreign key → walk_logs.log_id — NOT NULL
- pet_id (애완동물 식별 번호) — bigint — Foreign key → walk_logs.pet_id — NOT NULL
- user_id (사용자 식별 번호) — bigint — Foreign key → walk_logs.user_id — NOT NULL
- course_name (산책로 이름) — VARCHAR(50)
- description (산책로 설명) — VRACHAR(200)
likes (좋아요)
- course_id (산책로 식별 번호) — bigint — Foreign key → courses.course_id — NOT NULL
- log_id (사용자 실제 산책 식별 번호) — bigint — Foreign key → courses.log_id — NOT NULL
- pet_id (애완동물 식별 번호) — bigint — Foreign key → courses.pet_id — NOT NULL
- user_id (사용자 식별 번호) — bigint — Foreign key → courses.user_id — NOT NULL
- created_at (좋아요를 누른 시각) — datetime
pets (애완동물)
- pet_id (애완동물 식별 번호) — bigint — Primary key — NOT NULL
- user_id (사용자 식별 번호) — bigint — Foreign key → users.user_id — NOT NULL
- pet_name (애완동물 이름) — VARCHAR(50)
- birth (애완동물 생일) — datetime
- weight (애완동물 몸무게) — float
- gender (애완동물 성별) — enum
- neutered (중성화 유무) — boolean
- selectedDogBreed (애완동물 종류) — enum
- pet_type (애완동물 유형) — enum
users (사용자)
- user_id (사용자 식별 번호) — bigint — Primary key — NOT NULL
- email (이메일) — VARCHAR(50)
- password (비밀번호) — VARCHAR(50)
- user_name (사용자 이름) — VARCHAR(50)
walk_log_points (사용자 실제 이동 경로)
- point_id (이동 경로 식별 번호) — bigint — Primary key — NOT NULL
- log_id (사용자 실제 산책 식별 번호) — bigint — Foreign key → walk_logs.log_id — NOT NULL
- pet_id (애완동물 식별 번호) — bigint — Foreign key → walk_logs.pet_id — NOT NULL
- user_id (사용자 식별 번호) — bigint — Foreign key → walk_logs.user_id — NOT NULL
- latitude (위도) — float
- longitude (경도) — float
- recorded_at (GPS 좌표가 기록된 시간) — datetime
walk_logs (사용자 실제 산책 기록)
- log_id (사용자 실제 산책 식별 번호) — bigint — Primary key — NOT NULL
- pet_id (애완동물 식별 번호) — bigint — Foreign key → pets.pet_id — NOT NULL
- user_id (사용자 식별 번호) — bigint — Foreign key → pets.user_id — NOT NULL
- log_name (개인 산책로 이름) — VARCHAR(50)
- log_description (개인 산책로 설명) — VARCHAR(200)
- path_review (사용자 경로 리뷰) — enum
- walk_style (사용자 걷기 스타일) — enum
- start_time (산책 시작 시간) — datetime
- end_time (산책 종료 시간) — datetime
- distance_km (산책로 거리(km)) — float
- duration_seconds (산책 소요시간(초)) — integer
- calorie (태운 칼로리 양) — float
- image_url (산책 인증 사진) — int