added missing Payment model
This commit is contained in:
parent
6356456a18
commit
6ecf859102
15
src/models/Payment.ts
Normal file
15
src/models/Payment.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import mongoose from 'mongoose';
|
||||||
|
|
||||||
|
const PaymentSchema= new mongoose.Schema(
|
||||||
|
{
|
||||||
|
payee: {type: String, required: true},
|
||||||
|
amount: {type: Number, required: true},
|
||||||
|
for_self: {type: Number},
|
||||||
|
for_other: {type: Number},
|
||||||
|
description: {type: String},
|
||||||
|
added_by: {type: String},
|
||||||
|
date: {type: Date, required: true, default: Date.now},
|
||||||
|
}, {timestamps: true}
|
||||||
|
);
|
||||||
|
|
||||||
|
export const Payment = mongoose.model("Payment", PaymentSchema);
|
Loading…
Reference in New Issue
Block a user