title: cakephp 2 fields linked to same table
body: <p>I have 2 3 tables</p>
  
  <pre><code> USERS [id, name, fname, username, password, email, role]
   STUDENTS[id, class]
   FEES [id, user_id, month,amount, user_id]
  </code></pre>
  
  <p>First: I want to link users and students by user.id=student.id
  it can be linked by adding user_id field in students but can it be done like this
  and is it good using cakephp</p>
  
  <p>second: fees table has 2 times user_id, one for student and second for admin
  as students and admins are getting log in so I kept both of them in same USERS table
  I am confused how to query
  some times I am using containable 
  some time I query separately for fee and then student and then user as admin even in some page I just get stuck</p>
  
  <p>please help where can I make changes to run smoothly with recommended approach</p>