Last active
December 28, 2015 14:09
-
-
Save t3chnoboy/7512645 to your computer and use it in GitHub Desktop.
sails generate model User name:string password:string email:email age:number --coffee
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # User | |
| # | |
| # @module :: Model | |
| # @description :: A short summary of how this model works and what it represents. | |
| # @docs :: http://sailsjs.org/#!documentation/models | |
| module.exports = | |
| attributes: { | |
| #e.g | |
| #nickname: 'string' | |
| name : 'STRING' | |
| password : 'STRING' | |
| email : 'EMAIL' | |
| age : 'NUMBER' | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wrong indentation @line 12. Probably a vim-gist plugin issue. Indent is correct when opening generated files in text editor http://cl.ly/image/2o360R290113.