不要怂,就是干,撸起袖子干!

Commit c01d452d by Kevin Mannix

comment about code snippet was out of order

1 parent 7f90dc69
Showing with 2 additions and 2 deletions
......@@ -265,6 +265,7 @@ sequelize.define('user', {
}
})
```
In the above code the password is stored plainly in the password field so it can be validated, but is never stored in the DB.
VIRTUAL also takes a return type and dependency fields as arguments
If a virtual attribute is present in `attributes` it will automatically pull in the extra fields as well.
......@@ -280,7 +281,6 @@ Return type is mostly useful for setups that rely on types like GraphQL.
}
```
In the above code the password is stored plainly in the password field so it can be validated, but is never stored in the DB.
__Aliases:__ NONE
***
......
......@@ -739,6 +739,7 @@ UUIDV4.prototype.validate = function(value) {
* }
* })
* ```
* In the above code the password is stored plainly in the password field so it can be validated, but is never stored in the DB.
*
* VIRTUAL also takes a return type and dependency fields as arguments
* If a virtual attribute is present in `attributes` it will automatically pull in the extra fields as well.
......@@ -754,7 +755,6 @@ UUIDV4.prototype.validate = function(value) {
* }
* ```
*
* In the above code the password is stored plainly in the password field so it can be validated, but is never stored in the DB.
* @property VIRTUAL
* @alias NONE
*/
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!