문제풀이/데이터베이스 설계
-
음식 배달 서비스 시스템문제풀이/데이터베이스 설계 2024. 2. 1. 23:51
테이블 설계 요구사항 : 음식 배달 서비스 시스템 음식 배달 서비스는 사용자들이 온라인으로 음식을 주문하고, 지역 레스토랑에서 배달을 받을 수 있는 서비스입니다. 이 시스템은 고객, 레스토랑, 주문, 주문 상세, 배달원 등 여러 엔터티를 포함합니다. 고객(Customers): 고객은 이름, 이메일, 주소, 가입일 등의 정보를 가집니다. 레스토랑(Restaurants): 각 레스토랑은 이름, 주소, 연락처, 평균 평점 등의 정보를 가집니다. 음식 메뉴(FoodItems): 음식 메뉴는 해당 레스토랑, 음식 이름, 가격, 설명 등의 정보를 포함합니다. 주문(Orders): 주문은 주문한 고객, 주문한 레스토랑, 주문 날짜, 총 가격, 배달 상태(처리 중, 배달 중, 배달 완료 등)를 포함합니다. 주문 상세(..
-
온라인 쇼핑몰 주문 관리 시스템문제풀이/데이터베이스 설계 2024. 1. 29. 17:27
테이블 설계 요구사항: 온라인 쇼핑몰 주문 관리 시스템 온라인 쇼핑몰에서 사용될 주문 관리 시스템을 위한 데이터베이스를 설계해야 합니다. 다음 요구사항을 충족해야 합니다: 고객(Customers): 고객은 이름, 이메일, 주소, 가입일을 가지고 있어야 합니다. 상품(Products): 상품은 이름, 가격, 재고 수량, 제공 업체 정보를 가지고 있어야 합니다. 주문(Orders): 주문은 주문한 고객, 주문 날짜, 배송 주소, 주문 상태(처리 중, 배송 중, 배송 완료, 취소됨 등)를 포함해야 합니다. 주문 상세(Order Details): 각 주문에는 하나 이상의 상품이 포함될 수 있습니다. 주문 상세는 주문된 상품, 수량, 그리고 각 상품에 대한 가격 정보를 포함해야 합니다. Step1) 최초 작성 주..
-
도서관 관리 시스템문제풀이/데이터베이스 설계 2024. 1. 26. 18:17
테이블 설계 요구사항: 도서관 관리 시스템 도서관 관리 시스템을 위한 데이터베이스를 설계해야 합니다. 다음 요구사항을 충족해야 합니다: 도서(Books): 각 도서는 제목, 저자, 출판사, 출판일, ISBN(국제 표준 도서 번호)을 가지고 있어야 합니다. 회원(Members): 회원은 이름, 이메일, 가입일, 그리고 회원 ID를 가지고 있어야 합니다. 대출 정보(Loans): 어떤 회원이 어떤 책을 대출했는지에 대한 정보가 필요합니다. 대출일, 반납 예정일, 실제 반납일을 포함해야 합니다. 벌금(Fines): 반납이 지연될 경우 회원은 벌금을 지불해야 합니다. 회원별 누적 벌금 정보가 필요합니다. 이제 이 요구사항을 바탕으로 테이블 구조(스키마)를 설계해보세요. 각 테이블의 필드, 필드의 타입, 그리고 ..