circuito
This commit is contained in:
@@ -16,11 +16,13 @@ mongoose.plugin(schema => {
|
|||||||
const CircuitSchema = new Schema({
|
const CircuitSchema = new Schema({
|
||||||
_id: {
|
_id: {
|
||||||
type: Number,
|
type: Number,
|
||||||
|
unique: true,
|
||||||
},
|
},
|
||||||
nome_circuito: {
|
name: {
|
||||||
type: String,
|
type: String,
|
||||||
|
unique: true,
|
||||||
},
|
},
|
||||||
sotto_nome: {
|
subname: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
descr: {
|
descr: {
|
||||||
@@ -45,11 +47,11 @@ const CircuitSchema = new Schema({
|
|||||||
type: String,
|
type: String,
|
||||||
maxlength: 20,
|
maxlength: 20,
|
||||||
},
|
},
|
||||||
simbolo: {
|
symbol: {
|
||||||
type: String,
|
type: String,
|
||||||
maxlength: 3,
|
maxlength: 3,
|
||||||
},
|
},
|
||||||
sigla: {
|
abbrev: {
|
||||||
type: String,
|
type: String,
|
||||||
maxlength: 3,
|
maxlength: 3,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user