Skip to contents

Add a New Entry to the spaces Table

Usage

insert_space(
  name,
  asset_id,
  designation,
  delivery_model,
  facility_ownership,
  closed = FALSE,
  leased = FALSE,
  bookable = NA,
  booking_method = NA,
  staffed = NA,
  test_db = FALSE
)

Arguments

name

The name of the space. Space is an area that fulfills public needs, housed within an asset

asset_id

The id of the asset-type facility.

designation

The way that facility described by the business. For example: community library, community centre, arts centre, rural hall, venue hire etc

delivery_model

Council-led or a Community-led facility.

facility_ownership

Community lease or Community-owned or Council-owned or Kainga Ora or Private trust or Privately-owned .

closed

Is the facility currently closed.

leased

Has this facility been leased to the community.

bookable

Can this space be booked.

booking_method

If this space is bookable, is it booked through Sphere or something else

staffed

Is the facility staffed during opening hours or not.

test_db

Is this change being applied to a facility in the test database (TRUE) or not (FALSE)? Defaults to FALSE.

Value

A tibble with 1 row and 10 columns showing the newly-added space.