Skip to content

Instantly share code, notes, and snippets.

@hameddk
hameddk / all-of-your-models.js
Created March 27, 2016 16:40 — forked from DesignByOnyx/all-of-your-models.js
Adjust feathersjs with sequelize to allow models to set up relationships
// Only showing relevant changes
// The folllowing changes must be made in all of your models
var Author = sequelize.define('properties', {
...
}, {
classMethods: {
// Create a static 'associate' method - will be called later
associate: function (models) {
Author.hasMany(models.Books, { as: 'books' });
@hameddk
hameddk / keybase.md
Created March 20, 2015 08:13
keybase.md

Keybase proof

I hereby claim:

  • I am hameddk on github.
  • I am hameddk (https://keybase.io/hameddk) on keybase.
  • I have a public key whose fingerprint is 5E8D D1DA EF94 C3B7 415E 34ED 2674 7C75 F192 CBA0

To claim this, I am signing this object: