Advertisement
Guest User

DB Schema

a guest
Aug 13th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. DB Schema
  2.  
  3. Table pages
  4. - id integer primary key autoincrement
  5. - page text not null
  6. Store the page relation to the baka-tsuki url.
  7. for example: http://www.baka-tsuki.org/project/index.php?title=7_Nights, the value after title is saved to page
  8. - title text not null
  9. title is taken from displayTitle, in this case "7 Nights"
  10. - type text not null
  11. Novel list, Novel contents, others.
  12. - parent text
  13. Where the page is referenced. The top on is from Main_Page, for pag=Main_Page, the parent is ""
  14. - last_update integer
  15. - last_check integer
  16. - is_watched integer
  17.  
  18. Table images
  19. - id integer primary key autoincrement
  20. - name text not null
  21. the filename
  22. - filepath text not null
  23. full path to the filename
  24. - url text not null
  25. the image url
  26. - last_update integer
  27. - last_check integer
  28.  
  29. Table novel_details
  30. - id integer primary key autoincrement
  31. - page text not null
  32. used for reference from table pages.
  33. - synopsis text not null
  34. - image text not null
  35. the cover image, reference from table images, might change do id?
  36. - last_update integer
  37. - last_check integer
  38.  
  39. Table novel_books
  40. - id integer primary key autoincrement
  41. - page text not null
  42. used for reference from table pages.
  43. - title text not null
  44. the book/volume title
  45. - last_update integer
  46. - last_check integer
  47.  
  48.  
  49. To create Books to Chapter relations, we can fetch the page from pages table
  50. where the parent = page + "%" + title.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement