2022-07-01 09:48:27 +00:00
|
|
|
import { Schema, Prop, SchemaFactory } from '@nestjs/mongoose';
|
|
|
|
import { Document } from 'mongoose';
|
|
|
|
|
|
|
|
export type PaymentDocument = Payment & Document;
|
|
|
|
|
|
|
|
@Schema({ collection: 'payments' })
|
|
|
|
export class Payment {
|
2022-07-25 04:38:48 +00:00
|
|
|
@Prop()
|
|
|
|
date_payment: Date;
|
2022-07-01 09:48:27 +00:00
|
|
|
|
2022-07-25 04:38:48 +00:00
|
|
|
@Prop()
|
|
|
|
mount: number;
|
2022-07-01 09:48:27 +00:00
|
|
|
|
2022-07-25 04:38:48 +00:00
|
|
|
@Prop()
|
|
|
|
description: string;
|
2022-07-01 09:48:27 +00:00
|
|
|
|
2022-07-25 04:38:48 +00:00
|
|
|
@Prop()
|
|
|
|
period: string;
|
2022-07-01 09:48:27 +00:00
|
|
|
|
2022-07-25 04:38:48 +00:00
|
|
|
@Prop()
|
|
|
|
status: string;
|
2022-07-01 09:48:27 +00:00
|
|
|
|
2022-07-25 04:38:48 +00:00
|
|
|
@Prop()
|
|
|
|
user_id: string;
|
2022-07-01 09:48:27 +00:00
|
|
|
|
2022-07-25 04:38:48 +00:00
|
|
|
@Prop()
|
|
|
|
communty_id: string;
|
2022-07-01 09:48:27 +00:00
|
|
|
}
|
|
|
|
|
2022-07-25 04:38:48 +00:00
|
|
|
export const PaymentSchema = SchemaFactory.createForClass(Payment);
|