Skip to main content

Table

redemptioncodes

Each row represents an individual redeemable code with redemption state and who redeemed it.

statusgroupRedshift
All tables

redemptioncodes

Each row represents an individual redeemable code with redemption state and who redeemed it.

Full schema

View all columns and table relationships (SchemaSpy)

Status group

Yes, this table includes a statusgroup column. See Status Group for details.

Column details

ColumnType
idvarchar(36)
createdattimestamp
companyidvarchar(36)
redeemedbyuseridvarchar(36)
redemptioncodegroupidvarchar(36)
redeemedbool
redeemedattimestamp
codevarchar(65535)
statusgroupvarchar(256)
statusgroupupdatedattimestamp
updatedattimestamp

Column names and types come from the Redshift analytics schema. SchemaSpy is authoritative for nullability, defaults, keys, and relationships.

Sample query

select
  t.redeemedbyuserid,
  t.redemptioncodegroupid,
  t.redeemed,
  t.redeemedat,
  t.code
from redemptioncodes as t
limit 100