var mongoose = require('mongoose')
    , Schema = mongoose.Schema;

//Schema for data that has been manipulated by students 
            //(output from client)

var Assignment = new Schema ({

    //For tracking submissions and route creation
    email:              { type: String, default: ''},
    assignmentNumber:   {type: String, default: ''},
    dateCreated:        {type: String, default: ''},
    shared:             {type: Boolean, default: 'false'},//public or private
    
    //uploaded data, nodes can be x,y as in scatteplots
    //links can be any association 
    nodes: [Schema.Types.Mixed],
    links: [{ 
        to:     {type: String, default: ''},
        from:   {type: String, default: ''},
        value:  {type: String, default: ''}
    }]
    //add a before and after so that student can see changes
})

mongoose.model('Assignment', Assignment);

@@ -256,20 +256,16 @@
         
-    
 %7B type: 
@@ -304,14 +304,10 @@
 ment
-Number
+ID
 :   
@@ -351,20 +351,16 @@
 Created:
-    
     %7Btyp
@@ -354,38 +354,36 @@
 ated:    %7Btype: 
-String
+Date
 , default: ''%7D,%0A
@@ -373,26 +373,34 @@
 e, default: 
-''
+Date.now()
 %7D,%0A    share
@@ -401,20 +401,16 @@
  shared:
-    
         

set date as default and cleanup