add : remove subscription

This commit is contained in:
2026-02-07 12:36:02 +03:30
parent 4c8ad2c359
commit ef9860cf12
4 changed files with 26 additions and 4 deletions
@@ -1,4 +1,4 @@
import { Column, Entity, JoinTable, ManyToMany, ManyToOne } from "typeorm";
import { Column, DeleteDateColumn, Entity, JoinTable, ManyToMany, ManyToOne } from "typeorm";
import { SubscriptionPlan } from "./subscription.entity";
import { BaseEntity } from "../../../common/entities/base.entity";
@@ -37,4 +37,7 @@ export class UserSubscription extends BaseEntity {
@ManyToMany(() => User)
@JoinTable()
staff: User[];
@DeleteDateColumn({ nullable: true })
deletedAt?: Date;
}