fix: bug in repositry of subscriptions

This commit is contained in:
mahyargdz
2025-02-08 16:24:54 +03:30
parent ab3f3f8eaf
commit bc96f62782
14 changed files with 110 additions and 44 deletions
@@ -12,12 +12,12 @@ export class UserSubscription extends BaseEntity {
@ManyToOne(() => SubscriptionPlan, { nullable: false, onDelete: "CASCADE" })
plan: SubscriptionPlan;
@Column({ type: "timestamp", nullable: false }) // When the subscription started
@Column({ type: "timestamp", nullable: false })
startDate: Date;
@Column({ type: "timestamp", nullable: false }) // When it expires
@Column({ type: "timestamp", nullable: false })
endDate: Date;
@Column({ type: "boolean", default: false }) // Whether the user canceled it
@Column({ type: "boolean", default: false })
isCanceled: boolean;
}