Created
May 10, 2013 03:27
-
-
Save durango/5552213 to your computer and use it in GitHub Desktop.
DataTypes error on SequelizeJS
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
| var data = sequelize.define('NativeDataType', { | |
| aBoolean3: Sequelize.BOOLEAN, | |
| aBoolean4: {type: Sequelize.BOOLEAN} | |
| }) | |
| console.log(data); |
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
| { options: | |
| { timestamps: true, | |
| instanceMethods: {}, | |
| classMethods: {}, | |
| validate: {}, | |
| freezeTableName: false, | |
| underscored: false, | |
| syncOnAssociation: true, | |
| paranoid: false, | |
| whereCollection: null, | |
| schema: null, | |
| schemaDelimiter: '', | |
| omitNull: false, | |
| hasPrimaryKeys: false }, | |
| name: 'NativeDataType', | |
| tableName: 'NativeDataTypes', | |
| rawAttributes: | |
| { aBoolean3: 'TINYINT(1)', | |
| aBoolean4: { type: 'BOOLEAN' }, | |
| id: | |
| { type: 'INTEGER', | |
| allowNull: false, | |
| primaryKey: true, | |
| autoIncrement: true }, | |
| createdAt: { type: 'TIMESTAMP WITH TIME ZONE', allowNull: false }, | |
| updatedAt: { type: 'TIMESTAMP WITH TIME ZONE', allowNull: false } }, | |
| daoFactoryManager: | |
| { daos: [ [Circular] ], | |
| sequelize: | |
| { options: [Object], | |
| config: [Object], | |
| daoFactoryManager: [Circular], | |
| connectorManager: [Object], | |
| importCache: {}, | |
| queryInterface: [Object] } }, | |
| associations: {}, | |
| validate: {}, | |
| primaryKeys: {}, | |
| primaryKeyCount: 0, | |
| hasPrimaryKeys: false, | |
| autoIncrementField: 'id', | |
| DAO: { [Function] super_: [Function] } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment