fix: bug in repositry of subscriptions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user