Guest User

Untitled

a guest
Oct 17th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. PostgreSQL:
  2. user A (non-super-user admin account with createdb and createuser)
  3.  
  4. destiny database:
  5. # main destiny database
  6. user X (job account with read/write)
  7. user Y (api account with read-only)
  8.  
  9. alliance table:
  10. # Manually created reference info for "meta-clan" groupings
  11. id (int) *primary key*
  12. name (text)
  13. members (jsonb) array of uint32 Bungie clan groupIds
  14.  
  15. group table:
  16. # Destiny clan info built from alliance.members array of groupId values for each alliance in alliance table
  17. id (bigint) *primary* key which is a Bungie clan groupId
  18. alliance_id (int) *references* alliances entry
  19. updated (timestamp)
  20. detail (jsonb) GroupV2.GetGroup.Response.detail object
  21. founder (jsonb) GroupV2.GetGroup.Response.founder object
  22. members (jsonb) GroupV2.GetMembersOfGroup.Response.results object
  23.  
  24. account table:
  25. # Destiny account info built from group.members array of objects for each group in group table
  26. membershiptype (int) *composite primary key1* Destiny membershipType from group.members.[index].destinyUserInfo.membershipType value
  27. membershipid (bigint) *composite primary key2* Destiny membershipId from group.members.[index].destinyUserInfo.membershipId value
  28. group_id (bigint) *references* groups entry
  29. alliance_id (int) *references* alliances entry
  30. displayname (text) Destiny displayName from group.members.[index].destinyUserInfo.displayName value
  31. iconpath (text) Destiny iconPath from group.members.[index].destinyUserInfo.iconPath value
  32. updated (timestamp)
  33. accountstats (jsonb) Destiny2.GetHistoricalStatsForAccount.Response object
  34. characterdata (jsonb) Destiny2.GetProfile.Response.characters.data object
  35. characterstats (jsonb) Destiny2.GetHistoricalStats.Response object (meta object built from multiple requests)
  36.  
  37. # follow @dad2cl3 concept of manifest handling?
  38. manifest_version table:
  39. manifest table:
  40. manifest_stage table:
  41. # Remember to ask why the stage table is needed
Add Comment
Please, Sign In to add comment