{"action":"opened","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/570","labels_url":"https://api.github.com/repos/lxc/lxd/issues/570/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/570/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/570/events","html_url":"https://github.com/lxc/lxd/issues/570","id":72386432,"number":570,"title":"use ON DELETE CASCADE where applicable","user":{"login":"tych0","id":785111,"avatar_url":"https://avatars.githubusercontent.com/u/785111?v=3","gravatar_id":"","url":"https://api.github.com/users/tych0","html_url":"https://github.com/tych0","followers_url":"https://api.github.com/users/tych0/followers","following_url":"https://api.github.com/users/tych0/following{/other_user}","gists_url":"https://api.github.com/users/tych0/gists{/gist_id}","starred_url":"https://api.github.com/users/tych0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tych0/subscriptions","organizations_url":"https://api.github.com/users/tych0/orgs","repos_url":"https://api.github.com/users/tych0/repos","events_url":"https://api.github.com/users/tych0/events{/privacy}","received_events_url":"https://api.github.com/users/tych0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-01T08:44:40Z","updated_at":"2015-05-01T08:44:40Z","closed_at":null,"body":"While poking around in my DB, I noticed some devices for old containers that didn't exist any more. we should use a cascading delete so that these aren't left laying around."}}