api.services.auctions_airtable ============================== .. py:module:: api.services.auctions_airtable .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: api.services.auctions_airtable.PROVIDERS api.services.auctions_airtable.SCHEMA Functions --------- .. autoapisummary:: api.services.auctions_airtable.ensure_schema Module Contents --------------- .. py:data:: PROVIDERS :value: ['Dome', 'Troostwijk', 'EquipNet', 'Surplus Solutions'] .. py:data:: SCHEMA :type: dict[str, list[dict[str, Any]]] .. py:function:: 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.