api.services.auctions_airtable

The structure of the auctions Airtable base, where the auctions sync writes.

Tables and fields are found by name, so a copy of the base works by changing AUCTIONS_AIRTABLE_BASE_ID. Airtable’s API can’t create formula or lookup fields: every field here is a plain one the sync fills.

Attributes

Functions

ensure_schema(base) → list[str]

Creates the tables and fields of SCHEMA the base lacks (existing ones are left as they are)

Module Contents

api.services.auctions_airtable.PROVIDERS = ['Dome', 'Troostwijk', 'EquipNet', 'Surplus Solutions']
api.services.auctions_airtable.SCHEMA: dict[str, list[dict[str, Any]]]
api.services.auctions_airtable.ensure_schema(base: pyairtable.Base) → list[str]

Creates the tables and fields of SCHEMA the base lacks (existing ones are left as they are) and returns what it created. Tables first, without their links, so each link has a target.