Pickle

테이블 (18)

가게 (Store)

  • id (Key) — Int — 기본 키 — NOT NULL
  • id (Key2) — UUID — 외래 키 → 학교.id — NOT NULL
  • ownerId (Field) — String
  • storeName (Field2) — String
  • address (Field3) — String
  • mapImageUrl (Field4)

결제 (Payment)

    날짜별 주문량 (OrdersByDate)

      리뷰 (Review)

        메뉴 (Menu)

        • id (Key) — Int — 기본 키 — NOT NULL
        • storeId (Key2) — Int — 외래 키 → 가게.id — NOT NULL
        • categoryId (Key3) — 외래 키 → 메뉴 카테고리.Id — NOT NULL
        • id (Key22) — UUID — 외래 키 → 가게.id — NOT NULL
        • menuName (Field) — String
        • price (Field2) — Int
        • decriptionShort (Field3) — String
        • descriptionLong (Field4) — String
        • createdAt (Field5) — DateTime
        • updatedAt (Field6) — DateTime
        • isVisible (Field7) — Boolean
        • iconUrl (Field8) — String
        • menuImageUrl (Field9) — String
        • limitCount (Field10) — Int
        • availableDays (Field11) — Int
        • time (Field12) — String

        메뉴 옵션 (Option)

        • id (Key) — Int — 기본 키 — NOT NULL
        • menuId (Key2) — Int — 외래 키 → 메뉴.id — NOT NULL
        • id (Key22) — UUID — 외래 키 → 메뉴.id — NOT NULL
        • optionName (Field) — String
        • description (Field2) — String
        • priceModifier (Field3) — Int

        메뉴 카테고리 (Category)

        • Id (Key) — Int — 기본 키 — NOT NULL
        • storeId (Key2) — Int — 외래 키 → 가게.id — NOT NULL
        • id (Key22) — UUID — 외래 키 → 가게.id — NOT NULL
        • categoryName (Field) — String
        • description (Field2) — String

        선물 (Untitled10)

          선물하기 (gift)

            유저 (User)

            • phoneNumber (Key) — String Unique — 기본 키 — NOT NULL
            • univId (Key2) — UUID — 외래 키 → 학교.id — NOT NULL
            • name (Field) — String
            • email (Field2) — String
            • emailVerified (Field3) — Boolean
            • image (Field4) — String
            • createdAt (Field5) — DateTime
            • updatedAt (Field6) — DateTime
            • snsId (Field7) — String
            • phoneNumber (Field8) — String
            • isPhoneVerified (Field9) — Boolean
            • fcmToken (Field10) — String
            • fcmTimeStamp (Field11) — DateTime
            • isFirstOrder (Field12) — Boolean

            유저 SMS 인증 (UserSMS)

            • phoneNumber (Key) — String — 기본 키 — NOT NULL
            • createdAt (Field) — DateTime
            • verificationCode (Field2)

            유저 토큰 (UserToken)

            • phoneNumber (Key) — String — 기본 키 — NOT NULL
            • createdAt (Field) — String
            • refresh_token (Field2) — String

            장바구니 (Bag)

              주문 (Order)

                친구 관계 (Friend)

                  쿠폰 (Coupon)

                    포인트 (Point)

                      학교 (Untitled4)

                      • id (Key) — UUID — 기본 키 — NOT NULL
                      • location (Field) — String
                      • Field2