{"action":"closed","issue":{"url":"https://api.github.com/repos/alexgerstein/Sourcemash/issues/47","labels_url":"https://api.github.com/repos/alexgerstein/Sourcemash/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/alexgerstein/Sourcemash/issues/47/comments","events_url":"https://api.github.com/repos/alexgerstein/Sourcemash/issues/47/events","html_url":"https://github.com/alexgerstein/Sourcemash/issues/47","id":56191449,"number":47,"title":"Create db seed file.","user":{"login":"alexgerstein","id":1390314,"avatar_url":"https://avatars.githubusercontent.com/u/1390314?v=3","gravatar_id":"","url":"https://api.github.com/users/alexgerstein","html_url":"https://github.com/alexgerstein","followers_url":"https://api.github.com/users/alexgerstein/followers","following_url":"https://api.github.com/users/alexgerstein/following{/other_user}","gists_url":"https://api.github.com/users/alexgerstein/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgerstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgerstein/subscriptions","organizations_url":"https://api.github.com/users/alexgerstein/orgs","repos_url":"https://api.github.com/users/alexgerstein/repos","events_url":"https://api.github.com/users/alexgerstein/events{/privacy}","received_events_url":"https://api.github.com/users/alexgerstein/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/alexgerstein/Sourcemash/labels/Database","name":"Database","color":"006b75"},{"url":"https://api.github.com/repos/alexgerstein/Sourcemash/labels/DevOps","name":"DevOps","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"swglad","id":5695548,"avatar_url":"https://avatars.githubusercontent.com/u/5695548?v=3","gravatar_id":"","url":"https://api.github.com/users/swglad","html_url":"https://github.com/swglad","followers_url":"https://api.github.com/users/swglad/followers","following_url":"https://api.github.com/users/swglad/following{/other_user}","gists_url":"https://api.github.com/users/swglad/gists{/gist_id}","starred_url":"https://api.github.com/users/swglad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swglad/subscriptions","organizations_url":"https://api.github.com/users/swglad/orgs","repos_url":"https://api.github.com/users/swglad/repos","events_url":"https://api.github.com/users/swglad/events{/privacy}","received_events_url":"https://api.github.com/users/swglad/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/alexgerstein/Sourcemash/milestones/5","labels_url":"https://api.github.com/repos/alexgerstein/Sourcemash/milestones/5/labels","id":972004,"number":5,"title":"Week 7","description":"Get categorization working on articles.","creator":{"login":"alexgerstein","id":1390314,"avatar_url":"https://avatars.githubusercontent.com/u/1390314?v=3","gravatar_id":"","url":"https://api.github.com/users/alexgerstein","html_url":"https://github.com/alexgerstein","followers_url":"https://api.github.com/users/alexgerstein/followers","following_url":"https://api.github.com/users/alexgerstein/following{/other_user}","gists_url":"https://api.github.com/users/alexgerstein/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgerstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgerstein/subscriptions","organizations_url":"https://api.github.com/users/alexgerstein/orgs","repos_url":"https://api.github.com/users/alexgerstein/repos","events_url":"https://api.github.com/users/alexgerstein/events{/privacy}","received_events_url":"https://api.github.com/users/alexgerstein/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":9,"state":"open","created_at":"2015-02-09T16:13:33Z","updated_at":"2015-02-16T03:45:28Z","due_on":"2015-02-16T05:00:00Z","closed_at":null},"comments":0,"created_at":"2015-02-02T03:08:40Z","updated_at":"2015-02-16T03:45:28Z","closed_at":"2015-02-16T03:45:28Z","body":"It would be nice if we had a command for the DB to populate itself with users, feeds, etc whenever we create a db for the first time (i.e. after rm app.db, or during testing).\r\n\r\nIt probably makes the most sense to do this as a manage.py script. For example,\r\n\r\n```python\r\n@manager.command\r\ndef seed():\r\n    \"Add seed data to the database.\"\r\n    db.session.add(...)\r\n    db.session.commit()\r\n```"}}