update:add ci cd files ==> do not edit those file

This commit is contained in:
mahyargdz
2024-10-10 16:58:55 +03:30
parent dc6c7c63ea
commit ed5e2023f4
179 changed files with 15757 additions and 2277 deletions
+37
View File
@@ -0,0 +1,37 @@
import mongoose from "mongoose";
export const PaymentSchema = new mongoose.Schema({
userId: {
type: mongoose.Types.ObjectId,
ref: 'users',
required: true
},
amount: {
type: Number,
required: true
},
paymentNumber: {
type: String,
required: true,
},
reason: {
type: String,
enum: ['deposit', 'withdrawal'],
required: true
},
},
{
collection: 'payments',
timestamps: true,
},
);
export interface Payment extends mongoose.Document {
userId: mongoose.Types.ObjectId;
amount: number;
paymentNumber: string;
reason: 'deposit' | 'withdrawal';
createdAt: Date;
updatedAt: Date;
}