Guest User

Untitled

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