diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..8e42ebb8 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,26 @@ +name: test +on: [push, pull_request] +jobs: + test: + strategy: + matrix: + sdk: + - stable + - 2.18.0 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dart-lang/setup-dart@v1 + with: + sdk: ${{ matrix.sdk }} + - name: Cache prisma engines + uses: actions/cache@v3 + with: + path: .dart_tool/prisma + key: ${{ runner.os }}-${{ runner.arch }}-prisma-engines-${{ hashFiles('**/lib/version.dart') }} + - name: Install dependencies + run: dart pub get + - name: Pre-download engines + run: dart run bin/orm.dart precache + - name: Run tests + run: dart test -r github diff --git a/CHANGELOG.md b/CHANGELOG.md index bc14a7c3..52c5e747 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,32 @@ +## 2.2.0 + +🌟 Help us spread the word about [Prisma ORM for Dart](https://github.com/odroe/prisma-dart) by starring the repo or [Tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@prisma%20ORM%20for%20Dart%20release%20v2.2.0🚀%0D%0A%0D%0Ahttps://github.com/odroe/prisma-dart/releases/tag/2.2.0) about the release. 🌟 + +### Major improvements: + +Input object Types without `PrismaUnion` wrapper, Before: +```dart +final User user = await prisma.user.create( + data: PrismaUnion( + zero: UserCreateInput(name: 'odroe'), + ), +); +``` +After: +```dart +final User user = await prisma.user.create( + data: UserCreateInput(name: 'odroe'), +); +``` + +### Bug fixes: + +- Nullable fields generating broken field implementations - [#23](https://github.com/odroe/prisma-dart/issues/23) + +### Features: + +- Add `precache` command, Populate the Prisma engines cache of binary artifacts. + ## 2.1.3 🌟 Help us spread the word about [Prisma ORM for Dart](https://github.com/odroe/prisma-dart) by starring the repo or [Tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@prisma%20ORM%20for%20Dart%20release%20v2.1.3🚀%0D%0A%0D%0Ahttps://github.com/odroe/prisma-dart/releases/tag/2.1.3) about the release. 🌟 diff --git a/README.md b/README.md index 265ec48b..f1531148 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ Next-generation ORM for Dart Native & Flutter | PostgreSQL, MySQL, MariaDB, SQL [![Pub Version](https://img.shields.io/pub/v/orm?label=latest)](https://pub.dev/packages/orm) [![GitHub license](https://img.shields.io/github/license/odroe/prisma-dart)](https://github.com/odroe/prisma-dart/blob/main/LICENSE) +[![test](https://github.com/odroe/prisma-dart/actions/workflows/test.yaml/badge.svg)](https://github.com/odroe/prisma-dart/actions/workflows/test.yaml) ## What is it? @@ -12,11 +13,11 @@ Prisma is a **next-generation ORM** that consists of these tools: - **Prisma Query Engine** - Prisma query engines wrapper: 1. **Binary Engine** - Only for Dart Native. 2. **Dynamic Library Engine** - Supported for Dart Native and Flutter Native. `❌ Waiting` - 3. **Prisma Data Proxy Engint** - Supported all platforms. `❌ Waiting` + 3. **Prisma Data Proxy Engint** - Supported all platforms. `❌ Waiting` See [Add Data proxy engine support](https://github.com/odroe/prisma-dart/issues/22). ## Getting started -> **Prerequisites**: Dart SDK `>=2.17.6 <3.0.0` +> **Prerequisites**: Dart SDK `>=2.18.0 <3.0.0` ### 1. Create Dart project and setup Prisma @@ -94,7 +95,8 @@ datasource db { // Generator generator client { - provider = "prisma-client-dart" + provider = "prisma-client-dart" + previewFeatures = ["interactiveTransactions"] } // Data model @@ -144,19 +146,19 @@ import 'prisma_client.dart'; final PrismaClient prisma = PrismaClient(); ``` -Now you can start sending queries via the generated Prisma Client API, here are few sample queries. Note that all Prisma Client queries return plain old `Map`. +Now you can start sending queries via the generated Prisma Client API, here are few sample queries. #### Retrieve all User records from the database ```dart // Run inside `async` function -final allUsers = await prisma.user.findMany(); +final List allUsers = await prisma.user.findMany(); ``` #### Filter all Post records that contain "odore" ```dart -final filteredPosts = await prisma.post.findMany( +final List filteredPosts = await prisma.post.findMany( where: PostFindManyWhereInput( OR: [ PostFindManyWhereInput( @@ -173,19 +175,17 @@ final filteredPosts = await prisma.post.findMany( #### Create a new User and a new Post record in the same query ```dart -final user = await prisma.user.create( - data: PrismaUnion.zero( - UserCreateInput( - name: 'Odroe', - posts: PostCreateNestedManyWithoutAuthorInput( - create: [ - PostCreateWithoutAuthorInput( - title: 'Hello World', - content: 'This is my first post', - published: true, - ), - ], - ), +final User user = await prisma.user.create( + data: UserCreateInput( + name: 'Odroe', + posts: PostCreateNestedManyWithoutAuthorInput( + create: [ + PostCreateWithoutAuthorInput( + title: 'Hello World', + content: 'This is my first post', + published: true, + ), + ], ), ), ); diff --git a/bin/orm.dart b/bin/orm.dart index a12134f7..afbf7509 100644 --- a/bin/orm.dart +++ b/bin/orm.dart @@ -9,6 +9,7 @@ import 'src/commands/db/db_command.dart'; import 'src/commands/format_command.dart'; import 'src/commands/generate_command.dart'; import 'src/commands/init_command.dart'; +import 'src/commands/precache_command.dart'; /// The Prisma CLI executable name. const String _executableName = r'dart run orm'; @@ -32,6 +33,7 @@ void main(List args) async { runner.addCommand(FormatCommand()); runner.addCommand(DbCommand()); runner.addCommand(GenerateCommand()); + runner.addCommand(PrecacheCommand()); // Get command result. final ArgResults results = runner.parse(args); diff --git a/bin/src/commands/precache_command.dart b/bin/src/commands/precache_command.dart new file mode 100644 index 00000000..4d2d2cc4 --- /dev/null +++ b/bin/src/commands/precache_command.dart @@ -0,0 +1,55 @@ +import 'package:args/command_runner.dart'; +import 'package:orm/version.dart'; + +import '../binary_engine/binary_engine.dart'; +import '../binary_engine/binary_engine_platform.dart'; +import '../binary_engine/binray_engine_type.dart'; +import '../utils/ansi_progress.dart'; + +class PrecacheCommand extends Command { + @override + String get description => + 'Populate the Prisma engines cache of binary artifacts.'; + + @override + String get name => 'precache'; + + PrecacheCommand() { + argParser.addMultiOption( + 'type', + abbr: 't', + help: 'The engine type to precache.', + valueHelp: 'engine', + allowed: BinaryEngineType.values.map((e) => e.name), + defaultsTo: BinaryEngineType.values.map((e) => e.name), + ); + } + + Iterable get types { + final List types = argResults?['type'] as List; + if (types.isEmpty) return BinaryEngineType.values; + + return BinaryEngineType.values + .where((element) => types.contains(element.name)); + } + + @override + void run() async { + for (final BinaryEngineType type in types) { + final BinaryEngine binaryEngine = BinaryEngine( + platform: BinaryEnginePlatform.current, + type: type, + version: binaryVersion, + ); + + if (!await binaryEngine.hasDownloaded) { + await binaryEngine.download(AnsiProgress.createFutureHandler( + 'Download Prisma ${type.name} engine')); + await Future.delayed(Duration(microseconds: 100)); + continue; + } + + print('Prisma ${type.name} engine is already downloaded.'); + } + } +} diff --git a/bin/src/generator/generator.dart b/bin/src/generator/generator.dart index 45804afc..e398f671 100644 --- a/bin/src/generator/generator.dart +++ b/bin/src/generator/generator.dart @@ -42,6 +42,7 @@ final List _ignores = [ 'constant_identifier_names', 'non_constant_identifier_names', 'depend_on_referenced_packages', + 'unused_import', ]..sort(); /// Run Dart client generator diff --git a/bin/src/generator/utils/schema_type.dart b/bin/src/generator/utils/schema_type.dart index 1d6904d7..c7851173 100644 --- a/bin/src/generator/utils/schema_type.dart +++ b/bin/src/generator/utils/schema_type.dart @@ -14,6 +14,15 @@ Reference schemaTypeResolver(List types, return scalar(uniqueTypes.first, isNullable); } + // If include `location` is inputObjectTypes. return single inputObjectType + if (uniqueTypes + .any((element) => element.location == FieldLocation.inputObjectTypes)) { + final type = uniqueTypes.firstWhere( + (element) => element.location == FieldLocation.inputObjectTypes); + + return scalar(type, isNullable); + } + final Iterable twoTypes = uniqueTypes.take(2); // Find is list type. @@ -25,7 +34,7 @@ Reference schemaTypeResolver(List types, final TypeReference reference = TypeReference((TypeReferenceBuilder updates) { updates.symbol = 'PrismaUnion'; updates.url = 'package:orm/orm.dart'; - updates.types.addAll(types.map((type) => scalar(type))); + updates.types.addAll(twoTypes.map((type) => scalar(type))); }); if (isNullable) { diff --git a/example/README.md b/example/README.md index 3701bcfa..69a28a35 100644 --- a/example/README.md +++ b/example/README.md @@ -1,3 +1,4 @@ Four Prisma examples are available: -- [simple](simple) - A simple Priama example. \ No newline at end of file +- [simple](simple) - A simple Priama example.] +- [Readme example](readme_example) - An example that demonstrates how to use the `readme_example` package. Prisma schema used in [Readme#the-prisma-schema](../README.md#the-prisma-schema). \ No newline at end of file diff --git a/example/readme_example/.gitignore b/example/readme_example/.gitignore new file mode 100644 index 00000000..3c8a1572 --- /dev/null +++ b/example/readme_example/.gitignore @@ -0,0 +1,6 @@ +# Files and directories created by pub. +.dart_tool/ +.packages + +# Conventional directory for build output. +build/ diff --git a/example/readme_example/.prismarc b/example/readme_example/.prismarc new file mode 100644 index 00000000..6e2c11eb --- /dev/null +++ b/example/readme_example/.prismarc @@ -0,0 +1 @@ +DATABASE_URL = "postgres://seven@localhost:5432/demo?schema=readme" diff --git a/example/readme_example/CHANGELOG.md b/example/readme_example/CHANGELOG.md new file mode 100644 index 00000000..effe43c8 --- /dev/null +++ b/example/readme_example/CHANGELOG.md @@ -0,0 +1,3 @@ +## 1.0.0 + +- Initial version. diff --git a/example/readme_example/README.md b/example/readme_example/README.md new file mode 100644 index 00000000..122a4893 --- /dev/null +++ b/example/readme_example/README.md @@ -0,0 +1,2 @@ +A sample command-line application with an entrypoint in `bin/`, library code +in `lib/`. diff --git a/example/readme_example/analysis_options.yaml b/example/readme_example/analysis_options.yaml new file mode 100644 index 00000000..dee8927a --- /dev/null +++ b/example/readme_example/analysis_options.yaml @@ -0,0 +1,30 @@ +# This file configures the static analysis results for your project (errors, +# warnings, and lints). +# +# This enables the 'recommended' set of lints from `package:lints`. +# This set helps identify many issues that may lead to problems when running +# or consuming Dart code, and enforces writing Dart using a single, idiomatic +# style and format. +# +# If you want a smaller set of lints you can change this to specify +# 'package:lints/core.yaml'. These are just the most critical lints +# (the recommended set includes the core lints). +# The core lints are also what is used by pub.dev for scoring packages. + +include: package:lints/recommended.yaml + +# Uncomment the following section to specify additional rules. + +# linter: +# rules: +# - camel_case_types + +# analyzer: +# exclude: +# - path/to/excluded/files/** + +# For more information about the core and recommended set of lints, see +# https://dart.dev/go/core-lints + +# For additional information about configuring this file, see +# https://dart.dev/guides/language/analysis-options diff --git a/example/readme_example/bin/readme_example.dart b/example/readme_example/bin/readme_example.dart new file mode 100644 index 00000000..07988f76 --- /dev/null +++ b/example/readme_example/bin/readme_example.dart @@ -0,0 +1,33 @@ +import 'package:readme_example/readme_example.dart'; + +void main() async { + final PrismaClient prisma = PrismaClient(); + + try { + final String email = 'hello@odroe.com'; + final User upsertUser = await prisma.user.upsert( + where: UserWhereUniqueInput(email: email), + create: UserCreateInput(email: email), + update: UserUpdateInput( + name: NullableStringFieldUpdateOperationsInput( + set$: PrismaUnion.one(PrismaNull()), + ), + ), + ); + + final List nullableUsers = await prisma.user.findMany( + where: UserWhereInput( + name: StringNullableFilter( + equals: PrismaUnion.one(PrismaNull()), + ), + ), + ); + + print('Update or create user: \n ${upsertUser.toJson()}'); + print(''); + print( + 'Find nullable users: \n ${nullableUsers.map((e) => e.toJson()).toList()}'); + } finally { + await prisma.$disconnect(); + } +} diff --git a/example/readme_example/lib/readme_example.dart b/example/readme_example/lib/readme_example.dart new file mode 100644 index 00000000..83c129a2 --- /dev/null +++ b/example/readme_example/lib/readme_example.dart @@ -0,0 +1,17304 @@ +library prisma.client; // ignore_for_file: no_leading_underscores_for_library_prefixes + +import 'package:json_annotation/json_annotation.dart' as _i1; +import 'package:orm/orm.dart' as _i2; +import 'package:orm/dmmf.dart' as _i3; +import 'package:orm/configure.dart' as _i4; +export 'package:orm/orm.dart' show Datasource, PrismaNull, PrismaUnion; +import 'package:json_annotation/json_annotation.dart' + show $enumDecode, $enumDecodeNullable; +export 'package:orm/orm.dart' show TransactionIsolationLevel; + +part 'readme_example.g.dart'; +// GENERATED CODE - DO NOT MODIFY BY HAND +// +// ignore_for_file: constant_identifier_names, depend_on_referenced_packages, non_constant_identifier_names, unused_import +// +//****************************************************************************** +// This file was generated by Prisma +// GitHub: https://github.com/odroe/prisma-dart +//****************************************************************************** + +enum PostScalarFieldEnum { id, title, content, published, authorId } + +enum QueryMode { + @_i1.JsonValue('default') + default$, + insensitive +} + +enum SortOrder { asc, desc } + +enum UserScalarFieldEnum { id, email, name } + +class PostWhereInput implements _i2.JsonSerializable { + const PostWhereInput({ + this.AND, + this.OR, + this.NOT, + this.id, + this.title, + this.content, + this.published, + this.author, + this.authorId, + }); + + final _i2.PrismaNullable AND; + + final _i2.PrismaNullable> OR; + + final _i2.PrismaNullable NOT; + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable author; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() { + return { + 'AND': AND, + 'OR': OR, + 'NOT': NOT, + 'id': id, + 'title': title, + 'content': content, + 'published': published, + 'author': author, + 'authorId': authorId, + }; + } +} + +class PostOrderByWithRelationInput implements _i2.JsonSerializable { + const PostOrderByWithRelationInput({ + this.id, + this.title, + this.content, + this.published, + this.author, + this.authorId, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable author; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() { + return { + 'id': id, + 'title': title, + 'content': content, + 'published': published, + 'author': author, + 'authorId': authorId, + }; + } +} + +class PostWhereUniqueInput implements _i2.JsonSerializable { + const PostWhereUniqueInput({this.id}); + + final _i2.PrismaNullable id; + + @override + Map toJson() { + return { + 'id': id, + }; + } +} + +class PostOrderByWithAggregationInput implements _i2.JsonSerializable { + const PostOrderByWithAggregationInput({ + this.id, + this.title, + this.content, + this.published, + this.authorId, + this.$count, + this.$avg, + this.$max, + this.$min, + this.$sum, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable authorId; + + final _i2.PrismaNullable $count; + + final _i2.PrismaNullable $avg; + + final _i2.PrismaNullable $max; + + final _i2.PrismaNullable $min; + + final _i2.PrismaNullable $sum; + + @override + Map toJson() { + return { + 'id': id, + 'title': title, + 'content': content, + 'published': published, + 'authorId': authorId, + '_count': $count, + '_avg': $avg, + '_max': $max, + '_min': $min, + '_sum': $sum, + }; + } +} + +class PostScalarWhereWithAggregatesInput implements _i2.JsonSerializable { + const PostScalarWhereWithAggregatesInput({ + this.AND, + this.OR, + this.NOT, + this.id, + this.title, + this.content, + this.published, + this.authorId, + }); + + final _i2.PrismaNullable AND; + + final _i2.PrismaNullable> OR; + + final _i2.PrismaNullable NOT; + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() { + return { + 'AND': AND, + 'OR': OR, + 'NOT': NOT, + 'id': id, + 'title': title, + 'content': content, + 'published': published, + 'authorId': authorId, + }; + } +} + +class UserWhereInput implements _i2.JsonSerializable { + const UserWhereInput({ + this.AND, + this.OR, + this.NOT, + this.id, + this.email, + this.name, + this.posts, + }); + + final _i2.PrismaNullable AND; + + final _i2.PrismaNullable> OR; + + final _i2.PrismaNullable NOT; + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + final _i2.PrismaNullable posts; + + @override + Map toJson() { + return { + 'AND': AND, + 'OR': OR, + 'NOT': NOT, + 'id': id, + 'email': email, + 'name': name, + 'posts': posts, + }; + } +} + +class UserOrderByWithRelationInput implements _i2.JsonSerializable { + const UserOrderByWithRelationInput({ + this.id, + this.email, + this.name, + this.posts, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + final _i2.PrismaNullable posts; + + @override + Map toJson() { + return { + 'id': id, + 'email': email, + 'name': name, + 'posts': posts, + }; + } +} + +class UserWhereUniqueInput implements _i2.JsonSerializable { + const UserWhereUniqueInput({ + this.id, + this.email, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable email; + + @override + Map toJson() { + return { + 'id': id, + 'email': email, + }; + } +} + +class UserOrderByWithAggregationInput implements _i2.JsonSerializable { + const UserOrderByWithAggregationInput({ + this.id, + this.email, + this.name, + this.$count, + this.$avg, + this.$max, + this.$min, + this.$sum, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + final _i2.PrismaNullable $count; + + final _i2.PrismaNullable $avg; + + final _i2.PrismaNullable $max; + + final _i2.PrismaNullable $min; + + final _i2.PrismaNullable $sum; + + @override + Map toJson() { + return { + 'id': id, + 'email': email, + 'name': name, + '_count': $count, + '_avg': $avg, + '_max': $max, + '_min': $min, + '_sum': $sum, + }; + } +} + +class UserScalarWhereWithAggregatesInput implements _i2.JsonSerializable { + const UserScalarWhereWithAggregatesInput({ + this.AND, + this.OR, + this.NOT, + this.id, + this.email, + this.name, + }); + + final _i2.PrismaNullable AND; + + final _i2.PrismaNullable> OR; + + final _i2.PrismaNullable NOT; + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + @override + Map toJson() { + return { + 'AND': AND, + 'OR': OR, + 'NOT': NOT, + 'id': id, + 'email': email, + 'name': name, + }; + } +} + +class PostCreateInput implements _i2.JsonSerializable { + const PostCreateInput({ + required this.title, + this.content, + this.published, + this.author, + }); + + final String title; + + final _i2.PrismaNullable<_i2.PrismaUnion> content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable author; + + @override + Map toJson() { + return { + 'title': title, + 'content': content, + 'published': published, + 'author': author, + }; + } +} + +class PostUncheckedCreateInput implements _i2.JsonSerializable { + const PostUncheckedCreateInput({ + this.id, + required this.title, + this.content, + this.published, + this.authorId, + }); + + final _i2.PrismaNullable id; + + final String title; + + final _i2.PrismaNullable<_i2.PrismaUnion> content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable<_i2.PrismaUnion> authorId; + + @override + Map toJson() { + return { + 'id': id, + 'title': title, + 'content': content, + 'published': published, + 'authorId': authorId, + }; + } +} + +class PostUpdateInput implements _i2.JsonSerializable { + const PostUpdateInput({ + this.title, + this.content, + this.published, + this.author, + }); + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable author; + + @override + Map toJson() { + return { + 'title': title, + 'content': content, + 'published': published, + 'author': author, + }; + } +} + +class PostUncheckedUpdateInput implements _i2.JsonSerializable { + const PostUncheckedUpdateInput({ + this.id, + this.title, + this.content, + this.published, + this.authorId, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() { + return { + 'id': id, + 'title': title, + 'content': content, + 'published': published, + 'authorId': authorId, + }; + } +} + +class PostCreateManyInput implements _i2.JsonSerializable { + const PostCreateManyInput({ + this.id, + required this.title, + this.content, + this.published, + this.authorId, + }); + + final _i2.PrismaNullable id; + + final String title; + + final _i2.PrismaNullable<_i2.PrismaUnion> content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable<_i2.PrismaUnion> authorId; + + @override + Map toJson() { + return { + 'id': id, + 'title': title, + 'content': content, + 'published': published, + 'authorId': authorId, + }; + } +} + +class PostUpdateManyMutationInput implements _i2.JsonSerializable { + const PostUpdateManyMutationInput({ + this.title, + this.content, + this.published, + }); + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + @override + Map toJson() { + return { + 'title': title, + 'content': content, + 'published': published, + }; + } +} + +class PostUncheckedUpdateManyInput implements _i2.JsonSerializable { + const PostUncheckedUpdateManyInput({ + this.id, + this.title, + this.content, + this.published, + this.authorId, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() { + return { + 'id': id, + 'title': title, + 'content': content, + 'published': published, + 'authorId': authorId, + }; + } +} + +class UserCreateInput implements _i2.JsonSerializable { + const UserCreateInput({ + required this.email, + this.name, + this.posts, + }); + + final String email; + + final _i2.PrismaNullable<_i2.PrismaUnion> name; + + final _i2.PrismaNullable posts; + + @override + Map toJson() { + return { + 'email': email, + 'name': name, + 'posts': posts, + }; + } +} + +class UserUncheckedCreateInput implements _i2.JsonSerializable { + const UserUncheckedCreateInput({ + this.id, + required this.email, + this.name, + this.posts, + }); + + final _i2.PrismaNullable id; + + final String email; + + final _i2.PrismaNullable<_i2.PrismaUnion> name; + + final _i2.PrismaNullable + posts; + + @override + Map toJson() { + return { + 'id': id, + 'email': email, + 'name': name, + 'posts': posts, + }; + } +} + +class UserUpdateInput implements _i2.JsonSerializable { + const UserUpdateInput({ + this.email, + this.name, + this.posts, + }); + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + final _i2.PrismaNullable posts; + + @override + Map toJson() { + return { + 'email': email, + 'name': name, + 'posts': posts, + }; + } +} + +class UserUncheckedUpdateInput implements _i2.JsonSerializable { + const UserUncheckedUpdateInput({ + this.id, + this.email, + this.name, + this.posts, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + final _i2.PrismaNullable + posts; + + @override + Map toJson() { + return { + 'id': id, + 'email': email, + 'name': name, + 'posts': posts, + }; + } +} + +class UserCreateManyInput implements _i2.JsonSerializable { + const UserCreateManyInput({ + this.id, + required this.email, + this.name, + }); + + final _i2.PrismaNullable id; + + final String email; + + final _i2.PrismaNullable<_i2.PrismaUnion> name; + + @override + Map toJson() { + return { + 'id': id, + 'email': email, + 'name': name, + }; + } +} + +class UserUpdateManyMutationInput implements _i2.JsonSerializable { + const UserUpdateManyMutationInput({ + this.email, + this.name, + }); + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + @override + Map toJson() { + return { + 'email': email, + 'name': name, + }; + } +} + +class UserUncheckedUpdateManyInput implements _i2.JsonSerializable { + const UserUncheckedUpdateManyInput({ + this.id, + this.email, + this.name, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + @override + Map toJson() { + return { + 'id': id, + 'email': email, + 'name': name, + }; + } +} + +class IntFilter implements _i2.JsonSerializable { + const IntFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.not, + }); + + final _i2.PrismaNullable equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable not; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'not': not, + }; + } +} + +class StringFilter implements _i2.JsonSerializable { + const StringFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.contains, + this.startsWith, + this.endsWith, + this.mode, + this.not, + }); + + final _i2.PrismaNullable equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable contains; + + final _i2.PrismaNullable startsWith; + + final _i2.PrismaNullable endsWith; + + final _i2.PrismaNullable mode; + + final _i2.PrismaNullable not; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'contains': contains, + 'startsWith': startsWith, + 'endsWith': endsWith, + 'mode': mode, + 'not': not, + }; + } +} + +class StringNullableFilter implements _i2.JsonSerializable { + const StringNullableFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.contains, + this.startsWith, + this.endsWith, + this.mode, + this.not, + }); + + final _i2.PrismaNullable<_i2.PrismaUnion> equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable contains; + + final _i2.PrismaNullable startsWith; + + final _i2.PrismaNullable endsWith; + + final _i2.PrismaNullable mode; + + final _i2.PrismaNullable not; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'contains': contains, + 'startsWith': startsWith, + 'endsWith': endsWith, + 'mode': mode, + 'not': not, + }; + } +} + +class BoolFilter implements _i2.JsonSerializable { + const BoolFilter({ + this.equals, + this.not, + }); + + final _i2.PrismaNullable equals; + + final _i2.PrismaNullable not; + + @override + Map toJson() { + return { + 'equals': equals, + 'not': not, + }; + } +} + +class UserRelationFilter implements _i2.JsonSerializable { + const UserRelationFilter({ + this.is$, + this.isNot, + }); + + final _i2.PrismaNullable is$; + + final _i2.PrismaNullable isNot; + + @override + Map toJson() { + return { + 'is': is$, + 'isNot': isNot, + }; + } +} + +class IntNullableFilter implements _i2.JsonSerializable { + const IntNullableFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.not, + }); + + final _i2.PrismaNullable<_i2.PrismaUnion> equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable not; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'not': not, + }; + } +} + +class PostCountOrderByAggregateInput implements _i2.JsonSerializable { + const PostCountOrderByAggregateInput({ + this.id, + this.title, + this.content, + this.published, + this.authorId, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() { + return { + 'id': id, + 'title': title, + 'content': content, + 'published': published, + 'authorId': authorId, + }; + } +} + +class PostAvgOrderByAggregateInput implements _i2.JsonSerializable { + const PostAvgOrderByAggregateInput({ + this.id, + this.authorId, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() { + return { + 'id': id, + 'authorId': authorId, + }; + } +} + +class PostMaxOrderByAggregateInput implements _i2.JsonSerializable { + const PostMaxOrderByAggregateInput({ + this.id, + this.title, + this.content, + this.published, + this.authorId, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() { + return { + 'id': id, + 'title': title, + 'content': content, + 'published': published, + 'authorId': authorId, + }; + } +} + +class PostMinOrderByAggregateInput implements _i2.JsonSerializable { + const PostMinOrderByAggregateInput({ + this.id, + this.title, + this.content, + this.published, + this.authorId, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() { + return { + 'id': id, + 'title': title, + 'content': content, + 'published': published, + 'authorId': authorId, + }; + } +} + +class PostSumOrderByAggregateInput implements _i2.JsonSerializable { + const PostSumOrderByAggregateInput({ + this.id, + this.authorId, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() { + return { + 'id': id, + 'authorId': authorId, + }; + } +} + +class IntWithAggregatesFilter implements _i2.JsonSerializable { + const IntWithAggregatesFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.not, + this.$count, + this.$avg, + this.$sum, + this.$min, + this.$max, + }); + + final _i2.PrismaNullable equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable not; + + final _i2.PrismaNullable $count; + + final _i2.PrismaNullable $avg; + + final _i2.PrismaNullable $sum; + + final _i2.PrismaNullable $min; + + final _i2.PrismaNullable $max; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'not': not, + '_count': $count, + '_avg': $avg, + '_sum': $sum, + '_min': $min, + '_max': $max, + }; + } +} + +class StringWithAggregatesFilter implements _i2.JsonSerializable { + const StringWithAggregatesFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.contains, + this.startsWith, + this.endsWith, + this.mode, + this.not, + this.$count, + this.$min, + this.$max, + }); + + final _i2.PrismaNullable equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable contains; + + final _i2.PrismaNullable startsWith; + + final _i2.PrismaNullable endsWith; + + final _i2.PrismaNullable mode; + + final _i2.PrismaNullable not; + + final _i2.PrismaNullable $count; + + final _i2.PrismaNullable $min; + + final _i2.PrismaNullable $max; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'contains': contains, + 'startsWith': startsWith, + 'endsWith': endsWith, + 'mode': mode, + 'not': not, + '_count': $count, + '_min': $min, + '_max': $max, + }; + } +} + +class StringNullableWithAggregatesFilter implements _i2.JsonSerializable { + const StringNullableWithAggregatesFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.contains, + this.startsWith, + this.endsWith, + this.mode, + this.not, + this.$count, + this.$min, + this.$max, + }); + + final _i2.PrismaNullable<_i2.PrismaUnion> equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable contains; + + final _i2.PrismaNullable startsWith; + + final _i2.PrismaNullable endsWith; + + final _i2.PrismaNullable mode; + + final _i2.PrismaNullable not; + + final _i2.PrismaNullable $count; + + final _i2.PrismaNullable $min; + + final _i2.PrismaNullable $max; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'contains': contains, + 'startsWith': startsWith, + 'endsWith': endsWith, + 'mode': mode, + 'not': not, + '_count': $count, + '_min': $min, + '_max': $max, + }; + } +} + +class BoolWithAggregatesFilter implements _i2.JsonSerializable { + const BoolWithAggregatesFilter({ + this.equals, + this.not, + this.$count, + this.$min, + this.$max, + }); + + final _i2.PrismaNullable equals; + + final _i2.PrismaNullable not; + + final _i2.PrismaNullable $count; + + final _i2.PrismaNullable $min; + + final _i2.PrismaNullable $max; + + @override + Map toJson() { + return { + 'equals': equals, + 'not': not, + '_count': $count, + '_min': $min, + '_max': $max, + }; + } +} + +class IntNullableWithAggregatesFilter implements _i2.JsonSerializable { + const IntNullableWithAggregatesFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.not, + this.$count, + this.$avg, + this.$sum, + this.$min, + this.$max, + }); + + final _i2.PrismaNullable<_i2.PrismaUnion> equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable not; + + final _i2.PrismaNullable $count; + + final _i2.PrismaNullable $avg; + + final _i2.PrismaNullable $sum; + + final _i2.PrismaNullable $min; + + final _i2.PrismaNullable $max; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'not': not, + '_count': $count, + '_avg': $avg, + '_sum': $sum, + '_min': $min, + '_max': $max, + }; + } +} + +class PostListRelationFilter implements _i2.JsonSerializable { + const PostListRelationFilter({ + this.every, + this.some, + this.none, + }); + + final _i2.PrismaNullable every; + + final _i2.PrismaNullable some; + + final _i2.PrismaNullable none; + + @override + Map toJson() { + return { + 'every': every, + 'some': some, + 'none': none, + }; + } +} + +class PostOrderByRelationAggregateInput implements _i2.JsonSerializable { + const PostOrderByRelationAggregateInput({this.$count}); + + final _i2.PrismaNullable $count; + + @override + Map toJson() { + return { + '_count': $count, + }; + } +} + +class UserCountOrderByAggregateInput implements _i2.JsonSerializable { + const UserCountOrderByAggregateInput({ + this.id, + this.email, + this.name, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + @override + Map toJson() { + return { + 'id': id, + 'email': email, + 'name': name, + }; + } +} + +class UserAvgOrderByAggregateInput implements _i2.JsonSerializable { + const UserAvgOrderByAggregateInput({this.id}); + + final _i2.PrismaNullable id; + + @override + Map toJson() { + return { + 'id': id, + }; + } +} + +class UserMaxOrderByAggregateInput implements _i2.JsonSerializable { + const UserMaxOrderByAggregateInput({ + this.id, + this.email, + this.name, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + @override + Map toJson() { + return { + 'id': id, + 'email': email, + 'name': name, + }; + } +} + +class UserMinOrderByAggregateInput implements _i2.JsonSerializable { + const UserMinOrderByAggregateInput({ + this.id, + this.email, + this.name, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + @override + Map toJson() { + return { + 'id': id, + 'email': email, + 'name': name, + }; + } +} + +class UserSumOrderByAggregateInput implements _i2.JsonSerializable { + const UserSumOrderByAggregateInput({this.id}); + + final _i2.PrismaNullable id; + + @override + Map toJson() { + return { + 'id': id, + }; + } +} + +class UserCreateNestedOneWithoutPostsInput implements _i2.JsonSerializable { + const UserCreateNestedOneWithoutPostsInput({ + this.create, + this.connectOrCreate, + this.connect, + }); + + final _i2.PrismaNullable create; + + final _i2.PrismaNullable + connectOrCreate; + + final _i2.PrismaNullable connect; + + @override + Map toJson() { + return { + 'create': create, + 'connectOrCreate': connectOrCreate, + 'connect': connect, + }; + } +} + +class StringFieldUpdateOperationsInput implements _i2.JsonSerializable { + const StringFieldUpdateOperationsInput({this.set$}); + + final _i2.PrismaNullable set$; + + @override + Map toJson() { + return { + 'set': set$, + }; + } +} + +class NullableStringFieldUpdateOperationsInput implements _i2.JsonSerializable { + const NullableStringFieldUpdateOperationsInput({this.set$}); + + final _i2.PrismaNullable<_i2.PrismaUnion> set$; + + @override + Map toJson() { + return { + 'set': set$, + }; + } +} + +class BoolFieldUpdateOperationsInput implements _i2.JsonSerializable { + const BoolFieldUpdateOperationsInput({this.set$}); + + final _i2.PrismaNullable set$; + + @override + Map toJson() { + return { + 'set': set$, + }; + } +} + +class UserUpdateOneWithoutPostsNestedInput implements _i2.JsonSerializable { + const UserUpdateOneWithoutPostsNestedInput({ + this.create, + this.connectOrCreate, + this.upsert, + this.disconnect, + this.delete, + this.connect, + this.update, + }); + + final _i2.PrismaNullable create; + + final _i2.PrismaNullable + connectOrCreate; + + final _i2.PrismaNullable upsert; + + final _i2.PrismaNullable disconnect; + + final _i2.PrismaNullable delete; + + final _i2.PrismaNullable connect; + + final _i2.PrismaNullable update; + + @override + Map toJson() { + return { + 'create': create, + 'connectOrCreate': connectOrCreate, + 'upsert': upsert, + 'disconnect': disconnect, + 'delete': delete, + 'connect': connect, + 'update': update, + }; + } +} + +class IntFieldUpdateOperationsInput implements _i2.JsonSerializable { + const IntFieldUpdateOperationsInput({ + this.set$, + this.increment, + this.decrement, + this.multiply, + this.divide, + }); + + final _i2.PrismaNullable set$; + + final _i2.PrismaNullable increment; + + final _i2.PrismaNullable decrement; + + final _i2.PrismaNullable multiply; + + final _i2.PrismaNullable divide; + + @override + Map toJson() { + return { + 'set': set$, + 'increment': increment, + 'decrement': decrement, + 'multiply': multiply, + 'divide': divide, + }; + } +} + +class NullableIntFieldUpdateOperationsInput implements _i2.JsonSerializable { + const NullableIntFieldUpdateOperationsInput({ + this.set$, + this.increment, + this.decrement, + this.multiply, + this.divide, + }); + + final _i2.PrismaNullable<_i2.PrismaUnion> set$; + + final _i2.PrismaNullable increment; + + final _i2.PrismaNullable decrement; + + final _i2.PrismaNullable multiply; + + final _i2.PrismaNullable divide; + + @override + Map toJson() { + return { + 'set': set$, + 'increment': increment, + 'decrement': decrement, + 'multiply': multiply, + 'divide': divide, + }; + } +} + +class PostCreateNestedManyWithoutAuthorInput implements _i2.JsonSerializable { + const PostCreateNestedManyWithoutAuthorInput({ + this.create, + this.connectOrCreate, + this.createMany, + this.connect, + }); + + final _i2.PrismaNullable create; + + final _i2.PrismaNullable + connectOrCreate; + + final _i2.PrismaNullable createMany; + + final _i2.PrismaNullable connect; + + @override + Map toJson() { + return { + 'create': create, + 'connectOrCreate': connectOrCreate, + 'createMany': createMany, + 'connect': connect, + }; + } +} + +class PostUncheckedCreateNestedManyWithoutAuthorInput + implements _i2.JsonSerializable { + const PostUncheckedCreateNestedManyWithoutAuthorInput({ + this.create, + this.connectOrCreate, + this.createMany, + this.connect, + }); + + final _i2.PrismaNullable create; + + final _i2.PrismaNullable + connectOrCreate; + + final _i2.PrismaNullable createMany; + + final _i2.PrismaNullable connect; + + @override + Map toJson() { + return { + 'create': create, + 'connectOrCreate': connectOrCreate, + 'createMany': createMany, + 'connect': connect, + }; + } +} + +class PostUpdateManyWithoutAuthorNestedInput implements _i2.JsonSerializable { + const PostUpdateManyWithoutAuthorNestedInput({ + this.create, + this.connectOrCreate, + this.upsert, + this.createMany, + this.set$, + this.disconnect, + this.delete, + this.connect, + this.update, + this.updateMany, + this.deleteMany, + }); + + final _i2.PrismaNullable create; + + final _i2.PrismaNullable + connectOrCreate; + + final _i2.PrismaNullable upsert; + + final _i2.PrismaNullable createMany; + + final _i2.PrismaNullable set$; + + final _i2.PrismaNullable disconnect; + + final _i2.PrismaNullable delete; + + final _i2.PrismaNullable connect; + + final _i2.PrismaNullable update; + + final _i2.PrismaNullable + updateMany; + + final _i2.PrismaNullable deleteMany; + + @override + Map toJson() { + return { + 'create': create, + 'connectOrCreate': connectOrCreate, + 'upsert': upsert, + 'createMany': createMany, + 'set': set$, + 'disconnect': disconnect, + 'delete': delete, + 'connect': connect, + 'update': update, + 'updateMany': updateMany, + 'deleteMany': deleteMany, + }; + } +} + +class PostUncheckedUpdateManyWithoutAuthorNestedInput + implements _i2.JsonSerializable { + const PostUncheckedUpdateManyWithoutAuthorNestedInput({ + this.create, + this.connectOrCreate, + this.upsert, + this.createMany, + this.set$, + this.disconnect, + this.delete, + this.connect, + this.update, + this.updateMany, + this.deleteMany, + }); + + final _i2.PrismaNullable create; + + final _i2.PrismaNullable + connectOrCreate; + + final _i2.PrismaNullable upsert; + + final _i2.PrismaNullable createMany; + + final _i2.PrismaNullable set$; + + final _i2.PrismaNullable disconnect; + + final _i2.PrismaNullable delete; + + final _i2.PrismaNullable connect; + + final _i2.PrismaNullable update; + + final _i2.PrismaNullable + updateMany; + + final _i2.PrismaNullable deleteMany; + + @override + Map toJson() { + return { + 'create': create, + 'connectOrCreate': connectOrCreate, + 'upsert': upsert, + 'createMany': createMany, + 'set': set$, + 'disconnect': disconnect, + 'delete': delete, + 'connect': connect, + 'update': update, + 'updateMany': updateMany, + 'deleteMany': deleteMany, + }; + } +} + +class NestedIntFilter implements _i2.JsonSerializable { + const NestedIntFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.not, + }); + + final _i2.PrismaNullable equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable not; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'not': not, + }; + } +} + +class NestedStringFilter implements _i2.JsonSerializable { + const NestedStringFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.contains, + this.startsWith, + this.endsWith, + this.not, + }); + + final _i2.PrismaNullable equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable contains; + + final _i2.PrismaNullable startsWith; + + final _i2.PrismaNullable endsWith; + + final _i2.PrismaNullable not; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'contains': contains, + 'startsWith': startsWith, + 'endsWith': endsWith, + 'not': not, + }; + } +} + +class NestedStringNullableFilter implements _i2.JsonSerializable { + const NestedStringNullableFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.contains, + this.startsWith, + this.endsWith, + this.not, + }); + + final _i2.PrismaNullable<_i2.PrismaUnion> equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable contains; + + final _i2.PrismaNullable startsWith; + + final _i2.PrismaNullable endsWith; + + final _i2.PrismaNullable not; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'contains': contains, + 'startsWith': startsWith, + 'endsWith': endsWith, + 'not': not, + }; + } +} + +class NestedBoolFilter implements _i2.JsonSerializable { + const NestedBoolFilter({ + this.equals, + this.not, + }); + + final _i2.PrismaNullable equals; + + final _i2.PrismaNullable not; + + @override + Map toJson() { + return { + 'equals': equals, + 'not': not, + }; + } +} + +class NestedIntNullableFilter implements _i2.JsonSerializable { + const NestedIntNullableFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.not, + }); + + final _i2.PrismaNullable<_i2.PrismaUnion> equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable not; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'not': not, + }; + } +} + +class NestedIntWithAggregatesFilter implements _i2.JsonSerializable { + const NestedIntWithAggregatesFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.not, + this.$count, + this.$avg, + this.$sum, + this.$min, + this.$max, + }); + + final _i2.PrismaNullable equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable not; + + final _i2.PrismaNullable $count; + + final _i2.PrismaNullable $avg; + + final _i2.PrismaNullable $sum; + + final _i2.PrismaNullable $min; + + final _i2.PrismaNullable $max; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'not': not, + '_count': $count, + '_avg': $avg, + '_sum': $sum, + '_min': $min, + '_max': $max, + }; + } +} + +class NestedFloatFilter implements _i2.JsonSerializable { + const NestedFloatFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.not, + }); + + final _i2.PrismaNullable equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable not; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'not': not, + }; + } +} + +class NestedStringWithAggregatesFilter implements _i2.JsonSerializable { + const NestedStringWithAggregatesFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.contains, + this.startsWith, + this.endsWith, + this.not, + this.$count, + this.$min, + this.$max, + }); + + final _i2.PrismaNullable equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable contains; + + final _i2.PrismaNullable startsWith; + + final _i2.PrismaNullable endsWith; + + final _i2.PrismaNullable not; + + final _i2.PrismaNullable $count; + + final _i2.PrismaNullable $min; + + final _i2.PrismaNullable $max; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'contains': contains, + 'startsWith': startsWith, + 'endsWith': endsWith, + 'not': not, + '_count': $count, + '_min': $min, + '_max': $max, + }; + } +} + +class NestedStringNullableWithAggregatesFilter implements _i2.JsonSerializable { + const NestedStringNullableWithAggregatesFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.contains, + this.startsWith, + this.endsWith, + this.not, + this.$count, + this.$min, + this.$max, + }); + + final _i2.PrismaNullable<_i2.PrismaUnion> equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable contains; + + final _i2.PrismaNullable startsWith; + + final _i2.PrismaNullable endsWith; + + final _i2.PrismaNullable not; + + final _i2.PrismaNullable $count; + + final _i2.PrismaNullable $min; + + final _i2.PrismaNullable $max; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'contains': contains, + 'startsWith': startsWith, + 'endsWith': endsWith, + 'not': not, + '_count': $count, + '_min': $min, + '_max': $max, + }; + } +} + +class NestedBoolWithAggregatesFilter implements _i2.JsonSerializable { + const NestedBoolWithAggregatesFilter({ + this.equals, + this.not, + this.$count, + this.$min, + this.$max, + }); + + final _i2.PrismaNullable equals; + + final _i2.PrismaNullable not; + + final _i2.PrismaNullable $count; + + final _i2.PrismaNullable $min; + + final _i2.PrismaNullable $max; + + @override + Map toJson() { + return { + 'equals': equals, + 'not': not, + '_count': $count, + '_min': $min, + '_max': $max, + }; + } +} + +class NestedIntNullableWithAggregatesFilter implements _i2.JsonSerializable { + const NestedIntNullableWithAggregatesFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.not, + this.$count, + this.$avg, + this.$sum, + this.$min, + this.$max, + }); + + final _i2.PrismaNullable<_i2.PrismaUnion> equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable not; + + final _i2.PrismaNullable $count; + + final _i2.PrismaNullable $avg; + + final _i2.PrismaNullable $sum; + + final _i2.PrismaNullable $min; + + final _i2.PrismaNullable $max; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'not': not, + '_count': $count, + '_avg': $avg, + '_sum': $sum, + '_min': $min, + '_max': $max, + }; + } +} + +class NestedFloatNullableFilter implements _i2.JsonSerializable { + const NestedFloatNullableFilter({ + this.equals, + this.in$, + this.notIn, + this.lt, + this.lte, + this.gt, + this.gte, + this.not, + }); + + final _i2.PrismaNullable<_i2.PrismaUnion> equals; + + final _i2.PrismaNullable> in$; + + final _i2.PrismaNullable> notIn; + + final _i2.PrismaNullable lt; + + final _i2.PrismaNullable lte; + + final _i2.PrismaNullable gt; + + final _i2.PrismaNullable gte; + + final _i2.PrismaNullable not; + + @override + Map toJson() { + return { + 'equals': equals, + 'in': in$, + 'notIn': notIn, + 'lt': lt, + 'lte': lte, + 'gt': gt, + 'gte': gte, + 'not': not, + }; + } +} + +class UserCreateWithoutPostsInput implements _i2.JsonSerializable { + const UserCreateWithoutPostsInput({ + required this.email, + this.name, + }); + + final String email; + + final _i2.PrismaNullable<_i2.PrismaUnion> name; + + @override + Map toJson() { + return { + 'email': email, + 'name': name, + }; + } +} + +class UserUncheckedCreateWithoutPostsInput implements _i2.JsonSerializable { + const UserUncheckedCreateWithoutPostsInput({ + this.id, + required this.email, + this.name, + }); + + final _i2.PrismaNullable id; + + final String email; + + final _i2.PrismaNullable<_i2.PrismaUnion> name; + + @override + Map toJson() { + return { + 'id': id, + 'email': email, + 'name': name, + }; + } +} + +class UserCreateOrConnectWithoutPostsInput implements _i2.JsonSerializable { + const UserCreateOrConnectWithoutPostsInput({ + required this.where, + required this.create, + }); + + final UserWhereUniqueInput where; + + final UserCreateWithoutPostsInput create; + + @override + Map toJson() { + return { + 'where': where, + 'create': create, + }; + } +} + +class UserUpsertWithoutPostsInput implements _i2.JsonSerializable { + const UserUpsertWithoutPostsInput({ + required this.update, + required this.create, + }); + + final UserUpdateWithoutPostsInput update; + + final UserCreateWithoutPostsInput create; + + @override + Map toJson() { + return { + 'update': update, + 'create': create, + }; + } +} + +class UserUpdateWithoutPostsInput implements _i2.JsonSerializable { + const UserUpdateWithoutPostsInput({ + this.email, + this.name, + }); + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + @override + Map toJson() { + return { + 'email': email, + 'name': name, + }; + } +} + +class UserUncheckedUpdateWithoutPostsInput implements _i2.JsonSerializable { + const UserUncheckedUpdateWithoutPostsInput({ + this.id, + this.email, + this.name, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + @override + Map toJson() { + return { + 'id': id, + 'email': email, + 'name': name, + }; + } +} + +class PostCreateWithoutAuthorInput implements _i2.JsonSerializable { + const PostCreateWithoutAuthorInput({ + required this.title, + this.content, + this.published, + }); + + final String title; + + final _i2.PrismaNullable<_i2.PrismaUnion> content; + + final _i2.PrismaNullable published; + + @override + Map toJson() { + return { + 'title': title, + 'content': content, + 'published': published, + }; + } +} + +class PostUncheckedCreateWithoutAuthorInput implements _i2.JsonSerializable { + const PostUncheckedCreateWithoutAuthorInput({ + this.id, + required this.title, + this.content, + this.published, + }); + + final _i2.PrismaNullable id; + + final String title; + + final _i2.PrismaNullable<_i2.PrismaUnion> content; + + final _i2.PrismaNullable published; + + @override + Map toJson() { + return { + 'id': id, + 'title': title, + 'content': content, + 'published': published, + }; + } +} + +class PostCreateOrConnectWithoutAuthorInput implements _i2.JsonSerializable { + const PostCreateOrConnectWithoutAuthorInput({ + required this.where, + required this.create, + }); + + final PostWhereUniqueInput where; + + final PostCreateWithoutAuthorInput create; + + @override + Map toJson() { + return { + 'where': where, + 'create': create, + }; + } +} + +class PostCreateManyAuthorInputEnvelope implements _i2.JsonSerializable { + const PostCreateManyAuthorInputEnvelope({ + required this.data, + this.skipDuplicates, + }); + + final List data; + + final _i2.PrismaNullable skipDuplicates; + + @override + Map toJson() { + return { + 'data': data, + 'skipDuplicates': skipDuplicates, + }; + } +} + +class PostUpsertWithWhereUniqueWithoutAuthorInput + implements _i2.JsonSerializable { + const PostUpsertWithWhereUniqueWithoutAuthorInput({ + required this.where, + required this.update, + required this.create, + }); + + final PostWhereUniqueInput where; + + final PostUpdateWithoutAuthorInput update; + + final PostCreateWithoutAuthorInput create; + + @override + Map toJson() { + return { + 'where': where, + 'update': update, + 'create': create, + }; + } +} + +class PostUpdateWithWhereUniqueWithoutAuthorInput + implements _i2.JsonSerializable { + const PostUpdateWithWhereUniqueWithoutAuthorInput({ + required this.where, + required this.data, + }); + + final PostWhereUniqueInput where; + + final PostUpdateWithoutAuthorInput data; + + @override + Map toJson() { + return { + 'where': where, + 'data': data, + }; + } +} + +class PostUpdateManyWithWhereWithoutAuthorInput + implements _i2.JsonSerializable { + const PostUpdateManyWithWhereWithoutAuthorInput({ + required this.where, + required this.data, + }); + + final PostScalarWhereInput where; + + final PostUpdateManyMutationInput data; + + @override + Map toJson() { + return { + 'where': where, + 'data': data, + }; + } +} + +class PostScalarWhereInput implements _i2.JsonSerializable { + const PostScalarWhereInput({ + this.AND, + this.OR, + this.NOT, + this.id, + this.title, + this.content, + this.published, + this.authorId, + }); + + final _i2.PrismaNullable AND; + + final _i2.PrismaNullable> OR; + + final _i2.PrismaNullable NOT; + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() { + return { + 'AND': AND, + 'OR': OR, + 'NOT': NOT, + 'id': id, + 'title': title, + 'content': content, + 'published': published, + 'authorId': authorId, + }; + } +} + +class PostCreateManyAuthorInput implements _i2.JsonSerializable { + const PostCreateManyAuthorInput({ + this.id, + required this.title, + this.content, + this.published, + }); + + final _i2.PrismaNullable id; + + final String title; + + final _i2.PrismaNullable<_i2.PrismaUnion> content; + + final _i2.PrismaNullable published; + + @override + Map toJson() { + return { + 'id': id, + 'title': title, + 'content': content, + 'published': published, + }; + } +} + +class PostUpdateWithoutAuthorInput implements _i2.JsonSerializable { + const PostUpdateWithoutAuthorInput({ + this.title, + this.content, + this.published, + }); + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + @override + Map toJson() { + return { + 'title': title, + 'content': content, + 'published': published, + }; + } +} + +class PostUncheckedUpdateWithoutAuthorInput implements _i2.JsonSerializable { + const PostUncheckedUpdateWithoutAuthorInput({ + this.id, + this.title, + this.content, + this.published, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + @override + Map toJson() { + return { + 'id': id, + 'title': title, + 'content': content, + 'published': published, + }; + } +} + +class PostUncheckedUpdateManyWithoutPostsInput implements _i2.JsonSerializable { + const PostUncheckedUpdateManyWithoutPostsInput({ + this.id, + this.title, + this.content, + this.published, + }); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + @override + Map toJson() { + return { + 'id': id, + 'title': title, + 'content': content, + 'published': published, + }; + } +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class AggregatePost implements _i2.JsonSerializable { + const AggregatePost({ + this.$count, + this.$avg, + this.$sum, + this.$min, + this.$max, + }); + + factory AggregatePost.fromJson(Map json) => + _$AggregatePostFromJson(json); + + @_i1.JsonKey(name: '_count') + final _i2.PrismaNullable $count; + + @_i1.JsonKey(name: '_avg') + final _i2.PrismaNullable $avg; + + @_i1.JsonKey(name: '_sum') + final _i2.PrismaNullable $sum; + + @_i1.JsonKey(name: '_min') + final _i2.PrismaNullable $min; + + @_i1.JsonKey(name: '_max') + final _i2.PrismaNullable $max; + + @override + Map toJson() => _$AggregatePostToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class PostGroupByOutputType implements _i2.JsonSerializable { + const PostGroupByOutputType({ + required this.id, + required this.title, + this.content, + required this.published, + this.authorId, + this.$count, + this.$avg, + this.$sum, + this.$min, + this.$max, + }); + + factory PostGroupByOutputType.fromJson(Map json) => + _$PostGroupByOutputTypeFromJson(json); + + final int id; + + final String title; + + final _i2.PrismaNullable content; + + final bool published; + + final _i2.PrismaNullable authorId; + + @_i1.JsonKey(name: '_count') + final _i2.PrismaNullable $count; + + @_i1.JsonKey(name: '_avg') + final _i2.PrismaNullable $avg; + + @_i1.JsonKey(name: '_sum') + final _i2.PrismaNullable $sum; + + @_i1.JsonKey(name: '_min') + final _i2.PrismaNullable $min; + + @_i1.JsonKey(name: '_max') + final _i2.PrismaNullable $max; + + @override + Map toJson() => _$PostGroupByOutputTypeToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class AggregateUser implements _i2.JsonSerializable { + const AggregateUser({ + this.$count, + this.$avg, + this.$sum, + this.$min, + this.$max, + }); + + factory AggregateUser.fromJson(Map json) => + _$AggregateUserFromJson(json); + + @_i1.JsonKey(name: '_count') + final _i2.PrismaNullable $count; + + @_i1.JsonKey(name: '_avg') + final _i2.PrismaNullable $avg; + + @_i1.JsonKey(name: '_sum') + final _i2.PrismaNullable $sum; + + @_i1.JsonKey(name: '_min') + final _i2.PrismaNullable $min; + + @_i1.JsonKey(name: '_max') + final _i2.PrismaNullable $max; + + @override + Map toJson() => _$AggregateUserToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class UserGroupByOutputType implements _i2.JsonSerializable { + const UserGroupByOutputType({ + required this.id, + required this.email, + this.name, + this.$count, + this.$avg, + this.$sum, + this.$min, + this.$max, + }); + + factory UserGroupByOutputType.fromJson(Map json) => + _$UserGroupByOutputTypeFromJson(json); + + final int id; + + final String email; + + final _i2.PrismaNullable name; + + @_i1.JsonKey(name: '_count') + final _i2.PrismaNullable $count; + + @_i1.JsonKey(name: '_avg') + final _i2.PrismaNullable $avg; + + @_i1.JsonKey(name: '_sum') + final _i2.PrismaNullable $sum; + + @_i1.JsonKey(name: '_min') + final _i2.PrismaNullable $min; + + @_i1.JsonKey(name: '_max') + final _i2.PrismaNullable $max; + + @override + Map toJson() => _$UserGroupByOutputTypeToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class AffectedRowsOutput implements _i2.JsonSerializable { + const AffectedRowsOutput({required this.count}); + + factory AffectedRowsOutput.fromJson(Map json) => + _$AffectedRowsOutputFromJson(json); + + final int count; + + @override + Map toJson() => _$AffectedRowsOutputToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class PostCountAggregateOutputType implements _i2.JsonSerializable { + const PostCountAggregateOutputType({ + required this.id, + required this.title, + required this.content, + required this.published, + required this.authorId, + required this.$all, + }); + + factory PostCountAggregateOutputType.fromJson(Map json) => + _$PostCountAggregateOutputTypeFromJson(json); + + final int id; + + final int title; + + final int content; + + final int published; + + final int authorId; + + @_i1.JsonKey(name: '_all') + final int $all; + + @override + Map toJson() => _$PostCountAggregateOutputTypeToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class PostAvgAggregateOutputType implements _i2.JsonSerializable { + const PostAvgAggregateOutputType({ + this.id, + this.authorId, + }); + + factory PostAvgAggregateOutputType.fromJson(Map json) => + _$PostAvgAggregateOutputTypeFromJson(json); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() => _$PostAvgAggregateOutputTypeToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class PostSumAggregateOutputType implements _i2.JsonSerializable { + const PostSumAggregateOutputType({ + this.id, + this.authorId, + }); + + factory PostSumAggregateOutputType.fromJson(Map json) => + _$PostSumAggregateOutputTypeFromJson(json); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() => _$PostSumAggregateOutputTypeToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class PostMinAggregateOutputType implements _i2.JsonSerializable { + const PostMinAggregateOutputType({ + this.id, + this.title, + this.content, + this.published, + this.authorId, + }); + + factory PostMinAggregateOutputType.fromJson(Map json) => + _$PostMinAggregateOutputTypeFromJson(json); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() => _$PostMinAggregateOutputTypeToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class PostMaxAggregateOutputType implements _i2.JsonSerializable { + const PostMaxAggregateOutputType({ + this.id, + this.title, + this.content, + this.published, + this.authorId, + }); + + factory PostMaxAggregateOutputType.fromJson(Map json) => + _$PostMaxAggregateOutputTypeFromJson(json); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable title; + + final _i2.PrismaNullable content; + + final _i2.PrismaNullable published; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() => _$PostMaxAggregateOutputTypeToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class UserCountOutputType implements _i2.JsonSerializable { + const UserCountOutputType({required this.posts}); + + factory UserCountOutputType.fromJson(Map json) => + _$UserCountOutputTypeFromJson(json); + + final int posts; + + @override + Map toJson() => _$UserCountOutputTypeToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class UserCountAggregateOutputType implements _i2.JsonSerializable { + const UserCountAggregateOutputType({ + required this.id, + required this.email, + required this.name, + required this.$all, + }); + + factory UserCountAggregateOutputType.fromJson(Map json) => + _$UserCountAggregateOutputTypeFromJson(json); + + final int id; + + final int email; + + final int name; + + @_i1.JsonKey(name: '_all') + final int $all; + + @override + Map toJson() => _$UserCountAggregateOutputTypeToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class UserAvgAggregateOutputType implements _i2.JsonSerializable { + const UserAvgAggregateOutputType({this.id}); + + factory UserAvgAggregateOutputType.fromJson(Map json) => + _$UserAvgAggregateOutputTypeFromJson(json); + + final _i2.PrismaNullable id; + + @override + Map toJson() => _$UserAvgAggregateOutputTypeToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class UserSumAggregateOutputType implements _i2.JsonSerializable { + const UserSumAggregateOutputType({this.id}); + + factory UserSumAggregateOutputType.fromJson(Map json) => + _$UserSumAggregateOutputTypeFromJson(json); + + final _i2.PrismaNullable id; + + @override + Map toJson() => _$UserSumAggregateOutputTypeToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class UserMinAggregateOutputType implements _i2.JsonSerializable { + const UserMinAggregateOutputType({ + this.id, + this.email, + this.name, + }); + + factory UserMinAggregateOutputType.fromJson(Map json) => + _$UserMinAggregateOutputTypeFromJson(json); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + @override + Map toJson() => _$UserMinAggregateOutputTypeToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class UserMaxAggregateOutputType implements _i2.JsonSerializable { + const UserMaxAggregateOutputType({ + this.id, + this.email, + this.name, + }); + + factory UserMaxAggregateOutputType.fromJson(Map json) => + _$UserMaxAggregateOutputTypeFromJson(json); + + final _i2.PrismaNullable id; + + final _i2.PrismaNullable email; + + final _i2.PrismaNullable name; + + @override + Map toJson() => _$UserMaxAggregateOutputTypeToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class Post implements _i2.JsonSerializable { + const Post({ + required this.id, + required this.title, + this.content, + required this.published, + this.authorId, + }); + + factory Post.fromJson(Map json) => _$PostFromJson(json); + + final int id; + + final String title; + + final _i2.PrismaNullable content; + + final bool published; + + final _i2.PrismaNullable authorId; + + @override + Map toJson() => _$PostToJson(this); +} + +@_i1.JsonSerializable( + createToJson: true, + createFactory: true, + explicitToJson: true, +) +class User implements _i2.JsonSerializable { + const User({ + required this.id, + required this.email, + this.name, + }); + + factory User.fromJson(Map json) => _$UserFromJson(json); + + final int id; + + final String email; + + final _i2.PrismaNullable name; + + @override + Map toJson() => _$UserToJson(this); +} + +class PostDelegate { + const PostDelegate._( + this._engine, [ + this._headers, + ]); + + final _i2.Engine _engine; + + final _i2.PrismaNullable<_i2.QueryEngineRequestHeaders> _headers; + + Future<_i2.PrismaNullable> findUnique( + {required PostWhereUniqueInput where}) async { + final String sdl = _i2.GraphQLField( + 'query', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'findUniquePost', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: true, + ) + ]), + fields: _i2.GraphQLFields(PostScalarFieldEnum.values + .map((PostScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return result.data['findUniquePost'] == null + ? null + : Post.fromJson((result.data['findUniquePost'] as Map).cast()); + } + + Future<_i2.PrismaNullable> findFirst({ + _i2.PrismaNullable where, + _i2.PrismaNullable> orderBy, + _i2.PrismaNullable cursor, + _i2.PrismaNullable take, + _i2.PrismaNullable skip, + _i2.PrismaNullable> distinct, + }) async { + final String sdl = _i2.GraphQLField( + 'query', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'findFirstPost', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: false, + ), + _i2.GraphQLArg( + 'orderBy', + orderBy, + isRequired: false, + ), + _i2.GraphQLArg( + 'cursor', + cursor, + isRequired: false, + ), + _i2.GraphQLArg( + 'take', + take, + isRequired: false, + ), + _i2.GraphQLArg( + 'skip', + skip, + isRequired: false, + ), + _i2.GraphQLArg( + 'distinct', + distinct, + isRequired: false, + ), + ]), + fields: _i2.GraphQLFields(PostScalarFieldEnum.values + .map((PostScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return result.data['findFirstPost'] == null + ? null + : Post.fromJson((result.data['findFirstPost'] as Map).cast()); + } + + Future> findMany({ + _i2.PrismaNullable where, + _i2.PrismaNullable> orderBy, + _i2.PrismaNullable cursor, + _i2.PrismaNullable take, + _i2.PrismaNullable skip, + _i2.PrismaNullable> distinct, + }) async { + final String sdl = _i2.GraphQLField( + 'query', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'findManyPost', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: false, + ), + _i2.GraphQLArg( + 'orderBy', + orderBy, + isRequired: false, + ), + _i2.GraphQLArg( + 'cursor', + cursor, + isRequired: false, + ), + _i2.GraphQLArg( + 'take', + take, + isRequired: false, + ), + _i2.GraphQLArg( + 'skip', + skip, + isRequired: false, + ), + _i2.GraphQLArg( + 'distinct', + distinct, + isRequired: false, + ), + ]), + fields: _i2.GraphQLFields(PostScalarFieldEnum.values + .map((PostScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return (result.data['findManyPost'] as List) + .whereType() + .map((Map e) => Post.fromJson(e.cast())) + .toList(); + } + + Future create({required PostCreateInput data}) async { + final String sdl = _i2.GraphQLField( + 'mutation', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'createOnePost', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'data', + data, + isRequired: true, + ) + ]), + fields: _i2.GraphQLFields(PostScalarFieldEnum.values + .map((PostScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return Post.fromJson((result.data['createOnePost'] as Map).cast()); + } + + Future createMany({ + required List data, + _i2.PrismaNullable skipDuplicates, + }) async { + final String sdl = _i2.GraphQLField( + 'mutation', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'createManyPost', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'data', + data, + isRequired: true, + ), + _i2.GraphQLArg( + 'skipDuplicates', + skipDuplicates, + isRequired: false, + ), + ]), + fields: _i2.GraphQLFields(PostScalarFieldEnum.values + .map((PostScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return AffectedRowsOutput.fromJson( + (result.data['createManyPost'] as Map).cast()); + } + + Future<_i2.PrismaNullable> update({ + required PostUpdateInput data, + required PostWhereUniqueInput where, + }) async { + final String sdl = _i2.GraphQLField( + 'mutation', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'updateOnePost', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'data', + data, + isRequired: true, + ), + _i2.GraphQLArg( + 'where', + where, + isRequired: true, + ), + ]), + fields: _i2.GraphQLFields(PostScalarFieldEnum.values + .map((PostScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return result.data['updateOnePost'] == null + ? null + : Post.fromJson((result.data['updateOnePost'] as Map).cast()); + } + + Future updateMany({ + required PostUpdateManyMutationInput data, + _i2.PrismaNullable where, + }) async { + final String sdl = _i2.GraphQLField( + 'mutation', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'updateManyPost', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'data', + data, + isRequired: true, + ), + _i2.GraphQLArg( + 'where', + where, + isRequired: false, + ), + ]), + fields: _i2.GraphQLFields(PostScalarFieldEnum.values + .map((PostScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return AffectedRowsOutput.fromJson( + (result.data['updateManyPost'] as Map).cast()); + } + + Future upsert({ + required PostWhereUniqueInput where, + required PostCreateInput create, + required PostUpdateInput update, + }) async { + final String sdl = _i2.GraphQLField( + 'mutation', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'upsertOnePost', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: true, + ), + _i2.GraphQLArg( + 'create', + create, + isRequired: true, + ), + _i2.GraphQLArg( + 'update', + update, + isRequired: true, + ), + ]), + fields: _i2.GraphQLFields(PostScalarFieldEnum.values + .map((PostScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return Post.fromJson((result.data['upsertOnePost'] as Map).cast()); + } + + Future<_i2.PrismaNullable> delete( + {required PostWhereUniqueInput where}) async { + final String sdl = _i2.GraphQLField( + 'mutation', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'deleteOnePost', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: true, + ) + ]), + fields: _i2.GraphQLFields(PostScalarFieldEnum.values + .map((PostScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return result.data['deleteOnePost'] == null + ? null + : Post.fromJson((result.data['deleteOnePost'] as Map).cast()); + } + + Future deleteMany( + {_i2.PrismaNullable where}) async { + final String sdl = _i2.GraphQLField( + 'mutation', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'deleteManyPost', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: false, + ) + ]), + fields: _i2.GraphQLFields(PostScalarFieldEnum.values + .map((PostScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return AffectedRowsOutput.fromJson( + (result.data['deleteManyPost'] as Map).cast()); + } + + Future aggregate({ + _i2.PrismaNullable where, + _i2.PrismaNullable> orderBy, + _i2.PrismaNullable cursor, + _i2.PrismaNullable take, + _i2.PrismaNullable skip, + }) async { + final String sdl = _i2.GraphQLField( + 'query', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'aggregatePost', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: false, + ), + _i2.GraphQLArg( + 'orderBy', + orderBy, + isRequired: false, + ), + _i2.GraphQLArg( + 'cursor', + cursor, + isRequired: false, + ), + _i2.GraphQLArg( + 'take', + take, + isRequired: false, + ), + _i2.GraphQLArg( + 'skip', + skip, + isRequired: false, + ), + ]), + fields: _i2.GraphQLFields(PostScalarFieldEnum.values + .map((PostScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return AggregatePost.fromJson((result.data['aggregatePost'] as Map).cast()); + } + + Future> groupBy({ + _i2.PrismaNullable where, + _i2.PrismaNullable> orderBy, + required List by, + _i2.PrismaNullable having, + _i2.PrismaNullable take, + _i2.PrismaNullable skip, + }) async { + final String sdl = _i2.GraphQLField( + 'query', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'groupByPost', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: false, + ), + _i2.GraphQLArg( + 'orderBy', + orderBy, + isRequired: false, + ), + _i2.GraphQLArg( + 'by', + by, + isRequired: true, + ), + _i2.GraphQLArg( + 'having', + having, + isRequired: false, + ), + _i2.GraphQLArg( + 'take', + take, + isRequired: false, + ), + _i2.GraphQLArg( + 'skip', + skip, + isRequired: false, + ), + ]), + fields: _i2.GraphQLFields(PostScalarFieldEnum.values + .map((PostScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return (result.data['groupByPost'] as List) + .whereType() + .map((Map e) => PostGroupByOutputType.fromJson(e.cast())) + .toList(); + } +} + +class UserDelegate { + const UserDelegate._( + this._engine, [ + this._headers, + ]); + + final _i2.Engine _engine; + + final _i2.PrismaNullable<_i2.QueryEngineRequestHeaders> _headers; + + Future<_i2.PrismaNullable> findUnique( + {required UserWhereUniqueInput where}) async { + final String sdl = _i2.GraphQLField( + 'query', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'findUniqueUser', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: true, + ) + ]), + fields: _i2.GraphQLFields(UserScalarFieldEnum.values + .map((UserScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return result.data['findUniqueUser'] == null + ? null + : User.fromJson((result.data['findUniqueUser'] as Map).cast()); + } + + Future<_i2.PrismaNullable> findFirst({ + _i2.PrismaNullable where, + _i2.PrismaNullable> orderBy, + _i2.PrismaNullable cursor, + _i2.PrismaNullable take, + _i2.PrismaNullable skip, + _i2.PrismaNullable> distinct, + }) async { + final String sdl = _i2.GraphQLField( + 'query', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'findFirstUser', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: false, + ), + _i2.GraphQLArg( + 'orderBy', + orderBy, + isRequired: false, + ), + _i2.GraphQLArg( + 'cursor', + cursor, + isRequired: false, + ), + _i2.GraphQLArg( + 'take', + take, + isRequired: false, + ), + _i2.GraphQLArg( + 'skip', + skip, + isRequired: false, + ), + _i2.GraphQLArg( + 'distinct', + distinct, + isRequired: false, + ), + ]), + fields: _i2.GraphQLFields(UserScalarFieldEnum.values + .map((UserScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return result.data['findFirstUser'] == null + ? null + : User.fromJson((result.data['findFirstUser'] as Map).cast()); + } + + Future> findMany({ + _i2.PrismaNullable where, + _i2.PrismaNullable> orderBy, + _i2.PrismaNullable cursor, + _i2.PrismaNullable take, + _i2.PrismaNullable skip, + _i2.PrismaNullable> distinct, + }) async { + final String sdl = _i2.GraphQLField( + 'query', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'findManyUser', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: false, + ), + _i2.GraphQLArg( + 'orderBy', + orderBy, + isRequired: false, + ), + _i2.GraphQLArg( + 'cursor', + cursor, + isRequired: false, + ), + _i2.GraphQLArg( + 'take', + take, + isRequired: false, + ), + _i2.GraphQLArg( + 'skip', + skip, + isRequired: false, + ), + _i2.GraphQLArg( + 'distinct', + distinct, + isRequired: false, + ), + ]), + fields: _i2.GraphQLFields(UserScalarFieldEnum.values + .map((UserScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return (result.data['findManyUser'] as List) + .whereType() + .map((Map e) => User.fromJson(e.cast())) + .toList(); + } + + Future create({required UserCreateInput data}) async { + final String sdl = _i2.GraphQLField( + 'mutation', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'createOneUser', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'data', + data, + isRequired: true, + ) + ]), + fields: _i2.GraphQLFields(UserScalarFieldEnum.values + .map((UserScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return User.fromJson((result.data['createOneUser'] as Map).cast()); + } + + Future createMany({ + required List data, + _i2.PrismaNullable skipDuplicates, + }) async { + final String sdl = _i2.GraphQLField( + 'mutation', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'createManyUser', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'data', + data, + isRequired: true, + ), + _i2.GraphQLArg( + 'skipDuplicates', + skipDuplicates, + isRequired: false, + ), + ]), + fields: _i2.GraphQLFields(UserScalarFieldEnum.values + .map((UserScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return AffectedRowsOutput.fromJson( + (result.data['createManyUser'] as Map).cast()); + } + + Future<_i2.PrismaNullable> update({ + required UserUpdateInput data, + required UserWhereUniqueInput where, + }) async { + final String sdl = _i2.GraphQLField( + 'mutation', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'updateOneUser', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'data', + data, + isRequired: true, + ), + _i2.GraphQLArg( + 'where', + where, + isRequired: true, + ), + ]), + fields: _i2.GraphQLFields(UserScalarFieldEnum.values + .map((UserScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return result.data['updateOneUser'] == null + ? null + : User.fromJson((result.data['updateOneUser'] as Map).cast()); + } + + Future updateMany({ + required UserUpdateManyMutationInput data, + _i2.PrismaNullable where, + }) async { + final String sdl = _i2.GraphQLField( + 'mutation', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'updateManyUser', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'data', + data, + isRequired: true, + ), + _i2.GraphQLArg( + 'where', + where, + isRequired: false, + ), + ]), + fields: _i2.GraphQLFields(UserScalarFieldEnum.values + .map((UserScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return AffectedRowsOutput.fromJson( + (result.data['updateManyUser'] as Map).cast()); + } + + Future upsert({ + required UserWhereUniqueInput where, + required UserCreateInput create, + required UserUpdateInput update, + }) async { + final String sdl = _i2.GraphQLField( + 'mutation', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'upsertOneUser', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: true, + ), + _i2.GraphQLArg( + 'create', + create, + isRequired: true, + ), + _i2.GraphQLArg( + 'update', + update, + isRequired: true, + ), + ]), + fields: _i2.GraphQLFields(UserScalarFieldEnum.values + .map((UserScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return User.fromJson((result.data['upsertOneUser'] as Map).cast()); + } + + Future<_i2.PrismaNullable> delete( + {required UserWhereUniqueInput where}) async { + final String sdl = _i2.GraphQLField( + 'mutation', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'deleteOneUser', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: true, + ) + ]), + fields: _i2.GraphQLFields(UserScalarFieldEnum.values + .map((UserScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return result.data['deleteOneUser'] == null + ? null + : User.fromJson((result.data['deleteOneUser'] as Map).cast()); + } + + Future deleteMany( + {_i2.PrismaNullable where}) async { + final String sdl = _i2.GraphQLField( + 'mutation', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'deleteManyUser', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: false, + ) + ]), + fields: _i2.GraphQLFields(UserScalarFieldEnum.values + .map((UserScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return AffectedRowsOutput.fromJson( + (result.data['deleteManyUser'] as Map).cast()); + } + + Future aggregate({ + _i2.PrismaNullable where, + _i2.PrismaNullable> orderBy, + _i2.PrismaNullable cursor, + _i2.PrismaNullable take, + _i2.PrismaNullable skip, + }) async { + final String sdl = _i2.GraphQLField( + 'query', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'aggregateUser', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: false, + ), + _i2.GraphQLArg( + 'orderBy', + orderBy, + isRequired: false, + ), + _i2.GraphQLArg( + 'cursor', + cursor, + isRequired: false, + ), + _i2.GraphQLArg( + 'take', + take, + isRequired: false, + ), + _i2.GraphQLArg( + 'skip', + skip, + isRequired: false, + ), + ]), + fields: _i2.GraphQLFields(UserScalarFieldEnum.values + .map((UserScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return AggregateUser.fromJson((result.data['aggregateUser'] as Map).cast()); + } + + Future> groupBy({ + _i2.PrismaNullable where, + _i2.PrismaNullable> orderBy, + required List by, + _i2.PrismaNullable having, + _i2.PrismaNullable take, + _i2.PrismaNullable skip, + }) async { + final String sdl = _i2.GraphQLField( + 'query', + fields: _i2.GraphQLFields([ + _i2.GraphQLField( + 'groupByUser', + args: _i2.GraphQLArgs([ + _i2.GraphQLArg( + 'where', + where, + isRequired: false, + ), + _i2.GraphQLArg( + 'orderBy', + orderBy, + isRequired: false, + ), + _i2.GraphQLArg( + 'by', + by, + isRequired: true, + ), + _i2.GraphQLArg( + 'having', + having, + isRequired: false, + ), + _i2.GraphQLArg( + 'take', + take, + isRequired: false, + ), + _i2.GraphQLArg( + 'skip', + skip, + isRequired: false, + ), + ]), + fields: _i2.GraphQLFields(UserScalarFieldEnum.values + .map((UserScalarFieldEnum e) => + _i2.GraphQLField(_i2.languageKeywordDecode(e.name))) + .toList()), + ) + ]), + ).toSdl(); + final _i2.QueryEngineResult result = await _engine.request( + query: sdl, + headers: _headers, + ); + return (result.data['groupByUser'] as List) + .whereType() + .map((Map e) => UserGroupByOutputType.fromJson(e.cast())) + .toList(); + } +} + +final _i3.Document dmmf = _i3.Document.fromJson({ + 'datamodel': { + 'models': [ + { + 'name': 'Post', + 'dbName': null, + 'fields': [ + { + 'name': 'id', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': false, + 'isId': true, + 'isReadOnly': false, + 'hasDefaultValue': true, + 'type': 'Int', + 'default': { + 'name': 'autoincrement', + 'args': [], + }, + 'isGenerated': false, + 'isUpdatedAt': false, + 'dbNames': null, + 'relationFromFields': null, + 'relationToFields': null, + 'relationOnDelete': null, + 'relationName': null, + 'documentation': null, + 'additionalProperties': { + 'name': 'id', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': false, + 'isId': true, + 'isReadOnly': false, + 'hasDefaultValue': true, + 'type': 'Int', + 'default': { + 'name': 'autoincrement', + 'args': [], + }, + 'isGenerated': false, + 'isUpdatedAt': false, + }, + }, + { + 'name': 'title', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'String', + 'isGenerated': false, + 'isUpdatedAt': false, + 'dbNames': null, + 'default': null, + 'relationFromFields': null, + 'relationToFields': null, + 'relationOnDelete': null, + 'relationName': null, + 'documentation': null, + 'additionalProperties': { + 'name': 'title', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'String', + 'isGenerated': false, + 'isUpdatedAt': false, + }, + }, + { + 'name': 'content', + 'kind': 'scalar', + 'isList': false, + 'isRequired': false, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'String', + 'isGenerated': false, + 'isUpdatedAt': false, + 'dbNames': null, + 'default': null, + 'relationFromFields': null, + 'relationToFields': null, + 'relationOnDelete': null, + 'relationName': null, + 'documentation': null, + 'additionalProperties': { + 'name': 'content', + 'kind': 'scalar', + 'isList': false, + 'isRequired': false, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'String', + 'isGenerated': false, + 'isUpdatedAt': false, + }, + }, + { + 'name': 'published', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': true, + 'type': 'Boolean', + 'default': false, + 'isGenerated': false, + 'isUpdatedAt': false, + 'dbNames': null, + 'relationFromFields': null, + 'relationToFields': null, + 'relationOnDelete': null, + 'relationName': null, + 'documentation': null, + 'additionalProperties': { + 'name': 'published', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': true, + 'type': 'Boolean', + 'default': false, + 'isGenerated': false, + 'isUpdatedAt': false, + }, + }, + { + 'name': 'author', + 'kind': 'object', + 'isList': false, + 'isRequired': false, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'User', + 'relationName': 'PostToUser', + 'relationFromFields': ['authorId'], + 'relationToFields': ['id'], + 'isGenerated': false, + 'isUpdatedAt': false, + 'dbNames': null, + 'default': null, + 'relationOnDelete': null, + 'documentation': null, + 'additionalProperties': { + 'name': 'author', + 'kind': 'object', + 'isList': false, + 'isRequired': false, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'User', + 'relationName': 'PostToUser', + 'relationFromFields': ['authorId'], + 'relationToFields': ['id'], + 'isGenerated': false, + 'isUpdatedAt': false, + }, + }, + { + 'name': 'authorId', + 'kind': 'scalar', + 'isList': false, + 'isRequired': false, + 'isUnique': false, + 'isId': false, + 'isReadOnly': true, + 'hasDefaultValue': false, + 'type': 'Int', + 'isGenerated': false, + 'isUpdatedAt': false, + 'dbNames': null, + 'default': null, + 'relationFromFields': null, + 'relationToFields': null, + 'relationOnDelete': null, + 'relationName': null, + 'documentation': null, + 'additionalProperties': { + 'name': 'authorId', + 'kind': 'scalar', + 'isList': false, + 'isRequired': false, + 'isUnique': false, + 'isId': false, + 'isReadOnly': true, + 'hasDefaultValue': false, + 'type': 'Int', + 'isGenerated': false, + 'isUpdatedAt': false, + }, + }, + ], + 'primaryKey': null, + 'uniqueFields': [], + 'uniqueIndexes': [], + 'isGenerated': false, + 'fieldsMap': null, + 'documentation': null, + 'extra': { + 'name': 'Post', + 'dbName': null, + 'fields': [ + { + 'name': 'id', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': false, + 'isId': true, + 'isReadOnly': false, + 'hasDefaultValue': true, + 'type': 'Int', + 'default': { + 'name': 'autoincrement', + 'args': [], + }, + 'isGenerated': false, + 'isUpdatedAt': false, + }, + { + 'name': 'title', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'String', + 'isGenerated': false, + 'isUpdatedAt': false, + }, + { + 'name': 'content', + 'kind': 'scalar', + 'isList': false, + 'isRequired': false, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'String', + 'isGenerated': false, + 'isUpdatedAt': false, + }, + { + 'name': 'published', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': true, + 'type': 'Boolean', + 'default': false, + 'isGenerated': false, + 'isUpdatedAt': false, + }, + { + 'name': 'author', + 'kind': 'object', + 'isList': false, + 'isRequired': false, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'User', + 'relationName': 'PostToUser', + 'relationFromFields': ['authorId'], + 'relationToFields': ['id'], + 'isGenerated': false, + 'isUpdatedAt': false, + }, + { + 'name': 'authorId', + 'kind': 'scalar', + 'isList': false, + 'isRequired': false, + 'isUnique': false, + 'isId': false, + 'isReadOnly': true, + 'hasDefaultValue': false, + 'type': 'Int', + 'isGenerated': false, + 'isUpdatedAt': false, + }, + ], + 'primaryKey': null, + 'uniqueFields': [], + 'uniqueIndexes': [], + 'isGenerated': false, + }, + }, + { + 'name': 'User', + 'dbName': null, + 'fields': [ + { + 'name': 'id', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': false, + 'isId': true, + 'isReadOnly': false, + 'hasDefaultValue': true, + 'type': 'Int', + 'default': { + 'name': 'autoincrement', + 'args': [], + }, + 'isGenerated': false, + 'isUpdatedAt': false, + 'dbNames': null, + 'relationFromFields': null, + 'relationToFields': null, + 'relationOnDelete': null, + 'relationName': null, + 'documentation': null, + 'additionalProperties': { + 'name': 'id', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': false, + 'isId': true, + 'isReadOnly': false, + 'hasDefaultValue': true, + 'type': 'Int', + 'default': { + 'name': 'autoincrement', + 'args': [], + }, + 'isGenerated': false, + 'isUpdatedAt': false, + }, + }, + { + 'name': 'email', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': true, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'String', + 'isGenerated': false, + 'isUpdatedAt': false, + 'dbNames': null, + 'default': null, + 'relationFromFields': null, + 'relationToFields': null, + 'relationOnDelete': null, + 'relationName': null, + 'documentation': null, + 'additionalProperties': { + 'name': 'email', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': true, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'String', + 'isGenerated': false, + 'isUpdatedAt': false, + }, + }, + { + 'name': 'name', + 'kind': 'scalar', + 'isList': false, + 'isRequired': false, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'String', + 'isGenerated': false, + 'isUpdatedAt': false, + 'dbNames': null, + 'default': null, + 'relationFromFields': null, + 'relationToFields': null, + 'relationOnDelete': null, + 'relationName': null, + 'documentation': null, + 'additionalProperties': { + 'name': 'name', + 'kind': 'scalar', + 'isList': false, + 'isRequired': false, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'String', + 'isGenerated': false, + 'isUpdatedAt': false, + }, + }, + { + 'name': 'posts', + 'kind': 'object', + 'isList': true, + 'isRequired': true, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'Post', + 'relationName': 'PostToUser', + 'relationFromFields': [], + 'relationToFields': [], + 'isGenerated': false, + 'isUpdatedAt': false, + 'dbNames': null, + 'default': null, + 'relationOnDelete': null, + 'documentation': null, + 'additionalProperties': { + 'name': 'posts', + 'kind': 'object', + 'isList': true, + 'isRequired': true, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'Post', + 'relationName': 'PostToUser', + 'relationFromFields': [], + 'relationToFields': [], + 'isGenerated': false, + 'isUpdatedAt': false, + }, + }, + ], + 'primaryKey': null, + 'uniqueFields': [], + 'uniqueIndexes': [], + 'isGenerated': false, + 'fieldsMap': null, + 'documentation': null, + 'extra': { + 'name': 'User', + 'dbName': null, + 'fields': [ + { + 'name': 'id', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': false, + 'isId': true, + 'isReadOnly': false, + 'hasDefaultValue': true, + 'type': 'Int', + 'default': { + 'name': 'autoincrement', + 'args': [], + }, + 'isGenerated': false, + 'isUpdatedAt': false, + }, + { + 'name': 'email', + 'kind': 'scalar', + 'isList': false, + 'isRequired': true, + 'isUnique': true, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'String', + 'isGenerated': false, + 'isUpdatedAt': false, + }, + { + 'name': 'name', + 'kind': 'scalar', + 'isList': false, + 'isRequired': false, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'String', + 'isGenerated': false, + 'isUpdatedAt': false, + }, + { + 'name': 'posts', + 'kind': 'object', + 'isList': true, + 'isRequired': true, + 'isUnique': false, + 'isId': false, + 'isReadOnly': false, + 'hasDefaultValue': false, + 'type': 'Post', + 'relationName': 'PostToUser', + 'relationFromFields': [], + 'relationToFields': [], + 'isGenerated': false, + 'isUpdatedAt': false, + }, + ], + 'primaryKey': null, + 'uniqueFields': [], + 'uniqueIndexes': [], + 'isGenerated': false, + }, + }, + ], + 'enums': [], + 'types': [], + }, + 'schema': { + 'rootQueryType': null, + 'rootMutationType': null, + 'inputObjectTypes': { + 'model': null, + 'prisma': [ + { + 'name': 'PostWhereInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'AND', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'OR', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'NOT', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'IntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'StringFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'StringNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'BoolFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'author', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserRelationFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'authorId', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'IntNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostOrderByWithRelationInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 0, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'author', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'authorId', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostWhereUniqueInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + } + ], + 'fieldMap': null, + }, + { + 'name': 'PostOrderByWithAggregationInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 0, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'authorId', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_count', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCountOrderByAggregateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_avg', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostAvgOrderByAggregateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_max', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostMaxOrderByAggregateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_min', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostMinOrderByAggregateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_sum', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostSumOrderByAggregateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostScalarWhereWithAggregatesInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'AND', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostScalarWhereWithAggregatesInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostScalarWhereWithAggregatesInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'OR', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'PostScalarWhereWithAggregatesInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'NOT', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostScalarWhereWithAggregatesInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostScalarWhereWithAggregatesInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'IntWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'StringWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'StringNullableWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'BoolWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'authorId', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'IntNullableWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserWhereInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'AND', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'UserWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'OR', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'UserWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'NOT', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'UserWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'IntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'StringFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'StringNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'posts', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostListRelationFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserOrderByWithRelationInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 0, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'posts', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostOrderByRelationAggregateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserWhereUniqueInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserOrderByWithAggregationInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 0, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_count', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserCountOrderByAggregateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_avg', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserAvgOrderByAggregateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_max', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserMaxOrderByAggregateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_min', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserMinOrderByAggregateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_sum', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserSumOrderByAggregateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserScalarWhereWithAggregatesInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'AND', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserScalarWhereWithAggregatesInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'UserScalarWhereWithAggregatesInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'OR', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'UserScalarWhereWithAggregatesInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'NOT', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserScalarWhereWithAggregatesInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'UserScalarWhereWithAggregatesInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'IntWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'StringWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'StringNullableWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostCreateInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'author', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserCreateNestedOneWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUncheckedCreateInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'authorId', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUpdateInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'StringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableStringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'BoolFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'author', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserUpdateOneWithoutPostsNestedInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUncheckedUpdateInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'IntFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'StringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableStringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'BoolFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'authorId', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableIntFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostCreateManyInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'authorId', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUpdateManyMutationInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'StringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableStringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'BoolFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUncheckedUpdateManyInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'IntFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'StringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableStringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'BoolFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'authorId', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableIntFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserCreateInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'posts', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateNestedManyWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserUncheckedCreateInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'posts', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUncheckedCreateNestedManyWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserUpdateInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'StringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableStringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'posts', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUpdateManyWithoutAuthorNestedInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserUncheckedUpdateInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'IntFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'StringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableStringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'posts', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUncheckedUpdateManyWithoutAuthorNestedInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserCreateManyInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserUpdateManyMutationInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'StringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableStringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserUncheckedUpdateManyInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'IntFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'StringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableStringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'IntFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedIntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'StringFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'contains', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'startsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'endsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'mode', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'QueryMode', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedStringFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'StringNullableFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'contains', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'startsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'endsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'mode', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'QueryMode', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedStringNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'BoolFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedBoolFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserRelationFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'is', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'isNot', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'IntNullableFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedIntNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostCountOrderByAggregateInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'authorId', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostAvgOrderByAggregateInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'authorId', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostMaxOrderByAggregateInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'authorId', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostMinOrderByAggregateInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'authorId', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostSumOrderByAggregateInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'authorId', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'IntWithAggregatesFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedIntWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': '_count', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_avg', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedFloatFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_sum', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_min', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_max', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'StringWithAggregatesFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'contains', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'startsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'endsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'mode', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'QueryMode', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedStringWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': '_count', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_min', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedStringFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_max', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedStringFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'StringNullableWithAggregatesFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'contains', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'startsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'endsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'mode', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'QueryMode', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedStringNullableWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': '_count', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_min', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedStringNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_max', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedStringNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'BoolWithAggregatesFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedBoolWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': '_count', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_min', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedBoolFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_max', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedBoolFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'IntNullableWithAggregatesFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedIntNullableWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': '_count', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_avg', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedFloatNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_sum', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_min', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_max', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostListRelationFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'every', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'some', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'none', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostOrderByRelationAggregateInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': '_count', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + } + ], + 'fieldMap': null, + }, + { + 'name': 'UserCountOrderByAggregateInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserAvgOrderByAggregateInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + } + ], + 'fieldMap': null, + }, + { + 'name': 'UserMaxOrderByAggregateInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserMinOrderByAggregateInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserSumOrderByAggregateInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'SortOrder', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + } + ], + 'fieldMap': null, + }, + { + 'name': 'UserCreateNestedOneWithoutPostsInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'create', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserCreateWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserUncheckedCreateWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'connectOrCreate', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserCreateOrConnectWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'connect', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'StringFieldUpdateOperationsInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'set', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + } + ], + 'fieldMap': null, + }, + { + 'name': 'NullableStringFieldUpdateOperationsInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'set', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + } + ], + 'fieldMap': null, + }, + { + 'name': 'BoolFieldUpdateOperationsInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'set', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + } + ], + 'fieldMap': null, + }, + { + 'name': 'UserUpdateOneWithoutPostsNestedInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'create', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserCreateWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserUncheckedCreateWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'connectOrCreate', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserCreateOrConnectWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'upsert', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserUpsertWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'disconnect', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'delete', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'connect', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'update', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserUpdateWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserUncheckedUpdateWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'IntFieldUpdateOperationsInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'set', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'increment', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'decrement', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'multiply', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'divide', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'NullableIntFieldUpdateOperationsInput', + 'constraints': { + 'maxNumFields': 1, + 'minNumFields': 1, + }, + 'fields': [ + { + 'name': 'set', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'increment', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'decrement', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'multiply', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'divide', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostCreateNestedManyWithoutAuthorInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'create', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostUncheckedCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostUncheckedCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'connectOrCreate', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateOrConnectWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostCreateOrConnectWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'createMany', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateManyAuthorInputEnvelope', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'connect', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUncheckedCreateNestedManyWithoutAuthorInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'create', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostUncheckedCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostUncheckedCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'connectOrCreate', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateOrConnectWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostCreateOrConnectWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'createMany', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateManyAuthorInputEnvelope', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'connect', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUpdateManyWithoutAuthorNestedInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'create', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostUncheckedCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostUncheckedCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'connectOrCreate', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateOrConnectWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostCreateOrConnectWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'upsert', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUpsertWithWhereUniqueWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostUpsertWithWhereUniqueWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'createMany', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateManyAuthorInputEnvelope', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'set', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'disconnect', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'delete', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'connect', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'update', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUpdateWithWhereUniqueWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostUpdateWithWhereUniqueWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'updateMany', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUpdateManyWithWhereWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostUpdateManyWithWhereWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'deleteMany', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostScalarWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostScalarWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUncheckedUpdateManyWithoutAuthorNestedInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'create', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostUncheckedCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostUncheckedCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'connectOrCreate', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateOrConnectWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostCreateOrConnectWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'upsert', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUpsertWithWhereUniqueWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostUpsertWithWhereUniqueWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'createMany', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateManyAuthorInputEnvelope', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'set', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'disconnect', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'delete', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'connect', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'update', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUpdateWithWhereUniqueWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostUpdateWithWhereUniqueWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'updateMany', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUpdateManyWithWhereWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostUpdateManyWithWhereWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'deleteMany', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostScalarWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostScalarWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'NestedIntFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedIntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'NestedStringFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'contains', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'startsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'endsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedStringFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'NestedStringNullableFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'contains', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'startsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'endsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedStringNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'NestedBoolFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedBoolFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'NestedIntNullableFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedIntNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'NestedIntWithAggregatesFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedIntWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': '_count', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_avg', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedFloatFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_sum', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_min', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_max', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'NestedFloatFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedFloatFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'NestedStringWithAggregatesFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'contains', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'startsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'endsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedStringWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': '_count', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_min', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedStringFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_max', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedStringFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'NestedStringNullableWithAggregatesFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'contains', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'startsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'endsWith', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedStringNullableWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': '_count', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_min', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedStringNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_max', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedStringNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'NestedBoolWithAggregatesFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedBoolWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': '_count', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_min', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedBoolFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_max', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedBoolFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'NestedIntNullableWithAggregatesFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedIntNullableWithAggregatesFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': '_count', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_avg', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedFloatNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_sum', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_min', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': '_max', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'NestedIntNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'NestedFloatNullableFilter', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'equals', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'in', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'notIn', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'lt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'lte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gt', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'gte', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'not', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NestedFloatNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserCreateWithoutPostsInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserUncheckedCreateWithoutPostsInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserCreateOrConnectWithoutPostsInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'create', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserCreateWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserUncheckedCreateWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserUpsertWithoutPostsInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'update', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserUpdateWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserUncheckedUpdateWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'create', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserCreateWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserUncheckedCreateWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserUpdateWithoutPostsInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'StringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableStringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserUncheckedUpdateWithoutPostsInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'IntFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'email', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'StringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'name', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableStringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostCreateWithoutAuthorInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUncheckedCreateWithoutAuthorInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostCreateOrConnectWithoutAuthorInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'create', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostUncheckedCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostCreateManyAuthorInputEnvelope', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'data', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': true, + 'type': 'PostCreateManyAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'skipDuplicates', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUpsertWithWhereUniqueWithoutAuthorInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'update', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUpdateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostUncheckedUpdateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'create', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostUncheckedCreateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUpdateWithWhereUniqueWithoutAuthorInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'data', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUpdateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostUncheckedUpdateWithoutAuthorInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUpdateManyWithWhereWithoutAuthorInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostScalarWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'data', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUpdateManyMutationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostUncheckedUpdateManyWithoutPostsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostScalarWhereInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'AND', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostScalarWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostScalarWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'OR', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'PostScalarWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'NOT', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostScalarWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': true, + 'type': 'PostScalarWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'IntFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'StringFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'StringNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'BoolFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'authorId', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'IntNullableFilter', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostCreateManyAuthorInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUpdateWithoutAuthorInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'StringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableStringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'BoolFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUncheckedUpdateWithoutAuthorInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'IntFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'StringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableStringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'BoolFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostUncheckedUpdateManyWithoutPostsInput', + 'constraints': { + 'maxNumFields': null, + 'minNumFields': null, + }, + 'fields': [ + { + 'name': 'id', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'IntFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'title', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'StringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'content', + 'comment': null, + 'isNullable': true, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'NullableStringFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'Null', + 'location': 'scalar', + 'namespace': null, + }, + ], + 'deprecation': null, + }, + { + 'name': 'published', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + { + 'isList': false, + 'type': 'BoolFieldUpdateOperationsInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'fieldMap': null, + }, + ], + }, + 'outputObjectTypes': { + 'model': [ + { + 'name': 'Post', + 'fields': [ + { + 'name': 'id', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'title', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'content', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'published', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'author', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'User', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'authorId', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'User', + 'fields': [ + { + 'name': 'id', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'email', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'name', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'posts', + 'isNullable': true, + 'outputType': { + 'isList': true, + 'type': 'Post', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'orderBy', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'PostOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'cursor', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'take', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'skip', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'distinct', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'PostScalarFieldEnum', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_count', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'UserCountOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + ], + 'prisma': [ + { + 'name': 'Query', + 'fields': [ + { + 'name': 'findFirstPost', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Post', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'orderBy', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'PostOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'cursor', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'take', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'skip', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'distinct', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'PostScalarFieldEnum', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'findManyPost', + 'isNullable': false, + 'outputType': { + 'isList': true, + 'type': 'Post', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'orderBy', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'PostOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'cursor', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'take', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'skip', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'distinct', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'PostScalarFieldEnum', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'aggregatePost', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'AggregatePost', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'orderBy', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'PostOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'cursor', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'take', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'skip', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'groupByPost', + 'isNullable': false, + 'outputType': { + 'isList': true, + 'type': 'PostGroupByOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'orderBy', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'PostOrderByWithAggregationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostOrderByWithAggregationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'by', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': true, + 'type': 'PostScalarFieldEnum', + 'location': 'enumTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostScalarFieldEnum', + 'location': 'enumTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'having', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostScalarWhereWithAggregatesInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'take', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'skip', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'findUniquePost', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Post', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + } + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'findFirstUser', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'User', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'orderBy', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'UserOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'cursor', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'take', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'skip', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'distinct', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'UserScalarFieldEnum', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'findManyUser', + 'isNullable': false, + 'outputType': { + 'isList': true, + 'type': 'User', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'orderBy', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'UserOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'cursor', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'take', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'skip', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'distinct', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'UserScalarFieldEnum', + 'location': 'enumTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'aggregateUser', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'AggregateUser', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'orderBy', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'UserOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserOrderByWithRelationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'cursor', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'take', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'skip', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'groupByUser', + 'isNullable': false, + 'outputType': { + 'isList': true, + 'type': 'UserGroupByOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'orderBy', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': true, + 'type': 'UserOrderByWithAggregationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserOrderByWithAggregationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'by', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': true, + 'type': 'UserScalarFieldEnum', + 'location': 'enumTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserScalarFieldEnum', + 'location': 'enumTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'having', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserScalarWhereWithAggregatesInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'take', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'skip', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'findUniqueUser', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'User', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + } + ], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'Mutation', + 'fields': [ + { + 'name': 'createOnePost', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Post', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'data', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostUncheckedCreateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + } + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'upsertOnePost', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Post', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'create', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostCreateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostUncheckedCreateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'update', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUpdateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostUncheckedUpdateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'createManyPost', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'AffectedRowsOutput', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [ + { + 'name': 'data', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': true, + 'type': 'PostCreateManyInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'skipDuplicates', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'deleteOnePost', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Post', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + } + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'updateOnePost', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Post', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'data', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUpdateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostUncheckedUpdateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'updateManyPost', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'AffectedRowsOutput', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [ + { + 'name': 'data', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostUpdateManyMutationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'PostUncheckedUpdateManyInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'deleteManyPost', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'AffectedRowsOutput', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'PostWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + } + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'createOneUser', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'User', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'data', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserCreateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserUncheckedCreateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + } + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'upsertOneUser', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'User', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'create', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserCreateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserUncheckedCreateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'update', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserUpdateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserUncheckedUpdateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'createManyUser', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'AffectedRowsOutput', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [ + { + 'name': 'data', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': true, + 'type': 'UserCreateManyInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + { + 'name': 'skipDuplicates', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'deleteOneUser', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'User', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + } + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'updateOneUser', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'User', + 'location': 'outputObjectTypes', + 'namespace': 'model', + }, + 'args': [ + { + 'name': 'data', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserUpdateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserUncheckedUpdateInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereUniqueInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'updateManyUser', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'AffectedRowsOutput', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [ + { + 'name': 'data', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserUpdateManyMutationInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + { + 'isList': false, + 'type': 'UserUncheckedUpdateManyInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + }, + ], + 'deprecation': null, + }, + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'deleteManyUser', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'AffectedRowsOutput', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [ + { + 'name': 'where', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'UserWhereInput', + 'location': 'inputObjectTypes', + 'namespace': 'prisma', + } + ], + 'deprecation': null, + } + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'executeRaw', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Json', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [ + { + 'name': 'query', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'parameters', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Json', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'queryRaw', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Json', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [ + { + 'name': 'query', + 'comment': null, + 'isNullable': false, + 'isRequired': true, + 'inputTypes': [ + { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + { + 'name': 'parameters', + 'comment': null, + 'isNullable': false, + 'isRequired': false, + 'inputTypes': [ + { + 'isList': false, + 'type': 'Json', + 'location': 'scalar', + 'namespace': null, + } + ], + 'deprecation': null, + }, + ], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'AggregatePost', + 'fields': [ + { + 'name': '_count', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'PostCountAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_avg', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'PostAvgAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_sum', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'PostSumAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_min', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'PostMinAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_max', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'PostMaxAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostGroupByOutputType', + 'fields': [ + { + 'name': 'id', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'title', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'content', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'published', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'authorId', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_count', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'PostCountAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_avg', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'PostAvgAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_sum', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'PostSumAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_min', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'PostMinAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_max', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'PostMaxAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'AggregateUser', + 'fields': [ + { + 'name': '_count', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'UserCountAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_avg', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'UserAvgAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_sum', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'UserSumAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_min', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'UserMinAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_max', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'UserMaxAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserGroupByOutputType', + 'fields': [ + { + 'name': 'id', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'email', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'name', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_count', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'UserCountAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_avg', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'UserAvgAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_sum', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'UserSumAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_min', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'UserMinAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_max', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'UserMaxAggregateOutputType', + 'location': 'outputObjectTypes', + 'namespace': 'prisma', + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'AffectedRowsOutput', + 'fields': [ + { + 'name': 'count', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + } + ], + 'fieldMap': null, + }, + { + 'name': 'PostCountAggregateOutputType', + 'fields': [ + { + 'name': 'id', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'title', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'content', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'published', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'authorId', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_all', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostAvgAggregateOutputType', + 'fields': [ + { + 'name': 'id', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'authorId', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostSumAggregateOutputType', + 'fields': [ + { + 'name': 'id', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'authorId', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostMinAggregateOutputType', + 'fields': [ + { + 'name': 'id', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'title', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'content', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'published', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'authorId', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'PostMaxAggregateOutputType', + 'fields': [ + { + 'name': 'id', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'title', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'content', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'published', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Boolean', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'authorId', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserCountOutputType', + 'fields': [ + { + 'name': 'posts', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + } + ], + 'fieldMap': null, + }, + { + 'name': 'UserCountAggregateOutputType', + 'fields': [ + { + 'name': 'id', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'email', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'name', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': '_all', + 'isNullable': false, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserAvgAggregateOutputType', + 'fields': [ + { + 'name': 'id', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Float', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + } + ], + 'fieldMap': null, + }, + { + 'name': 'UserSumAggregateOutputType', + 'fields': [ + { + 'name': 'id', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + } + ], + 'fieldMap': null, + }, + { + 'name': 'UserMinAggregateOutputType', + 'fields': [ + { + 'name': 'id', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'email', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'name', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + { + 'name': 'UserMaxAggregateOutputType', + 'fields': [ + { + 'name': 'id', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'Int', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'email', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + { + 'name': 'name', + 'isNullable': true, + 'outputType': { + 'isList': false, + 'type': 'String', + 'location': 'scalar', + 'namespace': null, + }, + 'args': [], + 'deprecation': null, + 'documentation': null, + }, + ], + 'fieldMap': null, + }, + ], + }, + 'enumTypes': { + 'model': null, + 'prisma': [ + { + 'name': 'PostScalarFieldEnum', + 'values': [ + 'id', + 'title', + 'content', + 'published', + 'authorId', + ], + }, + { + 'name': 'QueryMode', + 'values': [ + 'default', + 'insensitive', + ], + }, + { + 'name': 'SortOrder', + 'values': [ + 'asc', + 'desc', + ], + }, + { + 'name': 'TransactionIsolationLevel', + 'values': [ + 'ReadUncommitted', + 'ReadCommitted', + 'RepeatableRead', + 'Serializable', + ], + }, + { + 'name': 'UserScalarFieldEnum', + 'values': [ + 'id', + 'email', + 'name', + ], + }, + ], + }, + }, + 'mappings': { + 'modelOperations': [ + { + 'model': 'Post', + 'findUnique': 'findUniquePost', + 'findFirst': 'findFirstPost', + 'findMany': 'findManyPost', + 'create': 'createOnePost', + 'createMany': 'createManyPost', + 'update': 'updateOnePost', + 'updateMany': 'updateManyPost', + 'upsert': 'upsertOnePost', + 'delete': 'deleteOnePost', + 'deleteMany': 'deleteManyPost', + 'aggregate': 'aggregatePost', + 'groupBy': 'groupByPost', + 'findRaw': null, + 'aggregateRaw': null, + }, + { + 'model': 'User', + 'findUnique': 'findUniqueUser', + 'findFirst': 'findFirstUser', + 'findMany': 'findManyUser', + 'create': 'createOneUser', + 'createMany': 'createManyUser', + 'update': 'updateOneUser', + 'updateMany': 'updateManyUser', + 'upsert': 'upsertOneUser', + 'delete': 'deleteOneUser', + 'deleteMany': 'deleteManyUser', + 'aggregate': 'aggregateUser', + 'groupBy': 'groupByUser', + 'findRaw': null, + 'aggregateRaw': null, + }, + ], + 'otherOperations': { + 'read': [], + 'write': [ + 'executeRaw', + 'queryRaw', + ], + }, + }, +}); +const String schema = + '// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = "prisma-client-dart"\n previewFeatures = ["interactiveTransactions"]\n output = "../lib/readme_example.dart"\n}\n\ndatasource db {\n provider = "postgresql"\n url = env("DATABASE_URL")\n}\n\n// Data model\nmodel Post {\n id Int @id @default(autoincrement())\n title String\n content String?\n published Boolean @default(false)\n author User? @relation(fields: [authorId], references: [id])\n authorId Int?\n}\n\nmodel User {\n id Int @id @default(autoincrement())\n email String @unique\n name String?\n posts Post[]\n}\n'; +const String _executable = + r'/Users/seven/workspace/prisma/example/readme_example/.dart_tool/prisma/query-engine'; + +class Datasources { + Datasources({this.db}); + + final _i2.PrismaNullable<_i2.Datasource> db; + + Map _toOverwrites() { + final $overwrites = >{'db': db} + ..removeWhere(( + _, + v, + ) => + v == null); + return $overwrites.cast(); + } +} + +class PrismaClient { + const PrismaClient._( + this._engine, [ + this._headers, + ]); + + factory PrismaClient({_i2.PrismaNullable datasources}) { + final _i2.Engine engine = _i2.BinaryEngine( + datasources: datasources?._toOverwrites() ?? {}, + dmmf: dmmf, + schema: schema, + executable: _executable, + environment: _i4.environment.all, + ); + return PrismaClient._( + engine, + null, + ); + } + + final _i2.Engine _engine; + + final _i2.PrismaNullable<_i2.QueryEngineRequestHeaders> _headers; + + PostDelegate get post => PostDelegate._( + _engine, + _headers, + ); + UserDelegate get user => UserDelegate._( + _engine, + _headers, + ); + + /// Connect to the database. + Future $connect() => _engine.start(); + + /// Disconnect from the database. + Future $disconnect() => _engine.stop(); + Future $transaction( + Future Function(PrismaClient) fn, [ + _i2.TransactionOptions? options, + ]) async { + if (_headers?.transactionId != null) return fn(this); + final _i2.TransactionHeaders headers = _i2.TransactionHeaders(); + final _i2.TransactionInfo info = + await _engine.startTransaction(headers: headers); + try { + final T result = await fn(PrismaClient._( + _engine, + _i2.QueryEngineRequestHeaders(transactionId: info.id), + )); + await _engine.commitTransaction( + headers: headers, + info: info, + ); + return result; + } catch (e) { + await _engine.rollbackTransaction( + headers: headers, + info: info, + ); + rethrow; + } + } +} diff --git a/example/readme_example/lib/readme_example.g.dart b/example/readme_example/lib/readme_example.g.dart new file mode 100644 index 00000000..7a022deb --- /dev/null +++ b/example/readme_example/lib/readme_example.g.dart @@ -0,0 +1,372 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of prisma.client; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AggregatePost _$AggregatePostFromJson(Map json) => + AggregatePost( + $count: json['_count'] == null + ? null + : PostCountAggregateOutputType.fromJson( + json['_count'] as Map), + $avg: json['_avg'] == null + ? null + : PostAvgAggregateOutputType.fromJson( + json['_avg'] as Map), + $sum: json['_sum'] == null + ? null + : PostSumAggregateOutputType.fromJson( + json['_sum'] as Map), + $min: json['_min'] == null + ? null + : PostMinAggregateOutputType.fromJson( + json['_min'] as Map), + $max: json['_max'] == null + ? null + : PostMaxAggregateOutputType.fromJson( + json['_max'] as Map), + ); + +Map _$AggregatePostToJson(AggregatePost instance) => + { + '_count': instance.$count?.toJson(), + '_avg': instance.$avg?.toJson(), + '_sum': instance.$sum?.toJson(), + '_min': instance.$min?.toJson(), + '_max': instance.$max?.toJson(), + }; + +PostGroupByOutputType _$PostGroupByOutputTypeFromJson( + Map json) => + PostGroupByOutputType( + id: json['id'] as int, + title: json['title'] as String, + content: json['content'] as String?, + published: json['published'] as bool, + authorId: json['authorId'] as int?, + $count: json['_count'] == null + ? null + : PostCountAggregateOutputType.fromJson( + json['_count'] as Map), + $avg: json['_avg'] == null + ? null + : PostAvgAggregateOutputType.fromJson( + json['_avg'] as Map), + $sum: json['_sum'] == null + ? null + : PostSumAggregateOutputType.fromJson( + json['_sum'] as Map), + $min: json['_min'] == null + ? null + : PostMinAggregateOutputType.fromJson( + json['_min'] as Map), + $max: json['_max'] == null + ? null + : PostMaxAggregateOutputType.fromJson( + json['_max'] as Map), + ); + +Map _$PostGroupByOutputTypeToJson( + PostGroupByOutputType instance) => + { + 'id': instance.id, + 'title': instance.title, + 'content': instance.content, + 'published': instance.published, + 'authorId': instance.authorId, + '_count': instance.$count?.toJson(), + '_avg': instance.$avg?.toJson(), + '_sum': instance.$sum?.toJson(), + '_min': instance.$min?.toJson(), + '_max': instance.$max?.toJson(), + }; + +AggregateUser _$AggregateUserFromJson(Map json) => + AggregateUser( + $count: json['_count'] == null + ? null + : UserCountAggregateOutputType.fromJson( + json['_count'] as Map), + $avg: json['_avg'] == null + ? null + : UserAvgAggregateOutputType.fromJson( + json['_avg'] as Map), + $sum: json['_sum'] == null + ? null + : UserSumAggregateOutputType.fromJson( + json['_sum'] as Map), + $min: json['_min'] == null + ? null + : UserMinAggregateOutputType.fromJson( + json['_min'] as Map), + $max: json['_max'] == null + ? null + : UserMaxAggregateOutputType.fromJson( + json['_max'] as Map), + ); + +Map _$AggregateUserToJson(AggregateUser instance) => + { + '_count': instance.$count?.toJson(), + '_avg': instance.$avg?.toJson(), + '_sum': instance.$sum?.toJson(), + '_min': instance.$min?.toJson(), + '_max': instance.$max?.toJson(), + }; + +UserGroupByOutputType _$UserGroupByOutputTypeFromJson( + Map json) => + UserGroupByOutputType( + id: json['id'] as int, + email: json['email'] as String, + name: json['name'] as String?, + $count: json['_count'] == null + ? null + : UserCountAggregateOutputType.fromJson( + json['_count'] as Map), + $avg: json['_avg'] == null + ? null + : UserAvgAggregateOutputType.fromJson( + json['_avg'] as Map), + $sum: json['_sum'] == null + ? null + : UserSumAggregateOutputType.fromJson( + json['_sum'] as Map), + $min: json['_min'] == null + ? null + : UserMinAggregateOutputType.fromJson( + json['_min'] as Map), + $max: json['_max'] == null + ? null + : UserMaxAggregateOutputType.fromJson( + json['_max'] as Map), + ); + +Map _$UserGroupByOutputTypeToJson( + UserGroupByOutputType instance) => + { + 'id': instance.id, + 'email': instance.email, + 'name': instance.name, + '_count': instance.$count?.toJson(), + '_avg': instance.$avg?.toJson(), + '_sum': instance.$sum?.toJson(), + '_min': instance.$min?.toJson(), + '_max': instance.$max?.toJson(), + }; + +AffectedRowsOutput _$AffectedRowsOutputFromJson(Map json) => + AffectedRowsOutput( + count: json['count'] as int, + ); + +Map _$AffectedRowsOutputToJson(AffectedRowsOutput instance) => + { + 'count': instance.count, + }; + +PostCountAggregateOutputType _$PostCountAggregateOutputTypeFromJson( + Map json) => + PostCountAggregateOutputType( + id: json['id'] as int, + title: json['title'] as int, + content: json['content'] as int, + published: json['published'] as int, + authorId: json['authorId'] as int, + $all: json['_all'] as int, + ); + +Map _$PostCountAggregateOutputTypeToJson( + PostCountAggregateOutputType instance) => + { + 'id': instance.id, + 'title': instance.title, + 'content': instance.content, + 'published': instance.published, + 'authorId': instance.authorId, + '_all': instance.$all, + }; + +PostAvgAggregateOutputType _$PostAvgAggregateOutputTypeFromJson( + Map json) => + PostAvgAggregateOutputType( + id: (json['id'] as num?)?.toDouble(), + authorId: (json['authorId'] as num?)?.toDouble(), + ); + +Map _$PostAvgAggregateOutputTypeToJson( + PostAvgAggregateOutputType instance) => + { + 'id': instance.id, + 'authorId': instance.authorId, + }; + +PostSumAggregateOutputType _$PostSumAggregateOutputTypeFromJson( + Map json) => + PostSumAggregateOutputType( + id: json['id'] as int?, + authorId: json['authorId'] as int?, + ); + +Map _$PostSumAggregateOutputTypeToJson( + PostSumAggregateOutputType instance) => + { + 'id': instance.id, + 'authorId': instance.authorId, + }; + +PostMinAggregateOutputType _$PostMinAggregateOutputTypeFromJson( + Map json) => + PostMinAggregateOutputType( + id: json['id'] as int?, + title: json['title'] as String?, + content: json['content'] as String?, + published: json['published'] as bool?, + authorId: json['authorId'] as int?, + ); + +Map _$PostMinAggregateOutputTypeToJson( + PostMinAggregateOutputType instance) => + { + 'id': instance.id, + 'title': instance.title, + 'content': instance.content, + 'published': instance.published, + 'authorId': instance.authorId, + }; + +PostMaxAggregateOutputType _$PostMaxAggregateOutputTypeFromJson( + Map json) => + PostMaxAggregateOutputType( + id: json['id'] as int?, + title: json['title'] as String?, + content: json['content'] as String?, + published: json['published'] as bool?, + authorId: json['authorId'] as int?, + ); + +Map _$PostMaxAggregateOutputTypeToJson( + PostMaxAggregateOutputType instance) => + { + 'id': instance.id, + 'title': instance.title, + 'content': instance.content, + 'published': instance.published, + 'authorId': instance.authorId, + }; + +UserCountOutputType _$UserCountOutputTypeFromJson(Map json) => + UserCountOutputType( + posts: json['posts'] as int, + ); + +Map _$UserCountOutputTypeToJson( + UserCountOutputType instance) => + { + 'posts': instance.posts, + }; + +UserCountAggregateOutputType _$UserCountAggregateOutputTypeFromJson( + Map json) => + UserCountAggregateOutputType( + id: json['id'] as int, + email: json['email'] as int, + name: json['name'] as int, + $all: json['_all'] as int, + ); + +Map _$UserCountAggregateOutputTypeToJson( + UserCountAggregateOutputType instance) => + { + 'id': instance.id, + 'email': instance.email, + 'name': instance.name, + '_all': instance.$all, + }; + +UserAvgAggregateOutputType _$UserAvgAggregateOutputTypeFromJson( + Map json) => + UserAvgAggregateOutputType( + id: (json['id'] as num?)?.toDouble(), + ); + +Map _$UserAvgAggregateOutputTypeToJson( + UserAvgAggregateOutputType instance) => + { + 'id': instance.id, + }; + +UserSumAggregateOutputType _$UserSumAggregateOutputTypeFromJson( + Map json) => + UserSumAggregateOutputType( + id: json['id'] as int?, + ); + +Map _$UserSumAggregateOutputTypeToJson( + UserSumAggregateOutputType instance) => + { + 'id': instance.id, + }; + +UserMinAggregateOutputType _$UserMinAggregateOutputTypeFromJson( + Map json) => + UserMinAggregateOutputType( + id: json['id'] as int?, + email: json['email'] as String?, + name: json['name'] as String?, + ); + +Map _$UserMinAggregateOutputTypeToJson( + UserMinAggregateOutputType instance) => + { + 'id': instance.id, + 'email': instance.email, + 'name': instance.name, + }; + +UserMaxAggregateOutputType _$UserMaxAggregateOutputTypeFromJson( + Map json) => + UserMaxAggregateOutputType( + id: json['id'] as int?, + email: json['email'] as String?, + name: json['name'] as String?, + ); + +Map _$UserMaxAggregateOutputTypeToJson( + UserMaxAggregateOutputType instance) => + { + 'id': instance.id, + 'email': instance.email, + 'name': instance.name, + }; + +Post _$PostFromJson(Map json) => Post( + id: json['id'] as int, + title: json['title'] as String, + content: json['content'] as String?, + published: json['published'] as bool, + authorId: json['authorId'] as int?, + ); + +Map _$PostToJson(Post instance) => { + 'id': instance.id, + 'title': instance.title, + 'content': instance.content, + 'published': instance.published, + 'authorId': instance.authorId, + }; + +User _$UserFromJson(Map json) => User( + id: json['id'] as int, + email: json['email'] as String, + name: json['name'] as String?, + ); + +Map _$UserToJson(User instance) => { + 'id': instance.id, + 'email': instance.email, + 'name': instance.name, + }; diff --git a/example/readme_example/prisma/schema.prisma b/example/readme_example/prisma/schema.prisma new file mode 100644 index 00000000..16348309 --- /dev/null +++ b/example/readme_example/prisma/schema.prisma @@ -0,0 +1,30 @@ +// This is your Prisma schema file, +// learn more about it in the docs: https://pris.ly/d/prisma-schema + +generator client { + provider = "prisma-client-dart" + previewFeatures = ["interactiveTransactions"] + output = "../lib/readme_example.dart" +} + +datasource db { + provider = "postgresql" + url = env("DATABASE_URL") +} + +// Data model +model Post { + id Int @id @default(autoincrement()) + title String + content String? + published Boolean @default(false) + author User? @relation(fields: [authorId], references: [id]) + authorId Int? +} + +model User { + id Int @id @default(autoincrement()) + email String @unique + name String? + posts Post[] +} diff --git a/example/readme_example/pubspec.yaml b/example/readme_example/pubspec.yaml new file mode 100644 index 00000000..078ed9b7 --- /dev/null +++ b/example/readme_example/pubspec.yaml @@ -0,0 +1,19 @@ +name: readme_example +description: A sample command-line application. +version: 1.0.0 +# homepage: https://www.example.com + +environment: + sdk: '>=2.18.0 <3.0.0' + +dependencies: + orm: ^2.1.3 + +dev_dependencies: + build_runner: ^2.2.1 + json_serializable: ^6.3.2 + lints: ^2.0.0 + +dependency_overrides: + orm: + path: ../../ diff --git a/example/readme_example/query-engine-server.sh b/example/readme_example/query-engine-server.sh new file mode 100644 index 00000000..4fe49433 --- /dev/null +++ b/example/readme_example/query-engine-server.sh @@ -0,0 +1 @@ +DATABASE_URL=postgres://seven@localhost:5432/demo?schema=readme ./.dart_tool/prisma/query-engine --datamodel-path ./prisma/schema.prisma --enable-raw-queries --port 4466 --enable-playground \ No newline at end of file diff --git a/example/simple/bin/simple_example.dart b/example/simple/bin/simple_example.dart index 6b44c3f2..4db7c46e 100644 --- a/example/simple/bin/simple_example.dart +++ b/example/simple/bin/simple_example.dart @@ -7,9 +7,7 @@ final PrismaClient prisma = PrismaClient(); void main(List args) async { try { final User user = await prisma.user.create( - data: PrismaUnion.zero( - UserCreateInput(name: Faker().person.name()), - ), + data: UserCreateInput(name: Faker().person.name()), ); print(user.toJson()); diff --git a/example/simple/lib/src/generated/prisma_client.dart b/example/simple/lib/src/generated/prisma_client.dart index 884f73f7..ad3f59b2 100644 --- a/example/simple/lib/src/generated/prisma_client.dart +++ b/example/simple/lib/src/generated/prisma_client.dart @@ -12,7 +12,7 @@ export 'package:orm/orm.dart' show TransactionIsolationLevel; part 'prisma_client.g.dart'; // GENERATED CODE - DO NOT MODIFY BY HAND // -// ignore_for_file: constant_identifier_names, depend_on_referenced_packages, non_constant_identifier_names +// ignore_for_file: constant_identifier_names, depend_on_referenced_packages, non_constant_identifier_names, unused_import // //****************************************************************************** // This file was generated by Prisma @@ -44,19 +44,19 @@ class UserWhereInput implements _i2.JsonSerializable { this.sex, this.posts}); - final _i2.PrismaNullable> AND; + final _i2.PrismaNullable AND; final _i2.PrismaNullable> OR; - final _i2.PrismaNullable> NOT; + final _i2.PrismaNullable NOT; - final _i2.PrismaNullable<_i2.PrismaUnion> id; + final _i2.PrismaNullable id; - final _i2.PrismaNullable<_i2.PrismaUnion> name; + final _i2.PrismaNullable name; - final _i2.PrismaNullable<_i2.PrismaUnion> createdAt; + final _i2.PrismaNullable createdAt; - final _i2.PrismaNullable<_i2.PrismaUnion> sex; + final _i2.PrismaNullable sex; final _i2.PrismaNullable posts; @@ -170,22 +170,19 @@ class UserScalarWhereWithAggregatesInput implements _i2.JsonSerializable { this.createdAt, this.sex}); - final _i2.PrismaNullable> AND; + final _i2.PrismaNullable AND; final _i2.PrismaNullable> OR; - final _i2.PrismaNullable> NOT; + final _i2.PrismaNullable NOT; - final _i2.PrismaNullable<_i2.PrismaUnion> id; + final _i2.PrismaNullable id; - final _i2.PrismaNullable<_i2.PrismaUnion> - name; + final _i2.PrismaNullable name; - final _i2.PrismaNullable< - _i2.PrismaUnion> createdAt; + final _i2.PrismaNullable createdAt; - final _i2.PrismaNullable<_i2.PrismaUnion> - sex; + final _i2.PrismaNullable sex; @override Map toJson() { @@ -214,27 +211,25 @@ class PostWhereInput implements _i2.JsonSerializable { this.created_at, this.author}); - final _i2.PrismaNullable> AND; + final _i2.PrismaNullable AND; final _i2.PrismaNullable> OR; - final _i2.PrismaNullable> NOT; + final _i2.PrismaNullable NOT; - final _i2.PrismaNullable<_i2.PrismaUnion> id; + final _i2.PrismaNullable id; - final _i2.PrismaNullable<_i2.PrismaUnion> title; + final _i2.PrismaNullable title; - final _i2.PrismaNullable<_i2.PrismaUnion> authorId; + final _i2.PrismaNullable authorId; - final _i2.PrismaNullable<_i2.PrismaUnion> content; + final _i2.PrismaNullable content; - final _i2.PrismaNullable<_i2.PrismaUnion> published; + final _i2.PrismaNullable published; - final _i2.PrismaNullable<_i2.PrismaUnion> - created_at; + final _i2.PrismaNullable created_at; - final _i2.PrismaNullable<_i2.PrismaUnion> - author; + final _i2.PrismaNullable author; @override Map toJson() { @@ -370,28 +365,23 @@ class PostScalarWhereWithAggregatesInput implements _i2.JsonSerializable { this.published, this.created_at}); - final _i2.PrismaNullable> AND; + final _i2.PrismaNullable AND; final _i2.PrismaNullable> OR; - final _i2.PrismaNullable> NOT; + final _i2.PrismaNullable NOT; - final _i2.PrismaNullable<_i2.PrismaUnion> id; + final _i2.PrismaNullable id; - final _i2.PrismaNullable<_i2.PrismaUnion> - title; + final _i2.PrismaNullable title; - final _i2.PrismaNullable<_i2.PrismaUnion> - authorId; + final _i2.PrismaNullable authorId; - final _i2.PrismaNullable<_i2.PrismaUnion> - content; + final _i2.PrismaNullable content; - final _i2.PrismaNullable<_i2.PrismaUnion> - published; + final _i2.PrismaNullable published; - final _i2.PrismaNullable< - _i2.PrismaUnion> created_at; + final _i2.PrismaNullable created_at; @override Map toJson() { @@ -462,14 +452,11 @@ class UserUncheckedCreateInput implements _i2.JsonSerializable { class UserUpdateInput implements _i2.JsonSerializable { const UserUpdateInput({this.name, this.createdAt, this.sex, this.posts}); - final _i2.PrismaNullable< - _i2.PrismaUnion> name; + final _i2.PrismaNullable name; - final _i2.PrismaNullable< - _i2.PrismaUnion> createdAt; + final _i2.PrismaNullable createdAt; - final _i2.PrismaNullable< - _i2.PrismaUnion> sex; + final _i2.PrismaNullable sex; final _i2.PrismaNullable posts; @@ -488,17 +475,13 @@ class UserUncheckedUpdateInput implements _i2.JsonSerializable { const UserUncheckedUpdateInput( {this.id, this.name, this.createdAt, this.sex, this.posts}); - final _i2.PrismaNullable<_i2.PrismaUnion> - id; + final _i2.PrismaNullable id; - final _i2.PrismaNullable< - _i2.PrismaUnion> name; + final _i2.PrismaNullable name; - final _i2.PrismaNullable< - _i2.PrismaUnion> createdAt; + final _i2.PrismaNullable createdAt; - final _i2.PrismaNullable< - _i2.PrismaUnion> sex; + final _i2.PrismaNullable sex; final _i2.PrismaNullable posts; @@ -541,14 +524,11 @@ class UserCreateManyInput implements _i2.JsonSerializable { class UserUpdateManyMutationInput implements _i2.JsonSerializable { const UserUpdateManyMutationInput({this.name, this.createdAt, this.sex}); - final _i2.PrismaNullable< - _i2.PrismaUnion> name; + final _i2.PrismaNullable name; - final _i2.PrismaNullable< - _i2.PrismaUnion> createdAt; + final _i2.PrismaNullable createdAt; - final _i2.PrismaNullable< - _i2.PrismaUnion> sex; + final _i2.PrismaNullable sex; @override Map toJson() { @@ -564,17 +544,13 @@ class UserUncheckedUpdateManyInput implements _i2.JsonSerializable { const UserUncheckedUpdateManyInput( {this.id, this.name, this.createdAt, this.sex}); - final _i2.PrismaNullable<_i2.PrismaUnion> - id; + final _i2.PrismaNullable id; - final _i2.PrismaNullable< - _i2.PrismaUnion> name; + final _i2.PrismaNullable name; - final _i2.PrismaNullable< - _i2.PrismaUnion> createdAt; + final _i2.PrismaNullable createdAt; - final _i2.PrismaNullable< - _i2.PrismaUnion> sex; + final _i2.PrismaNullable sex; @override Map toJson() { @@ -655,18 +631,13 @@ class PostUpdateInput implements _i2.JsonSerializable { const PostUpdateInput( {this.title, this.content, this.published, this.created_at, this.author}); - final _i2.PrismaNullable< - _i2.PrismaUnion> title; + final _i2.PrismaNullable title; - final _i2.PrismaNullable< - _i2.PrismaUnion> content; + final _i2.PrismaNullable content; - final _i2 - .PrismaNullable<_i2.PrismaUnion> - published; + final _i2.PrismaNullable published; - final _i2.PrismaNullable< - _i2.PrismaUnion> created_at; + final _i2.PrismaNullable created_at; final _i2.PrismaNullable author; @@ -691,24 +662,17 @@ class PostUncheckedUpdateInput implements _i2.JsonSerializable { this.published, this.created_at}); - final _i2.PrismaNullable<_i2.PrismaUnion> - id; + final _i2.PrismaNullable id; - final _i2.PrismaNullable< - _i2.PrismaUnion> title; + final _i2.PrismaNullable title; - final _i2.PrismaNullable<_i2.PrismaUnion> - authorId; + final _i2.PrismaNullable authorId; - final _i2.PrismaNullable< - _i2.PrismaUnion> content; + final _i2.PrismaNullable content; - final _i2 - .PrismaNullable<_i2.PrismaUnion> - published; + final _i2.PrismaNullable published; - final _i2.PrismaNullable< - _i2.PrismaUnion> created_at; + final _i2.PrismaNullable created_at; @override Map toJson() { @@ -761,18 +725,13 @@ class PostUpdateManyMutationInput implements _i2.JsonSerializable { const PostUpdateManyMutationInput( {this.title, this.content, this.published, this.created_at}); - final _i2.PrismaNullable< - _i2.PrismaUnion> title; + final _i2.PrismaNullable title; - final _i2.PrismaNullable< - _i2.PrismaUnion> content; + final _i2.PrismaNullable content; - final _i2 - .PrismaNullable<_i2.PrismaUnion> - published; + final _i2.PrismaNullable published; - final _i2.PrismaNullable< - _i2.PrismaUnion> created_at; + final _i2.PrismaNullable created_at; @override Map toJson() { @@ -794,24 +753,17 @@ class PostUncheckedUpdateManyInput implements _i2.JsonSerializable { this.published, this.created_at}); - final _i2.PrismaNullable<_i2.PrismaUnion> - id; + final _i2.PrismaNullable id; - final _i2.PrismaNullable< - _i2.PrismaUnion> title; + final _i2.PrismaNullable title; - final _i2.PrismaNullable<_i2.PrismaUnion> - authorId; + final _i2.PrismaNullable authorId; - final _i2.PrismaNullable< - _i2.PrismaUnion> content; + final _i2.PrismaNullable content; - final _i2 - .PrismaNullable<_i2.PrismaUnion> - published; + final _i2.PrismaNullable published; - final _i2.PrismaNullable< - _i2.PrismaUnion> created_at; + final _i2.PrismaNullable created_at; @override Map toJson() { @@ -851,7 +803,7 @@ class IntFilter implements _i2.JsonSerializable { final _i2.PrismaNullable gte; - final _i2.PrismaNullable<_i2.PrismaUnion> not; + final _i2.PrismaNullable not; @override Map toJson() { @@ -905,7 +857,7 @@ class StringFilter implements _i2.JsonSerializable { final _i2.PrismaNullable mode; - final _i2.PrismaNullable<_i2.PrismaUnion> not; + final _i2.PrismaNullable not; @override Map toJson() { @@ -951,7 +903,7 @@ class DateTimeFilter implements _i2.JsonSerializable { final _i2.PrismaNullable gte; - final _i2.PrismaNullable<_i2.PrismaUnion> not; + final _i2.PrismaNullable not; @override Map toJson() { @@ -977,7 +929,7 @@ class EnumSexFilter implements _i2.JsonSerializable { final _i2.PrismaNullable> notIn; - final _i2.PrismaNullable<_i2.PrismaUnion> not; + final _i2.PrismaNullable not; @override Map toJson() { @@ -1147,8 +1099,7 @@ class IntWithAggregatesFilter implements _i2.JsonSerializable { final _i2.PrismaNullable gte; - final _i2.PrismaNullable<_i2.PrismaUnion> - not; + final _i2.PrismaNullable not; final _i2.PrismaNullable $count; @@ -1220,8 +1171,7 @@ class StringWithAggregatesFilter implements _i2.JsonSerializable { final _i2.PrismaNullable mode; - final _i2.PrismaNullable< - _i2.PrismaUnion> not; + final _i2.PrismaNullable not; final _i2.PrismaNullable $count; @@ -1279,8 +1229,7 @@ class DateTimeWithAggregatesFilter implements _i2.JsonSerializable { final _i2.PrismaNullable gte; - final _i2.PrismaNullable< - _i2.PrismaUnion> not; + final _i2.PrismaNullable not; final _i2.PrismaNullable $count; @@ -1322,8 +1271,7 @@ class EnumSexWithAggregatesFilter implements _i2.JsonSerializable { final _i2.PrismaNullable> notIn; - final _i2.PrismaNullable< - _i2.PrismaUnion> not; + final _i2.PrismaNullable not; final _i2.PrismaNullable $count; @@ -1350,7 +1298,7 @@ class BoolFilter implements _i2.JsonSerializable { final _i2.PrismaNullable equals; - final _i2.PrismaNullable<_i2.PrismaUnion> not; + final _i2.PrismaNullable not; @override Map toJson() { @@ -1517,9 +1465,7 @@ class BoolWithAggregatesFilter implements _i2.JsonSerializable { final _i2.PrismaNullable equals; - final _i2 - .PrismaNullable<_i2.PrismaUnion> - not; + final _i2.PrismaNullable not; final _i2.PrismaNullable $count; @@ -1543,14 +1489,14 @@ class PostCreateNestedManyWithoutAuthorInput implements _i2.JsonSerializable { const PostCreateNestedManyWithoutAuthorInput( {this.create, this.connectOrCreate, this.createMany, this.connect}); - final _i2.PrismaNullable> create; + final _i2.PrismaNullable create; - final _i2.PrismaNullable> + final _i2.PrismaNullable connectOrCreate; final _i2.PrismaNullable createMany; - final _i2.PrismaNullable> connect; + final _i2.PrismaNullable connect; @override Map toJson() { @@ -1568,14 +1514,14 @@ class PostUncheckedCreateNestedManyWithoutAuthorInput const PostUncheckedCreateNestedManyWithoutAuthorInput( {this.create, this.connectOrCreate, this.createMany, this.connect}); - final _i2.PrismaNullable> create; + final _i2.PrismaNullable create; - final _i2.PrismaNullable> + final _i2.PrismaNullable connectOrCreate; final _i2.PrismaNullable createMany; - final _i2.PrismaNullable> connect; + final _i2.PrismaNullable connect; @override Map toJson() { @@ -1641,31 +1587,29 @@ class PostUpdateManyWithoutAuthorNestedInput implements _i2.JsonSerializable { this.updateMany, this.deleteMany}); - final _i2.PrismaNullable> create; + final _i2.PrismaNullable create; - final _i2.PrismaNullable> + final _i2.PrismaNullable connectOrCreate; - final _i2.PrismaNullable> - upsert; + final _i2.PrismaNullable upsert; final _i2.PrismaNullable createMany; - final _i2.PrismaNullable> set$; + final _i2.PrismaNullable set$; - final _i2.PrismaNullable> disconnect; + final _i2.PrismaNullable disconnect; - final _i2.PrismaNullable> delete; + final _i2.PrismaNullable delete; - final _i2.PrismaNullable> connect; + final _i2.PrismaNullable connect; - final _i2.PrismaNullable> - update; + final _i2.PrismaNullable update; - final _i2.PrismaNullable> + final _i2.PrismaNullable updateMany; - final _i2.PrismaNullable> deleteMany; + final _i2.PrismaNullable deleteMany; @override Map toJson() { @@ -1726,31 +1670,29 @@ class PostUncheckedUpdateManyWithoutAuthorNestedInput this.updateMany, this.deleteMany}); - final _i2.PrismaNullable> create; + final _i2.PrismaNullable create; - final _i2.PrismaNullable> + final _i2.PrismaNullable connectOrCreate; - final _i2.PrismaNullable> - upsert; + final _i2.PrismaNullable upsert; final _i2.PrismaNullable createMany; - final _i2.PrismaNullable> set$; + final _i2.PrismaNullable set$; - final _i2.PrismaNullable> disconnect; + final _i2.PrismaNullable disconnect; - final _i2.PrismaNullable> delete; + final _i2.PrismaNullable delete; - final _i2.PrismaNullable> connect; + final _i2.PrismaNullable connect; - final _i2.PrismaNullable> - update; + final _i2.PrismaNullable update; - final _i2.PrismaNullable> + final _i2.PrismaNullable updateMany; - final _i2.PrismaNullable> deleteMany; + final _i2.PrismaNullable deleteMany; @override Map toJson() { @@ -1774,9 +1716,7 @@ class UserCreateNestedOneWithoutPostsInput implements _i2.JsonSerializable { const UserCreateNestedOneWithoutPostsInput( {this.create, this.connectOrCreate, this.connect}); - final _i2.PrismaNullable< - _i2.PrismaUnion> create; + final _i2.PrismaNullable create; final _i2.PrismaNullable connectOrCreate; @@ -1815,9 +1755,7 @@ class UserUpdateOneRequiredWithoutPostsNestedInput this.connect, this.update}); - final _i2.PrismaNullable< - _i2.PrismaUnion> create; + final _i2.PrismaNullable create; final _i2.PrismaNullable connectOrCreate; @@ -1826,9 +1764,7 @@ class UserUpdateOneRequiredWithoutPostsNestedInput final _i2.PrismaNullable connect; - final _i2.PrismaNullable< - _i2.PrismaUnion> update; + final _i2.PrismaNullable update; @override Map toJson() { @@ -1867,7 +1803,7 @@ class NestedIntFilter implements _i2.JsonSerializable { final _i2.PrismaNullable gte; - final _i2.PrismaNullable<_i2.PrismaUnion> not; + final _i2.PrismaNullable not; @override Map toJson() { @@ -1918,7 +1854,7 @@ class NestedStringFilter implements _i2.JsonSerializable { final _i2.PrismaNullable endsWith; - final _i2.PrismaNullable<_i2.PrismaUnion> not; + final _i2.PrismaNullable not; @override Map toJson() { @@ -1963,7 +1899,7 @@ class NestedDateTimeFilter implements _i2.JsonSerializable { final _i2.PrismaNullable gte; - final _i2.PrismaNullable<_i2.PrismaUnion> not; + final _i2.PrismaNullable not; @override Map toJson() { @@ -1989,7 +1925,7 @@ class NestedEnumSexFilter implements _i2.JsonSerializable { final _i2.PrismaNullable> notIn; - final _i2.PrismaNullable<_i2.PrismaUnion> not; + final _i2.PrismaNullable not; @override Map toJson() { @@ -2032,8 +1968,7 @@ class NestedIntWithAggregatesFilter implements _i2.JsonSerializable { final _i2.PrismaNullable gte; - final _i2.PrismaNullable<_i2.PrismaUnion> - not; + final _i2.PrismaNullable not; final _i2.PrismaNullable $count; @@ -2090,7 +2025,7 @@ class NestedFloatFilter implements _i2.JsonSerializable { final _i2.PrismaNullable gte; - final _i2.PrismaNullable<_i2.PrismaUnion> not; + final _i2.PrismaNullable not; @override Map toJson() { @@ -2144,8 +2079,7 @@ class NestedStringWithAggregatesFilter implements _i2.JsonSerializable { final _i2.PrismaNullable endsWith; - final _i2.PrismaNullable< - _i2.PrismaUnion> not; + final _i2.PrismaNullable not; final _i2.PrismaNullable $count; @@ -2202,8 +2136,7 @@ class NestedDateTimeWithAggregatesFilter implements _i2.JsonSerializable { final _i2.PrismaNullable gte; - final _i2.PrismaNullable< - _i2.PrismaUnion> not; + final _i2.PrismaNullable not; final _i2.PrismaNullable $count; @@ -2245,8 +2178,7 @@ class NestedEnumSexWithAggregatesFilter implements _i2.JsonSerializable { final _i2.PrismaNullable> notIn; - final _i2.PrismaNullable< - _i2.PrismaUnion> not; + final _i2.PrismaNullable not; final _i2.PrismaNullable $count; @@ -2273,7 +2205,7 @@ class NestedBoolFilter implements _i2.JsonSerializable { final _i2.PrismaNullable equals; - final _i2.PrismaNullable<_i2.PrismaUnion> not; + final _i2.PrismaNullable not; @override Map toJson() { @@ -2290,9 +2222,7 @@ class NestedBoolWithAggregatesFilter implements _i2.JsonSerializable { final _i2.PrismaNullable equals; - final _i2 - .PrismaNullable<_i2.PrismaUnion> - not; + final _i2.PrismaNullable not; final _i2.PrismaNullable $count; @@ -2374,8 +2304,7 @@ class PostCreateOrConnectWithoutAuthorInput implements _i2.JsonSerializable { final PostWhereUniqueInput where; - final _i2.PrismaUnion create; + final PostCreateWithoutAuthorInput create; @override Map toJson() { @@ -2410,11 +2339,9 @@ class PostUpsertWithWhereUniqueWithoutAuthorInput final PostWhereUniqueInput where; - final _i2.PrismaUnion update; + final PostUpdateWithoutAuthorInput update; - final _i2.PrismaUnion create; + final PostCreateWithoutAuthorInput create; @override Map toJson() { @@ -2433,8 +2360,7 @@ class PostUpdateWithWhereUniqueWithoutAuthorInput final PostWhereUniqueInput where; - final _i2.PrismaUnion data; + final PostUpdateWithoutAuthorInput data; @override Map toJson() { @@ -2452,8 +2378,7 @@ class PostUpdateManyWithWhereWithoutAuthorInput final PostScalarWhereInput where; - final _i2.PrismaUnion data; + final PostUpdateManyMutationInput data; @override Map toJson() { @@ -2476,24 +2401,23 @@ class PostScalarWhereInput implements _i2.JsonSerializable { this.published, this.created_at}); - final _i2.PrismaNullable> AND; + final _i2.PrismaNullable AND; final _i2.PrismaNullable> OR; - final _i2.PrismaNullable> NOT; + final _i2.PrismaNullable NOT; - final _i2.PrismaNullable<_i2.PrismaUnion> id; + final _i2.PrismaNullable id; - final _i2.PrismaNullable<_i2.PrismaUnion> title; + final _i2.PrismaNullable title; - final _i2.PrismaNullable<_i2.PrismaUnion> authorId; + final _i2.PrismaNullable authorId; - final _i2.PrismaNullable<_i2.PrismaUnion> content; + final _i2.PrismaNullable content; - final _i2.PrismaNullable<_i2.PrismaUnion> published; + final _i2.PrismaNullable published; - final _i2.PrismaNullable<_i2.PrismaUnion> - created_at; + final _i2.PrismaNullable created_at; @override Map toJson() { @@ -2560,8 +2484,7 @@ class UserCreateOrConnectWithoutPostsInput implements _i2.JsonSerializable { final UserWhereUniqueInput where; - final _i2.PrismaUnion create; + final UserCreateWithoutPostsInput create; @override Map toJson() { @@ -2576,11 +2499,9 @@ class UserUpsertWithoutPostsInput implements _i2.JsonSerializable { const UserUpsertWithoutPostsInput( {required this.update, required this.create}); - final _i2.PrismaUnion update; + final UserUpdateWithoutPostsInput update; - final _i2.PrismaUnion create; + final UserCreateWithoutPostsInput create; @override Map toJson() { @@ -2594,14 +2515,11 @@ class UserUpsertWithoutPostsInput implements _i2.JsonSerializable { class UserUpdateWithoutPostsInput implements _i2.JsonSerializable { const UserUpdateWithoutPostsInput({this.name, this.createdAt, this.sex}); - final _i2.PrismaNullable< - _i2.PrismaUnion> name; + final _i2.PrismaNullable name; - final _i2.PrismaNullable< - _i2.PrismaUnion> createdAt; + final _i2.PrismaNullable createdAt; - final _i2.PrismaNullable< - _i2.PrismaUnion> sex; + final _i2.PrismaNullable sex; @override Map toJson() { @@ -2617,17 +2535,13 @@ class UserUncheckedUpdateWithoutPostsInput implements _i2.JsonSerializable { const UserUncheckedUpdateWithoutPostsInput( {this.id, this.name, this.createdAt, this.sex}); - final _i2.PrismaNullable<_i2.PrismaUnion> - id; + final _i2.PrismaNullable id; - final _i2.PrismaNullable< - _i2.PrismaUnion> name; + final _i2.PrismaNullable name; - final _i2.PrismaNullable< - _i2.PrismaUnion> createdAt; + final _i2.PrismaNullable createdAt; - final _i2.PrismaNullable< - _i2.PrismaUnion> sex; + final _i2.PrismaNullable sex; @override Map toJson() { @@ -2674,18 +2588,13 @@ class PostUpdateWithoutAuthorInput implements _i2.JsonSerializable { const PostUpdateWithoutAuthorInput( {this.title, this.content, this.published, this.created_at}); - final _i2.PrismaNullable< - _i2.PrismaUnion> title; + final _i2.PrismaNullable title; - final _i2.PrismaNullable< - _i2.PrismaUnion> content; + final _i2.PrismaNullable content; - final _i2 - .PrismaNullable<_i2.PrismaUnion> - published; + final _i2.PrismaNullable published; - final _i2.PrismaNullable< - _i2.PrismaUnion> created_at; + final _i2.PrismaNullable created_at; @override Map toJson() { @@ -2702,21 +2611,15 @@ class PostUncheckedUpdateWithoutAuthorInput implements _i2.JsonSerializable { const PostUncheckedUpdateWithoutAuthorInput( {this.id, this.title, this.content, this.published, this.created_at}); - final _i2.PrismaNullable<_i2.PrismaUnion> - id; + final _i2.PrismaNullable id; - final _i2.PrismaNullable< - _i2.PrismaUnion> title; + final _i2.PrismaNullable title; - final _i2.PrismaNullable< - _i2.PrismaUnion> content; + final _i2.PrismaNullable content; - final _i2 - .PrismaNullable<_i2.PrismaUnion> - published; + final _i2.PrismaNullable published; - final _i2.PrismaNullable< - _i2.PrismaUnion> created_at; + final _i2.PrismaNullable created_at; @override Map toJson() { @@ -2734,21 +2637,15 @@ class PostUncheckedUpdateManyWithoutPostsInput implements _i2.JsonSerializable { const PostUncheckedUpdateManyWithoutPostsInput( {this.id, this.title, this.content, this.published, this.created_at}); - final _i2.PrismaNullable<_i2.PrismaUnion> - id; + final _i2.PrismaNullable id; - final _i2.PrismaNullable< - _i2.PrismaUnion> title; + final _i2.PrismaNullable title; - final _i2.PrismaNullable< - _i2.PrismaUnion> content; + final _i2.PrismaNullable content; - final _i2 - .PrismaNullable<_i2.PrismaUnion> - published; + final _i2.PrismaNullable published; - final _i2.PrismaNullable< - _i2.PrismaUnion> created_at; + final _i2.PrismaNullable created_at; @override Map toJson() { @@ -3303,9 +3200,7 @@ class UserDelegate { .toList(); } - Future create( - {required _i2.PrismaUnion - data}) async { + Future create({required UserCreateInput data}) async { final String sdl = _i2.GraphQLField('mutation', fields: _i2.GraphQLFields([ _i2.GraphQLField('createOneUser', @@ -3344,7 +3239,7 @@ class UserDelegate { } Future<_i2.PrismaNullable> update( - {required _i2.PrismaUnion data, + {required UserUpdateInput data, required UserWhereUniqueInput where}) async { final String sdl = _i2.GraphQLField('mutation', fields: _i2.GraphQLFields([ @@ -3366,9 +3261,7 @@ class UserDelegate { } Future updateMany( - {required _i2.PrismaUnion - data, + {required UserUpdateManyMutationInput data, _i2.PrismaNullable where}) async { final String sdl = _i2.GraphQLField('mutation', fields: _i2.GraphQLFields([ @@ -3390,10 +3283,8 @@ class UserDelegate { Future upsert( {required UserWhereUniqueInput where, - required _i2.PrismaUnion - create, - required _i2.PrismaUnion - update}) async { + required UserCreateInput create, + required UserUpdateInput update}) async { final String sdl = _i2.GraphQLField('mutation', fields: _i2.GraphQLFields([ _i2.GraphQLField('upsertOneUser', @@ -3594,9 +3485,7 @@ class PostDelegate { .toList(); } - Future create( - {required _i2.PrismaUnion - data}) async { + Future create({required PostCreateInput data}) async { final String sdl = _i2.GraphQLField('mutation', fields: _i2.GraphQLFields([ _i2.GraphQLField('createOnePost', @@ -3635,7 +3524,7 @@ class PostDelegate { } Future<_i2.PrismaNullable> update( - {required _i2.PrismaUnion data, + {required PostUpdateInput data, required PostWhereUniqueInput where}) async { final String sdl = _i2.GraphQLField('mutation', fields: _i2.GraphQLFields([ @@ -3657,9 +3546,7 @@ class PostDelegate { } Future updateMany( - {required _i2.PrismaUnion - data, + {required PostUpdateManyMutationInput data, _i2.PrismaNullable where}) async { final String sdl = _i2.GraphQLField('mutation', fields: _i2.GraphQLFields([ @@ -3681,10 +3568,8 @@ class PostDelegate { Future upsert( {required PostWhereUniqueInput where, - required _i2.PrismaUnion - create, - required _i2.PrismaUnion - update}) async { + required PostCreateInput create, + required PostUpdateInput update}) async { final String sdl = _i2.GraphQLField('mutation', fields: _i2.GraphQLFields([ _i2.GraphQLField('upsertOnePost', diff --git a/lib/version.dart b/lib/version.dart index b7fdd64b..d3ee4c79 100644 --- a/lib/version.dart +++ b/lib/version.dart @@ -5,4 +5,4 @@ const String binaryVersion = 'c875e43600dfe042452e0b868f7a48b817b9640b'; const String capiVersion = '0.0.1'; /// The Prisma CLI version. -const String packageVersion = '2.1.2'; +const String packageVersion = '2.2.0'; diff --git a/pubspec.yaml b/pubspec.yaml index cb982467..ba524c8a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,11 +1,11 @@ name: orm description: ◭ Next-generation ORM for Dart Navtive & Flutter | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB. -version: 2.1.3 +version: 2.2.0 homepage: https://prisma.pub repository: https://github.com/odroe/prisma-dart environment: - sdk: '>=2.17.6 <3.0.0' + sdk: '>=2.18.0 <3.0.0' executables: prisma: orm @@ -26,3 +26,4 @@ dev_dependencies: build_runner: ^2.2.0 json_serializable: ^6.3.1 lints: ^2.0.0 + test: ^1.21.6 diff --git a/test/bugs/isses_23_test.dart b/test/bugs/isses_23_test.dart new file mode 100644 index 00000000..69c08665 --- /dev/null +++ b/test/bugs/isses_23_test.dart @@ -0,0 +1,70 @@ +import 'dart:convert'; +import 'dart:io'; + +import 'package:code_builder/code_builder.dart'; +import 'package:orm/dmmf.dart'; +import 'package:orm/version.dart'; +import 'package:test/test.dart'; + +import '../../bin/src/binary_engine/binary_engine.dart'; +import '../../bin/src/binary_engine/binary_engine_platform.dart'; +import '../../bin/src/binary_engine/binray_engine_type.dart'; +import '../../bin/src/generator/utils/schema_type.dart'; + +void main() { + final BinaryEngine engine = BinaryEngine( + platform: BinaryEnginePlatform.current, + type: BinaryEngineType.query, + version: binaryVersion, + ); + + const String schema = r''' +model User { + id Int @id @default(autoincrement()) + name String? +} +'''; + + late Reference reference; + + setUp(() async { + // Download binary engine. + if (!await engine.hasDownloaded) { + await engine.download((done) => done); + } + + // Get dmmf. + final ProcessResult result = await engine.run( + ['--enable-raw-queries', 'cli', 'dmmf'], + environment: { + 'PRISMA_DML': base64.encode(schema.codeUnits), + }, + ); + + // Create DMMF document. + final Document document = + Document.fromJson(jsonDecode(result.stdout) as Map); + + final List inputTypes = + (document.schema.inputObjectTypes.model ?? []) + ..addAll(document.schema.inputObjectTypes.prisma ?? []); + final InputType userWhereInput = + inputTypes.firstWhere((element) => element.name == 'UserWhereInput'); + + // Set `name` input types. + final List nameInputTypes = userWhereInput.fields + .firstWhere((element) => element.name == 'name') + .inputTypes; + + reference = schemaTypeResolver(nameInputTypes); + }); + + test('Issue #23 fixed test (https://github.com/odroe/prisma-dart/issues/23)', + () { + expect(reference, isA()); + expect(reference.symbol, 'StringNullableFilter'); + + final TypeReference typeReference = reference as TypeReference; + expect(typeReference.types, hasLength(0)); + }); +}