Untitled

mail@pastecode.io avatar
unknown
javascript
3 years ago
360 B
5
Indexable
Never
import { Prop, Schema, SchemaFactory, SchemaOptions } from '@nestjs/mongoose';
import { truncate } from 'fs';
import { Document  } from 'mongoose';

export type ContactUsDocument = ContactUs & Document;

@Schema()
export class ContactUs {
    @Prop({ required: true})
    name: string;
}

export const ContactUsSchema = SchemaFactory.createForClass(ContactUs);