Skip to content

Instantly share code, notes, and snippets.

@tbranyen
Last active September 5, 2015 12:14
Show Gist options
  • Save tbranyen/490013 to your computer and use it in GitHub Desktop.
Save tbranyen/490013 to your computer and use it in GitHub Desktop.
var user = {
username: { type: String, required: true },
password: { type: String, required: true },
valueOf: "username"
};
var tweet = {
source: { type: String, default: "Web" },
created_at: { type: Date, default: new Date() },
text: { type: String, required: true },
user: { type: String, required: true, foreignkey: "user" }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment