{"action":"created","issue":{"url":"https://api.github.com/repos/simone-campagna/petra/issues/2","labels_url":"https://api.github.com/repos/simone-campagna/petra/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/simone-campagna/petra/issues/2/comments","events_url":"https://api.github.com/repos/simone-campagna/petra/issues/2/events","html_url":"https://github.com/simone-campagna/petra/issues/2","id":63004286,"number":2,"title":"persistence management","user":{"login":"simone-campagna","id":2890195,"avatar_url":"https://avatars.githubusercontent.com/u/2890195?v=3","gravatar_id":"","url":"https://api.github.com/users/simone-campagna","html_url":"https://github.com/simone-campagna","followers_url":"https://api.github.com/users/simone-campagna/followers","following_url":"https://api.github.com/users/simone-campagna/following{/other_user}","gists_url":"https://api.github.com/users/simone-campagna/gists{/gist_id}","starred_url":"https://api.github.com/users/simone-campagna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simone-campagna/subscriptions","organizations_url":"https://api.github.com/users/simone-campagna/orgs","repos_url":"https://api.github.com/users/simone-campagna/repos","events_url":"https://api.github.com/users/simone-campagna/events{/privacy}","received_events_url":"https://api.github.com/users/simone-campagna/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/simone-campagna/petra/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"simone-campagna","id":2890195,"avatar_url":"https://avatars.githubusercontent.com/u/2890195?v=3","gravatar_id":"","url":"https://api.github.com/users/simone-campagna","html_url":"https://github.com/simone-campagna","followers_url":"https://api.github.com/users/simone-campagna/followers","following_url":"https://api.github.com/users/simone-campagna/following{/other_user}","gists_url":"https://api.github.com/users/simone-campagna/gists{/gist_id}","starred_url":"https://api.github.com/users/simone-campagna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simone-campagna/subscriptions","organizations_url":"https://api.github.com/users/simone-campagna/orgs","repos_url":"https://api.github.com/users/simone-campagna/repos","events_url":"https://api.github.com/users/simone-campagna/events{/privacy}","received_events_url":"https://api.github.com/users/simone-campagna/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/simone-campagna/petra/milestones/1","html_url":"https://github.com/simone-campagna/petra/milestones/1.0","labels_url":"https://api.github.com/repos/simone-campagna/petra/milestones/1/labels","id":1029297,"number":1,"title":"1.0","description":"persistence management","creator":{"login":"simone-campagna","id":2890195,"avatar_url":"https://avatars.githubusercontent.com/u/2890195?v=3","gravatar_id":"","url":"https://api.github.com/users/simone-campagna","html_url":"https://github.com/simone-campagna","followers_url":"https://api.github.com/users/simone-campagna/followers","following_url":"https://api.github.com/users/simone-campagna/following{/other_user}","gists_url":"https://api.github.com/users/simone-campagna/gists{/gist_id}","starred_url":"https://api.github.com/users/simone-campagna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simone-campagna/subscriptions","organizations_url":"https://api.github.com/users/simone-campagna/orgs","repos_url":"https://api.github.com/users/simone-campagna/repos","events_url":"https://api.github.com/users/simone-campagna/events{/privacy}","received_events_url":"https://api.github.com/users/simone-campagna/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-03-19T14:28:09Z","updated_at":"2015-03-19T14:31:40Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-03-19T14:30:57Z","updated_at":"2015-03-19T14:34:45Z","closed_at":null,"body":"Add a persistence manager class to allow\r\n1) saving snapshots\r\n2) saving updates (== token movements/changes)\r\n3) load specific snapshots"},"comment":{"url":"https://api.github.com/repos/simone-campagna/petra/issues/comments/83610884","html_url":"https://github.com/simone-campagna/petra/issues/2#issuecomment-83610884","issue_url":"https://api.github.com/repos/simone-campagna/petra/issues/2","id":83610884,"user":{"login":"simone-campagna","id":2890195,"avatar_url":"https://avatars.githubusercontent.com/u/2890195?v=3","gravatar_id":"","url":"https://api.github.com/users/simone-campagna","html_url":"https://github.com/simone-campagna","followers_url":"https://api.github.com/users/simone-campagna/followers","following_url":"https://api.github.com/users/simone-campagna/following{/other_user}","gists_url":"https://api.github.com/users/simone-campagna/gists{/gist_id}","starred_url":"https://api.github.com/users/simone-campagna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simone-campagna/subscriptions","organizations_url":"https://api.github.com/users/simone-campagna/orgs","repos_url":"https://api.github.com/users/simone-campagna/repos","events_url":"https://api.github.com/users/simone-campagna/events{/privacy}","received_events_url":"https://api.github.com/users/simone-campagna/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T14:34:45Z","updated_at":"2015-03-19T14:34:45Z","body":"Possible implementation:\r\n* table Changeset to get increasing changeset numbers\r\n* table Updates to store each token change\r\n* table snapshot, automatically maintained by inserting in Updates (with triggers)\r\n\r\nA token change can be:\r\n* exiting from a place\r\n* entering in a place\r\n* entering in a task\r\n"}}