|
|
@@ -1,6 +1,7 @@
|
|
|
import { DeepPartial } from '@vendure/common/lib/shared-types';
|
|
|
import { Column, Entity, ManyToOne, OneToMany } from 'typeorm';
|
|
|
|
|
|
+import { SoftDeletable } from '../../common/types/common-types';
|
|
|
import { LocaleString, Translatable, Translation } from '../../common/types/locale-types';
|
|
|
import { HasCustomFields } from '../../config/custom-field/custom-field-types';
|
|
|
import { VendureEntity } from '../base/base.entity';
|
|
|
@@ -17,10 +18,14 @@ import { ProductOptionGroupTranslation } from './product-option-group-translatio
|
|
|
* @docsCategory entities
|
|
|
*/
|
|
|
@Entity()
|
|
|
-export class ProductOptionGroup extends VendureEntity implements Translatable, HasCustomFields {
|
|
|
+export class ProductOptionGroup
|
|
|
+ extends VendureEntity
|
|
|
+ implements Translatable, HasCustomFields, SoftDeletable {
|
|
|
constructor(input?: DeepPartial<ProductOptionGroup>) {
|
|
|
super(input);
|
|
|
}
|
|
|
+ @Column({ type: Date, nullable: true })
|
|
|
+ deletedAt: Date | null;
|
|
|
|
|
|
name: LocaleString;
|
|
|
|