table:
  schema: public
  name: challenge_week
array_relationships:
  - name: challenge_days
    using:
      foreign_key_constraint_on:
        column: challenge_week_id
        table:
          schema: public
          name: challenge_day
  - name: challenge_shopping_lists
    using:
      foreign_key_constraint_on:
        column: challenge_week_id
        table:
          schema: public
          name: challenge_shopping_list
select_permissions:
  - role: patient
    permission:
      columns:
        - id
        - country_code
        - bonus_description
        - bonus_ebook
        - created_at
        - updated_at
      filter: {}
