-
-
Save kraktus/92e302ed9fad705cd62d5c30343a5a95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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