Guest User

Untitled

a guest
Aug 21st, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. Account:
  2. tableName: account
  3. columns:
  4. id: integer(9)
  5. username: varchar(255) #name to display
  6. login: varchar(255) #name for log in (merge both ?)
  7. avatar: varchar(255) #name of the file
  8. password: varchar(255)
  9. credit: integer(9) #points
  10. level: tinyint(3) #0 = user, 1 = administrator
  11. relations:
  12. Maps: #posted
  13. class: Map
  14. local: id
  15. foreign: author_id
  16. Downloads: #downloaded maps
  17. class: Map
  18. local: downloader_id
  19. foreign: map_id
  20. refClass: AccountMap
  21. Map:
  22. tableName: map
  23. columns:
  24. id: integer(9)
  25. author_id: integer(9)
  26. file: varchar(255) #the name of the file/of the screen (so without extension here)
  27. price: smallint(3) #the price (smallint = 32767)
  28. relations:
  29. Author:
  30. class: Account
  31. local: author_id
  32. foreign: id
  33. Downloaders:
  34. class: Account
  35. local: map_id
  36. foreign: downloader_id
  37. refClass: AccountMap
  38. AccountMap:
  39. tableName: account_map
  40. columns:
  41. id: integer(9)
  42. map_id: integer(9)
  43. downloader_id: integer(9)
Add Comment
Please, Sign In to add comment