Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[调查] 准备使用 MongoDB 作为数据库保存单词,这样的 scheme 是否可以涵盖大部分需求? #26

Closed
Wei-Xia opened this issue Jul 5, 2019 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@Wei-Xia
Copy link
Owner

Wei-Xia commented Jul 5, 2019

{
	"_id": {
		"$oid": "5d1fc21e814d0b3635e7453b"
	},
	"type": "word",
	"content": "elastic",
	"parts-of-speech": "adjective",
	"phonetic-alphabet": "ɪˈlæstɪk",
	"meaning": {
		"zh-cn": "灵活有弹性的",
		"zh-tw": "靈活有彈性的"
	},
	"usage": {
		"zh-cn": "AWS Elastic Compute Cloud (EC2) 有「弹性、伸缩性」的特点",
		"zh-tw": "AWS Elastic Compute Cloud (EC2) 有「彈性、伸縮性」的特點"
	}
}

parts-of-speechphonetic-alphabet 都可以是 optional。

type 可以是单词、词组、缩写、符号,用来分组。

meaningusage 设置成 object,可以为以后的 internationalization 做打算,网站也可以不局限于中文世界。

@Wei-Xia Wei-Xia added the help wanted Extra attention is needed label Jul 5, 2019
@Wei-Xia Wei-Xia closed this as completed Jul 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant