The handoffs from mooc.fi that have signed someone in or started a continuation. The handoff is a signed token, so this is what makes it single use across replicas: the insert that spends it conflicts on jti. Pruned a day after expiry, by when the token is refused as expired anyway.
| Name | Type | Default | Nullable | Children | Parents | Comment |
|---|---|---|---|---|---|---|
| created_at | timestamp with time zone | now() | false | Timestamp when the record was created. | ||
| deleted_at | timestamp with time zone | true | Timestamp when the record was deleted. If null, the record is not deleted. | |||
| expires_at | timestamp with time zone | false | When the handoff token itself expires. | |||
| id | uuid | uuid_generate_v4() | false | A unique, stable identifier for the record. | ||
| jti | uuid | false | The jti claim of the redeemed handoff token. | |||
| updated_at | timestamp with time zone | now() | false | Timestamp when the record was last updated. The field is updated automatically by the set_timestamp trigger. |
| Name | Type | Definition |
|---|---|---|
| moocfi_redeemed_inbound_handoffs_created_at_not_null | n | NOT NULL created_at |
| moocfi_redeemed_inbound_handoffs_expires_at_not_null | n | NOT NULL expires_at |
| moocfi_redeemed_inbound_handoffs_id_not_null | n | NOT NULL id |
| moocfi_redeemed_inbound_handoffs_jti_not_null | n | NOT NULL jti |
| moocfi_redeemed_inbound_handoffs_pkey | PRIMARY KEY | PRIMARY KEY (id) |
| moocfi_redeemed_inbound_handoffs_updated_at_not_null | n | NOT NULL updated_at |
| Name | Definition |
|---|---|
| idx_moocfi_redeemed_inbound_handoffs_expires_at | CREATE INDEX idx_moocfi_redeemed_inbound_handoffs_expires_at ON public.moocfi_redeemed_inbound_handoffs USING btree (expires_at) |
| moocfi_redeemed_inbound_handoffs_pkey | CREATE UNIQUE INDEX moocfi_redeemed_inbound_handoffs_pkey ON public.moocfi_redeemed_inbound_handoffs USING btree (id) |
| uq_moocfi_redeemed_inbound_handoffs_jti | CREATE UNIQUE INDEX uq_moocfi_redeemed_inbound_handoffs_jti ON public.moocfi_redeemed_inbound_handoffs USING btree (jti) |
| Name | Definition |
|---|---|
| set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.moocfi_redeemed_inbound_handoffs FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls