liuyu 4 years ago
parent
commit
d7e830056b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/model/location.js

+ 1 - 1
app/model/location.js

@@ -6,7 +6,7 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 const LocationSchema = {
   name: { type: String, required: true, maxLength: 500 }, // 名称
   type: { type: String, required: true, maxLength: 10 }, // 0、教室位置 1、开班仪式地点 2、拓展计划地点 3、用餐地点
-  ibeacon: { type: String, required: true, maxLength: 500 }, // 蓝牙设备号
+  ibeacon: { type: String, required: false, maxLength: 500 }, // 蓝牙设备号
 };