This commit is contained in:
Paolo Arena
2022-04-24 17:02:10 +02:00
parent f39639d5f2
commit 5139d321b5

View File

@@ -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,
}, },