Database Schema

History Key

  • New content
  • Removed content

Recent Versions

Choose two versions to compare, or click the link to view it.

  1. 36. almost 4 years by inparo
  2. 35. almost 4 years by inparo
  3. 34. almost 4 years by inparo
  4. 33. about 4 years by inparo
  5. 32. about 4 years by inparo
  6. 31. about 4 years by toopixel
  7. 30. about 4 years by toopixel
  8. 29. about 4 years by toopixel
  9. 28. about 4 years by toopixel
  10. 27. about 4 years by toopixel
  11. 26. about 4 years by toopixel
  12. 25. about 4 years by inparo
  13. 24. about 4 years by inparo
  14. 23. about 4 years by inparo
  15. 22. about 4 years by inparo
  16. 21. about 4 years by inparo
  17. 20. about 4 years by toopixel
  18. 19. about 4 years by toopixel
  19. 18. about 4 years by toopixel
  20. 17. about 4 years by toopixel
  21. 16. about 4 years by toopixel
  22. 15. about 4 years by toopixel
  23. 14. about 4 years by toopixel
  24. 13. about 4 years by toopixel
  25. 12. about 4 years by toopixel
  26. 11. about 4 years by toopixel
  27. 10. about 4 years by inparo
  28. 9. about 4 years by inparo
  29. 8. about 4 years by toopixel
  30. 7. about 4 years by toopixel
  31. 6. about 4 years by inparo
  32. 5. about 4 years by inparo
  33. 4. about 4 years by inparo
  34. 3. about 4 years by inparo
  35. 2. about 4 years by inparo
  36. 1. about 4 years by inparo
 

Database Schema

You can find the MySQL script on the SVN repository

Tables:

  • lr_users
    • user_id
    • FK_group_id
    • FK_banned_id
    • FK_country_id
    • active [TINYINT 1]
    • name
    • surname
    • username
    • password
    • hash
    • email
    • join_date
    • activation_code
    • change_password
    • last_failure
    • failed_logins
  • lr_user_groups
    • group_id
    • title
    • description
  • lr_banned
    • id
    • reason
  • lr_countries
    • id
    • country
  • lr_sessions
    • session_id
    • ip_address
    • user_agent
    • last_activity
  • lr_categories
    • category_id
    • name
    • description
    • entry_count
  • lr_entries
    • entry_id
    • FK_category_id
    • FK_user_id
    • active [TINYINT 1]
    • title
    • description
    • date_added
    • url
  • lr_pages
    • page_id
    • active
    • url
    • meta_description
    • meta_keywords
    • title
    • content

Specifications

Deleting a user:

  • When a user is deleted his links are, too. This can be acomplished automatically with a DB relation (already done in the actually sql script)

Deleting a user group:

  • There are two root groups that cannot be deleted: Users and Admins . If a child group is deleted, all members of that group are automatically moved to the parent group.

Deleting a category:

  • The administrator has the option of keeping or deleting the links – if kept, they are moved to the ‘unassigned’ category