eagle

Tables (5)

CouponIssueConstraint (할인권 제약 조건)

  • couponIssueConstraintId (아이디) — Primary key — NOT NULL
  • type (제한 범위)
  • minPurchaseAmount (최소 구매 금액)
  • minParkingMinutes (쿠폰 적용을 위한 최소 주차 시간(분))
  • reissueDelayAfterLeave (출차 후 재발급 제한 시간(분))
  • maxCountPerCar (차량별 최대 횟수(개))
  • maxCountPerVisit (방문별 최대 횟수(개))
  • maxMinutesPerVisit (방문별 최대 시간(분))
  • maxAmountPerVisit (방문별 최대 금액(원))
  • maxRatePerVisit (방문별 최대 할인율(%))
  • dailyRestrictions (쿠폰별 요일/시간 제한 조건) — Foreign key → UseOption.id — NOT NULL
  • monthsLimitPerCar (차량별 n개월동안 n회 제한 (개월))
  • maxPerCarInMonths (차량별 n개월동안 n회 제한 (회))
  • daysLimitPerCar (차량별 n일동안 n회 제한 (일))
  • maxPerCarInDays (차량별 n일동안 n회 제한 (회))
  • dailyRestrictionsForCar (차량별 요일/시간 제한 조건) — Foreign key → UseOption.id — NOT NULL
  • dailyRestrictionsForCountVisit (방문별 요일/시간 제한 조건 (회)) — Foreign key → UseOption.id — NOT NULL
  • dailyRestrictionsForMinutesVisit (방문별 요일/시간 제한 조건 (분)) — Foreign key → UseOption.id — NOT NULL
  • dailyRestrictionsForAmountVisit (방문별 요일/시간 제한 조건 (원)) — Foreign key → UseOption.id — NOT NULL
  • dailyRestrictionsForRateVisit (방문별 요일/시간 제한 조건 (%)) — Foreign key → UseOption.id — NOT NULL
  • duplicateAllowed (그룹간 중복 사용 여부) — boolean
  • maxFreeCountPerVisit (방문별 무료 횟수(개))
  • maxFreeMinutesPerVisit (방문별 무료 시간(분))

CouponTemplate (할인권 종류)

  • couponTemplateId (아이디) — Primary key — NOT NULL
  • name (이름)
  • districtId (주차장)
  • code (코드)
  • barcode (바코드)
  • reuseBarcode (바코드재사용여부) — boolean
  • couponIssueConstraintId (제약조건) — Foreign key → CouponIssueConstraint.couponIssueConstraintId — NOT NULL
  • isFree (무료여부)
  • minutes (시간할인(분))
  • rate (정률할인(%))
  • amount (정액할인(원))
  • fixedFee (요금고정)
  • oneDay (당일무료)
  • switchChargePlanId (요금제 변경) — Foreign key → SwitchChargePlan.switchChargePlanId — NOT NULL
  • saleAmount (판매금액)
  • remainingAmountPaymentMethod (차액 처리 방법) — enum
  • type (유형) — enum
  • pointsPerUnit (포인트변환단위)
  • couponTemplateGroupId (할인권 종류 그룹) — Foreign key → CouponTemplateGroup.groupId — NOT NULL

CouponTemplateGroup (할인권 종류 그룹)

  • groupId (아이디) — Primary key — NOT NULL
  • couponIssueConstraintId (제약 조건 아이디) — Foreign key → CouponIssueConstraint.couponIssueConstraintId — NOT NULL

SwitchChargePlan (요금제 변경 방법)

  • switchChargePlanId (아이디) — Primary key — NOT NULL
  • chargePlanId (변경할 요금제)
  • usageCount (쿠폰 적용 횟수)

UseOption (요일별 조건)

  • id (아이디) — Primary key — NOT NULL
  • dayOfWeek (요일)
  • startTime (시작 시간)
  • endTime (종료 시간)
  • value (값(분,회))