Skip to content

SudoSOS Back-end API / banners / Banner

Class: Banner ​

TypeORM entity for the banners table.

Extends ​

Constructors ​

Constructor ​

ts
new Banner(): Banner;

Returns ​

Banner

Inherited from ​

BaseEntity.constructor

Properties ​

PropertyModifierTypeDescriptionInherited from
activepublicbooleanWhether the banner is active. Overrides start and end date.-
createdAtreadonlyDateThe creation date of the object.BaseEntity.createdAt
durationpublicnumberHow long the banner should be shown (in seconds).-
endDatepublicDateThe end date from which the banner should no longer be shown.-
idreadonlynumber-BaseEntity.id
image?publicBannerImage--
namepublicstringName/label of the banner.-
startDatepublicDateThe starting date from which the banner should be shown.-
updatedAtreadonlyDateThe last update date of the object.BaseEntity.updatedAt
versionreadonlynumberThe current version of the object.BaseEntity.version