Courses = new Mongo.Collection("courses");

Courses.schema = new SimpleSchema({
  name: {
    type: String
  },
  description: {
    type: String,
    optional: true
  },
  listserv: {
    type: String,
    regEx: SimpleSchema.RegEx.Email,
    optional: true
  },
  active: {
    type: Boolean
  },

  htas: {
    type: [String],
    regEx: SimpleSchema.RegEx.Id,
    optional: true
  },
  tas: {
    type: [String],
    regEx: SimpleSchema.RegEx.Id,
    optional: true
  },

  createdAt: {
    type: Date
  }
});

Courses.attachSchema(Courses.schema);

Courses.allow({
  insert: function() { return false; },
  update: function() { return false; },
  remove: function() { return false; }
});

Courses.deny({
  insert: function() { return true; },
  update: function() { return true; },
  remove: function() { return true; }
});

@@ -78,29 +78,24 @@
 (%7B%0A  name: %7B
-%0A    
 type: String
@@ -94,19 +94,16 @@
 : String
-%0A  
 %7D,%0A  des
@@ -113,21 +113,16 @@
 ption: %7B
-%0A    
 type: St
@@ -126,20 +126,16 @@
  String,
-%0A   
  optiona
@@ -137,27 +137,24 @@
 tional: true
-%0A  
 %7D,%0A  listser
@@ -157,21 +157,16 @@
 tserv: %7B
-%0A    
 type: St
@@ -170,20 +170,16 @@
  String,
-%0A   
  regEx: 
@@ -203,20 +203,16 @@
 x.Email,
-%0A   
  optiona
@@ -214,27 +214,24 @@
 tional: true
-%0A  
 %7D,%0A  active:
@@ -232,21 +232,16 @@
 ctive: %7B
-%0A    
 type: Bo
@@ -245,19 +245,16 @@
  Boolean
-%0A  
 %7D,%0A%0A  ht
@@ -254,29 +254,24 @@
 ,%0A%0A  htas: %7B
-%0A    
 type: %5BStrin
@@ -265,36 +265,32 @@
 %7Btype: %5BString%5D,
-%0A   
  regEx: SimpleSc
@@ -295,36 +295,32 @@
 Schema.RegEx.Id,
-%0A   
  optional: true%0A
@@ -318,19 +318,16 @@
 al: true
-%0A  
 %7D,%0A  tas
@@ -329,21 +329,16 @@
   tas: %7B
-%0A    
 type: %5BS
@@ -344,20 +344,16 @@
 String%5D,
-%0A   
  regEx: 
@@ -374,20 +374,16 @@
 egEx.Id,
-%0A   
  optiona
@@ -389,19 +389,16 @@
 al: true
-%0A  
 %7D,%0A%0A  cr
@@ -411,26 +411,20 @@
 t: %7B
-%0A    
 type: 
-Date%0A  
+Number
 %7D%0A%7D)

Trim down courses schema