Skip to content

app.travel_segments

TableRow level security on

Flights and ground transport for the people a project moves. A NULL price is unpriced.

Primary key: id

Columns of app.travel_segments
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.projects on insert; never accepted from the caller and never changed.References app.organizations.id
project_iduuidNoProject.References app.projects.id
person_iduuidNoTraveler.References app.people.id
fulfillment_iduuidYesTravel fulfillment of the same project the segment belongs to, when one does.References app.fulfillments.id
travel_modeapp.travel_modeNoFlight or Ground.
operator_nametextYesAirline, car service or other operator.
service_identifiertextYesFlight or service number, issued by the operator.
confirmation_identifiertextYesBooking confirmation code, issued by the operator.
departs_fromtextNoDeparture airport, station or pickup address.
departs_attimestamp with time zoneNoDeparture instant.
departs_time_zonetextNoIANA zone the departure time was entered in.
arrives_at_placetextNoArrival airport, station or drop-off address.
arrives_attimestamp with time zoneYesArrival instant, when known.
arrives_time_zonetextNoIANA zone the arrival time was entered in.
price_minorbigintYesFare in minor units; NULL is unpriced.
currency_codecharacter(3)YesISO 4217 currency of the fare.References private.currencies.currency_code
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
engagement_iduuidYesEngagement of the same project the traveler travels under, when the traveler is an external party.References app.engagements.id