opendb/collection/opendb-feedback/collection.json
2021-04-07 15:13:55 +08:00

63 lines
1.4 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"schema": {
"bsonType": "object",
"required": ["user_id", "content"],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"user_id": {
"bsonType": "string",
"description": "留言反馈用户ID/回复留言用户ID参考uni-id-users表",
"foreignKey":"uni-id-users._id"
},
"create_date": {
"bsonType": "timestamp",
"description": "留言时间/回复留言时间"
},
"content": {
"bsonType": "string",
"description": "留言内容/回复内容",
"trim":"right"
},
"imgs": {
"bsonType": "array",
"description": "图片列表"
},
"is_reply": {
"bsonType": "bool",
"description": "是否是回复类型"
},
"feedback_id": {
"bsonType": "string",
"description": "被回复留言ID"
},
"contact": {
"bsonType": "string",
"description": "联系人",
"trim":"both"
},
"mobile": {
"bsonType": "string",
"description": "联系电话",
"trim":"both"
},
"reply_count": {
"bsonType": "int",
"description": "被回复条数"
}
}
},
"index": [{
"IndexName": "_user_id",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "user_id",
"Direction": "1"
}],
"MgoIsUnique": false
}
}
]
}