{"action":"closed","issue":{"url":"https://api.github.com/repos/wandersonwhcr/balance/issues/6","labels_url":"https://api.github.com/repos/wandersonwhcr/balance/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/wandersonwhcr/balance/issues/6/comments","events_url":"https://api.github.com/repos/wandersonwhcr/balance/issues/6/events","html_url":"https://github.com/wandersonwhcr/balance/issues/6","id":113009086,"number":6,"title":"Estrutura de Banco de Dados","user":{"login":"wandersonwhcr","id":5286703,"avatar_url":"https://avatars.githubusercontent.com/u/5286703?v=3","gravatar_id":"","url":"https://api.github.com/users/wandersonwhcr","html_url":"https://github.com/wandersonwhcr","followers_url":"https://api.github.com/users/wandersonwhcr/followers","following_url":"https://api.github.com/users/wandersonwhcr/following{/other_user}","gists_url":"https://api.github.com/users/wandersonwhcr/gists{/gist_id}","starred_url":"https://api.github.com/users/wandersonwhcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wandersonwhcr/subscriptions","organizations_url":"https://api.github.com/users/wandersonwhcr/orgs","repos_url":"https://api.github.com/users/wandersonwhcr/repos","events_url":"https://api.github.com/users/wandersonwhcr/events{/privacy}","received_events_url":"https://api.github.com/users/wandersonwhcr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wandersonwhcr/balance/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"petersonwpm","id":2123360,"avatar_url":"https://avatars.githubusercontent.com/u/2123360?v=3","gravatar_id":"","url":"https://api.github.com/users/petersonwpm","html_url":"https://github.com/petersonwpm","followers_url":"https://api.github.com/users/petersonwpm/followers","following_url":"https://api.github.com/users/petersonwpm/following{/other_user}","gists_url":"https://api.github.com/users/petersonwpm/gists{/gist_id}","starred_url":"https://api.github.com/users/petersonwpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petersonwpm/subscriptions","organizations_url":"https://api.github.com/users/petersonwpm/orgs","repos_url":"https://api.github.com/users/petersonwpm/repos","events_url":"https://api.github.com/users/petersonwpm/events{/privacy}","received_events_url":"https://api.github.com/users/petersonwpm/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-10-23T12:22:15Z","updated_at":"2015-10-26T15:26:04Z","closed_at":"2015-10-26T15:26:04Z","body":"Precisamos criar a estrutura básica de banco de dados para armazenar as informações do Balance. Basicamente, o Balance necessita destas informações:\r\n\r\n```\r\ncontas\r\n    - id\r\n    - nome\r\n    - tipo (ativo|passivo)\r\n    - descrição\r\nlançamentos\r\n    - id\r\n    - data e hora\r\n    - descrição\r\nentradas\r\n    - contas -> id\r\n    - lançamentos -> id\r\n    - tipo (crédito|débito)\r\n    - valor\r\n```\r\n\r\nUtilizar o PHINX para criação das _migrations_ de banco de dados. Colocar as _migrations_ dentro do módulo e não na raiz do projeto. Para cada tabela gerada, criar uma _migration_ separada."}}