0% found this document useful (0 votes)
54 views

Customer Column Name Data Type Constraints

The document contains the table structures for an online cake delivery application including tables for customers, cakes, categories, orders, order details, billing information, cart, and stock. Each table lists the column names, data types, and any constraints like primary or foreign keys. The tables track information about customers, available cakes, categories, orders and order items, billing addresses, shopping carts, and current stock levels.

Uploaded by

najiya
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

Customer Column Name Data Type Constraints

The document contains the table structures for an online cake delivery application including tables for customers, cakes, categories, orders, order details, billing information, cart, and stock. Each table lists the column names, data types, and any constraints like primary or foreign keys. The tables track information about customers, available cakes, categories, orders and order items, billing addresses, shopping carts, and current stock levels.

Uploaded by

najiya
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Customer

Column Name Data type Constraints


Pk_int_customer_id Bigint Primary key
Vchr_customer_name Varchar(50)
Vchr_customer_street Varchar(50)
Vchr_customer_city Varchar(50)
Vchr_customer_pin int
Vchr_customer_houseno Varchar(50)
Vchr_customer_housename Varchar(50)
Int_customer_contact Varchar(50)
Vchr_customer_email Varchar(50)
Vchr_customer_password Varchar(50)

Cake

Column Name Data type Constraints


Pk_int_cake_id Bigint Primary key
Vchr_cake_name Varchar(50)
int_cake_weight double
Vchr_cake_image Varchar(50)
Double_cake_price double
Vchr_cake_description Varchar(50)
Fk_int_category_id bigint Foreign key

Category

Column Name Data type Constraints


Pk_int_category_id Bigint Primary key
Vchr_category_name Varchar(50)
Vchr_category_image Varchar(50)
Vchr_category_description Varchar(50)
FK_category_id

Order

Column Name Data type Constraints


Pk_int _order_id Bigint Primary key
Int_order_number int
Date_order_date date
Date_order_requirement date date
Fk_Int_order_customer id Bigint
Order Details

Column Name Data type Constraints


FK_ int_ order_id Int Foreign Key
FK_int_orderDetails_cake_id Int Foreign Key

Billing Info

Column Name Data type Constraints


Pk_int_bill_id Int Primary key
Vchr_billing_house_num Int
Vchr_billing_house_name Varchar(50)
Vchr_billing_city Varchar(50)
Vchr_billing_street Varchar(50)
Date_bill_date Date
Double_bill_amount Double
Fk_int_order_order_id Int Foreign Key

Cart

Column Name Data type Constraints


Pk_int_cart_id Bigint Primary key
FK_int_cake_cakeid Bigint Foreign Key
Int_cart_numberofcakes Bigint
Double_cart_price Double
Fk_int_customer_customerid Bigint Foreign Key
Time_cart_time Time

Stock

Column Name Data type Constraints


Pk_int_stock_id Bigint Primary key
FK_int_cake_id Bigint Foreign Key
Vchr_stockdetails Varchar(50)
Int_available_quantity Bigint

You might also like