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

Commit 6fb971f9 by Jan Aagaard Meier

Merge pull request #5673 from krmannix/datatype-doc-fix

[ci skip] Minor Docs fix
2 parents 9ddb152e c01d452d
Showing with 2 additions and 2 deletions
...@@ -265,6 +265,7 @@ sequelize.define('user', { ...@@ -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 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. 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. ...@@ -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 __Aliases:__ NONE
*** ***
......
...@@ -739,6 +739,7 @@ UUIDV4.prototype.validate = function(value) { ...@@ -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 * 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. * 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) { ...@@ -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 * @property VIRTUAL
* @alias NONE * @alias NONE
*/ */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!