<commit_before>Boards = new Mongo.Collection('boards');

Boards.allow({
    insert: () => false,
    update: () => false,
    remove: () => false
});

Boards.deny({
    insert: () => true,
    update: () => true,
    remove: () => true
});

let BoardsSchema = new SimpleSchema({
    'gameId': {
        type: String,
        label: 'The id of the game this board belongs to'
    },
    'owner': {
        type: String,
        label: 'The username of user that owns the board'
    },
    'createdAt': {
        type: Date,
        label: 'The date the board was created'
    },
    'placements': {
        type: Array,
        label: 'The placement of the owners units on the board',
        optional: true
    },
    'status': {
        type: String,
        label: 'The status of the game',
        optional: true
    }
});

Boards.attachSchema(BoardsSchema);<commit_msg>error in schema - wip<commit_after>Boards = new Mongo.Collection('boards');

Boards.allow({
    insert: () => false,
    update: () => false,
    remove: () => false
});

Boards.deny({
    insert: () => true,
    update: () => true,
    remove: () => true
});

let BoardsSchema = new SimpleSchema({
    'gameId': {
        type: String,
        label: 'The id of the game this board belongs to'
    },
    'owner': {
        type: String,
        label: 'The username of user that owns the board'
    },
    'createdAt': {
        type: Date,
        label: 'The date the board was created'
    },
    // @TODO: consider new collection for placements or use .$ to define array objs
    //'placements': {
    //    type: Array,
    //    label: 'The placement of the owners units on the board',
    //    optional: true
    //},
    'status': {
        type: String,
        label: 'The status of the game',
        optional: true
    }
});

Boards.attachSchema(BoardsSchema);
{'fraction_non_alphanumeric': 0.14339826839826839, 'fraction_numerical': 0.0, 'mean_word_length': 2.1285956006768187, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4859759', 'n_tokens_mistral': 563, 'n_tokens_neox': 562, 'n_words': 180}