ExpertClassBanners


Description

ExpertClass Banner images displayed on the frontend in the form of a carousel.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 public.gen_random_uuid()
name text 2147483647 null

Name of the banner image

mobileBanner text 2147483647 null

The banner image to be displayed on mobile screensize.

tabletBanner text 2147483647 null

The banner image to be displayed on tablet screensize.

desktopBanner text 2147483647 null

The banner image to be displayed on desktop screensize.

redirectURL text 2147483647 null

URL redirected to when the banner image is clicked.

isExternalURL bool 1 null

Whether the redirectURL is to an external site (not within glints.com). If false, the redirectURL should be to a relative path e.g. /opportunities/jobs. If true the redirectURL should be an absolute path e.g. https://employers.staging.glints.sg.

openInNewTab bool 1 null

Whether the redirectURL should be opened in a new tab when the banner image is clicked.

startsAt timestamptz 35,6 null

The timestamp the banner should start displaying on the carousel. This is for time sensitive banner images such as for promotion codes.

endsAt timestamptz 35,6 null

The timestamp the banner should stop displaying on the carousel. This is for time sensitive banner images such as for promotion codes.

order int4 10 null

The order the image should be displayed in the carousel.

isEnabled bool 1 true

Whether the banner should be displayed on the carousel.

isDefault bool 1 false

The fallback banner image if there are no banner images to be displayed. There can only be 1 fallback banner.

createdAt timestamptz 35,6 now()
updatedAt timestamptz 35,6 now()

Indexes

Constraint Name Type Sort Column(s)
ExpertClassBanners_pkey Primary key Asc id
ExpertClassBanners_createdAt_idx Performance Asc createdAt
ExpertClassBanners_isDefault_idx Must be unique Asc isDefault

Check Constraints

Constraint Name Constraint
ExpertClassBanners_order_check (("order" > 0))
ExpertClassBanners_endsAt_check (("endsAt" > "startsAt"))

Relationships