Last active
May 22, 2016 04:00
-
-
Save vjefri/45ebb9bc22ab4e4f20f3aba1ff296dff to your computer and use it in GitHub Desktop.
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
// models/user.js | |
'use strict'; | |
const Nodal = require('nodal'); | |
const Tweet = Nodal.require('app/models/tweet.js'); // import me | |
User.setDatabase(Nodal.require('db/main.js')); | |
User.setSchema(Nodal.my.Schema.models.User); | |
User.joinedBy(Tweet); // add me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment