-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCS6360.002-Team23-FunctionalDependencies.txt
executable file
·65 lines (39 loc) · 2.9 KB
/
CS6360.002-Team23-FunctionalDependencies.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
1. Insurance(Insurance ID, Company Name, Start Date, End Date, Co-Insurance)
Insurance ID -> Company Name, Start Date, End Date, Co-Insurance
-------------------------------------------------------------------------------------------
2. Customer(SSN, First Name, Last Name, Phone, Gender, Address, Dateof Birth, Insurance ID)
SSN -> First Name, Last Name, Phone, Gender, Address, Date of Birth, Insurance ID
-------------------------------------------------------------------------------------------
3. Prescription(Prescription ID, SSN, Doctor ID, Prescribed Date)
Prescription ID -> SSN, Doctor ID, Prescribed Date
-------------------------------------------------------------------------------------------
4. Prescribed_Drugs(Prescription ID, Drug Name, Prescribed Quantity, Refill Limit)
Prescription ID, Drug Name -> Prescribed Quantity, Refill Limit
-------------------------------------------------------------------------------------------
5. Order(Order ID, Prescriptio ID, Employee ID, Order Date)
Order ID -> Prescriptio ID, Employee ID, Order Date
-------------------------------------------------------------------------------------------
6. Ordered Drugs(Order ID, Dug Name, Batch Number, Ordered Quantity, Price)
Order ID, Dug Name, Batch Number -> Ordered Quantity, Price
-------------------------------------------------------------------------------------------
7. Bill(Order ID, CustomerSSN, Total Amount, Customer Payment, Insurance Payment)
Order ID, CustomerSSN -> Total Amount, Customer Payment, Insurance Payment
-------------------------------------------------------------------------------------------
8. Employee(Employee ID, SSN, First Name, Last Name, Start Date, End Date, Role, Salary, Phone Number, Date of Birth)
Employee ID -> SSN, First Name, Last Name, Start Date, End Date, Role, Salary, Phone Number, Date of Birth
-------------------------------------------------------------------------------------------
9. Employee_Notification(Employee ID, Notification ID)
All Keys.
-------------------------------------------------------------------------------------------
10. Notification(Notification ID, Type, Message)
Notification ID -> Type, Message
-------------------------------------------------------------------------------------------
11. Employee_Disposed_Drugs(Employee ID, Drug Name, Batch Number, Disposal Date)
All Keys.
-------------------------------------------------------------------------------------------
12. Disposed Drugs(Drug Name, Batch Number, Quantity, Company)
Drug Name, Batch Number -> Quantity, Company
-------------------------------------------------------------------------------------------
13. Medicine(Drug Name, Batch Number, Medicine Type, Manufacturer, Stock Quantity, Expiry Date, Price)
Drug Name, Batch Number -> Medicine Type, Manufacturer, Stock Quantity, Expiry Date, Price
-------------------------------------------------------------------------------------------