InfiniteScroll

Circuits
This commit is contained in:
paoloar77
2022-08-17 00:36:47 +02:00
parent da3d6451d5
commit fa2b03f2c8
2 changed files with 9 additions and 1 deletions

View File

@@ -18,6 +18,9 @@ const CircuitSchema = new Schema({
type: Number, type: Number,
unique: true, unique: true,
}, },
groupnameId: {
type: String,
},
name: { name: {
type: String, type: String,
unique: true, unique: true,
@@ -25,7 +28,7 @@ const CircuitSchema = new Schema({
subname: { subname: {
type: String, type: String,
}, },
descr: { longdescr: {
type: String, type: String,
}, },
systemUserDescr: { systemUserDescr: {

View File

@@ -110,6 +110,11 @@ const MyGroupSchema = new Schema({
type: Boolean, type: Boolean,
default: false, default: false,
}, },
circuits_list: [
{
Num: { type: Number },
inscription_date: {type: Date},
}],
}); });
MyGroupSchema.statics.getFieldsForSearch = function() { MyGroupSchema.statics.getFieldsForSearch = function() {