VendureEntity

VendureEntity

Package: @vendure/core File: base.entity.ts

This is the base class from which all entities inherit. The type of the id property is defined by the EntityIdStrategy.

Signature

class VendureEntity {
  constructor(input?: DeepPartial<VendureEntity>)
  @PrimaryGeneratedColumn(keyType) id: ID;
  @CreateDateColumn() createdAt: Date;
  @UpdateDateColumn() updatedAt: Date;
}

Members

constructor

protected method
type:
(input?: DeepPartial<VendureEntity>) => VendureEntity

id

property
type:
ID

createdAt

property
type:
Date

updatedAt

property
type:
Date