AssetData connections added, 3dWidget update and get added

This commit is contained in:
2025-04-01 17:55:44 +05:30
parent 7fb05e579a
commit fc83d72c51
6 changed files with 207 additions and 125 deletions

View File

@@ -2,8 +2,9 @@ import mongoose, { Schema, Document, model } from "mongoose";
import MainModel from "../../connect/mongoose.ts";
export interface Widget3d extends Document {
widgetName: string;
type: string;
widgetID: string;
widgetName: string;
position: [];
isArchive: boolean;
zoneId: string;
@@ -14,8 +15,9 @@ export interface Widget3d extends Document {
}
const Widget3dSchema: Schema = new Schema(
{
widgetName: { type: String },
type: { type: String },
widgetID: { type: String },
widgetName: { type: String, default: "Widget3D" },
position: { type: Array },
zoneId: { type: String },
Data: {