beautyplanner

Tables (17)

admin (Untitled6)

    cart (Untitled7)

    • id — uuid — Foreign key → users.id — NOT NULL — Auth user id로 생성
    • 제품ID (productID) — int8 — Foreign key → product.제품ID — NOT NULL — AutoInc

    category (Untitled12)

      faq_board (Untitled16)

      • id — int — Primary key — NOT NULL
      • 작성자 id (writer) — uuid — Foreign key → users.id — NOT NULL — Auth user id로 생성
      • 제목 (title) — text — NOT NULL
      • 내용 (contents) — text — NOT NULL
      • 작성일시 (created_at) — timestamptz — NOT NULL

      notice (Untitled8)

        notification (Untitled9)

          pageview (Untitled5)

            plan_category (Untitled15)

            • plan_category_id — int — Primary key — NOT NULL
            • 생성일시 (created_at) — timestamptz
            • plan_category_name — text
            • 자기참조 (parent_plan_category_id) — int — NOT NULL

            plans (Untitled17)

            • 카테고리 별 플랜 만들기 (plan_category_id) — int — Foreign key → plan_category.plan_category_id — NOT NULL

            product (Untitled2)

            • 제품ID (productID) — int8 — Primary key — NOT NULL — AutoInc
            • 제품이름 (product_name) — text — NOT NULL
            • 제품가격 (product_price) — int8 — NOT NULL
            • 제품설명 (product_description) — text
            • 제품이미지 (product_img) — text
            • 제품영상 (product_video) — text
            • 생성시간 (created_at) — timestamptz — NOT NULL
            • 카테고리 (category) — int
            • 할인률 (discount) — int
            • AI 정보 (ai_tag) — text — AI가 식별할수있게 제품의 정보를 태그

            recommended_products (Untitled13)

            • 제품ID (productID) — int8 — Foreign key → product.제품ID — NOT NULL — AutoInc
            • id — uuid — Foreign key → users.id — NOT NULL — Auth user id로 생성

            review (Untitled10)

            • 제품ID (productID) — int8 — Foreign key → product.제품ID — NOT NULL — AutoInc
            • id — uuid — Foreign key → users.id — NOT NULL — Auth user id로 생성

            sellercustomer (Untitled4)

            • SellerID — int8 — Foreign key → sellers.SellerID — NOT NULL — AutoIncrement
            • id — uuid — Foreign key → sellers.id — NOT NULL — Auth user id로 생성
            • startdate — timestamptz — NOT NULL — 관계시작날짜
            • id (id2) — uuid — Foreign key → users.id — NOT NULL — Auth user id로 생성

            sellers (Untitled3)

            • SellerID — int8 — Primary key — NOT NULL — AutoIncrement
            • id — uuid — Foreign key → users.id — NOT NULL — Auth user id로 생성
            • 셀러 이름 (sellername) — text — NOT NULL
            • 셀러연락처 (contactinfo) — int

            tag (Untitled11)

            • 제품ID (productID) — int8 — Foreign key → product.제품ID — NOT NULL — AutoInc

            user_plans (Untitled14)

            • id — uuid — Foreign key → users.id — NOT NULL — Auth user id로 생성
            • plan_category_id — int — Foreign key → plan_category.plan_category_id — NOT NULL

            users (Untitled)

            • id — uuid — Primary key — NOT NULL — Auth user id로 생성
            • 생성일 (created_at) — timestamptz — NOT NULL
            • email — text — NOT NULL
            • password — varchar — NOT NULL
            • admin — int4 — NOT NULL — 관리자,셀러,사용자 구분
            • nickname — text — 필요시 닉네임 사용
            • name — text — NOT NULL — 실명 사용시 이름 사용
            • 핸드폰번호 (phoneNum) — int
            • 주소 (address) — text
            • 회원사진 (profile_img) — text
            • AI 정보 (ai_tag) — text — AI가 식별하는 유저의 정보
            • 진행중인 플랜 (planing) — int — 진행중인 플랜 표기