chore: add new route to get users of services

This commit is contained in:
mahyargdz
2025-03-04 11:38:17 +03:30
parent bf991914e4
commit 98734aee9d
4 changed files with 39 additions and 2 deletions
@@ -10,7 +10,7 @@ export class UserSubscription extends BaseEntity {
@ManyToOne(() => User, (user) => user.subscriptions, { nullable: false, onDelete: "CASCADE" })
user: User;
@ManyToOne(() => SubscriptionPlan, { nullable: false, onDelete: "CASCADE" })
@ManyToOne(() => SubscriptionPlan, (plan) => plan.userSubscriptions, { nullable: false, onDelete: "CASCADE" })
plan: SubscriptionPlan;
@Column({ type: "timestamp", nullable: false })