{"action":"closed","issue":{"url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/1228","labels_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/1228/labels{/name}","comments_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/1228/comments","events_url":"https://api.github.com/repos/DaftMonk/generator-angular-fullstack/issues/1228/events","html_url":"https://github.com/DaftMonk/generator-angular-fullstack/issues/1228","id":103973065,"number":1228,"title":"Recently generated app doesn't have Things on sqldb","user":{"login":"DanMMX","id":1919322,"avatar_url":"https://avatars.githubusercontent.com/u/1919322?v=3","gravatar_id":"","url":"https://api.github.com/users/DanMMX","html_url":"https://github.com/DanMMX","followers_url":"https://api.github.com/users/DanMMX/followers","following_url":"https://api.github.com/users/DanMMX/following{/other_user}","gists_url":"https://api.github.com/users/DanMMX/gists{/gist_id}","starred_url":"https://api.github.com/users/DanMMX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanMMX/subscriptions","organizations_url":"https://api.github.com/users/DanMMX/orgs","repos_url":"https://api.github.com/users/DanMMX/repos","events_url":"https://api.github.com/users/DanMMX/events{/privacy}","received_events_url":"https://api.github.com/users/DanMMX/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-31T02:12:29Z","updated_at":"2015-09-01T19:45:10Z","closed_at":"2015-09-01T19:45:10Z","body":"The `server/config/sqldb/index.js` comes with this in the start.\r\n\r\n```\r\n/**\r\n * Sequelize initialization module\r\n */\r\n\r\n'use strict';\r\n\r\nvar path = require('path');\r\nvar config = require('../config/environment');\r\n\r\nvar Sequelize = require('sequelize');\r\n\r\nvar db = {\r\n  Sequelize: Sequelize,\r\n  sequelize: new Sequelize(config.sequelize.uri, config.sequelize.options)\r\n};\r\n\r\n// Insert models below\r\n\r\nmodule.exports = db;\r\n```\r\n\r\nDoesn't include the Thing import making this code `db.Thing = db.sequelize.import('../api/thing/thing.model');` needed or a new endpoint `thing` to be created."}}