olist

Tables (7)

Customers (Untitled)

  • customer_id (Key) — Primary key — NOT NULL
  • customer_unique_id (Field)
  • customer_zip_code_prefix (Field2)
  • customer_city (Field3)
  • customer_state (Field4)

Order Items (Untitled3)

  • order_item_id (Key) — Primary key — NOT NULL
  • order_id (Key2) — Foreign key → Orders.order_id — NOT NULL
  • product_id (Key3) — Foreign key → Products.product_id — NOT NULL
  • shipping_limit_date (Field)
  • price (Field2)
  • freight_value (Field3)
  • seller_id (Key4) — Foreign key → Sellers.seller_id — NOT NULL

Orders (Untitled2)

  • order_id (Key) — Primary key — NOT NULL
  • customer_id (Key2) — Foreign key → Customers.customer_id — NOT NULL
  • order_status (Field)
  • order_purchase_timestamp (Field2)
  • order_approved_at (Field3)
  • order_delivered_carrier_date (Field4)
  • order_delivered_customer_date (Field5)
  • order_estimated_delivery_date (Field6)

Payments (Untitled6)

  • order_id (Key2) — Foreign key → Orders.order_id — NOT NULL
  • payment_sequential (Field)
  • payment_type (Field2)
  • payment_installments (Field3)
  • payment_value (Field4)

Products (Untitled4)

  • product_id (Key) — Primary key — NOT NULL
  • product_category_name (Field)
  • product_name_lenght (Field2)
  • product_description_lenght (Field3)
  • product_photos_qty (Field4)
  • product_weight_g (Field5)
  • product_length_cm (Field6)
  • product_height_cm (Field7)
  • product_width_cm (Field8)

Reviews (Untitled7)

  • review_id (Key) — Primary key — NOT NULL
  • order_id (Key2) — Foreign key → Orders.order_id — NOT NULL
  • review_score (Field)
  • review_comment_title (Field2)
  • review_comment_message (Field3)
  • review_creation_date (Field4)
  • review_answer_timestamp (Field5)

Sellers (Untitled5)

  • seller_id (Key) — Primary key — NOT NULL
  • seller_zip_code_prefix (Field)
  • seller_city (Field2)
  • seller_state (Field3)