fix payments

This commit is contained in:
Emily
2024-06-12 15:43:23 +02:00
parent b7c3ef19ba
commit 6a7143c8d4
8 changed files with 173 additions and 89 deletions

View File

@@ -0,0 +1,21 @@
import { model, Schema } from 'mongoose';
export type TCustomPremiumPrice = {
tag: string,
price_id: number,
count_limit: number,
ai_message_limit: number,
price: string,
price_test?: string
}
const CustomPremiumPriceSchema = new Schema<TCustomPremiumPrice>({
tag: { type: String, required: true },
price_id: { type: Number, required: true },
count_limit: { type: Number, required: true },
ai_message_limit: { type: Number, required: true },
price: { type: String, required: true },
price_test: { type: String },
})
export const CustomPremiumPriceModel = model<TCustomPremiumPrice>('custom_premium_prices', CustomPremiumPriceSchema);