From a8ff91b519841022046f7593d1e69a519f640a84 Mon Sep 17 00:00:00 2001 From: Rishabh Srivastava Date: Fri, 18 Aug 2023 10:36:00 +0000 Subject: [PATCH] updated sample metadata to include column descriptions --- metadata.txt | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/metadata.txt b/metadata.txt index c181782..dc58df2 100644 --- a/metadata.txt +++ b/metadata.txt @@ -1,35 +1,35 @@ CREATE TABLE products ( - product_id INTEGER PRIMARY KEY, - name VARCHAR(50), - price DECIMAL(10,2), - quantity INTEGER + product_id INTEGER PRIMARY KEY, -- Unique ID for each product + name VARCHAR(50), -- Name of the product + price DECIMAL(10,2), -- Price of each unit of the product + quantity INTEGER -- Current quantity in stock ); CREATE TABLE customers ( - customer_id INTEGER PRIMARY KEY, - name VARCHAR(50), - address VARCHAR(100) + customer_id INTEGER PRIMARY KEY, -- Unique ID for each customer + name VARCHAR(50), -- Name of the customer + address VARCHAR(100) -- Mailing address of the customer ); CREATE TABLE salespeople ( - salesperson_id INTEGER PRIMARY KEY, - name VARCHAR(50), - region VARCHAR(50) + salesperson_id INTEGER PRIMARY KEY, -- Unique ID for each salesperson + name VARCHAR(50), -- Name of the salesperson + region VARCHAR(50) -- Geographic sales region ); CREATE TABLE sales ( - sale_id INTEGER PRIMARY KEY, - product_id INTEGER, - customer_id INTEGER, - salesperson_id INTEGER, - sale_date DATE, - quantity INTEGER + sale_id INTEGER PRIMARY KEY, -- Unique ID for each sale + product_id INTEGER, -- ID of product sold + customer_id INTEGER, -- ID of customer who made purchase + salesperson_id INTEGER, -- ID of salesperson who made the sale + sale_date DATE, -- Date the sale occurred + quantity INTEGER -- Quantity of product sold ); CREATE TABLE product_suppliers ( - supplier_id INTEGER PRIMARY KEY, - product_id INTEGER, - supply_price DECIMAL(10,2) + supplier_id INTEGER PRIMARY KEY, -- Unique ID for each supplier + product_id INTEGER, -- Product ID supplied + supply_price DECIMAL(10,2) -- Unit price charged by supplier ); ===