airport
Tables (10)
admin (관리자)
- 관리자 id (id) — BIGINT — Primary key — NOT NULL
- 아이디 (admin_id) — VARCHAR(320) — NOT NULL
- 비밀번호 (admin_password) — TEXT — NOT NULL
- 폰 번호 (phone_number) — VARCHAR(20) — NOT NULL
- 생성일 (create_datetime) — TIMESTAMP — NOT NULL
- 수정일 (update_datetime) — TIMESTAMP — NOT NULL
available_time (예약 가능 시간)
- 예약시간 id (id) — BIGINT — Primary key — NOT NULL
- 지점 id (repair_shop_id) — BIGINT — Foreign key → repair_shop.지점 id — NOT NULL
- 날짜 (reservation_date) — DATE — NOT NULL
- 시간 (reservation_time) — TIME — NOT NULL
- 현재예약인원 (reservation_count) — INT — NOT NULL
- 생성일 (create_datetime) — TIMESTAMP — NOT NULL
- 수정일 (update_datetime) — TIMESTAMP — NOT NULL
car (차)
- 차 id (id) — BIGINT — Primary key — NOT NULL
- 고객 id (customer_id) — BIGINT — Foreign key → customer.고객 id — NOT NULL
- 차종 (sell_name) — VARCHAR(20)
- 차량번호 (plate_number) — VARCHAR(20)
- 생성일 (create_datetime) — TIMESTAMP — NOT NULL
- 수정일 (update_datetime) — TIMESTAMP — NOT NULL
car_image (차량 대표 이미지)
- 대표이미지 id (id) — BIGINT — Primary key — NOT NULL
- 차종 (sell_name) — VARCHAR(20) — NOT NULL
- 대표이미지 (image_url) — VARCHAR(2048) — NOT NULL
- 생성일 (create_datetime) — TIMESTAMP — NOT NULL
- 수정일 (update_datetime) — TIMESTAMP — NOT NULL
coupon (쿠폰)
- 쿠폰 id (id) — BIGINT — Primary key — NOT NULL
- 쿠폰번호 (serial_number) — VARCHAR(30) — NOT NULL
- 만료일 (expired_date) — DATE
- 사용 여부 (is_used) — TINYINT(1) — NOT NULL
- 생성일 (create_datetime) — TIMESTAMP — NOT NULL
- 수정일 (update_datetime) — TIMESTAMP — NOT NULL
customer (고객)
- 고객 id (id) — BIGINT — Primary key — NOT NULL
- 아이디(이메일) (email) — VARCHAR(320) — NOT NULL
- 이름 (name) — VARCHAR(20) — NOT NULL
- 생년월일 (birthdate) — DATE
- 폰번호 (phone_number) — VARCHAR(20)
- 생성일 (create_datetime) — TIMESTAMP — NOT NULL
- 수정일 (update_datetime) — TIMESTAMP — NOT NULL
- 식별자 (identifier) — VARCHAR(100)
maintenance_image (차량 정비 전후 이미지)
- 정비 id (id) — BIGINT — Primary key — NOT NULL
- 예약 id (reservation_id) — BIGINT — Foreign key → reservation.예약 id — NOT NULL
- 시점(정비전인지 후인지) (status) — TINYINT(1) — NOT NULL
- 이미지 링크 (image_url) — VARCHAR(2048) — NOT NULL
- 생성일 (create_datetime) — TIMESTAMP — NOT NULL
- 수정일 (update_datetime) — TIMESTAMP — NOT NULL
repair_shop (지점)
- 지점 id (id) — BIGINT — Primary key — NOT NULL
- 지점명 (repair_shop) — VARCHAR(20) — NOT NULL
- 주소 (address) — VARCHAR(255)
- 시간별가능인원수 (capacity_per_time) — INT
- 생성일 (create_datetime) — TIMESTAMP — NOT NULL
- 수정일 (update_datetime) — TIMESTAMP — NOT NULL
reservation (예약)
- 예약 id (id) — BIGINT — Primary key — NOT NULL
- 고객 id (customer_id) — BIGINT — Foreign key → customer.고객 id — NOT NULL
- 쿠폰 id (coupon_id) — BIGINT — Foreign key → coupon.쿠폰 id — NOT NULL
- 이용 지점 (repair_shop_id) — BIGINT — Foreign key → repair_shop.지점 id — NOT NULL
- 출발일(맡김) (departure_time) — DATETIME — NOT NULL
- 도착일(픽업) (arrival_time) — DATETIME — NOT NULL
- 연락처 (contact_number) — VARCHAR(20) — NOT NULL
- 차종 (sell_name) — VARCHAR(20) — NOT NULL
- 차량번호 (plate_number) — VARCHAR(20) — NOT NULL
- 선택서비스 (service_type) — VARCHAR(200) — NOT NULL
- 고객 요청 (customer_request) — VARCHAR(2000)
- 점검 결과 (inspection_result) — TEXT
- 생성일 (create_datetime) — TIMESTAMP — NOT NULL
- 수정일 (update_datetime) — TIMESTAMP — NOT NULL
step (진행 단계)
- 진행 단계 id (id) — BIGINT — Primary key — NOT NULL
- 예약 id (reservation_id) — BIGINT — Foreign key → reservation.예약 id — NOT NULL
- 진행 단계 (stage) — VARCHAR(20) — NOT NULL
- 날짜 (date) — DATETIME — NOT NULL
- 세부사항 (detail) — VARCHAR(2000)
- 생성일 (create_datetime) — TIMESTAMP — NOT NULL
- 수정일 (update_datetime) — TIMESTAMP — NOT NULL