diff --git a/src/server/models/circuit.js b/src/server/models/circuit.js index 18aa7b1..ab89056 100755 --- a/src/server/models/circuit.js +++ b/src/server/models/circuit.js @@ -16,11 +16,13 @@ mongoose.plugin(schema => { const CircuitSchema = new Schema({ _id: { type: Number, + unique: true, }, - nome_circuito: { + name: { type: String, + unique: true, }, - sotto_nome: { + subname: { type: String, }, descr: { @@ -45,11 +47,11 @@ const CircuitSchema = new Schema({ type: String, maxlength: 20, }, - simbolo: { + symbol: { type: String, maxlength: 3, }, - sigla: { + abbrev: { type: String, maxlength: 3, },