adding payments

This commit is contained in:
Emily
2024-06-03 22:18:37 +02:00
parent 97966bd279
commit 9d475bf8ec
2 changed files with 37 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ export type TProject = {
name: string,
premium: boolean,
premium_type?: number,
customer_id?: string,
premium_expire_at: Date,
created_at: Date
}
@@ -15,6 +16,7 @@ const ProjectSchema = new Schema<TProject>({
name: { type: String, required: true },
premium: { type: Boolean, default: false },
premium_type: { type: Number },
customer_id: { type: String },
premium_expire_at: { type: Date },
created_at: { type: Date, default: () => Date.now() },
})