|
@@ -17,6 +17,15 @@ const apply = new Schema({
|
|
});
|
|
});
|
|
apply.index({ id: 1 });
|
|
apply.index({ id: 1 });
|
|
apply.index({ userid: 1 });
|
|
apply.index({ userid: 1 });
|
|
|
|
+const vipuser = new Schema({
|
|
|
|
+ vipname: { type: String, required: false, maxLength: 200 },
|
|
|
|
+ vipphone: { type: String, required: false, maxLength: 200 },
|
|
|
|
+ role: { type: String, required: false, maxLength: 200 },
|
|
|
|
+ company: { type: String, required: false, maxLength: 500 },
|
|
|
|
+ email: { type: String, required: false, maxLength: 20 },
|
|
|
|
+ content: { type: String, required: false },
|
|
|
|
+});
|
|
|
|
+vipuser.index({ id: 1 });
|
|
const Dock = {
|
|
const Dock = {
|
|
title: { type: String, required: true, maxLength: 200 },
|
|
title: { type: String, required: true, maxLength: 200 },
|
|
desc: { type: String, maxLength: 1000 },
|
|
desc: { type: String, maxLength: 1000 },
|
|
@@ -35,6 +44,7 @@ const Dock = {
|
|
uid: { type: String, required: false, maxLength: 200 },
|
|
uid: { type: String, required: false, maxLength: 200 },
|
|
adminuser: { type: String, required: false, maxLength: 200 },
|
|
adminuser: { type: String, required: false, maxLength: 200 },
|
|
phone: { type: String, required: false, maxLength: 200 },
|
|
phone: { type: String, required: false, maxLength: 200 },
|
|
|
|
+ vipuser: { type: [ vipuser ], default: [] },
|
|
};
|
|
};
|
|
const schema = new Schema(Dock, { toJSON: { virtuals: true } });
|
|
const schema = new Schema(Dock, { toJSON: { virtuals: true } });
|
|
schema.index({ id: 1 });
|
|
schema.index({ id: 1 });
|