{
  "bsonType": "object",
  "required": ["name", "contact", "content"],
  "properties": {
    "name": {
      "bsonType": "string",
      "title": "姓名",
      "minLength": 2,
      "maxLength": 20
    },
    "contact": {
      "bsonType": "string",
      "title": "联系方式",
      "pattern": "^1[3-9]\\d{9}$|^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$",
      "errorMessage": {
        "pattern": "请输入有效的手机号或邮箱"
      }
    },
    "content": {
      "bsonType": "string",
      "title": "反馈内容",
      "minLength": 10,
      "maxLength": 500
    },
    "create_date": {
      "bsonType": "timestamp",
      "title": "创建时间",
      "defaultValue": {
        "$env": "now"
      }
    }
  }
} 