forked from Chatbot/v3-api
first commit v3 initialiazed a temporary repository for darmanet client
This commit is contained in:
20
src/database/model/rate.model.ts
Normal file
20
src/database/model/rate.model.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Prop, Schema } from '@nestjs/mongoose';
|
||||
import { Types } from 'mongoose';
|
||||
|
||||
@Schema({
|
||||
timestamps: { createdAt: 'createdAt', updatedAt: 'updatedAt' },
|
||||
versionKey: false,
|
||||
})
|
||||
export class RateModel {
|
||||
@Prop({ _id: true, default: new Types.ObjectId() })
|
||||
sessionId: Types.ObjectId;
|
||||
|
||||
@Prop({ type: String })
|
||||
rate: string;
|
||||
|
||||
@Prop({ type: Date, default: Date.now })
|
||||
createdAt: Date;
|
||||
|
||||
@Prop({ type: Date, default: Date.now })
|
||||
createdAtDate: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user