Open
Description
Hey,
thanks for the demo and the awesome work! I was fiddling around with it. Works great, but I have a couple of questions:
Associations: How do you make it happen within the project structure?
Example:
'use strict';
var User = require('./user'); // I have changed the model names a bit
module.exports = function(sequelize, DataTypes) {
var Phone = sequelize.define('phone', {
hash: {
type: DataTypes.STRING(255),
allowNull: false,
unique: true
}
});
// would be awesome if one could place it here to keep everything in one place. Throws an error though
Phone
.hasOne(User);
return Phone;
}
Migrations: Is it possible to use the migration tools (http://sequelizejs.com/docs/1.7.8/migrations#the-binary)?
Metadata
Metadata
Assignees
Labels
No labels