---
title: "VendureEntity"
generated: true
---
<GenerationInfo sourceFile="packages/core/src/entity/base/base.entity.ts" sourceLine="13" packageName="@vendure/core" />

This is the base class from which all entities inherit. The type of
the `id` property is defined by the <DocsLink href="/reference/typescript-api/configuration/entity-id-strategy#entityidstrategy">EntityIdStrategy</DocsLink>.

```ts title="Signature"
class VendureEntity {
    constructor(input?: DeepPartial<VendureEntity>)
    @PrimaryGeneratedId()
    id: ID;
    @CreateDateColumn() createdAt: Date;
    @UpdateDateColumn() updatedAt: Date;
}
```

<div className="members-wrapper">

### constructor

<MemberInfo kind="method" type={`(input?: DeepPartial<<a href='/reference/typescript-api/entities/vendure-entity#vendureentity'>VendureEntity</a>>) => VendureEntity`}   />


### id

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


### createdAt

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


### updatedAt

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




</div>
