Varchar (8) NN (PK) (AK1) Code
Varchar (8) NN (PK) (AK1) Code
NN (PK) (AK1)
Is Placed Customer_To_Invoice_Header Places Supplier_Invoice_Header Internal_Doc_No Integer NN (PK) Doc_Num Varchar(20) NN Doc_Type Integer NN Invoice_Date Date NN Due_Date Date Invoice_Subtotal Double NN Paid Integer Emp_Code Varchar(3) NN (PFK) Customer_Invoice_Header Internal_Doc_No Integer NN (PK) Doc_Num Varchar(20) NN Doc_Type Integer NN Invoice_Date Date NN Due_Date Date Name Varchar(40) Street Varchar(40) Suburb Varchar(20) Postcode Varchar(40) Invoice_Subtotal Double NN Code Varchar(8) NN (PFK) Term_Days Integer Discount Integer Discount_Amt Double Paid Integer Is Contained Within Supplier_Invoice_Header_To_Invoice_Detail Contains Doc_Type Description Quantity Price LineNum Internal_Doc_No Product_Code SupCode Supplier_Invoice_Detail Integer NN Varchar(40) Double NN Double NN Integer Integer NN (PFK) Varchar(8) NN (PFK) Varchar(8) NN (PFK) Doc_Type Description Quantity Price LineNum Internal_Doc_No Product_Code SupCode
(AK1,AK3) (AK2)
(AK1,AK3) (AK2)
NN (PK) Is Placed By
Places
Employee_To_Supplier_Invoice_Header
Is Contained Within
Customer_Invoice_Header_To_Invoice_Detail Contains
Included
Invoice_Detail Integer NN Varchar(40) Double NN Double NN Integer Integer NN (PFK) Varchar(8) NN (PFK) Varchar(8) NN (PFK)
Included Supplier_Invoice_Detail_To_Products
Consists Invoice_Detail_To_Products Product Description Varchar(40) Qty_In_Stock Integer Price Double Cost Double Colour Varchar(15) Vintage Date Volume Integer Product_Code Varchar(8) NN (PK) SupCode Varchar(8) NN (PFK)
Supplies
Consists
Is Supplied Suppliers_To_Products