본문 바로가기
개인프로젝트/spring예약사이트

1. 프로젝트 시작, DB 구조파악.

by 구월에작은섬 2018. 7. 26.

Edwith 3주차 새로운 프로젝트가 시작되었다.


아래 사진과 같은 메인 화면을 디자인하고, DB에서 받아온 값들을 적절하게 사용하여 화면의 기능을 작성한다.



먼저 DB 구조를 파악한다.


DB테이블은 아래 내용으로 구성되어있다. 같은 이름을 가진것들은 같은 색으로 검은색은 하나만 존재하는 것들이다.


category : id, name

display_info : id, product_id, opening_hours, place_name, place_lot, place_street, tel, homepage, email, create_date, modify_date

display_info_image : id, display_info_id, file_id

file_info :  id, file_name, save_file_name, content_type, delete_flag, create_date, modify_date

product : id, category_id, description, content, event, create_date, modify_date

product_image : id, product_id, type, file_id

product_price : id, product_id, price_type_name, price, discount_rate, create_date, modify_date

promotion : id, product_id

reservation_info : id, product_id, reservation_name, reservation_tel, reservation_email, reservation_date

create_date, modify_date 

reservation_info_price : id, reservation_info_id, product_price_id, count

reservation_user_comment : idproduct_id, reservation_info_id, score, comment, create_date, modify_date

reservation_user_comment_image : id, reservation_info_id, reservation_user_comment_id, file_id 

반응형