text: export default {
    photos: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "photos",
    },
    map: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "map",
    },
    branchCode: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "branchCode",
    },
    hasMap: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "hasMap",
    },
    additionalProperty: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "additionalProperty",
    },
    address: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "address",
    },
    specialOpeningHoursSpecification: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "specialOpeningHoursSpecification",
    },
    amenityFeature: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "amenityFeature",
    },
    logo: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "logo",
    },
    telephone: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "telephone",
    },
    geo: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "geo",
    },
    containedInPlace: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "containedInPlace",
    },
    review: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "review",
    },
    publicAccess: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "publicAccess",
    },
    event: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "event",
    },
    containsPlace: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "containsPlace",
    },
    isicV4: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "isicV4",
    },
    maps: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "maps",
    },
    isAccessibleForFree: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "isAccessibleForFree",
    },
    containedIn: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      label: "containedIn",
    },
    _id: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      optional: true,
    },
    createdAt: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: Date,
      optional: true,
      viewableBy: ["guests"],
      onInsert: (document, context) => {
        return new Date()
      },
    },
    userId: {
      viewableBy: ["guests"],
      editableBy: ["guests"],
      insertableBy: ["guests"],
      type: String,
      optional: true,
      resolveAs: {
        fieldName: "user",
        type: "User",
        resolver: (movie, args, context) => {
          return context.Users.findOne(
            { _id: movie.userId },
            {
              fields: context.Users.getViewableFields(
                context.currentUser,
                context.Users
              ),
            }
          )
        },
        optional: true,
      },
    },
  }
  