{"action":"created","issue":{"url":"https://api.github.com/repos/ozum/sequelize-pg-generator/issues/2","labels_url":"https://api.github.com/repos/ozum/sequelize-pg-generator/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ozum/sequelize-pg-generator/issues/2/comments","events_url":"https://api.github.com/repos/ozum/sequelize-pg-generator/issues/2/events","html_url":"https://github.com/ozum/sequelize-pg-generator/issues/2","id":73470588,"number":2,"title":"get error when I run spgen","user":{"login":"machinshin","id":706190,"avatar_url":"https://avatars.githubusercontent.com/u/706190?v=3","gravatar_id":"","url":"https://api.github.com/users/machinshin","html_url":"https://github.com/machinshin","followers_url":"https://api.github.com/users/machinshin/followers","following_url":"https://api.github.com/users/machinshin/following{/other_user}","gists_url":"https://api.github.com/users/machinshin/gists{/gist_id}","starred_url":"https://api.github.com/users/machinshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machinshin/subscriptions","organizations_url":"https://api.github.com/users/machinshin/orgs","repos_url":"https://api.github.com/users/machinshin/repos","events_url":"https://api.github.com/users/machinshin/events{/privacy}","received_events_url":"https://api.github.com/users/machinshin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-06T00:18:40Z","updated_at":"2015-05-06T17:53:00Z","closed_at":null,"body":"--- spgen.config.json \r\n```javascript\r\n{\r\n    \"sequelize-pg-generator\":  {\r\n        \"database\": {\r\n            \"host\": \"localhost\",\r\n            \"port\": 5432,\r\n            \"database\": \"mydb\",\r\n            \"user\": \"root\",\r\n            \"schema\": [\"public\"]\r\n        },\r\n        \"output\": {\r\n            \"log\": true,\r\n            \"folder\": \"./src/models\",\r\n            \"beautify\": true,\r\n            \"indent\": 4,\r\n            \"preserveNewLine\": true,\r\n            \"warning\": true\r\n        },\r\n        \"generate\": {\r\n            \"useSchemaName\": false,\r\n            \"stripFirstTableFromHasMany\": true,\r\n            \"stripFirstTableFromManyToMany\": true,\r\n            \"belongsToMany\": true,\r\n            \"columnDescription\": true,\r\n            \"tableDescription\": true\r\n        },\r\n        \"tableOptions\": {\r\n            \"timestamps\": true,\r\n            \"updatedAt\": \"modified_at\"\r\n        }\r\n    }\r\n}\r\n```\r\nwhen i run: \r\n```bash\r\n$ spgen -p mypassword --config spgen.config.json\r\ninfo: (Created) Index file:[project-directory]/src/models/index.js\r\n[Error: Schema's Child Object \"mydb.public.atable\" cannot be found in tables.]\r\n```\r\n(names changed to protect the innocent ;) )\r\nnot sure what is going on here, what am i missing?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ozum/sequelize-pg-generator/issues/comments/99552057","html_url":"https://github.com/ozum/sequelize-pg-generator/issues/2#issuecomment-99552057","issue_url":"https://api.github.com/repos/ozum/sequelize-pg-generator/issues/2","id":99552057,"user":{"login":"ozum","id":1497060,"avatar_url":"https://avatars.githubusercontent.com/u/1497060?v=3","gravatar_id":"","url":"https://api.github.com/users/ozum","html_url":"https://github.com/ozum","followers_url":"https://api.github.com/users/ozum/followers","following_url":"https://api.github.com/users/ozum/following{/other_user}","gists_url":"https://api.github.com/users/ozum/gists{/gist_id}","starred_url":"https://api.github.com/users/ozum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozum/subscriptions","organizations_url":"https://api.github.com/users/ozum/orgs","repos_url":"https://api.github.com/users/ozum/repos","events_url":"https://api.github.com/users/ozum/events{/privacy}","received_events_url":"https://api.github.com/users/ozum/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T17:53:00Z","updated_at":"2015-05-06T17:53:00Z","body":"Unfortunately spgen only provides debug info as you see it. I can't promise but consider add more debug info for future versions."}}