0% found this document useful (0 votes)
19 views2 pages

E-Store Databse Shema

The document describes the schema for an e-commerce database including tables for customers, products, orders, order items, addresses, categories, and payments. The customers table includes fields for id, name, email, and date created. The products table includes fields for id, name, description, price, and date created. The orders table includes a customer id field to link to customers, total amount, and date created fields.

Uploaded by

Mouhamed Islem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views2 pages

E-Store Databse Shema

The document describes the schema for an e-commerce database including tables for customers, products, orders, order items, addresses, categories, and payments. The customers table includes fields for id, name, email, and date created. The products table includes fields for id, name, description, price, and date created. The orders table includes a customer id field to link to customers, total amount, and date created fields.

Uploaded by

Mouhamed Islem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Customer Product Order OrderItem

id int 1 id int 1 id int 1 id int

first_name varchar(255) name varchar(255) * customer_id int * order_id int

last_name varchar(255) description text total_amount decimal(10, 2) * product_id int

email varchar(255) price decimal(10, 2) created_at datetime quantity int

created_at datetime created_at datetime price decimal(10, 2)

Address

Category ProductCategory id int Payment

id int 1 id int * customer_id int id int

name varchar(255) product_id int * street varchar(255) * customer_id int

created_at datetime * category_id int city varchar(255) * order_id int

state varchar(255) payment_method varchar(255)

country varchar(255) amount decimal(10, 2)

zip_code varchar(20) created_at datetime


Customer Product Order OrderItem

id int 1 id int 1 id int 1 id int

first_name varchar(255) name varchar(255) * customer_id int * order_id int

last_name varchar(255) description text total_amount decimal(10, 2) * product_id int

email varchar(255) price decimal(10, 2) created_at datetime quantity int

created_at datetime created_at datetime price decimal(10, 2)

Address

Category ProductCategory id int Payment

id int 1 id int * customer_id int id int

name varchar(255) product_id int * street varchar(255) * customer_id int

created_at datetime * category_id int city varchar(255) * order_id int

state varchar(255) payment_method varchar(255)

country varchar(255) amount decimal(10, 2)

zip_code varchar(20) created_at datetime

You might also like