20260607 - login, add scene, add hotspot
This commit is contained in:
@@ -37,6 +37,28 @@ const sceneSchema = new mongoose.Schema({
|
||||
sharedWith: [{
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
ref: 'User'
|
||||
}],
|
||||
hotspots: [{
|
||||
pitch: {
|
||||
type: Number,
|
||||
required: true
|
||||
},
|
||||
yaw: {
|
||||
type: Number,
|
||||
required: true
|
||||
},
|
||||
text: {
|
||||
type: String,
|
||||
trim: true
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
trim: true
|
||||
},
|
||||
targetSceneId: {
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
ref: 'Scene'
|
||||
}
|
||||
}]
|
||||
}, {
|
||||
timestamps: true
|
||||
|
||||
Reference in New Issue
Block a user