schema updated for camera
This commit is contained in:
4
.env
4
.env
@@ -1,4 +1,4 @@
|
||||
MONGO_URI=mongodb://127.0.0.1:27017/
|
||||
# MONGO_URI=mongodb://mongo/
|
||||
# MONGO_URI=mongodb://127.0.0.1:27017/
|
||||
MONGO_URI=mongodb://mongo/
|
||||
API_PORT=5000
|
||||
SOCKET_PORT=8000
|
||||
@@ -23,7 +23,7 @@ export interface Camera extends Document {
|
||||
|
||||
// Define the Mongoose Schema
|
||||
const cameraSchema: Schema = new Schema({
|
||||
userId: { type: String, unique: true },
|
||||
userId: { type: String },
|
||||
position: {
|
||||
x: { type: Number, required: true },
|
||||
y: { type: Number, required: true },
|
||||
|
||||
Reference in New Issue
Block a user