diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 0b018a9..9f2c078 100755 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -14,11 +14,11 @@ }, "extensions": [ "ms-azuretools.vscode-docker", - "ms-vscode.vscode-typescript-next", "dart-code.dart-code", "golang.go", - "denoland.vscode-deno" + "denoland.vscode-deno", + "Prisma.prisma" ], "features": { //"docker-in-docker": "latest", diff --git a/README.md b/README.md index 9c0a8fc..300ac78 100755 --- a/README.md +++ b/README.md @@ -112,6 +112,9 @@ After deployment, data can be accessed via a webui: bunx prisma studio ``` +### Codegen +Inside the corresponding backend run: ```bunx prisma generate``` + # Known Issues ## Hydration issue caused by browser extensions diff --git a/backend-dart/lib/application/dto/user_dto.dart b/backend-dart/lib/application/dto/user_dto.dart new file mode 100644 index 0000000..91de950 --- /dev/null +++ b/backend-dart/lib/application/dto/user_dto.dart @@ -0,0 +1,29 @@ +import 'package:json_annotation/json_annotation.dart'; + +part 'user_dto.g.dart'; + +@JsonSerializable() +class UserDto { + final String id; + final String name; + final String email; + + // Optional: Füge zusätzliche Felder wie Timestamps hinzu + final DateTime? createdAt; + final DateTime? updatedAt; + + UserDto({ + required this.id, + required this.name, + required this.email, + this.createdAt, + this.updatedAt, + }); + + /// Factory-Methode zur Deserialisierung von JSON + factory UserDto.fromJson(Map json) => + _$UserDtoFromJson(json); + + /// Methode zur Serialisierung nach JSON + Map toJson() => _$UserDtoToJson(this); +} diff --git a/backend-dart/lib/application/dto/user_dto.g.dart b/backend-dart/lib/application/dto/user_dto.g.dart new file mode 100644 index 0000000..bbaa65b --- /dev/null +++ b/backend-dart/lib/application/dto/user_dto.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'user_dto.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +UserDto _$UserDtoFromJson(Map json) => UserDto( + id: json['id'] as String, + name: json['name'] as String, + email: json['email'] as String, + createdAt: json['createdAt'] == null + ? null + : DateTime.parse(json['createdAt'] as String), + updatedAt: json['updatedAt'] == null + ? null + : DateTime.parse(json['updatedAt'] as String), + ); + +Map _$UserDtoToJson(UserDto instance) => { + 'id': instance.id, + 'name': instance.name, + 'email': instance.email, + 'createdAt': instance.createdAt?.toIso8601String(), + 'updatedAt': instance.updatedAt?.toIso8601String(), + }; diff --git a/backend-dart/lib/domain/entities/user.dart b/backend-dart/lib/domain/entities/user.dart index a2d38b5..5d2a605 100755 --- a/backend-dart/lib/domain/entities/user.dart +++ b/backend-dart/lib/domain/entities/user.dart @@ -1,13 +1,16 @@ -class User { - final String id; - final String name; - final String email; - final String? password; +import 'package:freezed_annotation/freezed_annotation.dart'; - User({ - required this.id, - required this.name, - required this.email, - required this.password, - }); +part 'user.freezed.dart'; +part 'user.g.dart'; + +@freezed +class User with _$User { + const factory User({ + required String id, + required String name, + required String email, + String? password, + DateTime? createdAt, + DateTime? updatedAt, + }) = _User; } diff --git a/backend-dart/lib/infrastructure/persistence/db/client.dart b/backend-dart/lib/infrastructure/persistence/db/client.dart index 1bd87ee..9728959 100755 --- a/backend-dart/lib/infrastructure/persistence/db/client.dart +++ b/backend-dart/lib/infrastructure/persistence/db/client.dart @@ -6,15 +6,15 @@ import 'package:orm/orm.dart' as _i1; import 'model.dart' as _i2; import 'prisma.dart' as _i3; -class UserDelegate { - const UserDelegate._(this._client); +class UserDboDelegate { + const UserDboDelegate._(this._client); final PrismaClient _client; - _i1.ActionClient<_i2.User?> findUnique({ - required _i3.UserWhereUniqueInput where, - _i3.UserSelect? select, - _i3.UserInclude? include, + _i1.ActionClient<_i2.UserDbo?> findUnique({ + required _i3.UserDboWhereUniqueInput where, + _i3.UserDboSelect? select, + _i3.UserDboInclude? include, }) { final args = { 'where': where, @@ -23,7 +23,7 @@ class UserDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.findUnique, datamodel: PrismaClient.datamodel, ); @@ -32,17 +32,17 @@ class UserDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.User?>( - action: 'findUniqueUser', + return _i1.ActionClient<_i2.UserDbo?>( + action: 'findUniqueUserDbo', result: result, - factory: (e) => e != null ? _i2.User.fromJson(e) : null, + factory: (e) => e != null ? _i2.UserDbo.fromJson(e) : null, ); } - _i1.ActionClient<_i2.User> findUniqueOrThrow({ - required _i3.UserWhereUniqueInput where, - _i3.UserSelect? select, - _i3.UserInclude? include, + _i1.ActionClient<_i2.UserDbo> findUniqueOrThrow({ + required _i3.UserDboWhereUniqueInput where, + _i3.UserDboSelect? select, + _i3.UserDboInclude? include, }) { final args = { 'where': where, @@ -51,7 +51,7 @@ class UserDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.findUniqueOrThrow, datamodel: PrismaClient.datamodel, ); @@ -60,24 +60,24 @@ class UserDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.User>( - action: 'findUniqueUserOrThrow', + return _i1.ActionClient<_i2.UserDbo>( + action: 'findUniqueUserDboOrThrow', result: result, - factory: (e) => _i2.User.fromJson(e), + factory: (e) => _i2.UserDbo.fromJson(e), ); } - _i1.ActionClient<_i2.User?> findFirst({ - _i3.UserWhereInput? where, - _i1.PrismaUnion, - _i3.UserOrderByWithRelationInput>? + _i1.ActionClient<_i2.UserDbo?> findFirst({ + _i3.UserDboWhereInput? where, + _i1.PrismaUnion, + _i3.UserDboOrderByWithRelationInput>? orderBy, - _i3.UserWhereUniqueInput? cursor, + _i3.UserDboWhereUniqueInput? cursor, int? take, int? skip, - _i1.PrismaUnion<_i3.UserScalar, Iterable<_i3.UserScalar>>? distinct, - _i3.UserSelect? select, - _i3.UserInclude? include, + _i1.PrismaUnion<_i3.UserDboScalar, Iterable<_i3.UserDboScalar>>? distinct, + _i3.UserDboSelect? select, + _i3.UserDboInclude? include, }) { final args = { 'where': where, @@ -91,7 +91,7 @@ class UserDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.findFirst, datamodel: PrismaClient.datamodel, ); @@ -100,24 +100,24 @@ class UserDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.User?>( - action: 'findFirstUser', + return _i1.ActionClient<_i2.UserDbo?>( + action: 'findFirstUserDbo', result: result, - factory: (e) => e != null ? _i2.User.fromJson(e) : null, + factory: (e) => e != null ? _i2.UserDbo.fromJson(e) : null, ); } - _i1.ActionClient<_i2.User> findFirstOrThrow({ - _i3.UserWhereInput? where, - _i1.PrismaUnion, - _i3.UserOrderByWithRelationInput>? + _i1.ActionClient<_i2.UserDbo> findFirstOrThrow({ + _i3.UserDboWhereInput? where, + _i1.PrismaUnion, + _i3.UserDboOrderByWithRelationInput>? orderBy, - _i3.UserWhereUniqueInput? cursor, + _i3.UserDboWhereUniqueInput? cursor, int? take, int? skip, - _i1.PrismaUnion<_i3.UserScalar, Iterable<_i3.UserScalar>>? distinct, - _i3.UserSelect? select, - _i3.UserInclude? include, + _i1.PrismaUnion<_i3.UserDboScalar, Iterable<_i3.UserDboScalar>>? distinct, + _i3.UserDboSelect? select, + _i3.UserDboInclude? include, }) { final args = { 'where': where, @@ -131,7 +131,7 @@ class UserDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.findFirstOrThrow, datamodel: PrismaClient.datamodel, ); @@ -140,24 +140,24 @@ class UserDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.User>( - action: 'findFirstUserOrThrow', + return _i1.ActionClient<_i2.UserDbo>( + action: 'findFirstUserDboOrThrow', result: result, - factory: (e) => _i2.User.fromJson(e), + factory: (e) => _i2.UserDbo.fromJson(e), ); } - _i1.ActionClient> findMany({ - _i3.UserWhereInput? where, - _i1.PrismaUnion, - _i3.UserOrderByWithRelationInput>? + _i1.ActionClient> findMany({ + _i3.UserDboWhereInput? where, + _i1.PrismaUnion, + _i3.UserDboOrderByWithRelationInput>? orderBy, - _i3.UserWhereUniqueInput? cursor, + _i3.UserDboWhereUniqueInput? cursor, int? take, int? skip, - _i1.PrismaUnion<_i3.UserScalar, Iterable<_i3.UserScalar>>? distinct, - _i3.UserSelect? select, - _i3.UserInclude? include, + _i1.PrismaUnion<_i3.UserDboScalar, Iterable<_i3.UserDboScalar>>? distinct, + _i3.UserDboSelect? select, + _i3.UserDboInclude? include, }) { final args = { 'where': where, @@ -171,7 +171,7 @@ class UserDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.findMany, datamodel: PrismaClient.datamodel, ); @@ -180,19 +180,20 @@ class UserDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient>( - action: 'findManyUser', + return _i1.ActionClient>( + action: 'findManyUserDbo', result: result, factory: (values) => - (values as Iterable).map((e) => _i2.User.fromJson(e)), + (values as Iterable).map((e) => _i2.UserDbo.fromJson(e)), ); } - _i1.ActionClient<_i2.User> create({ - required _i1.PrismaUnion<_i3.UserCreateInput, _i3.UserUncheckedCreateInput> + _i1.ActionClient<_i2.UserDbo> create({ + required _i1 + .PrismaUnion<_i3.UserDboCreateInput, _i3.UserDboUncheckedCreateInput> data, - _i3.UserSelect? select, - _i3.UserInclude? include, + _i3.UserDboSelect? select, + _i3.UserDboInclude? include, }) { final args = { 'data': data, @@ -201,7 +202,7 @@ class UserDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.createOne, datamodel: PrismaClient.datamodel, ); @@ -210,16 +211,16 @@ class UserDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.User>( - action: 'createOneUser', + return _i1.ActionClient<_i2.UserDbo>( + action: 'createOneUserDbo', result: result, - factory: (e) => _i2.User.fromJson(e), + factory: (e) => _i2.UserDbo.fromJson(e), ); } _i1.ActionClient<_i3.AffectedRowsOutput> createMany({ - required _i1 - .PrismaUnion<_i3.UserCreateManyInput, Iterable<_i3.UserCreateManyInput>> + required _i1.PrismaUnion<_i3.UserDboCreateManyInput, + Iterable<_i3.UserDboCreateManyInput>> data, bool? skipDuplicates, }) { @@ -229,7 +230,7 @@ class UserDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.createMany, datamodel: PrismaClient.datamodel, ); @@ -239,19 +240,19 @@ class UserDelegate { transaction: _client.$transaction.transaction, ); return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'createManyUser', + action: 'createManyUserDbo', result: result, factory: (e) => _i3.AffectedRowsOutput.fromJson(e), ); } - _i1.ActionClient> + _i1.ActionClient> createManyAndReturn({ - required _i1 - .PrismaUnion<_i3.UserCreateManyInput, Iterable<_i3.UserCreateManyInput>> + required _i1.PrismaUnion<_i3.UserDboCreateManyInput, + Iterable<_i3.UserDboCreateManyInput>> data, bool? skipDuplicates, - _i3.CreateManyUserAndReturnOutputTypeSelect? select, + _i3.CreateManyUserDboAndReturnOutputTypeSelect? select, }) { final args = { 'data': data, @@ -260,7 +261,7 @@ class UserDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.createManyAndReturn, datamodel: PrismaClient.datamodel, ); @@ -269,20 +270,21 @@ class UserDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient>( - action: 'createManyUserAndReturn', + return _i1.ActionClient>( + action: 'createManyUserDboAndReturn', result: result, factory: (values) => (values as Iterable) - .map((e) => _i2.CreateManyUserAndReturnOutputType.fromJson(e)), + .map((e) => _i2.CreateManyUserDboAndReturnOutputType.fromJson(e)), ); } - _i1.ActionClient<_i2.User?> update({ - required _i1.PrismaUnion<_i3.UserUpdateInput, _i3.UserUncheckedUpdateInput> + _i1.ActionClient<_i2.UserDbo?> update({ + required _i1 + .PrismaUnion<_i3.UserDboUpdateInput, _i3.UserDboUncheckedUpdateInput> data, - required _i3.UserWhereUniqueInput where, - _i3.UserSelect? select, - _i3.UserInclude? include, + required _i3.UserDboWhereUniqueInput where, + _i3.UserDboSelect? select, + _i3.UserDboInclude? include, }) { final args = { 'data': data, @@ -292,7 +294,7 @@ class UserDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.updateOne, datamodel: PrismaClient.datamodel, ); @@ -301,18 +303,18 @@ class UserDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.User?>( - action: 'updateOneUser', + return _i1.ActionClient<_i2.UserDbo?>( + action: 'updateOneUserDbo', result: result, - factory: (e) => e != null ? _i2.User.fromJson(e) : null, + factory: (e) => e != null ? _i2.UserDbo.fromJson(e) : null, ); } _i1.ActionClient<_i3.AffectedRowsOutput> updateMany({ - required _i1.PrismaUnion<_i3.UserUpdateManyMutationInput, - _i3.UserUncheckedUpdateManyInput> + required _i1.PrismaUnion<_i3.UserDboUpdateManyMutationInput, + _i3.UserDboUncheckedUpdateManyInput> data, - _i3.UserWhereInput? where, + _i3.UserDboWhereInput? where, }) { final args = { 'data': data, @@ -320,7 +322,7 @@ class UserDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.updateMany, datamodel: PrismaClient.datamodel, ); @@ -330,20 +332,22 @@ class UserDelegate { transaction: _client.$transaction.transaction, ); return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'updateManyUser', + action: 'updateManyUserDbo', result: result, factory: (e) => _i3.AffectedRowsOutput.fromJson(e), ); } - _i1.ActionClient<_i2.User> upsert({ - required _i3.UserWhereUniqueInput where, - required _i1.PrismaUnion<_i3.UserCreateInput, _i3.UserUncheckedCreateInput> + _i1.ActionClient<_i2.UserDbo> upsert({ + required _i3.UserDboWhereUniqueInput where, + required _i1 + .PrismaUnion<_i3.UserDboCreateInput, _i3.UserDboUncheckedCreateInput> create, - required _i1.PrismaUnion<_i3.UserUpdateInput, _i3.UserUncheckedUpdateInput> + required _i1 + .PrismaUnion<_i3.UserDboUpdateInput, _i3.UserDboUncheckedUpdateInput> update, - _i3.UserSelect? select, - _i3.UserInclude? include, + _i3.UserDboSelect? select, + _i3.UserDboInclude? include, }) { final args = { 'where': where, @@ -354,7 +358,7 @@ class UserDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.upsertOne, datamodel: PrismaClient.datamodel, ); @@ -363,17 +367,17 @@ class UserDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.User>( - action: 'upsertOneUser', + return _i1.ActionClient<_i2.UserDbo>( + action: 'upsertOneUserDbo', result: result, - factory: (e) => _i2.User.fromJson(e), + factory: (e) => _i2.UserDbo.fromJson(e), ); } - _i1.ActionClient<_i2.User?> delete({ - required _i3.UserWhereUniqueInput where, - _i3.UserSelect? select, - _i3.UserInclude? include, + _i1.ActionClient<_i2.UserDbo?> delete({ + required _i3.UserDboWhereUniqueInput where, + _i3.UserDboSelect? select, + _i3.UserDboInclude? include, }) { final args = { 'where': where, @@ -382,7 +386,7 @@ class UserDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.deleteOne, datamodel: PrismaClient.datamodel, ); @@ -391,19 +395,19 @@ class UserDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.User?>( - action: 'deleteOneUser', + return _i1.ActionClient<_i2.UserDbo?>( + action: 'deleteOneUserDbo', result: result, - factory: (e) => e != null ? _i2.User.fromJson(e) : null, + factory: (e) => e != null ? _i2.UserDbo.fromJson(e) : null, ); } _i1.ActionClient<_i3.AffectedRowsOutput> deleteMany( - {_i3.UserWhereInput? where}) { + {_i3.UserDboWhereInput? where}) { final args = {'where': where}; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.deleteMany, datamodel: PrismaClient.datamodel, ); @@ -413,22 +417,22 @@ class UserDelegate { transaction: _client.$transaction.transaction, ); return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'deleteManyUser', + action: 'deleteManyUserDbo', result: result, factory: (e) => _i3.AffectedRowsOutput.fromJson(e), ); } - _i1.ActionClient> groupBy({ - _i3.UserWhereInput? where, - _i1.PrismaUnion, - _i3.UserOrderByWithAggregationInput>? + _i1.ActionClient> groupBy({ + _i3.UserDboWhereInput? where, + _i1.PrismaUnion, + _i3.UserDboOrderByWithAggregationInput>? orderBy, - required _i1.PrismaUnion, _i3.UserScalar> by, - _i3.UserScalarWhereWithAggregatesInput? having, + required _i1.PrismaUnion, _i3.UserDboScalar> by, + _i3.UserDboScalarWhereWithAggregatesInput? having, int? take, int? skip, - _i3.UserGroupByOutputTypeSelect? select, + _i3.UserDboGroupByOutputTypeSelect? select, }) { final args = { 'where': where, @@ -441,7 +445,7 @@ class UserDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.groupBy, datamodel: PrismaClient.datamodel, ); @@ -450,23 +454,23 @@ class UserDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient>( - action: 'groupByUser', + return _i1.ActionClient>( + action: 'groupByUserDbo', result: result, factory: (values) => (values as Iterable) - .map((e) => _i3.UserGroupByOutputType.fromJson(e)), + .map((e) => _i3.UserDboGroupByOutputType.fromJson(e)), ); } - _i1.ActionClient<_i3.AggregateUser> aggregate({ - _i3.UserWhereInput? where, - _i1.PrismaUnion, - _i3.UserOrderByWithRelationInput>? + _i1.ActionClient<_i3.AggregateUserDbo> aggregate({ + _i3.UserDboWhereInput? where, + _i1.PrismaUnion, + _i3.UserDboOrderByWithRelationInput>? orderBy, - _i3.UserWhereUniqueInput? cursor, + _i3.UserDboWhereUniqueInput? cursor, int? take, int? skip, - _i3.AggregateUserSelect? select, + _i3.AggregateUserDboSelect? select, }) { final args = { 'where': where, @@ -478,7 +482,7 @@ class UserDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'User', + modelName: 'UserDbo', action: _i1.JsonQueryAction.aggregate, datamodel: PrismaClient.datamodel, ); @@ -487,23 +491,23 @@ class UserDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i3.AggregateUser>( - action: 'aggregateUser', + return _i1.ActionClient<_i3.AggregateUserDbo>( + action: 'aggregateUserDbo', result: result, - factory: (e) => _i3.AggregateUser.fromJson(e), + factory: (e) => _i3.AggregateUserDbo.fromJson(e), ); } } -class ProjectDelegate { - const ProjectDelegate._(this._client); +class ProjectDboDelegate { + const ProjectDboDelegate._(this._client); final PrismaClient _client; - _i1.ActionClient<_i2.Project?> findUnique({ - required _i3.ProjectWhereUniqueInput where, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, + _i1.ActionClient<_i2.ProjectDbo?> findUnique({ + required _i3.ProjectDboWhereUniqueInput where, + _i3.ProjectDboSelect? select, + _i3.ProjectDboInclude? include, }) { final args = { 'where': where, @@ -512,7 +516,7 @@ class ProjectDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Project', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.findUnique, datamodel: PrismaClient.datamodel, ); @@ -521,17 +525,17 @@ class ProjectDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.Project?>( - action: 'findUniqueProject', + return _i1.ActionClient<_i2.ProjectDbo?>( + action: 'findUniqueProjectDbo', result: result, - factory: (e) => e != null ? _i2.Project.fromJson(e) : null, + factory: (e) => e != null ? _i2.ProjectDbo.fromJson(e) : null, ); } - _i1.ActionClient<_i2.Project> findUniqueOrThrow({ - required _i3.ProjectWhereUniqueInput where, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, + _i1.ActionClient<_i2.ProjectDbo> findUniqueOrThrow({ + required _i3.ProjectDboWhereUniqueInput where, + _i3.ProjectDboSelect? select, + _i3.ProjectDboInclude? include, }) { final args = { 'where': where, @@ -540,7 +544,7 @@ class ProjectDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Project', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.findUniqueOrThrow, datamodel: PrismaClient.datamodel, ); @@ -549,24 +553,25 @@ class ProjectDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.Project>( - action: 'findUniqueProjectOrThrow', + return _i1.ActionClient<_i2.ProjectDbo>( + action: 'findUniqueProjectDboOrThrow', result: result, - factory: (e) => _i2.Project.fromJson(e), + factory: (e) => _i2.ProjectDbo.fromJson(e), ); } - _i1.ActionClient<_i2.Project?> findFirst({ - _i3.ProjectWhereInput? where, - _i1.PrismaUnion, - _i3.ProjectOrderByWithRelationInput>? + _i1.ActionClient<_i2.ProjectDbo?> findFirst({ + _i3.ProjectDboWhereInput? where, + _i1.PrismaUnion, + _i3.ProjectDboOrderByWithRelationInput>? orderBy, - _i3.ProjectWhereUniqueInput? cursor, + _i3.ProjectDboWhereUniqueInput? cursor, int? take, int? skip, - _i1.PrismaUnion<_i3.ProjectScalar, Iterable<_i3.ProjectScalar>>? distinct, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, + _i1.PrismaUnion<_i3.ProjectDboScalar, Iterable<_i3.ProjectDboScalar>>? + distinct, + _i3.ProjectDboSelect? select, + _i3.ProjectDboInclude? include, }) { final args = { 'where': where, @@ -580,7 +585,7 @@ class ProjectDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Project', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.findFirst, datamodel: PrismaClient.datamodel, ); @@ -589,24 +594,25 @@ class ProjectDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.Project?>( - action: 'findFirstProject', + return _i1.ActionClient<_i2.ProjectDbo?>( + action: 'findFirstProjectDbo', result: result, - factory: (e) => e != null ? _i2.Project.fromJson(e) : null, + factory: (e) => e != null ? _i2.ProjectDbo.fromJson(e) : null, ); } - _i1.ActionClient<_i2.Project> findFirstOrThrow({ - _i3.ProjectWhereInput? where, - _i1.PrismaUnion, - _i3.ProjectOrderByWithRelationInput>? + _i1.ActionClient<_i2.ProjectDbo> findFirstOrThrow({ + _i3.ProjectDboWhereInput? where, + _i1.PrismaUnion, + _i3.ProjectDboOrderByWithRelationInput>? orderBy, - _i3.ProjectWhereUniqueInput? cursor, + _i3.ProjectDboWhereUniqueInput? cursor, int? take, int? skip, - _i1.PrismaUnion<_i3.ProjectScalar, Iterable<_i3.ProjectScalar>>? distinct, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, + _i1.PrismaUnion<_i3.ProjectDboScalar, Iterable<_i3.ProjectDboScalar>>? + distinct, + _i3.ProjectDboSelect? select, + _i3.ProjectDboInclude? include, }) { final args = { 'where': where, @@ -620,7 +626,7 @@ class ProjectDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Project', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.findFirstOrThrow, datamodel: PrismaClient.datamodel, ); @@ -629,24 +635,25 @@ class ProjectDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.Project>( - action: 'findFirstProjectOrThrow', + return _i1.ActionClient<_i2.ProjectDbo>( + action: 'findFirstProjectDboOrThrow', result: result, - factory: (e) => _i2.Project.fromJson(e), + factory: (e) => _i2.ProjectDbo.fromJson(e), ); } - _i1.ActionClient> findMany({ - _i3.ProjectWhereInput? where, - _i1.PrismaUnion, - _i3.ProjectOrderByWithRelationInput>? + _i1.ActionClient> findMany({ + _i3.ProjectDboWhereInput? where, + _i1.PrismaUnion, + _i3.ProjectDboOrderByWithRelationInput>? orderBy, - _i3.ProjectWhereUniqueInput? cursor, + _i3.ProjectDboWhereUniqueInput? cursor, int? take, int? skip, - _i1.PrismaUnion<_i3.ProjectScalar, Iterable<_i3.ProjectScalar>>? distinct, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, + _i1.PrismaUnion<_i3.ProjectDboScalar, Iterable<_i3.ProjectDboScalar>>? + distinct, + _i3.ProjectDboSelect? select, + _i3.ProjectDboInclude? include, }) { final args = { 'where': where, @@ -660,7 +667,7 @@ class ProjectDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Project', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.findMany, datamodel: PrismaClient.datamodel, ); @@ -669,20 +676,20 @@ class ProjectDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient>( - action: 'findManyProject', + return _i1.ActionClient>( + action: 'findManyProjectDbo', result: result, factory: (values) => - (values as Iterable).map((e) => _i2.Project.fromJson(e)), + (values as Iterable).map((e) => _i2.ProjectDbo.fromJson(e)), ); } - _i1.ActionClient<_i2.Project> create({ - required _i1 - .PrismaUnion<_i3.ProjectCreateInput, _i3.ProjectUncheckedCreateInput> + _i1.ActionClient<_i2.ProjectDbo> create({ + required _i1.PrismaUnion<_i3.ProjectDboCreateInput, + _i3.ProjectDboUncheckedCreateInput> data, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, + _i3.ProjectDboSelect? select, + _i3.ProjectDboInclude? include, }) { final args = { 'data': data, @@ -691,7 +698,7 @@ class ProjectDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Project', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.createOne, datamodel: PrismaClient.datamodel, ); @@ -700,16 +707,16 @@ class ProjectDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.Project>( - action: 'createOneProject', + return _i1.ActionClient<_i2.ProjectDbo>( + action: 'createOneProjectDbo', result: result, - factory: (e) => _i2.Project.fromJson(e), + factory: (e) => _i2.ProjectDbo.fromJson(e), ); } _i1.ActionClient<_i3.AffectedRowsOutput> createMany({ - required _i1.PrismaUnion<_i3.ProjectCreateManyInput, - Iterable<_i3.ProjectCreateManyInput>> + required _i1.PrismaUnion<_i3.ProjectDboCreateManyInput, + Iterable<_i3.ProjectDboCreateManyInput>> data, bool? skipDuplicates, }) { @@ -719,7 +726,7 @@ class ProjectDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Project', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.createMany, datamodel: PrismaClient.datamodel, ); @@ -729,20 +736,20 @@ class ProjectDelegate { transaction: _client.$transaction.transaction, ); return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'createManyProject', + action: 'createManyProjectDbo', result: result, factory: (e) => _i3.AffectedRowsOutput.fromJson(e), ); } - _i1.ActionClient> + _i1.ActionClient> createManyAndReturn({ - required _i1.PrismaUnion<_i3.ProjectCreateManyInput, - Iterable<_i3.ProjectCreateManyInput>> + required _i1.PrismaUnion<_i3.ProjectDboCreateManyInput, + Iterable<_i3.ProjectDboCreateManyInput>> data, bool? skipDuplicates, - _i3.CreateManyProjectAndReturnOutputTypeSelect? select, - _i3.CreateManyProjectAndReturnOutputTypeInclude? include, + _i3.CreateManyProjectDboAndReturnOutputTypeSelect? select, + _i3.CreateManyProjectDboAndReturnOutputTypeInclude? include, }) { final args = { 'data': data, @@ -752,505 +759,7 @@ class ProjectDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.createManyAndReturn, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient>( - action: 'createManyProjectAndReturn', - result: result, - factory: (values) => (values as Iterable) - .map((e) => _i2.CreateManyProjectAndReturnOutputType.fromJson(e)), - ); - } - - _i1.ActionClient<_i2.Project?> update({ - required _i1 - .PrismaUnion<_i3.ProjectUpdateInput, _i3.ProjectUncheckedUpdateInput> - data, - required _i3.ProjectWhereUniqueInput where, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, - }) { - final args = { - 'data': data, - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.updateOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Project?>( - action: 'updateOneProject', - result: result, - factory: (e) => e != null ? _i2.Project.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> updateMany({ - required _i1.PrismaUnion<_i3.ProjectUpdateManyMutationInput, - _i3.ProjectUncheckedUpdateManyInput> - data, - _i3.ProjectWhereInput? where, - }) { - final args = { - 'data': data, - 'where': where, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.updateMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'updateManyProject', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient<_i2.Project> upsert({ - required _i3.ProjectWhereUniqueInput where, - required _i1 - .PrismaUnion<_i3.ProjectCreateInput, _i3.ProjectUncheckedCreateInput> - create, - required _i1 - .PrismaUnion<_i3.ProjectUpdateInput, _i3.ProjectUncheckedUpdateInput> - update, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, - }) { - final args = { - 'where': where, - 'create': create, - 'update': update, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.upsertOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Project>( - action: 'upsertOneProject', - result: result, - factory: (e) => _i2.Project.fromJson(e), - ); - } - - _i1.ActionClient<_i2.Project?> delete({ - required _i3.ProjectWhereUniqueInput where, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.deleteOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Project?>( - action: 'deleteOneProject', - result: result, - factory: (e) => e != null ? _i2.Project.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> deleteMany( - {_i3.ProjectWhereInput? where}) { - final args = {'where': where}; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.deleteMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'deleteManyProject', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient> groupBy({ - _i3.ProjectWhereInput? where, - _i1.PrismaUnion, - _i3.ProjectOrderByWithAggregationInput>? - orderBy, - required _i1.PrismaUnion, _i3.ProjectScalar> by, - _i3.ProjectScalarWhereWithAggregatesInput? having, - int? take, - int? skip, - _i3.ProjectGroupByOutputTypeSelect? select, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'by': _i1.JsonQuery.groupBySerializer(by), - 'having': having, - 'take': take, - 'skip': skip, - 'select': select ?? _i1.JsonQuery.groupBySelectSerializer(by), - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.groupBy, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient>( - action: 'groupByProject', - result: result, - factory: (values) => (values as Iterable) - .map((e) => _i3.ProjectGroupByOutputType.fromJson(e)), - ); - } - - _i1.ActionClient<_i3.AggregateProject> aggregate({ - _i3.ProjectWhereInput? where, - _i1.PrismaUnion, - _i3.ProjectOrderByWithRelationInput>? - orderBy, - _i3.ProjectWhereUniqueInput? cursor, - int? take, - int? skip, - _i3.AggregateProjectSelect? select, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'select': select, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.aggregate, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AggregateProject>( - action: 'aggregateProject', - result: result, - factory: (e) => _i3.AggregateProject.fromJson(e), - ); - } -} - -class TimeEntryDelegate { - const TimeEntryDelegate._(this._client); - - final PrismaClient _client; - - _i1.ActionClient<_i2.TimeEntry?> findUnique({ - required _i3.TimeEntryWhereUniqueInput where, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.findUnique, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.TimeEntry?>( - action: 'findUniqueTimeEntry', - result: result, - factory: (e) => e != null ? _i2.TimeEntry.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i2.TimeEntry> findUniqueOrThrow({ - required _i3.TimeEntryWhereUniqueInput where, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.findUniqueOrThrow, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.TimeEntry>( - action: 'findUniqueTimeEntryOrThrow', - result: result, - factory: (e) => _i2.TimeEntry.fromJson(e), - ); - } - - _i1.ActionClient<_i2.TimeEntry?> findFirst({ - _i3.TimeEntryWhereInput? where, - _i1.PrismaUnion, - _i3.TimeEntryOrderByWithRelationInput>? - orderBy, - _i3.TimeEntryWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.TimeEntryScalar, Iterable<_i3.TimeEntryScalar>>? - distinct, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.findFirst, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.TimeEntry?>( - action: 'findFirstTimeEntry', - result: result, - factory: (e) => e != null ? _i2.TimeEntry.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i2.TimeEntry> findFirstOrThrow({ - _i3.TimeEntryWhereInput? where, - _i1.PrismaUnion, - _i3.TimeEntryOrderByWithRelationInput>? - orderBy, - _i3.TimeEntryWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.TimeEntryScalar, Iterable<_i3.TimeEntryScalar>>? - distinct, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.findFirstOrThrow, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.TimeEntry>( - action: 'findFirstTimeEntryOrThrow', - result: result, - factory: (e) => _i2.TimeEntry.fromJson(e), - ); - } - - _i1.ActionClient> findMany({ - _i3.TimeEntryWhereInput? where, - _i1.PrismaUnion, - _i3.TimeEntryOrderByWithRelationInput>? - orderBy, - _i3.TimeEntryWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.TimeEntryScalar, Iterable<_i3.TimeEntryScalar>>? - distinct, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.findMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient>( - action: 'findManyTimeEntry', - result: result, - factory: (values) => - (values as Iterable).map((e) => _i2.TimeEntry.fromJson(e)), - ); - } - - _i1.ActionClient<_i2.TimeEntry> create({ - required _i1.PrismaUnion<_i3.TimeEntryCreateInput, - _i3.TimeEntryUncheckedCreateInput> - data, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'data': data, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.createOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.TimeEntry>( - action: 'createOneTimeEntry', - result: result, - factory: (e) => _i2.TimeEntry.fromJson(e), - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> createMany({ - required _i1.PrismaUnion<_i3.TimeEntryCreateManyInput, - Iterable<_i3.TimeEntryCreateManyInput>> - data, - bool? skipDuplicates, - }) { - final args = { - 'data': data, - 'skipDuplicates': skipDuplicates, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.createMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'createManyTimeEntry', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient> - createManyAndReturn({ - required _i1.PrismaUnion<_i3.TimeEntryCreateManyInput, - Iterable<_i3.TimeEntryCreateManyInput>> - data, - bool? skipDuplicates, - _i3.CreateManyTimeEntryAndReturnOutputTypeSelect? select, - _i3.CreateManyTimeEntryAndReturnOutputTypeInclude? include, - }) { - final args = { - 'data': data, - 'skipDuplicates': skipDuplicates, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.createManyAndReturn, datamodel: PrismaClient.datamodel, ); @@ -1260,21 +769,21 @@ class TimeEntryDelegate { transaction: _client.$transaction.transaction, ); return _i1.ActionClient< - Iterable<_i2.CreateManyTimeEntryAndReturnOutputType>>( - action: 'createManyTimeEntryAndReturn', + Iterable<_i2.CreateManyProjectDboAndReturnOutputType>>( + action: 'createManyProjectDboAndReturn', result: result, factory: (values) => (values as Iterable) - .map((e) => _i2.CreateManyTimeEntryAndReturnOutputType.fromJson(e)), + .map((e) => _i2.CreateManyProjectDboAndReturnOutputType.fromJson(e)), ); } - _i1.ActionClient<_i2.TimeEntry?> update({ - required _i1.PrismaUnion<_i3.TimeEntryUpdateInput, - _i3.TimeEntryUncheckedUpdateInput> + _i1.ActionClient<_i2.ProjectDbo?> update({ + required _i1.PrismaUnion<_i3.ProjectDboUpdateInput, + _i3.ProjectDboUncheckedUpdateInput> data, - required _i3.TimeEntryWhereUniqueInput where, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, + required _i3.ProjectDboWhereUniqueInput where, + _i3.ProjectDboSelect? select, + _i3.ProjectDboInclude? include, }) { final args = { 'data': data, @@ -1284,7 +793,7 @@ class TimeEntryDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'TimeEntry', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.updateOne, datamodel: PrismaClient.datamodel, ); @@ -1293,18 +802,18 @@ class TimeEntryDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.TimeEntry?>( - action: 'updateOneTimeEntry', + return _i1.ActionClient<_i2.ProjectDbo?>( + action: 'updateOneProjectDbo', result: result, - factory: (e) => e != null ? _i2.TimeEntry.fromJson(e) : null, + factory: (e) => e != null ? _i2.ProjectDbo.fromJson(e) : null, ); } _i1.ActionClient<_i3.AffectedRowsOutput> updateMany({ - required _i1.PrismaUnion<_i3.TimeEntryUpdateManyMutationInput, - _i3.TimeEntryUncheckedUpdateManyInput> + required _i1.PrismaUnion<_i3.ProjectDboUpdateManyMutationInput, + _i3.ProjectDboUncheckedUpdateManyInput> data, - _i3.TimeEntryWhereInput? where, + _i3.ProjectDboWhereInput? where, }) { final args = { 'data': data, @@ -1312,7 +821,7 @@ class TimeEntryDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'TimeEntry', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.updateMany, datamodel: PrismaClient.datamodel, ); @@ -1322,22 +831,22 @@ class TimeEntryDelegate { transaction: _client.$transaction.transaction, ); return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'updateManyTimeEntry', + action: 'updateManyProjectDbo', result: result, factory: (e) => _i3.AffectedRowsOutput.fromJson(e), ); } - _i1.ActionClient<_i2.TimeEntry> upsert({ - required _i3.TimeEntryWhereUniqueInput where, - required _i1.PrismaUnion<_i3.TimeEntryCreateInput, - _i3.TimeEntryUncheckedCreateInput> + _i1.ActionClient<_i2.ProjectDbo> upsert({ + required _i3.ProjectDboWhereUniqueInput where, + required _i1.PrismaUnion<_i3.ProjectDboCreateInput, + _i3.ProjectDboUncheckedCreateInput> create, - required _i1.PrismaUnion<_i3.TimeEntryUpdateInput, - _i3.TimeEntryUncheckedUpdateInput> + required _i1.PrismaUnion<_i3.ProjectDboUpdateInput, + _i3.ProjectDboUncheckedUpdateInput> update, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, + _i3.ProjectDboSelect? select, + _i3.ProjectDboInclude? include, }) { final args = { 'where': where, @@ -1348,7 +857,7 @@ class TimeEntryDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'TimeEntry', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.upsertOne, datamodel: PrismaClient.datamodel, ); @@ -1357,17 +866,17 @@ class TimeEntryDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.TimeEntry>( - action: 'upsertOneTimeEntry', + return _i1.ActionClient<_i2.ProjectDbo>( + action: 'upsertOneProjectDbo', result: result, - factory: (e) => _i2.TimeEntry.fromJson(e), + factory: (e) => _i2.ProjectDbo.fromJson(e), ); } - _i1.ActionClient<_i2.TimeEntry?> delete({ - required _i3.TimeEntryWhereUniqueInput where, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, + _i1.ActionClient<_i2.ProjectDbo?> delete({ + required _i3.ProjectDboWhereUniqueInput where, + _i3.ProjectDboSelect? select, + _i3.ProjectDboInclude? include, }) { final args = { 'where': where, @@ -1376,7 +885,7 @@ class TimeEntryDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'TimeEntry', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.deleteOne, datamodel: PrismaClient.datamodel, ); @@ -1385,19 +894,19 @@ class TimeEntryDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.TimeEntry?>( - action: 'deleteOneTimeEntry', + return _i1.ActionClient<_i2.ProjectDbo?>( + action: 'deleteOneProjectDbo', result: result, - factory: (e) => e != null ? _i2.TimeEntry.fromJson(e) : null, + factory: (e) => e != null ? _i2.ProjectDbo.fromJson(e) : null, ); } _i1.ActionClient<_i3.AffectedRowsOutput> deleteMany( - {_i3.TimeEntryWhereInput? where}) { + {_i3.ProjectDboWhereInput? where}) { final args = {'where': where}; final query = _i1.serializeJsonQuery( args: args, - modelName: 'TimeEntry', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.deleteMany, datamodel: PrismaClient.datamodel, ); @@ -1407,23 +916,24 @@ class TimeEntryDelegate { transaction: _client.$transaction.transaction, ); return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'deleteManyTimeEntry', + action: 'deleteManyProjectDbo', result: result, factory: (e) => _i3.AffectedRowsOutput.fromJson(e), ); } - _i1.ActionClient> groupBy({ - _i3.TimeEntryWhereInput? where, - _i1.PrismaUnion, - _i3.TimeEntryOrderByWithAggregationInput>? + _i1.ActionClient> groupBy({ + _i3.ProjectDboWhereInput? where, + _i1.PrismaUnion, + _i3.ProjectDboOrderByWithAggregationInput>? orderBy, - required _i1.PrismaUnion, _i3.TimeEntryScalar> + required _i1 + .PrismaUnion, _i3.ProjectDboScalar> by, - _i3.TimeEntryScalarWhereWithAggregatesInput? having, + _i3.ProjectDboScalarWhereWithAggregatesInput? having, int? take, int? skip, - _i3.TimeEntryGroupByOutputTypeSelect? select, + _i3.ProjectDboGroupByOutputTypeSelect? select, }) { final args = { 'where': where, @@ -1436,7 +946,7 @@ class TimeEntryDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'TimeEntry', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.groupBy, datamodel: PrismaClient.datamodel, ); @@ -1445,23 +955,23 @@ class TimeEntryDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient>( - action: 'groupByTimeEntry', + return _i1.ActionClient>( + action: 'groupByProjectDbo', result: result, factory: (values) => (values as Iterable) - .map((e) => _i3.TimeEntryGroupByOutputType.fromJson(e)), + .map((e) => _i3.ProjectDboGroupByOutputType.fromJson(e)), ); } - _i1.ActionClient<_i3.AggregateTimeEntry> aggregate({ - _i3.TimeEntryWhereInput? where, - _i1.PrismaUnion, - _i3.TimeEntryOrderByWithRelationInput>? + _i1.ActionClient<_i3.AggregateProjectDbo> aggregate({ + _i3.ProjectDboWhereInput? where, + _i1.PrismaUnion, + _i3.ProjectDboOrderByWithRelationInput>? orderBy, - _i3.TimeEntryWhereUniqueInput? cursor, + _i3.ProjectDboWhereUniqueInput? cursor, int? take, int? skip, - _i3.AggregateTimeEntrySelect? select, + _i3.AggregateProjectDboSelect? select, }) { final args = { 'where': where, @@ -1473,7 +983,7 @@ class TimeEntryDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'TimeEntry', + modelName: 'ProjectDbo', action: _i1.JsonQueryAction.aggregate, datamodel: PrismaClient.datamodel, ); @@ -1482,23 +992,23 @@ class TimeEntryDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i3.AggregateTimeEntry>( - action: 'aggregateTimeEntry', + return _i1.ActionClient<_i3.AggregateProjectDbo>( + action: 'aggregateProjectDbo', result: result, - factory: (e) => _i3.AggregateTimeEntry.fromJson(e), + factory: (e) => _i3.AggregateProjectDbo.fromJson(e), ); } } -class TaskDelegate { - const TaskDelegate._(this._client); +class TimeEntryDboDelegate { + const TimeEntryDboDelegate._(this._client); final PrismaClient _client; - _i1.ActionClient<_i2.Task?> findUnique({ - required _i3.TaskWhereUniqueInput where, - _i3.TaskSelect? select, - _i3.TaskInclude? include, + _i1.ActionClient<_i2.TimeEntryDbo?> findUnique({ + required _i3.TimeEntryDboWhereUniqueInput where, + _i3.TimeEntryDboSelect? select, + _i3.TimeEntryDboInclude? include, }) { final args = { 'where': where, @@ -1507,7 +1017,7 @@ class TaskDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.findUnique, datamodel: PrismaClient.datamodel, ); @@ -1516,17 +1026,17 @@ class TaskDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.Task?>( - action: 'findUniqueTask', + return _i1.ActionClient<_i2.TimeEntryDbo?>( + action: 'findUniqueTimeEntryDbo', result: result, - factory: (e) => e != null ? _i2.Task.fromJson(e) : null, + factory: (e) => e != null ? _i2.TimeEntryDbo.fromJson(e) : null, ); } - _i1.ActionClient<_i2.Task> findUniqueOrThrow({ - required _i3.TaskWhereUniqueInput where, - _i3.TaskSelect? select, - _i3.TaskInclude? include, + _i1.ActionClient<_i2.TimeEntryDbo> findUniqueOrThrow({ + required _i3.TimeEntryDboWhereUniqueInput where, + _i3.TimeEntryDboSelect? select, + _i3.TimeEntryDboInclude? include, }) { final args = { 'where': where, @@ -1535,7 +1045,7 @@ class TaskDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.findUniqueOrThrow, datamodel: PrismaClient.datamodel, ); @@ -1544,24 +1054,25 @@ class TaskDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.Task>( - action: 'findUniqueTaskOrThrow', + return _i1.ActionClient<_i2.TimeEntryDbo>( + action: 'findUniqueTimeEntryDboOrThrow', result: result, - factory: (e) => _i2.Task.fromJson(e), + factory: (e) => _i2.TimeEntryDbo.fromJson(e), ); } - _i1.ActionClient<_i2.Task?> findFirst({ - _i3.TaskWhereInput? where, - _i1.PrismaUnion, - _i3.TaskOrderByWithRelationInput>? + _i1.ActionClient<_i2.TimeEntryDbo?> findFirst({ + _i3.TimeEntryDboWhereInput? where, + _i1.PrismaUnion, + _i3.TimeEntryDboOrderByWithRelationInput>? orderBy, - _i3.TaskWhereUniqueInput? cursor, + _i3.TimeEntryDboWhereUniqueInput? cursor, int? take, int? skip, - _i1.PrismaUnion<_i3.TaskScalar, Iterable<_i3.TaskScalar>>? distinct, - _i3.TaskSelect? select, - _i3.TaskInclude? include, + _i1.PrismaUnion<_i3.TimeEntryDboScalar, Iterable<_i3.TimeEntryDboScalar>>? + distinct, + _i3.TimeEntryDboSelect? select, + _i3.TimeEntryDboInclude? include, }) { final args = { 'where': where, @@ -1575,7 +1086,7 @@ class TaskDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.findFirst, datamodel: PrismaClient.datamodel, ); @@ -1584,24 +1095,25 @@ class TaskDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.Task?>( - action: 'findFirstTask', + return _i1.ActionClient<_i2.TimeEntryDbo?>( + action: 'findFirstTimeEntryDbo', result: result, - factory: (e) => e != null ? _i2.Task.fromJson(e) : null, + factory: (e) => e != null ? _i2.TimeEntryDbo.fromJson(e) : null, ); } - _i1.ActionClient<_i2.Task> findFirstOrThrow({ - _i3.TaskWhereInput? where, - _i1.PrismaUnion, - _i3.TaskOrderByWithRelationInput>? + _i1.ActionClient<_i2.TimeEntryDbo> findFirstOrThrow({ + _i3.TimeEntryDboWhereInput? where, + _i1.PrismaUnion, + _i3.TimeEntryDboOrderByWithRelationInput>? orderBy, - _i3.TaskWhereUniqueInput? cursor, + _i3.TimeEntryDboWhereUniqueInput? cursor, int? take, int? skip, - _i1.PrismaUnion<_i3.TaskScalar, Iterable<_i3.TaskScalar>>? distinct, - _i3.TaskSelect? select, - _i3.TaskInclude? include, + _i1.PrismaUnion<_i3.TimeEntryDboScalar, Iterable<_i3.TimeEntryDboScalar>>? + distinct, + _i3.TimeEntryDboSelect? select, + _i3.TimeEntryDboInclude? include, }) { final args = { 'where': where, @@ -1615,7 +1127,7 @@ class TaskDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.findFirstOrThrow, datamodel: PrismaClient.datamodel, ); @@ -1624,24 +1136,25 @@ class TaskDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.Task>( - action: 'findFirstTaskOrThrow', + return _i1.ActionClient<_i2.TimeEntryDbo>( + action: 'findFirstTimeEntryDboOrThrow', result: result, - factory: (e) => _i2.Task.fromJson(e), + factory: (e) => _i2.TimeEntryDbo.fromJson(e), ); } - _i1.ActionClient> findMany({ - _i3.TaskWhereInput? where, - _i1.PrismaUnion, - _i3.TaskOrderByWithRelationInput>? + _i1.ActionClient> findMany({ + _i3.TimeEntryDboWhereInput? where, + _i1.PrismaUnion, + _i3.TimeEntryDboOrderByWithRelationInput>? orderBy, - _i3.TaskWhereUniqueInput? cursor, + _i3.TimeEntryDboWhereUniqueInput? cursor, int? take, int? skip, - _i1.PrismaUnion<_i3.TaskScalar, Iterable<_i3.TaskScalar>>? distinct, - _i3.TaskSelect? select, - _i3.TaskInclude? include, + _i1.PrismaUnion<_i3.TimeEntryDboScalar, Iterable<_i3.TimeEntryDboScalar>>? + distinct, + _i3.TimeEntryDboSelect? select, + _i3.TimeEntryDboInclude? include, }) { final args = { 'where': where, @@ -1655,7 +1168,7 @@ class TaskDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.findMany, datamodel: PrismaClient.datamodel, ); @@ -1664,19 +1177,20 @@ class TaskDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient>( - action: 'findManyTask', + return _i1.ActionClient>( + action: 'findManyTimeEntryDbo', result: result, factory: (values) => - (values as Iterable).map((e) => _i2.Task.fromJson(e)), + (values as Iterable).map((e) => _i2.TimeEntryDbo.fromJson(e)), ); } - _i1.ActionClient<_i2.Task> create({ - required _i1.PrismaUnion<_i3.TaskCreateInput, _i3.TaskUncheckedCreateInput> + _i1.ActionClient<_i2.TimeEntryDbo> create({ + required _i1.PrismaUnion<_i3.TimeEntryDboCreateInput, + _i3.TimeEntryDboUncheckedCreateInput> data, - _i3.TaskSelect? select, - _i3.TaskInclude? include, + _i3.TimeEntryDboSelect? select, + _i3.TimeEntryDboInclude? include, }) { final args = { 'data': data, @@ -1685,7 +1199,7 @@ class TaskDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.createOne, datamodel: PrismaClient.datamodel, ); @@ -1694,16 +1208,16 @@ class TaskDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.Task>( - action: 'createOneTask', + return _i1.ActionClient<_i2.TimeEntryDbo>( + action: 'createOneTimeEntryDbo', result: result, - factory: (e) => _i2.Task.fromJson(e), + factory: (e) => _i2.TimeEntryDbo.fromJson(e), ); } _i1.ActionClient<_i3.AffectedRowsOutput> createMany({ - required _i1 - .PrismaUnion<_i3.TaskCreateManyInput, Iterable<_i3.TaskCreateManyInput>> + required _i1.PrismaUnion<_i3.TimeEntryDboCreateManyInput, + Iterable<_i3.TimeEntryDboCreateManyInput>> data, bool? skipDuplicates, }) { @@ -1713,7 +1227,7 @@ class TaskDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.createMany, datamodel: PrismaClient.datamodel, ); @@ -1723,20 +1237,20 @@ class TaskDelegate { transaction: _client.$transaction.transaction, ); return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'createManyTask', + action: 'createManyTimeEntryDbo', result: result, factory: (e) => _i3.AffectedRowsOutput.fromJson(e), ); } - _i1.ActionClient> + _i1.ActionClient> createManyAndReturn({ - required _i1 - .PrismaUnion<_i3.TaskCreateManyInput, Iterable<_i3.TaskCreateManyInput>> + required _i1.PrismaUnion<_i3.TimeEntryDboCreateManyInput, + Iterable<_i3.TimeEntryDboCreateManyInput>> data, bool? skipDuplicates, - _i3.CreateManyTaskAndReturnOutputTypeSelect? select, - _i3.CreateManyTaskAndReturnOutputTypeInclude? include, + _i3.CreateManyTimeEntryDboAndReturnOutputTypeSelect? select, + _i3.CreateManyTimeEntryDboAndReturnOutputTypeInclude? include, }) { final args = { 'data': data, @@ -1746,7 +1260,7 @@ class TaskDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.createManyAndReturn, datamodel: PrismaClient.datamodel, ); @@ -1755,20 +1269,22 @@ class TaskDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient>( - action: 'createManyTaskAndReturn', + return _i1.ActionClient< + Iterable<_i2.CreateManyTimeEntryDboAndReturnOutputType>>( + action: 'createManyTimeEntryDboAndReturn', result: result, - factory: (values) => (values as Iterable) - .map((e) => _i2.CreateManyTaskAndReturnOutputType.fromJson(e)), + factory: (values) => (values as Iterable).map( + (e) => _i2.CreateManyTimeEntryDboAndReturnOutputType.fromJson(e)), ); } - _i1.ActionClient<_i2.Task?> update({ - required _i1.PrismaUnion<_i3.TaskUpdateInput, _i3.TaskUncheckedUpdateInput> + _i1.ActionClient<_i2.TimeEntryDbo?> update({ + required _i1.PrismaUnion<_i3.TimeEntryDboUpdateInput, + _i3.TimeEntryDboUncheckedUpdateInput> data, - required _i3.TaskWhereUniqueInput where, - _i3.TaskSelect? select, - _i3.TaskInclude? include, + required _i3.TimeEntryDboWhereUniqueInput where, + _i3.TimeEntryDboSelect? select, + _i3.TimeEntryDboInclude? include, }) { final args = { 'data': data, @@ -1778,7 +1294,7 @@ class TaskDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.updateOne, datamodel: PrismaClient.datamodel, ); @@ -1787,18 +1303,18 @@ class TaskDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.Task?>( - action: 'updateOneTask', + return _i1.ActionClient<_i2.TimeEntryDbo?>( + action: 'updateOneTimeEntryDbo', result: result, - factory: (e) => e != null ? _i2.Task.fromJson(e) : null, + factory: (e) => e != null ? _i2.TimeEntryDbo.fromJson(e) : null, ); } _i1.ActionClient<_i3.AffectedRowsOutput> updateMany({ - required _i1.PrismaUnion<_i3.TaskUpdateManyMutationInput, - _i3.TaskUncheckedUpdateManyInput> + required _i1.PrismaUnion<_i3.TimeEntryDboUpdateManyMutationInput, + _i3.TimeEntryDboUncheckedUpdateManyInput> data, - _i3.TaskWhereInput? where, + _i3.TimeEntryDboWhereInput? where, }) { final args = { 'data': data, @@ -1806,7 +1322,7 @@ class TaskDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.updateMany, datamodel: PrismaClient.datamodel, ); @@ -1816,20 +1332,22 @@ class TaskDelegate { transaction: _client.$transaction.transaction, ); return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'updateManyTask', + action: 'updateManyTimeEntryDbo', result: result, factory: (e) => _i3.AffectedRowsOutput.fromJson(e), ); } - _i1.ActionClient<_i2.Task> upsert({ - required _i3.TaskWhereUniqueInput where, - required _i1.PrismaUnion<_i3.TaskCreateInput, _i3.TaskUncheckedCreateInput> + _i1.ActionClient<_i2.TimeEntryDbo> upsert({ + required _i3.TimeEntryDboWhereUniqueInput where, + required _i1.PrismaUnion<_i3.TimeEntryDboCreateInput, + _i3.TimeEntryDboUncheckedCreateInput> create, - required _i1.PrismaUnion<_i3.TaskUpdateInput, _i3.TaskUncheckedUpdateInput> + required _i1.PrismaUnion<_i3.TimeEntryDboUpdateInput, + _i3.TimeEntryDboUncheckedUpdateInput> update, - _i3.TaskSelect? select, - _i3.TaskInclude? include, + _i3.TimeEntryDboSelect? select, + _i3.TimeEntryDboInclude? include, }) { final args = { 'where': where, @@ -1840,7 +1358,7 @@ class TaskDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.upsertOne, datamodel: PrismaClient.datamodel, ); @@ -1849,17 +1367,17 @@ class TaskDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.Task>( - action: 'upsertOneTask', + return _i1.ActionClient<_i2.TimeEntryDbo>( + action: 'upsertOneTimeEntryDbo', result: result, - factory: (e) => _i2.Task.fromJson(e), + factory: (e) => _i2.TimeEntryDbo.fromJson(e), ); } - _i1.ActionClient<_i2.Task?> delete({ - required _i3.TaskWhereUniqueInput where, - _i3.TaskSelect? select, - _i3.TaskInclude? include, + _i1.ActionClient<_i2.TimeEntryDbo?> delete({ + required _i3.TimeEntryDboWhereUniqueInput where, + _i3.TimeEntryDboSelect? select, + _i3.TimeEntryDboInclude? include, }) { final args = { 'where': where, @@ -1868,7 +1386,7 @@ class TaskDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.deleteOne, datamodel: PrismaClient.datamodel, ); @@ -1877,19 +1395,19 @@ class TaskDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i2.Task?>( - action: 'deleteOneTask', + return _i1.ActionClient<_i2.TimeEntryDbo?>( + action: 'deleteOneTimeEntryDbo', result: result, - factory: (e) => e != null ? _i2.Task.fromJson(e) : null, + factory: (e) => e != null ? _i2.TimeEntryDbo.fromJson(e) : null, ); } _i1.ActionClient<_i3.AffectedRowsOutput> deleteMany( - {_i3.TaskWhereInput? where}) { + {_i3.TimeEntryDboWhereInput? where}) { final args = {'where': where}; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.deleteMany, datamodel: PrismaClient.datamodel, ); @@ -1899,22 +1417,24 @@ class TaskDelegate { transaction: _client.$transaction.transaction, ); return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'deleteManyTask', + action: 'deleteManyTimeEntryDbo', result: result, factory: (e) => _i3.AffectedRowsOutput.fromJson(e), ); } - _i1.ActionClient> groupBy({ - _i3.TaskWhereInput? where, - _i1.PrismaUnion, - _i3.TaskOrderByWithAggregationInput>? + _i1.ActionClient> groupBy({ + _i3.TimeEntryDboWhereInput? where, + _i1.PrismaUnion, + _i3.TimeEntryDboOrderByWithAggregationInput>? orderBy, - required _i1.PrismaUnion, _i3.TaskScalar> by, - _i3.TaskScalarWhereWithAggregatesInput? having, + required _i1 + .PrismaUnion, _i3.TimeEntryDboScalar> + by, + _i3.TimeEntryDboScalarWhereWithAggregatesInput? having, int? take, int? skip, - _i3.TaskGroupByOutputTypeSelect? select, + _i3.TimeEntryDboGroupByOutputTypeSelect? select, }) { final args = { 'where': where, @@ -1927,7 +1447,7 @@ class TaskDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.groupBy, datamodel: PrismaClient.datamodel, ); @@ -1936,23 +1456,23 @@ class TaskDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient>( - action: 'groupByTask', + return _i1.ActionClient>( + action: 'groupByTimeEntryDbo', result: result, factory: (values) => (values as Iterable) - .map((e) => _i3.TaskGroupByOutputType.fromJson(e)), + .map((e) => _i3.TimeEntryDboGroupByOutputType.fromJson(e)), ); } - _i1.ActionClient<_i3.AggregateTask> aggregate({ - _i3.TaskWhereInput? where, - _i1.PrismaUnion, - _i3.TaskOrderByWithRelationInput>? + _i1.ActionClient<_i3.AggregateTimeEntryDbo> aggregate({ + _i3.TimeEntryDboWhereInput? where, + _i1.PrismaUnion, + _i3.TimeEntryDboOrderByWithRelationInput>? orderBy, - _i3.TaskWhereUniqueInput? cursor, + _i3.TimeEntryDboWhereUniqueInput? cursor, int? take, int? skip, - _i3.AggregateTaskSelect? select, + _i3.AggregateTimeEntryDboSelect? select, }) { final args = { 'where': where, @@ -1964,7 +1484,7 @@ class TaskDelegate { }; final query = _i1.serializeJsonQuery( args: args, - modelName: 'Task', + modelName: 'TimeEntryDbo', action: _i1.JsonQueryAction.aggregate, datamodel: PrismaClient.datamodel, ); @@ -1973,10 +1493,505 @@ class TaskDelegate { headers: _client.$transaction.headers, transaction: _client.$transaction.transaction, ); - return _i1.ActionClient<_i3.AggregateTask>( - action: 'aggregateTask', + return _i1.ActionClient<_i3.AggregateTimeEntryDbo>( + action: 'aggregateTimeEntryDbo', result: result, - factory: (e) => _i3.AggregateTask.fromJson(e), + factory: (e) => _i3.AggregateTimeEntryDbo.fromJson(e), + ); + } +} + +class TaskDboDelegate { + const TaskDboDelegate._(this._client); + + final PrismaClient _client; + + _i1.ActionClient<_i2.TaskDbo?> findUnique({ + required _i3.TaskDboWhereUniqueInput where, + _i3.TaskDboSelect? select, + _i3.TaskDboInclude? include, + }) { + final args = { + 'where': where, + 'select': select, + 'include': include, + }; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.findUnique, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient<_i2.TaskDbo?>( + action: 'findUniqueTaskDbo', + result: result, + factory: (e) => e != null ? _i2.TaskDbo.fromJson(e) : null, + ); + } + + _i1.ActionClient<_i2.TaskDbo> findUniqueOrThrow({ + required _i3.TaskDboWhereUniqueInput where, + _i3.TaskDboSelect? select, + _i3.TaskDboInclude? include, + }) { + final args = { + 'where': where, + 'select': select, + 'include': include, + }; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.findUniqueOrThrow, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient<_i2.TaskDbo>( + action: 'findUniqueTaskDboOrThrow', + result: result, + factory: (e) => _i2.TaskDbo.fromJson(e), + ); + } + + _i1.ActionClient<_i2.TaskDbo?> findFirst({ + _i3.TaskDboWhereInput? where, + _i1.PrismaUnion, + _i3.TaskDboOrderByWithRelationInput>? + orderBy, + _i3.TaskDboWhereUniqueInput? cursor, + int? take, + int? skip, + _i1.PrismaUnion<_i3.TaskDboScalar, Iterable<_i3.TaskDboScalar>>? distinct, + _i3.TaskDboSelect? select, + _i3.TaskDboInclude? include, + }) { + final args = { + 'where': where, + 'orderBy': orderBy, + 'cursor': cursor, + 'take': take, + 'skip': skip, + 'distinct': distinct, + 'select': select, + 'include': include, + }; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.findFirst, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient<_i2.TaskDbo?>( + action: 'findFirstTaskDbo', + result: result, + factory: (e) => e != null ? _i2.TaskDbo.fromJson(e) : null, + ); + } + + _i1.ActionClient<_i2.TaskDbo> findFirstOrThrow({ + _i3.TaskDboWhereInput? where, + _i1.PrismaUnion, + _i3.TaskDboOrderByWithRelationInput>? + orderBy, + _i3.TaskDboWhereUniqueInput? cursor, + int? take, + int? skip, + _i1.PrismaUnion<_i3.TaskDboScalar, Iterable<_i3.TaskDboScalar>>? distinct, + _i3.TaskDboSelect? select, + _i3.TaskDboInclude? include, + }) { + final args = { + 'where': where, + 'orderBy': orderBy, + 'cursor': cursor, + 'take': take, + 'skip': skip, + 'distinct': distinct, + 'select': select, + 'include': include, + }; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.findFirstOrThrow, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient<_i2.TaskDbo>( + action: 'findFirstTaskDboOrThrow', + result: result, + factory: (e) => _i2.TaskDbo.fromJson(e), + ); + } + + _i1.ActionClient> findMany({ + _i3.TaskDboWhereInput? where, + _i1.PrismaUnion, + _i3.TaskDboOrderByWithRelationInput>? + orderBy, + _i3.TaskDboWhereUniqueInput? cursor, + int? take, + int? skip, + _i1.PrismaUnion<_i3.TaskDboScalar, Iterable<_i3.TaskDboScalar>>? distinct, + _i3.TaskDboSelect? select, + _i3.TaskDboInclude? include, + }) { + final args = { + 'where': where, + 'orderBy': orderBy, + 'cursor': cursor, + 'take': take, + 'skip': skip, + 'distinct': distinct, + 'select': select, + 'include': include, + }; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.findMany, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient>( + action: 'findManyTaskDbo', + result: result, + factory: (values) => + (values as Iterable).map((e) => _i2.TaskDbo.fromJson(e)), + ); + } + + _i1.ActionClient<_i2.TaskDbo> create({ + required _i1 + .PrismaUnion<_i3.TaskDboCreateInput, _i3.TaskDboUncheckedCreateInput> + data, + _i3.TaskDboSelect? select, + _i3.TaskDboInclude? include, + }) { + final args = { + 'data': data, + 'select': select, + 'include': include, + }; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.createOne, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient<_i2.TaskDbo>( + action: 'createOneTaskDbo', + result: result, + factory: (e) => _i2.TaskDbo.fromJson(e), + ); + } + + _i1.ActionClient<_i3.AffectedRowsOutput> createMany({ + required _i1.PrismaUnion<_i3.TaskDboCreateManyInput, + Iterable<_i3.TaskDboCreateManyInput>> + data, + bool? skipDuplicates, + }) { + final args = { + 'data': data, + 'skipDuplicates': skipDuplicates, + }; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.createMany, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient<_i3.AffectedRowsOutput>( + action: 'createManyTaskDbo', + result: result, + factory: (e) => _i3.AffectedRowsOutput.fromJson(e), + ); + } + + _i1.ActionClient> + createManyAndReturn({ + required _i1.PrismaUnion<_i3.TaskDboCreateManyInput, + Iterable<_i3.TaskDboCreateManyInput>> + data, + bool? skipDuplicates, + _i3.CreateManyTaskDboAndReturnOutputTypeSelect? select, + _i3.CreateManyTaskDboAndReturnOutputTypeInclude? include, + }) { + final args = { + 'data': data, + 'skipDuplicates': skipDuplicates, + 'select': select, + 'include': include, + }; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.createManyAndReturn, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient>( + action: 'createManyTaskDboAndReturn', + result: result, + factory: (values) => (values as Iterable) + .map((e) => _i2.CreateManyTaskDboAndReturnOutputType.fromJson(e)), + ); + } + + _i1.ActionClient<_i2.TaskDbo?> update({ + required _i1 + .PrismaUnion<_i3.TaskDboUpdateInput, _i3.TaskDboUncheckedUpdateInput> + data, + required _i3.TaskDboWhereUniqueInput where, + _i3.TaskDboSelect? select, + _i3.TaskDboInclude? include, + }) { + final args = { + 'data': data, + 'where': where, + 'select': select, + 'include': include, + }; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.updateOne, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient<_i2.TaskDbo?>( + action: 'updateOneTaskDbo', + result: result, + factory: (e) => e != null ? _i2.TaskDbo.fromJson(e) : null, + ); + } + + _i1.ActionClient<_i3.AffectedRowsOutput> updateMany({ + required _i1.PrismaUnion<_i3.TaskDboUpdateManyMutationInput, + _i3.TaskDboUncheckedUpdateManyInput> + data, + _i3.TaskDboWhereInput? where, + }) { + final args = { + 'data': data, + 'where': where, + }; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.updateMany, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient<_i3.AffectedRowsOutput>( + action: 'updateManyTaskDbo', + result: result, + factory: (e) => _i3.AffectedRowsOutput.fromJson(e), + ); + } + + _i1.ActionClient<_i2.TaskDbo> upsert({ + required _i3.TaskDboWhereUniqueInput where, + required _i1 + .PrismaUnion<_i3.TaskDboCreateInput, _i3.TaskDboUncheckedCreateInput> + create, + required _i1 + .PrismaUnion<_i3.TaskDboUpdateInput, _i3.TaskDboUncheckedUpdateInput> + update, + _i3.TaskDboSelect? select, + _i3.TaskDboInclude? include, + }) { + final args = { + 'where': where, + 'create': create, + 'update': update, + 'select': select, + 'include': include, + }; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.upsertOne, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient<_i2.TaskDbo>( + action: 'upsertOneTaskDbo', + result: result, + factory: (e) => _i2.TaskDbo.fromJson(e), + ); + } + + _i1.ActionClient<_i2.TaskDbo?> delete({ + required _i3.TaskDboWhereUniqueInput where, + _i3.TaskDboSelect? select, + _i3.TaskDboInclude? include, + }) { + final args = { + 'where': where, + 'select': select, + 'include': include, + }; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.deleteOne, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient<_i2.TaskDbo?>( + action: 'deleteOneTaskDbo', + result: result, + factory: (e) => e != null ? _i2.TaskDbo.fromJson(e) : null, + ); + } + + _i1.ActionClient<_i3.AffectedRowsOutput> deleteMany( + {_i3.TaskDboWhereInput? where}) { + final args = {'where': where}; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.deleteMany, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient<_i3.AffectedRowsOutput>( + action: 'deleteManyTaskDbo', + result: result, + factory: (e) => _i3.AffectedRowsOutput.fromJson(e), + ); + } + + _i1.ActionClient> groupBy({ + _i3.TaskDboWhereInput? where, + _i1.PrismaUnion, + _i3.TaskDboOrderByWithAggregationInput>? + orderBy, + required _i1.PrismaUnion, _i3.TaskDboScalar> by, + _i3.TaskDboScalarWhereWithAggregatesInput? having, + int? take, + int? skip, + _i3.TaskDboGroupByOutputTypeSelect? select, + }) { + final args = { + 'where': where, + 'orderBy': orderBy, + 'by': _i1.JsonQuery.groupBySerializer(by), + 'having': having, + 'take': take, + 'skip': skip, + 'select': select ?? _i1.JsonQuery.groupBySelectSerializer(by), + }; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.groupBy, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient>( + action: 'groupByTaskDbo', + result: result, + factory: (values) => (values as Iterable) + .map((e) => _i3.TaskDboGroupByOutputType.fromJson(e)), + ); + } + + _i1.ActionClient<_i3.AggregateTaskDbo> aggregate({ + _i3.TaskDboWhereInput? where, + _i1.PrismaUnion, + _i3.TaskDboOrderByWithRelationInput>? + orderBy, + _i3.TaskDboWhereUniqueInput? cursor, + int? take, + int? skip, + _i3.AggregateTaskDboSelect? select, + }) { + final args = { + 'where': where, + 'orderBy': orderBy, + 'cursor': cursor, + 'take': take, + 'skip': skip, + 'select': select, + }; + final query = _i1.serializeJsonQuery( + args: args, + modelName: 'TaskDbo', + action: _i1.JsonQueryAction.aggregate, + datamodel: PrismaClient.datamodel, + ); + final result = _client.$engine.request( + query, + headers: _client.$transaction.headers, + transaction: _client.$transaction.transaction, + ); + return _i1.ActionClient<_i3.AggregateTaskDbo>( + action: 'aggregateTaskDbo', + result: result, + factory: (e) => _i3.AggregateTaskDbo.fromJson(e), ); } } @@ -1994,8 +2009,9 @@ class PrismaClient extends _i1.BasePrismaClient { 'enums': [], 'models': [ { - 'name': 'User', + 'name': 'UserDbo', 'dbName': null, + 'schema': null, 'fields': [ { 'name': 'id', @@ -2007,9 +2023,10 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': true, 'type': 'String', + 'nativeType': null, 'default': { - 'name': 'uuid(4)', - 'args': [], + 'name': 'uuid', + 'args': [4], }, 'isGenerated': false, 'isUpdatedAt': false, @@ -2024,6 +2041,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'String', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2037,6 +2055,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'String', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2050,6 +2069,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'String', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2062,8 +2082,9 @@ class PrismaClient extends _i1.BasePrismaClient { 'isId': false, 'isReadOnly': false, 'hasDefaultValue': false, - 'type': 'Project', - 'relationName': 'ProjectToUser', + 'type': 'ProjectDbo', + 'nativeType': null, + 'relationName': 'ProjectDboToUserDbo', 'relationFromFields': [], 'relationToFields': [], 'isGenerated': false, @@ -2078,8 +2099,9 @@ class PrismaClient extends _i1.BasePrismaClient { 'isId': false, 'isReadOnly': false, 'hasDefaultValue': false, - 'type': 'TimeEntry', - 'relationName': 'TimeEntryToUser', + 'type': 'TimeEntryDbo', + 'nativeType': null, + 'relationName': 'TimeEntryDboToUserDbo', 'relationFromFields': [], 'relationToFields': [], 'isGenerated': false, @@ -2095,6 +2117,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': true, 'type': 'DateTime', + 'nativeType': null, 'default': { 'name': 'now', 'args': [], @@ -2112,6 +2135,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'DateTime', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': true, }, @@ -2122,8 +2146,9 @@ class PrismaClient extends _i1.BasePrismaClient { 'isGenerated': false, }, { - 'name': 'Project', + 'name': 'ProjectDbo', 'dbName': null, + 'schema': null, 'fields': [ { 'name': 'id', @@ -2135,9 +2160,10 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': true, 'type': 'String', + 'nativeType': null, 'default': { - 'name': 'uuid(4)', - 'args': [], + 'name': 'uuid', + 'args': [4], }, 'isGenerated': false, 'isUpdatedAt': false, @@ -2152,6 +2178,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'String', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2165,6 +2192,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'String', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2178,6 +2206,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'String', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2190,8 +2219,9 @@ class PrismaClient extends _i1.BasePrismaClient { 'isId': false, 'isReadOnly': false, 'hasDefaultValue': false, - 'type': 'Task', - 'relationName': 'ProjectToTask', + 'type': 'TaskDbo', + 'nativeType': null, + 'relationName': 'ProjectDboToTaskDbo', 'relationFromFields': [], 'relationToFields': [], 'isGenerated': false, @@ -2206,8 +2236,9 @@ class PrismaClient extends _i1.BasePrismaClient { 'isId': false, 'isReadOnly': false, 'hasDefaultValue': false, - 'type': 'TimeEntry', - 'relationName': 'ProjectToTimeEntry', + 'type': 'TimeEntryDbo', + 'nativeType': null, + 'relationName': 'ProjectDboToTimeEntryDbo', 'relationFromFields': [], 'relationToFields': [], 'isGenerated': false, @@ -2222,8 +2253,9 @@ class PrismaClient extends _i1.BasePrismaClient { 'isId': false, 'isReadOnly': false, 'hasDefaultValue': false, - 'type': 'User', - 'relationName': 'ProjectToUser', + 'type': 'UserDbo', + 'nativeType': null, + 'relationName': 'ProjectDboToUserDbo', 'relationFromFields': ['userId'], 'relationToFields': ['id'], 'isGenerated': false, @@ -2239,6 +2271,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': true, 'hasDefaultValue': false, 'type': 'String', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2252,6 +2285,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': true, 'type': 'DateTime', + 'nativeType': null, 'default': { 'name': 'now', 'args': [], @@ -2269,6 +2303,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'DateTime', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': true, }, @@ -2279,8 +2314,9 @@ class PrismaClient extends _i1.BasePrismaClient { 'isGenerated': false, }, { - 'name': 'TimeEntry', + 'name': 'TimeEntryDbo', 'dbName': null, + 'schema': null, 'fields': [ { 'name': 'id', @@ -2292,9 +2328,10 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': true, 'type': 'String', + 'nativeType': null, 'default': { - 'name': 'uuid(4)', - 'args': [], + 'name': 'uuid', + 'args': [4], }, 'isGenerated': false, 'isUpdatedAt': false, @@ -2309,6 +2346,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'DateTime', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2322,6 +2360,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'DateTime', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2335,6 +2374,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'String', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2347,8 +2387,9 @@ class PrismaClient extends _i1.BasePrismaClient { 'isId': false, 'isReadOnly': false, 'hasDefaultValue': false, - 'type': 'User', - 'relationName': 'TimeEntryToUser', + 'type': 'UserDbo', + 'nativeType': null, + 'relationName': 'TimeEntryDboToUserDbo', 'relationFromFields': ['userId'], 'relationToFields': ['id'], 'isGenerated': false, @@ -2364,6 +2405,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': true, 'hasDefaultValue': false, 'type': 'String', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2376,8 +2418,9 @@ class PrismaClient extends _i1.BasePrismaClient { 'isId': false, 'isReadOnly': false, 'hasDefaultValue': false, - 'type': 'Project', - 'relationName': 'ProjectToTimeEntry', + 'type': 'ProjectDbo', + 'nativeType': null, + 'relationName': 'ProjectDboToTimeEntryDbo', 'relationFromFields': ['projectId'], 'relationToFields': ['id'], 'isGenerated': false, @@ -2393,6 +2436,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': true, 'hasDefaultValue': false, 'type': 'String', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2406,6 +2450,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': true, 'type': 'DateTime', + 'nativeType': null, 'default': { 'name': 'now', 'args': [], @@ -2423,6 +2468,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'DateTime', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': true, }, @@ -2433,8 +2479,9 @@ class PrismaClient extends _i1.BasePrismaClient { 'isGenerated': false, }, { - 'name': 'Task', + 'name': 'TaskDbo', 'dbName': null, + 'schema': null, 'fields': [ { 'name': 'id', @@ -2446,9 +2493,10 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': true, 'type': 'String', + 'nativeType': null, 'default': { - 'name': 'uuid(4)', - 'args': [], + 'name': 'uuid', + 'args': [4], }, 'isGenerated': false, 'isUpdatedAt': false, @@ -2463,6 +2511,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'String', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2476,6 +2525,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'String', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2488,8 +2538,9 @@ class PrismaClient extends _i1.BasePrismaClient { 'isId': false, 'isReadOnly': false, 'hasDefaultValue': false, - 'type': 'Project', - 'relationName': 'ProjectToTask', + 'type': 'ProjectDbo', + 'nativeType': null, + 'relationName': 'ProjectDboToTaskDbo', 'relationFromFields': ['projectId'], 'relationToFields': ['id'], 'isGenerated': false, @@ -2505,6 +2556,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': true, 'hasDefaultValue': false, 'type': 'String', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': false, }, @@ -2518,6 +2570,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': true, 'type': 'DateTime', + 'nativeType': null, 'default': { 'name': 'now', 'args': [], @@ -2535,6 +2588,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'isReadOnly': false, 'hasDefaultValue': false, 'type': 'DateTime', + 'nativeType': null, 'isGenerated': false, 'isUpdatedAt': true, }, @@ -2548,7 +2602,7 @@ class PrismaClient extends _i1.BasePrismaClient { 'types': [], 'indexes': [ { - 'model': 'User', + 'model': 'UserDbo', 'type': 'id', 'isDefinedOnField': true, 'fields': [ @@ -2556,7 +2610,7 @@ class PrismaClient extends _i1.BasePrismaClient { ], }, { - 'model': 'User', + 'model': 'UserDbo', 'type': 'unique', 'isDefinedOnField': true, 'fields': [ @@ -2564,7 +2618,7 @@ class PrismaClient extends _i1.BasePrismaClient { ], }, { - 'model': 'Project', + 'model': 'ProjectDbo', 'type': 'id', 'isDefinedOnField': true, 'fields': [ @@ -2572,7 +2626,7 @@ class PrismaClient extends _i1.BasePrismaClient { ], }, { - 'model': 'TimeEntry', + 'model': 'TimeEntryDbo', 'type': 'id', 'isDefinedOnField': true, 'fields': [ @@ -2580,7 +2634,7 @@ class PrismaClient extends _i1.BasePrismaClient { ], }, { - 'model': 'Task', + 'model': 'TaskDbo', 'type': 'id', 'isDefinedOnField': true, 'fields': [ @@ -2617,7 +2671,7 @@ class PrismaClient extends _i1.BasePrismaClient { @override get $engine => _engine ??= _i5.BinaryEngine( schema: - 'generator dartClient {\n provider = "dart run orm"\n output = "../../../backend_dart/lib/infrastructure/persistence/db"\n}\n\ngenerator goClient {\n provider = "go run github.com/steebchen/prisma-client-go"\n output = "../../../backend-go/internal/infrastructure/persistence/db"\n}\n\ndatasource db {\n provider = "postgresql"\n url = env("DATABASE_URL")\n}\n\n// User Model\nmodel User {\n id String @id @default(uuid())\n name String\n email String @unique\n password String\n projects Project[] // Beziehung zu Projekten\n timeEntries TimeEntry[] // Beziehung zu Zeiteinträgen\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\n// Project Model\nmodel Project {\n id String @id @default(uuid())\n name String\n description String?\n clientId String?\n tasks Task[] // Beziehung zu Aufgaben\n timeEntries TimeEntry[] // Beziehung zu Zeiteinträgen\n user User @relation(fields: [userId], references: [id])\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\n// TimeEntry Model\nmodel TimeEntry {\n id String @id @default(uuid())\n startTime DateTime\n endTime DateTime\n description String?\n user User @relation(fields: [userId], references: [id])\n userId String\n project Project @relation(fields: [projectId], references: [id])\n projectId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\n// Task Model (optional)\nmodel Task {\n id String @id @default(uuid())\n name String\n description String?\n project Project @relation(fields: [projectId], references: [id])\n projectId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n', + 'generator dartClient {\n provider = "dart run orm"\n output = "../lib/infrastructure/persistence/db"\n}\n\ndatasource db {\n provider = "postgresql"\n url = env("DATABASE_URL")\n}\n\n// User Model\nmodel UserDbo {\n id String @id @default(uuid())\n name String\n email String @unique\n password String\n projects ProjectDbo[] // Beziehung zu Projekten\n timeEntries TimeEntryDbo[] // Beziehung zu Zeiteinträgen\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\n// Project Model\nmodel ProjectDbo {\n id String @id @default(uuid())\n name String\n description String?\n clientId String?\n tasks TaskDbo[] // Beziehung zu Aufgaben\n timeEntries TimeEntryDbo[] // Beziehung zu Zeiteinträgen\n user UserDbo @relation(fields: [userId], references: [id])\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\n// TimeEntry Model\nmodel TimeEntryDbo {\n id String @id @default(uuid())\n startTime DateTime\n endTime DateTime\n description String?\n user UserDbo @relation(fields: [userId], references: [id])\n userId String\n project ProjectDbo @relation(fields: [projectId], references: [id])\n projectId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\n// Task Model (optional)\nmodel TaskDbo {\n id String @id @default(uuid())\n name String\n description String?\n project ProjectDbo @relation(fields: [projectId], references: [id])\n projectId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n', datasources: const { 'db': _i1.Datasource( _i1.DatasourceType.environment, @@ -2630,11 +2684,11 @@ class PrismaClient extends _i1.BasePrismaClient { @override get $datamodel => datamodel; - UserDelegate get user => UserDelegate._(this); + UserDboDelegate get userDbo => UserDboDelegate._(this); - ProjectDelegate get project => ProjectDelegate._(this); + ProjectDboDelegate get projectDbo => ProjectDboDelegate._(this); - TimeEntryDelegate get timeEntry => TimeEntryDelegate._(this); + TimeEntryDboDelegate get timeEntryDbo => TimeEntryDboDelegate._(this); - TaskDelegate get task => TaskDelegate._(this); + TaskDboDelegate get taskDbo => TaskDboDelegate._(this); } diff --git a/backend-dart/lib/infrastructure/persistence/db/model.dart b/backend-dart/lib/infrastructure/persistence/db/model.dart index bb871e4..a08c43d 100755 --- a/backend-dart/lib/infrastructure/persistence/db/model.dart +++ b/backend-dart/lib/infrastructure/persistence/db/model.dart @@ -2,8 +2,8 @@ import 'model.dart' as _i1; import 'prisma.dart' as _i2; -class Task { - const Task({ +class TaskDbo { + const TaskDbo({ this.id, this.name, this.description, @@ -13,7 +13,7 @@ class Task { this.project, }); - factory Task.fromJson(Map json) => Task( + factory TaskDbo.fromJson(Map json) => TaskDbo( id: json['id'], name: json['name'], description: json['description'], @@ -29,7 +29,7 @@ class Task { _ => json['updatedAt'] }, project: json['project'] is Map - ? _i1.Project.fromJson(json['project']) + ? _i1.ProjectDbo.fromJson(json['project']) : null, ); @@ -45,7 +45,7 @@ class Task { final DateTime? updatedAt; - final _i1.Project? project; + final _i1.ProjectDbo? project; Map toJson() => { 'id': id, @@ -58,8 +58,8 @@ class Task { }; } -class TimeEntry { - const TimeEntry({ +class TimeEntryDbo { + const TimeEntryDbo({ this.id, this.startTime, this.endTime, @@ -72,7 +72,7 @@ class TimeEntry { this.project, }); - factory TimeEntry.fromJson(Map json) => TimeEntry( + factory TimeEntryDbo.fromJson(Map json) => TimeEntryDbo( id: json['id'], startTime: switch (json['startTime']) { DateTime value => value, @@ -97,9 +97,9 @@ class TimeEntry { String value => DateTime.parse(value), _ => json['updatedAt'] }, - user: json['user'] is Map ? _i1.User.fromJson(json['user']) : null, + user: json['user'] is Map ? _i1.UserDbo.fromJson(json['user']) : null, project: json['project'] is Map - ? _i1.Project.fromJson(json['project']) + ? _i1.ProjectDbo.fromJson(json['project']) : null, ); @@ -119,9 +119,9 @@ class TimeEntry { final DateTime? updatedAt; - final _i1.User? user; + final _i1.UserDbo? user; - final _i1.Project? project; + final _i1.ProjectDbo? project; Map toJson() => { 'id': id, @@ -137,8 +137,8 @@ class TimeEntry { }; } -class Project { - const Project({ +class ProjectDbo { + const ProjectDbo({ this.id, this.name, this.description, @@ -152,7 +152,7 @@ class Project { this.$count, }); - factory Project.fromJson(Map json) => Project( + factory ProjectDbo.fromJson(Map json) => ProjectDbo( id: json['id'], name: json['name'], description: json['description'], @@ -169,12 +169,12 @@ class Project { _ => json['updatedAt'] }, tasks: (json['tasks'] as Iterable?) - ?.map((json) => _i1.Task.fromJson(json)), + ?.map((json) => _i1.TaskDbo.fromJson(json)), timeEntries: (json['timeEntries'] as Iterable?) - ?.map((json) => _i1.TimeEntry.fromJson(json)), - user: json['user'] is Map ? _i1.User.fromJson(json['user']) : null, + ?.map((json) => _i1.TimeEntryDbo.fromJson(json)), + user: json['user'] is Map ? _i1.UserDbo.fromJson(json['user']) : null, $count: json['_count'] is Map - ? _i2.ProjectCountOutputType.fromJson(json['_count']) + ? _i2.ProjectDboCountOutputType.fromJson(json['_count']) : null, ); @@ -192,13 +192,13 @@ class Project { final DateTime? updatedAt; - final Iterable<_i1.Task>? tasks; + final Iterable<_i1.TaskDbo>? tasks; - final Iterable<_i1.TimeEntry>? timeEntries; + final Iterable<_i1.TimeEntryDbo>? timeEntries; - final _i1.User? user; + final _i1.UserDbo? user; - final _i2.ProjectCountOutputType? $count; + final _i2.ProjectDboCountOutputType? $count; Map toJson() => { 'id': id, @@ -215,8 +215,8 @@ class Project { }; } -class User { - const User({ +class UserDbo { + const UserDbo({ this.id, this.name, this.email, @@ -228,7 +228,7 @@ class User { this.$count, }); - factory User.fromJson(Map json) => User( + factory UserDbo.fromJson(Map json) => UserDbo( id: json['id'], name: json['name'], email: json['email'], @@ -244,11 +244,11 @@ class User { _ => json['updatedAt'] }, projects: (json['projects'] as Iterable?) - ?.map((json) => _i1.Project.fromJson(json)), + ?.map((json) => _i1.ProjectDbo.fromJson(json)), timeEntries: (json['timeEntries'] as Iterable?) - ?.map((json) => _i1.TimeEntry.fromJson(json)), + ?.map((json) => _i1.TimeEntryDbo.fromJson(json)), $count: json['_count'] is Map - ? _i2.UserCountOutputType.fromJson(json['_count']) + ? _i2.UserDboCountOutputType.fromJson(json['_count']) : null, ); @@ -264,11 +264,11 @@ class User { final DateTime? updatedAt; - final Iterable<_i1.Project>? projects; + final Iterable<_i1.ProjectDbo>? projects; - final Iterable<_i1.TimeEntry>? timeEntries; + final Iterable<_i1.TimeEntryDbo>? timeEntries; - final _i2.UserCountOutputType? $count; + final _i2.UserDboCountOutputType? $count; Map toJson() => { 'id': id, @@ -283,8 +283,8 @@ class User { }; } -class CreateManyUserAndReturnOutputType { - const CreateManyUserAndReturnOutputType({ +class CreateManyUserDboAndReturnOutputType { + const CreateManyUserDboAndReturnOutputType({ this.id, this.name, this.email, @@ -293,8 +293,8 @@ class CreateManyUserAndReturnOutputType { this.updatedAt, }); - factory CreateManyUserAndReturnOutputType.fromJson(Map json) => - CreateManyUserAndReturnOutputType( + factory CreateManyUserDboAndReturnOutputType.fromJson(Map json) => + CreateManyUserDboAndReturnOutputType( id: json['id'], name: json['name'], email: json['email'], @@ -333,8 +333,8 @@ class CreateManyUserAndReturnOutputType { }; } -class CreateManyProjectAndReturnOutputType { - const CreateManyProjectAndReturnOutputType({ +class CreateManyProjectDboAndReturnOutputType { + const CreateManyProjectDboAndReturnOutputType({ this.id, this.name, this.description, @@ -345,8 +345,8 @@ class CreateManyProjectAndReturnOutputType { this.user, }); - factory CreateManyProjectAndReturnOutputType.fromJson(Map json) => - CreateManyProjectAndReturnOutputType( + factory CreateManyProjectDboAndReturnOutputType.fromJson(Map json) => + CreateManyProjectDboAndReturnOutputType( id: json['id'], name: json['name'], description: json['description'], @@ -362,7 +362,7 @@ class CreateManyProjectAndReturnOutputType { String value => DateTime.parse(value), _ => json['updatedAt'] }, - user: json['user'] is Map ? _i1.User.fromJson(json['user']) : null, + user: json['user'] is Map ? _i1.UserDbo.fromJson(json['user']) : null, ); final String? id; @@ -379,7 +379,7 @@ class CreateManyProjectAndReturnOutputType { final DateTime? updatedAt; - final _i1.User? user; + final _i1.UserDbo? user; Map toJson() => { 'id': id, @@ -393,8 +393,8 @@ class CreateManyProjectAndReturnOutputType { }; } -class CreateManyTimeEntryAndReturnOutputType { - const CreateManyTimeEntryAndReturnOutputType({ +class CreateManyTimeEntryDboAndReturnOutputType { + const CreateManyTimeEntryDboAndReturnOutputType({ this.id, this.startTime, this.endTime, @@ -407,8 +407,8 @@ class CreateManyTimeEntryAndReturnOutputType { this.project, }); - factory CreateManyTimeEntryAndReturnOutputType.fromJson(Map json) => - CreateManyTimeEntryAndReturnOutputType( + factory CreateManyTimeEntryDboAndReturnOutputType.fromJson(Map json) => + CreateManyTimeEntryDboAndReturnOutputType( id: json['id'], startTime: switch (json['startTime']) { DateTime value => value, @@ -433,9 +433,9 @@ class CreateManyTimeEntryAndReturnOutputType { String value => DateTime.parse(value), _ => json['updatedAt'] }, - user: json['user'] is Map ? _i1.User.fromJson(json['user']) : null, + user: json['user'] is Map ? _i1.UserDbo.fromJson(json['user']) : null, project: json['project'] is Map - ? _i1.Project.fromJson(json['project']) + ? _i1.ProjectDbo.fromJson(json['project']) : null, ); @@ -455,9 +455,9 @@ class CreateManyTimeEntryAndReturnOutputType { final DateTime? updatedAt; - final _i1.User? user; + final _i1.UserDbo? user; - final _i1.Project? project; + final _i1.ProjectDbo? project; Map toJson() => { 'id': id, @@ -473,8 +473,8 @@ class CreateManyTimeEntryAndReturnOutputType { }; } -class CreateManyTaskAndReturnOutputType { - const CreateManyTaskAndReturnOutputType({ +class CreateManyTaskDboAndReturnOutputType { + const CreateManyTaskDboAndReturnOutputType({ this.id, this.name, this.description, @@ -484,8 +484,8 @@ class CreateManyTaskAndReturnOutputType { this.project, }); - factory CreateManyTaskAndReturnOutputType.fromJson(Map json) => - CreateManyTaskAndReturnOutputType( + factory CreateManyTaskDboAndReturnOutputType.fromJson(Map json) => + CreateManyTaskDboAndReturnOutputType( id: json['id'], name: json['name'], description: json['description'], @@ -501,7 +501,7 @@ class CreateManyTaskAndReturnOutputType { _ => json['updatedAt'] }, project: json['project'] is Map - ? _i1.Project.fromJson(json['project']) + ? _i1.ProjectDbo.fromJson(json['project']) : null, ); @@ -517,7 +517,7 @@ class CreateManyTaskAndReturnOutputType { final DateTime? updatedAt; - final _i1.Project? project; + final _i1.ProjectDbo? project; Map toJson() => { 'id': id, diff --git a/backend-dart/lib/infrastructure/persistence/db/prisma.dart b/backend-dart/lib/infrastructure/persistence/db/prisma.dart index d6f1e78..d9899a8 100755 --- a/backend-dart/lib/infrastructure/persistence/db/prisma.dart +++ b/backend-dart/lib/infrastructure/persistence/db/prisma.dart @@ -5,13 +5,14 @@ import 'package:orm/orm.dart' as _i1; import 'prisma.dart' as _i2; -class ProjectCountOutputType { - const ProjectCountOutputType({ +class ProjectDboCountOutputType { + const ProjectDboCountOutputType({ this.tasks, this.timeEntries, }); - factory ProjectCountOutputType.fromJson(Map json) => ProjectCountOutputType( + factory ProjectDboCountOutputType.fromJson(Map json) => + ProjectDboCountOutputType( tasks: json['tasks'], timeEntries: json['timeEntries'], ); @@ -26,13 +27,13 @@ class ProjectCountOutputType { }; } -class UserCountOutputType { - const UserCountOutputType({ +class UserDboCountOutputType { + const UserDboCountOutputType({ this.projects, this.timeEntries, }); - factory UserCountOutputType.fromJson(Map json) => UserCountOutputType( + factory UserDboCountOutputType.fromJson(Map json) => UserDboCountOutputType( projects: json['projects'], timeEntries: json['timeEntries'], ); @@ -376,16 +377,16 @@ class StringNullableFilter }; } -class ProjectRelationFilter +class ProjectDboScalarRelationFilter implements _i1.JsonConvertible> { - const ProjectRelationFilter({ + const ProjectDboScalarRelationFilter({ this.$is, this.isNot, }); - final _i2.ProjectWhereInput? $is; + final _i2.ProjectDboWhereInput? $is; - final _i2.ProjectWhereInput? isNot; + final _i2.ProjectDboWhereInput? isNot; @override Map toJson() => { @@ -394,8 +395,8 @@ class ProjectRelationFilter }; } -class TaskWhereInput implements _i1.JsonConvertible> { - const TaskWhereInput({ +class TaskDboWhereInput implements _i1.JsonConvertible> { + const TaskDboWhereInput({ this.AND, this.OR, this.NOT, @@ -408,11 +409,13 @@ class TaskWhereInput implements _i1.JsonConvertible> { this.project, }); - final _i1.PrismaUnion<_i2.TaskWhereInput, Iterable<_i2.TaskWhereInput>>? AND; + final _i1.PrismaUnion<_i2.TaskDboWhereInput, Iterable<_i2.TaskDboWhereInput>>? + AND; - final Iterable<_i2.TaskWhereInput>? OR; + final Iterable<_i2.TaskDboWhereInput>? OR; - final _i1.PrismaUnion<_i2.TaskWhereInput, Iterable<_i2.TaskWhereInput>>? NOT; + final _i1.PrismaUnion<_i2.TaskDboWhereInput, Iterable<_i2.TaskDboWhereInput>>? + NOT; final _i1.PrismaUnion<_i2.StringFilter, String>? id; @@ -427,8 +430,8 @@ class TaskWhereInput implements _i1.JsonConvertible> { final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - final _i1.PrismaUnion<_i2.ProjectRelationFilter, _i2.ProjectWhereInput>? - project; + final _i1.PrismaUnion<_i2.ProjectDboScalarRelationFilter, + _i2.ProjectDboWhereInput>? project; @override Map toJson() => { @@ -445,19 +448,19 @@ class TaskWhereInput implements _i1.JsonConvertible> { }; } -class TaskListRelationFilter +class TaskDboListRelationFilter implements _i1.JsonConvertible> { - const TaskListRelationFilter({ + const TaskDboListRelationFilter({ this.every, this.some, this.none, }); - final _i2.TaskWhereInput? every; + final _i2.TaskDboWhereInput? every; - final _i2.TaskWhereInput? some; + final _i2.TaskDboWhereInput? some; - final _i2.TaskWhereInput? none; + final _i2.TaskDboWhereInput? none; @override Map toJson() => { @@ -467,15 +470,16 @@ class TaskListRelationFilter }; } -class UserRelationFilter implements _i1.JsonConvertible> { - const UserRelationFilter({ +class UserDboScalarRelationFilter + implements _i1.JsonConvertible> { + const UserDboScalarRelationFilter({ this.$is, this.isNot, }); - final _i2.UserWhereInput? $is; + final _i2.UserDboWhereInput? $is; - final _i2.UserWhereInput? isNot; + final _i2.UserDboWhereInput? isNot; @override Map toJson() => { @@ -484,8 +488,9 @@ class UserRelationFilter implements _i1.JsonConvertible> { }; } -class TimeEntryWhereInput implements _i1.JsonConvertible> { - const TimeEntryWhereInput({ +class TimeEntryDboWhereInput + implements _i1.JsonConvertible> { + const TimeEntryDboWhereInput({ this.AND, this.OR, this.NOT, @@ -501,15 +506,13 @@ class TimeEntryWhereInput implements _i1.JsonConvertible> { this.project, }); - final _i1 - .PrismaUnion<_i2.TimeEntryWhereInput, Iterable<_i2.TimeEntryWhereInput>>? - AND; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereInput, + Iterable<_i2.TimeEntryDboWhereInput>>? AND; - final Iterable<_i2.TimeEntryWhereInput>? OR; + final Iterable<_i2.TimeEntryDboWhereInput>? OR; - final _i1 - .PrismaUnion<_i2.TimeEntryWhereInput, Iterable<_i2.TimeEntryWhereInput>>? - NOT; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereInput, + Iterable<_i2.TimeEntryDboWhereInput>>? NOT; final _i1.PrismaUnion<_i2.StringFilter, String>? id; @@ -528,10 +531,11 @@ class TimeEntryWhereInput implements _i1.JsonConvertible> { final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - final _i1.PrismaUnion<_i2.UserRelationFilter, _i2.UserWhereInput>? user; + final _i1.PrismaUnion<_i2.UserDboScalarRelationFilter, _i2.UserDboWhereInput>? + user; - final _i1.PrismaUnion<_i2.ProjectRelationFilter, _i2.ProjectWhereInput>? - project; + final _i1.PrismaUnion<_i2.ProjectDboScalarRelationFilter, + _i2.ProjectDboWhereInput>? project; @override Map toJson() => { @@ -551,19 +555,19 @@ class TimeEntryWhereInput implements _i1.JsonConvertible> { }; } -class TimeEntryListRelationFilter +class TimeEntryDboListRelationFilter implements _i1.JsonConvertible> { - const TimeEntryListRelationFilter({ + const TimeEntryDboListRelationFilter({ this.every, this.some, this.none, }); - final _i2.TimeEntryWhereInput? every; + final _i2.TimeEntryDboWhereInput? every; - final _i2.TimeEntryWhereInput? some; + final _i2.TimeEntryDboWhereInput? some; - final _i2.TimeEntryWhereInput? none; + final _i2.TimeEntryDboWhereInput? none; @override Map toJson() => { @@ -573,8 +577,9 @@ class TimeEntryListRelationFilter }; } -class ProjectWhereInput implements _i1.JsonConvertible> { - const ProjectWhereInput({ +class ProjectDboWhereInput + implements _i1.JsonConvertible> { + const ProjectDboWhereInput({ this.AND, this.OR, this.NOT, @@ -590,13 +595,13 @@ class ProjectWhereInput implements _i1.JsonConvertible> { this.user, }); - final _i1.PrismaUnion<_i2.ProjectWhereInput, Iterable<_i2.ProjectWhereInput>>? - AND; + final _i1.PrismaUnion<_i2.ProjectDboWhereInput, + Iterable<_i2.ProjectDboWhereInput>>? AND; - final Iterable<_i2.ProjectWhereInput>? OR; + final Iterable<_i2.ProjectDboWhereInput>? OR; - final _i1.PrismaUnion<_i2.ProjectWhereInput, Iterable<_i2.ProjectWhereInput>>? - NOT; + final _i1.PrismaUnion<_i2.ProjectDboWhereInput, + Iterable<_i2.ProjectDboWhereInput>>? NOT; final _i1.PrismaUnion<_i2.StringFilter, String>? id; @@ -614,11 +619,12 @@ class ProjectWhereInput implements _i1.JsonConvertible> { final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - final _i2.TaskListRelationFilter? tasks; + final _i2.TaskDboListRelationFilter? tasks; - final _i2.TimeEntryListRelationFilter? timeEntries; + final _i2.TimeEntryDboListRelationFilter? timeEntries; - final _i1.PrismaUnion<_i2.UserRelationFilter, _i2.UserWhereInput>? user; + final _i1.PrismaUnion<_i2.UserDboScalarRelationFilter, _i2.UserDboWhereInput>? + user; @override Map toJson() => { @@ -638,19 +644,19 @@ class ProjectWhereInput implements _i1.JsonConvertible> { }; } -class ProjectListRelationFilter +class ProjectDboListRelationFilter implements _i1.JsonConvertible> { - const ProjectListRelationFilter({ + const ProjectDboListRelationFilter({ this.every, this.some, this.none, }); - final _i2.ProjectWhereInput? every; + final _i2.ProjectDboWhereInput? every; - final _i2.ProjectWhereInput? some; + final _i2.ProjectDboWhereInput? some; - final _i2.ProjectWhereInput? none; + final _i2.ProjectDboWhereInput? none; @override Map toJson() => { @@ -660,8 +666,8 @@ class ProjectListRelationFilter }; } -class UserWhereInput implements _i1.JsonConvertible> { - const UserWhereInput({ +class UserDboWhereInput implements _i1.JsonConvertible> { + const UserDboWhereInput({ this.AND, this.OR, this.NOT, @@ -675,11 +681,13 @@ class UserWhereInput implements _i1.JsonConvertible> { this.timeEntries, }); - final _i1.PrismaUnion<_i2.UserWhereInput, Iterable<_i2.UserWhereInput>>? AND; + final _i1.PrismaUnion<_i2.UserDboWhereInput, Iterable<_i2.UserDboWhereInput>>? + AND; - final Iterable<_i2.UserWhereInput>? OR; + final Iterable<_i2.UserDboWhereInput>? OR; - final _i1.PrismaUnion<_i2.UserWhereInput, Iterable<_i2.UserWhereInput>>? NOT; + final _i1.PrismaUnion<_i2.UserDboWhereInput, Iterable<_i2.UserDboWhereInput>>? + NOT; final _i1.PrismaUnion<_i2.StringFilter, String>? id; @@ -693,9 +701,9 @@ class UserWhereInput implements _i1.JsonConvertible> { final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - final _i2.ProjectListRelationFilter? projects; + final _i2.ProjectDboListRelationFilter? projects; - final _i2.TimeEntryListRelationFilter? timeEntries; + final _i2.TimeEntryDboListRelationFilter? timeEntries; @override Map toJson() => { @@ -713,9 +721,9 @@ class UserWhereInput implements _i1.JsonConvertible> { }; } -class UserWhereUniqueInput +class UserDboWhereUniqueInput implements _i1.JsonConvertible> { - const UserWhereUniqueInput({ + const UserDboWhereUniqueInput({ this.id, this.email, this.AND, @@ -733,11 +741,13 @@ class UserWhereUniqueInput final String? email; - final _i1.PrismaUnion<_i2.UserWhereInput, Iterable<_i2.UserWhereInput>>? AND; + final _i1.PrismaUnion<_i2.UserDboWhereInput, Iterable<_i2.UserDboWhereInput>>? + AND; - final Iterable<_i2.UserWhereInput>? OR; + final Iterable<_i2.UserDboWhereInput>? OR; - final _i1.PrismaUnion<_i2.UserWhereInput, Iterable<_i2.UserWhereInput>>? NOT; + final _i1.PrismaUnion<_i2.UserDboWhereInput, Iterable<_i2.UserDboWhereInput>>? + NOT; final _i1.PrismaUnion<_i2.StringFilter, String>? name; @@ -747,9 +757,9 @@ class UserWhereUniqueInput final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - final _i2.ProjectListRelationFilter? projects; + final _i2.ProjectDboListRelationFilter? projects; - final _i2.TimeEntryListRelationFilter? timeEntries; + final _i2.TimeEntryDboListRelationFilter? timeEntries; @override Map toJson() => { @@ -767,15 +777,15 @@ class UserWhereUniqueInput }; } -class TaskProjectArgs implements _i1.JsonConvertible> { - const TaskProjectArgs({ +class TaskDboProjectArgs implements _i1.JsonConvertible> { + const TaskDboProjectArgs({ this.select, this.include, }); - final _i2.ProjectSelect? select; + final _i2.ProjectDboSelect? select; - final _i2.ProjectInclude? include; + final _i2.ProjectDboInclude? include; @override Map toJson() => { @@ -784,10 +794,10 @@ class TaskProjectArgs implements _i1.JsonConvertible> { }; } -class TaskInclude implements _i1.JsonConvertible> { - const TaskInclude({this.project}); +class TaskDboInclude implements _i1.JsonConvertible> { + const TaskDboInclude({this.project}); - final _i1.PrismaUnion? project; + final _i1.PrismaUnion? project; @override Map toJson() => {'project': project}; @@ -830,9 +840,9 @@ class SortOrderInput implements _i1.JsonConvertible> { }; } -class TaskOrderByRelationAggregateInput +class TaskDboOrderByRelationAggregateInput implements _i1.JsonConvertible> { - const TaskOrderByRelationAggregateInput({this.$count}); + const TaskDboOrderByRelationAggregateInput({this.$count}); final _i2.SortOrder? $count; @@ -840,9 +850,9 @@ class TaskOrderByRelationAggregateInput Map toJson() => {'_count': $count}; } -class TimeEntryOrderByRelationAggregateInput +class TimeEntryDboOrderByRelationAggregateInput implements _i1.JsonConvertible> { - const TimeEntryOrderByRelationAggregateInput({this.$count}); + const TimeEntryDboOrderByRelationAggregateInput({this.$count}); final _i2.SortOrder? $count; @@ -850,9 +860,9 @@ class TimeEntryOrderByRelationAggregateInput Map toJson() => {'_count': $count}; } -class ProjectOrderByRelationAggregateInput +class ProjectDboOrderByRelationAggregateInput implements _i1.JsonConvertible> { - const ProjectOrderByRelationAggregateInput({this.$count}); + const ProjectDboOrderByRelationAggregateInput({this.$count}); final _i2.SortOrder? $count; @@ -860,9 +870,9 @@ class ProjectOrderByRelationAggregateInput Map toJson() => {'_count': $count}; } -class UserOrderByWithRelationInput +class UserDboOrderByWithRelationInput implements _i1.JsonConvertible> { - const UserOrderByWithRelationInput({ + const UserDboOrderByWithRelationInput({ this.id, this.name, this.email, @@ -885,9 +895,9 @@ class UserOrderByWithRelationInput final _i2.SortOrder? updatedAt; - final _i2.ProjectOrderByRelationAggregateInput? projects; + final _i2.ProjectDboOrderByRelationAggregateInput? projects; - final _i2.TimeEntryOrderByRelationAggregateInput? timeEntries; + final _i2.TimeEntryDboOrderByRelationAggregateInput? timeEntries; @override Map toJson() => { @@ -902,9 +912,9 @@ class UserOrderByWithRelationInput }; } -class ProjectOrderByWithRelationInput +class ProjectDboOrderByWithRelationInput implements _i1.JsonConvertible> { - const ProjectOrderByWithRelationInput({ + const ProjectDboOrderByWithRelationInput({ this.id, this.name, this.description, @@ -931,11 +941,11 @@ class ProjectOrderByWithRelationInput final _i2.SortOrder? updatedAt; - final _i2.TaskOrderByRelationAggregateInput? tasks; + final _i2.TaskDboOrderByRelationAggregateInput? tasks; - final _i2.TimeEntryOrderByRelationAggregateInput? timeEntries; + final _i2.TimeEntryDboOrderByRelationAggregateInput? timeEntries; - final _i2.UserOrderByWithRelationInput? user; + final _i2.UserDboOrderByWithRelationInput? user; @override Map toJson() => { @@ -952,9 +962,9 @@ class ProjectOrderByWithRelationInput }; } -class TaskOrderByWithRelationInput +class TaskDboOrderByWithRelationInput implements _i1.JsonConvertible> { - const TaskOrderByWithRelationInput({ + const TaskDboOrderByWithRelationInput({ this.id, this.name, this.description, @@ -976,7 +986,7 @@ class TaskOrderByWithRelationInput final _i2.SortOrder? updatedAt; - final _i2.ProjectOrderByWithRelationInput? project; + final _i2.ProjectDboOrderByWithRelationInput? project; @override Map toJson() => { @@ -990,9 +1000,9 @@ class TaskOrderByWithRelationInput }; } -class TaskWhereUniqueInput +class TaskDboWhereUniqueInput implements _i1.JsonConvertible> { - const TaskWhereUniqueInput({ + const TaskDboWhereUniqueInput({ this.id, this.AND, this.OR, @@ -1007,11 +1017,13 @@ class TaskWhereUniqueInput final String? id; - final _i1.PrismaUnion<_i2.TaskWhereInput, Iterable<_i2.TaskWhereInput>>? AND; + final _i1.PrismaUnion<_i2.TaskDboWhereInput, Iterable<_i2.TaskDboWhereInput>>? + AND; - final Iterable<_i2.TaskWhereInput>? OR; + final Iterable<_i2.TaskDboWhereInput>? OR; - final _i1.PrismaUnion<_i2.TaskWhereInput, Iterable<_i2.TaskWhereInput>>? NOT; + final _i1.PrismaUnion<_i2.TaskDboWhereInput, Iterable<_i2.TaskDboWhereInput>>? + NOT; final _i1.PrismaUnion<_i2.StringFilter, String>? name; @@ -1024,8 +1036,8 @@ class TaskWhereUniqueInput final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - final _i1.PrismaUnion<_i2.ProjectRelationFilter, _i2.ProjectWhereInput>? - project; + final _i1.PrismaUnion<_i2.ProjectDboScalarRelationFilter, + _i2.ProjectDboWhereInput>? project; @override Map toJson() => { @@ -1042,15 +1054,15 @@ class TaskWhereUniqueInput }; } -enum TaskScalar implements _i1.PrismaEnum, _i1.Reference { - id('id', 'Task'), - name$('name', 'Task'), - description('description', 'Task'), - projectId('projectId', 'Task'), - createdAt('createdAt', 'Task'), - updatedAt('updatedAt', 'Task'); +enum TaskDboScalar implements _i1.PrismaEnum, _i1.Reference { + id('id', 'TaskDbo'), + name$('name', 'TaskDbo'), + description('description', 'TaskDbo'), + projectId('projectId', 'TaskDbo'), + createdAt('createdAt', 'TaskDbo'), + updatedAt('updatedAt', 'TaskDbo'); - const TaskScalar( + const TaskDboScalar( this.name, this.model, ); @@ -1062,8 +1074,8 @@ enum TaskScalar implements _i1.PrismaEnum, _i1.Reference { final String model; } -class ProjectTasksArgs implements _i1.JsonConvertible> { - const ProjectTasksArgs({ +class ProjectDboTasksArgs implements _i1.JsonConvertible> { + const ProjectDboTasksArgs({ this.where, this.orderBy, this.cursor, @@ -1074,22 +1086,23 @@ class ProjectTasksArgs implements _i1.JsonConvertible> { this.include, }); - final _i2.TaskWhereInput? where; + final _i2.TaskDboWhereInput? where; - final _i1.PrismaUnion, - _i2.TaskOrderByWithRelationInput>? orderBy; + final _i1.PrismaUnion, + _i2.TaskDboOrderByWithRelationInput>? orderBy; - final _i2.TaskWhereUniqueInput? cursor; + final _i2.TaskDboWhereUniqueInput? cursor; final int? take; final int? skip; - final _i1.PrismaUnion<_i2.TaskScalar, Iterable<_i2.TaskScalar>>? distinct; + final _i1.PrismaUnion<_i2.TaskDboScalar, Iterable<_i2.TaskDboScalar>>? + distinct; - final _i2.TaskSelect? select; + final _i2.TaskDboSelect? select; - final _i2.TaskInclude? include; + final _i2.TaskDboInclude? include; @override Map toJson() => { @@ -1104,9 +1117,9 @@ class ProjectTasksArgs implements _i1.JsonConvertible> { }; } -class ProjectWhereUniqueInput +class ProjectDboWhereUniqueInput implements _i1.JsonConvertible> { - const ProjectWhereUniqueInput({ + const ProjectDboWhereUniqueInput({ this.id, this.AND, this.OR, @@ -1124,13 +1137,13 @@ class ProjectWhereUniqueInput final String? id; - final _i1.PrismaUnion<_i2.ProjectWhereInput, Iterable<_i2.ProjectWhereInput>>? - AND; + final _i1.PrismaUnion<_i2.ProjectDboWhereInput, + Iterable<_i2.ProjectDboWhereInput>>? AND; - final Iterable<_i2.ProjectWhereInput>? OR; + final Iterable<_i2.ProjectDboWhereInput>? OR; - final _i1.PrismaUnion<_i2.ProjectWhereInput, Iterable<_i2.ProjectWhereInput>>? - NOT; + final _i1.PrismaUnion<_i2.ProjectDboWhereInput, + Iterable<_i2.ProjectDboWhereInput>>? NOT; final _i1.PrismaUnion<_i2.StringFilter, String>? name; @@ -1146,11 +1159,12 @@ class ProjectWhereUniqueInput final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - final _i2.TaskListRelationFilter? tasks; + final _i2.TaskDboListRelationFilter? tasks; - final _i2.TimeEntryListRelationFilter? timeEntries; + final _i2.TimeEntryDboListRelationFilter? timeEntries; - final _i1.PrismaUnion<_i2.UserRelationFilter, _i2.UserWhereInput>? user; + final _i1.PrismaUnion<_i2.UserDboScalarRelationFilter, _i2.UserDboWhereInput>? + user; @override Map toJson() => { @@ -1170,16 +1184,16 @@ class ProjectWhereUniqueInput }; } -enum ProjectScalar implements _i1.PrismaEnum, _i1.Reference { - id('id', 'Project'), - name$('name', 'Project'), - description('description', 'Project'), - clientId('clientId', 'Project'), - userId('userId', 'Project'), - createdAt('createdAt', 'Project'), - updatedAt('updatedAt', 'Project'); +enum ProjectDboScalar implements _i1.PrismaEnum, _i1.Reference { + id('id', 'ProjectDbo'), + name$('name', 'ProjectDbo'), + description('description', 'ProjectDbo'), + clientId('clientId', 'ProjectDbo'), + userId('userId', 'ProjectDbo'), + createdAt('createdAt', 'ProjectDbo'), + updatedAt('updatedAt', 'ProjectDbo'); - const ProjectScalar( + const ProjectDboScalar( this.name, this.model, ); @@ -1191,8 +1205,8 @@ enum ProjectScalar implements _i1.PrismaEnum, _i1.Reference { final String model; } -class UserProjectsArgs implements _i1.JsonConvertible> { - const UserProjectsArgs({ +class UserDboProjectsArgs implements _i1.JsonConvertible> { + const UserDboProjectsArgs({ this.where, this.orderBy, this.cursor, @@ -1203,23 +1217,23 @@ class UserProjectsArgs implements _i1.JsonConvertible> { this.include, }); - final _i2.ProjectWhereInput? where; + final _i2.ProjectDboWhereInput? where; - final _i1.PrismaUnion, - _i2.ProjectOrderByWithRelationInput>? orderBy; + final _i1.PrismaUnion, + _i2.ProjectDboOrderByWithRelationInput>? orderBy; - final _i2.ProjectWhereUniqueInput? cursor; + final _i2.ProjectDboWhereUniqueInput? cursor; final int? take; final int? skip; - final _i1.PrismaUnion<_i2.ProjectScalar, Iterable<_i2.ProjectScalar>>? + final _i1.PrismaUnion<_i2.ProjectDboScalar, Iterable<_i2.ProjectDboScalar>>? distinct; - final _i2.ProjectSelect? select; + final _i2.ProjectDboSelect? select; - final _i2.ProjectInclude? include; + final _i2.ProjectDboInclude? include; @override Map toJson() => { @@ -1234,33 +1248,16 @@ class UserProjectsArgs implements _i1.JsonConvertible> { }; } -class TimeEntryUserArgs implements _i1.JsonConvertible> { - const TimeEntryUserArgs({ - this.select, - this.include, - }); - - final _i2.UserSelect? select; - - final _i2.UserInclude? include; - - @override - Map toJson() => { - 'select': select, - 'include': include, - }; -} - -class TimeEntryProjectArgs +class TimeEntryDboUserArgs implements _i1.JsonConvertible> { - const TimeEntryProjectArgs({ + const TimeEntryDboUserArgs({ this.select, this.include, }); - final _i2.ProjectSelect? select; + final _i2.UserDboSelect? select; - final _i2.ProjectInclude? include; + final _i2.UserDboInclude? include; @override Map toJson() => { @@ -1269,15 +1266,33 @@ class TimeEntryProjectArgs }; } -class TimeEntryInclude implements _i1.JsonConvertible> { - const TimeEntryInclude({ +class TimeEntryDboProjectArgs + implements _i1.JsonConvertible> { + const TimeEntryDboProjectArgs({ + this.select, + this.include, + }); + + final _i2.ProjectDboSelect? select; + + final _i2.ProjectDboInclude? include; + + @override + Map toJson() => { + 'select': select, + 'include': include, + }; +} + +class TimeEntryDboInclude implements _i1.JsonConvertible> { + const TimeEntryDboInclude({ this.user, this.project, }); - final _i1.PrismaUnion? user; + final _i1.PrismaUnion? user; - final _i1.PrismaUnion? project; + final _i1.PrismaUnion? project; @override Map toJson() => { @@ -1286,9 +1301,9 @@ class TimeEntryInclude implements _i1.JsonConvertible> { }; } -class TimeEntryOrderByWithRelationInput +class TimeEntryDboOrderByWithRelationInput implements _i1.JsonConvertible> { - const TimeEntryOrderByWithRelationInput({ + const TimeEntryDboOrderByWithRelationInput({ this.id, this.startTime, this.endTime, @@ -1317,9 +1332,9 @@ class TimeEntryOrderByWithRelationInput final _i2.SortOrder? updatedAt; - final _i2.UserOrderByWithRelationInput? user; + final _i2.UserDboOrderByWithRelationInput? user; - final _i2.ProjectOrderByWithRelationInput? project; + final _i2.ProjectDboOrderByWithRelationInput? project; @override Map toJson() => { @@ -1336,9 +1351,9 @@ class TimeEntryOrderByWithRelationInput }; } -class TimeEntryWhereUniqueInput +class TimeEntryDboWhereUniqueInput implements _i1.JsonConvertible> { - const TimeEntryWhereUniqueInput({ + const TimeEntryDboWhereUniqueInput({ this.id, this.AND, this.OR, @@ -1356,15 +1371,13 @@ class TimeEntryWhereUniqueInput final String? id; - final _i1 - .PrismaUnion<_i2.TimeEntryWhereInput, Iterable<_i2.TimeEntryWhereInput>>? - AND; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereInput, + Iterable<_i2.TimeEntryDboWhereInput>>? AND; - final Iterable<_i2.TimeEntryWhereInput>? OR; + final Iterable<_i2.TimeEntryDboWhereInput>? OR; - final _i1 - .PrismaUnion<_i2.TimeEntryWhereInput, Iterable<_i2.TimeEntryWhereInput>>? - NOT; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereInput, + Iterable<_i2.TimeEntryDboWhereInput>>? NOT; final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? startTime; @@ -1381,10 +1394,11 @@ class TimeEntryWhereUniqueInput final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - final _i1.PrismaUnion<_i2.UserRelationFilter, _i2.UserWhereInput>? user; + final _i1.PrismaUnion<_i2.UserDboScalarRelationFilter, _i2.UserDboWhereInput>? + user; - final _i1.PrismaUnion<_i2.ProjectRelationFilter, _i2.ProjectWhereInput>? - project; + final _i1.PrismaUnion<_i2.ProjectDboScalarRelationFilter, + _i2.ProjectDboWhereInput>? project; @override Map toJson() => { @@ -1404,17 +1418,17 @@ class TimeEntryWhereUniqueInput }; } -enum TimeEntryScalar implements _i1.PrismaEnum, _i1.Reference { - id('id', 'TimeEntry'), - startTime('startTime', 'TimeEntry'), - endTime('endTime', 'TimeEntry'), - description('description', 'TimeEntry'), - userId('userId', 'TimeEntry'), - projectId('projectId', 'TimeEntry'), - createdAt('createdAt', 'TimeEntry'), - updatedAt('updatedAt', 'TimeEntry'); +enum TimeEntryDboScalar implements _i1.PrismaEnum, _i1.Reference { + id('id', 'TimeEntryDbo'), + startTime('startTime', 'TimeEntryDbo'), + endTime('endTime', 'TimeEntryDbo'), + description('description', 'TimeEntryDbo'), + userId('userId', 'TimeEntryDbo'), + projectId('projectId', 'TimeEntryDbo'), + createdAt('createdAt', 'TimeEntryDbo'), + updatedAt('updatedAt', 'TimeEntryDbo'); - const TimeEntryScalar( + const TimeEntryDboScalar( this.name, this.model, ); @@ -1426,8 +1440,9 @@ enum TimeEntryScalar implements _i1.PrismaEnum, _i1.Reference { final String model; } -class UserTimeEntriesArgs implements _i1.JsonConvertible> { - const UserTimeEntriesArgs({ +class UserDboTimeEntriesArgs + implements _i1.JsonConvertible> { + const UserDboTimeEntriesArgs({ this.where, this.orderBy, this.cursor, @@ -1438,23 +1453,24 @@ class UserTimeEntriesArgs implements _i1.JsonConvertible> { this.include, }); - final _i2.TimeEntryWhereInput? where; + final _i2.TimeEntryDboWhereInput? where; - final _i1.PrismaUnion, - _i2.TimeEntryOrderByWithRelationInput>? orderBy; + final _i1.PrismaUnion, + _i2.TimeEntryDboOrderByWithRelationInput>? orderBy; - final _i2.TimeEntryWhereUniqueInput? cursor; + final _i2.TimeEntryDboWhereUniqueInput? cursor; final int? take; final int? skip; - final _i1.PrismaUnion<_i2.TimeEntryScalar, Iterable<_i2.TimeEntryScalar>>? + final _i1 + .PrismaUnion<_i2.TimeEntryDboScalar, Iterable<_i2.TimeEntryDboScalar>>? distinct; - final _i2.TimeEntrySelect? select; + final _i2.TimeEntryDboSelect? select; - final _i2.TimeEntryInclude? include; + final _i2.TimeEntryDboInclude? include; @override Map toJson() => { @@ -1469,9 +1485,9 @@ class UserTimeEntriesArgs implements _i1.JsonConvertible> { }; } -class UserCountOutputTypeSelect +class UserDboCountOutputTypeSelect implements _i1.JsonConvertible> { - const UserCountOutputTypeSelect({ + const UserDboCountOutputTypeSelect({ this.projects, this.timeEntries, }); @@ -1487,27 +1503,27 @@ class UserCountOutputTypeSelect }; } -class UserCountArgs implements _i1.JsonConvertible> { - const UserCountArgs({this.select}); +class UserDboCountArgs implements _i1.JsonConvertible> { + const UserDboCountArgs({this.select}); - final _i2.UserCountOutputTypeSelect? select; + final _i2.UserDboCountOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class UserInclude implements _i1.JsonConvertible> { - const UserInclude({ +class UserDboInclude implements _i1.JsonConvertible> { + const UserDboInclude({ this.projects, this.timeEntries, this.$count, }); - final _i1.PrismaUnion? projects; + final _i1.PrismaUnion? projects; - final _i1.PrismaUnion? timeEntries; + final _i1.PrismaUnion? timeEntries; - final _i1.PrismaUnion? $count; + final _i1.PrismaUnion? $count; @override Map toJson() => { @@ -1517,8 +1533,8 @@ class UserInclude implements _i1.JsonConvertible> { }; } -class TimeEntrySelect implements _i1.JsonConvertible> { - const TimeEntrySelect({ +class TimeEntryDboSelect implements _i1.JsonConvertible> { + const TimeEntryDboSelect({ this.id, this.startTime, this.endTime, @@ -1547,9 +1563,9 @@ class TimeEntrySelect implements _i1.JsonConvertible> { final bool? updatedAt; - final _i1.PrismaUnion? user; + final _i1.PrismaUnion? user; - final _i1.PrismaUnion? project; + final _i1.PrismaUnion? project; @override Map toJson() => { @@ -1566,9 +1582,9 @@ class TimeEntrySelect implements _i1.JsonConvertible> { }; } -class ProjectTimeEntriesArgs +class ProjectDboTimeEntriesArgs implements _i1.JsonConvertible> { - const ProjectTimeEntriesArgs({ + const ProjectDboTimeEntriesArgs({ this.where, this.orderBy, this.cursor, @@ -1579,23 +1595,24 @@ class ProjectTimeEntriesArgs this.include, }); - final _i2.TimeEntryWhereInput? where; + final _i2.TimeEntryDboWhereInput? where; - final _i1.PrismaUnion, - _i2.TimeEntryOrderByWithRelationInput>? orderBy; + final _i1.PrismaUnion, + _i2.TimeEntryDboOrderByWithRelationInput>? orderBy; - final _i2.TimeEntryWhereUniqueInput? cursor; + final _i2.TimeEntryDboWhereUniqueInput? cursor; final int? take; final int? skip; - final _i1.PrismaUnion<_i2.TimeEntryScalar, Iterable<_i2.TimeEntryScalar>>? + final _i1 + .PrismaUnion<_i2.TimeEntryDboScalar, Iterable<_i2.TimeEntryDboScalar>>? distinct; - final _i2.TimeEntrySelect? select; + final _i2.TimeEntryDboSelect? select; - final _i2.TimeEntryInclude? include; + final _i2.TimeEntryDboInclude? include; @override Map toJson() => { @@ -1610,15 +1627,15 @@ class ProjectTimeEntriesArgs }; } -class ProjectUserArgs implements _i1.JsonConvertible> { - const ProjectUserArgs({ +class ProjectDboUserArgs implements _i1.JsonConvertible> { + const ProjectDboUserArgs({ this.select, this.include, }); - final _i2.UserSelect? select; + final _i2.UserDboSelect? select; - final _i2.UserInclude? include; + final _i2.UserDboInclude? include; @override Map toJson() => { @@ -1627,9 +1644,9 @@ class ProjectUserArgs implements _i1.JsonConvertible> { }; } -class ProjectCountOutputTypeSelect +class ProjectDboCountOutputTypeSelect implements _i1.JsonConvertible> { - const ProjectCountOutputTypeSelect({ + const ProjectDboCountOutputTypeSelect({ this.tasks, this.timeEntries, }); @@ -1645,30 +1662,30 @@ class ProjectCountOutputTypeSelect }; } -class ProjectCountArgs implements _i1.JsonConvertible> { - const ProjectCountArgs({this.select}); +class ProjectDboCountArgs implements _i1.JsonConvertible> { + const ProjectDboCountArgs({this.select}); - final _i2.ProjectCountOutputTypeSelect? select; + final _i2.ProjectDboCountOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class ProjectInclude implements _i1.JsonConvertible> { - const ProjectInclude({ +class ProjectDboInclude implements _i1.JsonConvertible> { + const ProjectDboInclude({ this.tasks, this.timeEntries, this.user, this.$count, }); - final _i1.PrismaUnion? tasks; + final _i1.PrismaUnion? tasks; - final _i1.PrismaUnion? timeEntries; + final _i1.PrismaUnion? timeEntries; - final _i1.PrismaUnion? user; + final _i1.PrismaUnion? user; - final _i1.PrismaUnion? $count; + final _i1.PrismaUnion? $count; @override Map toJson() => { @@ -1679,8 +1696,8 @@ class ProjectInclude implements _i1.JsonConvertible> { }; } -class TaskSelect implements _i1.JsonConvertible> { - const TaskSelect({ +class TaskDboSelect implements _i1.JsonConvertible> { + const TaskDboSelect({ this.id, this.name, this.description, @@ -1702,7 +1719,7 @@ class TaskSelect implements _i1.JsonConvertible> { final bool? updatedAt; - final _i1.PrismaUnion? project; + final _i1.PrismaUnion? project; @override Map toJson() => { @@ -1716,8 +1733,8 @@ class TaskSelect implements _i1.JsonConvertible> { }; } -class ProjectSelect implements _i1.JsonConvertible> { - const ProjectSelect({ +class ProjectDboSelect implements _i1.JsonConvertible> { + const ProjectDboSelect({ this.id, this.name, this.description, @@ -1745,13 +1762,13 @@ class ProjectSelect implements _i1.JsonConvertible> { final bool? updatedAt; - final _i1.PrismaUnion? tasks; + final _i1.PrismaUnion? tasks; - final _i1.PrismaUnion? timeEntries; + final _i1.PrismaUnion? timeEntries; - final _i1.PrismaUnion? user; + final _i1.PrismaUnion? user; - final _i1.PrismaUnion? $count; + final _i1.PrismaUnion? $count; @override Map toJson() => { @@ -1769,8 +1786,8 @@ class ProjectSelect implements _i1.JsonConvertible> { }; } -class UserSelect implements _i1.JsonConvertible> { - const UserSelect({ +class UserDboSelect implements _i1.JsonConvertible> { + const UserDboSelect({ this.id, this.name, this.email, @@ -1794,11 +1811,11 @@ class UserSelect implements _i1.JsonConvertible> { final bool? updatedAt; - final _i1.PrismaUnion? projects; + final _i1.PrismaUnion? projects; - final _i1.PrismaUnion? timeEntries; + final _i1.PrismaUnion? timeEntries; - final _i1.PrismaUnion? $count; + final _i1.PrismaUnion? $count; @override Map toJson() => { @@ -1814,15 +1831,15 @@ class UserSelect implements _i1.JsonConvertible> { }; } -enum UserScalar implements _i1.PrismaEnum, _i1.Reference { - id('id', 'User'), - name$('name', 'User'), - email('email', 'User'), - password('password', 'User'), - createdAt('createdAt', 'User'), - updatedAt('updatedAt', 'User'); +enum UserDboScalar implements _i1.PrismaEnum, _i1.Reference { + id('id', 'UserDbo'), + name$('name', 'UserDbo'), + email('email', 'UserDbo'), + password('password', 'UserDbo'), + createdAt('createdAt', 'UserDbo'), + updatedAt('updatedAt', 'UserDbo'); - const UserScalar( + const UserDboScalar( this.name, this.model, ); @@ -1834,9 +1851,9 @@ enum UserScalar implements _i1.PrismaEnum, _i1.Reference { final String model; } -class TaskCreateWithoutProjectInput +class TaskDboCreateWithoutProjectInput implements _i1.JsonConvertible> { - const TaskCreateWithoutProjectInput({ + const TaskDboCreateWithoutProjectInput({ this.id, required this.name, this.description, @@ -1864,9 +1881,9 @@ class TaskCreateWithoutProjectInput }; } -class TaskUncheckedCreateWithoutProjectInput +class TaskDboUncheckedCreateWithoutProjectInput implements _i1.JsonConvertible> { - const TaskUncheckedCreateWithoutProjectInput({ + const TaskDboUncheckedCreateWithoutProjectInput({ this.id, required this.name, this.description, @@ -1894,17 +1911,17 @@ class TaskUncheckedCreateWithoutProjectInput }; } -class TaskCreateOrConnectWithoutProjectInput +class TaskDboCreateOrConnectWithoutProjectInput implements _i1.JsonConvertible> { - const TaskCreateOrConnectWithoutProjectInput({ + const TaskDboCreateOrConnectWithoutProjectInput({ required this.where, required this.create, }); - final _i2.TaskWhereUniqueInput where; + final _i2.TaskDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.TaskCreateWithoutProjectInput, - _i2.TaskUncheckedCreateWithoutProjectInput> create; + final _i1.PrismaUnion<_i2.TaskDboCreateWithoutProjectInput, + _i2.TaskDboUncheckedCreateWithoutProjectInput> create; @override Map toJson() => { @@ -1913,9 +1930,9 @@ class TaskCreateOrConnectWithoutProjectInput }; } -class TaskCreateManyProjectInput +class TaskDboCreateManyProjectInput implements _i1.JsonConvertible> { - const TaskCreateManyProjectInput({ + const TaskDboCreateManyProjectInput({ this.id, required this.name, this.description, @@ -1943,15 +1960,15 @@ class TaskCreateManyProjectInput }; } -class TaskCreateManyProjectInputEnvelope +class TaskDboCreateManyProjectInputEnvelope implements _i1.JsonConvertible> { - const TaskCreateManyProjectInputEnvelope({ + const TaskDboCreateManyProjectInputEnvelope({ required this.data, this.skipDuplicates, }); - final _i1.PrismaUnion<_i2.TaskCreateManyProjectInput, - Iterable<_i2.TaskCreateManyProjectInput>> data; + final _i1.PrismaUnion<_i2.TaskDboCreateManyProjectInput, + Iterable<_i2.TaskDboCreateManyProjectInput>> data; final bool? skipDuplicates; @@ -1962,9 +1979,9 @@ class TaskCreateManyProjectInputEnvelope }; } -class TaskCreateNestedManyWithoutProjectInput +class TaskDboCreateNestedManyWithoutProjectInput implements _i1.JsonConvertible> { - const TaskCreateNestedManyWithoutProjectInput({ + const TaskDboCreateNestedManyWithoutProjectInput({ this.create, this.connectOrCreate, this.createMany, @@ -1972,19 +1989,20 @@ class TaskCreateNestedManyWithoutProjectInput }); final _i1.PrismaUnion< - _i2.TaskCreateWithoutProjectInput, - _i1.PrismaUnion< - Iterable<_i2.TaskCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TaskUncheckedCreateWithoutProjectInput, - Iterable<_i2.TaskUncheckedCreateWithoutProjectInput>>>>? create; + _i2.TaskDboCreateWithoutProjectInput, + _i1.PrismaUnion< + Iterable<_i2.TaskDboCreateWithoutProjectInput>, + _i1.PrismaUnion<_i2.TaskDboUncheckedCreateWithoutProjectInput, + Iterable<_i2.TaskDboUncheckedCreateWithoutProjectInput>>>>? + create; - final _i1.PrismaUnion<_i2.TaskCreateOrConnectWithoutProjectInput, - Iterable<_i2.TaskCreateOrConnectWithoutProjectInput>>? connectOrCreate; + final _i1.PrismaUnion<_i2.TaskDboCreateOrConnectWithoutProjectInput, + Iterable<_i2.TaskDboCreateOrConnectWithoutProjectInput>>? connectOrCreate; - final _i2.TaskCreateManyProjectInputEnvelope? createMany; + final _i2.TaskDboCreateManyProjectInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.TaskDboWhereUniqueInput, + Iterable<_i2.TaskDboWhereUniqueInput>>? connect; @override Map toJson() => { @@ -1995,9 +2013,9 @@ class TaskCreateNestedManyWithoutProjectInput }; } -class UserCreateWithoutTimeEntriesInput +class UserDboCreateWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const UserCreateWithoutTimeEntriesInput({ + const UserDboCreateWithoutTimeEntriesInput({ this.id, required this.name, required this.email, @@ -2019,7 +2037,7 @@ class UserCreateWithoutTimeEntriesInput final DateTime? updatedAt; - final _i2.ProjectCreateNestedManyWithoutUserInput? projects; + final _i2.ProjectDboCreateNestedManyWithoutUserInput? projects; @override Map toJson() => { @@ -2033,9 +2051,9 @@ class UserCreateWithoutTimeEntriesInput }; } -class TaskUncheckedCreateNestedManyWithoutProjectInput +class TaskDboUncheckedCreateNestedManyWithoutProjectInput implements _i1.JsonConvertible> { - const TaskUncheckedCreateNestedManyWithoutProjectInput({ + const TaskDboUncheckedCreateNestedManyWithoutProjectInput({ this.create, this.connectOrCreate, this.createMany, @@ -2043,19 +2061,20 @@ class TaskUncheckedCreateNestedManyWithoutProjectInput }); final _i1.PrismaUnion< - _i2.TaskCreateWithoutProjectInput, - _i1.PrismaUnion< - Iterable<_i2.TaskCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TaskUncheckedCreateWithoutProjectInput, - Iterable<_i2.TaskUncheckedCreateWithoutProjectInput>>>>? create; + _i2.TaskDboCreateWithoutProjectInput, + _i1.PrismaUnion< + Iterable<_i2.TaskDboCreateWithoutProjectInput>, + _i1.PrismaUnion<_i2.TaskDboUncheckedCreateWithoutProjectInput, + Iterable<_i2.TaskDboUncheckedCreateWithoutProjectInput>>>>? + create; - final _i1.PrismaUnion<_i2.TaskCreateOrConnectWithoutProjectInput, - Iterable<_i2.TaskCreateOrConnectWithoutProjectInput>>? connectOrCreate; + final _i1.PrismaUnion<_i2.TaskDboCreateOrConnectWithoutProjectInput, + Iterable<_i2.TaskDboCreateOrConnectWithoutProjectInput>>? connectOrCreate; - final _i2.TaskCreateManyProjectInputEnvelope? createMany; + final _i2.TaskDboCreateManyProjectInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.TaskDboWhereUniqueInput, + Iterable<_i2.TaskDboWhereUniqueInput>>? connect; @override Map toJson() => { @@ -2066,9 +2085,9 @@ class TaskUncheckedCreateNestedManyWithoutProjectInput }; } -class TimeEntryUncheckedCreateWithoutProjectInput +class TimeEntryDboUncheckedCreateWithoutProjectInput implements _i1.JsonConvertible> { - const TimeEntryUncheckedCreateWithoutProjectInput({ + const TimeEntryDboUncheckedCreateWithoutProjectInput({ this.id, required this.startTime, required this.endTime, @@ -2104,17 +2123,17 @@ class TimeEntryUncheckedCreateWithoutProjectInput }; } -class TimeEntryCreateOrConnectWithoutProjectInput +class TimeEntryDboCreateOrConnectWithoutProjectInput implements _i1.JsonConvertible> { - const TimeEntryCreateOrConnectWithoutProjectInput({ + const TimeEntryDboCreateOrConnectWithoutProjectInput({ required this.where, required this.create, }); - final _i2.TimeEntryWhereUniqueInput where; + final _i2.TimeEntryDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.TimeEntryCreateWithoutProjectInput, - _i2.TimeEntryUncheckedCreateWithoutProjectInput> create; + final _i1.PrismaUnion<_i2.TimeEntryDboCreateWithoutProjectInput, + _i2.TimeEntryDboUncheckedCreateWithoutProjectInput> create; @override Map toJson() => { @@ -2123,9 +2142,9 @@ class TimeEntryCreateOrConnectWithoutProjectInput }; } -class TimeEntryCreateManyProjectInput +class TimeEntryDboCreateManyProjectInput implements _i1.JsonConvertible> { - const TimeEntryCreateManyProjectInput({ + const TimeEntryDboCreateManyProjectInput({ this.id, required this.startTime, required this.endTime, @@ -2161,15 +2180,15 @@ class TimeEntryCreateManyProjectInput }; } -class TimeEntryCreateManyProjectInputEnvelope +class TimeEntryDboCreateManyProjectInputEnvelope implements _i1.JsonConvertible> { - const TimeEntryCreateManyProjectInputEnvelope({ + const TimeEntryDboCreateManyProjectInputEnvelope({ required this.data, this.skipDuplicates, }); - final _i1.PrismaUnion<_i2.TimeEntryCreateManyProjectInput, - Iterable<_i2.TimeEntryCreateManyProjectInput>> data; + final _i1.PrismaUnion<_i2.TimeEntryDboCreateManyProjectInput, + Iterable<_i2.TimeEntryDboCreateManyProjectInput>> data; final bool? skipDuplicates; @@ -2180,9 +2199,9 @@ class TimeEntryCreateManyProjectInputEnvelope }; } -class TimeEntryUncheckedCreateNestedManyWithoutProjectInput +class TimeEntryDboUncheckedCreateNestedManyWithoutProjectInput implements _i1.JsonConvertible> { - const TimeEntryUncheckedCreateNestedManyWithoutProjectInput({ + const TimeEntryDboUncheckedCreateNestedManyWithoutProjectInput({ this.create, this.connectOrCreate, this.createMany, @@ -2190,21 +2209,23 @@ class TimeEntryUncheckedCreateNestedManyWithoutProjectInput }); final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutProjectInput, + _i2.TimeEntryDboCreateWithoutProjectInput, _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutProjectInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutProjectInput>>>>? + Iterable<_i2.TimeEntryDboCreateWithoutProjectInput>, + _i1.PrismaUnion< + _i2.TimeEntryDboUncheckedCreateWithoutProjectInput, + Iterable< + _i2.TimeEntryDboUncheckedCreateWithoutProjectInput>>>>? create; - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutProjectInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutProjectInput>>? + final _i1.PrismaUnion<_i2.TimeEntryDboCreateOrConnectWithoutProjectInput, + Iterable<_i2.TimeEntryDboCreateOrConnectWithoutProjectInput>>? connectOrCreate; - final _i2.TimeEntryCreateManyProjectInputEnvelope? createMany; + final _i2.TimeEntryDboCreateManyProjectInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? connect; @override Map toJson() => { @@ -2215,9 +2236,9 @@ class TimeEntryUncheckedCreateNestedManyWithoutProjectInput }; } -class ProjectUncheckedCreateWithoutUserInput +class ProjectDboUncheckedCreateWithoutUserInput implements _i1.JsonConvertible> { - const ProjectUncheckedCreateWithoutUserInput({ + const ProjectDboUncheckedCreateWithoutUserInput({ this.id, required this.name, this.description, @@ -2240,9 +2261,10 @@ class ProjectUncheckedCreateWithoutUserInput final DateTime? updatedAt; - final _i2.TaskUncheckedCreateNestedManyWithoutProjectInput? tasks; + final _i2.TaskDboUncheckedCreateNestedManyWithoutProjectInput? tasks; - final _i2.TimeEntryUncheckedCreateNestedManyWithoutProjectInput? timeEntries; + final _i2.TimeEntryDboUncheckedCreateNestedManyWithoutProjectInput? + timeEntries; @override Map toJson() => { @@ -2257,17 +2279,17 @@ class ProjectUncheckedCreateWithoutUserInput }; } -class ProjectCreateOrConnectWithoutUserInput +class ProjectDboCreateOrConnectWithoutUserInput implements _i1.JsonConvertible> { - const ProjectCreateOrConnectWithoutUserInput({ + const ProjectDboCreateOrConnectWithoutUserInput({ required this.where, required this.create, }); - final _i2.ProjectWhereUniqueInput where; + final _i2.ProjectDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.ProjectCreateWithoutUserInput, - _i2.ProjectUncheckedCreateWithoutUserInput> create; + final _i1.PrismaUnion<_i2.ProjectDboCreateWithoutUserInput, + _i2.ProjectDboUncheckedCreateWithoutUserInput> create; @override Map toJson() => { @@ -2276,9 +2298,9 @@ class ProjectCreateOrConnectWithoutUserInput }; } -class ProjectCreateManyUserInput +class ProjectDboCreateManyUserInput implements _i1.JsonConvertible> { - const ProjectCreateManyUserInput({ + const ProjectDboCreateManyUserInput({ this.id, required this.name, this.description, @@ -2310,15 +2332,15 @@ class ProjectCreateManyUserInput }; } -class ProjectCreateManyUserInputEnvelope +class ProjectDboCreateManyUserInputEnvelope implements _i1.JsonConvertible> { - const ProjectCreateManyUserInputEnvelope({ + const ProjectDboCreateManyUserInputEnvelope({ required this.data, this.skipDuplicates, }); - final _i1.PrismaUnion<_i2.ProjectCreateManyUserInput, - Iterable<_i2.ProjectCreateManyUserInput>> data; + final _i1.PrismaUnion<_i2.ProjectDboCreateManyUserInput, + Iterable<_i2.ProjectDboCreateManyUserInput>> data; final bool? skipDuplicates; @@ -2329,9 +2351,9 @@ class ProjectCreateManyUserInputEnvelope }; } -class ProjectUncheckedCreateNestedManyWithoutUserInput +class ProjectDboUncheckedCreateNestedManyWithoutUserInput implements _i1.JsonConvertible> { - const ProjectUncheckedCreateNestedManyWithoutUserInput({ + const ProjectDboUncheckedCreateNestedManyWithoutUserInput({ this.create, this.connectOrCreate, this.createMany, @@ -2339,19 +2361,20 @@ class ProjectUncheckedCreateNestedManyWithoutUserInput }); final _i1.PrismaUnion< - _i2.ProjectCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.ProjectCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.ProjectUncheckedCreateWithoutUserInput, - Iterable<_i2.ProjectUncheckedCreateWithoutUserInput>>>>? create; + _i2.ProjectDboCreateWithoutUserInput, + _i1.PrismaUnion< + Iterable<_i2.ProjectDboCreateWithoutUserInput>, + _i1.PrismaUnion<_i2.ProjectDboUncheckedCreateWithoutUserInput, + Iterable<_i2.ProjectDboUncheckedCreateWithoutUserInput>>>>? + create; - final _i1.PrismaUnion<_i2.ProjectCreateOrConnectWithoutUserInput, - Iterable<_i2.ProjectCreateOrConnectWithoutUserInput>>? connectOrCreate; + final _i1.PrismaUnion<_i2.ProjectDboCreateOrConnectWithoutUserInput, + Iterable<_i2.ProjectDboCreateOrConnectWithoutUserInput>>? connectOrCreate; - final _i2.ProjectCreateManyUserInputEnvelope? createMany; + final _i2.ProjectDboCreateManyUserInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.ProjectDboWhereUniqueInput, + Iterable<_i2.ProjectDboWhereUniqueInput>>? connect; @override Map toJson() => { @@ -2362,9 +2385,9 @@ class ProjectUncheckedCreateNestedManyWithoutUserInput }; } -class UserUncheckedCreateWithoutTimeEntriesInput +class UserDboUncheckedCreateWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const UserUncheckedCreateWithoutTimeEntriesInput({ + const UserDboUncheckedCreateWithoutTimeEntriesInput({ this.id, required this.name, required this.email, @@ -2386,7 +2409,7 @@ class UserUncheckedCreateWithoutTimeEntriesInput final DateTime? updatedAt; - final _i2.ProjectUncheckedCreateNestedManyWithoutUserInput? projects; + final _i2.ProjectDboUncheckedCreateNestedManyWithoutUserInput? projects; @override Map toJson() => { @@ -2400,17 +2423,17 @@ class UserUncheckedCreateWithoutTimeEntriesInput }; } -class UserCreateOrConnectWithoutTimeEntriesInput +class UserDboCreateOrConnectWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const UserCreateOrConnectWithoutTimeEntriesInput({ + const UserDboCreateOrConnectWithoutTimeEntriesInput({ required this.where, required this.create, }); - final _i2.UserWhereUniqueInput where; + final _i2.UserDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.UserCreateWithoutTimeEntriesInput, - _i2.UserUncheckedCreateWithoutTimeEntriesInput> create; + final _i1.PrismaUnion<_i2.UserDboCreateWithoutTimeEntriesInput, + _i2.UserDboUncheckedCreateWithoutTimeEntriesInput> create; @override Map toJson() => { @@ -2419,20 +2442,20 @@ class UserCreateOrConnectWithoutTimeEntriesInput }; } -class UserCreateNestedOneWithoutTimeEntriesInput +class UserDboCreateNestedOneWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const UserCreateNestedOneWithoutTimeEntriesInput({ + const UserDboCreateNestedOneWithoutTimeEntriesInput({ this.create, this.connectOrCreate, this.connect, }); - final _i1.PrismaUnion<_i2.UserCreateWithoutTimeEntriesInput, - _i2.UserUncheckedCreateWithoutTimeEntriesInput>? create; + final _i1.PrismaUnion<_i2.UserDboCreateWithoutTimeEntriesInput, + _i2.UserDboUncheckedCreateWithoutTimeEntriesInput>? create; - final _i2.UserCreateOrConnectWithoutTimeEntriesInput? connectOrCreate; + final _i2.UserDboCreateOrConnectWithoutTimeEntriesInput? connectOrCreate; - final _i2.UserWhereUniqueInput? connect; + final _i2.UserDboWhereUniqueInput? connect; @override Map toJson() => { @@ -2442,9 +2465,9 @@ class UserCreateNestedOneWithoutTimeEntriesInput }; } -class TimeEntryCreateWithoutProjectInput +class TimeEntryDboCreateWithoutProjectInput implements _i1.JsonConvertible> { - const TimeEntryCreateWithoutProjectInput({ + const TimeEntryDboCreateWithoutProjectInput({ this.id, required this.startTime, required this.endTime, @@ -2466,7 +2489,7 @@ class TimeEntryCreateWithoutProjectInput final DateTime? updatedAt; - final _i2.UserCreateNestedOneWithoutTimeEntriesInput user; + final _i2.UserDboCreateNestedOneWithoutTimeEntriesInput user; @override Map toJson() => { @@ -2480,9 +2503,9 @@ class TimeEntryCreateWithoutProjectInput }; } -class TimeEntryCreateNestedManyWithoutProjectInput +class TimeEntryDboCreateNestedManyWithoutProjectInput implements _i1.JsonConvertible> { - const TimeEntryCreateNestedManyWithoutProjectInput({ + const TimeEntryDboCreateNestedManyWithoutProjectInput({ this.create, this.connectOrCreate, this.createMany, @@ -2490,21 +2513,23 @@ class TimeEntryCreateNestedManyWithoutProjectInput }); final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutProjectInput, + _i2.TimeEntryDboCreateWithoutProjectInput, _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutProjectInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutProjectInput>>>>? + Iterable<_i2.TimeEntryDboCreateWithoutProjectInput>, + _i1.PrismaUnion< + _i2.TimeEntryDboUncheckedCreateWithoutProjectInput, + Iterable< + _i2.TimeEntryDboUncheckedCreateWithoutProjectInput>>>>? create; - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutProjectInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutProjectInput>>? + final _i1.PrismaUnion<_i2.TimeEntryDboCreateOrConnectWithoutProjectInput, + Iterable<_i2.TimeEntryDboCreateOrConnectWithoutProjectInput>>? connectOrCreate; - final _i2.TimeEntryCreateManyProjectInputEnvelope? createMany; + final _i2.TimeEntryDboCreateManyProjectInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? connect; @override Map toJson() => { @@ -2515,9 +2540,9 @@ class TimeEntryCreateNestedManyWithoutProjectInput }; } -class ProjectCreateWithoutUserInput +class ProjectDboCreateWithoutUserInput implements _i1.JsonConvertible> { - const ProjectCreateWithoutUserInput({ + const ProjectDboCreateWithoutUserInput({ this.id, required this.name, this.description, @@ -2540,9 +2565,9 @@ class ProjectCreateWithoutUserInput final DateTime? updatedAt; - final _i2.TaskCreateNestedManyWithoutProjectInput? tasks; + final _i2.TaskDboCreateNestedManyWithoutProjectInput? tasks; - final _i2.TimeEntryCreateNestedManyWithoutProjectInput? timeEntries; + final _i2.TimeEntryDboCreateNestedManyWithoutProjectInput? timeEntries; @override Map toJson() => { @@ -2557,9 +2582,9 @@ class ProjectCreateWithoutUserInput }; } -class ProjectCreateNestedManyWithoutUserInput +class ProjectDboCreateNestedManyWithoutUserInput implements _i1.JsonConvertible> { - const ProjectCreateNestedManyWithoutUserInput({ + const ProjectDboCreateNestedManyWithoutUserInput({ this.create, this.connectOrCreate, this.createMany, @@ -2567,19 +2592,20 @@ class ProjectCreateNestedManyWithoutUserInput }); final _i1.PrismaUnion< - _i2.ProjectCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.ProjectCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.ProjectUncheckedCreateWithoutUserInput, - Iterable<_i2.ProjectUncheckedCreateWithoutUserInput>>>>? create; + _i2.ProjectDboCreateWithoutUserInput, + _i1.PrismaUnion< + Iterable<_i2.ProjectDboCreateWithoutUserInput>, + _i1.PrismaUnion<_i2.ProjectDboUncheckedCreateWithoutUserInput, + Iterable<_i2.ProjectDboUncheckedCreateWithoutUserInput>>>>? + create; - final _i1.PrismaUnion<_i2.ProjectCreateOrConnectWithoutUserInput, - Iterable<_i2.ProjectCreateOrConnectWithoutUserInput>>? connectOrCreate; + final _i1.PrismaUnion<_i2.ProjectDboCreateOrConnectWithoutUserInput, + Iterable<_i2.ProjectDboCreateOrConnectWithoutUserInput>>? connectOrCreate; - final _i2.ProjectCreateManyUserInputEnvelope? createMany; + final _i2.ProjectDboCreateManyUserInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.ProjectDboWhereUniqueInput, + Iterable<_i2.ProjectDboWhereUniqueInput>>? connect; @override Map toJson() => { @@ -2590,9 +2616,9 @@ class ProjectCreateNestedManyWithoutUserInput }; } -class UserCreateWithoutProjectsInput +class UserDboCreateWithoutProjectsInput implements _i1.JsonConvertible> { - const UserCreateWithoutProjectsInput({ + const UserDboCreateWithoutProjectsInput({ this.id, required this.name, required this.email, @@ -2614,7 +2640,7 @@ class UserCreateWithoutProjectsInput final DateTime? updatedAt; - final _i2.TimeEntryCreateNestedManyWithoutUserInput? timeEntries; + final _i2.TimeEntryDboCreateNestedManyWithoutUserInput? timeEntries; @override Map toJson() => { @@ -2628,9 +2654,9 @@ class UserCreateWithoutProjectsInput }; } -class TimeEntryUncheckedCreateWithoutUserInput +class TimeEntryDboUncheckedCreateWithoutUserInput implements _i1.JsonConvertible> { - const TimeEntryUncheckedCreateWithoutUserInput({ + const TimeEntryDboUncheckedCreateWithoutUserInput({ this.id, required this.startTime, required this.endTime, @@ -2666,17 +2692,17 @@ class TimeEntryUncheckedCreateWithoutUserInput }; } -class TimeEntryCreateOrConnectWithoutUserInput +class TimeEntryDboCreateOrConnectWithoutUserInput implements _i1.JsonConvertible> { - const TimeEntryCreateOrConnectWithoutUserInput({ + const TimeEntryDboCreateOrConnectWithoutUserInput({ required this.where, required this.create, }); - final _i2.TimeEntryWhereUniqueInput where; + final _i2.TimeEntryDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.TimeEntryCreateWithoutUserInput, - _i2.TimeEntryUncheckedCreateWithoutUserInput> create; + final _i1.PrismaUnion<_i2.TimeEntryDboCreateWithoutUserInput, + _i2.TimeEntryDboUncheckedCreateWithoutUserInput> create; @override Map toJson() => { @@ -2685,9 +2711,9 @@ class TimeEntryCreateOrConnectWithoutUserInput }; } -class TimeEntryCreateManyUserInput +class TimeEntryDboCreateManyUserInput implements _i1.JsonConvertible> { - const TimeEntryCreateManyUserInput({ + const TimeEntryDboCreateManyUserInput({ this.id, required this.startTime, required this.endTime, @@ -2723,15 +2749,15 @@ class TimeEntryCreateManyUserInput }; } -class TimeEntryCreateManyUserInputEnvelope +class TimeEntryDboCreateManyUserInputEnvelope implements _i1.JsonConvertible> { - const TimeEntryCreateManyUserInputEnvelope({ + const TimeEntryDboCreateManyUserInputEnvelope({ required this.data, this.skipDuplicates, }); - final _i1.PrismaUnion<_i2.TimeEntryCreateManyUserInput, - Iterable<_i2.TimeEntryCreateManyUserInput>> data; + final _i1.PrismaUnion<_i2.TimeEntryDboCreateManyUserInput, + Iterable<_i2.TimeEntryDboCreateManyUserInput>> data; final bool? skipDuplicates; @@ -2742,9 +2768,9 @@ class TimeEntryCreateManyUserInputEnvelope }; } -class TimeEntryUncheckedCreateNestedManyWithoutUserInput +class TimeEntryDboUncheckedCreateNestedManyWithoutUserInput implements _i1.JsonConvertible> { - const TimeEntryUncheckedCreateNestedManyWithoutUserInput({ + const TimeEntryDboUncheckedCreateNestedManyWithoutUserInput({ this.create, this.connectOrCreate, this.createMany, @@ -2752,19 +2778,21 @@ class TimeEntryUncheckedCreateNestedManyWithoutUserInput }); final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutUserInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutUserInput>>>>? create; + _i2.TimeEntryDboCreateWithoutUserInput, + _i1.PrismaUnion< + Iterable<_i2.TimeEntryDboCreateWithoutUserInput>, + _i1.PrismaUnion<_i2.TimeEntryDboUncheckedCreateWithoutUserInput, + Iterable<_i2.TimeEntryDboUncheckedCreateWithoutUserInput>>>>? + create; - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutUserInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutUserInput>>? connectOrCreate; + final _i1.PrismaUnion<_i2.TimeEntryDboCreateOrConnectWithoutUserInput, + Iterable<_i2.TimeEntryDboCreateOrConnectWithoutUserInput>>? + connectOrCreate; - final _i2.TimeEntryCreateManyUserInputEnvelope? createMany; + final _i2.TimeEntryDboCreateManyUserInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? connect; @override Map toJson() => { @@ -2775,9 +2803,9 @@ class TimeEntryUncheckedCreateNestedManyWithoutUserInput }; } -class UserUncheckedCreateWithoutProjectsInput +class UserDboUncheckedCreateWithoutProjectsInput implements _i1.JsonConvertible> { - const UserUncheckedCreateWithoutProjectsInput({ + const UserDboUncheckedCreateWithoutProjectsInput({ this.id, required this.name, required this.email, @@ -2799,7 +2827,7 @@ class UserUncheckedCreateWithoutProjectsInput final DateTime? updatedAt; - final _i2.TimeEntryUncheckedCreateNestedManyWithoutUserInput? timeEntries; + final _i2.TimeEntryDboUncheckedCreateNestedManyWithoutUserInput? timeEntries; @override Map toJson() => { @@ -2813,17 +2841,17 @@ class UserUncheckedCreateWithoutProjectsInput }; } -class UserCreateOrConnectWithoutProjectsInput +class UserDboCreateOrConnectWithoutProjectsInput implements _i1.JsonConvertible> { - const UserCreateOrConnectWithoutProjectsInput({ + const UserDboCreateOrConnectWithoutProjectsInput({ required this.where, required this.create, }); - final _i2.UserWhereUniqueInput where; + final _i2.UserDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.UserCreateWithoutProjectsInput, - _i2.UserUncheckedCreateWithoutProjectsInput> create; + final _i1.PrismaUnion<_i2.UserDboCreateWithoutProjectsInput, + _i2.UserDboUncheckedCreateWithoutProjectsInput> create; @override Map toJson() => { @@ -2832,20 +2860,20 @@ class UserCreateOrConnectWithoutProjectsInput }; } -class UserCreateNestedOneWithoutProjectsInput +class UserDboCreateNestedOneWithoutProjectsInput implements _i1.JsonConvertible> { - const UserCreateNestedOneWithoutProjectsInput({ + const UserDboCreateNestedOneWithoutProjectsInput({ this.create, this.connectOrCreate, this.connect, }); - final _i1.PrismaUnion<_i2.UserCreateWithoutProjectsInput, - _i2.UserUncheckedCreateWithoutProjectsInput>? create; + final _i1.PrismaUnion<_i2.UserDboCreateWithoutProjectsInput, + _i2.UserDboUncheckedCreateWithoutProjectsInput>? create; - final _i2.UserCreateOrConnectWithoutProjectsInput? connectOrCreate; + final _i2.UserDboCreateOrConnectWithoutProjectsInput? connectOrCreate; - final _i2.UserWhereUniqueInput? connect; + final _i2.UserDboWhereUniqueInput? connect; @override Map toJson() => { @@ -2855,9 +2883,9 @@ class UserCreateNestedOneWithoutProjectsInput }; } -class ProjectCreateWithoutTimeEntriesInput +class ProjectDboCreateWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const ProjectCreateWithoutTimeEntriesInput({ + const ProjectDboCreateWithoutTimeEntriesInput({ this.id, required this.name, this.description, @@ -2880,9 +2908,9 @@ class ProjectCreateWithoutTimeEntriesInput final DateTime? updatedAt; - final _i2.TaskCreateNestedManyWithoutProjectInput? tasks; + final _i2.TaskDboCreateNestedManyWithoutProjectInput? tasks; - final _i2.UserCreateNestedOneWithoutProjectsInput user; + final _i2.UserDboCreateNestedOneWithoutProjectsInput user; @override Map toJson() => { @@ -2897,9 +2925,9 @@ class ProjectCreateWithoutTimeEntriesInput }; } -class ProjectUncheckedCreateWithoutTimeEntriesInput +class ProjectDboUncheckedCreateWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const ProjectUncheckedCreateWithoutTimeEntriesInput({ + const ProjectDboUncheckedCreateWithoutTimeEntriesInput({ this.id, required this.name, this.description, @@ -2924,7 +2952,7 @@ class ProjectUncheckedCreateWithoutTimeEntriesInput final DateTime? updatedAt; - final _i2.TaskUncheckedCreateNestedManyWithoutProjectInput? tasks; + final _i2.TaskDboUncheckedCreateNestedManyWithoutProjectInput? tasks; @override Map toJson() => { @@ -2939,17 +2967,17 @@ class ProjectUncheckedCreateWithoutTimeEntriesInput }; } -class ProjectCreateOrConnectWithoutTimeEntriesInput +class ProjectDboCreateOrConnectWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const ProjectCreateOrConnectWithoutTimeEntriesInput({ + const ProjectDboCreateOrConnectWithoutTimeEntriesInput({ required this.where, required this.create, }); - final _i2.ProjectWhereUniqueInput where; + final _i2.ProjectDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTimeEntriesInput, - _i2.ProjectUncheckedCreateWithoutTimeEntriesInput> create; + final _i1.PrismaUnion<_i2.ProjectDboCreateWithoutTimeEntriesInput, + _i2.ProjectDboUncheckedCreateWithoutTimeEntriesInput> create; @override Map toJson() => { @@ -2958,20 +2986,20 @@ class ProjectCreateOrConnectWithoutTimeEntriesInput }; } -class ProjectCreateNestedOneWithoutTimeEntriesInput +class ProjectDboCreateNestedOneWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const ProjectCreateNestedOneWithoutTimeEntriesInput({ + const ProjectDboCreateNestedOneWithoutTimeEntriesInput({ this.create, this.connectOrCreate, this.connect, }); - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTimeEntriesInput, - _i2.ProjectUncheckedCreateWithoutTimeEntriesInput>? create; + final _i1.PrismaUnion<_i2.ProjectDboCreateWithoutTimeEntriesInput, + _i2.ProjectDboUncheckedCreateWithoutTimeEntriesInput>? create; - final _i2.ProjectCreateOrConnectWithoutTimeEntriesInput? connectOrCreate; + final _i2.ProjectDboCreateOrConnectWithoutTimeEntriesInput? connectOrCreate; - final _i2.ProjectWhereUniqueInput? connect; + final _i2.ProjectDboWhereUniqueInput? connect; @override Map toJson() => { @@ -2981,9 +3009,9 @@ class ProjectCreateNestedOneWithoutTimeEntriesInput }; } -class TimeEntryCreateWithoutUserInput +class TimeEntryDboCreateWithoutUserInput implements _i1.JsonConvertible> { - const TimeEntryCreateWithoutUserInput({ + const TimeEntryDboCreateWithoutUserInput({ this.id, required this.startTime, required this.endTime, @@ -3005,7 +3033,7 @@ class TimeEntryCreateWithoutUserInput final DateTime? updatedAt; - final _i2.ProjectCreateNestedOneWithoutTimeEntriesInput project; + final _i2.ProjectDboCreateNestedOneWithoutTimeEntriesInput project; @override Map toJson() => { @@ -3019,9 +3047,9 @@ class TimeEntryCreateWithoutUserInput }; } -class TimeEntryCreateNestedManyWithoutUserInput +class TimeEntryDboCreateNestedManyWithoutUserInput implements _i1.JsonConvertible> { - const TimeEntryCreateNestedManyWithoutUserInput({ + const TimeEntryDboCreateNestedManyWithoutUserInput({ this.create, this.connectOrCreate, this.createMany, @@ -3029,19 +3057,21 @@ class TimeEntryCreateNestedManyWithoutUserInput }); final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutUserInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutUserInput>>>>? create; + _i2.TimeEntryDboCreateWithoutUserInput, + _i1.PrismaUnion< + Iterable<_i2.TimeEntryDboCreateWithoutUserInput>, + _i1.PrismaUnion<_i2.TimeEntryDboUncheckedCreateWithoutUserInput, + Iterable<_i2.TimeEntryDboUncheckedCreateWithoutUserInput>>>>? + create; - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutUserInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutUserInput>>? connectOrCreate; + final _i1.PrismaUnion<_i2.TimeEntryDboCreateOrConnectWithoutUserInput, + Iterable<_i2.TimeEntryDboCreateOrConnectWithoutUserInput>>? + connectOrCreate; - final _i2.TimeEntryCreateManyUserInputEnvelope? createMany; + final _i2.TimeEntryDboCreateManyUserInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? connect; @override Map toJson() => { @@ -3052,8 +3082,8 @@ class TimeEntryCreateNestedManyWithoutUserInput }; } -class UserCreateInput implements _i1.JsonConvertible> { - const UserCreateInput({ +class UserDboCreateInput implements _i1.JsonConvertible> { + const UserDboCreateInput({ this.id, required this.name, required this.email, @@ -3076,9 +3106,9 @@ class UserCreateInput implements _i1.JsonConvertible> { final DateTime? updatedAt; - final _i2.ProjectCreateNestedManyWithoutUserInput? projects; + final _i2.ProjectDboCreateNestedManyWithoutUserInput? projects; - final _i2.TimeEntryCreateNestedManyWithoutUserInput? timeEntries; + final _i2.TimeEntryDboCreateNestedManyWithoutUserInput? timeEntries; @override Map toJson() => { @@ -3093,9 +3123,9 @@ class UserCreateInput implements _i1.JsonConvertible> { }; } -class UserUncheckedCreateInput +class UserDboUncheckedCreateInput implements _i1.JsonConvertible> { - const UserUncheckedCreateInput({ + const UserDboUncheckedCreateInput({ this.id, required this.name, required this.email, @@ -3118,9 +3148,9 @@ class UserUncheckedCreateInput final DateTime? updatedAt; - final _i2.ProjectUncheckedCreateNestedManyWithoutUserInput? projects; + final _i2.ProjectDboUncheckedCreateNestedManyWithoutUserInput? projects; - final _i2.TimeEntryUncheckedCreateNestedManyWithoutUserInput? timeEntries; + final _i2.TimeEntryDboUncheckedCreateNestedManyWithoutUserInput? timeEntries; @override Map toJson() => { @@ -3146,8 +3176,9 @@ class AffectedRowsOutput { Map toJson() => {'count': count}; } -class UserCreateManyInput implements _i1.JsonConvertible> { - const UserCreateManyInput({ +class UserDboCreateManyInput + implements _i1.JsonConvertible> { + const UserDboCreateManyInput({ this.id, required this.name, required this.email, @@ -3179,9 +3210,9 @@ class UserCreateManyInput implements _i1.JsonConvertible> { }; } -class CreateManyUserAndReturnOutputTypeSelect +class CreateManyUserDboAndReturnOutputTypeSelect implements _i1.JsonConvertible> { - const CreateManyUserAndReturnOutputTypeSelect({ + const CreateManyUserDboAndReturnOutputTypeSelect({ this.id, this.name, this.email, @@ -3243,9 +3274,9 @@ class NullableStringFieldUpdateOperationsInput Map toJson() => {'set': set}; } -class TaskUpdateWithoutProjectInput +class TaskDboUpdateWithoutProjectInput implements _i1.JsonConvertible> { - const TaskUpdateWithoutProjectInput({ + const TaskDboUpdateWithoutProjectInput({ this.id, this.name, this.description, @@ -3278,9 +3309,9 @@ class TaskUpdateWithoutProjectInput }; } -class TaskUncheckedUpdateWithoutProjectInput +class TaskDboUncheckedUpdateWithoutProjectInput implements _i1.JsonConvertible> { - const TaskUncheckedUpdateWithoutProjectInput({ + const TaskDboUncheckedUpdateWithoutProjectInput({ this.id, this.name, this.description, @@ -3313,21 +3344,21 @@ class TaskUncheckedUpdateWithoutProjectInput }; } -class TaskUpsertWithWhereUniqueWithoutProjectInput +class TaskDboUpsertWithWhereUniqueWithoutProjectInput implements _i1.JsonConvertible> { - const TaskUpsertWithWhereUniqueWithoutProjectInput({ + const TaskDboUpsertWithWhereUniqueWithoutProjectInput({ required this.where, required this.update, required this.create, }); - final _i2.TaskWhereUniqueInput where; + final _i2.TaskDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.TaskUpdateWithoutProjectInput, - _i2.TaskUncheckedUpdateWithoutProjectInput> update; + final _i1.PrismaUnion<_i2.TaskDboUpdateWithoutProjectInput, + _i2.TaskDboUncheckedUpdateWithoutProjectInput> update; - final _i1.PrismaUnion<_i2.TaskCreateWithoutProjectInput, - _i2.TaskUncheckedCreateWithoutProjectInput> create; + final _i1.PrismaUnion<_i2.TaskDboCreateWithoutProjectInput, + _i2.TaskDboUncheckedCreateWithoutProjectInput> create; @override Map toJson() => { @@ -3337,17 +3368,17 @@ class TaskUpsertWithWhereUniqueWithoutProjectInput }; } -class TaskUpdateWithWhereUniqueWithoutProjectInput +class TaskDboUpdateWithWhereUniqueWithoutProjectInput implements _i1.JsonConvertible> { - const TaskUpdateWithWhereUniqueWithoutProjectInput({ + const TaskDboUpdateWithWhereUniqueWithoutProjectInput({ required this.where, required this.data, }); - final _i2.TaskWhereUniqueInput where; + final _i2.TaskDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.TaskUpdateWithoutProjectInput, - _i2.TaskUncheckedUpdateWithoutProjectInput> data; + final _i1.PrismaUnion<_i2.TaskDboUpdateWithoutProjectInput, + _i2.TaskDboUncheckedUpdateWithoutProjectInput> data; @override Map toJson() => { @@ -3356,9 +3387,9 @@ class TaskUpdateWithWhereUniqueWithoutProjectInput }; } -class TaskScalarWhereInput +class TaskDboScalarWhereInput implements _i1.JsonConvertible> { - const TaskScalarWhereInput({ + const TaskDboScalarWhereInput({ this.AND, this.OR, this.NOT, @@ -3370,13 +3401,13 @@ class TaskScalarWhereInput this.updatedAt, }); - final _i1.PrismaUnion<_i2.TaskScalarWhereInput, - Iterable<_i2.TaskScalarWhereInput>>? AND; + final _i1.PrismaUnion<_i2.TaskDboScalarWhereInput, + Iterable<_i2.TaskDboScalarWhereInput>>? AND; - final Iterable<_i2.TaskScalarWhereInput>? OR; + final Iterable<_i2.TaskDboScalarWhereInput>? OR; - final _i1.PrismaUnion<_i2.TaskScalarWhereInput, - Iterable<_i2.TaskScalarWhereInput>>? NOT; + final _i1.PrismaUnion<_i2.TaskDboScalarWhereInput, + Iterable<_i2.TaskDboScalarWhereInput>>? NOT; final _i1.PrismaUnion<_i2.StringFilter, String>? id; @@ -3405,9 +3436,9 @@ class TaskScalarWhereInput }; } -class TaskUpdateManyMutationInput +class TaskDboUpdateManyMutationInput implements _i1.JsonConvertible> { - const TaskUpdateManyMutationInput({ + const TaskDboUpdateManyMutationInput({ this.id, this.name, this.description, @@ -3440,9 +3471,9 @@ class TaskUpdateManyMutationInput }; } -class TaskUncheckedUpdateManyWithoutProjectInput +class TaskDboUncheckedUpdateManyWithoutProjectInput implements _i1.JsonConvertible> { - const TaskUncheckedUpdateManyWithoutProjectInput({ + const TaskDboUncheckedUpdateManyWithoutProjectInput({ this.id, this.name, this.description, @@ -3475,17 +3506,17 @@ class TaskUncheckedUpdateManyWithoutProjectInput }; } -class TaskUpdateManyWithWhereWithoutProjectInput +class TaskDboUpdateManyWithWhereWithoutProjectInput implements _i1.JsonConvertible> { - const TaskUpdateManyWithWhereWithoutProjectInput({ + const TaskDboUpdateManyWithWhereWithoutProjectInput({ required this.where, required this.data, }); - final _i2.TaskScalarWhereInput where; + final _i2.TaskDboScalarWhereInput where; - final _i1.PrismaUnion<_i2.TaskUpdateManyMutationInput, - _i2.TaskUncheckedUpdateManyWithoutProjectInput> data; + final _i1.PrismaUnion<_i2.TaskDboUpdateManyMutationInput, + _i2.TaskDboUncheckedUpdateManyWithoutProjectInput> data; @override Map toJson() => { @@ -3494,9 +3525,9 @@ class TaskUpdateManyWithWhereWithoutProjectInput }; } -class TaskUpdateManyWithoutProjectNestedInput +class TaskDboUpdateManyWithoutProjectNestedInput implements _i1.JsonConvertible> { - const TaskUpdateManyWithoutProjectNestedInput({ + const TaskDboUpdateManyWithoutProjectNestedInput({ this.create, this.connectOrCreate, this.upsert, @@ -3511,40 +3542,41 @@ class TaskUpdateManyWithoutProjectNestedInput }); final _i1.PrismaUnion< - _i2.TaskCreateWithoutProjectInput, - _i1.PrismaUnion< - Iterable<_i2.TaskCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TaskUncheckedCreateWithoutProjectInput, - Iterable<_i2.TaskUncheckedCreateWithoutProjectInput>>>>? create; + _i2.TaskDboCreateWithoutProjectInput, + _i1.PrismaUnion< + Iterable<_i2.TaskDboCreateWithoutProjectInput>, + _i1.PrismaUnion<_i2.TaskDboUncheckedCreateWithoutProjectInput, + Iterable<_i2.TaskDboUncheckedCreateWithoutProjectInput>>>>? + create; - final _i1.PrismaUnion<_i2.TaskCreateOrConnectWithoutProjectInput, - Iterable<_i2.TaskCreateOrConnectWithoutProjectInput>>? connectOrCreate; + final _i1.PrismaUnion<_i2.TaskDboCreateOrConnectWithoutProjectInput, + Iterable<_i2.TaskDboCreateOrConnectWithoutProjectInput>>? connectOrCreate; - final _i1.PrismaUnion<_i2.TaskUpsertWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TaskUpsertWithWhereUniqueWithoutProjectInput>>? upsert; + final _i1.PrismaUnion<_i2.TaskDboUpsertWithWhereUniqueWithoutProjectInput, + Iterable<_i2.TaskDboUpsertWithWhereUniqueWithoutProjectInput>>? upsert; - final _i2.TaskCreateManyProjectInputEnvelope? createMany; + final _i2.TaskDboCreateManyProjectInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? set; + final _i1.PrismaUnion<_i2.TaskDboWhereUniqueInput, + Iterable<_i2.TaskDboWhereUniqueInput>>? set; - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? disconnect; + final _i1.PrismaUnion<_i2.TaskDboWhereUniqueInput, + Iterable<_i2.TaskDboWhereUniqueInput>>? disconnect; - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? delete; + final _i1.PrismaUnion<_i2.TaskDboWhereUniqueInput, + Iterable<_i2.TaskDboWhereUniqueInput>>? delete; - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.TaskDboWhereUniqueInput, + Iterable<_i2.TaskDboWhereUniqueInput>>? connect; - final _i1.PrismaUnion<_i2.TaskUpdateWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TaskUpdateWithWhereUniqueWithoutProjectInput>>? update; + final _i1.PrismaUnion<_i2.TaskDboUpdateWithWhereUniqueWithoutProjectInput, + Iterable<_i2.TaskDboUpdateWithWhereUniqueWithoutProjectInput>>? update; - final _i1.PrismaUnion<_i2.TaskUpdateManyWithWhereWithoutProjectInput, - Iterable<_i2.TaskUpdateManyWithWhereWithoutProjectInput>>? updateMany; + final _i1.PrismaUnion<_i2.TaskDboUpdateManyWithWhereWithoutProjectInput, + Iterable<_i2.TaskDboUpdateManyWithWhereWithoutProjectInput>>? updateMany; - final _i1.PrismaUnion<_i2.TaskScalarWhereInput, - Iterable<_i2.TaskScalarWhereInput>>? deleteMany; + final _i1.PrismaUnion<_i2.TaskDboScalarWhereInput, + Iterable<_i2.TaskDboScalarWhereInput>>? deleteMany; @override Map toJson() => { @@ -3562,9 +3594,9 @@ class TaskUpdateManyWithoutProjectNestedInput }; } -class UserUpdateWithoutTimeEntriesInput +class UserDboUpdateWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const UserUpdateWithoutTimeEntriesInput({ + const UserDboUpdateWithoutTimeEntriesInput({ this.id, this.name, this.email, @@ -3588,7 +3620,7 @@ class UserUpdateWithoutTimeEntriesInput final _i1.PrismaUnion? updatedAt; - final _i2.ProjectUpdateManyWithoutUserNestedInput? projects; + final _i2.ProjectDboUpdateManyWithoutUserNestedInput? projects; @override Map toJson() => { @@ -3602,9 +3634,9 @@ class UserUpdateWithoutTimeEntriesInput }; } -class TaskUncheckedUpdateManyWithoutProjectNestedInput +class TaskDboUncheckedUpdateManyWithoutProjectNestedInput implements _i1.JsonConvertible> { - const TaskUncheckedUpdateManyWithoutProjectNestedInput({ + const TaskDboUncheckedUpdateManyWithoutProjectNestedInput({ this.create, this.connectOrCreate, this.upsert, @@ -3619,40 +3651,41 @@ class TaskUncheckedUpdateManyWithoutProjectNestedInput }); final _i1.PrismaUnion< - _i2.TaskCreateWithoutProjectInput, - _i1.PrismaUnion< - Iterable<_i2.TaskCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TaskUncheckedCreateWithoutProjectInput, - Iterable<_i2.TaskUncheckedCreateWithoutProjectInput>>>>? create; + _i2.TaskDboCreateWithoutProjectInput, + _i1.PrismaUnion< + Iterable<_i2.TaskDboCreateWithoutProjectInput>, + _i1.PrismaUnion<_i2.TaskDboUncheckedCreateWithoutProjectInput, + Iterable<_i2.TaskDboUncheckedCreateWithoutProjectInput>>>>? + create; - final _i1.PrismaUnion<_i2.TaskCreateOrConnectWithoutProjectInput, - Iterable<_i2.TaskCreateOrConnectWithoutProjectInput>>? connectOrCreate; + final _i1.PrismaUnion<_i2.TaskDboCreateOrConnectWithoutProjectInput, + Iterable<_i2.TaskDboCreateOrConnectWithoutProjectInput>>? connectOrCreate; - final _i1.PrismaUnion<_i2.TaskUpsertWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TaskUpsertWithWhereUniqueWithoutProjectInput>>? upsert; + final _i1.PrismaUnion<_i2.TaskDboUpsertWithWhereUniqueWithoutProjectInput, + Iterable<_i2.TaskDboUpsertWithWhereUniqueWithoutProjectInput>>? upsert; - final _i2.TaskCreateManyProjectInputEnvelope? createMany; + final _i2.TaskDboCreateManyProjectInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? set; + final _i1.PrismaUnion<_i2.TaskDboWhereUniqueInput, + Iterable<_i2.TaskDboWhereUniqueInput>>? set; - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? disconnect; + final _i1.PrismaUnion<_i2.TaskDboWhereUniqueInput, + Iterable<_i2.TaskDboWhereUniqueInput>>? disconnect; - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? delete; + final _i1.PrismaUnion<_i2.TaskDboWhereUniqueInput, + Iterable<_i2.TaskDboWhereUniqueInput>>? delete; - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.TaskDboWhereUniqueInput, + Iterable<_i2.TaskDboWhereUniqueInput>>? connect; - final _i1.PrismaUnion<_i2.TaskUpdateWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TaskUpdateWithWhereUniqueWithoutProjectInput>>? update; + final _i1.PrismaUnion<_i2.TaskDboUpdateWithWhereUniqueWithoutProjectInput, + Iterable<_i2.TaskDboUpdateWithWhereUniqueWithoutProjectInput>>? update; - final _i1.PrismaUnion<_i2.TaskUpdateManyWithWhereWithoutProjectInput, - Iterable<_i2.TaskUpdateManyWithWhereWithoutProjectInput>>? updateMany; + final _i1.PrismaUnion<_i2.TaskDboUpdateManyWithWhereWithoutProjectInput, + Iterable<_i2.TaskDboUpdateManyWithWhereWithoutProjectInput>>? updateMany; - final _i1.PrismaUnion<_i2.TaskScalarWhereInput, - Iterable<_i2.TaskScalarWhereInput>>? deleteMany; + final _i1.PrismaUnion<_i2.TaskDboScalarWhereInput, + Iterable<_i2.TaskDboScalarWhereInput>>? deleteMany; @override Map toJson() => { @@ -3670,9 +3703,9 @@ class TaskUncheckedUpdateManyWithoutProjectNestedInput }; } -class TimeEntryUncheckedUpdateWithoutProjectInput +class TimeEntryDboUncheckedUpdateWithoutProjectInput implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateWithoutProjectInput({ + const TimeEntryDboUncheckedUpdateWithoutProjectInput({ this.id, this.startTime, this.endTime, @@ -3715,17 +3748,17 @@ class TimeEntryUncheckedUpdateWithoutProjectInput }; } -class TimeEntryUpdateWithWhereUniqueWithoutProjectInput +class TimeEntryDboUpdateWithWhereUniqueWithoutProjectInput implements _i1.JsonConvertible> { - const TimeEntryUpdateWithWhereUniqueWithoutProjectInput({ + const TimeEntryDboUpdateWithWhereUniqueWithoutProjectInput({ required this.where, required this.data, }); - final _i2.TimeEntryWhereUniqueInput where; + final _i2.TimeEntryDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithoutProjectInput, - _i2.TimeEntryUncheckedUpdateWithoutProjectInput> data; + final _i1.PrismaUnion<_i2.TimeEntryDboUpdateWithoutProjectInput, + _i2.TimeEntryDboUncheckedUpdateWithoutProjectInput> data; @override Map toJson() => { @@ -3734,9 +3767,9 @@ class TimeEntryUpdateWithWhereUniqueWithoutProjectInput }; } -class TimeEntryScalarWhereInput +class TimeEntryDboScalarWhereInput implements _i1.JsonConvertible> { - const TimeEntryScalarWhereInput({ + const TimeEntryDboScalarWhereInput({ this.AND, this.OR, this.NOT, @@ -3750,13 +3783,13 @@ class TimeEntryScalarWhereInput this.updatedAt, }); - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereInput, - Iterable<_i2.TimeEntryScalarWhereInput>>? AND; + final _i1.PrismaUnion<_i2.TimeEntryDboScalarWhereInput, + Iterable<_i2.TimeEntryDboScalarWhereInput>>? AND; - final Iterable<_i2.TimeEntryScalarWhereInput>? OR; + final Iterable<_i2.TimeEntryDboScalarWhereInput>? OR; - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereInput, - Iterable<_i2.TimeEntryScalarWhereInput>>? NOT; + final _i1.PrismaUnion<_i2.TimeEntryDboScalarWhereInput, + Iterable<_i2.TimeEntryDboScalarWhereInput>>? NOT; final _i1.PrismaUnion<_i2.StringFilter, String>? id; @@ -3791,9 +3824,9 @@ class TimeEntryScalarWhereInput }; } -class TimeEntryUpdateManyMutationInput +class TimeEntryDboUpdateManyMutationInput implements _i1.JsonConvertible> { - const TimeEntryUpdateManyMutationInput({ + const TimeEntryDboUpdateManyMutationInput({ this.id, this.startTime, this.endTime, @@ -3832,9 +3865,9 @@ class TimeEntryUpdateManyMutationInput }; } -class TimeEntryUncheckedUpdateManyWithoutProjectInput +class TimeEntryDboUncheckedUpdateManyWithoutProjectInput implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateManyWithoutProjectInput({ + const TimeEntryDboUncheckedUpdateManyWithoutProjectInput({ this.id, this.startTime, this.endTime, @@ -3877,17 +3910,17 @@ class TimeEntryUncheckedUpdateManyWithoutProjectInput }; } -class TimeEntryUpdateManyWithWhereWithoutProjectInput +class TimeEntryDboUpdateManyWithWhereWithoutProjectInput implements _i1.JsonConvertible> { - const TimeEntryUpdateManyWithWhereWithoutProjectInput({ + const TimeEntryDboUpdateManyWithWhereWithoutProjectInput({ required this.where, required this.data, }); - final _i2.TimeEntryScalarWhereInput where; + final _i2.TimeEntryDboScalarWhereInput where; - final _i1.PrismaUnion<_i2.TimeEntryUpdateManyMutationInput, - _i2.TimeEntryUncheckedUpdateManyWithoutProjectInput> data; + final _i1.PrismaUnion<_i2.TimeEntryDboUpdateManyMutationInput, + _i2.TimeEntryDboUncheckedUpdateManyWithoutProjectInput> data; @override Map toJson() => { @@ -3896,9 +3929,9 @@ class TimeEntryUpdateManyWithWhereWithoutProjectInput }; } -class TimeEntryUncheckedUpdateManyWithoutProjectNestedInput +class TimeEntryDboUncheckedUpdateManyWithoutProjectNestedInput implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateManyWithoutProjectNestedInput({ + const TimeEntryDboUncheckedUpdateManyWithoutProjectNestedInput({ this.create, this.connectOrCreate, this.upsert, @@ -3913,43 +3946,49 @@ class TimeEntryUncheckedUpdateManyWithoutProjectNestedInput }); final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutProjectInput, + _i2.TimeEntryDboCreateWithoutProjectInput, _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutProjectInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutProjectInput>>>>? + Iterable<_i2.TimeEntryDboCreateWithoutProjectInput>, + _i1.PrismaUnion< + _i2.TimeEntryDboUncheckedCreateWithoutProjectInput, + Iterable< + _i2.TimeEntryDboUncheckedCreateWithoutProjectInput>>>>? create; - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutProjectInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutProjectInput>>? + final _i1.PrismaUnion<_i2.TimeEntryDboCreateOrConnectWithoutProjectInput, + Iterable<_i2.TimeEntryDboCreateOrConnectWithoutProjectInput>>? connectOrCreate; - final _i1.PrismaUnion<_i2.TimeEntryUpsertWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TimeEntryUpsertWithWhereUniqueWithoutProjectInput>>? upsert; + final _i1.PrismaUnion< + _i2.TimeEntryDboUpsertWithWhereUniqueWithoutProjectInput, + Iterable<_i2.TimeEntryDboUpsertWithWhereUniqueWithoutProjectInput>>? + upsert; - final _i2.TimeEntryCreateManyProjectInputEnvelope? createMany; + final _i2.TimeEntryDboCreateManyProjectInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? set; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? set; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? disconnect; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? disconnect; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? delete; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? delete; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? connect; - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TimeEntryUpdateWithWhereUniqueWithoutProjectInput>>? update; + final _i1.PrismaUnion< + _i2.TimeEntryDboUpdateWithWhereUniqueWithoutProjectInput, + Iterable<_i2.TimeEntryDboUpdateWithWhereUniqueWithoutProjectInput>>? + update; - final _i1.PrismaUnion<_i2.TimeEntryUpdateManyWithWhereWithoutProjectInput, - Iterable<_i2.TimeEntryUpdateManyWithWhereWithoutProjectInput>>? + final _i1.PrismaUnion<_i2.TimeEntryDboUpdateManyWithWhereWithoutProjectInput, + Iterable<_i2.TimeEntryDboUpdateManyWithWhereWithoutProjectInput>>? updateMany; - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereInput, - Iterable<_i2.TimeEntryScalarWhereInput>>? deleteMany; + final _i1.PrismaUnion<_i2.TimeEntryDboScalarWhereInput, + Iterable<_i2.TimeEntryDboScalarWhereInput>>? deleteMany; @override Map toJson() => { @@ -3967,9 +4006,9 @@ class TimeEntryUncheckedUpdateManyWithoutProjectNestedInput }; } -class ProjectUncheckedUpdateWithoutUserInput +class ProjectDboUncheckedUpdateWithoutUserInput implements _i1.JsonConvertible> { - const ProjectUncheckedUpdateWithoutUserInput({ + const ProjectDboUncheckedUpdateWithoutUserInput({ this.id, this.name, this.description, @@ -4000,9 +4039,10 @@ class ProjectUncheckedUpdateWithoutUserInput final _i1.PrismaUnion? updatedAt; - final _i2.TaskUncheckedUpdateManyWithoutProjectNestedInput? tasks; + final _i2.TaskDboUncheckedUpdateManyWithoutProjectNestedInput? tasks; - final _i2.TimeEntryUncheckedUpdateManyWithoutProjectNestedInput? timeEntries; + final _i2.TimeEntryDboUncheckedUpdateManyWithoutProjectNestedInput? + timeEntries; @override Map toJson() => { @@ -4017,17 +4057,17 @@ class ProjectUncheckedUpdateWithoutUserInput }; } -class ProjectUpdateWithWhereUniqueWithoutUserInput +class ProjectDboUpdateWithWhereUniqueWithoutUserInput implements _i1.JsonConvertible> { - const ProjectUpdateWithWhereUniqueWithoutUserInput({ + const ProjectDboUpdateWithWhereUniqueWithoutUserInput({ required this.where, required this.data, }); - final _i2.ProjectWhereUniqueInput where; + final _i2.ProjectDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.ProjectUpdateWithoutUserInput, - _i2.ProjectUncheckedUpdateWithoutUserInput> data; + final _i1.PrismaUnion<_i2.ProjectDboUpdateWithoutUserInput, + _i2.ProjectDboUncheckedUpdateWithoutUserInput> data; @override Map toJson() => { @@ -4036,9 +4076,9 @@ class ProjectUpdateWithWhereUniqueWithoutUserInput }; } -class ProjectScalarWhereInput +class ProjectDboScalarWhereInput implements _i1.JsonConvertible> { - const ProjectScalarWhereInput({ + const ProjectDboScalarWhereInput({ this.AND, this.OR, this.NOT, @@ -4051,13 +4091,13 @@ class ProjectScalarWhereInput this.updatedAt, }); - final _i1.PrismaUnion<_i2.ProjectScalarWhereInput, - Iterable<_i2.ProjectScalarWhereInput>>? AND; + final _i1.PrismaUnion<_i2.ProjectDboScalarWhereInput, + Iterable<_i2.ProjectDboScalarWhereInput>>? AND; - final Iterable<_i2.ProjectScalarWhereInput>? OR; + final Iterable<_i2.ProjectDboScalarWhereInput>? OR; - final _i1.PrismaUnion<_i2.ProjectScalarWhereInput, - Iterable<_i2.ProjectScalarWhereInput>>? NOT; + final _i1.PrismaUnion<_i2.ProjectDboScalarWhereInput, + Iterable<_i2.ProjectDboScalarWhereInput>>? NOT; final _i1.PrismaUnion<_i2.StringFilter, String>? id; @@ -4090,9 +4130,9 @@ class ProjectScalarWhereInput }; } -class ProjectUpdateManyMutationInput +class ProjectDboUpdateManyMutationInput implements _i1.JsonConvertible> { - const ProjectUpdateManyMutationInput({ + const ProjectDboUpdateManyMutationInput({ this.id, this.name, this.description, @@ -4132,9 +4172,9 @@ class ProjectUpdateManyMutationInput }; } -class ProjectUncheckedUpdateManyWithoutUserInput +class ProjectDboUncheckedUpdateManyWithoutUserInput implements _i1.JsonConvertible> { - const ProjectUncheckedUpdateManyWithoutUserInput({ + const ProjectDboUncheckedUpdateManyWithoutUserInput({ this.id, this.name, this.description, @@ -4174,17 +4214,17 @@ class ProjectUncheckedUpdateManyWithoutUserInput }; } -class ProjectUpdateManyWithWhereWithoutUserInput +class ProjectDboUpdateManyWithWhereWithoutUserInput implements _i1.JsonConvertible> { - const ProjectUpdateManyWithWhereWithoutUserInput({ + const ProjectDboUpdateManyWithWhereWithoutUserInput({ required this.where, required this.data, }); - final _i2.ProjectScalarWhereInput where; + final _i2.ProjectDboScalarWhereInput where; - final _i1.PrismaUnion<_i2.ProjectUpdateManyMutationInput, - _i2.ProjectUncheckedUpdateManyWithoutUserInput> data; + final _i1.PrismaUnion<_i2.ProjectDboUpdateManyMutationInput, + _i2.ProjectDboUncheckedUpdateManyWithoutUserInput> data; @override Map toJson() => { @@ -4193,9 +4233,9 @@ class ProjectUpdateManyWithWhereWithoutUserInput }; } -class ProjectUncheckedUpdateManyWithoutUserNestedInput +class ProjectDboUncheckedUpdateManyWithoutUserNestedInput implements _i1.JsonConvertible> { - const ProjectUncheckedUpdateManyWithoutUserNestedInput({ + const ProjectDboUncheckedUpdateManyWithoutUserNestedInput({ this.create, this.connectOrCreate, this.upsert, @@ -4210,40 +4250,41 @@ class ProjectUncheckedUpdateManyWithoutUserNestedInput }); final _i1.PrismaUnion< - _i2.ProjectCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.ProjectCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.ProjectUncheckedCreateWithoutUserInput, - Iterable<_i2.ProjectUncheckedCreateWithoutUserInput>>>>? create; + _i2.ProjectDboCreateWithoutUserInput, + _i1.PrismaUnion< + Iterable<_i2.ProjectDboCreateWithoutUserInput>, + _i1.PrismaUnion<_i2.ProjectDboUncheckedCreateWithoutUserInput, + Iterable<_i2.ProjectDboUncheckedCreateWithoutUserInput>>>>? + create; - final _i1.PrismaUnion<_i2.ProjectCreateOrConnectWithoutUserInput, - Iterable<_i2.ProjectCreateOrConnectWithoutUserInput>>? connectOrCreate; + final _i1.PrismaUnion<_i2.ProjectDboCreateOrConnectWithoutUserInput, + Iterable<_i2.ProjectDboCreateOrConnectWithoutUserInput>>? connectOrCreate; - final _i1.PrismaUnion<_i2.ProjectUpsertWithWhereUniqueWithoutUserInput, - Iterable<_i2.ProjectUpsertWithWhereUniqueWithoutUserInput>>? upsert; + final _i1.PrismaUnion<_i2.ProjectDboUpsertWithWhereUniqueWithoutUserInput, + Iterable<_i2.ProjectDboUpsertWithWhereUniqueWithoutUserInput>>? upsert; - final _i2.ProjectCreateManyUserInputEnvelope? createMany; + final _i2.ProjectDboCreateManyUserInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? set; + final _i1.PrismaUnion<_i2.ProjectDboWhereUniqueInput, + Iterable<_i2.ProjectDboWhereUniqueInput>>? set; - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? disconnect; + final _i1.PrismaUnion<_i2.ProjectDboWhereUniqueInput, + Iterable<_i2.ProjectDboWhereUniqueInput>>? disconnect; - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? delete; + final _i1.PrismaUnion<_i2.ProjectDboWhereUniqueInput, + Iterable<_i2.ProjectDboWhereUniqueInput>>? delete; - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.ProjectDboWhereUniqueInput, + Iterable<_i2.ProjectDboWhereUniqueInput>>? connect; - final _i1.PrismaUnion<_i2.ProjectUpdateWithWhereUniqueWithoutUserInput, - Iterable<_i2.ProjectUpdateWithWhereUniqueWithoutUserInput>>? update; + final _i1.PrismaUnion<_i2.ProjectDboUpdateWithWhereUniqueWithoutUserInput, + Iterable<_i2.ProjectDboUpdateWithWhereUniqueWithoutUserInput>>? update; - final _i1.PrismaUnion<_i2.ProjectUpdateManyWithWhereWithoutUserInput, - Iterable<_i2.ProjectUpdateManyWithWhereWithoutUserInput>>? updateMany; + final _i1.PrismaUnion<_i2.ProjectDboUpdateManyWithWhereWithoutUserInput, + Iterable<_i2.ProjectDboUpdateManyWithWhereWithoutUserInput>>? updateMany; - final _i1.PrismaUnion<_i2.ProjectScalarWhereInput, - Iterable<_i2.ProjectScalarWhereInput>>? deleteMany; + final _i1.PrismaUnion<_i2.ProjectDboScalarWhereInput, + Iterable<_i2.ProjectDboScalarWhereInput>>? deleteMany; @override Map toJson() => { @@ -4261,9 +4302,9 @@ class ProjectUncheckedUpdateManyWithoutUserNestedInput }; } -class UserUncheckedUpdateWithoutTimeEntriesInput +class UserDboUncheckedUpdateWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const UserUncheckedUpdateWithoutTimeEntriesInput({ + const UserDboUncheckedUpdateWithoutTimeEntriesInput({ this.id, this.name, this.email, @@ -4287,7 +4328,7 @@ class UserUncheckedUpdateWithoutTimeEntriesInput final _i1.PrismaUnion? updatedAt; - final _i2.ProjectUncheckedUpdateManyWithoutUserNestedInput? projects; + final _i2.ProjectDboUncheckedUpdateManyWithoutUserNestedInput? projects; @override Map toJson() => { @@ -4301,21 +4342,21 @@ class UserUncheckedUpdateWithoutTimeEntriesInput }; } -class UserUpsertWithoutTimeEntriesInput +class UserDboUpsertWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const UserUpsertWithoutTimeEntriesInput({ + const UserDboUpsertWithoutTimeEntriesInput({ required this.update, required this.create, this.where, }); - final _i1.PrismaUnion<_i2.UserUpdateWithoutTimeEntriesInput, - _i2.UserUncheckedUpdateWithoutTimeEntriesInput> update; + final _i1.PrismaUnion<_i2.UserDboUpdateWithoutTimeEntriesInput, + _i2.UserDboUncheckedUpdateWithoutTimeEntriesInput> update; - final _i1.PrismaUnion<_i2.UserCreateWithoutTimeEntriesInput, - _i2.UserUncheckedCreateWithoutTimeEntriesInput> create; + final _i1.PrismaUnion<_i2.UserDboCreateWithoutTimeEntriesInput, + _i2.UserDboUncheckedCreateWithoutTimeEntriesInput> create; - final _i2.UserWhereInput? where; + final _i2.UserDboWhereInput? where; @override Map toJson() => { @@ -4325,17 +4366,17 @@ class UserUpsertWithoutTimeEntriesInput }; } -class UserUpdateToOneWithWhereWithoutTimeEntriesInput +class UserDboUpdateToOneWithWhereWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const UserUpdateToOneWithWhereWithoutTimeEntriesInput({ + const UserDboUpdateToOneWithWhereWithoutTimeEntriesInput({ this.where, required this.data, }); - final _i2.UserWhereInput? where; + final _i2.UserDboWhereInput? where; - final _i1.PrismaUnion<_i2.UserUpdateWithoutTimeEntriesInput, - _i2.UserUncheckedUpdateWithoutTimeEntriesInput> data; + final _i1.PrismaUnion<_i2.UserDboUpdateWithoutTimeEntriesInput, + _i2.UserDboUncheckedUpdateWithoutTimeEntriesInput> data; @override Map toJson() => { @@ -4344,9 +4385,9 @@ class UserUpdateToOneWithWhereWithoutTimeEntriesInput }; } -class UserUpdateOneRequiredWithoutTimeEntriesNestedInput +class UserDboUpdateOneRequiredWithoutTimeEntriesNestedInput implements _i1.JsonConvertible> { - const UserUpdateOneRequiredWithoutTimeEntriesNestedInput({ + const UserDboUpdateOneRequiredWithoutTimeEntriesNestedInput({ this.create, this.connectOrCreate, this.upsert, @@ -4354,19 +4395,19 @@ class UserUpdateOneRequiredWithoutTimeEntriesNestedInput this.update, }); - final _i1.PrismaUnion<_i2.UserCreateWithoutTimeEntriesInput, - _i2.UserUncheckedCreateWithoutTimeEntriesInput>? create; + final _i1.PrismaUnion<_i2.UserDboCreateWithoutTimeEntriesInput, + _i2.UserDboUncheckedCreateWithoutTimeEntriesInput>? create; - final _i2.UserCreateOrConnectWithoutTimeEntriesInput? connectOrCreate; + final _i2.UserDboCreateOrConnectWithoutTimeEntriesInput? connectOrCreate; - final _i2.UserUpsertWithoutTimeEntriesInput? upsert; + final _i2.UserDboUpsertWithoutTimeEntriesInput? upsert; - final _i2.UserWhereUniqueInput? connect; + final _i2.UserDboWhereUniqueInput? connect; final _i1.PrismaUnion< - _i2.UserUpdateToOneWithWhereWithoutTimeEntriesInput, - _i1.PrismaUnion<_i2.UserUpdateWithoutTimeEntriesInput, - _i2.UserUncheckedUpdateWithoutTimeEntriesInput>>? update; + _i2.UserDboUpdateToOneWithWhereWithoutTimeEntriesInput, + _i1.PrismaUnion<_i2.UserDboUpdateWithoutTimeEntriesInput, + _i2.UserDboUncheckedUpdateWithoutTimeEntriesInput>>? update; @override Map toJson() => { @@ -4378,9 +4419,9 @@ class UserUpdateOneRequiredWithoutTimeEntriesNestedInput }; } -class TimeEntryUpdateWithoutProjectInput +class TimeEntryDboUpdateWithoutProjectInput implements _i1.JsonConvertible> { - const TimeEntryUpdateWithoutProjectInput({ + const TimeEntryDboUpdateWithoutProjectInput({ this.id, this.startTime, this.endTime, @@ -4409,7 +4450,7 @@ class TimeEntryUpdateWithoutProjectInput final _i1.PrismaUnion? updatedAt; - final _i2.UserUpdateOneRequiredWithoutTimeEntriesNestedInput? user; + final _i2.UserDboUpdateOneRequiredWithoutTimeEntriesNestedInput? user; @override Map toJson() => { @@ -4423,21 +4464,21 @@ class TimeEntryUpdateWithoutProjectInput }; } -class TimeEntryUpsertWithWhereUniqueWithoutProjectInput +class TimeEntryDboUpsertWithWhereUniqueWithoutProjectInput implements _i1.JsonConvertible> { - const TimeEntryUpsertWithWhereUniqueWithoutProjectInput({ + const TimeEntryDboUpsertWithWhereUniqueWithoutProjectInput({ required this.where, required this.update, required this.create, }); - final _i2.TimeEntryWhereUniqueInput where; + final _i2.TimeEntryDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithoutProjectInput, - _i2.TimeEntryUncheckedUpdateWithoutProjectInput> update; + final _i1.PrismaUnion<_i2.TimeEntryDboUpdateWithoutProjectInput, + _i2.TimeEntryDboUncheckedUpdateWithoutProjectInput> update; - final _i1.PrismaUnion<_i2.TimeEntryCreateWithoutProjectInput, - _i2.TimeEntryUncheckedCreateWithoutProjectInput> create; + final _i1.PrismaUnion<_i2.TimeEntryDboCreateWithoutProjectInput, + _i2.TimeEntryDboUncheckedCreateWithoutProjectInput> create; @override Map toJson() => { @@ -4447,9 +4488,9 @@ class TimeEntryUpsertWithWhereUniqueWithoutProjectInput }; } -class TimeEntryUpdateManyWithoutProjectNestedInput +class TimeEntryDboUpdateManyWithoutProjectNestedInput implements _i1.JsonConvertible> { - const TimeEntryUpdateManyWithoutProjectNestedInput({ + const TimeEntryDboUpdateManyWithoutProjectNestedInput({ this.create, this.connectOrCreate, this.upsert, @@ -4464,43 +4505,49 @@ class TimeEntryUpdateManyWithoutProjectNestedInput }); final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutProjectInput, + _i2.TimeEntryDboCreateWithoutProjectInput, _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutProjectInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutProjectInput>>>>? + Iterable<_i2.TimeEntryDboCreateWithoutProjectInput>, + _i1.PrismaUnion< + _i2.TimeEntryDboUncheckedCreateWithoutProjectInput, + Iterable< + _i2.TimeEntryDboUncheckedCreateWithoutProjectInput>>>>? create; - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutProjectInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutProjectInput>>? + final _i1.PrismaUnion<_i2.TimeEntryDboCreateOrConnectWithoutProjectInput, + Iterable<_i2.TimeEntryDboCreateOrConnectWithoutProjectInput>>? connectOrCreate; - final _i1.PrismaUnion<_i2.TimeEntryUpsertWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TimeEntryUpsertWithWhereUniqueWithoutProjectInput>>? upsert; + final _i1.PrismaUnion< + _i2.TimeEntryDboUpsertWithWhereUniqueWithoutProjectInput, + Iterable<_i2.TimeEntryDboUpsertWithWhereUniqueWithoutProjectInput>>? + upsert; - final _i2.TimeEntryCreateManyProjectInputEnvelope? createMany; + final _i2.TimeEntryDboCreateManyProjectInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? set; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? set; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? disconnect; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? disconnect; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? delete; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? delete; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? connect; - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TimeEntryUpdateWithWhereUniqueWithoutProjectInput>>? update; + final _i1.PrismaUnion< + _i2.TimeEntryDboUpdateWithWhereUniqueWithoutProjectInput, + Iterable<_i2.TimeEntryDboUpdateWithWhereUniqueWithoutProjectInput>>? + update; - final _i1.PrismaUnion<_i2.TimeEntryUpdateManyWithWhereWithoutProjectInput, - Iterable<_i2.TimeEntryUpdateManyWithWhereWithoutProjectInput>>? + final _i1.PrismaUnion<_i2.TimeEntryDboUpdateManyWithWhereWithoutProjectInput, + Iterable<_i2.TimeEntryDboUpdateManyWithWhereWithoutProjectInput>>? updateMany; - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereInput, - Iterable<_i2.TimeEntryScalarWhereInput>>? deleteMany; + final _i1.PrismaUnion<_i2.TimeEntryDboScalarWhereInput, + Iterable<_i2.TimeEntryDboScalarWhereInput>>? deleteMany; @override Map toJson() => { @@ -4518,9 +4565,9 @@ class TimeEntryUpdateManyWithoutProjectNestedInput }; } -class ProjectUpdateWithoutUserInput +class ProjectDboUpdateWithoutUserInput implements _i1.JsonConvertible> { - const ProjectUpdateWithoutUserInput({ + const ProjectDboUpdateWithoutUserInput({ this.id, this.name, this.description, @@ -4551,9 +4598,9 @@ class ProjectUpdateWithoutUserInput final _i1.PrismaUnion? updatedAt; - final _i2.TaskUpdateManyWithoutProjectNestedInput? tasks; + final _i2.TaskDboUpdateManyWithoutProjectNestedInput? tasks; - final _i2.TimeEntryUpdateManyWithoutProjectNestedInput? timeEntries; + final _i2.TimeEntryDboUpdateManyWithoutProjectNestedInput? timeEntries; @override Map toJson() => { @@ -4568,21 +4615,21 @@ class ProjectUpdateWithoutUserInput }; } -class ProjectUpsertWithWhereUniqueWithoutUserInput +class ProjectDboUpsertWithWhereUniqueWithoutUserInput implements _i1.JsonConvertible> { - const ProjectUpsertWithWhereUniqueWithoutUserInput({ + const ProjectDboUpsertWithWhereUniqueWithoutUserInput({ required this.where, required this.update, required this.create, }); - final _i2.ProjectWhereUniqueInput where; + final _i2.ProjectDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.ProjectUpdateWithoutUserInput, - _i2.ProjectUncheckedUpdateWithoutUserInput> update; + final _i1.PrismaUnion<_i2.ProjectDboUpdateWithoutUserInput, + _i2.ProjectDboUncheckedUpdateWithoutUserInput> update; - final _i1.PrismaUnion<_i2.ProjectCreateWithoutUserInput, - _i2.ProjectUncheckedCreateWithoutUserInput> create; + final _i1.PrismaUnion<_i2.ProjectDboCreateWithoutUserInput, + _i2.ProjectDboUncheckedCreateWithoutUserInput> create; @override Map toJson() => { @@ -4592,9 +4639,9 @@ class ProjectUpsertWithWhereUniqueWithoutUserInput }; } -class ProjectUpdateManyWithoutUserNestedInput +class ProjectDboUpdateManyWithoutUserNestedInput implements _i1.JsonConvertible> { - const ProjectUpdateManyWithoutUserNestedInput({ + const ProjectDboUpdateManyWithoutUserNestedInput({ this.create, this.connectOrCreate, this.upsert, @@ -4609,40 +4656,41 @@ class ProjectUpdateManyWithoutUserNestedInput }); final _i1.PrismaUnion< - _i2.ProjectCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.ProjectCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.ProjectUncheckedCreateWithoutUserInput, - Iterable<_i2.ProjectUncheckedCreateWithoutUserInput>>>>? create; + _i2.ProjectDboCreateWithoutUserInput, + _i1.PrismaUnion< + Iterable<_i2.ProjectDboCreateWithoutUserInput>, + _i1.PrismaUnion<_i2.ProjectDboUncheckedCreateWithoutUserInput, + Iterable<_i2.ProjectDboUncheckedCreateWithoutUserInput>>>>? + create; - final _i1.PrismaUnion<_i2.ProjectCreateOrConnectWithoutUserInput, - Iterable<_i2.ProjectCreateOrConnectWithoutUserInput>>? connectOrCreate; + final _i1.PrismaUnion<_i2.ProjectDboCreateOrConnectWithoutUserInput, + Iterable<_i2.ProjectDboCreateOrConnectWithoutUserInput>>? connectOrCreate; - final _i1.PrismaUnion<_i2.ProjectUpsertWithWhereUniqueWithoutUserInput, - Iterable<_i2.ProjectUpsertWithWhereUniqueWithoutUserInput>>? upsert; + final _i1.PrismaUnion<_i2.ProjectDboUpsertWithWhereUniqueWithoutUserInput, + Iterable<_i2.ProjectDboUpsertWithWhereUniqueWithoutUserInput>>? upsert; - final _i2.ProjectCreateManyUserInputEnvelope? createMany; + final _i2.ProjectDboCreateManyUserInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? set; + final _i1.PrismaUnion<_i2.ProjectDboWhereUniqueInput, + Iterable<_i2.ProjectDboWhereUniqueInput>>? set; - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? disconnect; + final _i1.PrismaUnion<_i2.ProjectDboWhereUniqueInput, + Iterable<_i2.ProjectDboWhereUniqueInput>>? disconnect; - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? delete; + final _i1.PrismaUnion<_i2.ProjectDboWhereUniqueInput, + Iterable<_i2.ProjectDboWhereUniqueInput>>? delete; - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.ProjectDboWhereUniqueInput, + Iterable<_i2.ProjectDboWhereUniqueInput>>? connect; - final _i1.PrismaUnion<_i2.ProjectUpdateWithWhereUniqueWithoutUserInput, - Iterable<_i2.ProjectUpdateWithWhereUniqueWithoutUserInput>>? update; + final _i1.PrismaUnion<_i2.ProjectDboUpdateWithWhereUniqueWithoutUserInput, + Iterable<_i2.ProjectDboUpdateWithWhereUniqueWithoutUserInput>>? update; - final _i1.PrismaUnion<_i2.ProjectUpdateManyWithWhereWithoutUserInput, - Iterable<_i2.ProjectUpdateManyWithWhereWithoutUserInput>>? updateMany; + final _i1.PrismaUnion<_i2.ProjectDboUpdateManyWithWhereWithoutUserInput, + Iterable<_i2.ProjectDboUpdateManyWithWhereWithoutUserInput>>? updateMany; - final _i1.PrismaUnion<_i2.ProjectScalarWhereInput, - Iterable<_i2.ProjectScalarWhereInput>>? deleteMany; + final _i1.PrismaUnion<_i2.ProjectDboScalarWhereInput, + Iterable<_i2.ProjectDboScalarWhereInput>>? deleteMany; @override Map toJson() => { @@ -4660,9 +4708,9 @@ class ProjectUpdateManyWithoutUserNestedInput }; } -class UserUpdateWithoutProjectsInput +class UserDboUpdateWithoutProjectsInput implements _i1.JsonConvertible> { - const UserUpdateWithoutProjectsInput({ + const UserDboUpdateWithoutProjectsInput({ this.id, this.name, this.email, @@ -4686,7 +4734,7 @@ class UserUpdateWithoutProjectsInput final _i1.PrismaUnion? updatedAt; - final _i2.TimeEntryUpdateManyWithoutUserNestedInput? timeEntries; + final _i2.TimeEntryDboUpdateManyWithoutUserNestedInput? timeEntries; @override Map toJson() => { @@ -4700,9 +4748,9 @@ class UserUpdateWithoutProjectsInput }; } -class TimeEntryUncheckedUpdateWithoutUserInput +class TimeEntryDboUncheckedUpdateWithoutUserInput implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateWithoutUserInput({ + const TimeEntryDboUncheckedUpdateWithoutUserInput({ this.id, this.startTime, this.endTime, @@ -4746,17 +4794,17 @@ class TimeEntryUncheckedUpdateWithoutUserInput }; } -class TimeEntryUpdateWithWhereUniqueWithoutUserInput +class TimeEntryDboUpdateWithWhereUniqueWithoutUserInput implements _i1.JsonConvertible> { - const TimeEntryUpdateWithWhereUniqueWithoutUserInput({ + const TimeEntryDboUpdateWithWhereUniqueWithoutUserInput({ required this.where, required this.data, }); - final _i2.TimeEntryWhereUniqueInput where; + final _i2.TimeEntryDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithoutUserInput, - _i2.TimeEntryUncheckedUpdateWithoutUserInput> data; + final _i1.PrismaUnion<_i2.TimeEntryDboUpdateWithoutUserInput, + _i2.TimeEntryDboUncheckedUpdateWithoutUserInput> data; @override Map toJson() => { @@ -4765,9 +4813,9 @@ class TimeEntryUpdateWithWhereUniqueWithoutUserInput }; } -class TimeEntryUncheckedUpdateManyWithoutUserInput +class TimeEntryDboUncheckedUpdateManyWithoutUserInput implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateManyWithoutUserInput({ + const TimeEntryDboUncheckedUpdateManyWithoutUserInput({ this.id, this.startTime, this.endTime, @@ -4811,17 +4859,17 @@ class TimeEntryUncheckedUpdateManyWithoutUserInput }; } -class TimeEntryUpdateManyWithWhereWithoutUserInput +class TimeEntryDboUpdateManyWithWhereWithoutUserInput implements _i1.JsonConvertible> { - const TimeEntryUpdateManyWithWhereWithoutUserInput({ + const TimeEntryDboUpdateManyWithWhereWithoutUserInput({ required this.where, required this.data, }); - final _i2.TimeEntryScalarWhereInput where; + final _i2.TimeEntryDboScalarWhereInput where; - final _i1.PrismaUnion<_i2.TimeEntryUpdateManyMutationInput, - _i2.TimeEntryUncheckedUpdateManyWithoutUserInput> data; + final _i1.PrismaUnion<_i2.TimeEntryDboUpdateManyMutationInput, + _i2.TimeEntryDboUncheckedUpdateManyWithoutUserInput> data; @override Map toJson() => { @@ -4830,9 +4878,9 @@ class TimeEntryUpdateManyWithWhereWithoutUserInput }; } -class TimeEntryUncheckedUpdateManyWithoutUserNestedInput +class TimeEntryDboUncheckedUpdateManyWithoutUserNestedInput implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateManyWithoutUserNestedInput({ + const TimeEntryDboUncheckedUpdateManyWithoutUserNestedInput({ this.create, this.connectOrCreate, this.upsert, @@ -4847,40 +4895,43 @@ class TimeEntryUncheckedUpdateManyWithoutUserNestedInput }); final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutUserInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutUserInput>>>>? create; + _i2.TimeEntryDboCreateWithoutUserInput, + _i1.PrismaUnion< + Iterable<_i2.TimeEntryDboCreateWithoutUserInput>, + _i1.PrismaUnion<_i2.TimeEntryDboUncheckedCreateWithoutUserInput, + Iterable<_i2.TimeEntryDboUncheckedCreateWithoutUserInput>>>>? + create; - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutUserInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutUserInput>>? connectOrCreate; + final _i1.PrismaUnion<_i2.TimeEntryDboCreateOrConnectWithoutUserInput, + Iterable<_i2.TimeEntryDboCreateOrConnectWithoutUserInput>>? + connectOrCreate; - final _i1.PrismaUnion<_i2.TimeEntryUpsertWithWhereUniqueWithoutUserInput, - Iterable<_i2.TimeEntryUpsertWithWhereUniqueWithoutUserInput>>? upsert; + final _i1.PrismaUnion<_i2.TimeEntryDboUpsertWithWhereUniqueWithoutUserInput, + Iterable<_i2.TimeEntryDboUpsertWithWhereUniqueWithoutUserInput>>? upsert; - final _i2.TimeEntryCreateManyUserInputEnvelope? createMany; + final _i2.TimeEntryDboCreateManyUserInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? set; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? set; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? disconnect; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? disconnect; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? delete; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? delete; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? connect; - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithWhereUniqueWithoutUserInput, - Iterable<_i2.TimeEntryUpdateWithWhereUniqueWithoutUserInput>>? update; + final _i1.PrismaUnion<_i2.TimeEntryDboUpdateWithWhereUniqueWithoutUserInput, + Iterable<_i2.TimeEntryDboUpdateWithWhereUniqueWithoutUserInput>>? update; - final _i1.PrismaUnion<_i2.TimeEntryUpdateManyWithWhereWithoutUserInput, - Iterable<_i2.TimeEntryUpdateManyWithWhereWithoutUserInput>>? updateMany; + final _i1.PrismaUnion<_i2.TimeEntryDboUpdateManyWithWhereWithoutUserInput, + Iterable<_i2.TimeEntryDboUpdateManyWithWhereWithoutUserInput>>? + updateMany; - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereInput, - Iterable<_i2.TimeEntryScalarWhereInput>>? deleteMany; + final _i1.PrismaUnion<_i2.TimeEntryDboScalarWhereInput, + Iterable<_i2.TimeEntryDboScalarWhereInput>>? deleteMany; @override Map toJson() => { @@ -4898,9 +4949,9 @@ class TimeEntryUncheckedUpdateManyWithoutUserNestedInput }; } -class UserUncheckedUpdateWithoutProjectsInput +class UserDboUncheckedUpdateWithoutProjectsInput implements _i1.JsonConvertible> { - const UserUncheckedUpdateWithoutProjectsInput({ + const UserDboUncheckedUpdateWithoutProjectsInput({ this.id, this.name, this.email, @@ -4924,7 +4975,7 @@ class UserUncheckedUpdateWithoutProjectsInput final _i1.PrismaUnion? updatedAt; - final _i2.TimeEntryUncheckedUpdateManyWithoutUserNestedInput? timeEntries; + final _i2.TimeEntryDboUncheckedUpdateManyWithoutUserNestedInput? timeEntries; @override Map toJson() => { @@ -4938,21 +4989,21 @@ class UserUncheckedUpdateWithoutProjectsInput }; } -class UserUpsertWithoutProjectsInput +class UserDboUpsertWithoutProjectsInput implements _i1.JsonConvertible> { - const UserUpsertWithoutProjectsInput({ + const UserDboUpsertWithoutProjectsInput({ required this.update, required this.create, this.where, }); - final _i1.PrismaUnion<_i2.UserUpdateWithoutProjectsInput, - _i2.UserUncheckedUpdateWithoutProjectsInput> update; + final _i1.PrismaUnion<_i2.UserDboUpdateWithoutProjectsInput, + _i2.UserDboUncheckedUpdateWithoutProjectsInput> update; - final _i1.PrismaUnion<_i2.UserCreateWithoutProjectsInput, - _i2.UserUncheckedCreateWithoutProjectsInput> create; + final _i1.PrismaUnion<_i2.UserDboCreateWithoutProjectsInput, + _i2.UserDboUncheckedCreateWithoutProjectsInput> create; - final _i2.UserWhereInput? where; + final _i2.UserDboWhereInput? where; @override Map toJson() => { @@ -4962,17 +5013,17 @@ class UserUpsertWithoutProjectsInput }; } -class UserUpdateToOneWithWhereWithoutProjectsInput +class UserDboUpdateToOneWithWhereWithoutProjectsInput implements _i1.JsonConvertible> { - const UserUpdateToOneWithWhereWithoutProjectsInput({ + const UserDboUpdateToOneWithWhereWithoutProjectsInput({ this.where, required this.data, }); - final _i2.UserWhereInput? where; + final _i2.UserDboWhereInput? where; - final _i1.PrismaUnion<_i2.UserUpdateWithoutProjectsInput, - _i2.UserUncheckedUpdateWithoutProjectsInput> data; + final _i1.PrismaUnion<_i2.UserDboUpdateWithoutProjectsInput, + _i2.UserDboUncheckedUpdateWithoutProjectsInput> data; @override Map toJson() => { @@ -4981,9 +5032,9 @@ class UserUpdateToOneWithWhereWithoutProjectsInput }; } -class UserUpdateOneRequiredWithoutProjectsNestedInput +class UserDboUpdateOneRequiredWithoutProjectsNestedInput implements _i1.JsonConvertible> { - const UserUpdateOneRequiredWithoutProjectsNestedInput({ + const UserDboUpdateOneRequiredWithoutProjectsNestedInput({ this.create, this.connectOrCreate, this.upsert, @@ -4991,19 +5042,19 @@ class UserUpdateOneRequiredWithoutProjectsNestedInput this.update, }); - final _i1.PrismaUnion<_i2.UserCreateWithoutProjectsInput, - _i2.UserUncheckedCreateWithoutProjectsInput>? create; + final _i1.PrismaUnion<_i2.UserDboCreateWithoutProjectsInput, + _i2.UserDboUncheckedCreateWithoutProjectsInput>? create; - final _i2.UserCreateOrConnectWithoutProjectsInput? connectOrCreate; + final _i2.UserDboCreateOrConnectWithoutProjectsInput? connectOrCreate; - final _i2.UserUpsertWithoutProjectsInput? upsert; + final _i2.UserDboUpsertWithoutProjectsInput? upsert; - final _i2.UserWhereUniqueInput? connect; + final _i2.UserDboWhereUniqueInput? connect; final _i1.PrismaUnion< - _i2.UserUpdateToOneWithWhereWithoutProjectsInput, - _i1.PrismaUnion<_i2.UserUpdateWithoutProjectsInput, - _i2.UserUncheckedUpdateWithoutProjectsInput>>? update; + _i2.UserDboUpdateToOneWithWhereWithoutProjectsInput, + _i1.PrismaUnion<_i2.UserDboUpdateWithoutProjectsInput, + _i2.UserDboUncheckedUpdateWithoutProjectsInput>>? update; @override Map toJson() => { @@ -5015,9 +5066,9 @@ class UserUpdateOneRequiredWithoutProjectsNestedInput }; } -class ProjectUpdateWithoutTimeEntriesInput +class ProjectDboUpdateWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const ProjectUpdateWithoutTimeEntriesInput({ + const ProjectDboUpdateWithoutTimeEntriesInput({ this.id, this.name, this.description, @@ -5048,9 +5099,9 @@ class ProjectUpdateWithoutTimeEntriesInput final _i1.PrismaUnion? updatedAt; - final _i2.TaskUpdateManyWithoutProjectNestedInput? tasks; + final _i2.TaskDboUpdateManyWithoutProjectNestedInput? tasks; - final _i2.UserUpdateOneRequiredWithoutProjectsNestedInput? user; + final _i2.UserDboUpdateOneRequiredWithoutProjectsNestedInput? user; @override Map toJson() => { @@ -5065,9 +5116,9 @@ class ProjectUpdateWithoutTimeEntriesInput }; } -class ProjectUncheckedUpdateWithoutTimeEntriesInput +class ProjectDboUncheckedUpdateWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const ProjectUncheckedUpdateWithoutTimeEntriesInput({ + const ProjectDboUncheckedUpdateWithoutTimeEntriesInput({ this.id, this.name, this.description, @@ -5100,7 +5151,7 @@ class ProjectUncheckedUpdateWithoutTimeEntriesInput final _i1.PrismaUnion? updatedAt; - final _i2.TaskUncheckedUpdateManyWithoutProjectNestedInput? tasks; + final _i2.TaskDboUncheckedUpdateManyWithoutProjectNestedInput? tasks; @override Map toJson() => { @@ -5115,21 +5166,21 @@ class ProjectUncheckedUpdateWithoutTimeEntriesInput }; } -class ProjectUpsertWithoutTimeEntriesInput +class ProjectDboUpsertWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const ProjectUpsertWithoutTimeEntriesInput({ + const ProjectDboUpsertWithoutTimeEntriesInput({ required this.update, required this.create, this.where, }); - final _i1.PrismaUnion<_i2.ProjectUpdateWithoutTimeEntriesInput, - _i2.ProjectUncheckedUpdateWithoutTimeEntriesInput> update; + final _i1.PrismaUnion<_i2.ProjectDboUpdateWithoutTimeEntriesInput, + _i2.ProjectDboUncheckedUpdateWithoutTimeEntriesInput> update; - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTimeEntriesInput, - _i2.ProjectUncheckedCreateWithoutTimeEntriesInput> create; + final _i1.PrismaUnion<_i2.ProjectDboCreateWithoutTimeEntriesInput, + _i2.ProjectDboUncheckedCreateWithoutTimeEntriesInput> create; - final _i2.ProjectWhereInput? where; + final _i2.ProjectDboWhereInput? where; @override Map toJson() => { @@ -5139,17 +5190,17 @@ class ProjectUpsertWithoutTimeEntriesInput }; } -class ProjectUpdateToOneWithWhereWithoutTimeEntriesInput +class ProjectDboUpdateToOneWithWhereWithoutTimeEntriesInput implements _i1.JsonConvertible> { - const ProjectUpdateToOneWithWhereWithoutTimeEntriesInput({ + const ProjectDboUpdateToOneWithWhereWithoutTimeEntriesInput({ this.where, required this.data, }); - final _i2.ProjectWhereInput? where; + final _i2.ProjectDboWhereInput? where; - final _i1.PrismaUnion<_i2.ProjectUpdateWithoutTimeEntriesInput, - _i2.ProjectUncheckedUpdateWithoutTimeEntriesInput> data; + final _i1.PrismaUnion<_i2.ProjectDboUpdateWithoutTimeEntriesInput, + _i2.ProjectDboUncheckedUpdateWithoutTimeEntriesInput> data; @override Map toJson() => { @@ -5158,9 +5209,9 @@ class ProjectUpdateToOneWithWhereWithoutTimeEntriesInput }; } -class ProjectUpdateOneRequiredWithoutTimeEntriesNestedInput +class ProjectDboUpdateOneRequiredWithoutTimeEntriesNestedInput implements _i1.JsonConvertible> { - const ProjectUpdateOneRequiredWithoutTimeEntriesNestedInput({ + const ProjectDboUpdateOneRequiredWithoutTimeEntriesNestedInput({ this.create, this.connectOrCreate, this.upsert, @@ -5168,19 +5219,19 @@ class ProjectUpdateOneRequiredWithoutTimeEntriesNestedInput this.update, }); - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTimeEntriesInput, - _i2.ProjectUncheckedCreateWithoutTimeEntriesInput>? create; + final _i1.PrismaUnion<_i2.ProjectDboCreateWithoutTimeEntriesInput, + _i2.ProjectDboUncheckedCreateWithoutTimeEntriesInput>? create; - final _i2.ProjectCreateOrConnectWithoutTimeEntriesInput? connectOrCreate; + final _i2.ProjectDboCreateOrConnectWithoutTimeEntriesInput? connectOrCreate; - final _i2.ProjectUpsertWithoutTimeEntriesInput? upsert; + final _i2.ProjectDboUpsertWithoutTimeEntriesInput? upsert; - final _i2.ProjectWhereUniqueInput? connect; + final _i2.ProjectDboWhereUniqueInput? connect; final _i1.PrismaUnion< - _i2.ProjectUpdateToOneWithWhereWithoutTimeEntriesInput, - _i1.PrismaUnion<_i2.ProjectUpdateWithoutTimeEntriesInput, - _i2.ProjectUncheckedUpdateWithoutTimeEntriesInput>>? update; + _i2.ProjectDboUpdateToOneWithWhereWithoutTimeEntriesInput, + _i1.PrismaUnion<_i2.ProjectDboUpdateWithoutTimeEntriesInput, + _i2.ProjectDboUncheckedUpdateWithoutTimeEntriesInput>>? update; @override Map toJson() => { @@ -5192,9 +5243,9 @@ class ProjectUpdateOneRequiredWithoutTimeEntriesNestedInput }; } -class TimeEntryUpdateWithoutUserInput +class TimeEntryDboUpdateWithoutUserInput implements _i1.JsonConvertible> { - const TimeEntryUpdateWithoutUserInput({ + const TimeEntryDboUpdateWithoutUserInput({ this.id, this.startTime, this.endTime, @@ -5223,7 +5274,7 @@ class TimeEntryUpdateWithoutUserInput final _i1.PrismaUnion? updatedAt; - final _i2.ProjectUpdateOneRequiredWithoutTimeEntriesNestedInput? project; + final _i2.ProjectDboUpdateOneRequiredWithoutTimeEntriesNestedInput? project; @override Map toJson() => { @@ -5237,21 +5288,21 @@ class TimeEntryUpdateWithoutUserInput }; } -class TimeEntryUpsertWithWhereUniqueWithoutUserInput +class TimeEntryDboUpsertWithWhereUniqueWithoutUserInput implements _i1.JsonConvertible> { - const TimeEntryUpsertWithWhereUniqueWithoutUserInput({ + const TimeEntryDboUpsertWithWhereUniqueWithoutUserInput({ required this.where, required this.update, required this.create, }); - final _i2.TimeEntryWhereUniqueInput where; + final _i2.TimeEntryDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithoutUserInput, - _i2.TimeEntryUncheckedUpdateWithoutUserInput> update; + final _i1.PrismaUnion<_i2.TimeEntryDboUpdateWithoutUserInput, + _i2.TimeEntryDboUncheckedUpdateWithoutUserInput> update; - final _i1.PrismaUnion<_i2.TimeEntryCreateWithoutUserInput, - _i2.TimeEntryUncheckedCreateWithoutUserInput> create; + final _i1.PrismaUnion<_i2.TimeEntryDboCreateWithoutUserInput, + _i2.TimeEntryDboUncheckedCreateWithoutUserInput> create; @override Map toJson() => { @@ -5261,9 +5312,9 @@ class TimeEntryUpsertWithWhereUniqueWithoutUserInput }; } -class TimeEntryUpdateManyWithoutUserNestedInput +class TimeEntryDboUpdateManyWithoutUserNestedInput implements _i1.JsonConvertible> { - const TimeEntryUpdateManyWithoutUserNestedInput({ + const TimeEntryDboUpdateManyWithoutUserNestedInput({ this.create, this.connectOrCreate, this.upsert, @@ -5278,40 +5329,43 @@ class TimeEntryUpdateManyWithoutUserNestedInput }); final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutUserInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutUserInput>>>>? create; + _i2.TimeEntryDboCreateWithoutUserInput, + _i1.PrismaUnion< + Iterable<_i2.TimeEntryDboCreateWithoutUserInput>, + _i1.PrismaUnion<_i2.TimeEntryDboUncheckedCreateWithoutUserInput, + Iterable<_i2.TimeEntryDboUncheckedCreateWithoutUserInput>>>>? + create; - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutUserInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutUserInput>>? connectOrCreate; + final _i1.PrismaUnion<_i2.TimeEntryDboCreateOrConnectWithoutUserInput, + Iterable<_i2.TimeEntryDboCreateOrConnectWithoutUserInput>>? + connectOrCreate; - final _i1.PrismaUnion<_i2.TimeEntryUpsertWithWhereUniqueWithoutUserInput, - Iterable<_i2.TimeEntryUpsertWithWhereUniqueWithoutUserInput>>? upsert; + final _i1.PrismaUnion<_i2.TimeEntryDboUpsertWithWhereUniqueWithoutUserInput, + Iterable<_i2.TimeEntryDboUpsertWithWhereUniqueWithoutUserInput>>? upsert; - final _i2.TimeEntryCreateManyUserInputEnvelope? createMany; + final _i2.TimeEntryDboCreateManyUserInputEnvelope? createMany; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? set; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? set; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? disconnect; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? disconnect; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? delete; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? delete; - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; + final _i1.PrismaUnion<_i2.TimeEntryDboWhereUniqueInput, + Iterable<_i2.TimeEntryDboWhereUniqueInput>>? connect; - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithWhereUniqueWithoutUserInput, - Iterable<_i2.TimeEntryUpdateWithWhereUniqueWithoutUserInput>>? update; + final _i1.PrismaUnion<_i2.TimeEntryDboUpdateWithWhereUniqueWithoutUserInput, + Iterable<_i2.TimeEntryDboUpdateWithWhereUniqueWithoutUserInput>>? update; - final _i1.PrismaUnion<_i2.TimeEntryUpdateManyWithWhereWithoutUserInput, - Iterable<_i2.TimeEntryUpdateManyWithWhereWithoutUserInput>>? updateMany; + final _i1.PrismaUnion<_i2.TimeEntryDboUpdateManyWithWhereWithoutUserInput, + Iterable<_i2.TimeEntryDboUpdateManyWithWhereWithoutUserInput>>? + updateMany; - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereInput, - Iterable<_i2.TimeEntryScalarWhereInput>>? deleteMany; + final _i1.PrismaUnion<_i2.TimeEntryDboScalarWhereInput, + Iterable<_i2.TimeEntryDboScalarWhereInput>>? deleteMany; @override Map toJson() => { @@ -5329,8 +5383,8 @@ class TimeEntryUpdateManyWithoutUserNestedInput }; } -class UserUpdateInput implements _i1.JsonConvertible> { - const UserUpdateInput({ +class UserDboUpdateInput implements _i1.JsonConvertible> { + const UserDboUpdateInput({ this.id, this.name, this.email, @@ -5355,9 +5409,9 @@ class UserUpdateInput implements _i1.JsonConvertible> { final _i1.PrismaUnion? updatedAt; - final _i2.ProjectUpdateManyWithoutUserNestedInput? projects; + final _i2.ProjectDboUpdateManyWithoutUserNestedInput? projects; - final _i2.TimeEntryUpdateManyWithoutUserNestedInput? timeEntries; + final _i2.TimeEntryDboUpdateManyWithoutUserNestedInput? timeEntries; @override Map toJson() => { @@ -5372,9 +5426,9 @@ class UserUpdateInput implements _i1.JsonConvertible> { }; } -class UserUncheckedUpdateInput +class UserDboUncheckedUpdateInput implements _i1.JsonConvertible> { - const UserUncheckedUpdateInput({ + const UserDboUncheckedUpdateInput({ this.id, this.name, this.email, @@ -5399,9 +5453,9 @@ class UserUncheckedUpdateInput final _i1.PrismaUnion? updatedAt; - final _i2.ProjectUncheckedUpdateManyWithoutUserNestedInput? projects; + final _i2.ProjectDboUncheckedUpdateManyWithoutUserNestedInput? projects; - final _i2.TimeEntryUncheckedUpdateManyWithoutUserNestedInput? timeEntries; + final _i2.TimeEntryDboUncheckedUpdateManyWithoutUserNestedInput? timeEntries; @override Map toJson() => { @@ -5416,9 +5470,9 @@ class UserUncheckedUpdateInput }; } -class UserUpdateManyMutationInput +class UserDboUpdateManyMutationInput implements _i1.JsonConvertible> { - const UserUpdateManyMutationInput({ + const UserDboUpdateManyMutationInput({ this.id, this.name, this.email, @@ -5452,9 +5506,9 @@ class UserUpdateManyMutationInput }; } -class UserUncheckedUpdateManyInput +class UserDboUncheckedUpdateManyInput implements _i1.JsonConvertible> { - const UserUncheckedUpdateManyInput({ + const UserDboUncheckedUpdateManyInput({ this.id, this.name, this.email, @@ -5488,8 +5542,8 @@ class UserUncheckedUpdateManyInput }; } -class UserCountAggregateOutputType { - const UserCountAggregateOutputType({ +class UserDboCountAggregateOutputType { + const UserDboCountAggregateOutputType({ this.id, this.name, this.email, @@ -5499,8 +5553,8 @@ class UserCountAggregateOutputType { this.$all, }); - factory UserCountAggregateOutputType.fromJson(Map json) => - UserCountAggregateOutputType( + factory UserDboCountAggregateOutputType.fromJson(Map json) => + UserDboCountAggregateOutputType( id: json['id'], name: json['name'], email: json['email'], @@ -5535,8 +5589,8 @@ class UserCountAggregateOutputType { }; } -class UserMinAggregateOutputType { - const UserMinAggregateOutputType({ +class UserDboMinAggregateOutputType { + const UserDboMinAggregateOutputType({ this.id, this.name, this.email, @@ -5545,8 +5599,8 @@ class UserMinAggregateOutputType { this.updatedAt, }); - factory UserMinAggregateOutputType.fromJson(Map json) => - UserMinAggregateOutputType( + factory UserDboMinAggregateOutputType.fromJson(Map json) => + UserDboMinAggregateOutputType( id: json['id'], name: json['name'], email: json['email'], @@ -5585,8 +5639,8 @@ class UserMinAggregateOutputType { }; } -class UserMaxAggregateOutputType { - const UserMaxAggregateOutputType({ +class UserDboMaxAggregateOutputType { + const UserDboMaxAggregateOutputType({ this.id, this.name, this.email, @@ -5595,8 +5649,8 @@ class UserMaxAggregateOutputType { this.updatedAt, }); - factory UserMaxAggregateOutputType.fromJson(Map json) => - UserMaxAggregateOutputType( + factory UserDboMaxAggregateOutputType.fromJson(Map json) => + UserDboMaxAggregateOutputType( id: json['id'], name: json['name'], email: json['email'], @@ -5635,8 +5689,8 @@ class UserMaxAggregateOutputType { }; } -class UserGroupByOutputType { - const UserGroupByOutputType({ +class UserDboGroupByOutputType { + const UserDboGroupByOutputType({ this.id, this.name, this.email, @@ -5648,7 +5702,8 @@ class UserGroupByOutputType { this.$max, }); - factory UserGroupByOutputType.fromJson(Map json) => UserGroupByOutputType( + factory UserDboGroupByOutputType.fromJson(Map json) => + UserDboGroupByOutputType( id: json['id'], name: json['name'], email: json['email'], @@ -5664,13 +5719,13 @@ class UserGroupByOutputType { _ => json['updatedAt'] }, $count: json['_count'] is Map - ? _i2.UserCountAggregateOutputType.fromJson(json['_count']) + ? _i2.UserDboCountAggregateOutputType.fromJson(json['_count']) : null, $min: json['_min'] is Map - ? _i2.UserMinAggregateOutputType.fromJson(json['_min']) + ? _i2.UserDboMinAggregateOutputType.fromJson(json['_min']) : null, $max: json['_max'] is Map - ? _i2.UserMaxAggregateOutputType.fromJson(json['_max']) + ? _i2.UserDboMaxAggregateOutputType.fromJson(json['_max']) : null, ); @@ -5686,11 +5741,11 @@ class UserGroupByOutputType { final DateTime? updatedAt; - final _i2.UserCountAggregateOutputType? $count; + final _i2.UserDboCountAggregateOutputType? $count; - final _i2.UserMinAggregateOutputType? $min; + final _i2.UserDboMinAggregateOutputType? $min; - final _i2.UserMaxAggregateOutputType? $max; + final _i2.UserDboMaxAggregateOutputType? $max; Map toJson() => { 'id': id, @@ -5705,9 +5760,9 @@ class UserGroupByOutputType { }; } -class UserCountOrderByAggregateInput +class UserDboCountOrderByAggregateInput implements _i1.JsonConvertible> { - const UserCountOrderByAggregateInput({ + const UserDboCountOrderByAggregateInput({ this.id, this.name, this.email, @@ -5739,9 +5794,9 @@ class UserCountOrderByAggregateInput }; } -class UserMaxOrderByAggregateInput +class UserDboMaxOrderByAggregateInput implements _i1.JsonConvertible> { - const UserMaxOrderByAggregateInput({ + const UserDboMaxOrderByAggregateInput({ this.id, this.name, this.email, @@ -5773,9 +5828,9 @@ class UserMaxOrderByAggregateInput }; } -class UserMinOrderByAggregateInput +class UserDboMinOrderByAggregateInput implements _i1.JsonConvertible> { - const UserMinOrderByAggregateInput({ + const UserDboMinOrderByAggregateInput({ this.id, this.name, this.email, @@ -5807,9 +5862,9 @@ class UserMinOrderByAggregateInput }; } -class UserOrderByWithAggregationInput +class UserDboOrderByWithAggregationInput implements _i1.JsonConvertible> { - const UserOrderByWithAggregationInput({ + const UserDboOrderByWithAggregationInput({ this.id, this.name, this.email, @@ -5833,11 +5888,11 @@ class UserOrderByWithAggregationInput final _i2.SortOrder? updatedAt; - final _i2.UserCountOrderByAggregateInput? $count; + final _i2.UserDboCountOrderByAggregateInput? $count; - final _i2.UserMaxOrderByAggregateInput? $max; + final _i2.UserDboMaxOrderByAggregateInput? $max; - final _i2.UserMinOrderByAggregateInput? $min; + final _i2.UserDboMinOrderByAggregateInput? $min; @override Map toJson() => { @@ -6144,9 +6199,9 @@ class DateTimeWithAggregatesFilter }; } -class UserScalarWhereWithAggregatesInput +class UserDboScalarWhereWithAggregatesInput implements _i1.JsonConvertible> { - const UserScalarWhereWithAggregatesInput({ + const UserDboScalarWhereWithAggregatesInput({ this.AND, this.OR, this.NOT, @@ -6158,13 +6213,13 @@ class UserScalarWhereWithAggregatesInput this.updatedAt, }); - final _i1.PrismaUnion<_i2.UserScalarWhereWithAggregatesInput, - Iterable<_i2.UserScalarWhereWithAggregatesInput>>? AND; + final _i1.PrismaUnion<_i2.UserDboScalarWhereWithAggregatesInput, + Iterable<_i2.UserDboScalarWhereWithAggregatesInput>>? AND; - final Iterable<_i2.UserScalarWhereWithAggregatesInput>? OR; + final Iterable<_i2.UserDboScalarWhereWithAggregatesInput>? OR; - final _i1.PrismaUnion<_i2.UserScalarWhereWithAggregatesInput, - Iterable<_i2.UserScalarWhereWithAggregatesInput>>? NOT; + final _i1.PrismaUnion<_i2.UserDboScalarWhereWithAggregatesInput, + Iterable<_i2.UserDboScalarWhereWithAggregatesInput>>? NOT; final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? id; @@ -6192,9 +6247,9 @@ class UserScalarWhereWithAggregatesInput }; } -class UserCountAggregateOutputTypeSelect +class UserDboCountAggregateOutputTypeSelect implements _i1.JsonConvertible> { - const UserCountAggregateOutputTypeSelect({ + const UserDboCountAggregateOutputTypeSelect({ this.id, this.name, this.email, @@ -6230,19 +6285,19 @@ class UserCountAggregateOutputTypeSelect }; } -class UserGroupByOutputTypeCountArgs +class UserDboGroupByOutputTypeCountArgs implements _i1.JsonConvertible> { - const UserGroupByOutputTypeCountArgs({this.select}); + const UserDboGroupByOutputTypeCountArgs({this.select}); - final _i2.UserCountAggregateOutputTypeSelect? select; + final _i2.UserDboCountAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class UserMinAggregateOutputTypeSelect +class UserDboMinAggregateOutputTypeSelect implements _i1.JsonConvertible> { - const UserMinAggregateOutputTypeSelect({ + const UserDboMinAggregateOutputTypeSelect({ this.id, this.name, this.email, @@ -6274,19 +6329,19 @@ class UserMinAggregateOutputTypeSelect }; } -class UserGroupByOutputTypeMinArgs +class UserDboGroupByOutputTypeMinArgs implements _i1.JsonConvertible> { - const UserGroupByOutputTypeMinArgs({this.select}); + const UserDboGroupByOutputTypeMinArgs({this.select}); - final _i2.UserMinAggregateOutputTypeSelect? select; + final _i2.UserDboMinAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class UserMaxAggregateOutputTypeSelect +class UserDboMaxAggregateOutputTypeSelect implements _i1.JsonConvertible> { - const UserMaxAggregateOutputTypeSelect({ + const UserDboMaxAggregateOutputTypeSelect({ this.id, this.name, this.email, @@ -6318,19 +6373,19 @@ class UserMaxAggregateOutputTypeSelect }; } -class UserGroupByOutputTypeMaxArgs +class UserDboGroupByOutputTypeMaxArgs implements _i1.JsonConvertible> { - const UserGroupByOutputTypeMaxArgs({this.select}); + const UserDboGroupByOutputTypeMaxArgs({this.select}); - final _i2.UserMaxAggregateOutputTypeSelect? select; + final _i2.UserDboMaxAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class UserGroupByOutputTypeSelect +class UserDboGroupByOutputTypeSelect implements _i1.JsonConvertible> { - const UserGroupByOutputTypeSelect({ + const UserDboGroupByOutputTypeSelect({ this.id, this.name, this.email, @@ -6354,11 +6409,11 @@ class UserGroupByOutputTypeSelect final bool? updatedAt; - final _i1.PrismaUnion? $count; + final _i1.PrismaUnion? $count; - final _i1.PrismaUnion? $min; + final _i1.PrismaUnion? $min; - final _i1.PrismaUnion? $max; + final _i1.PrismaUnion? $max; @override Map toJson() => { @@ -6374,30 +6429,30 @@ class UserGroupByOutputTypeSelect }; } -class AggregateUser { - const AggregateUser({ +class AggregateUserDbo { + const AggregateUserDbo({ this.$count, this.$min, this.$max, }); - factory AggregateUser.fromJson(Map json) => AggregateUser( + factory AggregateUserDbo.fromJson(Map json) => AggregateUserDbo( $count: json['_count'] is Map - ? _i2.UserCountAggregateOutputType.fromJson(json['_count']) + ? _i2.UserDboCountAggregateOutputType.fromJson(json['_count']) : null, $min: json['_min'] is Map - ? _i2.UserMinAggregateOutputType.fromJson(json['_min']) + ? _i2.UserDboMinAggregateOutputType.fromJson(json['_min']) : null, $max: json['_max'] is Map - ? _i2.UserMaxAggregateOutputType.fromJson(json['_max']) + ? _i2.UserDboMaxAggregateOutputType.fromJson(json['_max']) : null, ); - final _i2.UserCountAggregateOutputType? $count; + final _i2.UserDboCountAggregateOutputType? $count; - final _i2.UserMinAggregateOutputType? $min; + final _i2.UserDboMinAggregateOutputType? $min; - final _i2.UserMaxAggregateOutputType? $max; + final _i2.UserDboMaxAggregateOutputType? $max; Map toJson() => { '_count': $count?.toJson(), @@ -6406,48 +6461,49 @@ class AggregateUser { }; } -class AggregateUserCountArgs +class AggregateUserDboCountArgs implements _i1.JsonConvertible> { - const AggregateUserCountArgs({this.select}); + const AggregateUserDboCountArgs({this.select}); - final _i2.UserCountAggregateOutputTypeSelect? select; + final _i2.UserDboCountAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class AggregateUserMinArgs +class AggregateUserDboMinArgs implements _i1.JsonConvertible> { - const AggregateUserMinArgs({this.select}); + const AggregateUserDboMinArgs({this.select}); - final _i2.UserMinAggregateOutputTypeSelect? select; + final _i2.UserDboMinAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class AggregateUserMaxArgs +class AggregateUserDboMaxArgs implements _i1.JsonConvertible> { - const AggregateUserMaxArgs({this.select}); + const AggregateUserDboMaxArgs({this.select}); - final _i2.UserMaxAggregateOutputTypeSelect? select; + final _i2.UserDboMaxAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class AggregateUserSelect implements _i1.JsonConvertible> { - const AggregateUserSelect({ +class AggregateUserDboSelect + implements _i1.JsonConvertible> { + const AggregateUserDboSelect({ this.$count, this.$min, this.$max, }); - final _i1.PrismaUnion? $count; + final _i1.PrismaUnion? $count; - final _i1.PrismaUnion? $min; + final _i1.PrismaUnion? $min; - final _i1.PrismaUnion? $max; + final _i1.PrismaUnion? $max; @override Map toJson() => { @@ -6457,8 +6513,9 @@ class AggregateUserSelect implements _i1.JsonConvertible> { }; } -class ProjectCreateInput implements _i1.JsonConvertible> { - const ProjectCreateInput({ +class ProjectDboCreateInput + implements _i1.JsonConvertible> { + const ProjectDboCreateInput({ this.id, required this.name, this.description, @@ -6482,11 +6539,11 @@ class ProjectCreateInput implements _i1.JsonConvertible> { final DateTime? updatedAt; - final _i2.TaskCreateNestedManyWithoutProjectInput? tasks; + final _i2.TaskDboCreateNestedManyWithoutProjectInput? tasks; - final _i2.TimeEntryCreateNestedManyWithoutProjectInput? timeEntries; + final _i2.TimeEntryDboCreateNestedManyWithoutProjectInput? timeEntries; - final _i2.UserCreateNestedOneWithoutProjectsInput user; + final _i2.UserDboCreateNestedOneWithoutProjectsInput user; @override Map toJson() => { @@ -6502,9 +6559,9 @@ class ProjectCreateInput implements _i1.JsonConvertible> { }; } -class ProjectUncheckedCreateInput +class ProjectDboUncheckedCreateInput implements _i1.JsonConvertible> { - const ProjectUncheckedCreateInput({ + const ProjectDboUncheckedCreateInput({ this.id, required this.name, this.description, @@ -6530,9 +6587,10 @@ class ProjectUncheckedCreateInput final DateTime? updatedAt; - final _i2.TaskUncheckedCreateNestedManyWithoutProjectInput? tasks; + final _i2.TaskDboUncheckedCreateNestedManyWithoutProjectInput? tasks; - final _i2.TimeEntryUncheckedCreateNestedManyWithoutProjectInput? timeEntries; + final _i2.TimeEntryDboUncheckedCreateNestedManyWithoutProjectInput? + timeEntries; @override Map toJson() => { @@ -6548,9 +6606,9 @@ class ProjectUncheckedCreateInput }; } -class ProjectCreateManyInput +class ProjectDboCreateManyInput implements _i1.JsonConvertible> { - const ProjectCreateManyInput({ + const ProjectDboCreateManyInput({ this.id, required this.name, this.description, @@ -6586,16 +6644,16 @@ class ProjectCreateManyInput }; } -class CreateManyProjectAndReturnOutputTypeUserArgs +class CreateManyProjectDboAndReturnOutputTypeUserArgs implements _i1.JsonConvertible> { - const CreateManyProjectAndReturnOutputTypeUserArgs({ + const CreateManyProjectDboAndReturnOutputTypeUserArgs({ this.select, this.include, }); - final _i2.UserSelect? select; + final _i2.UserDboSelect? select; - final _i2.UserInclude? include; + final _i2.UserDboInclude? include; @override Map toJson() => { @@ -6604,9 +6662,9 @@ class CreateManyProjectAndReturnOutputTypeUserArgs }; } -class CreateManyProjectAndReturnOutputTypeSelect +class CreateManyProjectDboAndReturnOutputTypeSelect implements _i1.JsonConvertible> { - const CreateManyProjectAndReturnOutputTypeSelect({ + const CreateManyProjectDboAndReturnOutputTypeSelect({ this.id, this.name, this.description, @@ -6631,7 +6689,8 @@ class CreateManyProjectAndReturnOutputTypeSelect final bool? updatedAt; - final _i1.PrismaUnion? + final _i1 + .PrismaUnion? user; @override @@ -6647,19 +6706,21 @@ class CreateManyProjectAndReturnOutputTypeSelect }; } -class CreateManyProjectAndReturnOutputTypeInclude +class CreateManyProjectDboAndReturnOutputTypeInclude implements _i1.JsonConvertible> { - const CreateManyProjectAndReturnOutputTypeInclude({this.user}); + const CreateManyProjectDboAndReturnOutputTypeInclude({this.user}); - final _i1.PrismaUnion? + final _i1 + .PrismaUnion? user; @override Map toJson() => {'user': user}; } -class ProjectUpdateInput implements _i1.JsonConvertible> { - const ProjectUpdateInput({ +class ProjectDboUpdateInput + implements _i1.JsonConvertible> { + const ProjectDboUpdateInput({ this.id, this.name, this.description, @@ -6691,11 +6752,11 @@ class ProjectUpdateInput implements _i1.JsonConvertible> { final _i1.PrismaUnion? updatedAt; - final _i2.TaskUpdateManyWithoutProjectNestedInput? tasks; + final _i2.TaskDboUpdateManyWithoutProjectNestedInput? tasks; - final _i2.TimeEntryUpdateManyWithoutProjectNestedInput? timeEntries; + final _i2.TimeEntryDboUpdateManyWithoutProjectNestedInput? timeEntries; - final _i2.UserUpdateOneRequiredWithoutProjectsNestedInput? user; + final _i2.UserDboUpdateOneRequiredWithoutProjectsNestedInput? user; @override Map toJson() => { @@ -6711,9 +6772,9 @@ class ProjectUpdateInput implements _i1.JsonConvertible> { }; } -class ProjectUncheckedUpdateInput +class ProjectDboUncheckedUpdateInput implements _i1.JsonConvertible> { - const ProjectUncheckedUpdateInput({ + const ProjectDboUncheckedUpdateInput({ this.id, this.name, this.description, @@ -6747,9 +6808,10 @@ class ProjectUncheckedUpdateInput final _i1.PrismaUnion? updatedAt; - final _i2.TaskUncheckedUpdateManyWithoutProjectNestedInput? tasks; + final _i2.TaskDboUncheckedUpdateManyWithoutProjectNestedInput? tasks; - final _i2.TimeEntryUncheckedUpdateManyWithoutProjectNestedInput? timeEntries; + final _i2.TimeEntryDboUncheckedUpdateManyWithoutProjectNestedInput? + timeEntries; @override Map toJson() => { @@ -6765,9 +6827,9 @@ class ProjectUncheckedUpdateInput }; } -class ProjectUncheckedUpdateManyInput +class ProjectDboUncheckedUpdateManyInput implements _i1.JsonConvertible> { - const ProjectUncheckedUpdateManyInput({ + const ProjectDboUncheckedUpdateManyInput({ this.id, this.name, this.description, @@ -6811,8 +6873,8 @@ class ProjectUncheckedUpdateManyInput }; } -class ProjectCountAggregateOutputType { - const ProjectCountAggregateOutputType({ +class ProjectDboCountAggregateOutputType { + const ProjectDboCountAggregateOutputType({ this.id, this.name, this.description, @@ -6823,8 +6885,8 @@ class ProjectCountAggregateOutputType { this.$all, }); - factory ProjectCountAggregateOutputType.fromJson(Map json) => - ProjectCountAggregateOutputType( + factory ProjectDboCountAggregateOutputType.fromJson(Map json) => + ProjectDboCountAggregateOutputType( id: json['id'], name: json['name'], description: json['description'], @@ -6863,8 +6925,8 @@ class ProjectCountAggregateOutputType { }; } -class ProjectMinAggregateOutputType { - const ProjectMinAggregateOutputType({ +class ProjectDboMinAggregateOutputType { + const ProjectDboMinAggregateOutputType({ this.id, this.name, this.description, @@ -6874,8 +6936,8 @@ class ProjectMinAggregateOutputType { this.updatedAt, }); - factory ProjectMinAggregateOutputType.fromJson(Map json) => - ProjectMinAggregateOutputType( + factory ProjectDboMinAggregateOutputType.fromJson(Map json) => + ProjectDboMinAggregateOutputType( id: json['id'], name: json['name'], description: json['description'], @@ -6918,8 +6980,8 @@ class ProjectMinAggregateOutputType { }; } -class ProjectMaxAggregateOutputType { - const ProjectMaxAggregateOutputType({ +class ProjectDboMaxAggregateOutputType { + const ProjectDboMaxAggregateOutputType({ this.id, this.name, this.description, @@ -6929,8 +6991,8 @@ class ProjectMaxAggregateOutputType { this.updatedAt, }); - factory ProjectMaxAggregateOutputType.fromJson(Map json) => - ProjectMaxAggregateOutputType( + factory ProjectDboMaxAggregateOutputType.fromJson(Map json) => + ProjectDboMaxAggregateOutputType( id: json['id'], name: json['name'], description: json['description'], @@ -6973,8 +7035,8 @@ class ProjectMaxAggregateOutputType { }; } -class ProjectGroupByOutputType { - const ProjectGroupByOutputType({ +class ProjectDboGroupByOutputType { + const ProjectDboGroupByOutputType({ this.id, this.name, this.description, @@ -6987,8 +7049,8 @@ class ProjectGroupByOutputType { this.$max, }); - factory ProjectGroupByOutputType.fromJson(Map json) => - ProjectGroupByOutputType( + factory ProjectDboGroupByOutputType.fromJson(Map json) => + ProjectDboGroupByOutputType( id: json['id'], name: json['name'], description: json['description'], @@ -7005,13 +7067,13 @@ class ProjectGroupByOutputType { _ => json['updatedAt'] }, $count: json['_count'] is Map - ? _i2.ProjectCountAggregateOutputType.fromJson(json['_count']) + ? _i2.ProjectDboCountAggregateOutputType.fromJson(json['_count']) : null, $min: json['_min'] is Map - ? _i2.ProjectMinAggregateOutputType.fromJson(json['_min']) + ? _i2.ProjectDboMinAggregateOutputType.fromJson(json['_min']) : null, $max: json['_max'] is Map - ? _i2.ProjectMaxAggregateOutputType.fromJson(json['_max']) + ? _i2.ProjectDboMaxAggregateOutputType.fromJson(json['_max']) : null, ); @@ -7029,11 +7091,11 @@ class ProjectGroupByOutputType { final DateTime? updatedAt; - final _i2.ProjectCountAggregateOutputType? $count; + final _i2.ProjectDboCountAggregateOutputType? $count; - final _i2.ProjectMinAggregateOutputType? $min; + final _i2.ProjectDboMinAggregateOutputType? $min; - final _i2.ProjectMaxAggregateOutputType? $max; + final _i2.ProjectDboMaxAggregateOutputType? $max; Map toJson() => { 'id': id, @@ -7049,9 +7111,9 @@ class ProjectGroupByOutputType { }; } -class ProjectCountOrderByAggregateInput +class ProjectDboCountOrderByAggregateInput implements _i1.JsonConvertible> { - const ProjectCountOrderByAggregateInput({ + const ProjectDboCountOrderByAggregateInput({ this.id, this.name, this.description, @@ -7087,9 +7149,9 @@ class ProjectCountOrderByAggregateInput }; } -class ProjectMaxOrderByAggregateInput +class ProjectDboMaxOrderByAggregateInput implements _i1.JsonConvertible> { - const ProjectMaxOrderByAggregateInput({ + const ProjectDboMaxOrderByAggregateInput({ this.id, this.name, this.description, @@ -7125,9 +7187,9 @@ class ProjectMaxOrderByAggregateInput }; } -class ProjectMinOrderByAggregateInput +class ProjectDboMinOrderByAggregateInput implements _i1.JsonConvertible> { - const ProjectMinOrderByAggregateInput({ + const ProjectDboMinOrderByAggregateInput({ this.id, this.name, this.description, @@ -7163,9 +7225,9 @@ class ProjectMinOrderByAggregateInput }; } -class ProjectOrderByWithAggregationInput +class ProjectDboOrderByWithAggregationInput implements _i1.JsonConvertible> { - const ProjectOrderByWithAggregationInput({ + const ProjectDboOrderByWithAggregationInput({ this.id, this.name, this.description, @@ -7192,11 +7254,11 @@ class ProjectOrderByWithAggregationInput final _i2.SortOrder? updatedAt; - final _i2.ProjectCountOrderByAggregateInput? $count; + final _i2.ProjectDboCountOrderByAggregateInput? $count; - final _i2.ProjectMaxOrderByAggregateInput? $max; + final _i2.ProjectDboMaxOrderByAggregateInput? $max; - final _i2.ProjectMinOrderByAggregateInput? $min; + final _i2.ProjectDboMinOrderByAggregateInput? $min; @override Map toJson() => { @@ -7408,9 +7470,9 @@ class StringNullableWithAggregatesFilter }; } -class ProjectScalarWhereWithAggregatesInput +class ProjectDboScalarWhereWithAggregatesInput implements _i1.JsonConvertible> { - const ProjectScalarWhereWithAggregatesInput({ + const ProjectDboScalarWhereWithAggregatesInput({ this.AND, this.OR, this.NOT, @@ -7423,13 +7485,13 @@ class ProjectScalarWhereWithAggregatesInput this.updatedAt, }); - final _i1.PrismaUnion<_i2.ProjectScalarWhereWithAggregatesInput, - Iterable<_i2.ProjectScalarWhereWithAggregatesInput>>? AND; + final _i1.PrismaUnion<_i2.ProjectDboScalarWhereWithAggregatesInput, + Iterable<_i2.ProjectDboScalarWhereWithAggregatesInput>>? AND; - final Iterable<_i2.ProjectScalarWhereWithAggregatesInput>? OR; + final Iterable<_i2.ProjectDboScalarWhereWithAggregatesInput>? OR; - final _i1.PrismaUnion<_i2.ProjectScalarWhereWithAggregatesInput, - Iterable<_i2.ProjectScalarWhereWithAggregatesInput>>? NOT; + final _i1.PrismaUnion<_i2.ProjectDboScalarWhereWithAggregatesInput, + Iterable<_i2.ProjectDboScalarWhereWithAggregatesInput>>? NOT; final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? id; @@ -7462,9 +7524,9 @@ class ProjectScalarWhereWithAggregatesInput }; } -class ProjectCountAggregateOutputTypeSelect +class ProjectDboCountAggregateOutputTypeSelect implements _i1.JsonConvertible> { - const ProjectCountAggregateOutputTypeSelect({ + const ProjectDboCountAggregateOutputTypeSelect({ this.id, this.name, this.description, @@ -7504,19 +7566,19 @@ class ProjectCountAggregateOutputTypeSelect }; } -class ProjectGroupByOutputTypeCountArgs +class ProjectDboGroupByOutputTypeCountArgs implements _i1.JsonConvertible> { - const ProjectGroupByOutputTypeCountArgs({this.select}); + const ProjectDboGroupByOutputTypeCountArgs({this.select}); - final _i2.ProjectCountAggregateOutputTypeSelect? select; + final _i2.ProjectDboCountAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class ProjectMinAggregateOutputTypeSelect +class ProjectDboMinAggregateOutputTypeSelect implements _i1.JsonConvertible> { - const ProjectMinAggregateOutputTypeSelect({ + const ProjectDboMinAggregateOutputTypeSelect({ this.id, this.name, this.description, @@ -7552,19 +7614,19 @@ class ProjectMinAggregateOutputTypeSelect }; } -class ProjectGroupByOutputTypeMinArgs +class ProjectDboGroupByOutputTypeMinArgs implements _i1.JsonConvertible> { - const ProjectGroupByOutputTypeMinArgs({this.select}); + const ProjectDboGroupByOutputTypeMinArgs({this.select}); - final _i2.ProjectMinAggregateOutputTypeSelect? select; + final _i2.ProjectDboMinAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class ProjectMaxAggregateOutputTypeSelect +class ProjectDboMaxAggregateOutputTypeSelect implements _i1.JsonConvertible> { - const ProjectMaxAggregateOutputTypeSelect({ + const ProjectDboMaxAggregateOutputTypeSelect({ this.id, this.name, this.description, @@ -7600,19 +7662,19 @@ class ProjectMaxAggregateOutputTypeSelect }; } -class ProjectGroupByOutputTypeMaxArgs +class ProjectDboGroupByOutputTypeMaxArgs implements _i1.JsonConvertible> { - const ProjectGroupByOutputTypeMaxArgs({this.select}); + const ProjectDboGroupByOutputTypeMaxArgs({this.select}); - final _i2.ProjectMaxAggregateOutputTypeSelect? select; + final _i2.ProjectDboMaxAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class ProjectGroupByOutputTypeSelect +class ProjectDboGroupByOutputTypeSelect implements _i1.JsonConvertible> { - const ProjectGroupByOutputTypeSelect({ + const ProjectDboGroupByOutputTypeSelect({ this.id, this.name, this.description, @@ -7639,11 +7701,11 @@ class ProjectGroupByOutputTypeSelect final bool? updatedAt; - final _i1.PrismaUnion? $count; + final _i1.PrismaUnion? $count; - final _i1.PrismaUnion? $min; + final _i1.PrismaUnion? $min; - final _i1.PrismaUnion? $max; + final _i1.PrismaUnion? $max; @override Map toJson() => { @@ -7660,30 +7722,30 @@ class ProjectGroupByOutputTypeSelect }; } -class AggregateProject { - const AggregateProject({ +class AggregateProjectDbo { + const AggregateProjectDbo({ this.$count, this.$min, this.$max, }); - factory AggregateProject.fromJson(Map json) => AggregateProject( + factory AggregateProjectDbo.fromJson(Map json) => AggregateProjectDbo( $count: json['_count'] is Map - ? _i2.ProjectCountAggregateOutputType.fromJson(json['_count']) + ? _i2.ProjectDboCountAggregateOutputType.fromJson(json['_count']) : null, $min: json['_min'] is Map - ? _i2.ProjectMinAggregateOutputType.fromJson(json['_min']) + ? _i2.ProjectDboMinAggregateOutputType.fromJson(json['_min']) : null, $max: json['_max'] is Map - ? _i2.ProjectMaxAggregateOutputType.fromJson(json['_max']) + ? _i2.ProjectDboMaxAggregateOutputType.fromJson(json['_max']) : null, ); - final _i2.ProjectCountAggregateOutputType? $count; + final _i2.ProjectDboCountAggregateOutputType? $count; - final _i2.ProjectMinAggregateOutputType? $min; + final _i2.ProjectDboMinAggregateOutputType? $min; - final _i2.ProjectMaxAggregateOutputType? $max; + final _i2.ProjectDboMaxAggregateOutputType? $max; Map toJson() => { '_count': $count?.toJson(), @@ -7692,49 +7754,49 @@ class AggregateProject { }; } -class AggregateProjectCountArgs +class AggregateProjectDboCountArgs implements _i1.JsonConvertible> { - const AggregateProjectCountArgs({this.select}); + const AggregateProjectDboCountArgs({this.select}); - final _i2.ProjectCountAggregateOutputTypeSelect? select; + final _i2.ProjectDboCountAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class AggregateProjectMinArgs +class AggregateProjectDboMinArgs implements _i1.JsonConvertible> { - const AggregateProjectMinArgs({this.select}); + const AggregateProjectDboMinArgs({this.select}); - final _i2.ProjectMinAggregateOutputTypeSelect? select; + final _i2.ProjectDboMinAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class AggregateProjectMaxArgs +class AggregateProjectDboMaxArgs implements _i1.JsonConvertible> { - const AggregateProjectMaxArgs({this.select}); + const AggregateProjectDboMaxArgs({this.select}); - final _i2.ProjectMaxAggregateOutputTypeSelect? select; + final _i2.ProjectDboMaxAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class AggregateProjectSelect +class AggregateProjectDboSelect implements _i1.JsonConvertible> { - const AggregateProjectSelect({ + const AggregateProjectDboSelect({ this.$count, this.$min, this.$max, }); - final _i1.PrismaUnion? $count; + final _i1.PrismaUnion? $count; - final _i1.PrismaUnion? $min; + final _i1.PrismaUnion? $min; - final _i1.PrismaUnion? $max; + final _i1.PrismaUnion? $max; @override Map toJson() => { @@ -7744,9 +7806,9 @@ class AggregateProjectSelect }; } -class TimeEntryCreateInput +class TimeEntryDboCreateInput implements _i1.JsonConvertible> { - const TimeEntryCreateInput({ + const TimeEntryDboCreateInput({ this.id, required this.startTime, required this.endTime, @@ -7769,9 +7831,9 @@ class TimeEntryCreateInput final DateTime? updatedAt; - final _i2.UserCreateNestedOneWithoutTimeEntriesInput user; + final _i2.UserDboCreateNestedOneWithoutTimeEntriesInput user; - final _i2.ProjectCreateNestedOneWithoutTimeEntriesInput project; + final _i2.ProjectDboCreateNestedOneWithoutTimeEntriesInput project; @override Map toJson() => { @@ -7786,9 +7848,9 @@ class TimeEntryCreateInput }; } -class TimeEntryUncheckedCreateInput +class TimeEntryDboUncheckedCreateInput implements _i1.JsonConvertible> { - const TimeEntryUncheckedCreateInput({ + const TimeEntryDboUncheckedCreateInput({ this.id, required this.startTime, required this.endTime, @@ -7828,9 +7890,9 @@ class TimeEntryUncheckedCreateInput }; } -class TimeEntryCreateManyInput +class TimeEntryDboCreateManyInput implements _i1.JsonConvertible> { - const TimeEntryCreateManyInput({ + const TimeEntryDboCreateManyInput({ this.id, required this.startTime, required this.endTime, @@ -7870,16 +7932,16 @@ class TimeEntryCreateManyInput }; } -class CreateManyTimeEntryAndReturnOutputTypeUserArgs +class CreateManyTimeEntryDboAndReturnOutputTypeUserArgs implements _i1.JsonConvertible> { - const CreateManyTimeEntryAndReturnOutputTypeUserArgs({ + const CreateManyTimeEntryDboAndReturnOutputTypeUserArgs({ this.select, this.include, }); - final _i2.UserSelect? select; + final _i2.UserDboSelect? select; - final _i2.UserInclude? include; + final _i2.UserDboInclude? include; @override Map toJson() => { @@ -7888,16 +7950,16 @@ class CreateManyTimeEntryAndReturnOutputTypeUserArgs }; } -class CreateManyTimeEntryAndReturnOutputTypeProjectArgs +class CreateManyTimeEntryDboAndReturnOutputTypeProjectArgs implements _i1.JsonConvertible> { - const CreateManyTimeEntryAndReturnOutputTypeProjectArgs({ + const CreateManyTimeEntryDboAndReturnOutputTypeProjectArgs({ this.select, this.include, }); - final _i2.ProjectSelect? select; + final _i2.ProjectDboSelect? select; - final _i2.ProjectInclude? include; + final _i2.ProjectDboInclude? include; @override Map toJson() => { @@ -7906,9 +7968,9 @@ class CreateManyTimeEntryAndReturnOutputTypeProjectArgs }; } -class CreateManyTimeEntryAndReturnOutputTypeSelect +class CreateManyTimeEntryDboAndReturnOutputTypeSelect implements _i1.JsonConvertible> { - const CreateManyTimeEntryAndReturnOutputTypeSelect({ + const CreateManyTimeEntryDboAndReturnOutputTypeSelect({ this.id, this.startTime, this.endTime, @@ -7938,12 +8000,11 @@ class CreateManyTimeEntryAndReturnOutputTypeSelect final bool? updatedAt; final _i1 - .PrismaUnion? + .PrismaUnion? user; - final _i1 - .PrismaUnion? - project; + final _i1.PrismaUnion? project; @override Map toJson() => { @@ -7960,20 +8021,19 @@ class CreateManyTimeEntryAndReturnOutputTypeSelect }; } -class CreateManyTimeEntryAndReturnOutputTypeInclude +class CreateManyTimeEntryDboAndReturnOutputTypeInclude implements _i1.JsonConvertible> { - const CreateManyTimeEntryAndReturnOutputTypeInclude({ + const CreateManyTimeEntryDboAndReturnOutputTypeInclude({ this.user, this.project, }); final _i1 - .PrismaUnion? + .PrismaUnion? user; - final _i1 - .PrismaUnion? - project; + final _i1.PrismaUnion? project; @override Map toJson() => { @@ -7982,9 +8042,9 @@ class CreateManyTimeEntryAndReturnOutputTypeInclude }; } -class TimeEntryUpdateInput +class TimeEntryDboUpdateInput implements _i1.JsonConvertible> { - const TimeEntryUpdateInput({ + const TimeEntryDboUpdateInput({ this.id, this.startTime, this.endTime, @@ -8014,9 +8074,9 @@ class TimeEntryUpdateInput final _i1.PrismaUnion? updatedAt; - final _i2.UserUpdateOneRequiredWithoutTimeEntriesNestedInput? user; + final _i2.UserDboUpdateOneRequiredWithoutTimeEntriesNestedInput? user; - final _i2.ProjectUpdateOneRequiredWithoutTimeEntriesNestedInput? project; + final _i2.ProjectDboUpdateOneRequiredWithoutTimeEntriesNestedInput? project; @override Map toJson() => { @@ -8031,9 +8091,9 @@ class TimeEntryUpdateInput }; } -class TimeEntryUncheckedUpdateInput +class TimeEntryDboUncheckedUpdateInput implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateInput({ + const TimeEntryDboUncheckedUpdateInput({ this.id, this.startTime, this.endTime, @@ -8081,9 +8141,9 @@ class TimeEntryUncheckedUpdateInput }; } -class TimeEntryUncheckedUpdateManyInput +class TimeEntryDboUncheckedUpdateManyInput implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateManyInput({ + const TimeEntryDboUncheckedUpdateManyInput({ this.id, this.startTime, this.endTime, @@ -8131,8 +8191,8 @@ class TimeEntryUncheckedUpdateManyInput }; } -class TimeEntryCountAggregateOutputType { - const TimeEntryCountAggregateOutputType({ +class TimeEntryDboCountAggregateOutputType { + const TimeEntryDboCountAggregateOutputType({ this.id, this.startTime, this.endTime, @@ -8144,8 +8204,8 @@ class TimeEntryCountAggregateOutputType { this.$all, }); - factory TimeEntryCountAggregateOutputType.fromJson(Map json) => - TimeEntryCountAggregateOutputType( + factory TimeEntryDboCountAggregateOutputType.fromJson(Map json) => + TimeEntryDboCountAggregateOutputType( id: json['id'], startTime: json['startTime'], endTime: json['endTime'], @@ -8188,8 +8248,8 @@ class TimeEntryCountAggregateOutputType { }; } -class TimeEntryMinAggregateOutputType { - const TimeEntryMinAggregateOutputType({ +class TimeEntryDboMinAggregateOutputType { + const TimeEntryDboMinAggregateOutputType({ this.id, this.startTime, this.endTime, @@ -8200,8 +8260,8 @@ class TimeEntryMinAggregateOutputType { this.updatedAt, }); - factory TimeEntryMinAggregateOutputType.fromJson(Map json) => - TimeEntryMinAggregateOutputType( + factory TimeEntryDboMinAggregateOutputType.fromJson(Map json) => + TimeEntryDboMinAggregateOutputType( id: json['id'], startTime: switch (json['startTime']) { DateTime value => value, @@ -8256,8 +8316,8 @@ class TimeEntryMinAggregateOutputType { }; } -class TimeEntryMaxAggregateOutputType { - const TimeEntryMaxAggregateOutputType({ +class TimeEntryDboMaxAggregateOutputType { + const TimeEntryDboMaxAggregateOutputType({ this.id, this.startTime, this.endTime, @@ -8268,8 +8328,8 @@ class TimeEntryMaxAggregateOutputType { this.updatedAt, }); - factory TimeEntryMaxAggregateOutputType.fromJson(Map json) => - TimeEntryMaxAggregateOutputType( + factory TimeEntryDboMaxAggregateOutputType.fromJson(Map json) => + TimeEntryDboMaxAggregateOutputType( id: json['id'], startTime: switch (json['startTime']) { DateTime value => value, @@ -8324,8 +8384,8 @@ class TimeEntryMaxAggregateOutputType { }; } -class TimeEntryGroupByOutputType { - const TimeEntryGroupByOutputType({ +class TimeEntryDboGroupByOutputType { + const TimeEntryDboGroupByOutputType({ this.id, this.startTime, this.endTime, @@ -8339,8 +8399,8 @@ class TimeEntryGroupByOutputType { this.$max, }); - factory TimeEntryGroupByOutputType.fromJson(Map json) => - TimeEntryGroupByOutputType( + factory TimeEntryDboGroupByOutputType.fromJson(Map json) => + TimeEntryDboGroupByOutputType( id: json['id'], startTime: switch (json['startTime']) { DateTime value => value, @@ -8366,13 +8426,13 @@ class TimeEntryGroupByOutputType { _ => json['updatedAt'] }, $count: json['_count'] is Map - ? _i2.TimeEntryCountAggregateOutputType.fromJson(json['_count']) + ? _i2.TimeEntryDboCountAggregateOutputType.fromJson(json['_count']) : null, $min: json['_min'] is Map - ? _i2.TimeEntryMinAggregateOutputType.fromJson(json['_min']) + ? _i2.TimeEntryDboMinAggregateOutputType.fromJson(json['_min']) : null, $max: json['_max'] is Map - ? _i2.TimeEntryMaxAggregateOutputType.fromJson(json['_max']) + ? _i2.TimeEntryDboMaxAggregateOutputType.fromJson(json['_max']) : null, ); @@ -8392,11 +8452,11 @@ class TimeEntryGroupByOutputType { final DateTime? updatedAt; - final _i2.TimeEntryCountAggregateOutputType? $count; + final _i2.TimeEntryDboCountAggregateOutputType? $count; - final _i2.TimeEntryMinAggregateOutputType? $min; + final _i2.TimeEntryDboMinAggregateOutputType? $min; - final _i2.TimeEntryMaxAggregateOutputType? $max; + final _i2.TimeEntryDboMaxAggregateOutputType? $max; Map toJson() => { 'id': id, @@ -8413,9 +8473,9 @@ class TimeEntryGroupByOutputType { }; } -class TimeEntryCountOrderByAggregateInput +class TimeEntryDboCountOrderByAggregateInput implements _i1.JsonConvertible> { - const TimeEntryCountOrderByAggregateInput({ + const TimeEntryDboCountOrderByAggregateInput({ this.id, this.startTime, this.endTime, @@ -8455,9 +8515,9 @@ class TimeEntryCountOrderByAggregateInput }; } -class TimeEntryMaxOrderByAggregateInput +class TimeEntryDboMaxOrderByAggregateInput implements _i1.JsonConvertible> { - const TimeEntryMaxOrderByAggregateInput({ + const TimeEntryDboMaxOrderByAggregateInput({ this.id, this.startTime, this.endTime, @@ -8497,9 +8557,9 @@ class TimeEntryMaxOrderByAggregateInput }; } -class TimeEntryMinOrderByAggregateInput +class TimeEntryDboMinOrderByAggregateInput implements _i1.JsonConvertible> { - const TimeEntryMinOrderByAggregateInput({ + const TimeEntryDboMinOrderByAggregateInput({ this.id, this.startTime, this.endTime, @@ -8539,9 +8599,9 @@ class TimeEntryMinOrderByAggregateInput }; } -class TimeEntryOrderByWithAggregationInput +class TimeEntryDboOrderByWithAggregationInput implements _i1.JsonConvertible> { - const TimeEntryOrderByWithAggregationInput({ + const TimeEntryDboOrderByWithAggregationInput({ this.id, this.startTime, this.endTime, @@ -8571,11 +8631,11 @@ class TimeEntryOrderByWithAggregationInput final _i2.SortOrder? updatedAt; - final _i2.TimeEntryCountOrderByAggregateInput? $count; + final _i2.TimeEntryDboCountOrderByAggregateInput? $count; - final _i2.TimeEntryMaxOrderByAggregateInput? $max; + final _i2.TimeEntryDboMaxOrderByAggregateInput? $max; - final _i2.TimeEntryMinOrderByAggregateInput? $min; + final _i2.TimeEntryDboMinOrderByAggregateInput? $min; @override Map toJson() => { @@ -8593,9 +8653,9 @@ class TimeEntryOrderByWithAggregationInput }; } -class TimeEntryScalarWhereWithAggregatesInput +class TimeEntryDboScalarWhereWithAggregatesInput implements _i1.JsonConvertible> { - const TimeEntryScalarWhereWithAggregatesInput({ + const TimeEntryDboScalarWhereWithAggregatesInput({ this.AND, this.OR, this.NOT, @@ -8609,13 +8669,13 @@ class TimeEntryScalarWhereWithAggregatesInput this.updatedAt, }); - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereWithAggregatesInput, - Iterable<_i2.TimeEntryScalarWhereWithAggregatesInput>>? AND; + final _i1.PrismaUnion<_i2.TimeEntryDboScalarWhereWithAggregatesInput, + Iterable<_i2.TimeEntryDboScalarWhereWithAggregatesInput>>? AND; - final Iterable<_i2.TimeEntryScalarWhereWithAggregatesInput>? OR; + final Iterable<_i2.TimeEntryDboScalarWhereWithAggregatesInput>? OR; - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereWithAggregatesInput, - Iterable<_i2.TimeEntryScalarWhereWithAggregatesInput>>? NOT; + final _i1.PrismaUnion<_i2.TimeEntryDboScalarWhereWithAggregatesInput, + Iterable<_i2.TimeEntryDboScalarWhereWithAggregatesInput>>? NOT; final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? id; @@ -8650,9 +8710,9 @@ class TimeEntryScalarWhereWithAggregatesInput }; } -class TimeEntryCountAggregateOutputTypeSelect +class TimeEntryDboCountAggregateOutputTypeSelect implements _i1.JsonConvertible> { - const TimeEntryCountAggregateOutputTypeSelect({ + const TimeEntryDboCountAggregateOutputTypeSelect({ this.id, this.startTime, this.endTime, @@ -8696,19 +8756,19 @@ class TimeEntryCountAggregateOutputTypeSelect }; } -class TimeEntryGroupByOutputTypeCountArgs +class TimeEntryDboGroupByOutputTypeCountArgs implements _i1.JsonConvertible> { - const TimeEntryGroupByOutputTypeCountArgs({this.select}); + const TimeEntryDboGroupByOutputTypeCountArgs({this.select}); - final _i2.TimeEntryCountAggregateOutputTypeSelect? select; + final _i2.TimeEntryDboCountAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class TimeEntryMinAggregateOutputTypeSelect +class TimeEntryDboMinAggregateOutputTypeSelect implements _i1.JsonConvertible> { - const TimeEntryMinAggregateOutputTypeSelect({ + const TimeEntryDboMinAggregateOutputTypeSelect({ this.id, this.startTime, this.endTime, @@ -8748,19 +8808,19 @@ class TimeEntryMinAggregateOutputTypeSelect }; } -class TimeEntryGroupByOutputTypeMinArgs +class TimeEntryDboGroupByOutputTypeMinArgs implements _i1.JsonConvertible> { - const TimeEntryGroupByOutputTypeMinArgs({this.select}); + const TimeEntryDboGroupByOutputTypeMinArgs({this.select}); - final _i2.TimeEntryMinAggregateOutputTypeSelect? select; + final _i2.TimeEntryDboMinAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class TimeEntryMaxAggregateOutputTypeSelect +class TimeEntryDboMaxAggregateOutputTypeSelect implements _i1.JsonConvertible> { - const TimeEntryMaxAggregateOutputTypeSelect({ + const TimeEntryDboMaxAggregateOutputTypeSelect({ this.id, this.startTime, this.endTime, @@ -8800,19 +8860,19 @@ class TimeEntryMaxAggregateOutputTypeSelect }; } -class TimeEntryGroupByOutputTypeMaxArgs +class TimeEntryDboGroupByOutputTypeMaxArgs implements _i1.JsonConvertible> { - const TimeEntryGroupByOutputTypeMaxArgs({this.select}); + const TimeEntryDboGroupByOutputTypeMaxArgs({this.select}); - final _i2.TimeEntryMaxAggregateOutputTypeSelect? select; + final _i2.TimeEntryDboMaxAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class TimeEntryGroupByOutputTypeSelect +class TimeEntryDboGroupByOutputTypeSelect implements _i1.JsonConvertible> { - const TimeEntryGroupByOutputTypeSelect({ + const TimeEntryDboGroupByOutputTypeSelect({ this.id, this.startTime, this.endTime, @@ -8842,11 +8902,12 @@ class TimeEntryGroupByOutputTypeSelect final bool? updatedAt; - final _i1.PrismaUnion? $count; + final _i1.PrismaUnion? + $count; - final _i1.PrismaUnion? $min; + final _i1.PrismaUnion? $min; - final _i1.PrismaUnion? $max; + final _i1.PrismaUnion? $max; @override Map toJson() => { @@ -8864,30 +8925,30 @@ class TimeEntryGroupByOutputTypeSelect }; } -class AggregateTimeEntry { - const AggregateTimeEntry({ +class AggregateTimeEntryDbo { + const AggregateTimeEntryDbo({ this.$count, this.$min, this.$max, }); - factory AggregateTimeEntry.fromJson(Map json) => AggregateTimeEntry( + factory AggregateTimeEntryDbo.fromJson(Map json) => AggregateTimeEntryDbo( $count: json['_count'] is Map - ? _i2.TimeEntryCountAggregateOutputType.fromJson(json['_count']) + ? _i2.TimeEntryDboCountAggregateOutputType.fromJson(json['_count']) : null, $min: json['_min'] is Map - ? _i2.TimeEntryMinAggregateOutputType.fromJson(json['_min']) + ? _i2.TimeEntryDboMinAggregateOutputType.fromJson(json['_min']) : null, $max: json['_max'] is Map - ? _i2.TimeEntryMaxAggregateOutputType.fromJson(json['_max']) + ? _i2.TimeEntryDboMaxAggregateOutputType.fromJson(json['_max']) : null, ); - final _i2.TimeEntryCountAggregateOutputType? $count; + final _i2.TimeEntryDboCountAggregateOutputType? $count; - final _i2.TimeEntryMinAggregateOutputType? $min; + final _i2.TimeEntryDboMinAggregateOutputType? $min; - final _i2.TimeEntryMaxAggregateOutputType? $max; + final _i2.TimeEntryDboMaxAggregateOutputType? $max; Map toJson() => { '_count': $count?.toJson(), @@ -8896,49 +8957,49 @@ class AggregateTimeEntry { }; } -class AggregateTimeEntryCountArgs +class AggregateTimeEntryDboCountArgs implements _i1.JsonConvertible> { - const AggregateTimeEntryCountArgs({this.select}); + const AggregateTimeEntryDboCountArgs({this.select}); - final _i2.TimeEntryCountAggregateOutputTypeSelect? select; + final _i2.TimeEntryDboCountAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class AggregateTimeEntryMinArgs +class AggregateTimeEntryDboMinArgs implements _i1.JsonConvertible> { - const AggregateTimeEntryMinArgs({this.select}); + const AggregateTimeEntryDboMinArgs({this.select}); - final _i2.TimeEntryMinAggregateOutputTypeSelect? select; + final _i2.TimeEntryDboMinAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class AggregateTimeEntryMaxArgs +class AggregateTimeEntryDboMaxArgs implements _i1.JsonConvertible> { - const AggregateTimeEntryMaxArgs({this.select}); + const AggregateTimeEntryDboMaxArgs({this.select}); - final _i2.TimeEntryMaxAggregateOutputTypeSelect? select; + final _i2.TimeEntryDboMaxAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class AggregateTimeEntrySelect +class AggregateTimeEntryDboSelect implements _i1.JsonConvertible> { - const AggregateTimeEntrySelect({ + const AggregateTimeEntryDboSelect({ this.$count, this.$min, this.$max, }); - final _i1.PrismaUnion? $count; + final _i1.PrismaUnion? $count; - final _i1.PrismaUnion? $min; + final _i1.PrismaUnion? $min; - final _i1.PrismaUnion? $max; + final _i1.PrismaUnion? $max; @override Map toJson() => { @@ -8948,9 +9009,9 @@ class AggregateTimeEntrySelect }; } -class ProjectCreateWithoutTasksInput +class ProjectDboCreateWithoutTasksInput implements _i1.JsonConvertible> { - const ProjectCreateWithoutTasksInput({ + const ProjectDboCreateWithoutTasksInput({ this.id, required this.name, this.description, @@ -8973,9 +9034,9 @@ class ProjectCreateWithoutTasksInput final DateTime? updatedAt; - final _i2.TimeEntryCreateNestedManyWithoutProjectInput? timeEntries; + final _i2.TimeEntryDboCreateNestedManyWithoutProjectInput? timeEntries; - final _i2.UserCreateNestedOneWithoutProjectsInput user; + final _i2.UserDboCreateNestedOneWithoutProjectsInput user; @override Map toJson() => { @@ -8990,9 +9051,9 @@ class ProjectCreateWithoutTasksInput }; } -class ProjectUncheckedCreateWithoutTasksInput +class ProjectDboUncheckedCreateWithoutTasksInput implements _i1.JsonConvertible> { - const ProjectUncheckedCreateWithoutTasksInput({ + const ProjectDboUncheckedCreateWithoutTasksInput({ this.id, required this.name, this.description, @@ -9017,7 +9078,8 @@ class ProjectUncheckedCreateWithoutTasksInput final DateTime? updatedAt; - final _i2.TimeEntryUncheckedCreateNestedManyWithoutProjectInput? timeEntries; + final _i2.TimeEntryDboUncheckedCreateNestedManyWithoutProjectInput? + timeEntries; @override Map toJson() => { @@ -9032,17 +9094,17 @@ class ProjectUncheckedCreateWithoutTasksInput }; } -class ProjectCreateOrConnectWithoutTasksInput +class ProjectDboCreateOrConnectWithoutTasksInput implements _i1.JsonConvertible> { - const ProjectCreateOrConnectWithoutTasksInput({ + const ProjectDboCreateOrConnectWithoutTasksInput({ required this.where, required this.create, }); - final _i2.ProjectWhereUniqueInput where; + final _i2.ProjectDboWhereUniqueInput where; - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTasksInput, - _i2.ProjectUncheckedCreateWithoutTasksInput> create; + final _i1.PrismaUnion<_i2.ProjectDboCreateWithoutTasksInput, + _i2.ProjectDboUncheckedCreateWithoutTasksInput> create; @override Map toJson() => { @@ -9051,20 +9113,20 @@ class ProjectCreateOrConnectWithoutTasksInput }; } -class ProjectCreateNestedOneWithoutTasksInput +class ProjectDboCreateNestedOneWithoutTasksInput implements _i1.JsonConvertible> { - const ProjectCreateNestedOneWithoutTasksInput({ + const ProjectDboCreateNestedOneWithoutTasksInput({ this.create, this.connectOrCreate, this.connect, }); - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTasksInput, - _i2.ProjectUncheckedCreateWithoutTasksInput>? create; + final _i1.PrismaUnion<_i2.ProjectDboCreateWithoutTasksInput, + _i2.ProjectDboUncheckedCreateWithoutTasksInput>? create; - final _i2.ProjectCreateOrConnectWithoutTasksInput? connectOrCreate; + final _i2.ProjectDboCreateOrConnectWithoutTasksInput? connectOrCreate; - final _i2.ProjectWhereUniqueInput? connect; + final _i2.ProjectDboWhereUniqueInput? connect; @override Map toJson() => { @@ -9074,8 +9136,8 @@ class ProjectCreateNestedOneWithoutTasksInput }; } -class TaskCreateInput implements _i1.JsonConvertible> { - const TaskCreateInput({ +class TaskDboCreateInput implements _i1.JsonConvertible> { + const TaskDboCreateInput({ this.id, required this.name, this.description, @@ -9094,7 +9156,7 @@ class TaskCreateInput implements _i1.JsonConvertible> { final DateTime? updatedAt; - final _i2.ProjectCreateNestedOneWithoutTasksInput project; + final _i2.ProjectDboCreateNestedOneWithoutTasksInput project; @override Map toJson() => { @@ -9107,9 +9169,9 @@ class TaskCreateInput implements _i1.JsonConvertible> { }; } -class TaskUncheckedCreateInput +class TaskDboUncheckedCreateInput implements _i1.JsonConvertible> { - const TaskUncheckedCreateInput({ + const TaskDboUncheckedCreateInput({ this.id, required this.name, this.description, @@ -9141,8 +9203,9 @@ class TaskUncheckedCreateInput }; } -class TaskCreateManyInput implements _i1.JsonConvertible> { - const TaskCreateManyInput({ +class TaskDboCreateManyInput + implements _i1.JsonConvertible> { + const TaskDboCreateManyInput({ this.id, required this.name, this.description, @@ -9174,16 +9237,16 @@ class TaskCreateManyInput implements _i1.JsonConvertible> { }; } -class CreateManyTaskAndReturnOutputTypeProjectArgs +class CreateManyTaskDboAndReturnOutputTypeProjectArgs implements _i1.JsonConvertible> { - const CreateManyTaskAndReturnOutputTypeProjectArgs({ + const CreateManyTaskDboAndReturnOutputTypeProjectArgs({ this.select, this.include, }); - final _i2.ProjectSelect? select; + final _i2.ProjectDboSelect? select; - final _i2.ProjectInclude? include; + final _i2.ProjectDboInclude? include; @override Map toJson() => { @@ -9192,9 +9255,9 @@ class CreateManyTaskAndReturnOutputTypeProjectArgs }; } -class CreateManyTaskAndReturnOutputTypeSelect +class CreateManyTaskDboAndReturnOutputTypeSelect implements _i1.JsonConvertible> { - const CreateManyTaskAndReturnOutputTypeSelect({ + const CreateManyTaskDboAndReturnOutputTypeSelect({ this.id, this.name, this.description, @@ -9216,7 +9279,8 @@ class CreateManyTaskAndReturnOutputTypeSelect final bool? updatedAt; - final _i1.PrismaUnion? + final _i1 + .PrismaUnion? project; @override @@ -9231,20 +9295,21 @@ class CreateManyTaskAndReturnOutputTypeSelect }; } -class CreateManyTaskAndReturnOutputTypeInclude +class CreateManyTaskDboAndReturnOutputTypeInclude implements _i1.JsonConvertible> { - const CreateManyTaskAndReturnOutputTypeInclude({this.project}); + const CreateManyTaskDboAndReturnOutputTypeInclude({this.project}); - final _i1.PrismaUnion? + final _i1 + .PrismaUnion? project; @override Map toJson() => {'project': project}; } -class ProjectUpdateWithoutTasksInput +class ProjectDboUpdateWithoutTasksInput implements _i1.JsonConvertible> { - const ProjectUpdateWithoutTasksInput({ + const ProjectDboUpdateWithoutTasksInput({ this.id, this.name, this.description, @@ -9275,9 +9340,9 @@ class ProjectUpdateWithoutTasksInput final _i1.PrismaUnion? updatedAt; - final _i2.TimeEntryUpdateManyWithoutProjectNestedInput? timeEntries; + final _i2.TimeEntryDboUpdateManyWithoutProjectNestedInput? timeEntries; - final _i2.UserUpdateOneRequiredWithoutProjectsNestedInput? user; + final _i2.UserDboUpdateOneRequiredWithoutProjectsNestedInput? user; @override Map toJson() => { @@ -9292,9 +9357,9 @@ class ProjectUpdateWithoutTasksInput }; } -class ProjectUncheckedUpdateWithoutTasksInput +class ProjectDboUncheckedUpdateWithoutTasksInput implements _i1.JsonConvertible> { - const ProjectUncheckedUpdateWithoutTasksInput({ + const ProjectDboUncheckedUpdateWithoutTasksInput({ this.id, this.name, this.description, @@ -9327,7 +9392,8 @@ class ProjectUncheckedUpdateWithoutTasksInput final _i1.PrismaUnion? updatedAt; - final _i2.TimeEntryUncheckedUpdateManyWithoutProjectNestedInput? timeEntries; + final _i2.TimeEntryDboUncheckedUpdateManyWithoutProjectNestedInput? + timeEntries; @override Map toJson() => { @@ -9342,21 +9408,21 @@ class ProjectUncheckedUpdateWithoutTasksInput }; } -class ProjectUpsertWithoutTasksInput +class ProjectDboUpsertWithoutTasksInput implements _i1.JsonConvertible> { - const ProjectUpsertWithoutTasksInput({ + const ProjectDboUpsertWithoutTasksInput({ required this.update, required this.create, this.where, }); - final _i1.PrismaUnion<_i2.ProjectUpdateWithoutTasksInput, - _i2.ProjectUncheckedUpdateWithoutTasksInput> update; + final _i1.PrismaUnion<_i2.ProjectDboUpdateWithoutTasksInput, + _i2.ProjectDboUncheckedUpdateWithoutTasksInput> update; - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTasksInput, - _i2.ProjectUncheckedCreateWithoutTasksInput> create; + final _i1.PrismaUnion<_i2.ProjectDboCreateWithoutTasksInput, + _i2.ProjectDboUncheckedCreateWithoutTasksInput> create; - final _i2.ProjectWhereInput? where; + final _i2.ProjectDboWhereInput? where; @override Map toJson() => { @@ -9366,17 +9432,17 @@ class ProjectUpsertWithoutTasksInput }; } -class ProjectUpdateToOneWithWhereWithoutTasksInput +class ProjectDboUpdateToOneWithWhereWithoutTasksInput implements _i1.JsonConvertible> { - const ProjectUpdateToOneWithWhereWithoutTasksInput({ + const ProjectDboUpdateToOneWithWhereWithoutTasksInput({ this.where, required this.data, }); - final _i2.ProjectWhereInput? where; + final _i2.ProjectDboWhereInput? where; - final _i1.PrismaUnion<_i2.ProjectUpdateWithoutTasksInput, - _i2.ProjectUncheckedUpdateWithoutTasksInput> data; + final _i1.PrismaUnion<_i2.ProjectDboUpdateWithoutTasksInput, + _i2.ProjectDboUncheckedUpdateWithoutTasksInput> data; @override Map toJson() => { @@ -9385,9 +9451,9 @@ class ProjectUpdateToOneWithWhereWithoutTasksInput }; } -class ProjectUpdateOneRequiredWithoutTasksNestedInput +class ProjectDboUpdateOneRequiredWithoutTasksNestedInput implements _i1.JsonConvertible> { - const ProjectUpdateOneRequiredWithoutTasksNestedInput({ + const ProjectDboUpdateOneRequiredWithoutTasksNestedInput({ this.create, this.connectOrCreate, this.upsert, @@ -9395,19 +9461,19 @@ class ProjectUpdateOneRequiredWithoutTasksNestedInput this.update, }); - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTasksInput, - _i2.ProjectUncheckedCreateWithoutTasksInput>? create; + final _i1.PrismaUnion<_i2.ProjectDboCreateWithoutTasksInput, + _i2.ProjectDboUncheckedCreateWithoutTasksInput>? create; - final _i2.ProjectCreateOrConnectWithoutTasksInput? connectOrCreate; + final _i2.ProjectDboCreateOrConnectWithoutTasksInput? connectOrCreate; - final _i2.ProjectUpsertWithoutTasksInput? upsert; + final _i2.ProjectDboUpsertWithoutTasksInput? upsert; - final _i2.ProjectWhereUniqueInput? connect; + final _i2.ProjectDboWhereUniqueInput? connect; final _i1.PrismaUnion< - _i2.ProjectUpdateToOneWithWhereWithoutTasksInput, - _i1.PrismaUnion<_i2.ProjectUpdateWithoutTasksInput, - _i2.ProjectUncheckedUpdateWithoutTasksInput>>? update; + _i2.ProjectDboUpdateToOneWithWhereWithoutTasksInput, + _i1.PrismaUnion<_i2.ProjectDboUpdateWithoutTasksInput, + _i2.ProjectDboUncheckedUpdateWithoutTasksInput>>? update; @override Map toJson() => { @@ -9419,8 +9485,8 @@ class ProjectUpdateOneRequiredWithoutTasksNestedInput }; } -class TaskUpdateInput implements _i1.JsonConvertible> { - const TaskUpdateInput({ +class TaskDboUpdateInput implements _i1.JsonConvertible> { + const TaskDboUpdateInput({ this.id, this.name, this.description, @@ -9444,7 +9510,7 @@ class TaskUpdateInput implements _i1.JsonConvertible> { final _i1.PrismaUnion? updatedAt; - final _i2.ProjectUpdateOneRequiredWithoutTasksNestedInput? project; + final _i2.ProjectDboUpdateOneRequiredWithoutTasksNestedInput? project; @override Map toJson() => { @@ -9457,9 +9523,9 @@ class TaskUpdateInput implements _i1.JsonConvertible> { }; } -class TaskUncheckedUpdateInput +class TaskDboUncheckedUpdateInput implements _i1.JsonConvertible> { - const TaskUncheckedUpdateInput({ + const TaskDboUncheckedUpdateInput({ this.id, this.name, this.description, @@ -9497,9 +9563,9 @@ class TaskUncheckedUpdateInput }; } -class TaskUncheckedUpdateManyInput +class TaskDboUncheckedUpdateManyInput implements _i1.JsonConvertible> { - const TaskUncheckedUpdateManyInput({ + const TaskDboUncheckedUpdateManyInput({ this.id, this.name, this.description, @@ -9537,8 +9603,8 @@ class TaskUncheckedUpdateManyInput }; } -class TaskCountAggregateOutputType { - const TaskCountAggregateOutputType({ +class TaskDboCountAggregateOutputType { + const TaskDboCountAggregateOutputType({ this.id, this.name, this.description, @@ -9548,8 +9614,8 @@ class TaskCountAggregateOutputType { this.$all, }); - factory TaskCountAggregateOutputType.fromJson(Map json) => - TaskCountAggregateOutputType( + factory TaskDboCountAggregateOutputType.fromJson(Map json) => + TaskDboCountAggregateOutputType( id: json['id'], name: json['name'], description: json['description'], @@ -9584,8 +9650,8 @@ class TaskCountAggregateOutputType { }; } -class TaskMinAggregateOutputType { - const TaskMinAggregateOutputType({ +class TaskDboMinAggregateOutputType { + const TaskDboMinAggregateOutputType({ this.id, this.name, this.description, @@ -9594,8 +9660,8 @@ class TaskMinAggregateOutputType { this.updatedAt, }); - factory TaskMinAggregateOutputType.fromJson(Map json) => - TaskMinAggregateOutputType( + factory TaskDboMinAggregateOutputType.fromJson(Map json) => + TaskDboMinAggregateOutputType( id: json['id'], name: json['name'], description: json['description'], @@ -9634,8 +9700,8 @@ class TaskMinAggregateOutputType { }; } -class TaskMaxAggregateOutputType { - const TaskMaxAggregateOutputType({ +class TaskDboMaxAggregateOutputType { + const TaskDboMaxAggregateOutputType({ this.id, this.name, this.description, @@ -9644,8 +9710,8 @@ class TaskMaxAggregateOutputType { this.updatedAt, }); - factory TaskMaxAggregateOutputType.fromJson(Map json) => - TaskMaxAggregateOutputType( + factory TaskDboMaxAggregateOutputType.fromJson(Map json) => + TaskDboMaxAggregateOutputType( id: json['id'], name: json['name'], description: json['description'], @@ -9684,8 +9750,8 @@ class TaskMaxAggregateOutputType { }; } -class TaskGroupByOutputType { - const TaskGroupByOutputType({ +class TaskDboGroupByOutputType { + const TaskDboGroupByOutputType({ this.id, this.name, this.description, @@ -9697,7 +9763,8 @@ class TaskGroupByOutputType { this.$max, }); - factory TaskGroupByOutputType.fromJson(Map json) => TaskGroupByOutputType( + factory TaskDboGroupByOutputType.fromJson(Map json) => + TaskDboGroupByOutputType( id: json['id'], name: json['name'], description: json['description'], @@ -9713,13 +9780,13 @@ class TaskGroupByOutputType { _ => json['updatedAt'] }, $count: json['_count'] is Map - ? _i2.TaskCountAggregateOutputType.fromJson(json['_count']) + ? _i2.TaskDboCountAggregateOutputType.fromJson(json['_count']) : null, $min: json['_min'] is Map - ? _i2.TaskMinAggregateOutputType.fromJson(json['_min']) + ? _i2.TaskDboMinAggregateOutputType.fromJson(json['_min']) : null, $max: json['_max'] is Map - ? _i2.TaskMaxAggregateOutputType.fromJson(json['_max']) + ? _i2.TaskDboMaxAggregateOutputType.fromJson(json['_max']) : null, ); @@ -9735,11 +9802,11 @@ class TaskGroupByOutputType { final DateTime? updatedAt; - final _i2.TaskCountAggregateOutputType? $count; + final _i2.TaskDboCountAggregateOutputType? $count; - final _i2.TaskMinAggregateOutputType? $min; + final _i2.TaskDboMinAggregateOutputType? $min; - final _i2.TaskMaxAggregateOutputType? $max; + final _i2.TaskDboMaxAggregateOutputType? $max; Map toJson() => { 'id': id, @@ -9754,9 +9821,9 @@ class TaskGroupByOutputType { }; } -class TaskCountOrderByAggregateInput +class TaskDboCountOrderByAggregateInput implements _i1.JsonConvertible> { - const TaskCountOrderByAggregateInput({ + const TaskDboCountOrderByAggregateInput({ this.id, this.name, this.description, @@ -9788,9 +9855,9 @@ class TaskCountOrderByAggregateInput }; } -class TaskMaxOrderByAggregateInput +class TaskDboMaxOrderByAggregateInput implements _i1.JsonConvertible> { - const TaskMaxOrderByAggregateInput({ + const TaskDboMaxOrderByAggregateInput({ this.id, this.name, this.description, @@ -9822,9 +9889,9 @@ class TaskMaxOrderByAggregateInput }; } -class TaskMinOrderByAggregateInput +class TaskDboMinOrderByAggregateInput implements _i1.JsonConvertible> { - const TaskMinOrderByAggregateInput({ + const TaskDboMinOrderByAggregateInput({ this.id, this.name, this.description, @@ -9856,9 +9923,9 @@ class TaskMinOrderByAggregateInput }; } -class TaskOrderByWithAggregationInput +class TaskDboOrderByWithAggregationInput implements _i1.JsonConvertible> { - const TaskOrderByWithAggregationInput({ + const TaskDboOrderByWithAggregationInput({ this.id, this.name, this.description, @@ -9882,11 +9949,11 @@ class TaskOrderByWithAggregationInput final _i2.SortOrder? updatedAt; - final _i2.TaskCountOrderByAggregateInput? $count; + final _i2.TaskDboCountOrderByAggregateInput? $count; - final _i2.TaskMaxOrderByAggregateInput? $max; + final _i2.TaskDboMaxOrderByAggregateInput? $max; - final _i2.TaskMinOrderByAggregateInput? $min; + final _i2.TaskDboMinOrderByAggregateInput? $min; @override Map toJson() => { @@ -9902,9 +9969,9 @@ class TaskOrderByWithAggregationInput }; } -class TaskScalarWhereWithAggregatesInput +class TaskDboScalarWhereWithAggregatesInput implements _i1.JsonConvertible> { - const TaskScalarWhereWithAggregatesInput({ + const TaskDboScalarWhereWithAggregatesInput({ this.AND, this.OR, this.NOT, @@ -9916,13 +9983,13 @@ class TaskScalarWhereWithAggregatesInput this.updatedAt, }); - final _i1.PrismaUnion<_i2.TaskScalarWhereWithAggregatesInput, - Iterable<_i2.TaskScalarWhereWithAggregatesInput>>? AND; + final _i1.PrismaUnion<_i2.TaskDboScalarWhereWithAggregatesInput, + Iterable<_i2.TaskDboScalarWhereWithAggregatesInput>>? AND; - final Iterable<_i2.TaskScalarWhereWithAggregatesInput>? OR; + final Iterable<_i2.TaskDboScalarWhereWithAggregatesInput>? OR; - final _i1.PrismaUnion<_i2.TaskScalarWhereWithAggregatesInput, - Iterable<_i2.TaskScalarWhereWithAggregatesInput>>? NOT; + final _i1.PrismaUnion<_i2.TaskDboScalarWhereWithAggregatesInput, + Iterable<_i2.TaskDboScalarWhereWithAggregatesInput>>? NOT; final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? id; @@ -9951,9 +10018,9 @@ class TaskScalarWhereWithAggregatesInput }; } -class TaskCountAggregateOutputTypeSelect +class TaskDboCountAggregateOutputTypeSelect implements _i1.JsonConvertible> { - const TaskCountAggregateOutputTypeSelect({ + const TaskDboCountAggregateOutputTypeSelect({ this.id, this.name, this.description, @@ -9989,19 +10056,19 @@ class TaskCountAggregateOutputTypeSelect }; } -class TaskGroupByOutputTypeCountArgs +class TaskDboGroupByOutputTypeCountArgs implements _i1.JsonConvertible> { - const TaskGroupByOutputTypeCountArgs({this.select}); + const TaskDboGroupByOutputTypeCountArgs({this.select}); - final _i2.TaskCountAggregateOutputTypeSelect? select; + final _i2.TaskDboCountAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class TaskMinAggregateOutputTypeSelect +class TaskDboMinAggregateOutputTypeSelect implements _i1.JsonConvertible> { - const TaskMinAggregateOutputTypeSelect({ + const TaskDboMinAggregateOutputTypeSelect({ this.id, this.name, this.description, @@ -10033,19 +10100,19 @@ class TaskMinAggregateOutputTypeSelect }; } -class TaskGroupByOutputTypeMinArgs +class TaskDboGroupByOutputTypeMinArgs implements _i1.JsonConvertible> { - const TaskGroupByOutputTypeMinArgs({this.select}); + const TaskDboGroupByOutputTypeMinArgs({this.select}); - final _i2.TaskMinAggregateOutputTypeSelect? select; + final _i2.TaskDboMinAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class TaskMaxAggregateOutputTypeSelect +class TaskDboMaxAggregateOutputTypeSelect implements _i1.JsonConvertible> { - const TaskMaxAggregateOutputTypeSelect({ + const TaskDboMaxAggregateOutputTypeSelect({ this.id, this.name, this.description, @@ -10077,19 +10144,19 @@ class TaskMaxAggregateOutputTypeSelect }; } -class TaskGroupByOutputTypeMaxArgs +class TaskDboGroupByOutputTypeMaxArgs implements _i1.JsonConvertible> { - const TaskGroupByOutputTypeMaxArgs({this.select}); + const TaskDboGroupByOutputTypeMaxArgs({this.select}); - final _i2.TaskMaxAggregateOutputTypeSelect? select; + final _i2.TaskDboMaxAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class TaskGroupByOutputTypeSelect +class TaskDboGroupByOutputTypeSelect implements _i1.JsonConvertible> { - const TaskGroupByOutputTypeSelect({ + const TaskDboGroupByOutputTypeSelect({ this.id, this.name, this.description, @@ -10113,11 +10180,11 @@ class TaskGroupByOutputTypeSelect final bool? updatedAt; - final _i1.PrismaUnion? $count; + final _i1.PrismaUnion? $count; - final _i1.PrismaUnion? $min; + final _i1.PrismaUnion? $min; - final _i1.PrismaUnion? $max; + final _i1.PrismaUnion? $max; @override Map toJson() => { @@ -10133,30 +10200,30 @@ class TaskGroupByOutputTypeSelect }; } -class AggregateTask { - const AggregateTask({ +class AggregateTaskDbo { + const AggregateTaskDbo({ this.$count, this.$min, this.$max, }); - factory AggregateTask.fromJson(Map json) => AggregateTask( + factory AggregateTaskDbo.fromJson(Map json) => AggregateTaskDbo( $count: json['_count'] is Map - ? _i2.TaskCountAggregateOutputType.fromJson(json['_count']) + ? _i2.TaskDboCountAggregateOutputType.fromJson(json['_count']) : null, $min: json['_min'] is Map - ? _i2.TaskMinAggregateOutputType.fromJson(json['_min']) + ? _i2.TaskDboMinAggregateOutputType.fromJson(json['_min']) : null, $max: json['_max'] is Map - ? _i2.TaskMaxAggregateOutputType.fromJson(json['_max']) + ? _i2.TaskDboMaxAggregateOutputType.fromJson(json['_max']) : null, ); - final _i2.TaskCountAggregateOutputType? $count; + final _i2.TaskDboCountAggregateOutputType? $count; - final _i2.TaskMinAggregateOutputType? $min; + final _i2.TaskDboMinAggregateOutputType? $min; - final _i2.TaskMaxAggregateOutputType? $max; + final _i2.TaskDboMaxAggregateOutputType? $max; Map toJson() => { '_count': $count?.toJson(), @@ -10165,48 +10232,49 @@ class AggregateTask { }; } -class AggregateTaskCountArgs +class AggregateTaskDboCountArgs implements _i1.JsonConvertible> { - const AggregateTaskCountArgs({this.select}); + const AggregateTaskDboCountArgs({this.select}); - final _i2.TaskCountAggregateOutputTypeSelect? select; + final _i2.TaskDboCountAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class AggregateTaskMinArgs +class AggregateTaskDboMinArgs implements _i1.JsonConvertible> { - const AggregateTaskMinArgs({this.select}); + const AggregateTaskDboMinArgs({this.select}); - final _i2.TaskMinAggregateOutputTypeSelect? select; + final _i2.TaskDboMinAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class AggregateTaskMaxArgs +class AggregateTaskDboMaxArgs implements _i1.JsonConvertible> { - const AggregateTaskMaxArgs({this.select}); + const AggregateTaskDboMaxArgs({this.select}); - final _i2.TaskMaxAggregateOutputTypeSelect? select; + final _i2.TaskDboMaxAggregateOutputTypeSelect? select; @override Map toJson() => {'select': select}; } -class AggregateTaskSelect implements _i1.JsonConvertible> { - const AggregateTaskSelect({ +class AggregateTaskDboSelect + implements _i1.JsonConvertible> { + const AggregateTaskDboSelect({ this.$count, this.$min, this.$max, }); - final _i1.PrismaUnion? $count; + final _i1.PrismaUnion? $count; - final _i1.PrismaUnion? $min; + final _i1.PrismaUnion? $min; - final _i1.PrismaUnion? $max; + final _i1.PrismaUnion? $max; @override Map toJson() => { diff --git a/backend-dart/lib/infrastructure/persistence/prisma_user_repository.dart b/backend-dart/lib/infrastructure/persistence/prisma_user_repository.dart index a676e26..83b09b8 100755 --- a/backend-dart/lib/infrastructure/persistence/prisma_user_repository.dart +++ b/backend-dart/lib/infrastructure/persistence/prisma_user_repository.dart @@ -14,8 +14,8 @@ class PrismaUserRepository implements UserRepository { if (user.password == null) { throw Exception('Password is required'); } - prisma.user.create( - data: PrismaUnion.$1(UserCreateInput( + prisma.userDbo.create( + data: PrismaUnion.$1(UserDboCreateInput( id: user.id, name: user.name, email: user.email, @@ -25,8 +25,8 @@ class PrismaUserRepository implements UserRepository { @override Future findByEmail(String email) async { - final user = - await prisma.user.findUnique(where: UserWhereUniqueInput(email: email)); + final user = await prisma.userDbo + .findUnique(where: UserDboWhereUniqueInput(email: email)); if (user == null) { return null; } @@ -42,7 +42,7 @@ class PrismaUserRepository implements UserRepository { @override Future findById(String id) async { final user = - await prisma.user.findUnique(where: UserWhereUniqueInput(id: id)); + await prisma.userDbo.findUnique(where: UserDboWhereUniqueInput(id: id)); if (user == null) { return null; } diff --git a/backend-dart/prisma/lib/infrastructure/persistence/db/client.dart b/backend-dart/prisma/lib/infrastructure/persistence/db/client.dart deleted file mode 100644 index a5e9854..0000000 --- a/backend-dart/prisma/lib/infrastructure/persistence/db/client.dart +++ /dev/null @@ -1,2679 +0,0 @@ -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'package:orm/dmmf.dart' as _i4; -import 'package:orm/engines/binary.dart' as _i5; -import 'package:orm/orm.dart' as _i1; - -import 'model.dart' as _i2; -import 'prisma.dart' as _i3; - -class UserDelegate { - const UserDelegate._(this._client); - - final PrismaClient _client; - - _i1.ActionClient<_i2.User?> findUnique({ - required _i3.UserWhereUniqueInput where, - _i3.UserSelect? select, - _i3.UserInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.findUnique, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.User?>( - action: 'findUniqueUser', - result: result, - factory: (e) => e != null ? _i2.User.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i2.User> findUniqueOrThrow({ - required _i3.UserWhereUniqueInput where, - _i3.UserSelect? select, - _i3.UserInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.findUniqueOrThrow, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.User>( - action: 'findUniqueUserOrThrow', - result: result, - factory: (e) => _i2.User.fromJson(e), - ); - } - - _i1.ActionClient<_i2.User?> findFirst({ - _i3.UserWhereInput? where, - _i1.PrismaUnion, - _i3.UserOrderByWithRelationInput>? - orderBy, - _i3.UserWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.UserScalar, Iterable<_i3.UserScalar>>? distinct, - _i3.UserSelect? select, - _i3.UserInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.findFirst, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.User?>( - action: 'findFirstUser', - result: result, - factory: (e) => e != null ? _i2.User.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i2.User> findFirstOrThrow({ - _i3.UserWhereInput? where, - _i1.PrismaUnion, - _i3.UserOrderByWithRelationInput>? - orderBy, - _i3.UserWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.UserScalar, Iterable<_i3.UserScalar>>? distinct, - _i3.UserSelect? select, - _i3.UserInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.findFirstOrThrow, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.User>( - action: 'findFirstUserOrThrow', - result: result, - factory: (e) => _i2.User.fromJson(e), - ); - } - - _i1.ActionClient> findMany({ - _i3.UserWhereInput? where, - _i1.PrismaUnion, - _i3.UserOrderByWithRelationInput>? - orderBy, - _i3.UserWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.UserScalar, Iterable<_i3.UserScalar>>? distinct, - _i3.UserSelect? select, - _i3.UserInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.findMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient>( - action: 'findManyUser', - result: result, - factory: (values) => - (values as Iterable).map((e) => _i2.User.fromJson(e)), - ); - } - - _i1.ActionClient<_i2.User> create({ - required _i1.PrismaUnion<_i3.UserCreateInput, _i3.UserUncheckedCreateInput> - data, - _i3.UserSelect? select, - _i3.UserInclude? include, - }) { - final args = { - 'data': data, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.createOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.User>( - action: 'createOneUser', - result: result, - factory: (e) => _i2.User.fromJson(e), - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> createMany({ - required _i1 - .PrismaUnion<_i3.UserCreateManyInput, Iterable<_i3.UserCreateManyInput>> - data, - bool? skipDuplicates, - }) { - final args = { - 'data': data, - 'skipDuplicates': skipDuplicates, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.createMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'createManyUser', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient> - createManyAndReturn({ - required _i1 - .PrismaUnion<_i3.UserCreateManyInput, Iterable<_i3.UserCreateManyInput>> - data, - bool? skipDuplicates, - _i3.CreateManyUserAndReturnOutputTypeSelect? select, - }) { - final args = { - 'data': data, - 'skipDuplicates': skipDuplicates, - 'select': select, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.createManyAndReturn, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient>( - action: 'createManyUserAndReturn', - result: result, - factory: (values) => (values as Iterable) - .map((e) => _i2.CreateManyUserAndReturnOutputType.fromJson(e)), - ); - } - - _i1.ActionClient<_i2.User?> update({ - required _i1.PrismaUnion<_i3.UserUpdateInput, _i3.UserUncheckedUpdateInput> - data, - required _i3.UserWhereUniqueInput where, - _i3.UserSelect? select, - _i3.UserInclude? include, - }) { - final args = { - 'data': data, - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.updateOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.User?>( - action: 'updateOneUser', - result: result, - factory: (e) => e != null ? _i2.User.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> updateMany({ - required _i1.PrismaUnion<_i3.UserUpdateManyMutationInput, - _i3.UserUncheckedUpdateManyInput> - data, - _i3.UserWhereInput? where, - }) { - final args = { - 'data': data, - 'where': where, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.updateMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'updateManyUser', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient<_i2.User> upsert({ - required _i3.UserWhereUniqueInput where, - required _i1.PrismaUnion<_i3.UserCreateInput, _i3.UserUncheckedCreateInput> - create, - required _i1.PrismaUnion<_i3.UserUpdateInput, _i3.UserUncheckedUpdateInput> - update, - _i3.UserSelect? select, - _i3.UserInclude? include, - }) { - final args = { - 'where': where, - 'create': create, - 'update': update, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.upsertOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.User>( - action: 'upsertOneUser', - result: result, - factory: (e) => _i2.User.fromJson(e), - ); - } - - _i1.ActionClient<_i2.User?> delete({ - required _i3.UserWhereUniqueInput where, - _i3.UserSelect? select, - _i3.UserInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.deleteOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.User?>( - action: 'deleteOneUser', - result: result, - factory: (e) => e != null ? _i2.User.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> deleteMany( - {_i3.UserWhereInput? where}) { - final args = {'where': where}; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.deleteMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'deleteManyUser', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient> groupBy({ - _i3.UserWhereInput? where, - _i1.PrismaUnion, - _i3.UserOrderByWithAggregationInput>? - orderBy, - required _i1.PrismaUnion, _i3.UserScalar> by, - _i3.UserScalarWhereWithAggregatesInput? having, - int? take, - int? skip, - _i3.UserGroupByOutputTypeSelect? select, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'by': _i1.JsonQuery.groupBySerializer(by), - 'having': having, - 'take': take, - 'skip': skip, - 'select': select ?? _i1.JsonQuery.groupBySelectSerializer(by), - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.groupBy, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient>( - action: 'groupByUser', - result: result, - factory: (values) => (values as Iterable) - .map((e) => _i3.UserGroupByOutputType.fromJson(e)), - ); - } - - _i1.ActionClient<_i3.AggregateUser> aggregate({ - _i3.UserWhereInput? where, - _i1.PrismaUnion, - _i3.UserOrderByWithRelationInput>? - orderBy, - _i3.UserWhereUniqueInput? cursor, - int? take, - int? skip, - _i3.AggregateUserSelect? select, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'select': select, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'User', - action: _i1.JsonQueryAction.aggregate, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AggregateUser>( - action: 'aggregateUser', - result: result, - factory: (e) => _i3.AggregateUser.fromJson(e), - ); - } -} - -class ProjectDelegate { - const ProjectDelegate._(this._client); - - final PrismaClient _client; - - _i1.ActionClient<_i2.Project?> findUnique({ - required _i3.ProjectWhereUniqueInput where, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.findUnique, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Project?>( - action: 'findUniqueProject', - result: result, - factory: (e) => e != null ? _i2.Project.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i2.Project> findUniqueOrThrow({ - required _i3.ProjectWhereUniqueInput where, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.findUniqueOrThrow, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Project>( - action: 'findUniqueProjectOrThrow', - result: result, - factory: (e) => _i2.Project.fromJson(e), - ); - } - - _i1.ActionClient<_i2.Project?> findFirst({ - _i3.ProjectWhereInput? where, - _i1.PrismaUnion, - _i3.ProjectOrderByWithRelationInput>? - orderBy, - _i3.ProjectWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.ProjectScalar, Iterable<_i3.ProjectScalar>>? distinct, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.findFirst, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Project?>( - action: 'findFirstProject', - result: result, - factory: (e) => e != null ? _i2.Project.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i2.Project> findFirstOrThrow({ - _i3.ProjectWhereInput? where, - _i1.PrismaUnion, - _i3.ProjectOrderByWithRelationInput>? - orderBy, - _i3.ProjectWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.ProjectScalar, Iterable<_i3.ProjectScalar>>? distinct, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.findFirstOrThrow, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Project>( - action: 'findFirstProjectOrThrow', - result: result, - factory: (e) => _i2.Project.fromJson(e), - ); - } - - _i1.ActionClient> findMany({ - _i3.ProjectWhereInput? where, - _i1.PrismaUnion, - _i3.ProjectOrderByWithRelationInput>? - orderBy, - _i3.ProjectWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.ProjectScalar, Iterable<_i3.ProjectScalar>>? distinct, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.findMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient>( - action: 'findManyProject', - result: result, - factory: (values) => - (values as Iterable).map((e) => _i2.Project.fromJson(e)), - ); - } - - _i1.ActionClient<_i2.Project> create({ - required _i1 - .PrismaUnion<_i3.ProjectCreateInput, _i3.ProjectUncheckedCreateInput> - data, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, - }) { - final args = { - 'data': data, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.createOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Project>( - action: 'createOneProject', - result: result, - factory: (e) => _i2.Project.fromJson(e), - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> createMany({ - required _i1.PrismaUnion<_i3.ProjectCreateManyInput, - Iterable<_i3.ProjectCreateManyInput>> - data, - bool? skipDuplicates, - }) { - final args = { - 'data': data, - 'skipDuplicates': skipDuplicates, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.createMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'createManyProject', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient> - createManyAndReturn({ - required _i1.PrismaUnion<_i3.ProjectCreateManyInput, - Iterable<_i3.ProjectCreateManyInput>> - data, - bool? skipDuplicates, - _i3.CreateManyProjectAndReturnOutputTypeSelect? select, - _i3.CreateManyProjectAndReturnOutputTypeInclude? include, - }) { - final args = { - 'data': data, - 'skipDuplicates': skipDuplicates, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.createManyAndReturn, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient>( - action: 'createManyProjectAndReturn', - result: result, - factory: (values) => (values as Iterable) - .map((e) => _i2.CreateManyProjectAndReturnOutputType.fromJson(e)), - ); - } - - _i1.ActionClient<_i2.Project?> update({ - required _i1 - .PrismaUnion<_i3.ProjectUpdateInput, _i3.ProjectUncheckedUpdateInput> - data, - required _i3.ProjectWhereUniqueInput where, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, - }) { - final args = { - 'data': data, - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.updateOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Project?>( - action: 'updateOneProject', - result: result, - factory: (e) => e != null ? _i2.Project.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> updateMany({ - required _i1.PrismaUnion<_i3.ProjectUpdateManyMutationInput, - _i3.ProjectUncheckedUpdateManyInput> - data, - _i3.ProjectWhereInput? where, - }) { - final args = { - 'data': data, - 'where': where, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.updateMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'updateManyProject', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient<_i2.Project> upsert({ - required _i3.ProjectWhereUniqueInput where, - required _i1 - .PrismaUnion<_i3.ProjectCreateInput, _i3.ProjectUncheckedCreateInput> - create, - required _i1 - .PrismaUnion<_i3.ProjectUpdateInput, _i3.ProjectUncheckedUpdateInput> - update, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, - }) { - final args = { - 'where': where, - 'create': create, - 'update': update, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.upsertOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Project>( - action: 'upsertOneProject', - result: result, - factory: (e) => _i2.Project.fromJson(e), - ); - } - - _i1.ActionClient<_i2.Project?> delete({ - required _i3.ProjectWhereUniqueInput where, - _i3.ProjectSelect? select, - _i3.ProjectInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.deleteOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Project?>( - action: 'deleteOneProject', - result: result, - factory: (e) => e != null ? _i2.Project.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> deleteMany( - {_i3.ProjectWhereInput? where}) { - final args = {'where': where}; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.deleteMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'deleteManyProject', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient> groupBy({ - _i3.ProjectWhereInput? where, - _i1.PrismaUnion, - _i3.ProjectOrderByWithAggregationInput>? - orderBy, - required _i1.PrismaUnion, _i3.ProjectScalar> by, - _i3.ProjectScalarWhereWithAggregatesInput? having, - int? take, - int? skip, - _i3.ProjectGroupByOutputTypeSelect? select, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'by': _i1.JsonQuery.groupBySerializer(by), - 'having': having, - 'take': take, - 'skip': skip, - 'select': select ?? _i1.JsonQuery.groupBySelectSerializer(by), - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.groupBy, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient>( - action: 'groupByProject', - result: result, - factory: (values) => (values as Iterable) - .map((e) => _i3.ProjectGroupByOutputType.fromJson(e)), - ); - } - - _i1.ActionClient<_i3.AggregateProject> aggregate({ - _i3.ProjectWhereInput? where, - _i1.PrismaUnion, - _i3.ProjectOrderByWithRelationInput>? - orderBy, - _i3.ProjectWhereUniqueInput? cursor, - int? take, - int? skip, - _i3.AggregateProjectSelect? select, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'select': select, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Project', - action: _i1.JsonQueryAction.aggregate, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AggregateProject>( - action: 'aggregateProject', - result: result, - factory: (e) => _i3.AggregateProject.fromJson(e), - ); - } -} - -class TimeEntryDelegate { - const TimeEntryDelegate._(this._client); - - final PrismaClient _client; - - _i1.ActionClient<_i2.TimeEntry?> findUnique({ - required _i3.TimeEntryWhereUniqueInput where, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.findUnique, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.TimeEntry?>( - action: 'findUniqueTimeEntry', - result: result, - factory: (e) => e != null ? _i2.TimeEntry.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i2.TimeEntry> findUniqueOrThrow({ - required _i3.TimeEntryWhereUniqueInput where, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.findUniqueOrThrow, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.TimeEntry>( - action: 'findUniqueTimeEntryOrThrow', - result: result, - factory: (e) => _i2.TimeEntry.fromJson(e), - ); - } - - _i1.ActionClient<_i2.TimeEntry?> findFirst({ - _i3.TimeEntryWhereInput? where, - _i1.PrismaUnion, - _i3.TimeEntryOrderByWithRelationInput>? - orderBy, - _i3.TimeEntryWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.TimeEntryScalar, Iterable<_i3.TimeEntryScalar>>? - distinct, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.findFirst, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.TimeEntry?>( - action: 'findFirstTimeEntry', - result: result, - factory: (e) => e != null ? _i2.TimeEntry.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i2.TimeEntry> findFirstOrThrow({ - _i3.TimeEntryWhereInput? where, - _i1.PrismaUnion, - _i3.TimeEntryOrderByWithRelationInput>? - orderBy, - _i3.TimeEntryWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.TimeEntryScalar, Iterable<_i3.TimeEntryScalar>>? - distinct, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.findFirstOrThrow, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.TimeEntry>( - action: 'findFirstTimeEntryOrThrow', - result: result, - factory: (e) => _i2.TimeEntry.fromJson(e), - ); - } - - _i1.ActionClient> findMany({ - _i3.TimeEntryWhereInput? where, - _i1.PrismaUnion, - _i3.TimeEntryOrderByWithRelationInput>? - orderBy, - _i3.TimeEntryWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.TimeEntryScalar, Iterable<_i3.TimeEntryScalar>>? - distinct, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.findMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient>( - action: 'findManyTimeEntry', - result: result, - factory: (values) => - (values as Iterable).map((e) => _i2.TimeEntry.fromJson(e)), - ); - } - - _i1.ActionClient<_i2.TimeEntry> create({ - required _i1.PrismaUnion<_i3.TimeEntryCreateInput, - _i3.TimeEntryUncheckedCreateInput> - data, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'data': data, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.createOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.TimeEntry>( - action: 'createOneTimeEntry', - result: result, - factory: (e) => _i2.TimeEntry.fromJson(e), - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> createMany({ - required _i1.PrismaUnion<_i3.TimeEntryCreateManyInput, - Iterable<_i3.TimeEntryCreateManyInput>> - data, - bool? skipDuplicates, - }) { - final args = { - 'data': data, - 'skipDuplicates': skipDuplicates, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.createMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'createManyTimeEntry', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient> - createManyAndReturn({ - required _i1.PrismaUnion<_i3.TimeEntryCreateManyInput, - Iterable<_i3.TimeEntryCreateManyInput>> - data, - bool? skipDuplicates, - _i3.CreateManyTimeEntryAndReturnOutputTypeSelect? select, - _i3.CreateManyTimeEntryAndReturnOutputTypeInclude? include, - }) { - final args = { - 'data': data, - 'skipDuplicates': skipDuplicates, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.createManyAndReturn, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient< - Iterable<_i2.CreateManyTimeEntryAndReturnOutputType>>( - action: 'createManyTimeEntryAndReturn', - result: result, - factory: (values) => (values as Iterable) - .map((e) => _i2.CreateManyTimeEntryAndReturnOutputType.fromJson(e)), - ); - } - - _i1.ActionClient<_i2.TimeEntry?> update({ - required _i1.PrismaUnion<_i3.TimeEntryUpdateInput, - _i3.TimeEntryUncheckedUpdateInput> - data, - required _i3.TimeEntryWhereUniqueInput where, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'data': data, - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.updateOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.TimeEntry?>( - action: 'updateOneTimeEntry', - result: result, - factory: (e) => e != null ? _i2.TimeEntry.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> updateMany({ - required _i1.PrismaUnion<_i3.TimeEntryUpdateManyMutationInput, - _i3.TimeEntryUncheckedUpdateManyInput> - data, - _i3.TimeEntryWhereInput? where, - }) { - final args = { - 'data': data, - 'where': where, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.updateMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'updateManyTimeEntry', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient<_i2.TimeEntry> upsert({ - required _i3.TimeEntryWhereUniqueInput where, - required _i1.PrismaUnion<_i3.TimeEntryCreateInput, - _i3.TimeEntryUncheckedCreateInput> - create, - required _i1.PrismaUnion<_i3.TimeEntryUpdateInput, - _i3.TimeEntryUncheckedUpdateInput> - update, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'where': where, - 'create': create, - 'update': update, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.upsertOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.TimeEntry>( - action: 'upsertOneTimeEntry', - result: result, - factory: (e) => _i2.TimeEntry.fromJson(e), - ); - } - - _i1.ActionClient<_i2.TimeEntry?> delete({ - required _i3.TimeEntryWhereUniqueInput where, - _i3.TimeEntrySelect? select, - _i3.TimeEntryInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.deleteOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.TimeEntry?>( - action: 'deleteOneTimeEntry', - result: result, - factory: (e) => e != null ? _i2.TimeEntry.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> deleteMany( - {_i3.TimeEntryWhereInput? where}) { - final args = {'where': where}; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.deleteMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'deleteManyTimeEntry', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient> groupBy({ - _i3.TimeEntryWhereInput? where, - _i1.PrismaUnion, - _i3.TimeEntryOrderByWithAggregationInput>? - orderBy, - required _i1.PrismaUnion, _i3.TimeEntryScalar> - by, - _i3.TimeEntryScalarWhereWithAggregatesInput? having, - int? take, - int? skip, - _i3.TimeEntryGroupByOutputTypeSelect? select, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'by': _i1.JsonQuery.groupBySerializer(by), - 'having': having, - 'take': take, - 'skip': skip, - 'select': select ?? _i1.JsonQuery.groupBySelectSerializer(by), - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.groupBy, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient>( - action: 'groupByTimeEntry', - result: result, - factory: (values) => (values as Iterable) - .map((e) => _i3.TimeEntryGroupByOutputType.fromJson(e)), - ); - } - - _i1.ActionClient<_i3.AggregateTimeEntry> aggregate({ - _i3.TimeEntryWhereInput? where, - _i1.PrismaUnion, - _i3.TimeEntryOrderByWithRelationInput>? - orderBy, - _i3.TimeEntryWhereUniqueInput? cursor, - int? take, - int? skip, - _i3.AggregateTimeEntrySelect? select, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'select': select, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'TimeEntry', - action: _i1.JsonQueryAction.aggregate, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AggregateTimeEntry>( - action: 'aggregateTimeEntry', - result: result, - factory: (e) => _i3.AggregateTimeEntry.fromJson(e), - ); - } -} - -class TaskDelegate { - const TaskDelegate._(this._client); - - final PrismaClient _client; - - _i1.ActionClient<_i2.Task?> findUnique({ - required _i3.TaskWhereUniqueInput where, - _i3.TaskSelect? select, - _i3.TaskInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.findUnique, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Task?>( - action: 'findUniqueTask', - result: result, - factory: (e) => e != null ? _i2.Task.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i2.Task> findUniqueOrThrow({ - required _i3.TaskWhereUniqueInput where, - _i3.TaskSelect? select, - _i3.TaskInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.findUniqueOrThrow, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Task>( - action: 'findUniqueTaskOrThrow', - result: result, - factory: (e) => _i2.Task.fromJson(e), - ); - } - - _i1.ActionClient<_i2.Task?> findFirst({ - _i3.TaskWhereInput? where, - _i1.PrismaUnion, - _i3.TaskOrderByWithRelationInput>? - orderBy, - _i3.TaskWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.TaskScalar, Iterable<_i3.TaskScalar>>? distinct, - _i3.TaskSelect? select, - _i3.TaskInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.findFirst, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Task?>( - action: 'findFirstTask', - result: result, - factory: (e) => e != null ? _i2.Task.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i2.Task> findFirstOrThrow({ - _i3.TaskWhereInput? where, - _i1.PrismaUnion, - _i3.TaskOrderByWithRelationInput>? - orderBy, - _i3.TaskWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.TaskScalar, Iterable<_i3.TaskScalar>>? distinct, - _i3.TaskSelect? select, - _i3.TaskInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.findFirstOrThrow, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Task>( - action: 'findFirstTaskOrThrow', - result: result, - factory: (e) => _i2.Task.fromJson(e), - ); - } - - _i1.ActionClient> findMany({ - _i3.TaskWhereInput? where, - _i1.PrismaUnion, - _i3.TaskOrderByWithRelationInput>? - orderBy, - _i3.TaskWhereUniqueInput? cursor, - int? take, - int? skip, - _i1.PrismaUnion<_i3.TaskScalar, Iterable<_i3.TaskScalar>>? distinct, - _i3.TaskSelect? select, - _i3.TaskInclude? include, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.findMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient>( - action: 'findManyTask', - result: result, - factory: (values) => - (values as Iterable).map((e) => _i2.Task.fromJson(e)), - ); - } - - _i1.ActionClient<_i2.Task> create({ - required _i1.PrismaUnion<_i3.TaskCreateInput, _i3.TaskUncheckedCreateInput> - data, - _i3.TaskSelect? select, - _i3.TaskInclude? include, - }) { - final args = { - 'data': data, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.createOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Task>( - action: 'createOneTask', - result: result, - factory: (e) => _i2.Task.fromJson(e), - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> createMany({ - required _i1 - .PrismaUnion<_i3.TaskCreateManyInput, Iterable<_i3.TaskCreateManyInput>> - data, - bool? skipDuplicates, - }) { - final args = { - 'data': data, - 'skipDuplicates': skipDuplicates, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.createMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'createManyTask', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient> - createManyAndReturn({ - required _i1 - .PrismaUnion<_i3.TaskCreateManyInput, Iterable<_i3.TaskCreateManyInput>> - data, - bool? skipDuplicates, - _i3.CreateManyTaskAndReturnOutputTypeSelect? select, - _i3.CreateManyTaskAndReturnOutputTypeInclude? include, - }) { - final args = { - 'data': data, - 'skipDuplicates': skipDuplicates, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.createManyAndReturn, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient>( - action: 'createManyTaskAndReturn', - result: result, - factory: (values) => (values as Iterable) - .map((e) => _i2.CreateManyTaskAndReturnOutputType.fromJson(e)), - ); - } - - _i1.ActionClient<_i2.Task?> update({ - required _i1.PrismaUnion<_i3.TaskUpdateInput, _i3.TaskUncheckedUpdateInput> - data, - required _i3.TaskWhereUniqueInput where, - _i3.TaskSelect? select, - _i3.TaskInclude? include, - }) { - final args = { - 'data': data, - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.updateOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Task?>( - action: 'updateOneTask', - result: result, - factory: (e) => e != null ? _i2.Task.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> updateMany({ - required _i1.PrismaUnion<_i3.TaskUpdateManyMutationInput, - _i3.TaskUncheckedUpdateManyInput> - data, - _i3.TaskWhereInput? where, - }) { - final args = { - 'data': data, - 'where': where, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.updateMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'updateManyTask', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient<_i2.Task> upsert({ - required _i3.TaskWhereUniqueInput where, - required _i1.PrismaUnion<_i3.TaskCreateInput, _i3.TaskUncheckedCreateInput> - create, - required _i1.PrismaUnion<_i3.TaskUpdateInput, _i3.TaskUncheckedUpdateInput> - update, - _i3.TaskSelect? select, - _i3.TaskInclude? include, - }) { - final args = { - 'where': where, - 'create': create, - 'update': update, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.upsertOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Task>( - action: 'upsertOneTask', - result: result, - factory: (e) => _i2.Task.fromJson(e), - ); - } - - _i1.ActionClient<_i2.Task?> delete({ - required _i3.TaskWhereUniqueInput where, - _i3.TaskSelect? select, - _i3.TaskInclude? include, - }) { - final args = { - 'where': where, - 'select': select, - 'include': include, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.deleteOne, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i2.Task?>( - action: 'deleteOneTask', - result: result, - factory: (e) => e != null ? _i2.Task.fromJson(e) : null, - ); - } - - _i1.ActionClient<_i3.AffectedRowsOutput> deleteMany( - {_i3.TaskWhereInput? where}) { - final args = {'where': where}; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.deleteMany, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AffectedRowsOutput>( - action: 'deleteManyTask', - result: result, - factory: (e) => _i3.AffectedRowsOutput.fromJson(e), - ); - } - - _i1.ActionClient> groupBy({ - _i3.TaskWhereInput? where, - _i1.PrismaUnion, - _i3.TaskOrderByWithAggregationInput>? - orderBy, - required _i1.PrismaUnion, _i3.TaskScalar> by, - _i3.TaskScalarWhereWithAggregatesInput? having, - int? take, - int? skip, - _i3.TaskGroupByOutputTypeSelect? select, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'by': _i1.JsonQuery.groupBySerializer(by), - 'having': having, - 'take': take, - 'skip': skip, - 'select': select ?? _i1.JsonQuery.groupBySelectSerializer(by), - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.groupBy, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient>( - action: 'groupByTask', - result: result, - factory: (values) => (values as Iterable) - .map((e) => _i3.TaskGroupByOutputType.fromJson(e)), - ); - } - - _i1.ActionClient<_i3.AggregateTask> aggregate({ - _i3.TaskWhereInput? where, - _i1.PrismaUnion, - _i3.TaskOrderByWithRelationInput>? - orderBy, - _i3.TaskWhereUniqueInput? cursor, - int? take, - int? skip, - _i3.AggregateTaskSelect? select, - }) { - final args = { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'select': select, - }; - final query = _i1.serializeJsonQuery( - args: args, - modelName: 'Task', - action: _i1.JsonQueryAction.aggregate, - datamodel: PrismaClient.datamodel, - ); - final result = _client.$engine.request( - query, - headers: _client.$transaction.headers, - transaction: _client.$transaction.transaction, - ); - return _i1.ActionClient<_i3.AggregateTask>( - action: 'aggregateTask', - result: result, - factory: (e) => _i3.AggregateTask.fromJson(e), - ); - } -} - -class PrismaClient extends _i1.BasePrismaClient { - PrismaClient({ - super.datasourceUrl, - super.datasources, - super.errorFormat, - super.log, - _i1.Engine? engine, - }) : _engine = engine; - - static final datamodel = _i4.DataModel.fromJson({ - 'enums': [], - 'models': [ - { - 'name': 'User', - 'dbName': null, - 'schema': null, - 'fields': [ - { - 'name': 'id', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': true, - 'isReadOnly': false, - 'hasDefaultValue': true, - 'type': 'String', - 'nativeType': null, - 'default': { - 'name': 'uuid', - 'args': [4], - }, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'name', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'String', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'email', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': true, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'String', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'password', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'String', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'projects', - 'kind': 'object', - 'isList': true, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'Project', - 'nativeType': null, - 'relationName': 'ProjectToUser', - 'relationFromFields': [], - 'relationToFields': [], - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'timeEntries', - 'kind': 'object', - 'isList': true, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'TimeEntry', - 'nativeType': null, - 'relationName': 'TimeEntryToUser', - 'relationFromFields': [], - 'relationToFields': [], - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'createdAt', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': true, - 'type': 'DateTime', - 'nativeType': null, - 'default': { - 'name': 'now', - 'args': [], - }, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'updatedAt', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'DateTime', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': true, - }, - ], - 'primaryKey': null, - 'uniqueFields': [], - 'uniqueIndexes': [], - 'isGenerated': false, - }, - { - 'name': 'Project', - 'dbName': null, - 'schema': null, - 'fields': [ - { - 'name': 'id', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': true, - 'isReadOnly': false, - 'hasDefaultValue': true, - 'type': 'String', - 'nativeType': null, - 'default': { - 'name': 'uuid', - 'args': [4], - }, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'name', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'String', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'description', - 'kind': 'scalar', - 'isList': false, - 'isRequired': false, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'String', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'clientId', - 'kind': 'scalar', - 'isList': false, - 'isRequired': false, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'String', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'tasks', - 'kind': 'object', - 'isList': true, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'Task', - 'nativeType': null, - 'relationName': 'ProjectToTask', - 'relationFromFields': [], - 'relationToFields': [], - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'timeEntries', - 'kind': 'object', - 'isList': true, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'TimeEntry', - 'nativeType': null, - 'relationName': 'ProjectToTimeEntry', - 'relationFromFields': [], - 'relationToFields': [], - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'user', - 'kind': 'object', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'User', - 'nativeType': null, - 'relationName': 'ProjectToUser', - 'relationFromFields': ['userId'], - 'relationToFields': ['id'], - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'userId', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': true, - 'hasDefaultValue': false, - 'type': 'String', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'createdAt', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': true, - 'type': 'DateTime', - 'nativeType': null, - 'default': { - 'name': 'now', - 'args': [], - }, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'updatedAt', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'DateTime', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': true, - }, - ], - 'primaryKey': null, - 'uniqueFields': [], - 'uniqueIndexes': [], - 'isGenerated': false, - }, - { - 'name': 'TimeEntry', - 'dbName': null, - 'schema': null, - 'fields': [ - { - 'name': 'id', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': true, - 'isReadOnly': false, - 'hasDefaultValue': true, - 'type': 'String', - 'nativeType': null, - 'default': { - 'name': 'uuid', - 'args': [4], - }, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'startTime', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'DateTime', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'endTime', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'DateTime', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'description', - 'kind': 'scalar', - 'isList': false, - 'isRequired': false, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'String', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'user', - 'kind': 'object', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'User', - 'nativeType': null, - 'relationName': 'TimeEntryToUser', - 'relationFromFields': ['userId'], - 'relationToFields': ['id'], - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'userId', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': true, - 'hasDefaultValue': false, - 'type': 'String', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'project', - 'kind': 'object', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'Project', - 'nativeType': null, - 'relationName': 'ProjectToTimeEntry', - 'relationFromFields': ['projectId'], - 'relationToFields': ['id'], - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'projectId', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': true, - 'hasDefaultValue': false, - 'type': 'String', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'createdAt', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': true, - 'type': 'DateTime', - 'nativeType': null, - 'default': { - 'name': 'now', - 'args': [], - }, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'updatedAt', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'DateTime', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': true, - }, - ], - 'primaryKey': null, - 'uniqueFields': [], - 'uniqueIndexes': [], - 'isGenerated': false, - }, - { - 'name': 'Task', - 'dbName': null, - 'schema': null, - 'fields': [ - { - 'name': 'id', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': true, - 'isReadOnly': false, - 'hasDefaultValue': true, - 'type': 'String', - 'nativeType': null, - 'default': { - 'name': 'uuid', - 'args': [4], - }, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'name', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'String', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'description', - 'kind': 'scalar', - 'isList': false, - 'isRequired': false, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'String', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'project', - 'kind': 'object', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'Project', - 'nativeType': null, - 'relationName': 'ProjectToTask', - 'relationFromFields': ['projectId'], - 'relationToFields': ['id'], - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'projectId', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': true, - 'hasDefaultValue': false, - 'type': 'String', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'createdAt', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': true, - 'type': 'DateTime', - 'nativeType': null, - 'default': { - 'name': 'now', - 'args': [], - }, - 'isGenerated': false, - 'isUpdatedAt': false, - }, - { - 'name': 'updatedAt', - 'kind': 'scalar', - 'isList': false, - 'isRequired': true, - 'isUnique': false, - 'isId': false, - 'isReadOnly': false, - 'hasDefaultValue': false, - 'type': 'DateTime', - 'nativeType': null, - 'isGenerated': false, - 'isUpdatedAt': true, - }, - ], - 'primaryKey': null, - 'uniqueFields': [], - 'uniqueIndexes': [], - 'isGenerated': false, - }, - ], - 'types': [], - 'indexes': [ - { - 'model': 'User', - 'type': 'id', - 'isDefinedOnField': true, - 'fields': [ - {'name': 'id'} - ], - }, - { - 'model': 'User', - 'type': 'unique', - 'isDefinedOnField': true, - 'fields': [ - {'name': 'email'} - ], - }, - { - 'model': 'Project', - 'type': 'id', - 'isDefinedOnField': true, - 'fields': [ - {'name': 'id'} - ], - }, - { - 'model': 'TimeEntry', - 'type': 'id', - 'isDefinedOnField': true, - 'fields': [ - {'name': 'id'} - ], - }, - { - 'model': 'Task', - 'type': 'id', - 'isDefinedOnField': true, - 'fields': [ - {'name': 'id'} - ], - }, - ], - }); - - _i1.Engine? _engine; - - _i1.TransactionClient? _transaction; - - @override - get $transaction { - if (_transaction != null) return _transaction!; - PrismaClient factory(_i1.TransactionClient transaction) { - final client = PrismaClient( - engine: $engine, - datasources: $options.datasources, - datasourceUrl: $options.datasourceUrl, - errorFormat: $options.errorFormat, - log: $options.logEmitter.definition, - ); - client.$options.logEmitter = $options.logEmitter; - client._transaction = transaction; - - return client; - } - - return _transaction = _i1.TransactionClient($engine, factory); - } - - @override - get $engine => _engine ??= _i5.BinaryEngine( - schema: - 'generator dartClient {\n provider = "dart run orm"\n output = "lib/infrastructure/persistence/db"\n}\n\ndatasource db {\n provider = "postgresql"\n url = env("DATABASE_URL")\n}\n\n// User Model\nmodel User {\n id String @id @default(uuid())\n name String\n email String @unique\n password String\n projects Project[] // Beziehung zu Projekten\n timeEntries TimeEntry[] // Beziehung zu Zeiteinträgen\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\n// Project Model\nmodel Project {\n id String @id @default(uuid())\n name String\n description String?\n clientId String?\n tasks Task[] // Beziehung zu Aufgaben\n timeEntries TimeEntry[] // Beziehung zu Zeiteinträgen\n user User @relation(fields: [userId], references: [id])\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\n// TimeEntry Model\nmodel TimeEntry {\n id String @id @default(uuid())\n startTime DateTime\n endTime DateTime\n description String?\n user User @relation(fields: [userId], references: [id])\n userId String\n project Project @relation(fields: [projectId], references: [id])\n projectId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\n// Task Model (optional)\nmodel Task {\n id String @id @default(uuid())\n name String\n description String?\n project Project @relation(fields: [projectId], references: [id])\n projectId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n', - datasources: const { - 'db': _i1.Datasource( - _i1.DatasourceType.environment, - 'DATABASE_URL', - ) - }, - options: $options, - ); - - @override - get $datamodel => datamodel; - - UserDelegate get user => UserDelegate._(this); - - ProjectDelegate get project => ProjectDelegate._(this); - - TimeEntryDelegate get timeEntry => TimeEntryDelegate._(this); - - TaskDelegate get task => TaskDelegate._(this); -} diff --git a/backend-dart/prisma/lib/infrastructure/persistence/db/model.dart b/backend-dart/prisma/lib/infrastructure/persistence/db/model.dart deleted file mode 100644 index bb871e4..0000000 --- a/backend-dart/prisma/lib/infrastructure/persistence/db/model.dart +++ /dev/null @@ -1,531 +0,0 @@ -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'model.dart' as _i1; -import 'prisma.dart' as _i2; - -class Task { - const Task({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - this.project, - }); - - factory Task.fromJson(Map json) => Task( - id: json['id'], - name: json['name'], - description: json['description'], - projectId: json['projectId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - project: json['project'] is Map - ? _i1.Project.fromJson(json['project']) - : null, - ); - - final String? id; - - final String? name; - - final String? description; - - final String? projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i1.Project? project; - - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - 'project': project?.toJson(), - }; -} - -class TimeEntry { - const TimeEntry({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - this.user, - this.project, - }); - - factory TimeEntry.fromJson(Map json) => TimeEntry( - id: json['id'], - startTime: switch (json['startTime']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['startTime'] - }, - endTime: switch (json['endTime']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['endTime'] - }, - description: json['description'], - userId: json['userId'], - projectId: json['projectId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - user: json['user'] is Map ? _i1.User.fromJson(json['user']) : null, - project: json['project'] is Map - ? _i1.Project.fromJson(json['project']) - : null, - ); - - final String? id; - - final DateTime? startTime; - - final DateTime? endTime; - - final String? description; - - final String? userId; - - final String? projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i1.User? user; - - final _i1.Project? project; - - Map toJson() => { - 'id': id, - 'startTime': startTime?.toIso8601String(), - 'endTime': endTime?.toIso8601String(), - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - 'user': user?.toJson(), - 'project': project?.toJson(), - }; -} - -class Project { - const Project({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.tasks, - this.timeEntries, - this.user, - this.$count, - }); - - factory Project.fromJson(Map json) => Project( - id: json['id'], - name: json['name'], - description: json['description'], - clientId: json['clientId'], - userId: json['userId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - tasks: (json['tasks'] as Iterable?) - ?.map((json) => _i1.Task.fromJson(json)), - timeEntries: (json['timeEntries'] as Iterable?) - ?.map((json) => _i1.TimeEntry.fromJson(json)), - user: json['user'] is Map ? _i1.User.fromJson(json['user']) : null, - $count: json['_count'] is Map - ? _i2.ProjectCountOutputType.fromJson(json['_count']) - : null, - ); - - final String? id; - - final String? name; - - final String? description; - - final String? clientId; - - final String? userId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final Iterable<_i1.Task>? tasks; - - final Iterable<_i1.TimeEntry>? timeEntries; - - final _i1.User? user; - - final _i2.ProjectCountOutputType? $count; - - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - 'tasks': tasks?.map((e) => e.toJson()), - 'timeEntries': timeEntries?.map((e) => e.toJson()), - 'user': user?.toJson(), - '_count': $count?.toJson(), - }; -} - -class User { - const User({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.projects, - this.timeEntries, - this.$count, - }); - - factory User.fromJson(Map json) => User( - id: json['id'], - name: json['name'], - email: json['email'], - password: json['password'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - projects: (json['projects'] as Iterable?) - ?.map((json) => _i1.Project.fromJson(json)), - timeEntries: (json['timeEntries'] as Iterable?) - ?.map((json) => _i1.TimeEntry.fromJson(json)), - $count: json['_count'] is Map - ? _i2.UserCountOutputType.fromJson(json['_count']) - : null, - ); - - final String? id; - - final String? name; - - final String? email; - - final String? password; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final Iterable<_i1.Project>? projects; - - final Iterable<_i1.TimeEntry>? timeEntries; - - final _i2.UserCountOutputType? $count; - - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - 'projects': projects?.map((e) => e.toJson()), - 'timeEntries': timeEntries?.map((e) => e.toJson()), - '_count': $count?.toJson(), - }; -} - -class CreateManyUserAndReturnOutputType { - const CreateManyUserAndReturnOutputType({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - }); - - factory CreateManyUserAndReturnOutputType.fromJson(Map json) => - CreateManyUserAndReturnOutputType( - id: json['id'], - name: json['name'], - email: json['email'], - password: json['password'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - ); - - final String? id; - - final String? name; - - final String? email; - - final String? password; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - }; -} - -class CreateManyProjectAndReturnOutputType { - const CreateManyProjectAndReturnOutputType({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.user, - }); - - factory CreateManyProjectAndReturnOutputType.fromJson(Map json) => - CreateManyProjectAndReturnOutputType( - id: json['id'], - name: json['name'], - description: json['description'], - clientId: json['clientId'], - userId: json['userId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - user: json['user'] is Map ? _i1.User.fromJson(json['user']) : null, - ); - - final String? id; - - final String? name; - - final String? description; - - final String? clientId; - - final String? userId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i1.User? user; - - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - 'user': user?.toJson(), - }; -} - -class CreateManyTimeEntryAndReturnOutputType { - const CreateManyTimeEntryAndReturnOutputType({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - this.user, - this.project, - }); - - factory CreateManyTimeEntryAndReturnOutputType.fromJson(Map json) => - CreateManyTimeEntryAndReturnOutputType( - id: json['id'], - startTime: switch (json['startTime']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['startTime'] - }, - endTime: switch (json['endTime']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['endTime'] - }, - description: json['description'], - userId: json['userId'], - projectId: json['projectId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - user: json['user'] is Map ? _i1.User.fromJson(json['user']) : null, - project: json['project'] is Map - ? _i1.Project.fromJson(json['project']) - : null, - ); - - final String? id; - - final DateTime? startTime; - - final DateTime? endTime; - - final String? description; - - final String? userId; - - final String? projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i1.User? user; - - final _i1.Project? project; - - Map toJson() => { - 'id': id, - 'startTime': startTime?.toIso8601String(), - 'endTime': endTime?.toIso8601String(), - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - 'user': user?.toJson(), - 'project': project?.toJson(), - }; -} - -class CreateManyTaskAndReturnOutputType { - const CreateManyTaskAndReturnOutputType({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - this.project, - }); - - factory CreateManyTaskAndReturnOutputType.fromJson(Map json) => - CreateManyTaskAndReturnOutputType( - id: json['id'], - name: json['name'], - description: json['description'], - projectId: json['projectId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - project: json['project'] is Map - ? _i1.Project.fromJson(json['project']) - : null, - ); - - final String? id; - - final String? name; - - final String? description; - - final String? projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i1.Project? project; - - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - 'project': project?.toJson(), - }; -} diff --git a/backend-dart/prisma/lib/infrastructure/persistence/db/prisma.dart b/backend-dart/prisma/lib/infrastructure/persistence/db/prisma.dart deleted file mode 100644 index 6f95ac2..0000000 --- a/backend-dart/prisma/lib/infrastructure/persistence/db/prisma.dart +++ /dev/null @@ -1,10218 +0,0 @@ -// ignore_for_file: non_constant_identifier_names - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'package:orm/orm.dart' as _i1; - -import 'prisma.dart' as _i2; - -class ProjectCountOutputType { - const ProjectCountOutputType({ - this.tasks, - this.timeEntries, - }); - - factory ProjectCountOutputType.fromJson(Map json) => ProjectCountOutputType( - tasks: json['tasks'], - timeEntries: json['timeEntries'], - ); - - final int? tasks; - - final int? timeEntries; - - Map toJson() => { - 'tasks': tasks, - 'timeEntries': timeEntries, - }; -} - -class UserCountOutputType { - const UserCountOutputType({ - this.projects, - this.timeEntries, - }); - - factory UserCountOutputType.fromJson(Map json) => UserCountOutputType( - projects: json['projects'], - timeEntries: json['timeEntries'], - ); - - final int? projects; - - final int? timeEntries; - - Map toJson() => { - 'projects': projects, - 'timeEntries': timeEntries, - }; -} - -enum QueryMode implements _i1.PrismaEnum { - $default._('default'), - insensitive._('insensitive'); - - const QueryMode._(this.name); - - @override - final String name; -} - -class NestedStringFilter implements _i1.JsonConvertible> { - 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 _i1.PrismaUnion>? equals; - - final _i1.PrismaUnion, _i1.Reference>>? $in; - - final _i1.PrismaUnion, _i1.Reference>>? - notIn; - - final _i1.PrismaUnion>? lt; - - final _i1.PrismaUnion>? lte; - - final _i1.PrismaUnion>? gt; - - final _i1.PrismaUnion>? gte; - - final _i1.PrismaUnion>? contains; - - final _i1.PrismaUnion>? startsWith; - - final _i1.PrismaUnion>? endsWith; - - final _i1.PrismaUnion? not; - - @override - Map toJson() => { - 'equals': equals, - 'in': $in, - 'notIn': notIn, - 'lt': lt, - 'lte': lte, - 'gt': gt, - 'gte': gte, - 'contains': contains, - 'startsWith': startsWith, - 'endsWith': endsWith, - 'not': not, - }; -} - -class StringFilter implements _i1.JsonConvertible> { - 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 _i1.PrismaUnion>? equals; - - final _i1.PrismaUnion, _i1.Reference>>? $in; - - final _i1.PrismaUnion, _i1.Reference>>? - notIn; - - final _i1.PrismaUnion>? lt; - - final _i1.PrismaUnion>? lte; - - final _i1.PrismaUnion>? gt; - - final _i1.PrismaUnion>? gte; - - final _i1.PrismaUnion>? contains; - - final _i1.PrismaUnion>? startsWith; - - final _i1.PrismaUnion>? endsWith; - - final _i2.QueryMode? mode; - - final _i1.PrismaUnion? not; - - @override - Map toJson() => { - '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 NestedDateTimeFilter - implements _i1.JsonConvertible> { - const NestedDateTimeFilter({ - this.equals, - this.$in, - this.notIn, - this.lt, - this.lte, - this.gt, - this.gte, - this.not, - }); - - final _i1.PrismaUnion>? equals; - - final _i1.PrismaUnion, _i1.Reference>>? - $in; - - final _i1.PrismaUnion, _i1.Reference>>? - notIn; - - final _i1.PrismaUnion>? lt; - - final _i1.PrismaUnion>? lte; - - final _i1.PrismaUnion>? gt; - - final _i1.PrismaUnion>? gte; - - final _i1.PrismaUnion? not; - - @override - Map toJson() => { - 'equals': equals, - 'in': $in, - 'notIn': notIn, - 'lt': lt, - 'lte': lte, - 'gt': gt, - 'gte': gte, - 'not': not, - }; -} - -class DateTimeFilter implements _i1.JsonConvertible> { - const DateTimeFilter({ - this.equals, - this.$in, - this.notIn, - this.lt, - this.lte, - this.gt, - this.gte, - this.not, - }); - - final _i1.PrismaUnion>? equals; - - final _i1.PrismaUnion, _i1.Reference>>? - $in; - - final _i1.PrismaUnion, _i1.Reference>>? - notIn; - - final _i1.PrismaUnion>? lt; - - final _i1.PrismaUnion>? lte; - - final _i1.PrismaUnion>? gt; - - final _i1.PrismaUnion>? gte; - - final _i1.PrismaUnion? not; - - @override - Map toJson() => { - 'equals': equals, - 'in': $in, - 'notIn': notIn, - 'lt': lt, - 'lte': lte, - 'gt': gt, - 'gte': gte, - 'not': not, - }; -} - -class NestedStringNullableFilter - implements _i1.JsonConvertible> { - 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 _i1.PrismaUnion, _i1.PrismaNull>>? equals; - - final _i1.PrismaUnion, - _i1.PrismaUnion<_i1.Reference>, _i1.PrismaNull>>? $in; - - final _i1.PrismaUnion, - _i1.PrismaUnion<_i1.Reference>, _i1.PrismaNull>>? notIn; - - final _i1.PrismaUnion>? lt; - - final _i1.PrismaUnion>? lte; - - final _i1.PrismaUnion>? gt; - - final _i1.PrismaUnion>? gte; - - final _i1.PrismaUnion>? contains; - - final _i1.PrismaUnion>? startsWith; - - final _i1.PrismaUnion>? endsWith; - - final _i1.PrismaUnion>? not; - - @override - Map toJson() => { - 'equals': equals, - 'in': $in, - 'notIn': notIn, - 'lt': lt, - 'lte': lte, - 'gt': gt, - 'gte': gte, - 'contains': contains, - 'startsWith': startsWith, - 'endsWith': endsWith, - 'not': not, - }; -} - -class StringNullableFilter - implements _i1.JsonConvertible> { - 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 _i1.PrismaUnion, _i1.PrismaNull>>? equals; - - final _i1.PrismaUnion, - _i1.PrismaUnion<_i1.Reference>, _i1.PrismaNull>>? $in; - - final _i1.PrismaUnion, - _i1.PrismaUnion<_i1.Reference>, _i1.PrismaNull>>? notIn; - - final _i1.PrismaUnion>? lt; - - final _i1.PrismaUnion>? lte; - - final _i1.PrismaUnion>? gt; - - final _i1.PrismaUnion>? gte; - - final _i1.PrismaUnion>? contains; - - final _i1.PrismaUnion>? startsWith; - - final _i1.PrismaUnion>? endsWith; - - final _i2.QueryMode? mode; - - final _i1.PrismaUnion>? not; - - @override - Map toJson() => { - '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 ProjectScalarRelationFilter - implements _i1.JsonConvertible> { - const ProjectScalarRelationFilter({ - this.$is, - this.isNot, - }); - - final _i2.ProjectWhereInput? $is; - - final _i2.ProjectWhereInput? isNot; - - @override - Map toJson() => { - 'is': $is, - 'isNot': isNot, - }; -} - -class TaskWhereInput implements _i1.JsonConvertible> { - const TaskWhereInput({ - this.AND, - this.OR, - this.NOT, - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - this.project, - }); - - final _i1.PrismaUnion<_i2.TaskWhereInput, Iterable<_i2.TaskWhereInput>>? AND; - - final Iterable<_i2.TaskWhereInput>? OR; - - final _i1.PrismaUnion<_i2.TaskWhereInput, Iterable<_i2.TaskWhereInput>>? NOT; - - final _i1.PrismaUnion<_i2.StringFilter, String>? id; - - final _i1.PrismaUnion<_i2.StringFilter, String>? name; - - final _i1.PrismaUnion<_i2.StringNullableFilter, - _i1.PrismaUnion>? description; - - final _i1.PrismaUnion<_i2.StringFilter, String>? projectId; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - - final _i1.PrismaUnion<_i2.ProjectScalarRelationFilter, _i2.ProjectWhereInput>? - project; - - @override - Map toJson() => { - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'project': project, - }; -} - -class TaskListRelationFilter - implements _i1.JsonConvertible> { - const TaskListRelationFilter({ - this.every, - this.some, - this.none, - }); - - final _i2.TaskWhereInput? every; - - final _i2.TaskWhereInput? some; - - final _i2.TaskWhereInput? none; - - @override - Map toJson() => { - 'every': every, - 'some': some, - 'none': none, - }; -} - -class UserScalarRelationFilter - implements _i1.JsonConvertible> { - const UserScalarRelationFilter({ - this.$is, - this.isNot, - }); - - final _i2.UserWhereInput? $is; - - final _i2.UserWhereInput? isNot; - - @override - Map toJson() => { - 'is': $is, - 'isNot': isNot, - }; -} - -class TimeEntryWhereInput implements _i1.JsonConvertible> { - const TimeEntryWhereInput({ - this.AND, - this.OR, - this.NOT, - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - this.user, - this.project, - }); - - final _i1 - .PrismaUnion<_i2.TimeEntryWhereInput, Iterable<_i2.TimeEntryWhereInput>>? - AND; - - final Iterable<_i2.TimeEntryWhereInput>? OR; - - final _i1 - .PrismaUnion<_i2.TimeEntryWhereInput, Iterable<_i2.TimeEntryWhereInput>>? - NOT; - - final _i1.PrismaUnion<_i2.StringFilter, String>? id; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? startTime; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? endTime; - - final _i1.PrismaUnion<_i2.StringNullableFilter, - _i1.PrismaUnion>? description; - - final _i1.PrismaUnion<_i2.StringFilter, String>? userId; - - final _i1.PrismaUnion<_i2.StringFilter, String>? projectId; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - - final _i1.PrismaUnion<_i2.UserScalarRelationFilter, _i2.UserWhereInput>? user; - - final _i1.PrismaUnion<_i2.ProjectScalarRelationFilter, _i2.ProjectWhereInput>? - project; - - @override - Map toJson() => { - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'user': user, - 'project': project, - }; -} - -class TimeEntryListRelationFilter - implements _i1.JsonConvertible> { - const TimeEntryListRelationFilter({ - this.every, - this.some, - this.none, - }); - - final _i2.TimeEntryWhereInput? every; - - final _i2.TimeEntryWhereInput? some; - - final _i2.TimeEntryWhereInput? none; - - @override - Map toJson() => { - 'every': every, - 'some': some, - 'none': none, - }; -} - -class ProjectWhereInput implements _i1.JsonConvertible> { - const ProjectWhereInput({ - this.AND, - this.OR, - this.NOT, - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.tasks, - this.timeEntries, - this.user, - }); - - final _i1.PrismaUnion<_i2.ProjectWhereInput, Iterable<_i2.ProjectWhereInput>>? - AND; - - final Iterable<_i2.ProjectWhereInput>? OR; - - final _i1.PrismaUnion<_i2.ProjectWhereInput, Iterable<_i2.ProjectWhereInput>>? - NOT; - - final _i1.PrismaUnion<_i2.StringFilter, String>? id; - - final _i1.PrismaUnion<_i2.StringFilter, String>? name; - - final _i1.PrismaUnion<_i2.StringNullableFilter, - _i1.PrismaUnion>? description; - - final _i1.PrismaUnion<_i2.StringNullableFilter, - _i1.PrismaUnion>? clientId; - - final _i1.PrismaUnion<_i2.StringFilter, String>? userId; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - - final _i2.TaskListRelationFilter? tasks; - - final _i2.TimeEntryListRelationFilter? timeEntries; - - final _i1.PrismaUnion<_i2.UserScalarRelationFilter, _i2.UserWhereInput>? user; - - @override - Map toJson() => { - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - 'timeEntries': timeEntries, - 'user': user, - }; -} - -class ProjectListRelationFilter - implements _i1.JsonConvertible> { - const ProjectListRelationFilter({ - this.every, - this.some, - this.none, - }); - - final _i2.ProjectWhereInput? every; - - final _i2.ProjectWhereInput? some; - - final _i2.ProjectWhereInput? none; - - @override - Map toJson() => { - 'every': every, - 'some': some, - 'none': none, - }; -} - -class UserWhereInput implements _i1.JsonConvertible> { - const UserWhereInput({ - this.AND, - this.OR, - this.NOT, - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.projects, - this.timeEntries, - }); - - final _i1.PrismaUnion<_i2.UserWhereInput, Iterable<_i2.UserWhereInput>>? AND; - - final Iterable<_i2.UserWhereInput>? OR; - - final _i1.PrismaUnion<_i2.UserWhereInput, Iterable<_i2.UserWhereInput>>? NOT; - - final _i1.PrismaUnion<_i2.StringFilter, String>? id; - - final _i1.PrismaUnion<_i2.StringFilter, String>? name; - - final _i1.PrismaUnion<_i2.StringFilter, String>? email; - - final _i1.PrismaUnion<_i2.StringFilter, String>? password; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - - final _i2.ProjectListRelationFilter? projects; - - final _i2.TimeEntryListRelationFilter? timeEntries; - - @override - Map toJson() => { - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'projects': projects, - 'timeEntries': timeEntries, - }; -} - -class UserWhereUniqueInput - implements _i1.JsonConvertible> { - const UserWhereUniqueInput({ - this.id, - this.email, - this.AND, - this.OR, - this.NOT, - this.name, - this.password, - this.createdAt, - this.updatedAt, - this.projects, - this.timeEntries, - }); - - final String? id; - - final String? email; - - final _i1.PrismaUnion<_i2.UserWhereInput, Iterable<_i2.UserWhereInput>>? AND; - - final Iterable<_i2.UserWhereInput>? OR; - - final _i1.PrismaUnion<_i2.UserWhereInput, Iterable<_i2.UserWhereInput>>? NOT; - - final _i1.PrismaUnion<_i2.StringFilter, String>? name; - - final _i1.PrismaUnion<_i2.StringFilter, String>? password; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - - final _i2.ProjectListRelationFilter? projects; - - final _i2.TimeEntryListRelationFilter? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'email': email, - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'name': name, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'projects': projects, - 'timeEntries': timeEntries, - }; -} - -class TaskProjectArgs implements _i1.JsonConvertible> { - const TaskProjectArgs({ - this.select, - this.include, - }); - - final _i2.ProjectSelect? select; - - final _i2.ProjectInclude? include; - - @override - Map toJson() => { - 'select': select, - 'include': include, - }; -} - -class TaskInclude implements _i1.JsonConvertible> { - const TaskInclude({this.project}); - - final _i1.PrismaUnion? project; - - @override - Map toJson() => {'project': project}; -} - -enum SortOrder implements _i1.PrismaEnum { - asc._('asc'), - desc._('desc'); - - const SortOrder._(this.name); - - @override - final String name; -} - -enum NullsOrder implements _i1.PrismaEnum { - first._('first'), - last._('last'); - - const NullsOrder._(this.name); - - @override - final String name; -} - -class SortOrderInput implements _i1.JsonConvertible> { - const SortOrderInput({ - required this.sort, - this.nulls, - }); - - final _i2.SortOrder sort; - - final _i2.NullsOrder? nulls; - - @override - Map toJson() => { - 'sort': sort, - 'nulls': nulls, - }; -} - -class TaskOrderByRelationAggregateInput - implements _i1.JsonConvertible> { - const TaskOrderByRelationAggregateInput({this.$count}); - - final _i2.SortOrder? $count; - - @override - Map toJson() => {'_count': $count}; -} - -class TimeEntryOrderByRelationAggregateInput - implements _i1.JsonConvertible> { - const TimeEntryOrderByRelationAggregateInput({this.$count}); - - final _i2.SortOrder? $count; - - @override - Map toJson() => {'_count': $count}; -} - -class ProjectOrderByRelationAggregateInput - implements _i1.JsonConvertible> { - const ProjectOrderByRelationAggregateInput({this.$count}); - - final _i2.SortOrder? $count; - - @override - Map toJson() => {'_count': $count}; -} - -class UserOrderByWithRelationInput - implements _i1.JsonConvertible> { - const UserOrderByWithRelationInput({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.projects, - this.timeEntries, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i2.SortOrder? email; - - final _i2.SortOrder? password; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - final _i2.ProjectOrderByRelationAggregateInput? projects; - - final _i2.TimeEntryOrderByRelationAggregateInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'projects': projects, - 'timeEntries': timeEntries, - }; -} - -class ProjectOrderByWithRelationInput - implements _i1.JsonConvertible> { - const ProjectOrderByWithRelationInput({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.tasks, - this.timeEntries, - this.user, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i1.PrismaUnion<_i2.SortOrder, _i2.SortOrderInput>? description; - - final _i1.PrismaUnion<_i2.SortOrder, _i2.SortOrderInput>? clientId; - - final _i2.SortOrder? userId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - final _i2.TaskOrderByRelationAggregateInput? tasks; - - final _i2.TimeEntryOrderByRelationAggregateInput? timeEntries; - - final _i2.UserOrderByWithRelationInput? user; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - 'timeEntries': timeEntries, - 'user': user, - }; -} - -class TaskOrderByWithRelationInput - implements _i1.JsonConvertible> { - const TaskOrderByWithRelationInput({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - this.project, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i1.PrismaUnion<_i2.SortOrder, _i2.SortOrderInput>? description; - - final _i2.SortOrder? projectId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - final _i2.ProjectOrderByWithRelationInput? project; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'project': project, - }; -} - -class TaskWhereUniqueInput - implements _i1.JsonConvertible> { - const TaskWhereUniqueInput({ - this.id, - this.AND, - this.OR, - this.NOT, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - this.project, - }); - - final String? id; - - final _i1.PrismaUnion<_i2.TaskWhereInput, Iterable<_i2.TaskWhereInput>>? AND; - - final Iterable<_i2.TaskWhereInput>? OR; - - final _i1.PrismaUnion<_i2.TaskWhereInput, Iterable<_i2.TaskWhereInput>>? NOT; - - final _i1.PrismaUnion<_i2.StringFilter, String>? name; - - final _i1.PrismaUnion<_i2.StringNullableFilter, - _i1.PrismaUnion>? description; - - final _i1.PrismaUnion<_i2.StringFilter, String>? projectId; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - - final _i1.PrismaUnion<_i2.ProjectScalarRelationFilter, _i2.ProjectWhereInput>? - project; - - @override - Map toJson() => { - 'id': id, - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'project': project, - }; -} - -enum TaskScalar implements _i1.PrismaEnum, _i1.Reference { - id('id', 'Task'), - name$('name', 'Task'), - description('description', 'Task'), - projectId('projectId', 'Task'), - createdAt('createdAt', 'Task'), - updatedAt('updatedAt', 'Task'); - - const TaskScalar( - this.name, - this.model, - ); - - @override - final String name; - - @override - final String model; -} - -class ProjectTasksArgs implements _i1.JsonConvertible> { - const ProjectTasksArgs({ - this.where, - this.orderBy, - this.cursor, - this.take, - this.skip, - this.distinct, - this.select, - this.include, - }); - - final _i2.TaskWhereInput? where; - - final _i1.PrismaUnion, - _i2.TaskOrderByWithRelationInput>? orderBy; - - final _i2.TaskWhereUniqueInput? cursor; - - final int? take; - - final int? skip; - - final _i1.PrismaUnion<_i2.TaskScalar, Iterable<_i2.TaskScalar>>? distinct; - - final _i2.TaskSelect? select; - - final _i2.TaskInclude? include; - - @override - Map toJson() => { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; -} - -class ProjectWhereUniqueInput - implements _i1.JsonConvertible> { - const ProjectWhereUniqueInput({ - this.id, - this.AND, - this.OR, - this.NOT, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.tasks, - this.timeEntries, - this.user, - }); - - final String? id; - - final _i1.PrismaUnion<_i2.ProjectWhereInput, Iterable<_i2.ProjectWhereInput>>? - AND; - - final Iterable<_i2.ProjectWhereInput>? OR; - - final _i1.PrismaUnion<_i2.ProjectWhereInput, Iterable<_i2.ProjectWhereInput>>? - NOT; - - final _i1.PrismaUnion<_i2.StringFilter, String>? name; - - final _i1.PrismaUnion<_i2.StringNullableFilter, - _i1.PrismaUnion>? description; - - final _i1.PrismaUnion<_i2.StringNullableFilter, - _i1.PrismaUnion>? clientId; - - final _i1.PrismaUnion<_i2.StringFilter, String>? userId; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - - final _i2.TaskListRelationFilter? tasks; - - final _i2.TimeEntryListRelationFilter? timeEntries; - - final _i1.PrismaUnion<_i2.UserScalarRelationFilter, _i2.UserWhereInput>? user; - - @override - Map toJson() => { - 'id': id, - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - 'timeEntries': timeEntries, - 'user': user, - }; -} - -enum ProjectScalar implements _i1.PrismaEnum, _i1.Reference { - id('id', 'Project'), - name$('name', 'Project'), - description('description', 'Project'), - clientId('clientId', 'Project'), - userId('userId', 'Project'), - createdAt('createdAt', 'Project'), - updatedAt('updatedAt', 'Project'); - - const ProjectScalar( - this.name, - this.model, - ); - - @override - final String name; - - @override - final String model; -} - -class UserProjectsArgs implements _i1.JsonConvertible> { - const UserProjectsArgs({ - this.where, - this.orderBy, - this.cursor, - this.take, - this.skip, - this.distinct, - this.select, - this.include, - }); - - final _i2.ProjectWhereInput? where; - - final _i1.PrismaUnion, - _i2.ProjectOrderByWithRelationInput>? orderBy; - - final _i2.ProjectWhereUniqueInput? cursor; - - final int? take; - - final int? skip; - - final _i1.PrismaUnion<_i2.ProjectScalar, Iterable<_i2.ProjectScalar>>? - distinct; - - final _i2.ProjectSelect? select; - - final _i2.ProjectInclude? include; - - @override - Map toJson() => { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; -} - -class TimeEntryUserArgs implements _i1.JsonConvertible> { - const TimeEntryUserArgs({ - this.select, - this.include, - }); - - final _i2.UserSelect? select; - - final _i2.UserInclude? include; - - @override - Map toJson() => { - 'select': select, - 'include': include, - }; -} - -class TimeEntryProjectArgs - implements _i1.JsonConvertible> { - const TimeEntryProjectArgs({ - this.select, - this.include, - }); - - final _i2.ProjectSelect? select; - - final _i2.ProjectInclude? include; - - @override - Map toJson() => { - 'select': select, - 'include': include, - }; -} - -class TimeEntryInclude implements _i1.JsonConvertible> { - const TimeEntryInclude({ - this.user, - this.project, - }); - - final _i1.PrismaUnion? user; - - final _i1.PrismaUnion? project; - - @override - Map toJson() => { - 'user': user, - 'project': project, - }; -} - -class TimeEntryOrderByWithRelationInput - implements _i1.JsonConvertible> { - const TimeEntryOrderByWithRelationInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - this.user, - this.project, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? startTime; - - final _i2.SortOrder? endTime; - - final _i1.PrismaUnion<_i2.SortOrder, _i2.SortOrderInput>? description; - - final _i2.SortOrder? userId; - - final _i2.SortOrder? projectId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - final _i2.UserOrderByWithRelationInput? user; - - final _i2.ProjectOrderByWithRelationInput? project; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'user': user, - 'project': project, - }; -} - -class TimeEntryWhereUniqueInput - implements _i1.JsonConvertible> { - const TimeEntryWhereUniqueInput({ - this.id, - this.AND, - this.OR, - this.NOT, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - this.user, - this.project, - }); - - final String? id; - - final _i1 - .PrismaUnion<_i2.TimeEntryWhereInput, Iterable<_i2.TimeEntryWhereInput>>? - AND; - - final Iterable<_i2.TimeEntryWhereInput>? OR; - - final _i1 - .PrismaUnion<_i2.TimeEntryWhereInput, Iterable<_i2.TimeEntryWhereInput>>? - NOT; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? startTime; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? endTime; - - final _i1.PrismaUnion<_i2.StringNullableFilter, - _i1.PrismaUnion>? description; - - final _i1.PrismaUnion<_i2.StringFilter, String>? userId; - - final _i1.PrismaUnion<_i2.StringFilter, String>? projectId; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - - final _i1.PrismaUnion<_i2.UserScalarRelationFilter, _i2.UserWhereInput>? user; - - final _i1.PrismaUnion<_i2.ProjectScalarRelationFilter, _i2.ProjectWhereInput>? - project; - - @override - Map toJson() => { - 'id': id, - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'user': user, - 'project': project, - }; -} - -enum TimeEntryScalar implements _i1.PrismaEnum, _i1.Reference { - id('id', 'TimeEntry'), - startTime('startTime', 'TimeEntry'), - endTime('endTime', 'TimeEntry'), - description('description', 'TimeEntry'), - userId('userId', 'TimeEntry'), - projectId('projectId', 'TimeEntry'), - createdAt('createdAt', 'TimeEntry'), - updatedAt('updatedAt', 'TimeEntry'); - - const TimeEntryScalar( - this.name, - this.model, - ); - - @override - final String name; - - @override - final String model; -} - -class UserTimeEntriesArgs implements _i1.JsonConvertible> { - const UserTimeEntriesArgs({ - this.where, - this.orderBy, - this.cursor, - this.take, - this.skip, - this.distinct, - this.select, - this.include, - }); - - final _i2.TimeEntryWhereInput? where; - - final _i1.PrismaUnion, - _i2.TimeEntryOrderByWithRelationInput>? orderBy; - - final _i2.TimeEntryWhereUniqueInput? cursor; - - final int? take; - - final int? skip; - - final _i1.PrismaUnion<_i2.TimeEntryScalar, Iterable<_i2.TimeEntryScalar>>? - distinct; - - final _i2.TimeEntrySelect? select; - - final _i2.TimeEntryInclude? include; - - @override - Map toJson() => { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; -} - -class UserCountOutputTypeSelect - implements _i1.JsonConvertible> { - const UserCountOutputTypeSelect({ - this.projects, - this.timeEntries, - }); - - final bool? projects; - - final bool? timeEntries; - - @override - Map toJson() => { - 'projects': projects, - 'timeEntries': timeEntries, - }; -} - -class UserCountArgs implements _i1.JsonConvertible> { - const UserCountArgs({this.select}); - - final _i2.UserCountOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class UserInclude implements _i1.JsonConvertible> { - const UserInclude({ - this.projects, - this.timeEntries, - this.$count, - }); - - final _i1.PrismaUnion? projects; - - final _i1.PrismaUnion? timeEntries; - - final _i1.PrismaUnion? $count; - - @override - Map toJson() => { - 'projects': projects, - 'timeEntries': timeEntries, - '_count': $count, - }; -} - -class TimeEntrySelect implements _i1.JsonConvertible> { - const TimeEntrySelect({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - this.user, - this.project, - }); - - final bool? id; - - final bool? startTime; - - final bool? endTime; - - final bool? description; - - final bool? userId; - - final bool? projectId; - - final bool? createdAt; - - final bool? updatedAt; - - final _i1.PrismaUnion? user; - - final _i1.PrismaUnion? project; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'user': user, - 'project': project, - }; -} - -class ProjectTimeEntriesArgs - implements _i1.JsonConvertible> { - const ProjectTimeEntriesArgs({ - this.where, - this.orderBy, - this.cursor, - this.take, - this.skip, - this.distinct, - this.select, - this.include, - }); - - final _i2.TimeEntryWhereInput? where; - - final _i1.PrismaUnion, - _i2.TimeEntryOrderByWithRelationInput>? orderBy; - - final _i2.TimeEntryWhereUniqueInput? cursor; - - final int? take; - - final int? skip; - - final _i1.PrismaUnion<_i2.TimeEntryScalar, Iterable<_i2.TimeEntryScalar>>? - distinct; - - final _i2.TimeEntrySelect? select; - - final _i2.TimeEntryInclude? include; - - @override - Map toJson() => { - 'where': where, - 'orderBy': orderBy, - 'cursor': cursor, - 'take': take, - 'skip': skip, - 'distinct': distinct, - 'select': select, - 'include': include, - }; -} - -class ProjectUserArgs implements _i1.JsonConvertible> { - const ProjectUserArgs({ - this.select, - this.include, - }); - - final _i2.UserSelect? select; - - final _i2.UserInclude? include; - - @override - Map toJson() => { - 'select': select, - 'include': include, - }; -} - -class ProjectCountOutputTypeSelect - implements _i1.JsonConvertible> { - const ProjectCountOutputTypeSelect({ - this.tasks, - this.timeEntries, - }); - - final bool? tasks; - - final bool? timeEntries; - - @override - Map toJson() => { - 'tasks': tasks, - 'timeEntries': timeEntries, - }; -} - -class ProjectCountArgs implements _i1.JsonConvertible> { - const ProjectCountArgs({this.select}); - - final _i2.ProjectCountOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class ProjectInclude implements _i1.JsonConvertible> { - const ProjectInclude({ - this.tasks, - this.timeEntries, - this.user, - this.$count, - }); - - final _i1.PrismaUnion? tasks; - - final _i1.PrismaUnion? timeEntries; - - final _i1.PrismaUnion? user; - - final _i1.PrismaUnion? $count; - - @override - Map toJson() => { - 'tasks': tasks, - 'timeEntries': timeEntries, - 'user': user, - '_count': $count, - }; -} - -class TaskSelect implements _i1.JsonConvertible> { - const TaskSelect({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - this.project, - }); - - final bool? id; - - final bool? name; - - final bool? description; - - final bool? projectId; - - final bool? createdAt; - - final bool? updatedAt; - - final _i1.PrismaUnion? project; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'project': project, - }; -} - -class ProjectSelect implements _i1.JsonConvertible> { - const ProjectSelect({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.tasks, - this.timeEntries, - this.user, - this.$count, - }); - - final bool? id; - - final bool? name; - - final bool? description; - - final bool? clientId; - - final bool? userId; - - final bool? createdAt; - - final bool? updatedAt; - - final _i1.PrismaUnion? tasks; - - final _i1.PrismaUnion? timeEntries; - - final _i1.PrismaUnion? user; - - final _i1.PrismaUnion? $count; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - 'timeEntries': timeEntries, - 'user': user, - '_count': $count, - }; -} - -class UserSelect implements _i1.JsonConvertible> { - const UserSelect({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.projects, - this.timeEntries, - this.$count, - }); - - final bool? id; - - final bool? name; - - final bool? email; - - final bool? password; - - final bool? createdAt; - - final bool? updatedAt; - - final _i1.PrismaUnion? projects; - - final _i1.PrismaUnion? timeEntries; - - final _i1.PrismaUnion? $count; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'projects': projects, - 'timeEntries': timeEntries, - '_count': $count, - }; -} - -enum UserScalar implements _i1.PrismaEnum, _i1.Reference { - id('id', 'User'), - name$('name', 'User'), - email('email', 'User'), - password('password', 'User'), - createdAt('createdAt', 'User'), - updatedAt('updatedAt', 'User'); - - const UserScalar( - this.name, - this.model, - ); - - @override - final String name; - - @override - final String model; -} - -class TaskCreateWithoutProjectInput - implements _i1.JsonConvertible> { - const TaskCreateWithoutProjectInput({ - this.id, - required this.name, - this.description, - this.createdAt, - this.updatedAt, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskUncheckedCreateWithoutProjectInput - implements _i1.JsonConvertible> { - const TaskUncheckedCreateWithoutProjectInput({ - this.id, - required this.name, - this.description, - this.createdAt, - this.updatedAt, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskCreateOrConnectWithoutProjectInput - implements _i1.JsonConvertible> { - const TaskCreateOrConnectWithoutProjectInput({ - required this.where, - required this.create, - }); - - final _i2.TaskWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.TaskCreateWithoutProjectInput, - _i2.TaskUncheckedCreateWithoutProjectInput> create; - - @override - Map toJson() => { - 'where': where, - 'create': create, - }; -} - -class TaskCreateManyProjectInput - implements _i1.JsonConvertible> { - const TaskCreateManyProjectInput({ - this.id, - required this.name, - this.description, - this.createdAt, - this.updatedAt, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskCreateManyProjectInputEnvelope - implements _i1.JsonConvertible> { - const TaskCreateManyProjectInputEnvelope({ - required this.data, - this.skipDuplicates, - }); - - final _i1.PrismaUnion<_i2.TaskCreateManyProjectInput, - Iterable<_i2.TaskCreateManyProjectInput>> data; - - final bool? skipDuplicates; - - @override - Map toJson() => { - 'data': data, - 'skipDuplicates': skipDuplicates, - }; -} - -class TaskCreateNestedManyWithoutProjectInput - implements _i1.JsonConvertible> { - const TaskCreateNestedManyWithoutProjectInput({ - this.create, - this.connectOrCreate, - this.createMany, - this.connect, - }); - - final _i1.PrismaUnion< - _i2.TaskCreateWithoutProjectInput, - _i1.PrismaUnion< - Iterable<_i2.TaskCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TaskUncheckedCreateWithoutProjectInput, - Iterable<_i2.TaskUncheckedCreateWithoutProjectInput>>>>? create; - - final _i1.PrismaUnion<_i2.TaskCreateOrConnectWithoutProjectInput, - Iterable<_i2.TaskCreateOrConnectWithoutProjectInput>>? connectOrCreate; - - final _i2.TaskCreateManyProjectInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? connect; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'createMany': createMany, - 'connect': connect, - }; -} - -class UserCreateWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const UserCreateWithoutTimeEntriesInput({ - this.id, - required this.name, - required this.email, - required this.password, - this.createdAt, - this.updatedAt, - this.projects, - }); - - final String? id; - - final String name; - - final String email; - - final String password; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.ProjectCreateNestedManyWithoutUserInput? projects; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'projects': projects, - }; -} - -class TaskUncheckedCreateNestedManyWithoutProjectInput - implements _i1.JsonConvertible> { - const TaskUncheckedCreateNestedManyWithoutProjectInput({ - this.create, - this.connectOrCreate, - this.createMany, - this.connect, - }); - - final _i1.PrismaUnion< - _i2.TaskCreateWithoutProjectInput, - _i1.PrismaUnion< - Iterable<_i2.TaskCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TaskUncheckedCreateWithoutProjectInput, - Iterable<_i2.TaskUncheckedCreateWithoutProjectInput>>>>? create; - - final _i1.PrismaUnion<_i2.TaskCreateOrConnectWithoutProjectInput, - Iterable<_i2.TaskCreateOrConnectWithoutProjectInput>>? connectOrCreate; - - final _i2.TaskCreateManyProjectInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? connect; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'createMany': createMany, - 'connect': connect, - }; -} - -class TimeEntryUncheckedCreateWithoutProjectInput - implements _i1.JsonConvertible> { - const TimeEntryUncheckedCreateWithoutProjectInput({ - this.id, - required this.startTime, - required this.endTime, - this.description, - required this.userId, - this.createdAt, - this.updatedAt, - }); - - final String? id; - - final DateTime startTime; - - final DateTime endTime; - - final _i1.PrismaUnion? description; - - final String userId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryCreateOrConnectWithoutProjectInput - implements _i1.JsonConvertible> { - const TimeEntryCreateOrConnectWithoutProjectInput({ - required this.where, - required this.create, - }); - - final _i2.TimeEntryWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.TimeEntryCreateWithoutProjectInput, - _i2.TimeEntryUncheckedCreateWithoutProjectInput> create; - - @override - Map toJson() => { - 'where': where, - 'create': create, - }; -} - -class TimeEntryCreateManyProjectInput - implements _i1.JsonConvertible> { - const TimeEntryCreateManyProjectInput({ - this.id, - required this.startTime, - required this.endTime, - this.description, - required this.userId, - this.createdAt, - this.updatedAt, - }); - - final String? id; - - final DateTime startTime; - - final DateTime endTime; - - final _i1.PrismaUnion? description; - - final String userId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryCreateManyProjectInputEnvelope - implements _i1.JsonConvertible> { - const TimeEntryCreateManyProjectInputEnvelope({ - required this.data, - this.skipDuplicates, - }); - - final _i1.PrismaUnion<_i2.TimeEntryCreateManyProjectInput, - Iterable<_i2.TimeEntryCreateManyProjectInput>> data; - - final bool? skipDuplicates; - - @override - Map toJson() => { - 'data': data, - 'skipDuplicates': skipDuplicates, - }; -} - -class TimeEntryUncheckedCreateNestedManyWithoutProjectInput - implements _i1.JsonConvertible> { - const TimeEntryUncheckedCreateNestedManyWithoutProjectInput({ - this.create, - this.connectOrCreate, - this.createMany, - this.connect, - }); - - final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutProjectInput, - _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutProjectInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutProjectInput>>>>? - create; - - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutProjectInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutProjectInput>>? - connectOrCreate; - - final _i2.TimeEntryCreateManyProjectInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'createMany': createMany, - 'connect': connect, - }; -} - -class ProjectUncheckedCreateWithoutUserInput - implements _i1.JsonConvertible> { - const ProjectUncheckedCreateWithoutUserInput({ - this.id, - required this.name, - this.description, - this.clientId, - this.createdAt, - this.updatedAt, - this.tasks, - this.timeEntries, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final _i1.PrismaUnion? clientId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.TaskUncheckedCreateNestedManyWithoutProjectInput? tasks; - - final _i2.TimeEntryUncheckedCreateNestedManyWithoutProjectInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - 'timeEntries': timeEntries, - }; -} - -class ProjectCreateOrConnectWithoutUserInput - implements _i1.JsonConvertible> { - const ProjectCreateOrConnectWithoutUserInput({ - required this.where, - required this.create, - }); - - final _i2.ProjectWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.ProjectCreateWithoutUserInput, - _i2.ProjectUncheckedCreateWithoutUserInput> create; - - @override - Map toJson() => { - 'where': where, - 'create': create, - }; -} - -class ProjectCreateManyUserInput - implements _i1.JsonConvertible> { - const ProjectCreateManyUserInput({ - this.id, - required this.name, - this.description, - this.clientId, - this.createdAt, - this.updatedAt, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final _i1.PrismaUnion? clientId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class ProjectCreateManyUserInputEnvelope - implements _i1.JsonConvertible> { - const ProjectCreateManyUserInputEnvelope({ - required this.data, - this.skipDuplicates, - }); - - final _i1.PrismaUnion<_i2.ProjectCreateManyUserInput, - Iterable<_i2.ProjectCreateManyUserInput>> data; - - final bool? skipDuplicates; - - @override - Map toJson() => { - 'data': data, - 'skipDuplicates': skipDuplicates, - }; -} - -class ProjectUncheckedCreateNestedManyWithoutUserInput - implements _i1.JsonConvertible> { - const ProjectUncheckedCreateNestedManyWithoutUserInput({ - this.create, - this.connectOrCreate, - this.createMany, - this.connect, - }); - - final _i1.PrismaUnion< - _i2.ProjectCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.ProjectCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.ProjectUncheckedCreateWithoutUserInput, - Iterable<_i2.ProjectUncheckedCreateWithoutUserInput>>>>? create; - - final _i1.PrismaUnion<_i2.ProjectCreateOrConnectWithoutUserInput, - Iterable<_i2.ProjectCreateOrConnectWithoutUserInput>>? connectOrCreate; - - final _i2.ProjectCreateManyUserInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? connect; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'createMany': createMany, - 'connect': connect, - }; -} - -class UserUncheckedCreateWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const UserUncheckedCreateWithoutTimeEntriesInput({ - this.id, - required this.name, - required this.email, - required this.password, - this.createdAt, - this.updatedAt, - this.projects, - }); - - final String? id; - - final String name; - - final String email; - - final String password; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.ProjectUncheckedCreateNestedManyWithoutUserInput? projects; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'projects': projects, - }; -} - -class UserCreateOrConnectWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const UserCreateOrConnectWithoutTimeEntriesInput({ - required this.where, - required this.create, - }); - - final _i2.UserWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.UserCreateWithoutTimeEntriesInput, - _i2.UserUncheckedCreateWithoutTimeEntriesInput> create; - - @override - Map toJson() => { - 'where': where, - 'create': create, - }; -} - -class UserCreateNestedOneWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const UserCreateNestedOneWithoutTimeEntriesInput({ - this.create, - this.connectOrCreate, - this.connect, - }); - - final _i1.PrismaUnion<_i2.UserCreateWithoutTimeEntriesInput, - _i2.UserUncheckedCreateWithoutTimeEntriesInput>? create; - - final _i2.UserCreateOrConnectWithoutTimeEntriesInput? connectOrCreate; - - final _i2.UserWhereUniqueInput? connect; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'connect': connect, - }; -} - -class TimeEntryCreateWithoutProjectInput - implements _i1.JsonConvertible> { - const TimeEntryCreateWithoutProjectInput({ - this.id, - required this.startTime, - required this.endTime, - this.description, - this.createdAt, - this.updatedAt, - required this.user, - }); - - final String? id; - - final DateTime startTime; - - final DateTime endTime; - - final _i1.PrismaUnion? description; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.UserCreateNestedOneWithoutTimeEntriesInput user; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'user': user, - }; -} - -class TimeEntryCreateNestedManyWithoutProjectInput - implements _i1.JsonConvertible> { - const TimeEntryCreateNestedManyWithoutProjectInput({ - this.create, - this.connectOrCreate, - this.createMany, - this.connect, - }); - - final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutProjectInput, - _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutProjectInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutProjectInput>>>>? - create; - - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutProjectInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutProjectInput>>? - connectOrCreate; - - final _i2.TimeEntryCreateManyProjectInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'createMany': createMany, - 'connect': connect, - }; -} - -class ProjectCreateWithoutUserInput - implements _i1.JsonConvertible> { - const ProjectCreateWithoutUserInput({ - this.id, - required this.name, - this.description, - this.clientId, - this.createdAt, - this.updatedAt, - this.tasks, - this.timeEntries, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final _i1.PrismaUnion? clientId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.TaskCreateNestedManyWithoutProjectInput? tasks; - - final _i2.TimeEntryCreateNestedManyWithoutProjectInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - 'timeEntries': timeEntries, - }; -} - -class ProjectCreateNestedManyWithoutUserInput - implements _i1.JsonConvertible> { - const ProjectCreateNestedManyWithoutUserInput({ - this.create, - this.connectOrCreate, - this.createMany, - this.connect, - }); - - final _i1.PrismaUnion< - _i2.ProjectCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.ProjectCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.ProjectUncheckedCreateWithoutUserInput, - Iterable<_i2.ProjectUncheckedCreateWithoutUserInput>>>>? create; - - final _i1.PrismaUnion<_i2.ProjectCreateOrConnectWithoutUserInput, - Iterable<_i2.ProjectCreateOrConnectWithoutUserInput>>? connectOrCreate; - - final _i2.ProjectCreateManyUserInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? connect; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'createMany': createMany, - 'connect': connect, - }; -} - -class UserCreateWithoutProjectsInput - implements _i1.JsonConvertible> { - const UserCreateWithoutProjectsInput({ - this.id, - required this.name, - required this.email, - required this.password, - this.createdAt, - this.updatedAt, - this.timeEntries, - }); - - final String? id; - - final String name; - - final String email; - - final String password; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.TimeEntryCreateNestedManyWithoutUserInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'timeEntries': timeEntries, - }; -} - -class TimeEntryUncheckedCreateWithoutUserInput - implements _i1.JsonConvertible> { - const TimeEntryUncheckedCreateWithoutUserInput({ - this.id, - required this.startTime, - required this.endTime, - this.description, - required this.projectId, - this.createdAt, - this.updatedAt, - }); - - final String? id; - - final DateTime startTime; - - final DateTime endTime; - - final _i1.PrismaUnion? description; - - final String projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryCreateOrConnectWithoutUserInput - implements _i1.JsonConvertible> { - const TimeEntryCreateOrConnectWithoutUserInput({ - required this.where, - required this.create, - }); - - final _i2.TimeEntryWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.TimeEntryCreateWithoutUserInput, - _i2.TimeEntryUncheckedCreateWithoutUserInput> create; - - @override - Map toJson() => { - 'where': where, - 'create': create, - }; -} - -class TimeEntryCreateManyUserInput - implements _i1.JsonConvertible> { - const TimeEntryCreateManyUserInput({ - this.id, - required this.startTime, - required this.endTime, - this.description, - required this.projectId, - this.createdAt, - this.updatedAt, - }); - - final String? id; - - final DateTime startTime; - - final DateTime endTime; - - final _i1.PrismaUnion? description; - - final String projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryCreateManyUserInputEnvelope - implements _i1.JsonConvertible> { - const TimeEntryCreateManyUserInputEnvelope({ - required this.data, - this.skipDuplicates, - }); - - final _i1.PrismaUnion<_i2.TimeEntryCreateManyUserInput, - Iterable<_i2.TimeEntryCreateManyUserInput>> data; - - final bool? skipDuplicates; - - @override - Map toJson() => { - 'data': data, - 'skipDuplicates': skipDuplicates, - }; -} - -class TimeEntryUncheckedCreateNestedManyWithoutUserInput - implements _i1.JsonConvertible> { - const TimeEntryUncheckedCreateNestedManyWithoutUserInput({ - this.create, - this.connectOrCreate, - this.createMany, - this.connect, - }); - - final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutUserInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutUserInput>>>>? create; - - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutUserInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutUserInput>>? connectOrCreate; - - final _i2.TimeEntryCreateManyUserInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'createMany': createMany, - 'connect': connect, - }; -} - -class UserUncheckedCreateWithoutProjectsInput - implements _i1.JsonConvertible> { - const UserUncheckedCreateWithoutProjectsInput({ - this.id, - required this.name, - required this.email, - required this.password, - this.createdAt, - this.updatedAt, - this.timeEntries, - }); - - final String? id; - - final String name; - - final String email; - - final String password; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.TimeEntryUncheckedCreateNestedManyWithoutUserInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'timeEntries': timeEntries, - }; -} - -class UserCreateOrConnectWithoutProjectsInput - implements _i1.JsonConvertible> { - const UserCreateOrConnectWithoutProjectsInput({ - required this.where, - required this.create, - }); - - final _i2.UserWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.UserCreateWithoutProjectsInput, - _i2.UserUncheckedCreateWithoutProjectsInput> create; - - @override - Map toJson() => { - 'where': where, - 'create': create, - }; -} - -class UserCreateNestedOneWithoutProjectsInput - implements _i1.JsonConvertible> { - const UserCreateNestedOneWithoutProjectsInput({ - this.create, - this.connectOrCreate, - this.connect, - }); - - final _i1.PrismaUnion<_i2.UserCreateWithoutProjectsInput, - _i2.UserUncheckedCreateWithoutProjectsInput>? create; - - final _i2.UserCreateOrConnectWithoutProjectsInput? connectOrCreate; - - final _i2.UserWhereUniqueInput? connect; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'connect': connect, - }; -} - -class ProjectCreateWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const ProjectCreateWithoutTimeEntriesInput({ - this.id, - required this.name, - this.description, - this.clientId, - this.createdAt, - this.updatedAt, - this.tasks, - required this.user, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final _i1.PrismaUnion? clientId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.TaskCreateNestedManyWithoutProjectInput? tasks; - - final _i2.UserCreateNestedOneWithoutProjectsInput user; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - 'user': user, - }; -} - -class ProjectUncheckedCreateWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const ProjectUncheckedCreateWithoutTimeEntriesInput({ - this.id, - required this.name, - this.description, - this.clientId, - required this.userId, - this.createdAt, - this.updatedAt, - this.tasks, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final _i1.PrismaUnion? clientId; - - final String userId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.TaskUncheckedCreateNestedManyWithoutProjectInput? tasks; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - }; -} - -class ProjectCreateOrConnectWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const ProjectCreateOrConnectWithoutTimeEntriesInput({ - required this.where, - required this.create, - }); - - final _i2.ProjectWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTimeEntriesInput, - _i2.ProjectUncheckedCreateWithoutTimeEntriesInput> create; - - @override - Map toJson() => { - 'where': where, - 'create': create, - }; -} - -class ProjectCreateNestedOneWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const ProjectCreateNestedOneWithoutTimeEntriesInput({ - this.create, - this.connectOrCreate, - this.connect, - }); - - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTimeEntriesInput, - _i2.ProjectUncheckedCreateWithoutTimeEntriesInput>? create; - - final _i2.ProjectCreateOrConnectWithoutTimeEntriesInput? connectOrCreate; - - final _i2.ProjectWhereUniqueInput? connect; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'connect': connect, - }; -} - -class TimeEntryCreateWithoutUserInput - implements _i1.JsonConvertible> { - const TimeEntryCreateWithoutUserInput({ - this.id, - required this.startTime, - required this.endTime, - this.description, - this.createdAt, - this.updatedAt, - required this.project, - }); - - final String? id; - - final DateTime startTime; - - final DateTime endTime; - - final _i1.PrismaUnion? description; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.ProjectCreateNestedOneWithoutTimeEntriesInput project; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'project': project, - }; -} - -class TimeEntryCreateNestedManyWithoutUserInput - implements _i1.JsonConvertible> { - const TimeEntryCreateNestedManyWithoutUserInput({ - this.create, - this.connectOrCreate, - this.createMany, - this.connect, - }); - - final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutUserInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutUserInput>>>>? create; - - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutUserInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutUserInput>>? connectOrCreate; - - final _i2.TimeEntryCreateManyUserInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'createMany': createMany, - 'connect': connect, - }; -} - -class UserCreateInput implements _i1.JsonConvertible> { - const UserCreateInput({ - this.id, - required this.name, - required this.email, - required this.password, - this.createdAt, - this.updatedAt, - this.projects, - this.timeEntries, - }); - - final String? id; - - final String name; - - final String email; - - final String password; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.ProjectCreateNestedManyWithoutUserInput? projects; - - final _i2.TimeEntryCreateNestedManyWithoutUserInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'projects': projects, - 'timeEntries': timeEntries, - }; -} - -class UserUncheckedCreateInput - implements _i1.JsonConvertible> { - const UserUncheckedCreateInput({ - this.id, - required this.name, - required this.email, - required this.password, - this.createdAt, - this.updatedAt, - this.projects, - this.timeEntries, - }); - - final String? id; - - final String name; - - final String email; - - final String password; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.ProjectUncheckedCreateNestedManyWithoutUserInput? projects; - - final _i2.TimeEntryUncheckedCreateNestedManyWithoutUserInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'projects': projects, - 'timeEntries': timeEntries, - }; -} - -class AffectedRowsOutput { - const AffectedRowsOutput({this.count}); - - factory AffectedRowsOutput.fromJson(Map json) => - AffectedRowsOutput(count: json['count']); - - final int? count; - - Map toJson() => {'count': count}; -} - -class UserCreateManyInput implements _i1.JsonConvertible> { - const UserCreateManyInput({ - this.id, - required this.name, - required this.email, - required this.password, - this.createdAt, - this.updatedAt, - }); - - final String? id; - - final String name; - - final String email; - - final String password; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class CreateManyUserAndReturnOutputTypeSelect - implements _i1.JsonConvertible> { - const CreateManyUserAndReturnOutputTypeSelect({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - }); - - final bool? id; - - final bool? name; - - final bool? email; - - final bool? password; - - final bool? createdAt; - - final bool? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class StringFieldUpdateOperationsInput - implements _i1.JsonConvertible> { - const StringFieldUpdateOperationsInput({this.set}); - - final String? set; - - @override - Map toJson() => {'set': set}; -} - -class DateTimeFieldUpdateOperationsInput - implements _i1.JsonConvertible> { - const DateTimeFieldUpdateOperationsInput({this.set}); - - final DateTime? set; - - @override - Map toJson() => {'set': set}; -} - -class NullableStringFieldUpdateOperationsInput - implements _i1.JsonConvertible> { - const NullableStringFieldUpdateOperationsInput({this.set}); - - final _i1.PrismaUnion? set; - - @override - Map toJson() => {'set': set}; -} - -class TaskUpdateWithoutProjectInput - implements _i1.JsonConvertible> { - const TaskUpdateWithoutProjectInput({ - this.id, - this.name, - this.description, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskUncheckedUpdateWithoutProjectInput - implements _i1.JsonConvertible> { - const TaskUncheckedUpdateWithoutProjectInput({ - this.id, - this.name, - this.description, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskUpsertWithWhereUniqueWithoutProjectInput - implements _i1.JsonConvertible> { - const TaskUpsertWithWhereUniqueWithoutProjectInput({ - required this.where, - required this.update, - required this.create, - }); - - final _i2.TaskWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.TaskUpdateWithoutProjectInput, - _i2.TaskUncheckedUpdateWithoutProjectInput> update; - - final _i1.PrismaUnion<_i2.TaskCreateWithoutProjectInput, - _i2.TaskUncheckedCreateWithoutProjectInput> create; - - @override - Map toJson() => { - 'where': where, - 'update': update, - 'create': create, - }; -} - -class TaskUpdateWithWhereUniqueWithoutProjectInput - implements _i1.JsonConvertible> { - const TaskUpdateWithWhereUniqueWithoutProjectInput({ - required this.where, - required this.data, - }); - - final _i2.TaskWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.TaskUpdateWithoutProjectInput, - _i2.TaskUncheckedUpdateWithoutProjectInput> data; - - @override - Map toJson() => { - 'where': where, - 'data': data, - }; -} - -class TaskScalarWhereInput - implements _i1.JsonConvertible> { - const TaskScalarWhereInput({ - this.AND, - this.OR, - this.NOT, - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion<_i2.TaskScalarWhereInput, - Iterable<_i2.TaskScalarWhereInput>>? AND; - - final Iterable<_i2.TaskScalarWhereInput>? OR; - - final _i1.PrismaUnion<_i2.TaskScalarWhereInput, - Iterable<_i2.TaskScalarWhereInput>>? NOT; - - final _i1.PrismaUnion<_i2.StringFilter, String>? id; - - final _i1.PrismaUnion<_i2.StringFilter, String>? name; - - final _i1.PrismaUnion<_i2.StringNullableFilter, - _i1.PrismaUnion>? description; - - final _i1.PrismaUnion<_i2.StringFilter, String>? projectId; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - - @override - Map toJson() => { - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskUpdateManyMutationInput - implements _i1.JsonConvertible> { - const TaskUpdateManyMutationInput({ - this.id, - this.name, - this.description, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskUncheckedUpdateManyWithoutProjectInput - implements _i1.JsonConvertible> { - const TaskUncheckedUpdateManyWithoutProjectInput({ - this.id, - this.name, - this.description, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskUpdateManyWithWhereWithoutProjectInput - implements _i1.JsonConvertible> { - const TaskUpdateManyWithWhereWithoutProjectInput({ - required this.where, - required this.data, - }); - - final _i2.TaskScalarWhereInput where; - - final _i1.PrismaUnion<_i2.TaskUpdateManyMutationInput, - _i2.TaskUncheckedUpdateManyWithoutProjectInput> data; - - @override - Map toJson() => { - 'where': where, - 'data': data, - }; -} - -class TaskUpdateManyWithoutProjectNestedInput - implements _i1.JsonConvertible> { - const TaskUpdateManyWithoutProjectNestedInput({ - this.create, - this.connectOrCreate, - this.upsert, - this.createMany, - this.set, - this.disconnect, - this.delete, - this.connect, - this.update, - this.updateMany, - this.deleteMany, - }); - - final _i1.PrismaUnion< - _i2.TaskCreateWithoutProjectInput, - _i1.PrismaUnion< - Iterable<_i2.TaskCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TaskUncheckedCreateWithoutProjectInput, - Iterable<_i2.TaskUncheckedCreateWithoutProjectInput>>>>? create; - - final _i1.PrismaUnion<_i2.TaskCreateOrConnectWithoutProjectInput, - Iterable<_i2.TaskCreateOrConnectWithoutProjectInput>>? connectOrCreate; - - final _i1.PrismaUnion<_i2.TaskUpsertWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TaskUpsertWithWhereUniqueWithoutProjectInput>>? upsert; - - final _i2.TaskCreateManyProjectInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? set; - - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? disconnect; - - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? delete; - - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? connect; - - final _i1.PrismaUnion<_i2.TaskUpdateWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TaskUpdateWithWhereUniqueWithoutProjectInput>>? update; - - final _i1.PrismaUnion<_i2.TaskUpdateManyWithWhereWithoutProjectInput, - Iterable<_i2.TaskUpdateManyWithWhereWithoutProjectInput>>? updateMany; - - final _i1.PrismaUnion<_i2.TaskScalarWhereInput, - Iterable<_i2.TaskScalarWhereInput>>? deleteMany; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'upsert': upsert, - 'createMany': createMany, - 'set': set, - 'disconnect': disconnect, - 'delete': delete, - 'connect': connect, - 'update': update, - 'updateMany': updateMany, - 'deleteMany': deleteMany, - }; -} - -class UserUpdateWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const UserUpdateWithoutTimeEntriesInput({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.projects, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion? email; - - final _i1.PrismaUnion? password; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.ProjectUpdateManyWithoutUserNestedInput? projects; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'projects': projects, - }; -} - -class TaskUncheckedUpdateManyWithoutProjectNestedInput - implements _i1.JsonConvertible> { - const TaskUncheckedUpdateManyWithoutProjectNestedInput({ - this.create, - this.connectOrCreate, - this.upsert, - this.createMany, - this.set, - this.disconnect, - this.delete, - this.connect, - this.update, - this.updateMany, - this.deleteMany, - }); - - final _i1.PrismaUnion< - _i2.TaskCreateWithoutProjectInput, - _i1.PrismaUnion< - Iterable<_i2.TaskCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TaskUncheckedCreateWithoutProjectInput, - Iterable<_i2.TaskUncheckedCreateWithoutProjectInput>>>>? create; - - final _i1.PrismaUnion<_i2.TaskCreateOrConnectWithoutProjectInput, - Iterable<_i2.TaskCreateOrConnectWithoutProjectInput>>? connectOrCreate; - - final _i1.PrismaUnion<_i2.TaskUpsertWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TaskUpsertWithWhereUniqueWithoutProjectInput>>? upsert; - - final _i2.TaskCreateManyProjectInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? set; - - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? disconnect; - - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? delete; - - final _i1.PrismaUnion<_i2.TaskWhereUniqueInput, - Iterable<_i2.TaskWhereUniqueInput>>? connect; - - final _i1.PrismaUnion<_i2.TaskUpdateWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TaskUpdateWithWhereUniqueWithoutProjectInput>>? update; - - final _i1.PrismaUnion<_i2.TaskUpdateManyWithWhereWithoutProjectInput, - Iterable<_i2.TaskUpdateManyWithWhereWithoutProjectInput>>? updateMany; - - final _i1.PrismaUnion<_i2.TaskScalarWhereInput, - Iterable<_i2.TaskScalarWhereInput>>? deleteMany; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'upsert': upsert, - 'createMany': createMany, - 'set': set, - 'disconnect': disconnect, - 'delete': delete, - 'connect': connect, - 'update': update, - 'updateMany': updateMany, - 'deleteMany': deleteMany, - }; -} - -class TimeEntryUncheckedUpdateWithoutProjectInput - implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateWithoutProjectInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? - startTime; - - final _i1.PrismaUnion? - endTime; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? userId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryUpdateWithWhereUniqueWithoutProjectInput - implements _i1.JsonConvertible> { - const TimeEntryUpdateWithWhereUniqueWithoutProjectInput({ - required this.where, - required this.data, - }); - - final _i2.TimeEntryWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithoutProjectInput, - _i2.TimeEntryUncheckedUpdateWithoutProjectInput> data; - - @override - Map toJson() => { - 'where': where, - 'data': data, - }; -} - -class TimeEntryScalarWhereInput - implements _i1.JsonConvertible> { - const TimeEntryScalarWhereInput({ - this.AND, - this.OR, - this.NOT, - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereInput, - Iterable<_i2.TimeEntryScalarWhereInput>>? AND; - - final Iterable<_i2.TimeEntryScalarWhereInput>? OR; - - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereInput, - Iterable<_i2.TimeEntryScalarWhereInput>>? NOT; - - final _i1.PrismaUnion<_i2.StringFilter, String>? id; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? startTime; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? endTime; - - final _i1.PrismaUnion<_i2.StringNullableFilter, - _i1.PrismaUnion>? description; - - final _i1.PrismaUnion<_i2.StringFilter, String>? userId; - - final _i1.PrismaUnion<_i2.StringFilter, String>? projectId; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - - @override - Map toJson() => { - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryUpdateManyMutationInput - implements _i1.JsonConvertible> { - const TimeEntryUpdateManyMutationInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? - startTime; - - final _i1.PrismaUnion? - endTime; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryUncheckedUpdateManyWithoutProjectInput - implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateManyWithoutProjectInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? - startTime; - - final _i1.PrismaUnion? - endTime; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? userId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryUpdateManyWithWhereWithoutProjectInput - implements _i1.JsonConvertible> { - const TimeEntryUpdateManyWithWhereWithoutProjectInput({ - required this.where, - required this.data, - }); - - final _i2.TimeEntryScalarWhereInput where; - - final _i1.PrismaUnion<_i2.TimeEntryUpdateManyMutationInput, - _i2.TimeEntryUncheckedUpdateManyWithoutProjectInput> data; - - @override - Map toJson() => { - 'where': where, - 'data': data, - }; -} - -class TimeEntryUncheckedUpdateManyWithoutProjectNestedInput - implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateManyWithoutProjectNestedInput({ - this.create, - this.connectOrCreate, - this.upsert, - this.createMany, - this.set, - this.disconnect, - this.delete, - this.connect, - this.update, - this.updateMany, - this.deleteMany, - }); - - final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutProjectInput, - _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutProjectInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutProjectInput>>>>? - create; - - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutProjectInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutProjectInput>>? - connectOrCreate; - - final _i1.PrismaUnion<_i2.TimeEntryUpsertWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TimeEntryUpsertWithWhereUniqueWithoutProjectInput>>? upsert; - - final _i2.TimeEntryCreateManyProjectInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? set; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? disconnect; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? delete; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; - - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TimeEntryUpdateWithWhereUniqueWithoutProjectInput>>? update; - - final _i1.PrismaUnion<_i2.TimeEntryUpdateManyWithWhereWithoutProjectInput, - Iterable<_i2.TimeEntryUpdateManyWithWhereWithoutProjectInput>>? - updateMany; - - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereInput, - Iterable<_i2.TimeEntryScalarWhereInput>>? deleteMany; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'upsert': upsert, - 'createMany': createMany, - 'set': set, - 'disconnect': disconnect, - 'delete': delete, - 'connect': connect, - 'update': update, - 'updateMany': updateMany, - 'deleteMany': deleteMany, - }; -} - -class ProjectUncheckedUpdateWithoutUserInput - implements _i1.JsonConvertible> { - const ProjectUncheckedUpdateWithoutUserInput({ - this.id, - this.name, - this.description, - this.clientId, - this.createdAt, - this.updatedAt, - this.tasks, - this.timeEntries, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? clientId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.TaskUncheckedUpdateManyWithoutProjectNestedInput? tasks; - - final _i2.TimeEntryUncheckedUpdateManyWithoutProjectNestedInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - 'timeEntries': timeEntries, - }; -} - -class ProjectUpdateWithWhereUniqueWithoutUserInput - implements _i1.JsonConvertible> { - const ProjectUpdateWithWhereUniqueWithoutUserInput({ - required this.where, - required this.data, - }); - - final _i2.ProjectWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.ProjectUpdateWithoutUserInput, - _i2.ProjectUncheckedUpdateWithoutUserInput> data; - - @override - Map toJson() => { - 'where': where, - 'data': data, - }; -} - -class ProjectScalarWhereInput - implements _i1.JsonConvertible> { - const ProjectScalarWhereInput({ - this.AND, - this.OR, - this.NOT, - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion<_i2.ProjectScalarWhereInput, - Iterable<_i2.ProjectScalarWhereInput>>? AND; - - final Iterable<_i2.ProjectScalarWhereInput>? OR; - - final _i1.PrismaUnion<_i2.ProjectScalarWhereInput, - Iterable<_i2.ProjectScalarWhereInput>>? NOT; - - final _i1.PrismaUnion<_i2.StringFilter, String>? id; - - final _i1.PrismaUnion<_i2.StringFilter, String>? name; - - final _i1.PrismaUnion<_i2.StringNullableFilter, - _i1.PrismaUnion>? description; - - final _i1.PrismaUnion<_i2.StringNullableFilter, - _i1.PrismaUnion>? clientId; - - final _i1.PrismaUnion<_i2.StringFilter, String>? userId; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeFilter, DateTime>? updatedAt; - - @override - Map toJson() => { - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class ProjectUpdateManyMutationInput - implements _i1.JsonConvertible> { - const ProjectUpdateManyMutationInput({ - this.id, - this.name, - this.description, - this.clientId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? clientId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class ProjectUncheckedUpdateManyWithoutUserInput - implements _i1.JsonConvertible> { - const ProjectUncheckedUpdateManyWithoutUserInput({ - this.id, - this.name, - this.description, - this.clientId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? clientId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class ProjectUpdateManyWithWhereWithoutUserInput - implements _i1.JsonConvertible> { - const ProjectUpdateManyWithWhereWithoutUserInput({ - required this.where, - required this.data, - }); - - final _i2.ProjectScalarWhereInput where; - - final _i1.PrismaUnion<_i2.ProjectUpdateManyMutationInput, - _i2.ProjectUncheckedUpdateManyWithoutUserInput> data; - - @override - Map toJson() => { - 'where': where, - 'data': data, - }; -} - -class ProjectUncheckedUpdateManyWithoutUserNestedInput - implements _i1.JsonConvertible> { - const ProjectUncheckedUpdateManyWithoutUserNestedInput({ - this.create, - this.connectOrCreate, - this.upsert, - this.createMany, - this.set, - this.disconnect, - this.delete, - this.connect, - this.update, - this.updateMany, - this.deleteMany, - }); - - final _i1.PrismaUnion< - _i2.ProjectCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.ProjectCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.ProjectUncheckedCreateWithoutUserInput, - Iterable<_i2.ProjectUncheckedCreateWithoutUserInput>>>>? create; - - final _i1.PrismaUnion<_i2.ProjectCreateOrConnectWithoutUserInput, - Iterable<_i2.ProjectCreateOrConnectWithoutUserInput>>? connectOrCreate; - - final _i1.PrismaUnion<_i2.ProjectUpsertWithWhereUniqueWithoutUserInput, - Iterable<_i2.ProjectUpsertWithWhereUniqueWithoutUserInput>>? upsert; - - final _i2.ProjectCreateManyUserInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? set; - - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? disconnect; - - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? delete; - - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? connect; - - final _i1.PrismaUnion<_i2.ProjectUpdateWithWhereUniqueWithoutUserInput, - Iterable<_i2.ProjectUpdateWithWhereUniqueWithoutUserInput>>? update; - - final _i1.PrismaUnion<_i2.ProjectUpdateManyWithWhereWithoutUserInput, - Iterable<_i2.ProjectUpdateManyWithWhereWithoutUserInput>>? updateMany; - - final _i1.PrismaUnion<_i2.ProjectScalarWhereInput, - Iterable<_i2.ProjectScalarWhereInput>>? deleteMany; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'upsert': upsert, - 'createMany': createMany, - 'set': set, - 'disconnect': disconnect, - 'delete': delete, - 'connect': connect, - 'update': update, - 'updateMany': updateMany, - 'deleteMany': deleteMany, - }; -} - -class UserUncheckedUpdateWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const UserUncheckedUpdateWithoutTimeEntriesInput({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.projects, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion? email; - - final _i1.PrismaUnion? password; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.ProjectUncheckedUpdateManyWithoutUserNestedInput? projects; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'projects': projects, - }; -} - -class UserUpsertWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const UserUpsertWithoutTimeEntriesInput({ - required this.update, - required this.create, - this.where, - }); - - final _i1.PrismaUnion<_i2.UserUpdateWithoutTimeEntriesInput, - _i2.UserUncheckedUpdateWithoutTimeEntriesInput> update; - - final _i1.PrismaUnion<_i2.UserCreateWithoutTimeEntriesInput, - _i2.UserUncheckedCreateWithoutTimeEntriesInput> create; - - final _i2.UserWhereInput? where; - - @override - Map toJson() => { - 'update': update, - 'create': create, - 'where': where, - }; -} - -class UserUpdateToOneWithWhereWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const UserUpdateToOneWithWhereWithoutTimeEntriesInput({ - this.where, - required this.data, - }); - - final _i2.UserWhereInput? where; - - final _i1.PrismaUnion<_i2.UserUpdateWithoutTimeEntriesInput, - _i2.UserUncheckedUpdateWithoutTimeEntriesInput> data; - - @override - Map toJson() => { - 'where': where, - 'data': data, - }; -} - -class UserUpdateOneRequiredWithoutTimeEntriesNestedInput - implements _i1.JsonConvertible> { - const UserUpdateOneRequiredWithoutTimeEntriesNestedInput({ - this.create, - this.connectOrCreate, - this.upsert, - this.connect, - this.update, - }); - - final _i1.PrismaUnion<_i2.UserCreateWithoutTimeEntriesInput, - _i2.UserUncheckedCreateWithoutTimeEntriesInput>? create; - - final _i2.UserCreateOrConnectWithoutTimeEntriesInput? connectOrCreate; - - final _i2.UserUpsertWithoutTimeEntriesInput? upsert; - - final _i2.UserWhereUniqueInput? connect; - - final _i1.PrismaUnion< - _i2.UserUpdateToOneWithWhereWithoutTimeEntriesInput, - _i1.PrismaUnion<_i2.UserUpdateWithoutTimeEntriesInput, - _i2.UserUncheckedUpdateWithoutTimeEntriesInput>>? update; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'upsert': upsert, - 'connect': connect, - 'update': update, - }; -} - -class TimeEntryUpdateWithoutProjectInput - implements _i1.JsonConvertible> { - const TimeEntryUpdateWithoutProjectInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.createdAt, - this.updatedAt, - this.user, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? - startTime; - - final _i1.PrismaUnion? - endTime; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.UserUpdateOneRequiredWithoutTimeEntriesNestedInput? user; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'user': user, - }; -} - -class TimeEntryUpsertWithWhereUniqueWithoutProjectInput - implements _i1.JsonConvertible> { - const TimeEntryUpsertWithWhereUniqueWithoutProjectInput({ - required this.where, - required this.update, - required this.create, - }); - - final _i2.TimeEntryWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithoutProjectInput, - _i2.TimeEntryUncheckedUpdateWithoutProjectInput> update; - - final _i1.PrismaUnion<_i2.TimeEntryCreateWithoutProjectInput, - _i2.TimeEntryUncheckedCreateWithoutProjectInput> create; - - @override - Map toJson() => { - 'where': where, - 'update': update, - 'create': create, - }; -} - -class TimeEntryUpdateManyWithoutProjectNestedInput - implements _i1.JsonConvertible> { - const TimeEntryUpdateManyWithoutProjectNestedInput({ - this.create, - this.connectOrCreate, - this.upsert, - this.createMany, - this.set, - this.disconnect, - this.delete, - this.connect, - this.update, - this.updateMany, - this.deleteMany, - }); - - final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutProjectInput, - _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutProjectInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutProjectInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutProjectInput>>>>? - create; - - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutProjectInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutProjectInput>>? - connectOrCreate; - - final _i1.PrismaUnion<_i2.TimeEntryUpsertWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TimeEntryUpsertWithWhereUniqueWithoutProjectInput>>? upsert; - - final _i2.TimeEntryCreateManyProjectInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? set; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? disconnect; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? delete; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; - - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithWhereUniqueWithoutProjectInput, - Iterable<_i2.TimeEntryUpdateWithWhereUniqueWithoutProjectInput>>? update; - - final _i1.PrismaUnion<_i2.TimeEntryUpdateManyWithWhereWithoutProjectInput, - Iterable<_i2.TimeEntryUpdateManyWithWhereWithoutProjectInput>>? - updateMany; - - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereInput, - Iterable<_i2.TimeEntryScalarWhereInput>>? deleteMany; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'upsert': upsert, - 'createMany': createMany, - 'set': set, - 'disconnect': disconnect, - 'delete': delete, - 'connect': connect, - 'update': update, - 'updateMany': updateMany, - 'deleteMany': deleteMany, - }; -} - -class ProjectUpdateWithoutUserInput - implements _i1.JsonConvertible> { - const ProjectUpdateWithoutUserInput({ - this.id, - this.name, - this.description, - this.clientId, - this.createdAt, - this.updatedAt, - this.tasks, - this.timeEntries, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? clientId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.TaskUpdateManyWithoutProjectNestedInput? tasks; - - final _i2.TimeEntryUpdateManyWithoutProjectNestedInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - 'timeEntries': timeEntries, - }; -} - -class ProjectUpsertWithWhereUniqueWithoutUserInput - implements _i1.JsonConvertible> { - const ProjectUpsertWithWhereUniqueWithoutUserInput({ - required this.where, - required this.update, - required this.create, - }); - - final _i2.ProjectWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.ProjectUpdateWithoutUserInput, - _i2.ProjectUncheckedUpdateWithoutUserInput> update; - - final _i1.PrismaUnion<_i2.ProjectCreateWithoutUserInput, - _i2.ProjectUncheckedCreateWithoutUserInput> create; - - @override - Map toJson() => { - 'where': where, - 'update': update, - 'create': create, - }; -} - -class ProjectUpdateManyWithoutUserNestedInput - implements _i1.JsonConvertible> { - const ProjectUpdateManyWithoutUserNestedInput({ - this.create, - this.connectOrCreate, - this.upsert, - this.createMany, - this.set, - this.disconnect, - this.delete, - this.connect, - this.update, - this.updateMany, - this.deleteMany, - }); - - final _i1.PrismaUnion< - _i2.ProjectCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.ProjectCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.ProjectUncheckedCreateWithoutUserInput, - Iterable<_i2.ProjectUncheckedCreateWithoutUserInput>>>>? create; - - final _i1.PrismaUnion<_i2.ProjectCreateOrConnectWithoutUserInput, - Iterable<_i2.ProjectCreateOrConnectWithoutUserInput>>? connectOrCreate; - - final _i1.PrismaUnion<_i2.ProjectUpsertWithWhereUniqueWithoutUserInput, - Iterable<_i2.ProjectUpsertWithWhereUniqueWithoutUserInput>>? upsert; - - final _i2.ProjectCreateManyUserInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? set; - - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? disconnect; - - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? delete; - - final _i1.PrismaUnion<_i2.ProjectWhereUniqueInput, - Iterable<_i2.ProjectWhereUniqueInput>>? connect; - - final _i1.PrismaUnion<_i2.ProjectUpdateWithWhereUniqueWithoutUserInput, - Iterable<_i2.ProjectUpdateWithWhereUniqueWithoutUserInput>>? update; - - final _i1.PrismaUnion<_i2.ProjectUpdateManyWithWhereWithoutUserInput, - Iterable<_i2.ProjectUpdateManyWithWhereWithoutUserInput>>? updateMany; - - final _i1.PrismaUnion<_i2.ProjectScalarWhereInput, - Iterable<_i2.ProjectScalarWhereInput>>? deleteMany; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'upsert': upsert, - 'createMany': createMany, - 'set': set, - 'disconnect': disconnect, - 'delete': delete, - 'connect': connect, - 'update': update, - 'updateMany': updateMany, - 'deleteMany': deleteMany, - }; -} - -class UserUpdateWithoutProjectsInput - implements _i1.JsonConvertible> { - const UserUpdateWithoutProjectsInput({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.timeEntries, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion? email; - - final _i1.PrismaUnion? password; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.TimeEntryUpdateManyWithoutUserNestedInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'timeEntries': timeEntries, - }; -} - -class TimeEntryUncheckedUpdateWithoutUserInput - implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateWithoutUserInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? - startTime; - - final _i1.PrismaUnion? - endTime; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? - projectId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryUpdateWithWhereUniqueWithoutUserInput - implements _i1.JsonConvertible> { - const TimeEntryUpdateWithWhereUniqueWithoutUserInput({ - required this.where, - required this.data, - }); - - final _i2.TimeEntryWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithoutUserInput, - _i2.TimeEntryUncheckedUpdateWithoutUserInput> data; - - @override - Map toJson() => { - 'where': where, - 'data': data, - }; -} - -class TimeEntryUncheckedUpdateManyWithoutUserInput - implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateManyWithoutUserInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? - startTime; - - final _i1.PrismaUnion? - endTime; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? - projectId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryUpdateManyWithWhereWithoutUserInput - implements _i1.JsonConvertible> { - const TimeEntryUpdateManyWithWhereWithoutUserInput({ - required this.where, - required this.data, - }); - - final _i2.TimeEntryScalarWhereInput where; - - final _i1.PrismaUnion<_i2.TimeEntryUpdateManyMutationInput, - _i2.TimeEntryUncheckedUpdateManyWithoutUserInput> data; - - @override - Map toJson() => { - 'where': where, - 'data': data, - }; -} - -class TimeEntryUncheckedUpdateManyWithoutUserNestedInput - implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateManyWithoutUserNestedInput({ - this.create, - this.connectOrCreate, - this.upsert, - this.createMany, - this.set, - this.disconnect, - this.delete, - this.connect, - this.update, - this.updateMany, - this.deleteMany, - }); - - final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutUserInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutUserInput>>>>? create; - - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutUserInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutUserInput>>? connectOrCreate; - - final _i1.PrismaUnion<_i2.TimeEntryUpsertWithWhereUniqueWithoutUserInput, - Iterable<_i2.TimeEntryUpsertWithWhereUniqueWithoutUserInput>>? upsert; - - final _i2.TimeEntryCreateManyUserInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? set; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? disconnect; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? delete; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; - - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithWhereUniqueWithoutUserInput, - Iterable<_i2.TimeEntryUpdateWithWhereUniqueWithoutUserInput>>? update; - - final _i1.PrismaUnion<_i2.TimeEntryUpdateManyWithWhereWithoutUserInput, - Iterable<_i2.TimeEntryUpdateManyWithWhereWithoutUserInput>>? updateMany; - - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereInput, - Iterable<_i2.TimeEntryScalarWhereInput>>? deleteMany; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'upsert': upsert, - 'createMany': createMany, - 'set': set, - 'disconnect': disconnect, - 'delete': delete, - 'connect': connect, - 'update': update, - 'updateMany': updateMany, - 'deleteMany': deleteMany, - }; -} - -class UserUncheckedUpdateWithoutProjectsInput - implements _i1.JsonConvertible> { - const UserUncheckedUpdateWithoutProjectsInput({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.timeEntries, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion? email; - - final _i1.PrismaUnion? password; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.TimeEntryUncheckedUpdateManyWithoutUserNestedInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'timeEntries': timeEntries, - }; -} - -class UserUpsertWithoutProjectsInput - implements _i1.JsonConvertible> { - const UserUpsertWithoutProjectsInput({ - required this.update, - required this.create, - this.where, - }); - - final _i1.PrismaUnion<_i2.UserUpdateWithoutProjectsInput, - _i2.UserUncheckedUpdateWithoutProjectsInput> update; - - final _i1.PrismaUnion<_i2.UserCreateWithoutProjectsInput, - _i2.UserUncheckedCreateWithoutProjectsInput> create; - - final _i2.UserWhereInput? where; - - @override - Map toJson() => { - 'update': update, - 'create': create, - 'where': where, - }; -} - -class UserUpdateToOneWithWhereWithoutProjectsInput - implements _i1.JsonConvertible> { - const UserUpdateToOneWithWhereWithoutProjectsInput({ - this.where, - required this.data, - }); - - final _i2.UserWhereInput? where; - - final _i1.PrismaUnion<_i2.UserUpdateWithoutProjectsInput, - _i2.UserUncheckedUpdateWithoutProjectsInput> data; - - @override - Map toJson() => { - 'where': where, - 'data': data, - }; -} - -class UserUpdateOneRequiredWithoutProjectsNestedInput - implements _i1.JsonConvertible> { - const UserUpdateOneRequiredWithoutProjectsNestedInput({ - this.create, - this.connectOrCreate, - this.upsert, - this.connect, - this.update, - }); - - final _i1.PrismaUnion<_i2.UserCreateWithoutProjectsInput, - _i2.UserUncheckedCreateWithoutProjectsInput>? create; - - final _i2.UserCreateOrConnectWithoutProjectsInput? connectOrCreate; - - final _i2.UserUpsertWithoutProjectsInput? upsert; - - final _i2.UserWhereUniqueInput? connect; - - final _i1.PrismaUnion< - _i2.UserUpdateToOneWithWhereWithoutProjectsInput, - _i1.PrismaUnion<_i2.UserUpdateWithoutProjectsInput, - _i2.UserUncheckedUpdateWithoutProjectsInput>>? update; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'upsert': upsert, - 'connect': connect, - 'update': update, - }; -} - -class ProjectUpdateWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const ProjectUpdateWithoutTimeEntriesInput({ - this.id, - this.name, - this.description, - this.clientId, - this.createdAt, - this.updatedAt, - this.tasks, - this.user, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? clientId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.TaskUpdateManyWithoutProjectNestedInput? tasks; - - final _i2.UserUpdateOneRequiredWithoutProjectsNestedInput? user; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - 'user': user, - }; -} - -class ProjectUncheckedUpdateWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const ProjectUncheckedUpdateWithoutTimeEntriesInput({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.tasks, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? clientId; - - final _i1.PrismaUnion? userId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.TaskUncheckedUpdateManyWithoutProjectNestedInput? tasks; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - }; -} - -class ProjectUpsertWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const ProjectUpsertWithoutTimeEntriesInput({ - required this.update, - required this.create, - this.where, - }); - - final _i1.PrismaUnion<_i2.ProjectUpdateWithoutTimeEntriesInput, - _i2.ProjectUncheckedUpdateWithoutTimeEntriesInput> update; - - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTimeEntriesInput, - _i2.ProjectUncheckedCreateWithoutTimeEntriesInput> create; - - final _i2.ProjectWhereInput? where; - - @override - Map toJson() => { - 'update': update, - 'create': create, - 'where': where, - }; -} - -class ProjectUpdateToOneWithWhereWithoutTimeEntriesInput - implements _i1.JsonConvertible> { - const ProjectUpdateToOneWithWhereWithoutTimeEntriesInput({ - this.where, - required this.data, - }); - - final _i2.ProjectWhereInput? where; - - final _i1.PrismaUnion<_i2.ProjectUpdateWithoutTimeEntriesInput, - _i2.ProjectUncheckedUpdateWithoutTimeEntriesInput> data; - - @override - Map toJson() => { - 'where': where, - 'data': data, - }; -} - -class ProjectUpdateOneRequiredWithoutTimeEntriesNestedInput - implements _i1.JsonConvertible> { - const ProjectUpdateOneRequiredWithoutTimeEntriesNestedInput({ - this.create, - this.connectOrCreate, - this.upsert, - this.connect, - this.update, - }); - - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTimeEntriesInput, - _i2.ProjectUncheckedCreateWithoutTimeEntriesInput>? create; - - final _i2.ProjectCreateOrConnectWithoutTimeEntriesInput? connectOrCreate; - - final _i2.ProjectUpsertWithoutTimeEntriesInput? upsert; - - final _i2.ProjectWhereUniqueInput? connect; - - final _i1.PrismaUnion< - _i2.ProjectUpdateToOneWithWhereWithoutTimeEntriesInput, - _i1.PrismaUnion<_i2.ProjectUpdateWithoutTimeEntriesInput, - _i2.ProjectUncheckedUpdateWithoutTimeEntriesInput>>? update; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'upsert': upsert, - 'connect': connect, - 'update': update, - }; -} - -class TimeEntryUpdateWithoutUserInput - implements _i1.JsonConvertible> { - const TimeEntryUpdateWithoutUserInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.createdAt, - this.updatedAt, - this.project, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? - startTime; - - final _i1.PrismaUnion? - endTime; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.ProjectUpdateOneRequiredWithoutTimeEntriesNestedInput? project; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'project': project, - }; -} - -class TimeEntryUpsertWithWhereUniqueWithoutUserInput - implements _i1.JsonConvertible> { - const TimeEntryUpsertWithWhereUniqueWithoutUserInput({ - required this.where, - required this.update, - required this.create, - }); - - final _i2.TimeEntryWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithoutUserInput, - _i2.TimeEntryUncheckedUpdateWithoutUserInput> update; - - final _i1.PrismaUnion<_i2.TimeEntryCreateWithoutUserInput, - _i2.TimeEntryUncheckedCreateWithoutUserInput> create; - - @override - Map toJson() => { - 'where': where, - 'update': update, - 'create': create, - }; -} - -class TimeEntryUpdateManyWithoutUserNestedInput - implements _i1.JsonConvertible> { - const TimeEntryUpdateManyWithoutUserNestedInput({ - this.create, - this.connectOrCreate, - this.upsert, - this.createMany, - this.set, - this.disconnect, - this.delete, - this.connect, - this.update, - this.updateMany, - this.deleteMany, - }); - - final _i1.PrismaUnion< - _i2.TimeEntryCreateWithoutUserInput, - _i1.PrismaUnion< - Iterable<_i2.TimeEntryCreateWithoutUserInput>, - _i1.PrismaUnion<_i2.TimeEntryUncheckedCreateWithoutUserInput, - Iterable<_i2.TimeEntryUncheckedCreateWithoutUserInput>>>>? create; - - final _i1.PrismaUnion<_i2.TimeEntryCreateOrConnectWithoutUserInput, - Iterable<_i2.TimeEntryCreateOrConnectWithoutUserInput>>? connectOrCreate; - - final _i1.PrismaUnion<_i2.TimeEntryUpsertWithWhereUniqueWithoutUserInput, - Iterable<_i2.TimeEntryUpsertWithWhereUniqueWithoutUserInput>>? upsert; - - final _i2.TimeEntryCreateManyUserInputEnvelope? createMany; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? set; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? disconnect; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? delete; - - final _i1.PrismaUnion<_i2.TimeEntryWhereUniqueInput, - Iterable<_i2.TimeEntryWhereUniqueInput>>? connect; - - final _i1.PrismaUnion<_i2.TimeEntryUpdateWithWhereUniqueWithoutUserInput, - Iterable<_i2.TimeEntryUpdateWithWhereUniqueWithoutUserInput>>? update; - - final _i1.PrismaUnion<_i2.TimeEntryUpdateManyWithWhereWithoutUserInput, - Iterable<_i2.TimeEntryUpdateManyWithWhereWithoutUserInput>>? updateMany; - - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereInput, - Iterable<_i2.TimeEntryScalarWhereInput>>? deleteMany; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'upsert': upsert, - 'createMany': createMany, - 'set': set, - 'disconnect': disconnect, - 'delete': delete, - 'connect': connect, - 'update': update, - 'updateMany': updateMany, - 'deleteMany': deleteMany, - }; -} - -class UserUpdateInput implements _i1.JsonConvertible> { - const UserUpdateInput({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.projects, - this.timeEntries, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion? email; - - final _i1.PrismaUnion? password; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.ProjectUpdateManyWithoutUserNestedInput? projects; - - final _i2.TimeEntryUpdateManyWithoutUserNestedInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'projects': projects, - 'timeEntries': timeEntries, - }; -} - -class UserUncheckedUpdateInput - implements _i1.JsonConvertible> { - const UserUncheckedUpdateInput({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.projects, - this.timeEntries, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion? email; - - final _i1.PrismaUnion? password; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.ProjectUncheckedUpdateManyWithoutUserNestedInput? projects; - - final _i2.TimeEntryUncheckedUpdateManyWithoutUserNestedInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'projects': projects, - 'timeEntries': timeEntries, - }; -} - -class UserUpdateManyMutationInput - implements _i1.JsonConvertible> { - const UserUpdateManyMutationInput({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion? email; - - final _i1.PrismaUnion? password; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class UserUncheckedUpdateManyInput - implements _i1.JsonConvertible> { - const UserUncheckedUpdateManyInput({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion? email; - - final _i1.PrismaUnion? password; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class UserCountAggregateOutputType { - const UserCountAggregateOutputType({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.$all, - }); - - factory UserCountAggregateOutputType.fromJson(Map json) => - UserCountAggregateOutputType( - id: json['id'], - name: json['name'], - email: json['email'], - password: json['password'], - createdAt: json['createdAt'], - updatedAt: json['updatedAt'], - $all: json['_all'], - ); - - final int? id; - - final int? name; - - final int? email; - - final int? password; - - final int? createdAt; - - final int? updatedAt; - - final int? $all; - - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_all': $all, - }; -} - -class UserMinAggregateOutputType { - const UserMinAggregateOutputType({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - }); - - factory UserMinAggregateOutputType.fromJson(Map json) => - UserMinAggregateOutputType( - id: json['id'], - name: json['name'], - email: json['email'], - password: json['password'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - ); - - final String? id; - - final String? name; - - final String? email; - - final String? password; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - }; -} - -class UserMaxAggregateOutputType { - const UserMaxAggregateOutputType({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - }); - - factory UserMaxAggregateOutputType.fromJson(Map json) => - UserMaxAggregateOutputType( - id: json['id'], - name: json['name'], - email: json['email'], - password: json['password'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - ); - - final String? id; - - final String? name; - - final String? email; - - final String? password; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - }; -} - -class UserGroupByOutputType { - const UserGroupByOutputType({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.$count, - this.$min, - this.$max, - }); - - factory UserGroupByOutputType.fromJson(Map json) => UserGroupByOutputType( - id: json['id'], - name: json['name'], - email: json['email'], - password: json['password'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - $count: json['_count'] is Map - ? _i2.UserCountAggregateOutputType.fromJson(json['_count']) - : null, - $min: json['_min'] is Map - ? _i2.UserMinAggregateOutputType.fromJson(json['_min']) - : null, - $max: json['_max'] is Map - ? _i2.UserMaxAggregateOutputType.fromJson(json['_max']) - : null, - ); - - final String? id; - - final String? name; - - final String? email; - - final String? password; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.UserCountAggregateOutputType? $count; - - final _i2.UserMinAggregateOutputType? $min; - - final _i2.UserMaxAggregateOutputType? $max; - - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - '_count': $count?.toJson(), - '_min': $min?.toJson(), - '_max': $max?.toJson(), - }; -} - -class UserCountOrderByAggregateInput - implements _i1.JsonConvertible> { - const UserCountOrderByAggregateInput({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i2.SortOrder? email; - - final _i2.SortOrder? password; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class UserMaxOrderByAggregateInput - implements _i1.JsonConvertible> { - const UserMaxOrderByAggregateInput({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i2.SortOrder? email; - - final _i2.SortOrder? password; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class UserMinOrderByAggregateInput - implements _i1.JsonConvertible> { - const UserMinOrderByAggregateInput({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i2.SortOrder? email; - - final _i2.SortOrder? password; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class UserOrderByWithAggregationInput - implements _i1.JsonConvertible> { - const UserOrderByWithAggregationInput({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.$count, - this.$max, - this.$min, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i2.SortOrder? email; - - final _i2.SortOrder? password; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - final _i2.UserCountOrderByAggregateInput? $count; - - final _i2.UserMaxOrderByAggregateInput? $max; - - final _i2.UserMinOrderByAggregateInput? $min; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_count': $count, - '_max': $max, - '_min': $min, - }; -} - -class NestedIntFilter implements _i1.JsonConvertible> { - const NestedIntFilter({ - this.equals, - this.$in, - this.notIn, - this.lt, - this.lte, - this.gt, - this.gte, - this.not, - }); - - final _i1.PrismaUnion>? equals; - - final _i1.PrismaUnion, _i1.Reference>>? $in; - - final _i1.PrismaUnion, _i1.Reference>>? notIn; - - final _i1.PrismaUnion>? lt; - - final _i1.PrismaUnion>? lte; - - final _i1.PrismaUnion>? gt; - - final _i1.PrismaUnion>? gte; - - final _i1.PrismaUnion? not; - - @override - Map toJson() => { - 'equals': equals, - 'in': $in, - 'notIn': notIn, - 'lt': lt, - 'lte': lte, - 'gt': gt, - 'gte': gte, - 'not': not, - }; -} - -class NestedStringWithAggregatesFilter - implements _i1.JsonConvertible> { - 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 _i1.PrismaUnion>? equals; - - final _i1.PrismaUnion, _i1.Reference>>? $in; - - final _i1.PrismaUnion, _i1.Reference>>? - notIn; - - final _i1.PrismaUnion>? lt; - - final _i1.PrismaUnion>? lte; - - final _i1.PrismaUnion>? gt; - - final _i1.PrismaUnion>? gte; - - final _i1.PrismaUnion>? contains; - - final _i1.PrismaUnion>? startsWith; - - final _i1.PrismaUnion>? endsWith; - - final _i1.PrismaUnion? not; - - final _i2.NestedIntFilter? $count; - - final _i2.NestedStringFilter? $min; - - final _i2.NestedStringFilter? $max; - - @override - Map toJson() => { - '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 StringWithAggregatesFilter - implements _i1.JsonConvertible> { - 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 _i1.PrismaUnion>? equals; - - final _i1.PrismaUnion, _i1.Reference>>? $in; - - final _i1.PrismaUnion, _i1.Reference>>? - notIn; - - final _i1.PrismaUnion>? lt; - - final _i1.PrismaUnion>? lte; - - final _i1.PrismaUnion>? gt; - - final _i1.PrismaUnion>? gte; - - final _i1.PrismaUnion>? contains; - - final _i1.PrismaUnion>? startsWith; - - final _i1.PrismaUnion>? endsWith; - - final _i2.QueryMode? mode; - - final _i1.PrismaUnion? not; - - final _i2.NestedIntFilter? $count; - - final _i2.NestedStringFilter? $min; - - final _i2.NestedStringFilter? $max; - - @override - Map toJson() => { - '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 NestedDateTimeWithAggregatesFilter - implements _i1.JsonConvertible> { - const NestedDateTimeWithAggregatesFilter({ - this.equals, - this.$in, - this.notIn, - this.lt, - this.lte, - this.gt, - this.gte, - this.not, - this.$count, - this.$min, - this.$max, - }); - - final _i1.PrismaUnion>? equals; - - final _i1.PrismaUnion, _i1.Reference>>? - $in; - - final _i1.PrismaUnion, _i1.Reference>>? - notIn; - - final _i1.PrismaUnion>? lt; - - final _i1.PrismaUnion>? lte; - - final _i1.PrismaUnion>? gt; - - final _i1.PrismaUnion>? gte; - - final _i1.PrismaUnion? not; - - final _i2.NestedIntFilter? $count; - - final _i2.NestedDateTimeFilter? $min; - - final _i2.NestedDateTimeFilter? $max; - - @override - Map toJson() => { - 'equals': equals, - 'in': $in, - 'notIn': notIn, - 'lt': lt, - 'lte': lte, - 'gt': gt, - 'gte': gte, - 'not': not, - '_count': $count, - '_min': $min, - '_max': $max, - }; -} - -class DateTimeWithAggregatesFilter - implements _i1.JsonConvertible> { - const DateTimeWithAggregatesFilter({ - this.equals, - this.$in, - this.notIn, - this.lt, - this.lte, - this.gt, - this.gte, - this.not, - this.$count, - this.$min, - this.$max, - }); - - final _i1.PrismaUnion>? equals; - - final _i1.PrismaUnion, _i1.Reference>>? - $in; - - final _i1.PrismaUnion, _i1.Reference>>? - notIn; - - final _i1.PrismaUnion>? lt; - - final _i1.PrismaUnion>? lte; - - final _i1.PrismaUnion>? gt; - - final _i1.PrismaUnion>? gte; - - final _i1.PrismaUnion? not; - - final _i2.NestedIntFilter? $count; - - final _i2.NestedDateTimeFilter? $min; - - final _i2.NestedDateTimeFilter? $max; - - @override - Map toJson() => { - 'equals': equals, - 'in': $in, - 'notIn': notIn, - 'lt': lt, - 'lte': lte, - 'gt': gt, - 'gte': gte, - 'not': not, - '_count': $count, - '_min': $min, - '_max': $max, - }; -} - -class UserScalarWhereWithAggregatesInput - implements _i1.JsonConvertible> { - const UserScalarWhereWithAggregatesInput({ - this.AND, - this.OR, - this.NOT, - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion<_i2.UserScalarWhereWithAggregatesInput, - Iterable<_i2.UserScalarWhereWithAggregatesInput>>? AND; - - final Iterable<_i2.UserScalarWhereWithAggregatesInput>? OR; - - final _i1.PrismaUnion<_i2.UserScalarWhereWithAggregatesInput, - Iterable<_i2.UserScalarWhereWithAggregatesInput>>? NOT; - - final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? id; - - final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? name; - - final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? email; - - final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? password; - - final _i1.PrismaUnion<_i2.DateTimeWithAggregatesFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeWithAggregatesFilter, DateTime>? updatedAt; - - @override - Map toJson() => { - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class UserCountAggregateOutputTypeSelect - implements _i1.JsonConvertible> { - const UserCountAggregateOutputTypeSelect({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.$all, - }); - - final bool? id; - - final bool? name; - - final bool? email; - - final bool? password; - - final bool? createdAt; - - final bool? updatedAt; - - final bool? $all; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_all': $all, - }; -} - -class UserGroupByOutputTypeCountArgs - implements _i1.JsonConvertible> { - const UserGroupByOutputTypeCountArgs({this.select}); - - final _i2.UserCountAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class UserMinAggregateOutputTypeSelect - implements _i1.JsonConvertible> { - const UserMinAggregateOutputTypeSelect({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - }); - - final bool? id; - - final bool? name; - - final bool? email; - - final bool? password; - - final bool? createdAt; - - final bool? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class UserGroupByOutputTypeMinArgs - implements _i1.JsonConvertible> { - const UserGroupByOutputTypeMinArgs({this.select}); - - final _i2.UserMinAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class UserMaxAggregateOutputTypeSelect - implements _i1.JsonConvertible> { - const UserMaxAggregateOutputTypeSelect({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - }); - - final bool? id; - - final bool? name; - - final bool? email; - - final bool? password; - - final bool? createdAt; - - final bool? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class UserGroupByOutputTypeMaxArgs - implements _i1.JsonConvertible> { - const UserGroupByOutputTypeMaxArgs({this.select}); - - final _i2.UserMaxAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class UserGroupByOutputTypeSelect - implements _i1.JsonConvertible> { - const UserGroupByOutputTypeSelect({ - this.id, - this.name, - this.email, - this.password, - this.createdAt, - this.updatedAt, - this.$count, - this.$min, - this.$max, - }); - - final bool? id; - - final bool? name; - - final bool? email; - - final bool? password; - - final bool? createdAt; - - final bool? updatedAt; - - final _i1.PrismaUnion? $count; - - final _i1.PrismaUnion? $min; - - final _i1.PrismaUnion? $max; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'email': email, - 'password': password, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_count': $count, - '_min': $min, - '_max': $max, - }; -} - -class AggregateUser { - const AggregateUser({ - this.$count, - this.$min, - this.$max, - }); - - factory AggregateUser.fromJson(Map json) => AggregateUser( - $count: json['_count'] is Map - ? _i2.UserCountAggregateOutputType.fromJson(json['_count']) - : null, - $min: json['_min'] is Map - ? _i2.UserMinAggregateOutputType.fromJson(json['_min']) - : null, - $max: json['_max'] is Map - ? _i2.UserMaxAggregateOutputType.fromJson(json['_max']) - : null, - ); - - final _i2.UserCountAggregateOutputType? $count; - - final _i2.UserMinAggregateOutputType? $min; - - final _i2.UserMaxAggregateOutputType? $max; - - Map toJson() => { - '_count': $count?.toJson(), - '_min': $min?.toJson(), - '_max': $max?.toJson(), - }; -} - -class AggregateUserCountArgs - implements _i1.JsonConvertible> { - const AggregateUserCountArgs({this.select}); - - final _i2.UserCountAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class AggregateUserMinArgs - implements _i1.JsonConvertible> { - const AggregateUserMinArgs({this.select}); - - final _i2.UserMinAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class AggregateUserMaxArgs - implements _i1.JsonConvertible> { - const AggregateUserMaxArgs({this.select}); - - final _i2.UserMaxAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class AggregateUserSelect implements _i1.JsonConvertible> { - const AggregateUserSelect({ - this.$count, - this.$min, - this.$max, - }); - - final _i1.PrismaUnion? $count; - - final _i1.PrismaUnion? $min; - - final _i1.PrismaUnion? $max; - - @override - Map toJson() => { - '_count': $count, - '_min': $min, - '_max': $max, - }; -} - -class ProjectCreateInput implements _i1.JsonConvertible> { - const ProjectCreateInput({ - this.id, - required this.name, - this.description, - this.clientId, - this.createdAt, - this.updatedAt, - this.tasks, - this.timeEntries, - required this.user, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final _i1.PrismaUnion? clientId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.TaskCreateNestedManyWithoutProjectInput? tasks; - - final _i2.TimeEntryCreateNestedManyWithoutProjectInput? timeEntries; - - final _i2.UserCreateNestedOneWithoutProjectsInput user; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - 'timeEntries': timeEntries, - 'user': user, - }; -} - -class ProjectUncheckedCreateInput - implements _i1.JsonConvertible> { - const ProjectUncheckedCreateInput({ - this.id, - required this.name, - this.description, - this.clientId, - required this.userId, - this.createdAt, - this.updatedAt, - this.tasks, - this.timeEntries, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final _i1.PrismaUnion? clientId; - - final String userId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.TaskUncheckedCreateNestedManyWithoutProjectInput? tasks; - - final _i2.TimeEntryUncheckedCreateNestedManyWithoutProjectInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - 'timeEntries': timeEntries, - }; -} - -class ProjectCreateManyInput - implements _i1.JsonConvertible> { - const ProjectCreateManyInput({ - this.id, - required this.name, - this.description, - this.clientId, - required this.userId, - this.createdAt, - this.updatedAt, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final _i1.PrismaUnion? clientId; - - final String userId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class CreateManyProjectAndReturnOutputTypeUserArgs - implements _i1.JsonConvertible> { - const CreateManyProjectAndReturnOutputTypeUserArgs({ - this.select, - this.include, - }); - - final _i2.UserSelect? select; - - final _i2.UserInclude? include; - - @override - Map toJson() => { - 'select': select, - 'include': include, - }; -} - -class CreateManyProjectAndReturnOutputTypeSelect - implements _i1.JsonConvertible> { - const CreateManyProjectAndReturnOutputTypeSelect({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.user, - }); - - final bool? id; - - final bool? name; - - final bool? description; - - final bool? clientId; - - final bool? userId; - - final bool? createdAt; - - final bool? updatedAt; - - final _i1.PrismaUnion? - user; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'user': user, - }; -} - -class CreateManyProjectAndReturnOutputTypeInclude - implements _i1.JsonConvertible> { - const CreateManyProjectAndReturnOutputTypeInclude({this.user}); - - final _i1.PrismaUnion? - user; - - @override - Map toJson() => {'user': user}; -} - -class ProjectUpdateInput implements _i1.JsonConvertible> { - const ProjectUpdateInput({ - this.id, - this.name, - this.description, - this.clientId, - this.createdAt, - this.updatedAt, - this.tasks, - this.timeEntries, - this.user, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? clientId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.TaskUpdateManyWithoutProjectNestedInput? tasks; - - final _i2.TimeEntryUpdateManyWithoutProjectNestedInput? timeEntries; - - final _i2.UserUpdateOneRequiredWithoutProjectsNestedInput? user; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - 'timeEntries': timeEntries, - 'user': user, - }; -} - -class ProjectUncheckedUpdateInput - implements _i1.JsonConvertible> { - const ProjectUncheckedUpdateInput({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.tasks, - this.timeEntries, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? clientId; - - final _i1.PrismaUnion? userId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.TaskUncheckedUpdateManyWithoutProjectNestedInput? tasks; - - final _i2.TimeEntryUncheckedUpdateManyWithoutProjectNestedInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'tasks': tasks, - 'timeEntries': timeEntries, - }; -} - -class ProjectUncheckedUpdateManyInput - implements _i1.JsonConvertible> { - const ProjectUncheckedUpdateManyInput({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? clientId; - - final _i1.PrismaUnion? userId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class ProjectCountAggregateOutputType { - const ProjectCountAggregateOutputType({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.$all, - }); - - factory ProjectCountAggregateOutputType.fromJson(Map json) => - ProjectCountAggregateOutputType( - id: json['id'], - name: json['name'], - description: json['description'], - clientId: json['clientId'], - userId: json['userId'], - createdAt: json['createdAt'], - updatedAt: json['updatedAt'], - $all: json['_all'], - ); - - final int? id; - - final int? name; - - final int? description; - - final int? clientId; - - final int? userId; - - final int? createdAt; - - final int? updatedAt; - - final int? $all; - - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_all': $all, - }; -} - -class ProjectMinAggregateOutputType { - const ProjectMinAggregateOutputType({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - }); - - factory ProjectMinAggregateOutputType.fromJson(Map json) => - ProjectMinAggregateOutputType( - id: json['id'], - name: json['name'], - description: json['description'], - clientId: json['clientId'], - userId: json['userId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - ); - - final String? id; - - final String? name; - - final String? description; - - final String? clientId; - - final String? userId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - }; -} - -class ProjectMaxAggregateOutputType { - const ProjectMaxAggregateOutputType({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - }); - - factory ProjectMaxAggregateOutputType.fromJson(Map json) => - ProjectMaxAggregateOutputType( - id: json['id'], - name: json['name'], - description: json['description'], - clientId: json['clientId'], - userId: json['userId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - ); - - final String? id; - - final String? name; - - final String? description; - - final String? clientId; - - final String? userId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - }; -} - -class ProjectGroupByOutputType { - const ProjectGroupByOutputType({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.$count, - this.$min, - this.$max, - }); - - factory ProjectGroupByOutputType.fromJson(Map json) => - ProjectGroupByOutputType( - id: json['id'], - name: json['name'], - description: json['description'], - clientId: json['clientId'], - userId: json['userId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - $count: json['_count'] is Map - ? _i2.ProjectCountAggregateOutputType.fromJson(json['_count']) - : null, - $min: json['_min'] is Map - ? _i2.ProjectMinAggregateOutputType.fromJson(json['_min']) - : null, - $max: json['_max'] is Map - ? _i2.ProjectMaxAggregateOutputType.fromJson(json['_max']) - : null, - ); - - final String? id; - - final String? name; - - final String? description; - - final String? clientId; - - final String? userId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.ProjectCountAggregateOutputType? $count; - - final _i2.ProjectMinAggregateOutputType? $min; - - final _i2.ProjectMaxAggregateOutputType? $max; - - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - '_count': $count?.toJson(), - '_min': $min?.toJson(), - '_max': $max?.toJson(), - }; -} - -class ProjectCountOrderByAggregateInput - implements _i1.JsonConvertible> { - const ProjectCountOrderByAggregateInput({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i2.SortOrder? description; - - final _i2.SortOrder? clientId; - - final _i2.SortOrder? userId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class ProjectMaxOrderByAggregateInput - implements _i1.JsonConvertible> { - const ProjectMaxOrderByAggregateInput({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i2.SortOrder? description; - - final _i2.SortOrder? clientId; - - final _i2.SortOrder? userId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class ProjectMinOrderByAggregateInput - implements _i1.JsonConvertible> { - const ProjectMinOrderByAggregateInput({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i2.SortOrder? description; - - final _i2.SortOrder? clientId; - - final _i2.SortOrder? userId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class ProjectOrderByWithAggregationInput - implements _i1.JsonConvertible> { - const ProjectOrderByWithAggregationInput({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.$count, - this.$max, - this.$min, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i1.PrismaUnion<_i2.SortOrder, _i2.SortOrderInput>? description; - - final _i1.PrismaUnion<_i2.SortOrder, _i2.SortOrderInput>? clientId; - - final _i2.SortOrder? userId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - final _i2.ProjectCountOrderByAggregateInput? $count; - - final _i2.ProjectMaxOrderByAggregateInput? $max; - - final _i2.ProjectMinOrderByAggregateInput? $min; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_count': $count, - '_max': $max, - '_min': $min, - }; -} - -class NestedIntNullableFilter - implements _i1.JsonConvertible> { - const NestedIntNullableFilter({ - this.equals, - this.$in, - this.notIn, - this.lt, - this.lte, - this.gt, - this.gte, - this.not, - }); - - final _i1 - .PrismaUnion, _i1.PrismaNull>>? - equals; - - final _i1.PrismaUnion, - _i1.PrismaUnion<_i1.Reference>, _i1.PrismaNull>>? $in; - - final _i1.PrismaUnion, - _i1.PrismaUnion<_i1.Reference>, _i1.PrismaNull>>? notIn; - - final _i1.PrismaUnion>? lt; - - final _i1.PrismaUnion>? lte; - - final _i1.PrismaUnion>? gt; - - final _i1.PrismaUnion>? gte; - - final _i1.PrismaUnion>? not; - - @override - Map toJson() => { - 'equals': equals, - 'in': $in, - 'notIn': notIn, - 'lt': lt, - 'lte': lte, - 'gt': gt, - 'gte': gte, - 'not': not, - }; -} - -class NestedStringNullableWithAggregatesFilter - implements _i1.JsonConvertible> { - 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 _i1.PrismaUnion, _i1.PrismaNull>>? equals; - - final _i1.PrismaUnion, - _i1.PrismaUnion<_i1.Reference>, _i1.PrismaNull>>? $in; - - final _i1.PrismaUnion, - _i1.PrismaUnion<_i1.Reference>, _i1.PrismaNull>>? notIn; - - final _i1.PrismaUnion>? lt; - - final _i1.PrismaUnion>? lte; - - final _i1.PrismaUnion>? gt; - - final _i1.PrismaUnion>? gte; - - final _i1.PrismaUnion>? contains; - - final _i1.PrismaUnion>? startsWith; - - final _i1.PrismaUnion>? endsWith; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NestedStringNullableWithAggregatesFilter, - _i1.PrismaNull>>? not; - - final _i2.NestedIntNullableFilter? $count; - - final _i2.NestedStringNullableFilter? $min; - - final _i2.NestedStringNullableFilter? $max; - - @override - Map toJson() => { - '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 StringNullableWithAggregatesFilter - implements _i1.JsonConvertible> { - 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 _i1.PrismaUnion, _i1.PrismaNull>>? equals; - - final _i1.PrismaUnion, - _i1.PrismaUnion<_i1.Reference>, _i1.PrismaNull>>? $in; - - final _i1.PrismaUnion, - _i1.PrismaUnion<_i1.Reference>, _i1.PrismaNull>>? notIn; - - final _i1.PrismaUnion>? lt; - - final _i1.PrismaUnion>? lte; - - final _i1.PrismaUnion>? gt; - - final _i1.PrismaUnion>? gte; - - final _i1.PrismaUnion>? contains; - - final _i1.PrismaUnion>? startsWith; - - final _i1.PrismaUnion>? endsWith; - - final _i2.QueryMode? mode; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NestedStringNullableWithAggregatesFilter, - _i1.PrismaNull>>? not; - - final _i2.NestedIntNullableFilter? $count; - - final _i2.NestedStringNullableFilter? $min; - - final _i2.NestedStringNullableFilter? $max; - - @override - Map toJson() => { - '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 ProjectScalarWhereWithAggregatesInput - implements _i1.JsonConvertible> { - const ProjectScalarWhereWithAggregatesInput({ - this.AND, - this.OR, - this.NOT, - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion<_i2.ProjectScalarWhereWithAggregatesInput, - Iterable<_i2.ProjectScalarWhereWithAggregatesInput>>? AND; - - final Iterable<_i2.ProjectScalarWhereWithAggregatesInput>? OR; - - final _i1.PrismaUnion<_i2.ProjectScalarWhereWithAggregatesInput, - Iterable<_i2.ProjectScalarWhereWithAggregatesInput>>? NOT; - - final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? id; - - final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? name; - - final _i1.PrismaUnion<_i2.StringNullableWithAggregatesFilter, - _i1.PrismaUnion>? description; - - final _i1.PrismaUnion<_i2.StringNullableWithAggregatesFilter, - _i1.PrismaUnion>? clientId; - - final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? userId; - - final _i1.PrismaUnion<_i2.DateTimeWithAggregatesFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeWithAggregatesFilter, DateTime>? updatedAt; - - @override - Map toJson() => { - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class ProjectCountAggregateOutputTypeSelect - implements _i1.JsonConvertible> { - const ProjectCountAggregateOutputTypeSelect({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.$all, - }); - - final bool? id; - - final bool? name; - - final bool? description; - - final bool? clientId; - - final bool? userId; - - final bool? createdAt; - - final bool? updatedAt; - - final bool? $all; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_all': $all, - }; -} - -class ProjectGroupByOutputTypeCountArgs - implements _i1.JsonConvertible> { - const ProjectGroupByOutputTypeCountArgs({this.select}); - - final _i2.ProjectCountAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class ProjectMinAggregateOutputTypeSelect - implements _i1.JsonConvertible> { - const ProjectMinAggregateOutputTypeSelect({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - }); - - final bool? id; - - final bool? name; - - final bool? description; - - final bool? clientId; - - final bool? userId; - - final bool? createdAt; - - final bool? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class ProjectGroupByOutputTypeMinArgs - implements _i1.JsonConvertible> { - const ProjectGroupByOutputTypeMinArgs({this.select}); - - final _i2.ProjectMinAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class ProjectMaxAggregateOutputTypeSelect - implements _i1.JsonConvertible> { - const ProjectMaxAggregateOutputTypeSelect({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - }); - - final bool? id; - - final bool? name; - - final bool? description; - - final bool? clientId; - - final bool? userId; - - final bool? createdAt; - - final bool? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class ProjectGroupByOutputTypeMaxArgs - implements _i1.JsonConvertible> { - const ProjectGroupByOutputTypeMaxArgs({this.select}); - - final _i2.ProjectMaxAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class ProjectGroupByOutputTypeSelect - implements _i1.JsonConvertible> { - const ProjectGroupByOutputTypeSelect({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.$count, - this.$min, - this.$max, - }); - - final bool? id; - - final bool? name; - - final bool? description; - - final bool? clientId; - - final bool? userId; - - final bool? createdAt; - - final bool? updatedAt; - - final _i1.PrismaUnion? $count; - - final _i1.PrismaUnion? $min; - - final _i1.PrismaUnion? $max; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_count': $count, - '_min': $min, - '_max': $max, - }; -} - -class AggregateProject { - const AggregateProject({ - this.$count, - this.$min, - this.$max, - }); - - factory AggregateProject.fromJson(Map json) => AggregateProject( - $count: json['_count'] is Map - ? _i2.ProjectCountAggregateOutputType.fromJson(json['_count']) - : null, - $min: json['_min'] is Map - ? _i2.ProjectMinAggregateOutputType.fromJson(json['_min']) - : null, - $max: json['_max'] is Map - ? _i2.ProjectMaxAggregateOutputType.fromJson(json['_max']) - : null, - ); - - final _i2.ProjectCountAggregateOutputType? $count; - - final _i2.ProjectMinAggregateOutputType? $min; - - final _i2.ProjectMaxAggregateOutputType? $max; - - Map toJson() => { - '_count': $count?.toJson(), - '_min': $min?.toJson(), - '_max': $max?.toJson(), - }; -} - -class AggregateProjectCountArgs - implements _i1.JsonConvertible> { - const AggregateProjectCountArgs({this.select}); - - final _i2.ProjectCountAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class AggregateProjectMinArgs - implements _i1.JsonConvertible> { - const AggregateProjectMinArgs({this.select}); - - final _i2.ProjectMinAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class AggregateProjectMaxArgs - implements _i1.JsonConvertible> { - const AggregateProjectMaxArgs({this.select}); - - final _i2.ProjectMaxAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class AggregateProjectSelect - implements _i1.JsonConvertible> { - const AggregateProjectSelect({ - this.$count, - this.$min, - this.$max, - }); - - final _i1.PrismaUnion? $count; - - final _i1.PrismaUnion? $min; - - final _i1.PrismaUnion? $max; - - @override - Map toJson() => { - '_count': $count, - '_min': $min, - '_max': $max, - }; -} - -class TimeEntryCreateInput - implements _i1.JsonConvertible> { - const TimeEntryCreateInput({ - this.id, - required this.startTime, - required this.endTime, - this.description, - this.createdAt, - this.updatedAt, - required this.user, - required this.project, - }); - - final String? id; - - final DateTime startTime; - - final DateTime endTime; - - final _i1.PrismaUnion? description; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.UserCreateNestedOneWithoutTimeEntriesInput user; - - final _i2.ProjectCreateNestedOneWithoutTimeEntriesInput project; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'user': user, - 'project': project, - }; -} - -class TimeEntryUncheckedCreateInput - implements _i1.JsonConvertible> { - const TimeEntryUncheckedCreateInput({ - this.id, - required this.startTime, - required this.endTime, - this.description, - required this.userId, - required this.projectId, - this.createdAt, - this.updatedAt, - }); - - final String? id; - - final DateTime startTime; - - final DateTime endTime; - - final _i1.PrismaUnion? description; - - final String userId; - - final String projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryCreateManyInput - implements _i1.JsonConvertible> { - const TimeEntryCreateManyInput({ - this.id, - required this.startTime, - required this.endTime, - this.description, - required this.userId, - required this.projectId, - this.createdAt, - this.updatedAt, - }); - - final String? id; - - final DateTime startTime; - - final DateTime endTime; - - final _i1.PrismaUnion? description; - - final String userId; - - final String projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class CreateManyTimeEntryAndReturnOutputTypeUserArgs - implements _i1.JsonConvertible> { - const CreateManyTimeEntryAndReturnOutputTypeUserArgs({ - this.select, - this.include, - }); - - final _i2.UserSelect? select; - - final _i2.UserInclude? include; - - @override - Map toJson() => { - 'select': select, - 'include': include, - }; -} - -class CreateManyTimeEntryAndReturnOutputTypeProjectArgs - implements _i1.JsonConvertible> { - const CreateManyTimeEntryAndReturnOutputTypeProjectArgs({ - this.select, - this.include, - }); - - final _i2.ProjectSelect? select; - - final _i2.ProjectInclude? include; - - @override - Map toJson() => { - 'select': select, - 'include': include, - }; -} - -class CreateManyTimeEntryAndReturnOutputTypeSelect - implements _i1.JsonConvertible> { - const CreateManyTimeEntryAndReturnOutputTypeSelect({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - this.user, - this.project, - }); - - final bool? id; - - final bool? startTime; - - final bool? endTime; - - final bool? description; - - final bool? userId; - - final bool? projectId; - - final bool? createdAt; - - final bool? updatedAt; - - final _i1 - .PrismaUnion? - user; - - final _i1 - .PrismaUnion? - project; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'user': user, - 'project': project, - }; -} - -class CreateManyTimeEntryAndReturnOutputTypeInclude - implements _i1.JsonConvertible> { - const CreateManyTimeEntryAndReturnOutputTypeInclude({ - this.user, - this.project, - }); - - final _i1 - .PrismaUnion? - user; - - final _i1 - .PrismaUnion? - project; - - @override - Map toJson() => { - 'user': user, - 'project': project, - }; -} - -class TimeEntryUpdateInput - implements _i1.JsonConvertible> { - const TimeEntryUpdateInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.createdAt, - this.updatedAt, - this.user, - this.project, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? - startTime; - - final _i1.PrismaUnion? - endTime; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.UserUpdateOneRequiredWithoutTimeEntriesNestedInput? user; - - final _i2.ProjectUpdateOneRequiredWithoutTimeEntriesNestedInput? project; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'user': user, - 'project': project, - }; -} - -class TimeEntryUncheckedUpdateInput - implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? - startTime; - - final _i1.PrismaUnion? - endTime; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? userId; - - final _i1.PrismaUnion? - projectId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryUncheckedUpdateManyInput - implements _i1.JsonConvertible> { - const TimeEntryUncheckedUpdateManyInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? - startTime; - - final _i1.PrismaUnion? - endTime; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? userId; - - final _i1.PrismaUnion? - projectId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryCountAggregateOutputType { - const TimeEntryCountAggregateOutputType({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - this.$all, - }); - - factory TimeEntryCountAggregateOutputType.fromJson(Map json) => - TimeEntryCountAggregateOutputType( - id: json['id'], - startTime: json['startTime'], - endTime: json['endTime'], - description: json['description'], - userId: json['userId'], - projectId: json['projectId'], - createdAt: json['createdAt'], - updatedAt: json['updatedAt'], - $all: json['_all'], - ); - - final int? id; - - final int? startTime; - - final int? endTime; - - final int? description; - - final int? userId; - - final int? projectId; - - final int? createdAt; - - final int? updatedAt; - - final int? $all; - - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_all': $all, - }; -} - -class TimeEntryMinAggregateOutputType { - const TimeEntryMinAggregateOutputType({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - factory TimeEntryMinAggregateOutputType.fromJson(Map json) => - TimeEntryMinAggregateOutputType( - id: json['id'], - startTime: switch (json['startTime']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['startTime'] - }, - endTime: switch (json['endTime']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['endTime'] - }, - description: json['description'], - userId: json['userId'], - projectId: json['projectId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - ); - - final String? id; - - final DateTime? startTime; - - final DateTime? endTime; - - final String? description; - - final String? userId; - - final String? projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - Map toJson() => { - 'id': id, - 'startTime': startTime?.toIso8601String(), - 'endTime': endTime?.toIso8601String(), - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - }; -} - -class TimeEntryMaxAggregateOutputType { - const TimeEntryMaxAggregateOutputType({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - factory TimeEntryMaxAggregateOutputType.fromJson(Map json) => - TimeEntryMaxAggregateOutputType( - id: json['id'], - startTime: switch (json['startTime']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['startTime'] - }, - endTime: switch (json['endTime']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['endTime'] - }, - description: json['description'], - userId: json['userId'], - projectId: json['projectId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - ); - - final String? id; - - final DateTime? startTime; - - final DateTime? endTime; - - final String? description; - - final String? userId; - - final String? projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - Map toJson() => { - 'id': id, - 'startTime': startTime?.toIso8601String(), - 'endTime': endTime?.toIso8601String(), - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - }; -} - -class TimeEntryGroupByOutputType { - const TimeEntryGroupByOutputType({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - this.$count, - this.$min, - this.$max, - }); - - factory TimeEntryGroupByOutputType.fromJson(Map json) => - TimeEntryGroupByOutputType( - id: json['id'], - startTime: switch (json['startTime']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['startTime'] - }, - endTime: switch (json['endTime']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['endTime'] - }, - description: json['description'], - userId: json['userId'], - projectId: json['projectId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - $count: json['_count'] is Map - ? _i2.TimeEntryCountAggregateOutputType.fromJson(json['_count']) - : null, - $min: json['_min'] is Map - ? _i2.TimeEntryMinAggregateOutputType.fromJson(json['_min']) - : null, - $max: json['_max'] is Map - ? _i2.TimeEntryMaxAggregateOutputType.fromJson(json['_max']) - : null, - ); - - final String? id; - - final DateTime? startTime; - - final DateTime? endTime; - - final String? description; - - final String? userId; - - final String? projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.TimeEntryCountAggregateOutputType? $count; - - final _i2.TimeEntryMinAggregateOutputType? $min; - - final _i2.TimeEntryMaxAggregateOutputType? $max; - - Map toJson() => { - 'id': id, - 'startTime': startTime?.toIso8601String(), - 'endTime': endTime?.toIso8601String(), - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - '_count': $count?.toJson(), - '_min': $min?.toJson(), - '_max': $max?.toJson(), - }; -} - -class TimeEntryCountOrderByAggregateInput - implements _i1.JsonConvertible> { - const TimeEntryCountOrderByAggregateInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? startTime; - - final _i2.SortOrder? endTime; - - final _i2.SortOrder? description; - - final _i2.SortOrder? userId; - - final _i2.SortOrder? projectId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryMaxOrderByAggregateInput - implements _i1.JsonConvertible> { - const TimeEntryMaxOrderByAggregateInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? startTime; - - final _i2.SortOrder? endTime; - - final _i2.SortOrder? description; - - final _i2.SortOrder? userId; - - final _i2.SortOrder? projectId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryMinOrderByAggregateInput - implements _i1.JsonConvertible> { - const TimeEntryMinOrderByAggregateInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? startTime; - - final _i2.SortOrder? endTime; - - final _i2.SortOrder? description; - - final _i2.SortOrder? userId; - - final _i2.SortOrder? projectId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryOrderByWithAggregationInput - implements _i1.JsonConvertible> { - const TimeEntryOrderByWithAggregationInput({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - this.$count, - this.$max, - this.$min, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? startTime; - - final _i2.SortOrder? endTime; - - final _i1.PrismaUnion<_i2.SortOrder, _i2.SortOrderInput>? description; - - final _i2.SortOrder? userId; - - final _i2.SortOrder? projectId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - final _i2.TimeEntryCountOrderByAggregateInput? $count; - - final _i2.TimeEntryMaxOrderByAggregateInput? $max; - - final _i2.TimeEntryMinOrderByAggregateInput? $min; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_count': $count, - '_max': $max, - '_min': $min, - }; -} - -class TimeEntryScalarWhereWithAggregatesInput - implements _i1.JsonConvertible> { - const TimeEntryScalarWhereWithAggregatesInput({ - this.AND, - this.OR, - this.NOT, - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereWithAggregatesInput, - Iterable<_i2.TimeEntryScalarWhereWithAggregatesInput>>? AND; - - final Iterable<_i2.TimeEntryScalarWhereWithAggregatesInput>? OR; - - final _i1.PrismaUnion<_i2.TimeEntryScalarWhereWithAggregatesInput, - Iterable<_i2.TimeEntryScalarWhereWithAggregatesInput>>? NOT; - - final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? id; - - final _i1.PrismaUnion<_i2.DateTimeWithAggregatesFilter, DateTime>? startTime; - - final _i1.PrismaUnion<_i2.DateTimeWithAggregatesFilter, DateTime>? endTime; - - final _i1.PrismaUnion<_i2.StringNullableWithAggregatesFilter, - _i1.PrismaUnion>? description; - - final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? userId; - - final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? projectId; - - final _i1.PrismaUnion<_i2.DateTimeWithAggregatesFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeWithAggregatesFilter, DateTime>? updatedAt; - - @override - Map toJson() => { - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryCountAggregateOutputTypeSelect - implements _i1.JsonConvertible> { - const TimeEntryCountAggregateOutputTypeSelect({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - this.$all, - }); - - final bool? id; - - final bool? startTime; - - final bool? endTime; - - final bool? description; - - final bool? userId; - - final bool? projectId; - - final bool? createdAt; - - final bool? updatedAt; - - final bool? $all; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_all': $all, - }; -} - -class TimeEntryGroupByOutputTypeCountArgs - implements _i1.JsonConvertible> { - const TimeEntryGroupByOutputTypeCountArgs({this.select}); - - final _i2.TimeEntryCountAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class TimeEntryMinAggregateOutputTypeSelect - implements _i1.JsonConvertible> { - const TimeEntryMinAggregateOutputTypeSelect({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final bool? id; - - final bool? startTime; - - final bool? endTime; - - final bool? description; - - final bool? userId; - - final bool? projectId; - - final bool? createdAt; - - final bool? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryGroupByOutputTypeMinArgs - implements _i1.JsonConvertible> { - const TimeEntryGroupByOutputTypeMinArgs({this.select}); - - final _i2.TimeEntryMinAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class TimeEntryMaxAggregateOutputTypeSelect - implements _i1.JsonConvertible> { - const TimeEntryMaxAggregateOutputTypeSelect({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final bool? id; - - final bool? startTime; - - final bool? endTime; - - final bool? description; - - final bool? userId; - - final bool? projectId; - - final bool? createdAt; - - final bool? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TimeEntryGroupByOutputTypeMaxArgs - implements _i1.JsonConvertible> { - const TimeEntryGroupByOutputTypeMaxArgs({this.select}); - - final _i2.TimeEntryMaxAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class TimeEntryGroupByOutputTypeSelect - implements _i1.JsonConvertible> { - const TimeEntryGroupByOutputTypeSelect({ - this.id, - this.startTime, - this.endTime, - this.description, - this.userId, - this.projectId, - this.createdAt, - this.updatedAt, - this.$count, - this.$min, - this.$max, - }); - - final bool? id; - - final bool? startTime; - - final bool? endTime; - - final bool? description; - - final bool? userId; - - final bool? projectId; - - final bool? createdAt; - - final bool? updatedAt; - - final _i1.PrismaUnion? $count; - - final _i1.PrismaUnion? $min; - - final _i1.PrismaUnion? $max; - - @override - Map toJson() => { - 'id': id, - 'startTime': startTime, - 'endTime': endTime, - 'description': description, - 'userId': userId, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_count': $count, - '_min': $min, - '_max': $max, - }; -} - -class AggregateTimeEntry { - const AggregateTimeEntry({ - this.$count, - this.$min, - this.$max, - }); - - factory AggregateTimeEntry.fromJson(Map json) => AggregateTimeEntry( - $count: json['_count'] is Map - ? _i2.TimeEntryCountAggregateOutputType.fromJson(json['_count']) - : null, - $min: json['_min'] is Map - ? _i2.TimeEntryMinAggregateOutputType.fromJson(json['_min']) - : null, - $max: json['_max'] is Map - ? _i2.TimeEntryMaxAggregateOutputType.fromJson(json['_max']) - : null, - ); - - final _i2.TimeEntryCountAggregateOutputType? $count; - - final _i2.TimeEntryMinAggregateOutputType? $min; - - final _i2.TimeEntryMaxAggregateOutputType? $max; - - Map toJson() => { - '_count': $count?.toJson(), - '_min': $min?.toJson(), - '_max': $max?.toJson(), - }; -} - -class AggregateTimeEntryCountArgs - implements _i1.JsonConvertible> { - const AggregateTimeEntryCountArgs({this.select}); - - final _i2.TimeEntryCountAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class AggregateTimeEntryMinArgs - implements _i1.JsonConvertible> { - const AggregateTimeEntryMinArgs({this.select}); - - final _i2.TimeEntryMinAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class AggregateTimeEntryMaxArgs - implements _i1.JsonConvertible> { - const AggregateTimeEntryMaxArgs({this.select}); - - final _i2.TimeEntryMaxAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class AggregateTimeEntrySelect - implements _i1.JsonConvertible> { - const AggregateTimeEntrySelect({ - this.$count, - this.$min, - this.$max, - }); - - final _i1.PrismaUnion? $count; - - final _i1.PrismaUnion? $min; - - final _i1.PrismaUnion? $max; - - @override - Map toJson() => { - '_count': $count, - '_min': $min, - '_max': $max, - }; -} - -class ProjectCreateWithoutTasksInput - implements _i1.JsonConvertible> { - const ProjectCreateWithoutTasksInput({ - this.id, - required this.name, - this.description, - this.clientId, - this.createdAt, - this.updatedAt, - this.timeEntries, - required this.user, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final _i1.PrismaUnion? clientId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.TimeEntryCreateNestedManyWithoutProjectInput? timeEntries; - - final _i2.UserCreateNestedOneWithoutProjectsInput user; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'timeEntries': timeEntries, - 'user': user, - }; -} - -class ProjectUncheckedCreateWithoutTasksInput - implements _i1.JsonConvertible> { - const ProjectUncheckedCreateWithoutTasksInput({ - this.id, - required this.name, - this.description, - this.clientId, - required this.userId, - this.createdAt, - this.updatedAt, - this.timeEntries, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final _i1.PrismaUnion? clientId; - - final String userId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.TimeEntryUncheckedCreateNestedManyWithoutProjectInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'timeEntries': timeEntries, - }; -} - -class ProjectCreateOrConnectWithoutTasksInput - implements _i1.JsonConvertible> { - const ProjectCreateOrConnectWithoutTasksInput({ - required this.where, - required this.create, - }); - - final _i2.ProjectWhereUniqueInput where; - - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTasksInput, - _i2.ProjectUncheckedCreateWithoutTasksInput> create; - - @override - Map toJson() => { - 'where': where, - 'create': create, - }; -} - -class ProjectCreateNestedOneWithoutTasksInput - implements _i1.JsonConvertible> { - const ProjectCreateNestedOneWithoutTasksInput({ - this.create, - this.connectOrCreate, - this.connect, - }); - - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTasksInput, - _i2.ProjectUncheckedCreateWithoutTasksInput>? create; - - final _i2.ProjectCreateOrConnectWithoutTasksInput? connectOrCreate; - - final _i2.ProjectWhereUniqueInput? connect; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'connect': connect, - }; -} - -class TaskCreateInput implements _i1.JsonConvertible> { - const TaskCreateInput({ - this.id, - required this.name, - this.description, - this.createdAt, - this.updatedAt, - required this.project, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.ProjectCreateNestedOneWithoutTasksInput project; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'project': project, - }; -} - -class TaskUncheckedCreateInput - implements _i1.JsonConvertible> { - const TaskUncheckedCreateInput({ - this.id, - required this.name, - this.description, - required this.projectId, - this.createdAt, - this.updatedAt, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final String projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskCreateManyInput implements _i1.JsonConvertible> { - const TaskCreateManyInput({ - this.id, - required this.name, - this.description, - required this.projectId, - this.createdAt, - this.updatedAt, - }); - - final String? id; - - final String name; - - final _i1.PrismaUnion? description; - - final String projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class CreateManyTaskAndReturnOutputTypeProjectArgs - implements _i1.JsonConvertible> { - const CreateManyTaskAndReturnOutputTypeProjectArgs({ - this.select, - this.include, - }); - - final _i2.ProjectSelect? select; - - final _i2.ProjectInclude? include; - - @override - Map toJson() => { - 'select': select, - 'include': include, - }; -} - -class CreateManyTaskAndReturnOutputTypeSelect - implements _i1.JsonConvertible> { - const CreateManyTaskAndReturnOutputTypeSelect({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - this.project, - }); - - final bool? id; - - final bool? name; - - final bool? description; - - final bool? projectId; - - final bool? createdAt; - - final bool? updatedAt; - - final _i1.PrismaUnion? - project; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'project': project, - }; -} - -class CreateManyTaskAndReturnOutputTypeInclude - implements _i1.JsonConvertible> { - const CreateManyTaskAndReturnOutputTypeInclude({this.project}); - - final _i1.PrismaUnion? - project; - - @override - Map toJson() => {'project': project}; -} - -class ProjectUpdateWithoutTasksInput - implements _i1.JsonConvertible> { - const ProjectUpdateWithoutTasksInput({ - this.id, - this.name, - this.description, - this.clientId, - this.createdAt, - this.updatedAt, - this.timeEntries, - this.user, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? clientId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.TimeEntryUpdateManyWithoutProjectNestedInput? timeEntries; - - final _i2.UserUpdateOneRequiredWithoutProjectsNestedInput? user; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'timeEntries': timeEntries, - 'user': user, - }; -} - -class ProjectUncheckedUpdateWithoutTasksInput - implements _i1.JsonConvertible> { - const ProjectUncheckedUpdateWithoutTasksInput({ - this.id, - this.name, - this.description, - this.clientId, - this.userId, - this.createdAt, - this.updatedAt, - this.timeEntries, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? clientId; - - final _i1.PrismaUnion? userId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.TimeEntryUncheckedUpdateManyWithoutProjectNestedInput? timeEntries; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'clientId': clientId, - 'userId': userId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'timeEntries': timeEntries, - }; -} - -class ProjectUpsertWithoutTasksInput - implements _i1.JsonConvertible> { - const ProjectUpsertWithoutTasksInput({ - required this.update, - required this.create, - this.where, - }); - - final _i1.PrismaUnion<_i2.ProjectUpdateWithoutTasksInput, - _i2.ProjectUncheckedUpdateWithoutTasksInput> update; - - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTasksInput, - _i2.ProjectUncheckedCreateWithoutTasksInput> create; - - final _i2.ProjectWhereInput? where; - - @override - Map toJson() => { - 'update': update, - 'create': create, - 'where': where, - }; -} - -class ProjectUpdateToOneWithWhereWithoutTasksInput - implements _i1.JsonConvertible> { - const ProjectUpdateToOneWithWhereWithoutTasksInput({ - this.where, - required this.data, - }); - - final _i2.ProjectWhereInput? where; - - final _i1.PrismaUnion<_i2.ProjectUpdateWithoutTasksInput, - _i2.ProjectUncheckedUpdateWithoutTasksInput> data; - - @override - Map toJson() => { - 'where': where, - 'data': data, - }; -} - -class ProjectUpdateOneRequiredWithoutTasksNestedInput - implements _i1.JsonConvertible> { - const ProjectUpdateOneRequiredWithoutTasksNestedInput({ - this.create, - this.connectOrCreate, - this.upsert, - this.connect, - this.update, - }); - - final _i1.PrismaUnion<_i2.ProjectCreateWithoutTasksInput, - _i2.ProjectUncheckedCreateWithoutTasksInput>? create; - - final _i2.ProjectCreateOrConnectWithoutTasksInput? connectOrCreate; - - final _i2.ProjectUpsertWithoutTasksInput? upsert; - - final _i2.ProjectWhereUniqueInput? connect; - - final _i1.PrismaUnion< - _i2.ProjectUpdateToOneWithWhereWithoutTasksInput, - _i1.PrismaUnion<_i2.ProjectUpdateWithoutTasksInput, - _i2.ProjectUncheckedUpdateWithoutTasksInput>>? update; - - @override - Map toJson() => { - 'create': create, - 'connectOrCreate': connectOrCreate, - 'upsert': upsert, - 'connect': connect, - 'update': update, - }; -} - -class TaskUpdateInput implements _i1.JsonConvertible> { - const TaskUpdateInput({ - this.id, - this.name, - this.description, - this.createdAt, - this.updatedAt, - this.project, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - final _i2.ProjectUpdateOneRequiredWithoutTasksNestedInput? project; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - 'project': project, - }; -} - -class TaskUncheckedUpdateInput - implements _i1.JsonConvertible> { - const TaskUncheckedUpdateInput({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? - projectId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskUncheckedUpdateManyInput - implements _i1.JsonConvertible> { - const TaskUncheckedUpdateManyInput({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion? id; - - final _i1.PrismaUnion? name; - - final _i1.PrismaUnion< - String, - _i1.PrismaUnion<_i2.NullableStringFieldUpdateOperationsInput, - _i1.PrismaNull>>? description; - - final _i1.PrismaUnion? - projectId; - - final _i1.PrismaUnion? - createdAt; - - final _i1.PrismaUnion? - updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskCountAggregateOutputType { - const TaskCountAggregateOutputType({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - this.$all, - }); - - factory TaskCountAggregateOutputType.fromJson(Map json) => - TaskCountAggregateOutputType( - id: json['id'], - name: json['name'], - description: json['description'], - projectId: json['projectId'], - createdAt: json['createdAt'], - updatedAt: json['updatedAt'], - $all: json['_all'], - ); - - final int? id; - - final int? name; - - final int? description; - - final int? projectId; - - final int? createdAt; - - final int? updatedAt; - - final int? $all; - - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_all': $all, - }; -} - -class TaskMinAggregateOutputType { - const TaskMinAggregateOutputType({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - factory TaskMinAggregateOutputType.fromJson(Map json) => - TaskMinAggregateOutputType( - id: json['id'], - name: json['name'], - description: json['description'], - projectId: json['projectId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - ); - - final String? id; - - final String? name; - - final String? description; - - final String? projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - }; -} - -class TaskMaxAggregateOutputType { - const TaskMaxAggregateOutputType({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - factory TaskMaxAggregateOutputType.fromJson(Map json) => - TaskMaxAggregateOutputType( - id: json['id'], - name: json['name'], - description: json['description'], - projectId: json['projectId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - ); - - final String? id; - - final String? name; - - final String? description; - - final String? projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - }; -} - -class TaskGroupByOutputType { - const TaskGroupByOutputType({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - this.$count, - this.$min, - this.$max, - }); - - factory TaskGroupByOutputType.fromJson(Map json) => TaskGroupByOutputType( - id: json['id'], - name: json['name'], - description: json['description'], - projectId: json['projectId'], - createdAt: switch (json['createdAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['createdAt'] - }, - updatedAt: switch (json['updatedAt']) { - DateTime value => value, - String value => DateTime.parse(value), - _ => json['updatedAt'] - }, - $count: json['_count'] is Map - ? _i2.TaskCountAggregateOutputType.fromJson(json['_count']) - : null, - $min: json['_min'] is Map - ? _i2.TaskMinAggregateOutputType.fromJson(json['_min']) - : null, - $max: json['_max'] is Map - ? _i2.TaskMaxAggregateOutputType.fromJson(json['_max']) - : null, - ); - - final String? id; - - final String? name; - - final String? description; - - final String? projectId; - - final DateTime? createdAt; - - final DateTime? updatedAt; - - final _i2.TaskCountAggregateOutputType? $count; - - final _i2.TaskMinAggregateOutputType? $min; - - final _i2.TaskMaxAggregateOutputType? $max; - - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt?.toIso8601String(), - 'updatedAt': updatedAt?.toIso8601String(), - '_count': $count?.toJson(), - '_min': $min?.toJson(), - '_max': $max?.toJson(), - }; -} - -class TaskCountOrderByAggregateInput - implements _i1.JsonConvertible> { - const TaskCountOrderByAggregateInput({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i2.SortOrder? description; - - final _i2.SortOrder? projectId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskMaxOrderByAggregateInput - implements _i1.JsonConvertible> { - const TaskMaxOrderByAggregateInput({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i2.SortOrder? description; - - final _i2.SortOrder? projectId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskMinOrderByAggregateInput - implements _i1.JsonConvertible> { - const TaskMinOrderByAggregateInput({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i2.SortOrder? description; - - final _i2.SortOrder? projectId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskOrderByWithAggregationInput - implements _i1.JsonConvertible> { - const TaskOrderByWithAggregationInput({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - this.$count, - this.$max, - this.$min, - }); - - final _i2.SortOrder? id; - - final _i2.SortOrder? name; - - final _i1.PrismaUnion<_i2.SortOrder, _i2.SortOrderInput>? description; - - final _i2.SortOrder? projectId; - - final _i2.SortOrder? createdAt; - - final _i2.SortOrder? updatedAt; - - final _i2.TaskCountOrderByAggregateInput? $count; - - final _i2.TaskMaxOrderByAggregateInput? $max; - - final _i2.TaskMinOrderByAggregateInput? $min; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_count': $count, - '_max': $max, - '_min': $min, - }; -} - -class TaskScalarWhereWithAggregatesInput - implements _i1.JsonConvertible> { - const TaskScalarWhereWithAggregatesInput({ - this.AND, - this.OR, - this.NOT, - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final _i1.PrismaUnion<_i2.TaskScalarWhereWithAggregatesInput, - Iterable<_i2.TaskScalarWhereWithAggregatesInput>>? AND; - - final Iterable<_i2.TaskScalarWhereWithAggregatesInput>? OR; - - final _i1.PrismaUnion<_i2.TaskScalarWhereWithAggregatesInput, - Iterable<_i2.TaskScalarWhereWithAggregatesInput>>? NOT; - - final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? id; - - final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? name; - - final _i1.PrismaUnion<_i2.StringNullableWithAggregatesFilter, - _i1.PrismaUnion>? description; - - final _i1.PrismaUnion<_i2.StringWithAggregatesFilter, String>? projectId; - - final _i1.PrismaUnion<_i2.DateTimeWithAggregatesFilter, DateTime>? createdAt; - - final _i1.PrismaUnion<_i2.DateTimeWithAggregatesFilter, DateTime>? updatedAt; - - @override - Map toJson() => { - 'AND': AND, - 'OR': OR, - 'NOT': NOT, - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskCountAggregateOutputTypeSelect - implements _i1.JsonConvertible> { - const TaskCountAggregateOutputTypeSelect({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - this.$all, - }); - - final bool? id; - - final bool? name; - - final bool? description; - - final bool? projectId; - - final bool? createdAt; - - final bool? updatedAt; - - final bool? $all; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_all': $all, - }; -} - -class TaskGroupByOutputTypeCountArgs - implements _i1.JsonConvertible> { - const TaskGroupByOutputTypeCountArgs({this.select}); - - final _i2.TaskCountAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class TaskMinAggregateOutputTypeSelect - implements _i1.JsonConvertible> { - const TaskMinAggregateOutputTypeSelect({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final bool? id; - - final bool? name; - - final bool? description; - - final bool? projectId; - - final bool? createdAt; - - final bool? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskGroupByOutputTypeMinArgs - implements _i1.JsonConvertible> { - const TaskGroupByOutputTypeMinArgs({this.select}); - - final _i2.TaskMinAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class TaskMaxAggregateOutputTypeSelect - implements _i1.JsonConvertible> { - const TaskMaxAggregateOutputTypeSelect({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - }); - - final bool? id; - - final bool? name; - - final bool? description; - - final bool? projectId; - - final bool? createdAt; - - final bool? updatedAt; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - }; -} - -class TaskGroupByOutputTypeMaxArgs - implements _i1.JsonConvertible> { - const TaskGroupByOutputTypeMaxArgs({this.select}); - - final _i2.TaskMaxAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class TaskGroupByOutputTypeSelect - implements _i1.JsonConvertible> { - const TaskGroupByOutputTypeSelect({ - this.id, - this.name, - this.description, - this.projectId, - this.createdAt, - this.updatedAt, - this.$count, - this.$min, - this.$max, - }); - - final bool? id; - - final bool? name; - - final bool? description; - - final bool? projectId; - - final bool? createdAt; - - final bool? updatedAt; - - final _i1.PrismaUnion? $count; - - final _i1.PrismaUnion? $min; - - final _i1.PrismaUnion? $max; - - @override - Map toJson() => { - 'id': id, - 'name': name, - 'description': description, - 'projectId': projectId, - 'createdAt': createdAt, - 'updatedAt': updatedAt, - '_count': $count, - '_min': $min, - '_max': $max, - }; -} - -class AggregateTask { - const AggregateTask({ - this.$count, - this.$min, - this.$max, - }); - - factory AggregateTask.fromJson(Map json) => AggregateTask( - $count: json['_count'] is Map - ? _i2.TaskCountAggregateOutputType.fromJson(json['_count']) - : null, - $min: json['_min'] is Map - ? _i2.TaskMinAggregateOutputType.fromJson(json['_min']) - : null, - $max: json['_max'] is Map - ? _i2.TaskMaxAggregateOutputType.fromJson(json['_max']) - : null, - ); - - final _i2.TaskCountAggregateOutputType? $count; - - final _i2.TaskMinAggregateOutputType? $min; - - final _i2.TaskMaxAggregateOutputType? $max; - - Map toJson() => { - '_count': $count?.toJson(), - '_min': $min?.toJson(), - '_max': $max?.toJson(), - }; -} - -class AggregateTaskCountArgs - implements _i1.JsonConvertible> { - const AggregateTaskCountArgs({this.select}); - - final _i2.TaskCountAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class AggregateTaskMinArgs - implements _i1.JsonConvertible> { - const AggregateTaskMinArgs({this.select}); - - final _i2.TaskMinAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class AggregateTaskMaxArgs - implements _i1.JsonConvertible> { - const AggregateTaskMaxArgs({this.select}); - - final _i2.TaskMaxAggregateOutputTypeSelect? select; - - @override - Map toJson() => {'select': select}; -} - -class AggregateTaskSelect implements _i1.JsonConvertible> { - const AggregateTaskSelect({ - this.$count, - this.$min, - this.$max, - }); - - final _i1.PrismaUnion? $count; - - final _i1.PrismaUnion? $min; - - final _i1.PrismaUnion? $max; - - @override - Map toJson() => { - '_count': $count, - '_min': $min, - '_max': $max, - }; -} diff --git a/backend-dart/prisma/schema.prisma b/backend-dart/prisma/schema.prisma index 5e64299..3636fdd 100755 --- a/backend-dart/prisma/schema.prisma +++ b/backend-dart/prisma/schema.prisma @@ -1,6 +1,6 @@ generator dartClient { provider = "dart run orm" - output = "lib/infrastructure/persistence/db" + output = "../lib/infrastructure/persistence/db" } datasource db { @@ -9,51 +9,51 @@ datasource db { } // User Model -model User { +model UserDbo { id String @id @default(uuid()) name String email String @unique password String - projects Project[] // Beziehung zu Projekten - timeEntries TimeEntry[] // Beziehung zu Zeiteinträgen + projects ProjectDbo[] // Beziehung zu Projekten + timeEntries TimeEntryDbo[] // Beziehung zu Zeiteinträgen createdAt DateTime @default(now()) updatedAt DateTime @updatedAt } // Project Model -model Project { +model ProjectDbo { id String @id @default(uuid()) name String description String? clientId String? - tasks Task[] // Beziehung zu Aufgaben - timeEntries TimeEntry[] // Beziehung zu Zeiteinträgen - user User @relation(fields: [userId], references: [id]) + tasks TaskDbo[] // Beziehung zu Aufgaben + timeEntries TimeEntryDbo[] // Beziehung zu Zeiteinträgen + user UserDbo @relation(fields: [userId], references: [id]) userId String createdAt DateTime @default(now()) updatedAt DateTime @updatedAt } // TimeEntry Model -model TimeEntry { +model TimeEntryDbo { id String @id @default(uuid()) startTime DateTime endTime DateTime description String? - user User @relation(fields: [userId], references: [id]) + user UserDbo @relation(fields: [userId], references: [id]) userId String - project Project @relation(fields: [projectId], references: [id]) + project ProjectDbo @relation(fields: [projectId], references: [id]) projectId String createdAt DateTime @default(now()) updatedAt DateTime @updatedAt } // Task Model (optional) -model Task { +model TaskDbo { id String @id @default(uuid()) name String description String? - project Project @relation(fields: [projectId], references: [id]) + project ProjectDbo @relation(fields: [projectId], references: [id]) projectId String createdAt DateTime @default(now()) updatedAt DateTime @updatedAt diff --git a/backend-dart/pubspec.lock b/backend-dart/pubspec.lock index e5df82b..4351735 100755 --- a/backend-dart/pubspec.lock +++ b/backend-dart/pubspec.lock @@ -278,8 +278,16 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.1" + freezed: + dependency: "direct dev" + description: + name: freezed + sha256: "44c19278dd9d89292cf46e97dc0c1e52ce03275f40a97c5a348e802a924bf40e" + url: "https://pub.dev" + source: hosted + version: "2.5.7" freezed_annotation: - dependency: transitive + dependency: "direct main" description: name: freezed_annotation sha256: c2e2d632dd9b8a2b7751117abcfc2b4888ecfe181bd9fca7170d9ef02e595fe2 @@ -367,7 +375,7 @@ packages: source: hosted version: "0.7.1" json_annotation: - dependency: transitive + dependency: "direct main" description: name: json_annotation sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" @@ -382,6 +390,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.0.3" + json_serializable: + dependency: "direct dev" + description: + name: json_serializable + sha256: c2fcb3920cf2b6ae6845954186420fca40bc0a8abcc84903b7801f17d7050d7c + url: "https://pub.dev" + source: hosted + version: "6.9.0" lints: dependency: "direct dev" description: @@ -646,6 +662,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.5.0" + source_helper: + dependency: transitive + description: + name: source_helper + sha256: "86d247119aedce8e63f4751bd9626fc9613255935558447569ad42f9f5b48b3c" + url: "https://pub.dev" + source: hosted + version: "1.3.5" source_map_stack_trace: dependency: transitive description: diff --git a/backend-dart/pubspec.yaml b/backend-dart/pubspec.yaml index e01adc7..efb1726 100755 --- a/backend-dart/pubspec.yaml +++ b/backend-dart/pubspec.yaml @@ -18,6 +18,9 @@ dependencies: yaml: ^3.1.0 riverpod: ^2.6.1 riverpod_annotation: ^2.6.1 + json_annotation: ^4.9.0 + freezed_annotation: ^2.4.4 + dev_dependencies: lints: ^3.0.0 test: ^1.24.0 @@ -25,4 +28,6 @@ dev_dependencies: build_runner: ^2.4.14 riverpod_generator: ^2.6.3 riverpod_lint: ^2.6.3 + json_serializable: ^6.9.0 + freezed: ^2.5.7