***

title: "ProductOption"
generated: true
---------------

<GenerationInfo sourceFile="packages/core/src/entity/product-option/product-option.entity.ts" sourceLine="22" packageName="@vendure/core" />

A ProductOption is used to differentiate [ProductVariant](/current/core/reference/typescript-api/entities/product-variant#productvariant)s from one another.

```ts title="Signature"
class ProductOption extends VendureEntity implements Translatable, HasCustomFields, SoftDeletable, ChannelAware {
    constructor(input?: DeepPartial<ProductOption>)
    @Column({ type: Date, nullable: true })
    deletedAt: Date | null;
    name: LocaleString;
    @Column() code: string;
    @OneToMany(type => ProductOptionTranslation, translation => translation.base, { eager: true })
    translations: Array<Translation<ProductOption>>;
    @Index()
    @ManyToOne(type => ProductOptionGroup, group => group.options)
    group: ProductOptionGroup;
    @EntityId()
    groupId: ID;
    @ManyToMany(type => ProductVariant, variant => variant.options)
    productVariants: ProductVariant[];
    @ManyToMany(type => Channel, channel => channel.productOptions)
    @JoinTable()
    channels: Channel[];
    @Column(type => CustomProductOptionFields)
    customFields: CustomProductOptionFields;
}
```

* Extends: [`VendureEntity`](/current/core/reference/typescript-api/entities/vendure-entity#vendureentity)

* Implements: [`Translatable`](/current/core/reference/typescript-api/entities/interfaces#translatable), HasCustomFields, [`SoftDeletable`](/current/core/reference/typescript-api/entities/interfaces#softdeletable), [`ChannelAware`](/current/core/reference/typescript-api/entities/interfaces#channelaware)

<div className="members-wrapper">

### deletedAt

\<MemberInfo kind="property" type={`Date | null`}   />

### name

\<MemberInfo kind="property" type={`LocaleString`}   />

### code

\<MemberInfo kind="property" type={`string`}   />

### translations

\<MemberInfo kind="property" type={`Array<Translation<<a href='/current/core/reference/typescript-api/entities/product-option#productoption'>ProductOption</a>>>`}   />

### group

\<MemberInfo kind="property" type={`<a href='/current/core/reference/typescript-api/entities/product-option-group#productoptiongroup'>ProductOptionGroup</a>`}   />

### groupId

\<MemberInfo kind="property" type={`<a href='/current/core/reference/typescript-api/common/id#id'>ID</a>`}   />

### productVariants

\<MemberInfo kind="property" type={`<a href='/current/core/reference/typescript-api/entities/product-variant#productvariant'>ProductVariant</a>[]`}   />

### channels

\<MemberInfo kind="property" type={`<a href='/current/core/reference/typescript-api/entities/channel#channel'>Channel</a>[]`}   />

### customFields

\<MemberInfo kind="property" type={`CustomProductOptionFields`}   />

</div>
