Skip to content

Instantly share code, notes, and snippets.

@kraktus
Created October 3, 2021 11:42
Show Gist options
  • Save kraktus/92e302ed9fad705cd62d5c30343a5a95 to your computer and use it in GitHub Desktop.
Save kraktus/92e302ed9fad705cd62d5c30343a5a95 to your computer and use it in GitHub Desktop.
// Run it with `mongo lichess gen-lichess-swiss.js`
const makeLichessSwiss = {
_id: "lichess-swiss",
name: "Lichess Swiss",
description: "The official Lichess Swiss team. We organize regular swiss tournaments for all to join.",
nbMembers: 1,
enabled: true,
open: true,
createdAt: ISODate('2021-01-01T00:00:00'),
createdBy: 'lichess',
leaders: [ 'lichess' ],
chat: 20,
forum: 20
};
const addLichessToLichessSwiss = {
_id: 'lichess@lichess-swiss',
team: 'lichess-swiss',
user: 'lichess',
date: ISODate('2021-01-01T00:00:00')
}
db.team.insertOne(makeLichessSwiss);
db.team_member.insertOne(addLichessToLichessSwiss);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment