Skip to content

Commit

Permalink
db: update default schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ntzyz committed Mar 8, 2019
1 parent b73712a commit 457e9bb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions db.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@

db.posts.remove({});
db.posts.insertMany([{
'title': '世界,您好!',
'slug': 'hello-world',
'category': 'Default',
'date': new Date(0),
'tags': ['HelloWorld'],
'content': {
'encoding': 'HTML',
'content': '<p>欢迎使用 Xplosiss。这是您的第一篇文章。编辑或删除它,然后开始写作吧!</p>'
},
'body': [
{
'content': '<p>欢迎使用 Xplosiss。这是您的第一篇文章。编辑或删除它,然后开始写作吧!</p>',
'format': 'HTML',
'language': 'zh',
'default': true
}
],
'replies': [{
'user': '一位 Xplosiss 评论者',
'email': '',
Expand Down

0 comments on commit 457e9bb

Please sign in to comment.