Skip to main content
Version: v1.0.0(int)

org.locations

Used as PO ship-to, WO work site, SO fulfillment location, and inventory stock bin.

Columns

ColumnTypeNotes
idUUID PK
org_idUUID FKplatform.organizations(id).
nameVARCHAR(100)UNIQUE per (org_id, name).
sort_orderSMALLINTCHECK >= 0. UNIQUE per (org_id, sort_order)DEFERRABLE INITIALLY IMMEDIATE for reorders.
addressTEXT
cityVARCHAR(150)
stateVARCHAR(100)
countryCHAR(2)ISO 3166-1 alpha-2.
zip_codeVARCHAR(20)
notesTEXT
is_activeBOOLNOT NULL. Default true.
created_atTIMESTAMPTZNOT NULL. Default NOW().
updated_atTIMESTAMPTZNOT NULL. Default NOW(). Auto-updated by trigger.

Cross-references