0% found this document useful (0 votes)
45 views6 pages

Customers: ID First - Name Last - Name Middle - Name Phone - Number

The document describes the structure of several database tables, including fields, data types, lengths, and constraints. It includes tables for customers, employees, products, suppliers, categories, and users with details on the purpose and contents of each field.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views6 pages

Customers: ID First - Name Last - Name Middle - Name Phone - Number

The document describes the structure of several database tables, including fields, data types, lengths, and constraints. It includes tables for customers, employees, products, suppliers, categories, and users with details on the purpose and contents of each field.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Field Name

ID
First_name
Last_name
Middle_name
Phone_number

Field Name
ID
First_name
Last_name
Middle_name
email
Phone_number
Address

Field Name
ID
Product_name
description
Stock
Price
Category_id

Field Name
ID
Company_name
Phone_number

Field Name
ID
Category_name
Description
Field Name
ID
First_name
Last_name
Middle_name
Password
Username
Phone_number
CUSTOMERS
Data Type Field Length Constraint Description
int 11 Primary Key Identification of the customer
varchar 50 Not null First name of the customer
varchar 50 Not null Last name of the customer
varchar 50 Not null Middle name of the customer
int 11 Not null Contact number of customer

EMPLOYEES
Data Type Field Length Constraint Description
int 11 Primary Key Identification of the employee
varchar 50 Not null First name of the employee
varchar 50 Not null Last name of the employee
varchar 50 Not null Middle name of the employee
varchar 50 Not null email of the employee
int 11 Not null Contact number of the employee
varchar 50 Not null Address of the employee

PRODUCTS
Data Type Field Length Constraint Description
int 11 Primary Key Identification of the product
varchar 50 Not null Name of the product
varchar 100 Not null Description fo the product
int 50 Not null Stock of the product
int 50 Not null Price of the product
int 11 Foreign Key Category ID of the product

SUPPLIER
Data Type Field Length Constraint Description
int 11 Primary Key Identification of the supplier
varchar 50 Not null Company name of the supplier
int 50 Not null Contact number of the supplier

CATEGORY
Data Type Field Length Constraint Description
int 2 Primary Key Category ID
varchar 50 Not null Name of the Category
varchar 100 Not null Category description
USERS
Data Type Field Length Constraint Description
int 11 Primary Key Identification of the user
varchar 50 Not null First name of the user
varchar 50 Not null Last name of the user
varchar 50 Not null Middle name of the user
varchar 50 Not null Password of the user
varchar 50 Not null Username of the user
int 11 Not null Contact number of the user
Description
Identification of the customer
First name of the customer
Last name of the customer
Middle name of the customer
Contact number of customer

Description
Identification of the employee
First name of the employee
Last name of the employee
Middle name of the employee
email of the employee
Contact number of the employee
Address of the employee

Description
Identification of the product
Name of the product
Description fo the product
Stock of the product
Price of the product
Category ID of the product

Description
Identification of the supplier
Company name of the supplier
Contact number of the supplier

Description
Category ID
Name of the Category
Category description
Description
Identification of the user
First name of the user
Last name of the user
Middle name of the user
Password of the user
Username of the user
Contact number of the user

You might also like