주차 경매 시스템

테이블 (5)

Auction (Untitled2)

  • auction_id (경매 아이디) — long — 기본 키 — NOT NULL
  • start_time (시작 시간) — timestamp
  • end_time (종료 시간) — timestamp
  • current_highest_bid (현재 최고가) — int
  • current_count (현재 참여수) — int
  • auction_status (경매 상태) — enum
  • auction_period_code (경매 시기 코드) — string
  • winner_id (경매 낙찰자 사번) — long — 외래 키 → User.user_id — NOT NULL
  • spot_id (장소 아이디) — long — 외래 키 → Parking Spot.spot_id — NOT NULL

Bid (Untitled3)

  • bid_id (입찰 아이디) — long — 기본 키 — NOT NULL
  • bid_amount (입찰 포인트) — int
  • bid_time (입찰 시간) — timestamp
  • auction_id (경매 아이디) — long — 외래 키 → Auction.auction_id — NOT NULL
  • bidder_id (경매 참여자 사번) — long — 외래 키 → User.user_id — NOT NULL

Parking Spot

  • spot_id (장소 아이디) — long — 기본 키 — NOT NULL
  • status (상태) — enum
  • zone_id (구역 아이디) — long — 외래 키 → Parking Zone.zone_id — NOT NULL

Parking Zone (Untitled)

  • zone_id (구역 아이디) — long — 기본 키 — NOT NULL
  • zone_name (구역 이름) — string
  • total_spots (총 주차공간 수) — int
  • location_detail (상세 위치) — string
  • base_price (경매 최저가) — int

User

  • user_id (사번) — long — 기본 키 — NOT NULL
  • password (비밀번호) — string
  • name (이름) — string
  • position (직급) — string
  • department (부서) — enum
  • points (경매 포인트) — long
  • current_spot_id (현재 사용중인 장소 아이디) — long — 외래 키 → Parking Spot.spot_id — NOT NULL