viewing paste Unknown #52807 | Javascript

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import { Schema, SchemaFactory, Prop } from "@nestjs/mongoose";
 
@Schema()
export class User extends Document {
    @Prop(String)
    username: string;
 
    @Prop(String)
    email: string;
 
    @Prop(String)
    password: string;
}
 
export const UserSchema = SchemaFactory.createForClass(User);
Viewed 862 times, submitted by Guest.