"use strict";

Nbsp.Messages = new Mongo.Collection("rooms");

Nbsp.MessageSchema = new SimpleSchema({
  from: {
    type: String,
    label: "Your name",
    max: 64
  },
  content: {
    type: String,
    label: "Your message"
    max: 256
  },
  createdAt: {
    type: Date
  },
  updatedAt: {
    type: Date,
    optional: true
  }
});

@@ -13,23 +13,20 @@
 ;%0A%0ANbsp.
-Message
+Card
 s = new 
@@ -47,30 +47,527 @@
 on(%22
-rooms%22);%0A%0ANbsp.Message
+cards%22);%0A%0ANbsp.Cards.allow(%7B%0A  insert() %7B return false; %7D,%0A  update() %7B return false; %7D,%0A  remove() %7B return false; %7D%0A%7D);%0A%0ANbsp.Cards.deny(%7B%0A  insert() %7B return true; %7D,%0A  update() %7B return true; %7D,%0A  remove() %7B return true; %7D%0A%7D);%0A%0ANbsp.CardPositionSchema = new SimpleSchema(%7B%0A  x: %7B%0A    type: Number,%0A    min: 0,%0A    max: 100%0A  %7D,%0A  y: %7B%0A    type: Number,%0A    min: 0,%0A    max: 100%0A  %7D,%0A  z: %7B%0A    type: Number,%0A    min: 1,%0A    max: 9999%0A  %7D,%0A  rotation: %7B%0A    type: Number,%0A    min: 0,%0A    max: 100%0A  %7D,%0A%7D);%0A%0ANbsp.Card
 Sche
@@ -715,16 +715,17 @@
 message%22
+,
 %0A    max
@@ -735,16 +735,154 @@
 56%0A  %7D,%0A
+  hue: %7B%0A    type: Number,%0A    label: %22Light color%22,%0A    min: 0,%0A    max: 65535%0A  %7D,%0A  position: %7B%0A    type: Nbsp.CardPositionSchema%0A  %7D,%0A
   create

Rename (and improve) message collection and schema to cards