From 6c7eb53333d86d5a10db98ad40aa0bb38e36b142 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Wed, 26 Apr 2023 16:42:01 +0200 Subject: [PATCH] Add seeds and move to uuid (#80) Co-authored-by: Charles Bochet --- front/graphql.schema.json | 5279 ----------------- front/src/App.tsx | 4 +- front/src/components/table/EditableCell.tsx | 3 +- front/src/generated/graphql.tsx | 721 +-- front/src/interfaces/company.interface.ts | 4 +- front/src/interfaces/person.interface.test.ts | 16 +- front/src/interfaces/person.interface.ts | 24 +- front/src/interfaces/pipe.interface.ts | 2 +- front/src/interfaces/user.interface.ts | 2 +- front/src/interfaces/workspace.interface.ts | 2 +- .../navbar/__stories__/Navbar.stories.tsx | 4 +- front/src/pages/people/default-data.ts | 32 +- front/src/pages/people/people-table.tsx | 2 +- .../services/people/__tests__/update.test.ts | 8 +- front/src/services/people/select.ts | 6 +- front/src/services/people/update.ts | 8 +- .../databases/default/tables/auth_users.yaml | 16 +- .../default/tables/public_companies.yaml | 45 +- .../default/tables/public_people.yaml | 39 +- .../tables/public_workspace_members.yaml | 4 + .../default/1682512434146_squashed/down.sql | 3 + .../default/1682512434146_squashed/up.sql | 5 + .../down.sql | 1 + .../up.sql | 34 + .../down.sql | 1 + .../up.sql | 17 + .../down.sql | 1 + .../up.sql | 17 + .../down.sql | 1 + .../up.sql | 34 + .../default/1682504539909_companiesSeeds.sql | 27 + .../default/1682504828618_peopleSeeds.sql | 76 + .../default/1682513765429_workspacesSeed.sql | 3 + server/package-lock.json | 3 +- server/package.json | 3 +- server/src/database/schema.prisma | 6 +- server/src/user/user.repository.ts | 2 + server/src/user/user.service.ts | 3 +- 38 files changed, 523 insertions(+), 5935 deletions(-) delete mode 100644 front/graphql.schema.json create mode 100644 hasura/migrations/default/1682512434146_squashed/down.sql create mode 100644 hasura/migrations/default/1682512434146_squashed/up.sql create mode 100644 hasura/migrations/default/1682512888256_create_table_public_workspaces/down.sql create mode 100644 hasura/migrations/default/1682512888256_create_table_public_workspaces/up.sql create mode 100644 hasura/migrations/default/1682513024159_create_table_public_workspace_members/down.sql create mode 100644 hasura/migrations/default/1682513024159_create_table_public_workspace_members/up.sql create mode 100644 hasura/migrations/default/1682513157730_create_table_public_companies/down.sql create mode 100644 hasura/migrations/default/1682513157730_create_table_public_companies/up.sql create mode 100644 hasura/migrations/default/1682513293454_create_table_public_people/down.sql create mode 100644 hasura/migrations/default/1682513293454_create_table_public_people/up.sql create mode 100644 hasura/seeds/default/1682504539909_companiesSeeds.sql create mode 100644 hasura/seeds/default/1682504828618_peopleSeeds.sql create mode 100644 hasura/seeds/default/1682513765429_workspacesSeed.sql diff --git a/front/graphql.schema.json b/front/graphql.schema.json deleted file mode 100644 index 8ac2695cdd..0000000000 --- a/front/graphql.schema.json +++ /dev/null @@ -1,5279 +0,0 @@ -{ - "__schema": { - "queryType": { - "name": "query_root" - }, - "mutationType": { - "name": "mutation_root" - }, - "subscriptionType": { - "name": "subscription_root" - }, - "types": [ - { - "kind": "SCALAR", - "name": "Boolean", - "description": "The `Boolean` scalar type represents `true` or `false`.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Int", - "description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "Int_comparison_exp", - "description": "Boolean expression to compare columns of type \"Int\". All fields are combined with logical 'AND'.", - "fields": null, - "inputFields": [ - { - "name": "_eq", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_gt", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_gte", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_in", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_is_null", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_lt", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_lte", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_neq", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_nin", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "String", - "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "String_comparison_exp", - "description": "Boolean expression to compare columns of type \"String\". All fields are combined with logical 'AND'.", - "fields": null, - "inputFields": [ - { - "name": "_eq", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_gt", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_gte", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_ilike", - "description": "does the column match the given case-insensitive pattern", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_in", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_iregex", - "description": "does the column match the given POSIX regular expression, case insensitive", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_is_null", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_like", - "description": "does the column match the given pattern", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_lt", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_lte", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_neq", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_nilike", - "description": "does the column NOT match the given case-insensitive pattern", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_nin", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_niregex", - "description": "does the column NOT match the given POSIX regular expression, case insensitive", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_nlike", - "description": "does the column NOT match the given pattern", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_nregex", - "description": "does the column NOT match the given POSIX regular expression, case sensitive", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_nsimilar", - "description": "does the column NOT match the given SQL regular expression", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_regex", - "description": "does the column match the given POSIX regular expression, case sensitive", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_similar", - "description": "does the column match the given SQL regular expression", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Directive", - "description": "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isRepeatable", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "locations", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "__DirectiveLocation", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "args", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__InputValue", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "__DirectiveLocation", - "description": "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "QUERY", - "description": "Location adjacent to a query operation.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MUTATION", - "description": "Location adjacent to a mutation operation.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SUBSCRIPTION", - "description": "Location adjacent to a subscription operation.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FIELD", - "description": "Location adjacent to a field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FRAGMENT_DEFINITION", - "description": "Location adjacent to a fragment definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FRAGMENT_SPREAD", - "description": "Location adjacent to a fragment spread.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INLINE_FRAGMENT", - "description": "Location adjacent to an inline fragment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VARIABLE_DEFINITION", - "description": "Location adjacent to a variable definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SCHEMA", - "description": "Location adjacent to a schema definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SCALAR", - "description": "Location adjacent to a scalar definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OBJECT", - "description": "Location adjacent to an object type definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FIELD_DEFINITION", - "description": "Location adjacent to a field definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ARGUMENT_DEFINITION", - "description": "Location adjacent to an argument definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INTERFACE", - "description": "Location adjacent to an interface definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNION", - "description": "Location adjacent to a union definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ENUM", - "description": "Location adjacent to an enum definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ENUM_VALUE", - "description": "Location adjacent to an enum value definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INPUT_OBJECT", - "description": "Location adjacent to an input object type definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INPUT_FIELD_DEFINITION", - "description": "Location adjacent to an input object field definition.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__EnumValue", - "description": "One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDeprecated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deprecationReason", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Field", - "description": "Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "args", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__InputValue", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDeprecated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deprecationReason", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__InputValue", - "description": "Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultValue", - "description": "A GraphQL-formatted string representing the default value for this input value.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDeprecated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deprecationReason", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Schema", - "description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.", - "fields": [ - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "types", - "description": "A list of all types supported by this server.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "queryType", - "description": "The type that query operations will be rooted at.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "mutationType", - "description": "If this server supports mutation, the type that mutation operations will be rooted at.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "subscriptionType", - "description": "If this server support subscription, the type that subscription operations will be rooted at.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "directives", - "description": "A list of all directives supported by this server.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Directive", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Type", - "description": "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.", - "fields": [ - { - "name": "kind", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "__TypeKind", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "specifiedByURL", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fields", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Field", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "interfaces", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "possibleTypes", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "enumValues", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__EnumValue", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inputFields", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__InputValue", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ofType", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "__TypeKind", - "description": "An enum describing what kind of type a given `__Type` is.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "SCALAR", - "description": "Indicates this type is a scalar.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OBJECT", - "description": "Indicates this type is an object. `fields` and `interfaces` are valid fields.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INTERFACE", - "description": "Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNION", - "description": "Indicates this type is a union. `possibleTypes` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ENUM", - "description": "Indicates this type is an enum. `enumValues` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INPUT_OBJECT", - "description": "Indicates this type is an input object. `inputFields` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LIST", - "description": "Indicates this type is a list. `ofType` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NON_NULL", - "description": "Indicates this type is a non-null. `ofType` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "companies", - "description": "columns and relationships of \"companies\"", - "fields": [ - { - "name": "company_domain", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "companies_bool_exp", - "description": "Boolean expression to filter rows from the table \"companies\". All fields are combined with a logical 'AND'.", - "fields": null, - "inputFields": [ - { - "name": "_and", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "companies_bool_exp", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_not", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_bool_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_or", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "companies_bool_exp", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_domain", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "String_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_name", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "String_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "timestamptz_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "Int_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "timestamptz_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "Int_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "companies_constraint", - "description": "unique or primary key constraints on table \"companies\"", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "company_pkey", - "description": "unique or primary key constraint on columns \"id\"", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "companies_inc_input", - "description": "input type for incrementing numeric columns in table \"companies\"", - "fields": null, - "inputFields": [ - { - "name": "id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "companies_insert_input", - "description": "input type for inserting data into table \"companies\"", - "fields": null, - "inputFields": [ - { - "name": "company_domain", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_name", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "companies_mutation_response", - "description": "response of any mutation on the table \"companies\"", - "fields": [ - { - "name": "affected_rows", - "description": "number of rows affected by the mutation", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "returning", - "description": "data from the rows affected by the mutation", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "companies", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "companies_obj_rel_insert_input", - "description": "input type for inserting object relation for remote table \"companies\"", - "fields": null, - "inputFields": [ - { - "name": "data", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "companies_insert_input", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "on_conflict", - "description": "upsert condition", - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_on_conflict", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "companies_on_conflict", - "description": "on_conflict condition type for table \"companies\"", - "fields": null, - "inputFields": [ - { - "name": "constraint", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "companies_constraint", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "update_columns", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "companies_update_column", - "ofType": null - } - } - } - }, - "defaultValue": "[]", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_bool_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "companies_order_by", - "description": "Ordering options when selecting data from \"companies\".", - "fields": null, - "inputFields": [ - { - "name": "company_domain", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_name", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "companies_pk_columns_input", - "description": "primary key columns input for table: companies", - "fields": null, - "inputFields": [ - { - "name": "id", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "companies_select_column", - "description": "select columns of table \"companies\"", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "company_domain", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_name", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "companies_set_input", - "description": "input type for updating data in table \"companies\"", - "fields": null, - "inputFields": [ - { - "name": "company_domain", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_name", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "companies_stream_cursor_input", - "description": "Streaming cursor of the table \"companies\"", - "fields": null, - "inputFields": [ - { - "name": "initial_value", - "description": "Stream column input with initial value", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "companies_stream_cursor_value_input", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ordering", - "description": "cursor ordering", - "type": { - "kind": "ENUM", - "name": "cursor_ordering", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "companies_stream_cursor_value_input", - "description": "Initial value of the column from where the streaming should start", - "fields": null, - "inputFields": [ - { - "name": "company_domain", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_name", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "companies_update_column", - "description": "update columns of table \"companies\"", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "company_domain", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_name", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "companies_updates", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "_inc", - "description": "increments the numeric columns with given value of the filtered values", - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_inc_input", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_set", - "description": "sets the columns of the filtered rows to the given values", - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_set_input", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": "filter the rows which have to be updated", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "companies_bool_exp", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "cursor_ordering", - "description": "ordering argument of a cursor", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ASC", - "description": "ascending ordering of the cursor", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "DESC", - "description": "descending ordering of the cursor", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "mutation_root", - "description": "mutation root", - "fields": [ - { - "name": "delete_companies", - "description": "delete data from the table: \"companies\"", - "args": [ - { - "name": "where", - "description": "filter the rows which have to be deleted", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "companies_bool_exp", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "companies_mutation_response", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "delete_companies_by_pk", - "description": "delete single row from the table: \"companies\"", - "args": [ - { - "name": "id", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "companies", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "delete_people", - "description": "delete data from the table: \"people\"", - "args": [ - { - "name": "where", - "description": "filter the rows which have to be deleted", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "people_bool_exp", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "people_mutation_response", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "delete_people_by_pk", - "description": "delete single row from the table: \"people\"", - "args": [ - { - "name": "id", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "people", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "insert_companies", - "description": "insert data into the table: \"companies\"", - "args": [ - { - "name": "objects", - "description": "the rows to be inserted", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "companies_insert_input", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "on_conflict", - "description": "upsert condition", - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_on_conflict", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "companies_mutation_response", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "insert_companies_one", - "description": "insert a single row into the table: \"companies\"", - "args": [ - { - "name": "object", - "description": "the row to be inserted", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "companies_insert_input", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "on_conflict", - "description": "upsert condition", - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_on_conflict", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "companies", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "insert_people", - "description": "insert data into the table: \"people\"", - "args": [ - { - "name": "objects", - "description": "the rows to be inserted", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "people_insert_input", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "on_conflict", - "description": "upsert condition", - "type": { - "kind": "INPUT_OBJECT", - "name": "people_on_conflict", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "people_mutation_response", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "insert_people_one", - "description": "insert a single row into the table: \"people\"", - "args": [ - { - "name": "object", - "description": "the row to be inserted", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "people_insert_input", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "on_conflict", - "description": "upsert condition", - "type": { - "kind": "INPUT_OBJECT", - "name": "people_on_conflict", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "people", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "update_companies", - "description": "update data of the table: \"companies\"", - "args": [ - { - "name": "_inc", - "description": "increments the numeric columns with given value of the filtered values", - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_inc_input", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_set", - "description": "sets the columns of the filtered rows to the given values", - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_set_input", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": "filter the rows which have to be updated", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "companies_bool_exp", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "companies_mutation_response", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "update_companies_by_pk", - "description": "update single row of the table: \"companies\"", - "args": [ - { - "name": "_inc", - "description": "increments the numeric columns with given value of the filtered values", - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_inc_input", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_set", - "description": "sets the columns of the filtered rows to the given values", - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_set_input", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pk_columns", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "companies_pk_columns_input", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "companies", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "update_companies_many", - "description": "update multiples rows of table: \"companies\"", - "args": [ - { - "name": "updates", - "description": "updates to execute, in order", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "companies_updates", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "companies_mutation_response", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "update_people", - "description": "update data of the table: \"people\"", - "args": [ - { - "name": "_inc", - "description": "increments the numeric columns with given value of the filtered values", - "type": { - "kind": "INPUT_OBJECT", - "name": "people_inc_input", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_set", - "description": "sets the columns of the filtered rows to the given values", - "type": { - "kind": "INPUT_OBJECT", - "name": "people_set_input", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": "filter the rows which have to be updated", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "people_bool_exp", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "people_mutation_response", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "update_people_by_pk", - "description": "update single row of the table: \"people\"", - "args": [ - { - "name": "_inc", - "description": "increments the numeric columns with given value of the filtered values", - "type": { - "kind": "INPUT_OBJECT", - "name": "people_inc_input", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_set", - "description": "sets the columns of the filtered rows to the given values", - "type": { - "kind": "INPUT_OBJECT", - "name": "people_set_input", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pk_columns", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "people_pk_columns_input", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "people", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "update_people_many", - "description": "update multiples rows of table: \"people\"", - "args": [ - { - "name": "updates", - "description": "updates to execute, in order", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "people_updates", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "people_mutation_response", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "order_by", - "description": "column ordering options", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "asc", - "description": "in ascending order, nulls last", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "asc_nulls_first", - "description": "in ascending order, nulls first", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "asc_nulls_last", - "description": "in ascending order, nulls last", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "desc", - "description": "in descending order, nulls first", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "desc_nulls_first", - "description": "in descending order, nulls first", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "desc_nulls_last", - "description": "in descending order, nulls last", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "people", - "description": "columns and relationships of \"people\"", - "fields": [ - { - "name": "city", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company", - "description": "An object relationship", - "args": [], - "type": { - "kind": "OBJECT", - "name": "companies", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_id", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "firstname", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastname", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phone", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "people_bool_exp", - "description": "Boolean expression to filter rows from the table \"people\". All fields are combined with a logical 'AND'.", - "fields": null, - "inputFields": [ - { - "name": "_and", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "people_bool_exp", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_not", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "people_bool_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_or", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "people_bool_exp", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "city", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "String_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_bool_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_id", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "Int_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "timestamptz_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "String_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "firstname", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "String_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "Int_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastname", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "String_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phone", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "String_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "timestamptz_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "Int_comparison_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "people_constraint", - "description": "unique or primary key constraints on table \"people\"", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "person_pkey", - "description": "unique or primary key constraint on columns \"id\"", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "people_inc_input", - "description": "input type for incrementing numeric columns in table \"people\"", - "fields": null, - "inputFields": [ - { - "name": "company_id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "people_insert_input", - "description": "input type for inserting data into table \"people\"", - "fields": null, - "inputFields": [ - { - "name": "city", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_obj_rel_insert_input", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "firstname", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastname", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phone", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "people_mutation_response", - "description": "response of any mutation on the table \"people\"", - "fields": [ - { - "name": "affected_rows", - "description": "number of rows affected by the mutation", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "returning", - "description": "data from the rows affected by the mutation", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "people", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "people_on_conflict", - "description": "on_conflict condition type for table \"people\"", - "fields": null, - "inputFields": [ - { - "name": "constraint", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "people_constraint", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "update_columns", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "people_update_column", - "ofType": null - } - } - } - }, - "defaultValue": "[]", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "people_bool_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "people_order_by", - "description": "Ordering options when selecting data from \"people\".", - "fields": null, - "inputFields": [ - { - "name": "city", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_id", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "firstname", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastname", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phone", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": null, - "type": { - "kind": "ENUM", - "name": "order_by", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "people_pk_columns_input", - "description": "primary key columns input for table: people", - "fields": null, - "inputFields": [ - { - "name": "id", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "people_select_column", - "description": "select columns of table \"people\"", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "city", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_id", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "firstname", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastname", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phone", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "people_set_input", - "description": "input type for updating data in table \"people\"", - "fields": null, - "inputFields": [ - { - "name": "city", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "firstname", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastname", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phone", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "people_stream_cursor_input", - "description": "Streaming cursor of the table \"people\"", - "fields": null, - "inputFields": [ - { - "name": "initial_value", - "description": "Stream column input with initial value", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "people_stream_cursor_value_input", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ordering", - "description": "cursor ordering", - "type": { - "kind": "ENUM", - "name": "cursor_ordering", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "people_stream_cursor_value_input", - "description": "Initial value of the column from where the streaming should start", - "fields": null, - "inputFields": [ - { - "name": "city", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "firstname", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastname", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phone", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "people_update_column", - "description": "update columns of table \"people\"", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "city", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "company_id", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created_at", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "email", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "firstname", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastname", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phone", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated_at", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "workspace_id", - "description": "column name", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "people_updates", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "_inc", - "description": "increments the numeric columns with given value of the filtered values", - "type": { - "kind": "INPUT_OBJECT", - "name": "people_inc_input", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_set", - "description": "sets the columns of the filtered rows to the given values", - "type": { - "kind": "INPUT_OBJECT", - "name": "people_set_input", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": "filter the rows which have to be updated", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "people_bool_exp", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "query_root", - "description": null, - "fields": [ - { - "name": "companies", - "description": "fetch data from the table: \"companies\"", - "args": [ - { - "name": "distinct_on", - "description": "distinct select on columns", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "companies_select_column", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "limit", - "description": "limit the number of rows returned", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "offset", - "description": "skip the first n rows. Use only with order_by", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order_by", - "description": "sort the rows by one or more columns", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "companies_order_by", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": "filter the rows returned", - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_bool_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "companies", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "companies_by_pk", - "description": "fetch data from the table: \"companies\" using primary key columns", - "args": [ - { - "name": "id", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "companies", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "people", - "description": "fetch data from the table: \"people\"", - "args": [ - { - "name": "distinct_on", - "description": "distinct select on columns", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "people_select_column", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "limit", - "description": "limit the number of rows returned", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "offset", - "description": "skip the first n rows. Use only with order_by", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order_by", - "description": "sort the rows by one or more columns", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "people_order_by", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": "filter the rows returned", - "type": { - "kind": "INPUT_OBJECT", - "name": "people_bool_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "people", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "people_by_pk", - "description": "fetch data from the table: \"people\" using primary key columns", - "args": [ - { - "name": "id", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "people", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "subscription_root", - "description": null, - "fields": [ - { - "name": "companies", - "description": "fetch data from the table: \"companies\"", - "args": [ - { - "name": "distinct_on", - "description": "distinct select on columns", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "companies_select_column", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "limit", - "description": "limit the number of rows returned", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "offset", - "description": "skip the first n rows. Use only with order_by", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order_by", - "description": "sort the rows by one or more columns", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "companies_order_by", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": "filter the rows returned", - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_bool_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "companies", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "companies_by_pk", - "description": "fetch data from the table: \"companies\" using primary key columns", - "args": [ - { - "name": "id", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "companies", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "companies_stream", - "description": "fetch data from the table in a streaming manner: \"companies\"", - "args": [ - { - "name": "batch_size", - "description": "maximum number of rows returned in a single batch", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "cursor to stream the results returned by the query", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "companies_stream_cursor_input", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": "filter the rows returned", - "type": { - "kind": "INPUT_OBJECT", - "name": "companies_bool_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "companies", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "people", - "description": "fetch data from the table: \"people\"", - "args": [ - { - "name": "distinct_on", - "description": "distinct select on columns", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "people_select_column", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "limit", - "description": "limit the number of rows returned", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "offset", - "description": "skip the first n rows. Use only with order_by", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "order_by", - "description": "sort the rows by one or more columns", - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "people_order_by", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": "filter the rows returned", - "type": { - "kind": "INPUT_OBJECT", - "name": "people_bool_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "people", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "people_by_pk", - "description": "fetch data from the table: \"people\" using primary key columns", - "args": [ - { - "name": "id", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "people", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "people_stream", - "description": "fetch data from the table in a streaming manner: \"people\"", - "args": [ - { - "name": "batch_size", - "description": "maximum number of rows returned in a single batch", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "cursor", - "description": "cursor to stream the results returned by the query", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "people_stream_cursor_input", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "where", - "description": "filter the rows returned", - "type": { - "kind": "INPUT_OBJECT", - "name": "people_bool_exp", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "people", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "timestamptz", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "timestamptz_comparison_exp", - "description": "Boolean expression to compare columns of type \"timestamptz\". All fields are combined with logical 'AND'.", - "fields": null, - "inputFields": [ - { - "name": "_eq", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_gt", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_gte", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_in", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_is_null", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_lt", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_lte", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_neq", - "description": null, - "type": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "_nin", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "timestamptz", - "ofType": null - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - } - ], - "directives": [ - { - "name": "cached", - "description": "whether this query should be cached (Hasura Cloud only)", - "isRepeatable": false, - "locations": [ - "QUERY" - ], - "args": [ - { - "name": "refresh", - "description": "refresh the cache entry", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ttl", - "description": "measured in seconds", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": "60", - "isDeprecated": false, - "deprecationReason": null - } - ] - }, - { - "name": "include", - "description": "whether this query should be included", - "isRepeatable": false, - "locations": [ - "FIELD", - "FRAGMENT_SPREAD", - "INLINE_FRAGMENT" - ], - "args": [ - { - "name": "if", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ] - }, - { - "name": "skip", - "description": "whether this query should be skipped", - "isRepeatable": false, - "locations": [ - "FIELD", - "FRAGMENT_SPREAD", - "INLINE_FRAGMENT" - ], - "args": [ - { - "name": "if", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ] - } - ] - } -} \ No newline at end of file diff --git a/front/src/App.tsx b/front/src/App.tsx index a9f6953d27..779b553ece 100644 --- a/front/src/App.tsx +++ b/front/src/App.tsx @@ -9,14 +9,14 @@ import RequireAuth from './components/auth/RequireAuth'; function App() { const user = { - id: 1, + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b', email: 'charles@twenty.com', first_name: 'Charles', last_name: 'Bochet', }; const workspace = { - id: 1, + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b', name: 'Claap', logo: 'data:image/png;base64,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', }; diff --git a/front/src/components/table/EditableCell.tsx b/front/src/components/table/EditableCell.tsx index de44b6a045..6771d6b1b2 100644 --- a/front/src/components/table/EditableCell.tsx +++ b/front/src/components/table/EditableCell.tsx @@ -39,11 +39,12 @@ const StyledEditable = styled.div` left: -1px; width: calc(100% + 2px); height: calc(100% + 2px); - border: 1px solid ${(props) => props.theme.blue}; + border: 1px solid ${(props) => props.theme.text20}; border-radius: 4px; pointer-events: none; display: block; z-index: 1; + box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.09); } `; diff --git a/front/src/generated/graphql.tsx b/front/src/generated/graphql.tsx index 86ad20ba50..b5714362da 100644 --- a/front/src/generated/graphql.tsx +++ b/front/src/generated/graphql.tsx @@ -17,7 +17,6 @@ export type Scalars = { bytea: any; citext: any; jsonb: any; - timestamp: any; timestamptz: any; uuid: any; }; @@ -1716,12 +1715,15 @@ export type Citext_Comparison_Exp = { /** columns and relationships of "companies" */ export type Companies = { __typename?: 'companies'; - company_domain: Scalars['String']; - company_name: Scalars['String']; created_at: Scalars['timestamptz']; - id: Scalars['Int']; + deleted_at?: Maybe; + domain_name?: Maybe; + id: Scalars['uuid']; + name?: Maybe; updated_at: Scalars['timestamptz']; - workspace_id: Scalars['Int']; + /** An object relationship */ + workspace: Workspaces; + workspace_id: Scalars['uuid']; }; /** aggregated selection of "companies" */ @@ -1734,17 +1736,9 @@ export type Companies_Aggregate = { /** aggregate fields of "companies" */ export type Companies_Aggregate_Fields = { __typename?: 'companies_aggregate_fields'; - avg?: Maybe; count: Scalars['Int']; max?: Maybe; min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; }; @@ -1754,68 +1748,61 @@ export type Companies_Aggregate_FieldsCountArgs = { distinct?: InputMaybe; }; -/** aggregate avg on columns */ -export type Companies_Avg_Fields = { - __typename?: 'companies_avg_fields'; - id?: Maybe; - workspace_id?: Maybe; -}; - /** Boolean expression to filter rows from the table "companies". All fields are combined with a logical 'AND'. */ export type Companies_Bool_Exp = { _and?: InputMaybe>; _not?: InputMaybe; _or?: InputMaybe>; - company_domain?: InputMaybe; - company_name?: InputMaybe; created_at?: InputMaybe; - id?: InputMaybe; + deleted_at?: InputMaybe; + domain_name?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; updated_at?: InputMaybe; - workspace_id?: InputMaybe; + workspace?: InputMaybe; + workspace_id?: InputMaybe; }; /** unique or primary key constraints on table "companies" */ export enum Companies_Constraint { /** unique or primary key constraint on columns "id" */ - CompanyPkey = 'company_pkey' + CompaniesPkey = 'companies_pkey' } -/** input type for incrementing numeric columns in table "companies" */ -export type Companies_Inc_Input = { - id?: InputMaybe; - workspace_id?: InputMaybe; -}; - /** input type for inserting data into table "companies" */ export type Companies_Insert_Input = { - company_domain?: InputMaybe; - company_name?: InputMaybe; created_at?: InputMaybe; - id?: InputMaybe; + deleted_at?: InputMaybe; + domain_name?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; updated_at?: InputMaybe; - workspace_id?: InputMaybe; + workspace?: InputMaybe; + workspace_id?: InputMaybe; }; /** aggregate max on columns */ export type Companies_Max_Fields = { __typename?: 'companies_max_fields'; - company_domain?: Maybe; - company_name?: Maybe; created_at?: Maybe; - id?: Maybe; + deleted_at?: Maybe; + domain_name?: Maybe; + id?: Maybe; + name?: Maybe; updated_at?: Maybe; - workspace_id?: Maybe; + workspace_id?: Maybe; }; /** aggregate min on columns */ export type Companies_Min_Fields = { __typename?: 'companies_min_fields'; - company_domain?: Maybe; - company_name?: Maybe; created_at?: Maybe; - id?: Maybe; + deleted_at?: Maybe; + domain_name?: Maybe; + id?: Maybe; + name?: Maybe; updated_at?: Maybe; - workspace_id?: Maybe; + workspace_id?: Maybe; }; /** response of any mutation on the table "companies" */ @@ -1843,30 +1830,34 @@ export type Companies_On_Conflict = { /** Ordering options when selecting data from "companies". */ export type Companies_Order_By = { - company_domain?: InputMaybe; - company_name?: InputMaybe; created_at?: InputMaybe; + deleted_at?: InputMaybe; + domain_name?: InputMaybe; id?: InputMaybe; + name?: InputMaybe; updated_at?: InputMaybe; + workspace?: InputMaybe; workspace_id?: InputMaybe; }; /** primary key columns input for table: companies */ export type Companies_Pk_Columns_Input = { - id: Scalars['Int']; + id: Scalars['uuid']; }; /** select columns of table "companies" */ export enum Companies_Select_Column { - /** column name */ - CompanyDomain = 'company_domain', - /** column name */ - CompanyName = 'company_name', /** column name */ CreatedAt = 'created_at', /** column name */ + DeletedAt = 'deleted_at', + /** column name */ + DomainName = 'domain_name', + /** column name */ Id = 'id', /** column name */ + Name = 'name', + /** column name */ UpdatedAt = 'updated_at', /** column name */ WorkspaceId = 'workspace_id' @@ -1874,33 +1865,13 @@ export enum Companies_Select_Column { /** input type for updating data in table "companies" */ export type Companies_Set_Input = { - company_domain?: InputMaybe; - company_name?: InputMaybe; created_at?: InputMaybe; - id?: InputMaybe; + deleted_at?: InputMaybe; + domain_name?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; updated_at?: InputMaybe; - workspace_id?: InputMaybe; -}; - -/** aggregate stddev on columns */ -export type Companies_Stddev_Fields = { - __typename?: 'companies_stddev_fields'; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Companies_Stddev_Pop_Fields = { - __typename?: 'companies_stddev_pop_fields'; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Companies_Stddev_Samp_Fields = { - __typename?: 'companies_stddev_samp_fields'; - id?: Maybe; - workspace_id?: Maybe; + workspace_id?: InputMaybe; }; /** Streaming cursor of the table "companies" */ @@ -1913,67 +1884,40 @@ export type Companies_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Companies_Stream_Cursor_Value_Input = { - company_domain?: InputMaybe; - company_name?: InputMaybe; created_at?: InputMaybe; - id?: InputMaybe; + deleted_at?: InputMaybe; + domain_name?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; updated_at?: InputMaybe; - workspace_id?: InputMaybe; -}; - -/** aggregate sum on columns */ -export type Companies_Sum_Fields = { - __typename?: 'companies_sum_fields'; - id?: Maybe; - workspace_id?: Maybe; + workspace_id?: InputMaybe; }; /** update columns of table "companies" */ export enum Companies_Update_Column { - /** column name */ - CompanyDomain = 'company_domain', - /** column name */ - CompanyName = 'company_name', /** column name */ CreatedAt = 'created_at', /** column name */ + DeletedAt = 'deleted_at', + /** column name */ + DomainName = 'domain_name', + /** column name */ Id = 'id', /** column name */ + Name = 'name', + /** column name */ UpdatedAt = 'updated_at', /** column name */ WorkspaceId = 'workspace_id' } export type Companies_Updates = { - /** increments the numeric columns with given value of the filtered values */ - _inc?: InputMaybe; /** sets the columns of the filtered rows to the given values */ _set?: InputMaybe; /** filter the rows which have to be updated */ where: Companies_Bool_Exp; }; -/** aggregate var_pop on columns */ -export type Companies_Var_Pop_Fields = { - __typename?: 'companies_var_pop_fields'; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Companies_Var_Samp_Fields = { - __typename?: 'companies_var_samp_fields'; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Companies_Variance_Fields = { - __typename?: 'companies_variance_fields'; - id?: Maybe; - workspace_id?: Maybe; -}; - /** ordering argument of a cursor */ export enum Cursor_Ordering { /** ascending ordering of the cursor */ @@ -2288,7 +2232,7 @@ export type Mutation_RootDelete_CompaniesArgs = { /** mutation root */ export type Mutation_RootDelete_Companies_By_PkArgs = { - id: Scalars['Int']; + id: Scalars['uuid']; }; @@ -2300,7 +2244,7 @@ export type Mutation_RootDelete_PeopleArgs = { /** mutation root */ export type Mutation_RootDelete_People_By_PkArgs = { - id: Scalars['Int']; + id: Scalars['uuid']; }; @@ -2312,7 +2256,7 @@ export type Mutation_RootDelete_Workspace_MembersArgs = { /** mutation root */ export type Mutation_RootDelete_Workspace_Members_By_PkArgs = { - id: Scalars['Int']; + id: Scalars['uuid']; }; @@ -2324,7 +2268,7 @@ export type Mutation_RootDelete_WorkspacesArgs = { /** mutation root */ export type Mutation_RootDelete_Workspaces_By_PkArgs = { - id: Scalars['Int']; + id: Scalars['uuid']; }; @@ -2674,7 +2618,6 @@ export type Mutation_RootUpdate_AuthUserSecurityKeys_ManyArgs = { /** mutation root */ export type Mutation_RootUpdate_CompaniesArgs = { - _inc?: InputMaybe; _set?: InputMaybe; where: Companies_Bool_Exp; }; @@ -2682,7 +2625,6 @@ export type Mutation_RootUpdate_CompaniesArgs = { /** mutation root */ export type Mutation_RootUpdate_Companies_By_PkArgs = { - _inc?: InputMaybe; _set?: InputMaybe; pk_columns: Companies_Pk_Columns_Input; }; @@ -2696,7 +2638,6 @@ export type Mutation_RootUpdate_Companies_ManyArgs = { /** mutation root */ export type Mutation_RootUpdate_PeopleArgs = { - _inc?: InputMaybe; _set?: InputMaybe; where: People_Bool_Exp; }; @@ -2704,7 +2645,6 @@ export type Mutation_RootUpdate_PeopleArgs = { /** mutation root */ export type Mutation_RootUpdate_People_By_PkArgs = { - _inc?: InputMaybe; _set?: InputMaybe; pk_columns: People_Pk_Columns_Input; }; @@ -2724,7 +2664,6 @@ export type Mutation_RootUpdate_Users_ManyArgs = { /** mutation root */ export type Mutation_RootUpdate_Workspace_MembersArgs = { - _inc?: InputMaybe; _set?: InputMaybe; where: Workspace_Members_Bool_Exp; }; @@ -2732,7 +2671,6 @@ export type Mutation_RootUpdate_Workspace_MembersArgs = { /** mutation root */ export type Mutation_RootUpdate_Workspace_Members_By_PkArgs = { - _inc?: InputMaybe; _set?: InputMaybe; pk_columns: Workspace_Members_Pk_Columns_Input; }; @@ -2746,7 +2684,6 @@ export type Mutation_RootUpdate_Workspace_Members_ManyArgs = { /** mutation root */ export type Mutation_RootUpdate_WorkspacesArgs = { - _inc?: InputMaybe; _set?: InputMaybe; where: Workspaces_Bool_Exp; }; @@ -2754,7 +2691,6 @@ export type Mutation_RootUpdate_WorkspacesArgs = { /** mutation root */ export type Mutation_RootUpdate_Workspaces_By_PkArgs = { - _inc?: InputMaybe; _set?: InputMaybe; pk_columns: Workspaces_Pk_Columns_Input; }; @@ -2787,17 +2723,18 @@ export type People = { city?: Maybe; /** An object relationship */ company?: Maybe; - company_id?: Maybe; + company_id?: Maybe; created_at: Scalars['timestamptz']; + deleted_at?: Maybe; email?: Maybe; firstname?: Maybe; - id: Scalars['Int']; - lastname: Scalars['String']; + id: Scalars['uuid']; + lastname?: Maybe; phone?: Maybe; updated_at: Scalars['timestamptz']; /** An object relationship */ workspace: Workspaces; - workspace_id: Scalars['Int']; + workspace_id: Scalars['uuid']; }; /** aggregated selection of "people" */ @@ -2810,17 +2747,9 @@ export type People_Aggregate = { /** aggregate fields of "people" */ export type People_Aggregate_Fields = { __typename?: 'people_aggregate_fields'; - avg?: Maybe; count: Scalars['Int']; max?: Maybe; min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; }; @@ -2830,14 +2759,6 @@ export type People_Aggregate_FieldsCountArgs = { distinct?: InputMaybe; }; -/** aggregate avg on columns */ -export type People_Avg_Fields = { - __typename?: 'people_avg_fields'; - company_id?: Maybe; - id?: Maybe; - workspace_id?: Maybe; -}; - /** Boolean expression to filter rows from the table "people". All fields are combined with a logical 'AND'. */ export type People_Bool_Exp = { _and?: InputMaybe>; @@ -2845,75 +2766,72 @@ export type People_Bool_Exp = { _or?: InputMaybe>; city?: InputMaybe; company?: InputMaybe; - company_id?: InputMaybe; + company_id?: InputMaybe; created_at?: InputMaybe; + deleted_at?: InputMaybe; email?: InputMaybe; firstname?: InputMaybe; - id?: InputMaybe; + id?: InputMaybe; lastname?: InputMaybe; phone?: InputMaybe; updated_at?: InputMaybe; workspace?: InputMaybe; - workspace_id?: InputMaybe; + workspace_id?: InputMaybe; }; /** unique or primary key constraints on table "people" */ export enum People_Constraint { /** unique or primary key constraint on columns "id" */ - PersonPkey = 'person_pkey' + PeoplePkey = 'people_pkey' } -/** input type for incrementing numeric columns in table "people" */ -export type People_Inc_Input = { - company_id?: InputMaybe; - id?: InputMaybe; - workspace_id?: InputMaybe; -}; - /** input type for inserting data into table "people" */ export type People_Insert_Input = { city?: InputMaybe; company?: InputMaybe; - company_id?: InputMaybe; + company_id?: InputMaybe; created_at?: InputMaybe; + deleted_at?: InputMaybe; email?: InputMaybe; firstname?: InputMaybe; - id?: InputMaybe; + id?: InputMaybe; lastname?: InputMaybe; phone?: InputMaybe; updated_at?: InputMaybe; workspace?: InputMaybe; - workspace_id?: InputMaybe; + workspace_id?: InputMaybe; }; /** aggregate max on columns */ export type People_Max_Fields = { __typename?: 'people_max_fields'; city?: Maybe; - company_id?: Maybe; + company_id?: Maybe; created_at?: Maybe; + deleted_at?: Maybe; email?: Maybe; firstname?: Maybe; - id?: Maybe; + id?: Maybe; lastname?: Maybe; phone?: Maybe; updated_at?: Maybe; - workspace_id?: Maybe; + workspace_id?: Maybe; }; /** aggregate min on columns */ export type People_Min_Fields = { __typename?: 'people_min_fields'; city?: Maybe; - company_id?: Maybe; + company_id?: Maybe; created_at?: Maybe; + deleted_at?: Maybe; email?: Maybe; firstname?: Maybe; - id?: Maybe; + id?: Maybe; lastname?: Maybe; phone?: Maybe; updated_at?: Maybe; - workspace_id?: Maybe; + workspace_id?: Maybe; }; /** response of any mutation on the table "people" */ @@ -2938,6 +2856,7 @@ export type People_Order_By = { company?: InputMaybe; company_id?: InputMaybe; created_at?: InputMaybe; + deleted_at?: InputMaybe; email?: InputMaybe; firstname?: InputMaybe; id?: InputMaybe; @@ -2950,7 +2869,7 @@ export type People_Order_By = { /** primary key columns input for table: people */ export type People_Pk_Columns_Input = { - id: Scalars['Int']; + id: Scalars['uuid']; }; /** select columns of table "people" */ @@ -2962,6 +2881,8 @@ export enum People_Select_Column { /** column name */ CreatedAt = 'created_at', /** column name */ + DeletedAt = 'deleted_at', + /** column name */ Email = 'email', /** column name */ Firstname = 'firstname', @@ -2980,39 +2901,16 @@ export enum People_Select_Column { /** input type for updating data in table "people" */ export type People_Set_Input = { city?: InputMaybe; - company_id?: InputMaybe; + company_id?: InputMaybe; created_at?: InputMaybe; + deleted_at?: InputMaybe; email?: InputMaybe; firstname?: InputMaybe; - id?: InputMaybe; + id?: InputMaybe; lastname?: InputMaybe; phone?: InputMaybe; updated_at?: InputMaybe; - workspace_id?: InputMaybe; -}; - -/** aggregate stddev on columns */ -export type People_Stddev_Fields = { - __typename?: 'people_stddev_fields'; - company_id?: Maybe; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type People_Stddev_Pop_Fields = { - __typename?: 'people_stddev_pop_fields'; - company_id?: Maybe; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type People_Stddev_Samp_Fields = { - __typename?: 'people_stddev_samp_fields'; - company_id?: Maybe; - id?: Maybe; - workspace_id?: Maybe; + workspace_id?: InputMaybe; }; /** Streaming cursor of the table "people" */ @@ -3026,23 +2924,16 @@ export type People_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type People_Stream_Cursor_Value_Input = { city?: InputMaybe; - company_id?: InputMaybe; + company_id?: InputMaybe; created_at?: InputMaybe; + deleted_at?: InputMaybe; email?: InputMaybe; firstname?: InputMaybe; - id?: InputMaybe; + id?: InputMaybe; lastname?: InputMaybe; phone?: InputMaybe; updated_at?: InputMaybe; - workspace_id?: InputMaybe; -}; - -/** aggregate sum on columns */ -export type People_Sum_Fields = { - __typename?: 'people_sum_fields'; - company_id?: Maybe; - id?: Maybe; - workspace_id?: Maybe; + workspace_id?: InputMaybe; }; /** update columns of table "people" */ @@ -3054,6 +2945,8 @@ export enum People_Update_Column { /** column name */ CreatedAt = 'created_at', /** column name */ + DeletedAt = 'deleted_at', + /** column name */ Email = 'email', /** column name */ Firstname = 'firstname', @@ -3070,38 +2963,12 @@ export enum People_Update_Column { } export type People_Updates = { - /** increments the numeric columns with given value of the filtered values */ - _inc?: InputMaybe; /** sets the columns of the filtered rows to the given values */ _set?: InputMaybe; /** filter the rows which have to be updated */ where: People_Bool_Exp; }; -/** aggregate var_pop on columns */ -export type People_Var_Pop_Fields = { - __typename?: 'people_var_pop_fields'; - company_id?: Maybe; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type People_Var_Samp_Fields = { - __typename?: 'people_var_samp_fields'; - company_id?: Maybe; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** aggregate variance on columns */ -export type People_Variance_Fields = { - __typename?: 'people_variance_fields'; - company_id?: Maybe; - id?: Maybe; - workspace_id?: Maybe; -}; - export type Query_Root = { __typename?: 'query_root'; /** fetch data from the table: "auth.providers" using primary key columns */ @@ -3359,7 +3226,7 @@ export type Query_RootCompanies_AggregateArgs = { export type Query_RootCompanies_By_PkArgs = { - id: Scalars['Int']; + id: Scalars['uuid']; }; @@ -3382,7 +3249,7 @@ export type Query_RootPeople_AggregateArgs = { export type Query_RootPeople_By_PkArgs = { - id: Scalars['Int']; + id: Scalars['uuid']; }; @@ -3428,7 +3295,7 @@ export type Query_RootWorkspace_Members_AggregateArgs = { export type Query_RootWorkspace_Members_By_PkArgs = { - id: Scalars['Int']; + id: Scalars['uuid']; }; @@ -3451,7 +3318,7 @@ export type Query_RootWorkspaces_AggregateArgs = { export type Query_RootWorkspaces_By_PkArgs = { - id: Scalars['Int']; + id: Scalars['uuid']; }; export type Subscription_Root = { @@ -3784,7 +3651,7 @@ export type Subscription_RootCompanies_AggregateArgs = { export type Subscription_RootCompanies_By_PkArgs = { - id: Scalars['Int']; + id: Scalars['uuid']; }; @@ -3814,7 +3681,7 @@ export type Subscription_RootPeople_AggregateArgs = { export type Subscription_RootPeople_By_PkArgs = { - id: Scalars['Int']; + id: Scalars['uuid']; }; @@ -3874,7 +3741,7 @@ export type Subscription_RootWorkspace_Members_AggregateArgs = { export type Subscription_RootWorkspace_Members_By_PkArgs = { - id: Scalars['Int']; + id: Scalars['uuid']; }; @@ -3904,7 +3771,7 @@ export type Subscription_RootWorkspaces_AggregateArgs = { export type Subscription_RootWorkspaces_By_PkArgs = { - id: Scalars['Int']; + id: Scalars['uuid']; }; @@ -3914,19 +3781,6 @@ export type Subscription_RootWorkspaces_StreamArgs = { where?: InputMaybe; }; -/** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */ -export type Timestamp_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - /** Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'. */ export type Timestamptz_Comparison_Exp = { _eq?: InputMaybe; @@ -3986,10 +3840,8 @@ export type Users = { userProviders: Array; /** An aggregate relationship */ userProviders_aggregate: AuthUserProviders_Aggregate; - /** An array relationship */ - workspace_member: Array; - /** An aggregate relationship */ - workspace_member_aggregate: Workspace_Members_Aggregate; + /** An object relationship */ + workspaceMember?: Maybe; }; @@ -4078,26 +3930,6 @@ export type UsersUserProviders_AggregateArgs = { where?: InputMaybe; }; - -/** User account information. Don't modify its structure as Hasura Auth relies on it to function properly. */ -export type UsersWorkspace_MemberArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - - -/** User account information. Don't modify its structure as Hasura Auth relies on it to function properly. */ -export type UsersWorkspace_Member_AggregateArgs = { - distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; - order_by?: InputMaybe>; - where?: InputMaybe; -}; - /** aggregated selection of "auth.users" */ export type Users_Aggregate = { __typename?: 'users_aggregate'; @@ -4205,8 +4037,7 @@ export type Users_Bool_Exp = { updatedAt?: InputMaybe; userProviders?: InputMaybe; userProviders_aggregate?: InputMaybe; - workspace_member?: InputMaybe; - workspace_member_aggregate?: InputMaybe; + workspaceMember?: InputMaybe; }; /** unique or primary key constraints on table "auth.users" */ @@ -4266,7 +4097,7 @@ export type Users_Insert_Input = { totpSecret?: InputMaybe; updatedAt?: InputMaybe; userProviders?: InputMaybe; - workspace_member?: InputMaybe; + workspaceMember?: InputMaybe; }; /** aggregate max on columns */ @@ -4422,7 +4253,7 @@ export type Users_Order_By = { totpSecret?: InputMaybe; updatedAt?: InputMaybe; userProviders_aggregate?: InputMaybe; - workspace_member_aggregate?: InputMaybe; + workspaceMember?: InputMaybe; }; /** primary key columns input for table: auth.users */ @@ -4668,10 +4499,12 @@ export type Workspace_Members = { __typename?: 'workspace_members'; created_at: Scalars['timestamptz']; deleted_at?: Maybe; - id: Scalars['Int']; + id: Scalars['uuid']; updated_at: Scalars['timestamptz']; user_id: Scalars['uuid']; - workspace_id: Scalars['Int']; + /** An object relationship */ + workspace: Workspaces; + workspace_id: Scalars['uuid']; }; /** aggregated selection of "workspace_members" */ @@ -4681,31 +4514,12 @@ export type Workspace_Members_Aggregate = { nodes: Array; }; -export type Workspace_Members_Aggregate_Bool_Exp = { - count?: InputMaybe; -}; - -export type Workspace_Members_Aggregate_Bool_Exp_Count = { - arguments?: InputMaybe>; - distinct?: InputMaybe; - filter?: InputMaybe; - predicate: Int_Comparison_Exp; -}; - /** aggregate fields of "workspace_members" */ export type Workspace_Members_Aggregate_Fields = { __typename?: 'workspace_members_aggregate_fields'; - avg?: Maybe; count: Scalars['Int']; max?: Maybe; min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; }; @@ -4715,41 +4529,6 @@ export type Workspace_Members_Aggregate_FieldsCountArgs = { distinct?: InputMaybe; }; -/** order by aggregate values of table "workspace_members" */ -export type Workspace_Members_Aggregate_Order_By = { - avg?: InputMaybe; - count?: InputMaybe; - max?: InputMaybe; - min?: InputMaybe; - stddev?: InputMaybe; - stddev_pop?: InputMaybe; - stddev_samp?: InputMaybe; - sum?: InputMaybe; - var_pop?: InputMaybe; - var_samp?: InputMaybe; - variance?: InputMaybe; -}; - -/** input type for inserting array relation for remote table "workspace_members" */ -export type Workspace_Members_Arr_Rel_Insert_Input = { - data: Array; - /** upsert condition */ - on_conflict?: InputMaybe; -}; - -/** aggregate avg on columns */ -export type Workspace_Members_Avg_Fields = { - __typename?: 'workspace_members_avg_fields'; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** order by avg() on columns of table "workspace_members" */ -export type Workspace_Members_Avg_Order_By = { - id?: InputMaybe; - workspace_id?: InputMaybe; -}; - /** Boolean expression to filter rows from the table "workspace_members". All fields are combined with a logical 'AND'. */ export type Workspace_Members_Bool_Exp = { _and?: InputMaybe>; @@ -4757,34 +4536,28 @@ export type Workspace_Members_Bool_Exp = { _or?: InputMaybe>; created_at?: InputMaybe; deleted_at?: InputMaybe; - id?: InputMaybe; + id?: InputMaybe; updated_at?: InputMaybe; user_id?: InputMaybe; - workspace_id?: InputMaybe; + workspace?: InputMaybe; + workspace_id?: InputMaybe; }; /** unique or primary key constraints on table "workspace_members" */ export enum Workspace_Members_Constraint { /** unique or primary key constraint on columns "id" */ - WorkspaceMembersPkey = 'workspace_members_pkey', - /** unique or primary key constraint on columns "user_id" */ - WorkspaceMembersUserIdKey = 'workspace_members_user_id_key' + WorkspaceMembersPkey = 'workspace_members_pkey' } -/** input type for incrementing numeric columns in table "workspace_members" */ -export type Workspace_Members_Inc_Input = { - id?: InputMaybe; - workspace_id?: InputMaybe; -}; - /** input type for inserting data into table "workspace_members" */ export type Workspace_Members_Insert_Input = { created_at?: InputMaybe; deleted_at?: InputMaybe; - id?: InputMaybe; + id?: InputMaybe; updated_at?: InputMaybe; user_id?: InputMaybe; - workspace_id?: InputMaybe; + workspace?: InputMaybe; + workspace_id?: InputMaybe; }; /** aggregate max on columns */ @@ -4792,20 +4565,10 @@ export type Workspace_Members_Max_Fields = { __typename?: 'workspace_members_max_fields'; created_at?: Maybe; deleted_at?: Maybe; - id?: Maybe; + id?: Maybe; updated_at?: Maybe; user_id?: Maybe; - workspace_id?: Maybe; -}; - -/** order by max() on columns of table "workspace_members" */ -export type Workspace_Members_Max_Order_By = { - created_at?: InputMaybe; - deleted_at?: InputMaybe; - id?: InputMaybe; - updated_at?: InputMaybe; - user_id?: InputMaybe; - workspace_id?: InputMaybe; + workspace_id?: Maybe; }; /** aggregate min on columns */ @@ -4813,20 +4576,10 @@ export type Workspace_Members_Min_Fields = { __typename?: 'workspace_members_min_fields'; created_at?: Maybe; deleted_at?: Maybe; - id?: Maybe; + id?: Maybe; updated_at?: Maybe; user_id?: Maybe; - workspace_id?: Maybe; -}; - -/** order by min() on columns of table "workspace_members" */ -export type Workspace_Members_Min_Order_By = { - created_at?: InputMaybe; - deleted_at?: InputMaybe; - id?: InputMaybe; - updated_at?: InputMaybe; - user_id?: InputMaybe; - workspace_id?: InputMaybe; + workspace_id?: Maybe; }; /** response of any mutation on the table "workspace_members" */ @@ -4838,6 +4591,13 @@ export type Workspace_Members_Mutation_Response = { returning: Array; }; +/** input type for inserting object relation for remote table "workspace_members" */ +export type Workspace_Members_Obj_Rel_Insert_Input = { + data: Workspace_Members_Insert_Input; + /** upsert condition */ + on_conflict?: InputMaybe; +}; + /** on_conflict condition type for table "workspace_members" */ export type Workspace_Members_On_Conflict = { constraint: Workspace_Members_Constraint; @@ -4852,12 +4612,13 @@ export type Workspace_Members_Order_By = { id?: InputMaybe; updated_at?: InputMaybe; user_id?: InputMaybe; + workspace?: InputMaybe; workspace_id?: InputMaybe; }; /** primary key columns input for table: workspace_members */ export type Workspace_Members_Pk_Columns_Input = { - id: Scalars['Int']; + id: Scalars['uuid']; }; /** select columns of table "workspace_members" */ @@ -4880,49 +4641,10 @@ export enum Workspace_Members_Select_Column { export type Workspace_Members_Set_Input = { created_at?: InputMaybe; deleted_at?: InputMaybe; - id?: InputMaybe; + id?: InputMaybe; updated_at?: InputMaybe; user_id?: InputMaybe; - workspace_id?: InputMaybe; -}; - -/** aggregate stddev on columns */ -export type Workspace_Members_Stddev_Fields = { - __typename?: 'workspace_members_stddev_fields'; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** order by stddev() on columns of table "workspace_members" */ -export type Workspace_Members_Stddev_Order_By = { - id?: InputMaybe; - workspace_id?: InputMaybe; -}; - -/** aggregate stddev_pop on columns */ -export type Workspace_Members_Stddev_Pop_Fields = { - __typename?: 'workspace_members_stddev_pop_fields'; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** order by stddev_pop() on columns of table "workspace_members" */ -export type Workspace_Members_Stddev_Pop_Order_By = { - id?: InputMaybe; - workspace_id?: InputMaybe; -}; - -/** aggregate stddev_samp on columns */ -export type Workspace_Members_Stddev_Samp_Fields = { - __typename?: 'workspace_members_stddev_samp_fields'; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** order by stddev_samp() on columns of table "workspace_members" */ -export type Workspace_Members_Stddev_Samp_Order_By = { - id?: InputMaybe; - workspace_id?: InputMaybe; + workspace_id?: InputMaybe; }; /** Streaming cursor of the table "workspace_members" */ @@ -4937,23 +4659,10 @@ export type Workspace_Members_Stream_Cursor_Input = { export type Workspace_Members_Stream_Cursor_Value_Input = { created_at?: InputMaybe; deleted_at?: InputMaybe; - id?: InputMaybe; + id?: InputMaybe; updated_at?: InputMaybe; user_id?: InputMaybe; - workspace_id?: InputMaybe; -}; - -/** aggregate sum on columns */ -export type Workspace_Members_Sum_Fields = { - __typename?: 'workspace_members_sum_fields'; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** order by sum() on columns of table "workspace_members" */ -export type Workspace_Members_Sum_Order_By = { - id?: InputMaybe; - workspace_id?: InputMaybe; + workspace_id?: InputMaybe; }; /** update columns of table "workspace_members" */ @@ -4973,61 +4682,20 @@ export enum Workspace_Members_Update_Column { } export type Workspace_Members_Updates = { - /** increments the numeric columns with given value of the filtered values */ - _inc?: InputMaybe; /** sets the columns of the filtered rows to the given values */ _set?: InputMaybe; /** filter the rows which have to be updated */ where: Workspace_Members_Bool_Exp; }; -/** aggregate var_pop on columns */ -export type Workspace_Members_Var_Pop_Fields = { - __typename?: 'workspace_members_var_pop_fields'; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** order by var_pop() on columns of table "workspace_members" */ -export type Workspace_Members_Var_Pop_Order_By = { - id?: InputMaybe; - workspace_id?: InputMaybe; -}; - -/** aggregate var_samp on columns */ -export type Workspace_Members_Var_Samp_Fields = { - __typename?: 'workspace_members_var_samp_fields'; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** order by var_samp() on columns of table "workspace_members" */ -export type Workspace_Members_Var_Samp_Order_By = { - id?: InputMaybe; - workspace_id?: InputMaybe; -}; - -/** aggregate variance on columns */ -export type Workspace_Members_Variance_Fields = { - __typename?: 'workspace_members_variance_fields'; - id?: Maybe; - workspace_id?: Maybe; -}; - -/** order by variance() on columns of table "workspace_members" */ -export type Workspace_Members_Variance_Order_By = { - id?: InputMaybe; - workspace_id?: InputMaybe; -}; - /** columns and relationships of "workspaces" */ export type Workspaces = { __typename?: 'workspaces'; created_at: Scalars['timestamptz']; - deleted_at?: Maybe; + deleted_at?: Maybe; display_name: Scalars['String']; domain_name: Scalars['String']; - id: Scalars['Int']; + id: Scalars['uuid']; updated_at: Scalars['timestamptz']; }; @@ -5041,17 +4709,9 @@ export type Workspaces_Aggregate = { /** aggregate fields of "workspaces" */ export type Workspaces_Aggregate_Fields = { __typename?: 'workspaces_aggregate_fields'; - avg?: Maybe; count: Scalars['Int']; max?: Maybe; min?: Maybe; - stddev?: Maybe; - stddev_pop?: Maybe; - stddev_samp?: Maybe; - sum?: Maybe; - var_pop?: Maybe; - var_samp?: Maybe; - variance?: Maybe; }; @@ -5061,45 +4721,34 @@ export type Workspaces_Aggregate_FieldsCountArgs = { distinct?: InputMaybe; }; -/** aggregate avg on columns */ -export type Workspaces_Avg_Fields = { - __typename?: 'workspaces_avg_fields'; - id?: Maybe; -}; - /** Boolean expression to filter rows from the table "workspaces". All fields are combined with a logical 'AND'. */ export type Workspaces_Bool_Exp = { _and?: InputMaybe>; _not?: InputMaybe; _or?: InputMaybe>; created_at?: InputMaybe; - deleted_at?: InputMaybe; + deleted_at?: InputMaybe; display_name?: InputMaybe; domain_name?: InputMaybe; - id?: InputMaybe; + id?: InputMaybe; updated_at?: InputMaybe; }; /** unique or primary key constraints on table "workspaces" */ export enum Workspaces_Constraint { /** unique or primary key constraint on columns "domain_name" */ - WorkspacesNameKey = 'workspaces_name_key', + WorkspacesDomainNameKey = 'workspaces_domain_name_key', /** unique or primary key constraint on columns "id" */ WorkspacesPkey = 'workspaces_pkey' } -/** input type for incrementing numeric columns in table "workspaces" */ -export type Workspaces_Inc_Input = { - id?: InputMaybe; -}; - /** input type for inserting data into table "workspaces" */ export type Workspaces_Insert_Input = { created_at?: InputMaybe; - deleted_at?: InputMaybe; + deleted_at?: InputMaybe; display_name?: InputMaybe; domain_name?: InputMaybe; - id?: InputMaybe; + id?: InputMaybe; updated_at?: InputMaybe; }; @@ -5107,10 +4756,10 @@ export type Workspaces_Insert_Input = { export type Workspaces_Max_Fields = { __typename?: 'workspaces_max_fields'; created_at?: Maybe; - deleted_at?: Maybe; + deleted_at?: Maybe; display_name?: Maybe; domain_name?: Maybe; - id?: Maybe; + id?: Maybe; updated_at?: Maybe; }; @@ -5118,10 +4767,10 @@ export type Workspaces_Max_Fields = { export type Workspaces_Min_Fields = { __typename?: 'workspaces_min_fields'; created_at?: Maybe; - deleted_at?: Maybe; + deleted_at?: Maybe; display_name?: Maybe; domain_name?: Maybe; - id?: Maybe; + id?: Maybe; updated_at?: Maybe; }; @@ -5160,7 +4809,7 @@ export type Workspaces_Order_By = { /** primary key columns input for table: workspaces */ export type Workspaces_Pk_Columns_Input = { - id: Scalars['Int']; + id: Scalars['uuid']; }; /** select columns of table "workspaces" */ @@ -5182,31 +4831,13 @@ export enum Workspaces_Select_Column { /** input type for updating data in table "workspaces" */ export type Workspaces_Set_Input = { created_at?: InputMaybe; - deleted_at?: InputMaybe; + deleted_at?: InputMaybe; display_name?: InputMaybe; domain_name?: InputMaybe; - id?: InputMaybe; + id?: InputMaybe; updated_at?: InputMaybe; }; -/** aggregate stddev on columns */ -export type Workspaces_Stddev_Fields = { - __typename?: 'workspaces_stddev_fields'; - id?: Maybe; -}; - -/** aggregate stddev_pop on columns */ -export type Workspaces_Stddev_Pop_Fields = { - __typename?: 'workspaces_stddev_pop_fields'; - id?: Maybe; -}; - -/** aggregate stddev_samp on columns */ -export type Workspaces_Stddev_Samp_Fields = { - __typename?: 'workspaces_stddev_samp_fields'; - id?: Maybe; -}; - /** Streaming cursor of the table "workspaces" */ export type Workspaces_Stream_Cursor_Input = { /** Stream column input with initial value */ @@ -5218,19 +4849,13 @@ export type Workspaces_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Workspaces_Stream_Cursor_Value_Input = { created_at?: InputMaybe; - deleted_at?: InputMaybe; + deleted_at?: InputMaybe; display_name?: InputMaybe; domain_name?: InputMaybe; - id?: InputMaybe; + id?: InputMaybe; updated_at?: InputMaybe; }; -/** aggregate sum on columns */ -export type Workspaces_Sum_Fields = { - __typename?: 'workspaces_sum_fields'; - id?: Maybe; -}; - /** update columns of table "workspaces" */ export enum Workspaces_Update_Column { /** column name */ @@ -5248,51 +4873,31 @@ export enum Workspaces_Update_Column { } export type Workspaces_Updates = { - /** increments the numeric columns with given value of the filtered values */ - _inc?: InputMaybe; /** sets the columns of the filtered rows to the given values */ _set?: InputMaybe; /** filter the rows which have to be updated */ where: Workspaces_Bool_Exp; }; -/** aggregate var_pop on columns */ -export type Workspaces_Var_Pop_Fields = { - __typename?: 'workspaces_var_pop_fields'; - id?: Maybe; -}; - -/** aggregate var_samp on columns */ -export type Workspaces_Var_Samp_Fields = { - __typename?: 'workspaces_var_samp_fields'; - id?: Maybe; -}; - -/** aggregate variance on columns */ -export type Workspaces_Variance_Fields = { - __typename?: 'workspaces_variance_fields'; - id?: Maybe; -}; - export type GetPeopleQueryVariables = Exact<{ orderBy?: InputMaybe | People_Order_By>; }>; -export type GetPeopleQuery = { __typename?: 'query_root', people: Array<{ __typename?: 'people', id: number, phone?: string | null, email?: string | null, city?: string | null, firstname?: string | null, lastname: string, created_at: any, company?: { __typename?: 'companies', id: number, company_name: string, company_domain: string } | null }> }; +export type GetPeopleQuery = { __typename?: 'query_root', people: Array<{ __typename?: 'people', id: any, phone?: string | null, email?: string | null, city?: string | null, firstname?: string | null, lastname?: string | null, created_at: any, company?: { __typename?: 'companies', id: any, name?: string | null, domain_name?: string | null } | null }> }; export type UpdatePeopleMutationVariables = Exact<{ - id?: InputMaybe; + id?: InputMaybe; firstname?: InputMaybe; lastname?: InputMaybe; phone?: InputMaybe; city?: InputMaybe; - company_id?: InputMaybe; + company_id?: InputMaybe; email?: InputMaybe; }>; -export type UpdatePeopleMutation = { __typename?: 'mutation_root', update_people?: { __typename?: 'people_mutation_response', returning: Array<{ __typename?: 'people', city?: string | null, email?: string | null, firstname?: string | null, id: number, lastname: string, phone?: string | null, company?: { __typename?: 'companies', company_domain: string, company_name: string, id: number } | null }> } | null }; +export type UpdatePeopleMutation = { __typename?: 'mutation_root', update_people?: { __typename?: 'people_mutation_response', returning: Array<{ __typename?: 'people', city?: string | null, email?: string | null, firstname?: string | null, id: any, lastname?: string | null, phone?: string | null, company?: { __typename?: 'companies', domain_name?: string | null, name?: string | null, id: any } | null }> } | null }; export const GetPeopleDocument = gql` @@ -5307,8 +4912,8 @@ export const GetPeopleDocument = gql` created_at company { id - company_name - company_domain + name + domain_name } } } @@ -5342,7 +4947,7 @@ export type GetPeopleQueryHookResult = ReturnType; export type GetPeopleLazyQueryHookResult = ReturnType; export type GetPeopleQueryResult = Apollo.QueryResult; export const UpdatePeopleDocument = gql` - mutation UpdatePeople($id: Int, $firstname: String, $lastname: String, $phone: String, $city: String, $company_id: Int, $email: String) { + mutation UpdatePeople($id: uuid, $firstname: String, $lastname: String, $phone: String, $city: String, $company_id: uuid, $email: String) { update_people( where: {id: {_eq: $id}} _set: {city: $city, company_id: $company_id, email: $email, firstname: $firstname, id: $id, lastname: $lastname, phone: $phone} @@ -5350,8 +4955,8 @@ export const UpdatePeopleDocument = gql` returning { city company { - company_domain - company_name + domain_name + name id } email diff --git a/front/src/interfaces/company.interface.ts b/front/src/interfaces/company.interface.ts index c5eba718f1..a9fb838035 100644 --- a/front/src/interfaces/company.interface.ts +++ b/front/src/interfaces/company.interface.ts @@ -1,5 +1,5 @@ export interface Company { - id: number; + id: string; name: string; - domain: string; + domain_name: string; } diff --git a/front/src/interfaces/person.interface.test.ts b/front/src/interfaces/person.interface.test.ts index 1f828b1060..aa16a90ef3 100644 --- a/front/src/interfaces/person.interface.test.ts +++ b/front/src/interfaces/person.interface.test.ts @@ -3,7 +3,7 @@ import { mapGqlPerson, mapPerson } from './person.interface'; describe('mapPerson', () => { it('should map person', () => { const person = mapPerson({ - id: 1, + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b', firstname: 'John', lastname: 'Doe', email: '', @@ -12,9 +12,9 @@ describe('mapPerson', () => { created_at: '', company: { __typename: '', - id: 1, - company_name: '', - company_domain: '', + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b', + name: '', + domain_name: '', }, __typename: '', }); @@ -23,19 +23,19 @@ describe('mapPerson', () => { it('should map person back', () => { const person = mapGqlPerson({ - id: 1, + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b', fullName: 'John Doe', email: '', phone: '', city: '', company: { - id: 1, + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b', name: '', - domain: '', + domain_name: '', }, creationDate: new Date(), pipe: { - id: 3, + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6c', name: '', icon: '', }, diff --git a/front/src/interfaces/person.interface.ts b/front/src/interfaces/person.interface.ts index f88f9bea48..f688b089c7 100644 --- a/front/src/interfaces/person.interface.ts +++ b/front/src/interfaces/person.interface.ts @@ -2,7 +2,7 @@ import { Company } from './company.interface'; import { Pipe } from './pipe.interface'; export type Person = { - id: number; + id: string; fullName: string; picture?: string; email: string; @@ -18,14 +18,14 @@ export type GraphqlQueryPerson = { city: string; company: { __typename: string; - id: number; - company_name: string; - company_domain: string; + id: string; + name: string; + domain_name: string; }; created_at: string; email: string; firstname: string; - id: number; + id: string; lastname: string; phone: string; __typename: string; @@ -33,11 +33,11 @@ export type GraphqlQueryPerson = { export type GraphqlMutationPerson = { city: string; - company_id?: number; + company_id?: string; created_at: string; email: string; firstname: string; - id: number; + id: string; lastname: string; phone: string; __typename: string; @@ -46,12 +46,16 @@ export type GraphqlMutationPerson = { export const mapPerson = (person: GraphqlQueryPerson): Person => ({ fullName: `${person.firstname} ${person.lastname}`, creationDate: new Date(person.created_at), - pipe: { name: 'coucou', id: 1, icon: '💰' }, + pipe: { + name: 'coucou', + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b', + icon: '💰', + }, ...person, company: { id: person.company.id, - name: person.company.company_name, - domain: person.company.company_domain, + name: person.company.name, + domain_name: person.company.domain_name, }, countryCode: 'FR', }); diff --git a/front/src/interfaces/pipe.interface.ts b/front/src/interfaces/pipe.interface.ts index d80b58017d..fa05c39535 100644 --- a/front/src/interfaces/pipe.interface.ts +++ b/front/src/interfaces/pipe.interface.ts @@ -1,5 +1,5 @@ export interface Pipe { - id: number; + id: string; name: string; icon: string; } diff --git a/front/src/interfaces/user.interface.ts b/front/src/interfaces/user.interface.ts index 5b7f76e0d8..5667a2a242 100644 --- a/front/src/interfaces/user.interface.ts +++ b/front/src/interfaces/user.interface.ts @@ -1,5 +1,5 @@ export interface User { - id: number; + id: string; email: string; first_name: string; last_name: string; diff --git a/front/src/interfaces/workspace.interface.ts b/front/src/interfaces/workspace.interface.ts index 4460a95888..6eeca23a2a 100644 --- a/front/src/interfaces/workspace.interface.ts +++ b/front/src/interfaces/workspace.interface.ts @@ -1,5 +1,5 @@ export interface Workspace { - id: number; + id: string; name: string; logo: string; } diff --git a/front/src/layout/navbar/__stories__/Navbar.stories.tsx b/front/src/layout/navbar/__stories__/Navbar.stories.tsx index 2f3f16c277..c9ff2d25e7 100644 --- a/front/src/layout/navbar/__stories__/Navbar.stories.tsx +++ b/front/src/layout/navbar/__stories__/Navbar.stories.tsx @@ -17,13 +17,13 @@ export const NavbarOnCompanies = () => { = [ { - id: 1, + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b', __typename: 'Person', firstname: 'Alexandre', lastname: 'Prot', email: 'alexandre@qonto.com', company: { - id: 1, - company_name: 'Qonto', - company_domain: 'qonto.com', + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6c', + name: 'Qonto', + domain_name: 'qonto.com', __typename: 'Company', }, phone: '06 12 34 56 78', @@ -19,15 +19,15 @@ export const defaultData: Array = [ city: 'Paris', }, { - id: 2, + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6d', __typename: 'Person', firstname: 'Alexandre', lastname: 'Prot', email: 'alexandre@qonto.com', company: { - id: 1, - company_name: 'LinkedIn', - company_domain: 'linkedin.com', + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6e', + name: 'LinkedIn', + domain_name: 'linkedin.com', __typename: 'Company', }, phone: '06 12 34 56 78', @@ -36,15 +36,15 @@ export const defaultData: Array = [ city: 'Paris', }, { - id: 3, + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6f', __typename: 'Person', firstname: 'Alexandre', lastname: 'Prot', email: 'alexandre@qonto.com', company: { - id: 1, - company_name: 'Sequoia', - company_domain: 'sequoiacap.com', + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6g', + name: 'Sequoia', + domain_name: 'sequoiacap.com', __typename: 'Company', }, phone: '06 12 34 56 78', @@ -54,15 +54,15 @@ export const defaultData: Array = [ }, { - id: 4, + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6h', __typename: 'Person', firstname: 'Alexandre', lastname: 'Prot', email: 'alexandre@qonto.com', company: { - id: 1, - company_name: 'Facebook', - company_domain: 'facebook.com', + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6i', + name: 'Facebook', + domain_name: 'facebook.com', __typename: 'Company', }, phone: '06 12 34 56 78', diff --git a/front/src/pages/people/people-table.tsx b/front/src/pages/people/people-table.tsx index 985b1dc2dc..026246a849 100644 --- a/front/src/pages/people/people-table.tsx +++ b/front/src/pages/people/people-table.tsx @@ -112,7 +112,7 @@ export const peopleColumns = [ ), diff --git a/front/src/services/people/__tests__/update.test.ts b/front/src/services/people/__tests__/update.test.ts index 2692ba1c3a..95a57a08df 100644 --- a/front/src/services/people/__tests__/update.test.ts +++ b/front/src/services/people/__tests__/update.test.ts @@ -24,16 +24,16 @@ jest.mock('../../../apollo', () => { it('updates a person', async () => { const result = await updatePerson({ fullName: 'John Doe', - id: 1, + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6c', email: 'john@example.com', company: { - id: 2, + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b', name: 'ACME', - domain: 'example.com', + domain_name: 'example.com', }, phone: '+1 (555) 123-4567', pipe: { - id: 3, + id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6d', name: 'Customer', icon: '!', }, diff --git a/front/src/services/people/select.ts b/front/src/services/people/select.ts index b06c55f464..06866ce086 100644 --- a/front/src/services/people/select.ts +++ b/front/src/services/people/select.ts @@ -21,7 +21,7 @@ export const reduceSortsToOrderBy = ( acc['firstname'] = order; acc['lastname'] = order; } else if (id === 'company_name') { - acc['company'] = { company_name: order }; + acc['company'] = { name: order }; } else { acc[id] = order; } @@ -42,8 +42,8 @@ export const GET_PEOPLE = gql` created_at company { id - company_name - company_domain + name + domain_name } } } diff --git a/front/src/services/people/update.ts b/front/src/services/people/update.ts index 1b295afa79..3154920aee 100644 --- a/front/src/services/people/update.ts +++ b/front/src/services/people/update.ts @@ -4,12 +4,12 @@ import { apiClient } from '../../apollo'; export const UPDATE_PERSON = gql` mutation UpdatePeople( - $id: Int + $id: uuid $firstname: String $lastname: String $phone: String $city: String - $company_id: Int + $company_id: uuid $email: String ) { update_people( @@ -27,8 +27,8 @@ export const UPDATE_PERSON = gql` returning { city company { - company_domain - company_name + domain_name + name id } email diff --git a/hasura/metadata/databases/default/tables/auth_users.yaml b/hasura/metadata/databases/default/tables/auth_users.yaml index 22f6dc5ccd..dcc6723fe1 100644 --- a/hasura/metadata/databases/default/tables/auth_users.yaml +++ b/hasura/metadata/databases/default/tables/auth_users.yaml @@ -91,6 +91,15 @@ object_relationships: - name: defaultRoleByRole using: foreign_key_constraint_on: default_role + - name: workspace_member + using: + manual_configuration: + column_mapping: + id: user_id + insertion_order: null + remote_table: + name: workspace_members + schema: public array_relationships: - name: refreshTokens using: @@ -120,13 +129,6 @@ array_relationships: table: name: user_providers schema: auth - - name: workspace_member - using: - foreign_key_constraint_on: - column: user_id - table: - name: workspace_members - schema: public event_triggers: - name: user-created definition: diff --git a/hasura/metadata/databases/default/tables/public_companies.yaml b/hasura/metadata/databases/default/tables/public_companies.yaml index 20f20c233c..1a7faab885 100644 --- a/hasura/metadata/databases/default/tables/public_companies.yaml +++ b/hasura/metadata/databases/default/tables/public_companies.yaml @@ -1,41 +1,56 @@ table: name: companies schema: public +object_relationships: + - name: workspace + using: + foreign_key_constraint_on: workspace_id insert_permissions: - role: user permission: - check: {} + check: + workspace_id: + _eq: x-hasura-workspace-id columns: - id - workspace_id - - company_domain - - company_name + - name + - domain_name - created_at - updated_at + - deleted_at select_permissions: - role: user permission: columns: + - domain_name + - name + - created_at + - deleted_at + - updated_at - id - workspace_id - - company_domain - - company_name - - created_at - - updated_at - filter: {} + filter: + workspace_id: + _eq: x-hasura-workspace-id update_permissions: - role: user permission: columns: + - domain_name + - name + - created_at + - deleted_at + - updated_at - id - workspace_id - - company_domain - - company_name - - created_at - - updated_at - filter: {} - check: {} + filter: + workspace_id: + _eq: x-hasura-workspace-id + check: null delete_permissions: - role: user permission: - filter: {} + filter: + workspace_id: + _eq: x-hasura-workspace-id diff --git a/hasura/metadata/databases/default/tables/public_people.yaml b/hasura/metadata/databases/default/tables/public_people.yaml index 4871366a39..677793b94c 100644 --- a/hasura/metadata/databases/default/tables/public_people.yaml +++ b/hasura/metadata/databases/default/tables/public_people.yaml @@ -11,50 +11,61 @@ object_relationships: insert_permissions: - role: user permission: - check: {} + check: + workspace_id: + _eq: x-hasura-workspace-id columns: - - company_id - - id - - workspace_id - city - email - firstname - lastname - phone - created_at + - deleted_at - updated_at + - company_id + - id + - workspace_id select_permissions: - role: user permission: columns: - - company_id - - id - - workspace_id - city - email - firstname - lastname - phone - created_at + - deleted_at - updated_at - filter: {} + - company_id + - id + - workspace_id + filter: + workspace_id: + _eq: x-hasura-workspace-id update_permissions: - role: user permission: columns: - - company_id - - id - - workspace_id - city - email - firstname - lastname - phone - created_at + - deleted_at - updated_at - filter: {} - check: {} + - company_id + - id + - workspace_id + filter: + workspace_id: + _eq: x-hasura-workspace-id + check: null delete_permissions: - role: user permission: - filter: {} + filter: + workspace_id: + _eq: x-hasura-workspace-id diff --git a/hasura/metadata/databases/default/tables/public_workspace_members.yaml b/hasura/metadata/databases/default/tables/public_workspace_members.yaml index f035604e35..0929f0583b 100644 --- a/hasura/metadata/databases/default/tables/public_workspace_members.yaml +++ b/hasura/metadata/databases/default/tables/public_workspace_members.yaml @@ -1,3 +1,7 @@ table: name: workspace_members schema: public +object_relationships: + - name: workspace + using: + foreign_key_constraint_on: workspace_id diff --git a/hasura/migrations/default/1682512434146_squashed/down.sql b/hasura/migrations/default/1682512434146_squashed/down.sql new file mode 100644 index 0000000000..49e5950395 --- /dev/null +++ b/hasura/migrations/default/1682512434146_squashed/down.sql @@ -0,0 +1,3 @@ + +-- No down migration + diff --git a/hasura/migrations/default/1682512434146_squashed/up.sql b/hasura/migrations/default/1682512434146_squashed/up.sql new file mode 100644 index 0000000000..2023ad69e2 --- /dev/null +++ b/hasura/migrations/default/1682512434146_squashed/up.sql @@ -0,0 +1,5 @@ + +DROP table "public"."people"; +DROP table "public"."companies"; +DROP table "public"."workspace_members"; +DROP table "public"."workspaces"; diff --git a/hasura/migrations/default/1682512888256_create_table_public_workspaces/down.sql b/hasura/migrations/default/1682512888256_create_table_public_workspaces/down.sql new file mode 100644 index 0000000000..11d8bd7a7d --- /dev/null +++ b/hasura/migrations/default/1682512888256_create_table_public_workspaces/down.sql @@ -0,0 +1 @@ +DROP TABLE "public"."workspaces"; diff --git a/hasura/migrations/default/1682512888256_create_table_public_workspaces/up.sql b/hasura/migrations/default/1682512888256_create_table_public_workspaces/up.sql new file mode 100644 index 0000000000..7fed38be8e --- /dev/null +++ b/hasura/migrations/default/1682512888256_create_table_public_workspaces/up.sql @@ -0,0 +1,34 @@ +CREATE TABLE "public"."workspaces" ("id" uuid NOT NULL, "domain_name" text NOT NULL, "display_name" text NOT NULL, "created_at" timestamptz NOT NULL DEFAULT now(), "updated_at" timestamptz NOT NULL DEFAULT now(), "deleted_at" timestamptz, PRIMARY KEY ("id") , UNIQUE ("domain_name"), UNIQUE ("id")); +CREATE OR REPLACE FUNCTION "public"."set_current_timestamp_updated_at"() +RETURNS TRIGGER AS $$ +DECLARE + _new record; +BEGIN + _new := NEW; + _new."updated_at" = NOW(); + RETURN _new; +END; +$$ LANGUAGE plpgsql; +CREATE TRIGGER "set_public_workspaces_updated_at" +BEFORE UPDATE ON "public"."workspaces" +FOR EACH ROW +EXECUTE PROCEDURE "public"."set_current_timestamp_updated_at"(); +COMMENT ON TRIGGER "set_public_workspaces_updated_at" ON "public"."workspaces" +IS 'trigger to set value of column "updated_at" to current timestamp on row update'; + +CREATE OR REPLACE FUNCTION "public"."set_current_timestamp_deleted_at"() +RETURNS TRIGGER AS $$ +DECLARE + _new record; +BEGIN + _new := NEW; + _new."deleted_at" = NOW(); + RETURN _new; +END; +$$ LANGUAGE plpgsql; +CREATE TRIGGER "set_public_workspaces_deleted_at" +BEFORE UPDATE ON "public"."workspaces" +FOR EACH ROW +EXECUTE PROCEDURE "public"."set_current_timestamp_deleted_at"(); +COMMENT ON TRIGGER "set_public_workspaces_deleted_at" ON "public"."workspaces" +IS 'trigger to set value of column "deleted_at" to current timestamp on row update'; diff --git a/hasura/migrations/default/1682513024159_create_table_public_workspace_members/down.sql b/hasura/migrations/default/1682513024159_create_table_public_workspace_members/down.sql new file mode 100644 index 0000000000..17131d84ea --- /dev/null +++ b/hasura/migrations/default/1682513024159_create_table_public_workspace_members/down.sql @@ -0,0 +1 @@ +DROP TABLE "public"."workspace_members"; diff --git a/hasura/migrations/default/1682513024159_create_table_public_workspace_members/up.sql b/hasura/migrations/default/1682513024159_create_table_public_workspace_members/up.sql new file mode 100644 index 0000000000..8edb7c54c3 --- /dev/null +++ b/hasura/migrations/default/1682513024159_create_table_public_workspace_members/up.sql @@ -0,0 +1,17 @@ +CREATE TABLE "public"."workspace_members" ("id" uuid NOT NULL, "workspace_id" uuid NOT NULL, "user_id" uuid NOT NULL, "created_at" timestamptz NOT NULL DEFAULT now(), "updated_at" timestamptz NOT NULL DEFAULT now(), "deleted_at" timestamptz, PRIMARY KEY ("id") , FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON UPDATE restrict ON DELETE restrict, UNIQUE ("id")); +CREATE OR REPLACE FUNCTION "public"."set_current_timestamp_updated_at"() +RETURNS TRIGGER AS $$ +DECLARE + _new record; +BEGIN + _new := NEW; + _new."updated_at" = NOW(); + RETURN _new; +END; +$$ LANGUAGE plpgsql; +CREATE TRIGGER "set_public_workspace_members_updated_at" +BEFORE UPDATE ON "public"."workspace_members" +FOR EACH ROW +EXECUTE PROCEDURE "public"."set_current_timestamp_updated_at"(); +COMMENT ON TRIGGER "set_public_workspace_members_updated_at" ON "public"."workspace_members" +IS 'trigger to set value of column "updated_at" to current timestamp on row update'; diff --git a/hasura/migrations/default/1682513157730_create_table_public_companies/down.sql b/hasura/migrations/default/1682513157730_create_table_public_companies/down.sql new file mode 100644 index 0000000000..6540b4a7ca --- /dev/null +++ b/hasura/migrations/default/1682513157730_create_table_public_companies/down.sql @@ -0,0 +1 @@ +DROP TABLE "public"."companies"; diff --git a/hasura/migrations/default/1682513157730_create_table_public_companies/up.sql b/hasura/migrations/default/1682513157730_create_table_public_companies/up.sql new file mode 100644 index 0000000000..abcc7a9d40 --- /dev/null +++ b/hasura/migrations/default/1682513157730_create_table_public_companies/up.sql @@ -0,0 +1,17 @@ +CREATE TABLE "public"."companies" ("id" uuid NOT NULL, "workspace_id" uuid NOT NULL, "name" text, "domain_name" text, "created_at" timestamptz NOT NULL DEFAULT now(), "updated_at" timestamptz NOT NULL DEFAULT now(), "deleted_at" timestamptz DEFAULT now(), PRIMARY KEY ("id") , FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON UPDATE restrict ON DELETE restrict, UNIQUE ("id")); +CREATE OR REPLACE FUNCTION "public"."set_current_timestamp_updated_at"() +RETURNS TRIGGER AS $$ +DECLARE + _new record; +BEGIN + _new := NEW; + _new."updated_at" = NOW(); + RETURN _new; +END; +$$ LANGUAGE plpgsql; +CREATE TRIGGER "set_public_companies_updated_at" +BEFORE UPDATE ON "public"."companies" +FOR EACH ROW +EXECUTE PROCEDURE "public"."set_current_timestamp_updated_at"(); +COMMENT ON TRIGGER "set_public_companies_updated_at" ON "public"."companies" +IS 'trigger to set value of column "updated_at" to current timestamp on row update'; diff --git a/hasura/migrations/default/1682513293454_create_table_public_people/down.sql b/hasura/migrations/default/1682513293454_create_table_public_people/down.sql new file mode 100644 index 0000000000..d21ac519e6 --- /dev/null +++ b/hasura/migrations/default/1682513293454_create_table_public_people/down.sql @@ -0,0 +1 @@ +DROP TABLE "public"."people"; diff --git a/hasura/migrations/default/1682513293454_create_table_public_people/up.sql b/hasura/migrations/default/1682513293454_create_table_public_people/up.sql new file mode 100644 index 0000000000..82ddb0b757 --- /dev/null +++ b/hasura/migrations/default/1682513293454_create_table_public_people/up.sql @@ -0,0 +1,34 @@ +CREATE TABLE "public"."people" ("id" uuid NOT NULL, "workspace_id" uuid NOT NULL, "firstname" text, "lastname" text, "email" text, "phone" text, "city" text, "company_id" uuid, "created_at" timestamptz NOT NULL DEFAULT now(), "updated_at" timestamptz NOT NULL DEFAULT now(), "deleted_at" timestamptz, PRIMARY KEY ("id") , FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON UPDATE restrict ON DELETE restrict, FOREIGN KEY ("company_id") REFERENCES "public"."companies"("id") ON UPDATE restrict ON DELETE restrict, UNIQUE ("id")); +CREATE OR REPLACE FUNCTION "public"."set_current_timestamp_updated_at"() +RETURNS TRIGGER AS $$ +DECLARE + _new record; +BEGIN + _new := NEW; + _new."updated_at" = NOW(); + RETURN _new; +END; +$$ LANGUAGE plpgsql; +CREATE TRIGGER "set_public_people_updated_at" +BEFORE UPDATE ON "public"."people" +FOR EACH ROW +EXECUTE PROCEDURE "public"."set_current_timestamp_updated_at"(); +COMMENT ON TRIGGER "set_public_people_updated_at" ON "public"."people" +IS 'trigger to set value of column "updated_at" to current timestamp on row update'; + +CREATE OR REPLACE FUNCTION "public"."set_current_timestamp_deleted_at"() +RETURNS TRIGGER AS $$ +DECLARE + _new record; +BEGIN + _new := NEW; + _new."deleted_at" = NOW(); + RETURN _new; +END; +$$ LANGUAGE plpgsql; +CREATE TRIGGER "set_public_people_deleted_at" +BEFORE UPDATE ON "public"."people" +FOR EACH ROW +EXECUTE PROCEDURE "public"."set_current_timestamp_deleted_at"(); +COMMENT ON TRIGGER "set_public_people_deleted_at" ON "public"."people" +IS 'trigger to set value of column "deleted_at" to current timestamp on row update'; diff --git a/hasura/seeds/default/1682504539909_companiesSeeds.sql b/hasura/seeds/default/1682504539909_companiesSeeds.sql new file mode 100644 index 0000000000..2b9f5c309f --- /dev/null +++ b/hasura/seeds/default/1682504539909_companiesSeeds.sql @@ -0,0 +1,27 @@ +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('fe256b39-3ec3-4fe3-8997-b76aa0bfa408', 'Linkedin', 'linkedin.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('118995f3-5d81-46d6-bf83-f7fd33ea6102', 'Facebook', 'facebook.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:07:53.823422+00', '2023-04-26 10:07:53.823422+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('04b2e9f5-0713-40a5-8216-82802401d33e', 'Qonto', 'qonto.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:08:05.924319+00', '2023-04-26 10:08:05.924319+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('460b6fb1-ed89-413a-b31a-962986e67bb4', 'Microsoft', 'microsoft.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:08:50.960684+00', '2023-04-26 10:08:50.960684+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('89bb825c-171e-4bcc-9cf7-43448d6fb278', 'Airbnb', 'airbnb.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:08:54.724515+00', '2023-04-26 10:08:54.724515+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('0d940997-c21e-4ec2-873b-de4264d89025', 'Google', 'google.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:08:58.054814+00', '2023-04-26 10:08:58.054814+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('1d3a1c6e-707e-44dc-a1d2-30030bf1a944', 'Netflix', 'netflix.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:09:02.578364+00', '2023-04-26 10:09:02.578364+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('7a93d1e5-3f74-492d-a101-2a70f50a1645', 'Libeo', 'libeo.io', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:09:15.570408+00', '2023-04-26 10:09:15.570408+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('9d162de6-cfbf-4156-a790-e39854dcd4eb', 'Claap', 'claap.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:09:25.656555+00', '2023-04-26 10:09:25.656555+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('aaffcfbd-f86b-419f-b794-02319abe8637', 'Hasura', 'hasura.io', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:09:43.694113+00', '2023-04-26 10:09:43.694113+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('f33dc242-5518-4553-9433-42d8eb82834b', 'Wework', 'wework.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:10:02.737419+00', '2023-04-26 10:10:02.737419+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('a7bc68d5-f79e-40dd-bd06-c36e6abb4678', 'Samsung', 'samsung.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:10:15.396606+00', '2023-04-26 10:10:15.396606+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('a674fa6c-1455-4c57-afaf-dd5dc086361d', 'Algolia', 'algolia.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:10:32.530184+00', '2023-04-26 10:10:32.530184+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('c10b7dac-fcfc-4bf6-8eea-af497fbaaf42', 'Heroku', 'heroku.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:10:36.755503+00', '2023-04-26 10:10:36.755503+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('6672b0aa-fe9c-4651-85c7-07a35bd504a6', 'Shopify', 'shopify.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:11:47.124207+00', '2023-04-26 10:11:47.124207+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('6a6b78a6-94a3-4f6b-b519-91b138b75c3b', 'Zoom', 'zoom.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:11:56.224394+00', '2023-04-26 10:11:56.224394+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('b396e6b9-dc5c-4643-bcff-61b6cf7523ae', 'Aircall', 'aircall.io', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:12:42.33625+00', '2023-04-26 10:12:42.33625+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('72fb963e-d149-448a-928e-3bc9228c6454', 'Swile', 'swile.co', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:13:15.57356+00', '2023-04-26 10:13:15.57356+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('5c21e19e-e049-4393-8c09-3e3f8fb09ecb', 'BeReal', 'bereal.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:13:29.712485+00', '2023-04-26 10:13:29.712485+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('cd53b57b-1212-44a8-97b7-d772c5969cbf', 'Luko', 'luko.eu', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:13:41.510408+00', '2023-04-26 10:13:41.510408+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('294af8c8-9e08-4e52-b621-4da7b9d6dd68', 'Lydia', 'lydia-app.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:14:07.008155+00', '2023-04-26 10:14:07.008155+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('9575afbd-6aa4-4f22-82a1-f13d42489640', 'Pigment', 'gopigment.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-26 10:14:21.636428+00', '2023-04-26 10:14:21.636428+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('b1cfd51b-a831-455f-ba07-4e30671e1dc3', 'Apple', 'apple.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-03-21 06:30:25.39474+00', '2023-04-26 10:14:47.075952+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('6e4c6afd-4bc9-4477-a77c-89afe6b430d7', 'Slack', 'slack.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-03-21 06:30:25.39474+00', '2023-04-26 10:15:10.291459+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('8b5a4010-ed66-4464-8e5a-9ecc875943f9', 'Figma', 'figma.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-01 06:30:25.39474+00', '2023-04-26 10:15:31.229817+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('2667d28d-f341-4613-ba80-167cd793d018', 'Payfit', 'payfit.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-01 06:30:25.39474+00', '2023-04-26 10:15:35.121895+00'); +INSERT INTO public.companies (id, "name", domain_name, workspace_id, created_at, updated_at) VALUES ('b5e2085f-7abf-4035-b043-f7fd200e0f85', 'Ornikar', 'orknikar.com', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2023-04-01 06:30:25.39474+00', '2023-04-26 10:15:40.10136+00'); diff --git a/hasura/seeds/default/1682504828618_peopleSeeds.sql b/hasura/seeds/default/1682504828618_peopleSeeds.sql new file mode 100644 index 0000000000..f39ecc0e87 --- /dev/null +++ b/hasura/seeds/default/1682504828618_peopleSeeds.sql @@ -0,0 +1,76 @@ +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('86083141-1c0e-494c-a1b6-85b1c6fefaa5', 'Christoph', 'Calisto', '+33789012345', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'fe256b39-3ec3-4fe3-8997-b76aa0bfa408', 'christoph.calisto@linkedin.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('0aa00beb-ac73-4797-824e-87a1f5aea9e0', 'Sylvie', 'Palmer', '+33780123456', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'fe256b39-3ec3-4fe3-8997-b76aa0bfa408', 'sylvie.palmer@linkedin.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('93c72d2e-f517-42fd-80ae-14173b3b70ae', 'Christopher', 'Gonzalez', '+33789012345', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '04b2e9f5-0713-40a5-8216-82802401d33e', 'christopher.gonzalez@qonto.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('eeeacacf-eee1-4690-ad2c-8619e5b56a2e', 'Ashley', 'Parker', '+33780123456', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '04b2e9f5-0713-40a5-8216-82802401d33e', 'ashley.parker@qonto.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('9b324a88-6784-4449-afdf-dc62cb8702f2', 'Nicholas', 'Wright', '+33781234567', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '460b6fb1-ed89-413a-b31a-962986e67bb4', 'nicholas.wright@microsoft.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('1d151852-490f-4466-8391-733cfd66a0c8', 'Isabella', 'Scott', '+33782345678', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '460b6fb1-ed89-413a-b31a-962986e67bb4', 'isabella.scott@microsoft.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('98406e26-80f1-4dff-b570-a74942528de3', 'Matthew', 'Green', '+33783456789', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '460b6fb1-ed89-413a-b31a-962986e67bb4', 'matthew.green@microsoft.com', '2023-04-21 06:30:38.116677+00', '2023-04-24 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('a2e78a5f-338b-46df-8811-fa08c7d19d35', 'Elizabeth', 'Baker', '+33784567890', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '89bb825c-171e-4bcc-9cf7-43448d6fb278', 'elizabeth.baker@airbnb.com', '2023-04-21 06:30:38.116677+00', '2023-04-24 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('ca1f5bf3-64ad-4b0e-bbfd-e9fd795b7016', 'Christopher', 'Nelson', '+33785678901', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '89bb825c-171e-4bcc-9cf7-43448d6fb278', 'christopher.nelson@airbnb.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('56955422-5d54-41b7-ba36-f0d20e1417ae', 'Avery', 'Carter', '+33786789012', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '89bb825c-171e-4bcc-9cf7-43448d6fb278', 'avery.carter@airbnb.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('755035db-623d-41fe-92e7-dd45b7c568e1', 'Ethan', 'Mitchell', '+33787890123', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '0d940997-c21e-4ec2-873b-de4264d89025', 'ethan.mitchell@google.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('240da2ec-2d40-4e49-8df4-9c6a049190df', 'Madison', 'Perez', '+33788901234', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '0d940997-c21e-4ec2-873b-de4264d89025', 'madison.perez@google.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('9adbb6b4-c3da-4e30-907a-5a6f20a64e79', 'Joshua', 'Roberts', '+33789012345', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '0d940997-c21e-4ec2-873b-de4264d89025', 'joshua.roberts@google.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('0fa33305-749a-41bf-acf9-96510bedcf19', 'Natalie', 'Turner', '+33780123456', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '1d3a1c6e-707e-44dc-a1d2-30030bf1a944', 'natalie.turner@netflix.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('4bb4338b-2a54-4c78-8aa3-aed256ac8efa', 'Alexander', 'Phillips', '+33781234567', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '1d3a1c6e-707e-44dc-a1d2-30030bf1a944', 'alexander.phillips@netflix.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('93e907fb-6f36-4654-9e8c-1bfb312a0baa', 'Aaliyah', 'Campbell', '+33782345678', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '1d3a1c6e-707e-44dc-a1d2-30030bf1a944', 'aaliyah.campbell@netflix.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('33fc097a-5bf8-4c1e-8332-8a1585c7781c', 'Cameron', 'Parker', '+33783456789', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '7a93d1e5-3f74-492d-a101-2a70f50a1645', 'cameron.parker@libeo.io', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('0cb4e47e-8bb9-4770-8e0f-f57bb02e7513', 'Chloe', 'Evans', '+33784567890', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '7a93d1e5-3f74-492d-a101-2a70f50a1645', 'chloe.evans@libeo.io', '2023-04-21 06:30:38.116677+00', '2023-05-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('73e62504-597a-4fe8-9424-3ad5fb708d47', 'William', 'Edwards', '+33785678901', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '7a93d1e5-3f74-492d-a101-2a70f50a1645', 'william.edwards@libeo.io', '2023-04-21 06:30:38.116677+00', '2023-05-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('dcbcba4b-1e11-47ab-9141-33c888929c64', 'Aria', 'Collins', '+33786789012', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '9d162de6-cfbf-4156-a790-e39854dcd4eb', 'aria.collins@claap.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('916a3825-711a-4453-a5ad-32ed2d9b5ade', 'Lucas', 'Stewart', '+33787890123', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '9d162de6-cfbf-4156-a790-e39854dcd4eb', 'lucas.stewart@claap.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('9e90fe97-29f4-4187-8c58-2675893e5b47', 'Oliver', 'Garcia', '+33789012345', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'aaffcfbd-f86b-419f-b794-02319abe8637', 'oliver.garcia@hasura.io', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('f5d0e4c6-10bd-4f61-9784-37369a3d95a5', 'Victoria', 'Allen', '+33780123456', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'aaffcfbd-f86b-419f-b794-02319abe8637', 'victoria.allen@hasura.io', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('d4f6a0ec-3f3b-442e-80eb-37b3e95eff09', 'Henry', 'Green', '+33781234567', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'aaffcfbd-f86b-419f-b794-02319abe8637', 'henry.green@hasura.io', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('7652a886-30d2-4692-bb46-bdeb9d6a0a8c', 'Evelyn', 'Cruz', '+33782345678', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'f33dc242-5518-4553-9433-42d8eb82834b', 'evelyn.cruz@wework.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('5b4733e5-3d3c-4d57-aca8-cc74458bfa9a', 'Mason', 'Reed', '+33783456789', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'f33dc242-5518-4553-9433-42d8eb82834b', 'mason.reed@wework.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('67e913bb-0960-49ac-9ef8-74ceb18ef6e4', 'Emma', 'Bryant', '+33784567890', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'f33dc242-5518-4553-9433-42d8eb82834b', 'emma.bryant@wework.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('afd1e334-2a03-427c-a6ce-19bcc14cd737', 'Liam', 'Harris', '+33785678901', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'a7bc68d5-f79e-40dd-bd06-c36e6abb4678', 'liam.harris@samsung.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('19532475-f924-4229-8d09-bf8d1b0a6968', 'Sophia', 'Young', '+33786789012', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'a7bc68d5-f79e-40dd-bd06-c36e6abb4678', 'sophia.young@samsung.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('ff8d1dac-9fd5-4bed-8c48-da4a94e62805', 'Benjamin', 'Lee', '+33787890123', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'a7bc68d5-f79e-40dd-bd06-c36e6abb4678', 'benjamin.lee@samsung.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('fe2a17e9-79be-45ea-947b-092ffa7c5b25', 'Avery', 'Kim', '+33788901234', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'a674fa6c-1455-4c57-afaf-dd5dc086361d', 'avery.kim@algolia.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('840493fe-63d2-4d8d-a1f8-d51f2ed0e906', 'Noah', 'Martin', '+33789012345', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'a674fa6c-1455-4c57-afaf-dd5dc086361d', 'noah.martin@algolia.com', '2023-04-21 06:30:38.116677+00', '2023-04-23 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('83c8e2c6-06f3-449e-b211-7a5ddf4ce6cd', 'Isabella', 'Chen', '+33780123456', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'a674fa6c-1455-4c57-afaf-dd5dc086361d', 'isabella.chen@algolia.com', '2023-04-21 06:30:38.116677+00', '2023-04-23 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('15bb8b60-3b01-4fb5-b954-35a190416e1f', 'William', 'Nguyen', '+33781234567', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'c10b7dac-fcfc-4bf6-8eea-af497fbaaf42', 'william.nguyen@heroku.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('f4ca2c23-d128-4147-be7d-1765f8fd6e51', 'Sofia', 'Wong', '+33782345678', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'c10b7dac-fcfc-4bf6-8eea-af497fbaaf42', 'sofia.wong@heroku.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('5eae47fc-5ddc-43ab-945a-e4f8be4b1768', 'James', 'Zhang', '+33783456789', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'c10b7dac-fcfc-4bf6-8eea-af497fbaaf42', 'james.zhang@heroku.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('46bc6dee-7da1-4498-b572-ea82132c41af', 'Ella', 'Ramirez', '+33784567890', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '6672b0aa-fe9c-4651-85c7-07a35bd504a6', 'ella.ramirez@shopify.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('c5b59d44-4f32-474f-9e6c-fb0d093e7883', 'Alexander', 'Scott', '+33785678901', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '6672b0aa-fe9c-4651-85c7-07a35bd504a6', 'alexander.scott@shopify.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('1d7a0dcf-1308-466b-a55f-db30513d6422', 'Mia', 'Parker', '+33786789012', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '6672b0aa-fe9c-4651-85c7-07a35bd504a6', 'mia.parker@shopify.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('5e06aa7d-31a4-42ae-af5a-f72d6d8658d7', 'Ethan', 'Gonzalez', '+33787890123', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '6672b0aa-fe9c-4651-85c7-07a35bd504a6', 'ethan.gonzalez@zoom.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('d47978fb-f9e1-47fe-beb1-cc1ec17e6045', 'Charlotte', 'Smith', '+33788901234', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '6a6b78a6-94a3-4f6b-b519-91b138b75c3b', 'charlotte.smith@zoom.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('a4331aac-f6d2-427f-a52f-7553de81d643', 'Daniel', 'Choi', '+33789012345', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '6a6b78a6-94a3-4f6b-b519-91b138b75c3b', 'daniel.choi@zoom.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('1b13ed6f-0d0b-4030-b560-83e9154fe570', 'Aria', 'Khan', '+33780123456', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'b396e6b9-dc5c-4643-bcff-61b6cf7523ae', 'aria.khan@aircall.io', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('871c54e4-9b97-43fa-b896-498b3dd9a9d6', 'Michael', 'Gupta', '+33781234567', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'b396e6b9-dc5c-4643-bcff-61b6cf7523ae', 'michael.gupta@aircall.io', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('a5e99de6-0e46-48d3-b15f-46dd5eb8ce89', 'Abigail', 'Patel', '+33782345678', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'b396e6b9-dc5c-4643-bcff-61b6cf7523ae', 'abigail.patel@aircall.io', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('5246ed82-5b6b-47e7-9c58-9eecaab20e76', 'William', 'Kim', '+33783456789', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '72fb963e-d149-448a-928e-3bc9228c6454', 'william.kim@swile.co', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('f3e77c27-f729-4350-89a6-c3bcb7e3bd4c', 'Emily', 'Nguyen', '+33784567890', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '72fb963e-d149-448a-928e-3bc9228c6454', 'emily.nguyen@swile.co', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('8fe4591a-26c6-4e74-a7f6-eedd9480ba92', 'Joseph', 'Wang', '+33785678901', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '72fb963e-d149-448a-928e-3bc9228c6454', 'joseph.wang@swile.co', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('682fbf08-7a63-492f-bfee-66c3ad382638', 'Madison', 'Tran', '+33786789012', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '5c21e19e-e049-4393-8c09-3e3f8fb09ecb', 'madison.tran@bereal.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('e83c02a9-9de7-4cea-9677-d2370f14c64d', 'Owen', 'Gonzales', '+33787890123', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '5c21e19e-e049-4393-8c09-3e3f8fb09ecb', 'owen.gonzales@bereal.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('2ec18c66-db82-4176-81d3-33393960c8f5', 'Chloe', 'Chang', '+33788901234', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '5c21e19e-e049-4393-8c09-3e3f8fb09ecb', 'chloe.chang@bereal.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('8f27e821-ec2b-4dd8-8394-a0abf13917cb', 'Jackson', 'Park', '+33789012345', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'cd53b57b-1212-44a8-97b7-d772c5969cbf', 'jackson.park@luko.eu', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('eeb07239-09f4-4567-9af9-628152540345', 'Olivia', 'Lee', '+33780123456', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'cd53b57b-1212-44a8-97b7-d772c5969cbf', 'olivia.lee@luko.eu', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('bc171d0d-ba47-4319-9edf-a910500b420e', 'Ethan', 'Garcia', '+33781234567', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'cd53b57b-1212-44a8-97b7-d772c5969cbf', 'ethan.garcia@luko.eu', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('7d6b55dd-f28c-4cf9-b79a-4a3ac0ecb0c2', 'Avery', 'Mendoza', '+33782345678', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '294af8c8-9e08-4e52-b621-4da7b9d6dd68', 'avery.mendoza@lydia-app.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('f97a2829-6624-42b3-a693-99523ab7ddc3', 'Lucas', 'Hernandez', '+33783456789', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '294af8c8-9e08-4e52-b621-4da7b9d6dd68', 'lucas.hernandez@lydia-app.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('ef437c14-ef0c-404b-9b26-c5ed73c14097', 'Mia', 'Wilson', '+33784567890', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '294af8c8-9e08-4e52-b621-4da7b9d6dd68', 'mia.wilson@lydia-app.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('e75454a4-025b-467a-8ce7-04fcee1a278e', 'Daniel', 'Anderson', '+33785678901', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '9575afbd-6aa4-4f22-82a1-f13d42489640', 'daniel.anderson@gopigment.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('3e6188ef-9e20-4089-9d2e-f1dd5bc9f98a', 'Sophia', 'Thomas', '+33786789012', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '9575afbd-6aa4-4f22-82a1-f13d42489640', 'sophia.thomas@gopigment.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('2d21e632-6dd0-44c8-a2e2-73e45e61ab00', 'Benjamin', 'Jackson', '+33787890123', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '9575afbd-6aa4-4f22-82a1-f13d42489640', 'benjamin.jackson@gopigment.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('1d35e7b6-33d4-48a5-8048-f814de457f8b', 'Isabella', 'White', '+33788901234', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'b5e2085f-7abf-4035-b043-f7fd200e0f85', 'isabella.white@orknikar.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('abd57cbf-d473-4763-9d90-81931dffaf4a', 'Jacob', 'Harris', '+33789012345', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'b5e2085f-7abf-4035-b043-f7fd200e0f85', 'jacob.harris@orknikar.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('7fc51349-e237-4272-a180-9e9f2693c3e3', 'Ava', 'Clark', '+33780123456', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'b5e2085f-7abf-4035-b043-f7fd200e0f85', 'ava.clark@orknikar.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('d53c1645-4453-42f1-a619-1a6de22e56a5', 'Matthew', 'Rodriguez', '+33781234567', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2667d28d-f341-4613-ba80-167cd793d018', 'matthew.rodriguez@payfit.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('550da8ac-33c9-40fc-a787-ab87d77558b6', 'Charlotte', 'Martinez', '+33782345678', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2667d28d-f341-4613-ba80-167cd793d018', 'charlotte.martinez@payfit.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('6b372323-a8e9-4ec5-8e7f-cbae393bc3a9', 'Andrew', 'Garcia', '+33783456789', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '2667d28d-f341-4613-ba80-167cd793d018', 'andrew.garcia@payfit.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('6ee8836c-2bfd-4a11-97ed-901bedfc08e5', 'Emma', 'Lopez', '+33784567890', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '8b5a4010-ed66-4464-8e5a-9ecc875943f9', 'emma.lopez@figma.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('0b915bdf-2adf-4d1d-91ae-8ae14696f110', 'William', 'Gonzalez', '+33785678901', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '8b5a4010-ed66-4464-8e5a-9ecc875943f9', 'william.gonzalez@figma.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('6734b045-403e-4ceb-b8be-f1b55c40d271', 'Victoria', 'Rivera', '+33786789012', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '8b5a4010-ed66-4464-8e5a-9ecc875943f9', 'victoria.rivera@figma.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('e4cfcf25-4319-476f-9f04-e6b83bc8f385', 'Daniel', 'Gomez', '+33787890123', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '6e4c6afd-4bc9-4477-a77c-89afe6b430d7', 'daniel.gomez@slack.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('e3cfcf25-4319-476f-9f04-e6b83bc8f385', 'Jacob', 'Torres', '+33789012345', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '6e4c6afd-4bc9-4477-a77c-89afe6b430d7', 'jacob.torres@slack.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('e2cfcf25-4319-476f-9f04-e6b83bc8f385', 'Samantha', 'Flores', '+33780123456', 'Los Angeles', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', '6e4c6afd-4bc9-4477-a77c-89afe6b430d7', 'samantha.flores@slack.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('e1cfcf25-4319-476f-9f04-e6b83bc8f385', 'Ryan', 'Collins', '+33781234567', 'Seattle', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'b1cfd51b-a831-455f-ba07-4e30671e1dc3', 'ryan.collins@apple.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('e0cfcf25-4319-476f-9f04-e6b83bc8f385', 'Aria', 'Stewart', '+33782345678', 'New York', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'b1cfd51b-a831-455f-ba07-4e30671e1dc3', 'aria.stewart@apple.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); +INSERT INTO public.people (id, firstname, lastname, phone, city, workspace_id, company_id, email, created_at, updated_at) VALUES ('e9cfcf25-4319-476f-9f04-e6b83bc8f385', 'Elijah', 'Sanchez', '+33783456789', 'San Francisco', '7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'b1cfd51b-a831-455f-ba07-4e30671e1dc3', 'elijah.sanchez@apple.com', '2023-04-21 06:30:38.116677+00', '2023-04-21 06:30:38.116677+00'); + diff --git a/hasura/seeds/default/1682513765429_workspacesSeed.sql b/hasura/seeds/default/1682513765429_workspacesSeed.sql new file mode 100644 index 0000000000..93f721270c --- /dev/null +++ b/hasura/seeds/default/1682513765429_workspacesSeed.sql @@ -0,0 +1,3 @@ +SET check_function_bodies = false; +INSERT INTO public.workspaces (id, domain_name, display_name, created_at, updated_at, deleted_at) VALUES ('7ed9d212-1c25-4d02-bf25-6aeccf7ea419', 'twenty.com', 'Twenty', '2023-04-26 12:54:27.094743+00', '2023-04-26 12:54:27.094743+00', NULL); +INSERT INTO public.workspaces (id, domain_name, display_name, created_at, updated_at, deleted_at) VALUES ('5d5fe082-8577-44b6-a1dd-b86951a975aa', 'claap.com', 'Claap', '2023-04-26 12:54:46.799314+00', '2023-04-26 12:54:46.799314+00', NULL); diff --git a/server/package-lock.json b/server/package-lock.json index 9ecd6cb627..0329e6ec8c 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -19,7 +19,8 @@ "jest-mock-extended": "^3.0.4", "reflect-metadata": "^0.1.13", "rimraf": "^3.0.2", - "rxjs": "^7.2.0" + "rxjs": "^7.2.0", + "uuid": "^9.0.0" }, "devDependencies": { "@nestjs/cli": "^9.0.0", diff --git a/server/package.json b/server/package.json index 154bc04d45..13fbb71d62 100644 --- a/server/package.json +++ b/server/package.json @@ -31,7 +31,8 @@ "jest-mock-extended": "^3.0.4", "reflect-metadata": "^0.1.13", "rimraf": "^3.0.2", - "rxjs": "^7.2.0" + "rxjs": "^7.2.0", + "uuid": "^9.0.0" }, "devDependencies": { "@nestjs/cli": "^9.0.0", diff --git a/server/src/database/schema.prisma b/server/src/database/schema.prisma index 5fbbb1502a..24a2ff044f 100644 --- a/server/src/database/schema.prisma +++ b/server/src/database/schema.prisma @@ -8,18 +8,18 @@ datasource db { } model WorkspaceMember { - id Int @id @default(autoincrement()) + id String @id created_at DateTime @default(now()) updated_at DateTime @updatedAt deleted_at DateTime? user_id String @unique - workspace_id Int + workspace_id String @@map("workspace_members") } model Workspace { - id Int @id @default(autoincrement()) + id String @id created_at DateTime @default(now()) updated_at DateTime @updatedAt deleted_at DateTime? diff --git a/server/src/user/user.repository.ts b/server/src/user/user.repository.ts index 93a1b25ed5..3df5767238 100644 --- a/server/src/user/user.repository.ts +++ b/server/src/user/user.repository.ts @@ -2,6 +2,7 @@ import { Injectable } from '@nestjs/common'; import { Prisma, WorkspaceMember } from '@prisma/client'; import { PrismaService } from '../database/prisma.service'; + @Injectable() export class UserRepository { constructor(private prisma: PrismaService) {} @@ -14,6 +15,7 @@ export class UserRepository { user_id: data.user_id, }, create: { + id: data.id, user_id: data.user_id, workspace_id: data.workspace_id, }, diff --git a/server/src/user/user.service.ts b/server/src/user/user.service.ts index de7b29645a..dbcb6b7959 100644 --- a/server/src/user/user.service.ts +++ b/server/src/user/user.service.ts @@ -5,7 +5,7 @@ import { import { UserRepository } from './user.repository'; import { Injectable, Response } from '@nestjs/common'; import { WorkspaceRepository } from './workspace.repository'; -import { response } from 'express'; +import { v4 } from 'uuid'; interface User { id: number; @@ -42,6 +42,7 @@ export class UserService { const workspaceMember = await this.repository.upsertWorkspaceMember({ data: { + id: v4(), user_id: String(evt.event.data.new.id), workspace_id: workspace.id, },