Skip to content

app.person_work_details

TableRow level security on

A person's work details (Section 4.5.6 item 10): uniform sizes, dietary and accessibility needs and the travel profile. Owned and read only by the person; an engaging org sees a category only while the person shares it with that engagement (app.work_detail_shares, app.shared_work_details). The passport number is Restricted and encrypted.

Primary key: id

Columns of app.person_work_details
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.
person_iduuidNoOwner. One live row per person.References app.people.id
shirt_sizeapp.garment_letter_sizeYesShirt size.
jacket_sizeapp.garment_letter_sizeYesJacket size.
pants_sizetextYesPants size as the person writes it, for example 32x32 or EU 48.
shoe_sizetextYesShoe size with its system, for example US 10.5 or EU 44.
glove_sizeapp.garment_letter_sizeYesGlove size.
hat_sizetextYesHat size as the person writes it, for example 7 1/4 or 58 cm.
uniform_notestextYesAnything else about fit, for example a preferred cut.
dietary_needsapp.dietary_need[]NoDietary needs hospitality caters for, each once, in enum order. Confidential.
allergiestextYesFood and other allergies in the person's words, with how severe they are. Confidential.
dietary_notestextYesOther dietary notes. Confidential.
accessibility_needsapp.accessibility_need[]NoAccessibility needs, each once, in enum order. Confidential.
accessibility_notestextYesAccessibility needs in the person's words. Confidential.
seat_preferenceapp.seat_preferenceYesPreferred seat when an org books travel.
meal_preferencetextYesPreferred in-flight meal, for example Vegetarian (VGML).
home_airportcharacter(3)YesIATA code of the airport the person travels from, for example MIA.
passport_numberbyteaYesPassport number encrypted with pgp_sym_encrypt under the Vault key xos_passport_number_key. Restricted (data.restricted.read.government_id): never selectable or writable by signed-in callers; written through app.set_my_passport_number and read only through an audited reveal.
passport_number_last4textYesLast four characters of the passport number, shown in place of the masked number; NULL when none is recorded. Set only with the number.
passport_issuing_countrycharacter(2)YesISO 3166-1 alpha-2 country that issued the passport. Confidential.
passport_expires_ondateYesDay the passport expires. Confidential; readable so reminders can run.
passport_nametextYesName exactly as printed in the passport, which travel bookings must match. Confidential.
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