robin*

디폴트 판 생성

...@@ -6,4 +6,5 @@ module.exports = db; ...@@ -6,4 +6,5 @@ module.exports = db;
6 db.then(async() => { 6 db.then(async() => {
7 await db.get('board').createIndex({name: 1}, {unique: true}); 7 await db.get('board').createIndex({name: 1}, {unique: true});
8 await db.get('thread').createIndex({board: 1, lastUpdated: -1}); 8 await db.get('thread').createIndex({board: 1, lastUpdated: -1});
9 + await db.get('board').insert({name: 'amumal', title: '아무말판'});
9 }); 10 });
......