|
@@ -1,8 +1,8 @@
|
|
|
module.exports = mongoose => {
|
|
|
|
|
|
- var Schema = mongoose.Schema;
|
|
|
+ const Schema = mongoose.Schema;
|
|
|
|
|
|
- var stationSchema = new Schema({
|
|
|
+ const stationSchema = new Schema({
|
|
|
_id: { type: String, lowercase: true, max: 16, min: 2, index: true, unique: true, required: true },
|
|
|
type: { type: String, enum: ["official", "community"], required: true},
|
|
|
displayName: { type: String, min: 2, max: 32, required: true },
|