UniHousing / UnivHousing

A demo for mvc
0 stars 1 forks source link

Termination lease request #34

Open dragonfly90 opened 9 years ago

dragonfly90 commented 9 years ago

I wonder if the foreign key of termination lease request should be lease id or lease id and student id? I think the termination lease request can be determined by lease id only. But on the other hand, in E-R diagram, it is the student who brings the termination lease request.

student_id->lease_id(current), lease_id->student_id(current), lease_id-> other attributes. so student_id and lease_id are candidate key. It doesn't conflict 3nf, right?