Skip to content

Instantly share code, notes, and snippets.

@npfitz
Created March 18, 2014 19:03
Show Gist options
  • Save npfitz/9627085 to your computer and use it in GitHub Desktop.
Save npfitz/9627085 to your computer and use it in GitHub Desktop.
module.exports = {
migrate: 'alter',
schema: true,
attributes: {
//Name of the Project
name: {
type: "string",
required: true
},
//ID of the Workspace that the project belongs to
client:{
model: "client"
},
status: {
type: "string",
in: ["active", "archived", "removed"],
defaultsTo: "active"
},
users:{
collection: 'user',
via: 'projects',
dominant: true
},
discussions: {
collection: 'discussion',
via: 'project',
dominant: true
},
moodboards: {
collection: 'Moodboard',
via: 'project',
dominant: true
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment