0% found this document useful (0 votes)
32 views1 page

Database

The document outlines the structure of a database schema for a product management system, detailing various tables such as products, suppliers, customers, users, and warehouses. Each table includes fields with specific data types, such as INT, BIGINT, and VARCHAR, along with indexes for efficient data retrieval. The schema also includes relationships between tables, indicating how different entities interact within the system.

Uploaded by

ca.trantu
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)
32 views1 page

Database

The document outlines the structure of a database schema for a product management system, detailing various tables such as products, suppliers, customers, users, and warehouses. Each table includes fields with specific data types, such as INT, BIGINT, and VARCHAR, along with indexes for efficient data retrieval. The schema also includes relationships between tables, indicating how different entities interact within the system.

Uploaded by

ca.trantu
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/ 1

products

id INT

supplier_id BIGINT

name VARCHAR(255)

type VARCHAR(255) inbound_deta…

unit VARCHAR(255) id BIGINT

description VARCHAR(25… product_id INT

weight_kg DOUBLE warehouse_id BIGINT

size_m3 DOUBLE user_id BIGINT

created_at DATE inbounds_id INT

updated_at DATE quantity INT

deleted_at DATE status VARCHAR(255)

Indexes created_at DATE

updated_at DATE

damaged_quantity INT
Indexes

outbounds
inbounds customers id BIGINT
id INT id BIGINT note VARCHAR(255)
order_date DATE name VARCHAR(255) order_date DATE
arrive_date DA… address VARCHAR(255) estimated_arive_time DA…
created_at DATE phone_number VARCHAR(25… export_date DATE
updated_at DA… email VARCHAR(255) customer_id BIGINT
Indexes Indexes Indexes

users stock_balan… product_b…


id BIGINT id INT id BIGINT

name VARCHAR(255) product_id INT product_id INT

address VARCHAR(255) warehouse_id BIGINT quantity INT

phone_number VARCHAR(25… total_quantity INT unit VARCHAR(255)

email VARCHAR(255) storage_cost INT created_at DATE

role VARCHAR(255) updated_at DATE Indexes

warehouse_id BIGINT Indexes

Indexes

suppliers
id BIGINT outbound_deta…
name VARCHAR(255) id BIGINT

address VARCHAR(255) product_id INT

phone_number VARCHAR(25… warehouse_id BIGINT

email VARCHAR(255) user_id BIGINT

Indexes outbound_id BIGINT

quantity INT

state VARCHAR(255)

warehouses created_at DATE

id BIGINT updated_at DATE


Indexes
address VARCHAR(255)

capacity BIGINT

phone_number VARCHAR(25…
Indexes

You might also like