import gql from 'graphql-tag';
export default gql `
  input RecreateFieldInput {
    airtable_table_id: String!
    airtable_base_id: String!
    field: JSON!
    shopify_object_key: String!
  }

  input TableInput {
    airtable_table_id: String!
    # TODO Create GraphQL types for serialized airtable entities
    airtable_table: JSON!
  }

  input CreateTableInput {
    shopify_object_type: ShopifyObjectType!
    airtable_table: JSON!
    airtable_base_id: String!
    airtable_table_id: String!
  }

  type Table implements Model {
    # Model
    id: ID!
    created_at: Date!
    updated_at: Date!

    # Props
    shopify_object_type: ShopifyObjectType!
    airtable_table: JSON!
    airtable_base_id: String!
    airtable_table_id: String!
    airtable_field_links: JSON!

    # Foreign keys
    account_id: String!
    base_id: String!

    records(status: SyncToShopifyStatus!): [AT_Record!]!
  }
`;
//# sourceMappingURL=Table.js.map