{
  "attributes": [
    {
      "allow_nil?": false,
      "default": "fragment(\"gen_random_uuid()\")",
      "generated?": false,
      "precision": null,
      "primary_key?": true,
      "references": null,
      "scale": null,
      "size": null,
      "source": "id",
      "type": "uuid"
    },
    {
      "allow_nil?": false,
      "default": "nil",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": null,
      "scale": null,
      "size": null,
      "source": "start_datetime",
      "type": "utc_datetime"
    },
    {
      "allow_nil?": false,
      "default": "nil",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": null,
      "scale": null,
      "size": null,
      "source": "end_datetime",
      "type": "utc_datetime"
    },
    {
      "allow_nil?": false,
      "default": "nil",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": null,
      "scale": null,
      "size": null,
      "source": "date",
      "type": "date"
    },
    {
      "allow_nil?": false,
      "default": "nil",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": null,
      "scale": null,
      "size": null,
      "source": "customer_name",
      "type": "text"
    },
    {
      "allow_nil?": false,
      "default": "nil",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": null,
      "scale": null,
      "size": null,
      "source": "customer_email",
      "type": "text"
    },
    {
      "allow_nil?": false,
      "default": "nil",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": null,
      "scale": null,
      "size": null,
      "source": "start_time",
      "type": "time"
    },
    {
      "allow_nil?": false,
      "default": "nil",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": null,
      "scale": null,
      "size": null,
      "source": "end_time",
      "type": "time"
    },
    {
      "allow_nil?": true,
      "default": "nil",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": null,
      "scale": null,
      "size": null,
      "source": "customer_phone",
      "type": "text"
    },
    {
      "allow_nil?": true,
      "default": "nil",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": null,
      "scale": null,
      "size": null,
      "source": "customer_comment",
      "type": "text"
    },
    {
      "allow_nil?": true,
      "default": "nil",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": null,
      "scale": null,
      "size": null,
      "source": "cancellation_reason",
      "type": "text"
    },
    {
      "allow_nil?": true,
      "default": "nil",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": null,
      "scale": null,
      "size": null,
      "source": "rejection_reason",
      "type": "text"
    },
    {
      "allow_nil?": false,
      "default": "\"requested\"",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": null,
      "scale": null,
      "size": null,
      "source": "state",
      "type": "text"
    },
    {
      "allow_nil?": false,
      "default": "fragment(\"(now() AT TIME ZONE 'utc')\")",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": null,
      "scale": null,
      "size": null,
      "source": "inserted_at",
      "type": "utc_datetime_usec"
    },
    {
      "allow_nil?": false,
      "default": "fragment(\"(now() AT TIME ZONE 'utc')\")",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": null,
      "scale": null,
      "size": null,
      "source": "updated_at",
      "type": "utc_datetime_usec"
    },
    {
      "allow_nil?": false,
      "default": "nil",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": {
        "deferrable": false,
        "destination_attribute": "id",
        "destination_attribute_default": null,
        "destination_attribute_generated": null,
        "index?": false,
        "match_type": null,
        "match_with": null,
        "multitenancy": {
          "attribute": null,
          "global": null,
          "strategy": null
        },
        "name": "bookings_space_id_fkey",
        "on_delete": null,
        "on_update": null,
        "primary_key?": true,
        "schema": "public",
        "table": "spaces"
      },
      "scale": null,
      "size": null,
      "source": "space_id",
      "type": "uuid"
    },
    {
      "allow_nil?": true,
      "default": "nil",
      "generated?": false,
      "precision": null,
      "primary_key?": false,
      "references": {
        "deferrable": false,
        "destination_attribute": "id",
        "destination_attribute_default": null,
        "destination_attribute_generated": null,
        "index?": true,
        "match_type": null,
        "match_with": null,
        "multitenancy": {
          "attribute": null,
          "global": null,
          "strategy": null
        },
        "name": "bookings_user_id_fkey",
        "on_delete": "nilify",
        "on_update": null,
        "primary_key?": true,
        "schema": "public",
        "table": "users"
      },
      "scale": null,
      "size": null,
      "source": "user_id",
      "type": "uuid"
    }
  ],
  "base_filter": null,
  "check_constraints": [],
  "custom_indexes": [
    {
      "all_tenants?": false,
      "concurrently": false,
      "error_fields": [
        "space_id",
        "start_datetime",
        "end_datetime"
      ],
      "fields": [
        {
          "type": "atom",
          "value": "space_id"
        },
        {
          "type": "atom",
          "value": "start_datetime"
        },
        {
          "type": "atom",
          "value": "end_datetime"
        }
      ],
      "include": null,
      "message": null,
      "name": null,
      "nulls_distinct": true,
      "prefix": null,
      "table": null,
      "unique": false,
      "using": null,
      "where": null
    },
    {
      "all_tenants?": false,
      "concurrently": false,
      "error_fields": [
        "space_id",
        "state"
      ],
      "fields": [
        {
          "type": "atom",
          "value": "space_id"
        },
        {
          "type": "atom",
          "value": "state"
        }
      ],
      "include": null,
      "message": null,
      "name": null,
      "nulls_distinct": true,
      "prefix": null,
      "table": null,
      "unique": false,
      "using": null,
      "where": null
    },
    {
      "all_tenants?": false,
      "concurrently": false,
      "error_fields": [
        "start_datetime"
      ],
      "fields": [
        {
          "type": "atom",
          "value": "start_datetime"
        }
      ],
      "include": null,
      "message": null,
      "name": null,
      "nulls_distinct": true,
      "prefix": null,
      "table": null,
      "unique": false,
      "using": null,
      "where": null
    },
    {
      "all_tenants?": false,
      "concurrently": false,
      "error_fields": [
        "end_datetime"
      ],
      "fields": [
        {
          "type": "atom",
          "value": "end_datetime"
        }
      ],
      "include": null,
      "message": null,
      "name": null,
      "nulls_distinct": true,
      "prefix": null,
      "table": null,
      "unique": false,
      "using": null,
      "where": null
    }
  ],
  "custom_statements": [],
  "has_create_action": true,
  "hash": "5DB2211C98FA47BC6D744D8FD763CC8920F067DFD092EC120CBD2115E26810CF",
  "identities": [],
  "multitenancy": {
    "attribute": null,
    "global": null,
    "strategy": null
  },
  "repo": "Elixir.SpazioSolazzo.Repo",
  "schema": null,
  "table": "bookings"
}