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,
unique: true,
},
groupnameId: {
type: String,
},
name: {
type: String,
unique: true,
@@ -25,7 +28,7 @@ const CircuitSchema = new Schema({
subname: {
type: String,
},
descr: {
longdescr: {
type: String,
},
systemUserDescr: {

View File

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