This commit is contained in:
2024-03-23 13:55:54 +03:00
parent e0be68d03d
commit a45497a3fb
3 changed files with 24 additions and 16 deletions

View File

@@ -13,8 +13,7 @@ const deviceLogSchema = new Schema({
type: String // Toggle - Homekit Reset - Reset
},
log_time: {
type: Date,
default: Date.now()
type: String
},
sensor_value: {
type: Number
@@ -50,8 +49,7 @@ const deviceSchema = new Schema({
unique: true
},
update_time: {
type: Date,
default: Date.now()
type: String
},
device_log: [deviceLogSchema]
});