You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
578 B
TypeScript

import mongoose, { Schema, Types } from "mongoose";
import { RootGroupInfoType } from "../message/Sender";
export type RootGroupInfoSchemaType = RootGroupInfoType;
export type RootGroupInfoModelType = mongoose.Model<RootGroupInfoSchemaType>;
export const RootGroupInfoSchema = (robotId: string) => new Schema<RootGroupInfoSchemaType>({
rootGroupId: {
type: String,
required: true,
index: true,
},
name: {
type: String,
index: true,
},
image: String,
extra: {
type: Object,
default: {},
}
});