0% found this document useful (0 votes)
13 views2 pages

Datadictionary

Uploaded by

sokna33ss11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Datadictionary

Uploaded by

sokna33ss11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Data Dictionary

Table Name Attribute Description Datatype Null/Not Null PK/ FK Reference


supID Supplier identity CHAR(5) NOT NULL PK
tbSupplier supplier Company /contact name VARCHAR(50) NOT NULL
supcon Supplier contact VARCHAR(MAX) NOT NULL
staffID Staff’ Identity INT(Autonumber) NOT NULL PK
Last name Staff’ last name VARCHAR(30) NOT NULL
First name Staff’ first name VARCHAR(30) NOT NULL
Gen Staff’ gender CHAR(1) NOT NULL
DOB Staff’ date of birth SMALLDATETIME NOT NULL
pos Staff’ position VARCHAR(30) NOT NULL
Salary Staff’ salary MONEY NOT NULL
Province Staff’s address VARCHAR(30) NOT NULL
tbStaff
district Staff’s address VARCHAR(30) NOT NULL
commune Staff’s address VARCHAR(30) NOT NULL
village Staff’s address VARCHAR(30) NULL
Street Staff’s address VARCHAR(20) NULL
house Staff’s address VARCHAR(30) NULL
Hiredate Staff’s hiredate SMALLDATETIME NOT NULL
photo Staff’s photo VARBINARY(MAX) NULL
stopwork Staff’s stopwork BIT NULL
proID Product’ code VARCHAR(30) NOT NULL PK
Pro name Product’name VARCHAR(30) NOT NULL
tbProduct UPIS Unit price in stock MONEY NOT NULL
SUP Sale unit price MONEY NOT NULL
QTY quantity INT NOT NULL
cusID Customer identity CHAR(9) NOT NULL PK
tbCustomer Cusname Customer’ name VARCHAR(30) NOT NULL
cuscon Customer’ contact VARCHAR(MAX) NOT NULL
ImpID Import’ Identity INT(autonumber) NOT NULL PK
supID Supplies’ Identity CHAR(5) NOT NULL FK tbsupplier
tbImport stID Staff’ Identity INT NOT NULL FK Tbstaff
ImpDate Import’s Date SMALLDATETIME NOT NULL
ImpTotal Import’ Total MONEY NOT NULL
OrdID Order’ identity INT(autonumber) NOT NULL PK
stID Staff’ identity INT NOT NULL FK tbstaff
tbOrder cusID Customer’ identity CHAR(9) NOT NULL FK tbCustomer
ordDate Order’ Date SMALLDATETIME NOT NULL
ordTotal Order Total MONEY NOT NULL
payID Payment’ Identity INT(autonumber) NOT NUL PK
stID Staff’ identity INT NOT NULL FK tbProduct
tbPayment ordID Order’ identity CHAR(9) NOT NULL FK tbImport
payDate Payment’ Date SMALLDATETIME NOT NULL
payAmount Payment Amount MONEY NOT NULL
ProID Product’ Code VARCHAR(20) NOT NULL PK/FK tbProduct
ImpID Import’ Identity INT NOT NULL PK/FK tbImport
tbImptDetail ImpQty Import’ Quantity INT NOT NULL
ImpPrice Import’ Price MONEY NOT NULL
Amount Import Amount MONEY NOT NULL
ProID Product’ Code VARCHAR(20) NOT NULL PK/ FK tbProduct
ordID Order’ Identity INT NOT NULL PK/FK tbOrder
tbOrdDetail ordQty Order Quantity INT NOT NULL
ordPrice Order Price MONEY NOT NULL
Amount Order Amount MONEY NOT NULL

You might also like