HisTour
Tables (8)
Heritage (Untitled2)
- id — PK — Primary key — NOT NULL
- 지역 id (region_id) — FK — Foreign key → Region.id — NOT NULL
- 유적지명 (name) — NOT NULL
- 위도 (latitude) — NOT NULL
- 경도 (longtitude) — NOT NULL
- 주소 (formatted_address) — NULLABLE
- 설명 (description) — NULLABLE
- 타입 (type) — NOT NULL
- 시대 (era) — NOT NULL
Heritage_image (Untitled5)
- id — PK — Primary key — NOT NULL
- 유적지 id (heritage_id) — FK — Foreign key → Heritage.id — NOT NULL
- 이미지 경로 (image_url) — NOT NULL
- 생성일자 (created_at) — NOT NULL
- 수정일자 (updated_at) — NOT NULL
Region (Untitled3)
- id — PK — Primary key — NOT NULL
- 시/도 (city) — NOT NULL
- 군/구 (district) — NULLABLE
- 도로명 (road) — NULLABLE
User (Untitled)
- id — PK — Primary key — NOT NULL
- 이메일 (email) — NOT NULL
- 비밀번호 (password) — NULLABLE
- 유저 이름 (username) — NOT NULL
- 로그인 타입 (login_type) — NOT NULL
- 가입일자 (created_at) — NOT NULL
- 수정일자 (updated_at) — NOT NULL
- 유저상태 (status) — NOT NULL
bookmark (Untitled6)
- id — PK — Primary key — NOT NULL
- 유저 id (user_id) — FK — Foreign key → User.id — NOT NULL
- 유적지 id (heritage_id) — FK — Foreign key → Heritage.id — NOT NULL
- 생성일자 (created_at) — NOT NULL
chat_history (Untitled8)
- id — PK — Primary key — NOT NULL
- 유저id (member_id) — FK — Foreign key → User.id — NOT NULL
- 질문 (question) — NOT NULL
- 답변 (answer) — NOT NULL
- 생성일자 (timestamp) — NOT NULL
notice_alarm (Untitled4)
- id — PK — Primary key — NOT NULL
- 유저id (user_id) — PK — Foreign key → User.id — NOT NULL
- 제목 (title) — NOT NULL
- 내용 (body) — NULLABLE
- 보낸 시간 (sent_at) — NOT NULL
visited (Untitled7)
- id — PK — Primary key — NOT NULL
- 유저 id (user_id) — FK — Foreign key → User.id — NOT NULL
- 유적지 id (heritage_id) — FK — Foreign key → Heritage.id — NOT NULL
- 방문 날짜 (visited_at) — NOT NULL