VendureEntity
VendureEntity
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>)
@PrimaryGeneratedId() @PrimaryGeneratedId()
id: ID;
@CreateDateColumn() @CreateDateColumn() createdAt: Date;
@UpdateDateColumn() @UpdateDateColumn() updatedAt: Date;
}
Members
constructor
method
type:
(input?: DeepPartial<VendureEntity>) => VendureEntity
id
property
type:
ID
createdAt
property
type:
Date
updatedAt
property
type:
Date