src/users/schemas/user-profile.schema.ts
Properties |
|
| accessGroups |
Type : string[]
|
Decorators :
@Prop({type: undefined})
|
|
Defined in src/users/schemas/user-profile.schema.ts:27
|
| Optional displayName |
Type : string
|
Decorators :
@Prop()
|
|
Defined in src/users/schemas/user-profile.schema.ts:9
|
Type : string
|
Decorators :
@Prop()
|
|
Defined in src/users/schemas/user-profile.schema.ts:12
|
| Optional emails |
Type : Record<string, string>[]
|
Decorators :
@Prop({type: undefined})
|
|
Defined in src/users/schemas/user-profile.schema.ts:24
|
| Optional id |
Type : string
|
Decorators :
@Prop()
|
|
Defined in src/users/schemas/user-profile.schema.ts:21
|
| Optional thumbnailPhoto |
Type : string
|
Decorators :
@Prop()
|
|
Defined in src/users/schemas/user-profile.schema.ts:18
|
| username |
Type : string
|
Decorators :
@Prop()
|
|
Defined in src/users/schemas/user-profile.schema.ts:15
|
import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";
import { Document } from "mongoose";
export type UserProfileDocument = UserProfile & Document;
@Schema()
export class UserProfile {
@Prop()
displayName?: string;
@Prop()
email: string;
@Prop()
username: string;
@Prop()
thumbnailPhoto?: string;
@Prop()
id?: string;
@Prop({ type: [Object] })
emails?: Record<string, string>[];
@Prop({ type: [String] })
accessGroups: string[];
}
export const UserProfileSchema = SchemaFactory.createForClass(UserProfile);