@@ -84,9 +84,9 @@ Sequelize.BLOB('tiny') // TINYBLOB (bytea for PostgreSQL. Other o
Sequelize.UUID// UUID datatype for PostgreSQL and SQLite, CHAR(36) BINARY for MySQL (use defaultValue: Sequelize.UUIDV1 or Sequelize.UUIDV4 to make sequelize generate the ids automatically)
```
The BLOB data type allows you to insert data both as strings and as buffers. When you do a find or findAll on a model which has a BLOB column, that data will always be returned as a buffer.
If you are working with the PostgreSQL TIMESTAMP WITHOUT TIME ZONE and you need to parse it to a different timezone, please use the pg library's own parser:
The BLOB data type allows you to insert data both as strings and as buffers. When you do a find or findAll on a model which has a BLOB column. that data will always be returned as a buffer.
If you are working with the PostgreSQL TIMESTAMP WITHOUT TIME ZONE and you need to parse it to a different timezone, please use the pg library's own parser:
In addition to the type mentioned above, integer, bigint and float also support unsigned and zerofill properties, which can be combined in any order:
In addition to the type mentioned above, integer, bigint and float also support unsigned and zerofill properties, which can be combined in any order:
_The examples above only show integer, but the same can be done with bigint and float_
Usage in object notation:
Usage in object notation:
```js
// for enums:
sequelize.define('model',{
...
...
@@ -128,7 +128,7 @@ Getters and Setters can be defined in 2 ways (you can mix and match these 2
* as part of a single property definition
* as part of a model options
**N.B.:**If a getter or setter is defined in both places then the function found in the relevant property definition will always take precedence.
**N.B.:**If a getter or setter is defined in both places then the function found in the relevant property definition will always take precedence.