{"_id":"55fd9c6f56d6990d00a6cab1","version":{"_id":"55fd9c6d56d6990d00a6ca9d","project":"54d64e6b276f8e0d00feab95","__v":1,"createdAt":"2015-09-19T17:33:33.368Z","releaseDate":"2015-09-19T17:33:33.368Z","categories":["55fd9c6e56d6990d00a6ca9e","55fd9c6e56d6990d00a6ca9f","55fd9c6e56d6990d00a6caa0"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.4.0","version":"1.4.0"},"project":"54d64e6b276f8e0d00feab95","user":"54d64e31276f8e0d00feab94","category":{"_id":"55fd9c6e56d6990d00a6ca9f","version":"55fd9c6d56d6990d00a6ca9d","project":"54d64e6b276f8e0d00feab95","__v":1,"pages":["55fd9c6f56d6990d00a6caa9","55fd9c6f56d6990d00a6caaa","55fd9c6f56d6990d00a6caab","55fd9c6f56d6990d00a6caac","55fd9c6f56d6990d00a6caad","55fd9c6f56d6990d00a6caae","55fd9c6f56d6990d00a6caaf","55fd9c6f56d6990d00a6cab0","55fd9c6f56d6990d00a6cab1"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-02-07T17:51:18.995Z","from_sync":false,"order":1,"slug":"generators","title":"Generators"},"__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-02-10T19:20:54.348Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":8,"body":"# Usage\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ kick generate model <name>...\\n$ kick g model <name>...\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n# Description\n\nThis will generate models under app/models directory and unit tests for each of them. You can pass as many names as you like. You can also generate models in subdirectories:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$ kick generate model auth admin/user admin/order\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nThe above command will generate app/models/auth.js, app/models/admin/user.js and app/models/admin/order.js, and place them under the 'App.services' module.","excerpt":"","slug":"models","type":"basic","title":"Model"}
# Usage [block:code] { "codes": [ { "code": "$ kick generate model <name>...\n$ kick g model <name>...", "language": "shell" } ] } [/block] # Description This will generate models under app/models directory and unit tests for each of them. You can pass as many names as you like. You can also generate models in subdirectories: [block:code] { "codes": [ { "code": "$ kick generate model auth admin/user admin/order", "language": "shell" } ] } [/block] The above command will generate app/models/auth.js, app/models/admin/user.js and app/models/admin/order.js, and place them under the 'App.services' module.