31 lines
799 B
TypeScript
31 lines
799 B
TypeScript
import { Document, Schema } from "mongoose";
|
|
import MainModel from "../../connect/mongoose.ts";
|
|
export interface WallItems extends Document {
|
|
modelUuid: string;
|
|
modelName: string;
|
|
modelfileID: string;
|
|
type: string;
|
|
csgposition: [];
|
|
csgscale: [];
|
|
position: [];
|
|
quaternion: [];
|
|
scale: [];
|
|
}
|
|
|
|
const wallItemsSchema: Schema = new Schema({
|
|
modelUuid: { type: String },
|
|
modelfileID: { type: String },
|
|
modelName: { type: String },
|
|
type: { type: String },
|
|
csgposition: { type: Array },
|
|
csgscale: { type: Array },
|
|
position: { type: Array },
|
|
quaternion: { type: Array },
|
|
scale: { type: Array },
|
|
});
|
|
|
|
const wallItenmModel = (db: string) => {
|
|
return MainModel(db, "wallitems", wallItemsSchema, "wallitems");
|
|
};
|
|
export default wallItenmModel;
|