Product table in SQL

By: Prof. Dr. Fazal Rehman | Last updated: February 3, 2024

Database t4tutorials

Table structure for table brands

ColumnTypeNullDefault
idint(30)No
namevarchar(250)No
descriptiontextYesNULL
statustinyint(1)No1

Table structure for table cart

ColumnTypeNullDefault
idint(30)No
client_idint(30)No
inventory_idint(30)No
pricedoubleNo
quantityint(30)No
date_createddatetimeNocurrent_timestamp()
Product-table-in-SQL
Product-table-in-SQL

Table structure for table categories

ColumnTypeNullDefault
idint(30)No
categoryvarchar(250)No
statustinyint(1)No1
delete_flagtinyint(1)No0

 

Table structure for table clients

ColumnTypeNullDefault
idint(30)No
firstnamevarchar(250)No
gendervarchar(20)No
contactvarchar(15)No
emailvarchar(250)No
passwordtextNo

 

Table structure for table inventory

ColumnTypeNullDefault
idint(30)No
product_idint(30)No
quantitydoubleNo
pricefloatNo

 

Dumping data for table inventory

1110155
215200
31101055.58
4325250
5325300
64100350

 

Table structure for table orders

ColumnTypeNullDefault
idint(30)No
ref_codevarchar(100)No
client_idint(30)No
delivery_addresstextNo
payment_methodvarchar(100)No
amountdoubleNo
statustinyint(2)No0
paidtinyint(1)No0

 

Table structure for table order_list

ColumnTypeNullDefault
idint(30)No
order_idint(30)No
inventory_idint(30)No
quantityint(30)No
pricedoubleNo
totaldoubleNo

 

Table structure for table products

ColumnTypeNullDefault
idint(30)No
brand_idint(30)No
category_idint(30)No
namevarchar(250)No
statustinyint(1)No1

Table structure for table sales

ColumnTypeNullDefault
idint(30)No
order_idint(30)No
amountdoubleNo
date_createddatetimeNocurrent_timestamp()

Table structure for table users

ColumnTypeNullDefault
idint(50)No
namevarchar(250)No
usernametextNo
passwordtextNo

 

Download the Product table in SQL

Database tables in SQL

  1. Student table in SQL
  2. Employee table in SQL
  3. Product table in SQL