{"action":"closed","issue":{"url":"https://api.github.com/repos/pgmodeler/pgmodeler/issues/837","repository_url":"https://api.github.com/repos/pgmodeler/pgmodeler","labels_url":"https://api.github.com/repos/pgmodeler/pgmodeler/issues/837/labels{/name}","comments_url":"https://api.github.com/repos/pgmodeler/pgmodeler/issues/837/comments","events_url":"https://api.github.com/repos/pgmodeler/pgmodeler/issues/837/events","html_url":"https://github.com/pgmodeler/pgmodeler/issues/837","id":152748969,"number":837,"title":"The object schema.gender is being referenced before its creation","user":{"login":"rictorres","id":351568,"avatar_url":"https://avatars.githubusercontent.com/u/351568?v=3","gravatar_id":"","url":"https://api.github.com/users/rictorres","html_url":"https://github.com/rictorres","followers_url":"https://api.github.com/users/rictorres/followers","following_url":"https://api.github.com/users/rictorres/following{/other_user}","gists_url":"https://api.github.com/users/rictorres/gists{/gist_id}","starred_url":"https://api.github.com/users/rictorres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rictorres/subscriptions","organizations_url":"https://api.github.com/users/rictorres/orgs","repos_url":"https://api.github.com/users/rictorres/repos","events_url":"https://api.github.com/users/rictorres/events{/privacy}","received_events_url":"https://api.github.com/users/rictorres/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-03T11:07:07Z","updated_at":"2016-05-03T12:26:45Z","closed_at":"2016-05-03T12:26:45Z","body":"First of all, thanks for this awesome project!\r\n\r\nI created an `ENUM` type and then referenced it in some tables. The problem is that the SQL code for this type is actually after the SQL code for the tables.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/351568/14981457/a218220a-112f-11e6-8e4f-b16d80c15ec8.png)\r\n\r\nIs this a bug or have I done something wrong?\r\n\r\nThanks!"}}