Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
11 views4 pages

Tables Data Dictionary With Tables

The document outlines the database schema for a vendor, user, message, and review & rating system. Each section includes field names, data types, descriptions, and constraints such as primary keys, uniqueness, and foreign key references. Key entities include vendor details like email and shop information, user information, message content, and review ratings.
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)
11 views4 pages

Tables Data Dictionary With Tables

The document outlines the database schema for a vendor, user, message, and review & rating system. Each section includes field names, data types, descriptions, and constraints such as primary keys, uniqueness, and foreign key references. Key entities include vendor details like email and shop information, user information, message content, and review ratings.
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/ 4

Vendor

Field Name Data Type Description Constraint

email VARCHAR Vendor's email address PRIMARY KEY, UNIQUE

id INT Vendor ID AUTO_INCREMENT, UNIQUE

profileImgUrl VARCHAR URL of the vendor's profile image NULLABLE

name VARCHAR Vendor's name NOT NULL

password VARCHAR Vendor's password (hashed) NOT NULL

shop_address TEXT Vendor's shop address NOT NULL

shop_description TEXT Description of the shop NULLABLE

shop_mobile VARCHAR Vendor's shop mobile number NOT NULL, UNIQUE

shop_name VARCHAR Vendor's shop name NOT NULL, UNIQUE

shop_website VARCHAR Shop's website URL NULLABLE, UNIQUE


User

Field Name Data Type Description Constraint

email VARCHAR User's email address PRIMARY KEY, UNIQUE

id INT User ID AUTO_INCREMENT, UNIQUE

imgurl VARCHAR URL of user's profile image NULLABLE

name VARCHAR User's name NOT NULL


Message

Field Name Data Type Description Constraint

created_on TIMESTAMP Message creation timestamp DEFAULT CURRENT_TIMEST

msg TEXT Content of the message NOT NULL

uid INT User ID of the sender FOREIGN KEY REFERENCES


Review & Rating

Field Name Data Type Description Constraint

review_id INT Unique review ID PRIMARY KEY, AUTO_INCREM

customer_id INT Customer/User ID who reviewed FOREIGN KEY REFERENCES

product_id INT Product ID being reviewed FOREIGN KEY REFERENCES

rating DECIMAL(2,1) Rating given (1-5) NOT NULL

review_text TEXT Text content of the review NULLABLE

created_at TIMESTAMP Review creation timestamp DEFAULT CURRENT_TIMEST

You might also like