opendb/collection/opendb-feedback/collection.json

63 lines
1.4 KiB
JSON
Raw Normal View History

2020-09-20 08:07:36 +08:00
{
"schema": {
"bsonType": "object",
2021-04-07 15:13:55 +08:00
"required": ["user_id", "content"],
2020-09-20 08:07:36 +08:00
"properties": {
"_id": {
"description": "ID系统自动生成"
},
2021-01-27 17:59:24 +08:00
"user_id": {
2020-09-20 08:07:36 +08:00
"bsonType": "string",
2021-01-27 17:59:24 +08:00
"description": "留言反馈用户ID/回复留言用户ID参考uni-id-users表",
"foreignKey":"uni-id-users._id"
2020-09-20 08:07:36 +08:00
},
2021-01-27 17:59:24 +08:00
"create_date": {
2020-09-20 08:07:36 +08:00
"bsonType": "timestamp",
"description": "留言时间/回复留言时间"
},
2020-11-23 17:22:09 +08:00
"content": {
2020-09-20 08:07:36 +08:00
"bsonType": "string",
2020-12-23 20:20:34 +08:00
"description": "留言内容/回复内容",
"trim":"right"
2020-09-20 08:07:36 +08:00
},
"imgs": {
"bsonType": "array",
"description": "图片列表"
},
"is_reply": {
"bsonType": "bool",
"description": "是否是回复类型"
},
"feedback_id": {
"bsonType": "string",
"description": "被回复留言ID"
},
"contact": {
"bsonType": "string",
2020-12-23 20:20:34 +08:00
"description": "联系人",
"trim":"both"
2020-09-20 08:07:36 +08:00
},
"mobile": {
"bsonType": "string",
2020-12-23 20:20:34 +08:00
"description": "联系电话",
"trim":"both"
2020-09-20 08:07:36 +08:00
},
"reply_count": {
"bsonType": "int",
"description": "被回复条数"
}
}
},
2020-11-23 17:22:09 +08:00
"index": [{
2021-01-27 17:59:24 +08:00
"IndexName": "_user_id",
2020-11-23 17:22:09 +08:00
"MgoKeySchema": {
"MgoIndexKeys": [{
2021-01-27 17:59:24 +08:00
"Name": "user_id",
2020-11-23 17:22:09 +08:00
"Direction": "1"
}],
"MgoIsUnique": false
}
}
2020-09-20 08:07:36 +08:00
]
}