기말과제
테이블 (6)
게시판 글(Post) (Untitled5)
- post_id (Key) — 기본 키 — NOT NULL
- title (Field)
- content (Field2)
- created_at (Field3)
- species_id (Key2) — 외래 키 → 식물(PlantSpecies).species_id — NOT NULL
댓글(Comment) (Untitled6)
- comment_id (Key) — 기본 키 — NOT NULL
- content (Field)
- created_at (Field2)
- post_id (Key2) — 외래 키 → 게시판 글(Post).post_id — NOT NULL
로그(GrowthLog) (Untitled4)
- log_id (Key) — 기본 키 — NOT NULL
- pet_plant_id (Key2) — 외래 키 → 반려식물(MyPlant).pet_plant_id — NOT NULL
- user_id (Key3) — 외래 키 → 반려식물(MyPlant).user_id — NOT NULL
- species_id (Key22) — 외래 키 → 반려식물(MyPlant).species_id — NOT NULL
- recorded_at (Field)
- height (Field2)
- leaf_count (Field3)
- watered_yn (Field4)
반려식물(MyPlant) (Untitled3)
- pet_plant_id (Key) — 기본 키 — NOT NULL
- user_id (Key3) — 외래 키 → 이용자(User).user_id — NOT NULL
- species_id (Key2) — 외래 키 → 식물(PlantSpecies).species_id — NOT NULL
- nickname (Field)
- purchase_date (Field2)
식물(PlantSpecies) (Untitled)
- species_id (Key) — 기본 키 — NOT NULL
- species_name (Field)
- water_cycle (Field2)
- avg_growth_rate (Field3)
- max_height (Field4)
- difficulty (Field5)
이용자(User) (Untitled2)
- user_id (Key) — 기본 키 — NOT NULL
- email (Field)
- nickname (Field2)
- created_at (Field3)