diff --git a/prisma-fmt/src/get_datamodel.rs b/prisma-fmt/src/get_datamodel.rs index 3e3a03675898..202d89955033 100644 --- a/prisma-fmt/src/get_datamodel.rs +++ b/prisma-fmt/src/get_datamodel.rs @@ -47,7 +47,7 @@ mod tests { } model Post { - id Int @id @default(autoincrement()) + id Int @id @default(autoincrement()) title String author User @relation(fields: [authorId], references: [id]) authorId Int @@ -190,7 +190,50 @@ mod tests { "isGenerated": false } ], - "types": [] + "types": [], + "indexes": [ + { + "model": "User", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "User", + "type": "unique", + "isDefinedOnField": true, + "fields": [ + { + "name": "email" + } + ] + }, + { + "model": "Post", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "Post", + "type": "normal", + "isDefinedOnField": false, + "dbName": "idx_post_on_title", + "fields": [ + { + "name": "title" + } + ] + } + ] }"#]]; let response = get_datamodel( diff --git a/prisma-fmt/src/get_dmmf.rs b/prisma-fmt/src/get_dmmf.rs index 412b297d93af..6f3f03aa4f18 100644 --- a/prisma-fmt/src/get_dmmf.rs +++ b/prisma-fmt/src/get_dmmf.rs @@ -62,11 +62,132 @@ mod tests { "prismaSchema": schema, }); - let expected = expect![[ - r#"{"datamodel":{"enums":[],"models":[],"types":[]},"schema":{"inputObjectTypes":{},"outputObjectTypes":{"prisma":[{"name":"Query","fields":[]},{"name":"Mutation","fields":[{"name":"executeRaw","args":[{"name":"query","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"parameters","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Json","location":"scalar","isList":false}]}],"isNullable":false,"outputType":{"type":"Json","location":"scalar","isList":false}},{"name":"queryRaw","args":[{"name":"query","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"parameters","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Json","location":"scalar","isList":false}]}],"isNullable":false,"outputType":{"type":"Json","location":"scalar","isList":false}}]}]},"enumTypes":{"prisma":[{"name":"TransactionIsolationLevel","values":["ReadUncommitted","ReadCommitted","RepeatableRead","Serializable"]}]},"fieldRefTypes":{}},"mappings":{"modelOperations":[],"otherOperations":{"read":[],"write":["executeRaw","queryRaw"]}}}"# - ]]; + let expected = expect![[r#" + { + "datamodel": { + "enums": [], + "models": [], + "types": [], + "indexes": [] + }, + "schema": { + "inputObjectTypes": {}, + "outputObjectTypes": { + "prisma": [ + { + "name": "Query", + "fields": [] + }, + { + "name": "Mutation", + "fields": [ + { + "name": "executeRaw", + "args": [ + { + "name": "query", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "parameters", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Json", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "Json", + "location": "scalar", + "isList": false + } + }, + { + "name": "queryRaw", + "args": [ + { + "name": "query", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "parameters", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Json", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "Json", + "location": "scalar", + "isList": false + } + } + ] + } + ] + }, + "enumTypes": { + "prisma": [ + { + "name": "TransactionIsolationLevel", + "values": [ + "ReadUncommitted", + "ReadCommitted", + "RepeatableRead", + "Serializable" + ] + } + ] + }, + "fieldRefTypes": {} + }, + "mappings": { + "modelOperations": [], + "otherOperations": { + "read": [], + "write": [ + "executeRaw", + "queryRaw" + ] + } + } + }"#]]; + let response = get_dmmf(&request.to_string()).unwrap(); - expected.assert_eq(&response); + + let prettified_response = + serde_json::to_string_pretty(&serde_json::from_str::(&response).unwrap()).unwrap(); + + expected.assert_eq(&prettified_response); } #[test] @@ -83,11 +204,132 @@ mod tests { "prismaSchema": schema, }); - let expected = expect![[ - r#"{"datamodel":{"enums":[],"models":[],"types":[]},"schema":{"inputObjectTypes":{},"outputObjectTypes":{"prisma":[{"name":"Query","fields":[]},{"name":"Mutation","fields":[{"name":"executeRaw","args":[{"name":"query","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"parameters","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Json","location":"scalar","isList":false}]}],"isNullable":false,"outputType":{"type":"Json","location":"scalar","isList":false}},{"name":"queryRaw","args":[{"name":"query","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"parameters","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Json","location":"scalar","isList":false}]}],"isNullable":false,"outputType":{"type":"Json","location":"scalar","isList":false}}]}]},"enumTypes":{"prisma":[{"name":"TransactionIsolationLevel","values":["ReadUncommitted","ReadCommitted","RepeatableRead","Serializable"]}]},"fieldRefTypes":{}},"mappings":{"modelOperations":[],"otherOperations":{"read":[],"write":["executeRaw","queryRaw"]}}}"# - ]]; + let expected = expect![[r#" + { + "datamodel": { + "enums": [], + "models": [], + "types": [], + "indexes": [] + }, + "schema": { + "inputObjectTypes": {}, + "outputObjectTypes": { + "prisma": [ + { + "name": "Query", + "fields": [] + }, + { + "name": "Mutation", + "fields": [ + { + "name": "executeRaw", + "args": [ + { + "name": "query", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "parameters", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Json", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "Json", + "location": "scalar", + "isList": false + } + }, + { + "name": "queryRaw", + "args": [ + { + "name": "query", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "parameters", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Json", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "Json", + "location": "scalar", + "isList": false + } + } + ] + } + ] + }, + "enumTypes": { + "prisma": [ + { + "name": "TransactionIsolationLevel", + "values": [ + "ReadUncommitted", + "ReadCommitted", + "RepeatableRead", + "Serializable" + ] + } + ] + }, + "fieldRefTypes": {} + }, + "mappings": { + "modelOperations": [], + "otherOperations": { + "read": [], + "write": [ + "executeRaw", + "queryRaw" + ] + } + } + }"#]]; + let response = get_dmmf(&request.to_string()).unwrap(); - expected.assert_eq(&response); + + let prettified_response = + serde_json::to_string_pretty(&serde_json::from_str::(&response).unwrap()).unwrap(); + + expected.assert_eq(&prettified_response); } #[test] @@ -123,12 +365,6294 @@ mod tests { "prismaSchema": schema, }); - let expected = expect![[ - r#"{"datamodel":{"enums":[],"models":[{"name":"A","dbName":null,"fields":[{"name":"id","kind":"scalar","isList":false,"isRequired":true,"isUnique":false,"isId":true,"isReadOnly":false,"hasDefaultValue":false,"type":"String","isGenerated":false,"isUpdatedAt":false},{"name":"b_id","kind":"scalar","isList":false,"isRequired":true,"isUnique":true,"isId":false,"isReadOnly":true,"hasDefaultValue":false,"type":"String","isGenerated":false,"isUpdatedAt":false},{"name":"b","kind":"object","isList":false,"isRequired":true,"isUnique":false,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"B","relationName":"AToB","relationFromFields":["b_id"],"relationToFields":["id"],"isGenerated":false,"isUpdatedAt":false}],"primaryKey":null,"uniqueFields":[],"uniqueIndexes":[],"isGenerated":false},{"name":"B","dbName":null,"fields":[{"name":"id","kind":"scalar","isList":false,"isRequired":true,"isUnique":false,"isId":true,"isReadOnly":false,"hasDefaultValue":false,"type":"String","isGenerated":false,"isUpdatedAt":false},{"name":"a","kind":"object","isList":false,"isRequired":false,"isUnique":false,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"A","relationName":"AToB","relationFromFields":[],"relationToFields":[],"isGenerated":false,"isUpdatedAt":false}],"primaryKey":null,"uniqueFields":[],"uniqueIndexes":[],"isGenerated":false}],"types":[]},"schema":{"inputObjectTypes":{"prisma":[{"name":"AWhereInput","meta":{"source":"A"},"constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"AND","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"OR","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"NOT","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"StringFilter","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"String","location":"scalar","isList":false}]},{"name":"b_id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"StringFilter","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"String","location":"scalar","isList":false}]},{"name":"b","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BRelationFilter","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"AOrderByWithRelationInput","constraints":{"maxNumFields":1,"minNumFields":0},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]},{"name":"b_id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]},{"name":"b","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"AWhereUniqueInput","meta":{"source":"A"},"constraints":{"maxNumFields":null,"minNumFields":1,"fields":["id","b_id"]},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"b_id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"AND","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"OR","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"NOT","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"b","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BRelationFilter","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"AOrderByWithAggregationInput","constraints":{"maxNumFields":1,"minNumFields":0},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]},{"name":"b_id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]},{"name":"_count","isRequired":false,"isNullable":false,"inputTypes":[{"type":"ACountOrderByAggregateInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"_max","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AMaxOrderByAggregateInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"_min","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AMinOrderByAggregateInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"AScalarWhereWithAggregatesInput","meta":{"source":"A"},"constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"AND","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AScalarWhereWithAggregatesInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AScalarWhereWithAggregatesInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"OR","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AScalarWhereWithAggregatesInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"NOT","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AScalarWhereWithAggregatesInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AScalarWhereWithAggregatesInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"StringWithAggregatesFilter","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"String","location":"scalar","isList":false}]},{"name":"b_id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"StringWithAggregatesFilter","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"String","location":"scalar","isList":false}]}]},{"name":"BWhereInput","meta":{"source":"B"},"constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"AND","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"OR","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"NOT","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"StringFilter","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"String","location":"scalar","isList":false}]},{"name":"a","isRequired":false,"isNullable":true,"inputTypes":[{"type":"ANullableRelationFilter","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"Null","location":"scalar","isList":false}]}]},{"name":"BOrderByWithRelationInput","constraints":{"maxNumFields":1,"minNumFields":0},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]},{"name":"a","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"BWhereUniqueInput","meta":{"source":"B"},"constraints":{"maxNumFields":null,"minNumFields":1,"fields":["id"]},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"AND","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"OR","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"NOT","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"a","isRequired":false,"isNullable":true,"inputTypes":[{"type":"ANullableRelationFilter","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"Null","location":"scalar","isList":false}]}]},{"name":"BOrderByWithAggregationInput","constraints":{"maxNumFields":1,"minNumFields":0},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]},{"name":"_count","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BCountOrderByAggregateInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"_max","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BMaxOrderByAggregateInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"_min","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BMinOrderByAggregateInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"BScalarWhereWithAggregatesInput","meta":{"source":"B"},"constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"AND","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BScalarWhereWithAggregatesInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BScalarWhereWithAggregatesInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"OR","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BScalarWhereWithAggregatesInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"NOT","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BScalarWhereWithAggregatesInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BScalarWhereWithAggregatesInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"StringWithAggregatesFilter","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"String","location":"scalar","isList":false}]}]},{"name":"ACreateInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"b","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BCreateNestedOneWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"AUncheckedCreateInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"b_id","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]}]},{"name":"AUpdateInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldUpdateOperationsInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"b","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BUpdateOneRequiredWithoutANestedInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"AUncheckedUpdateInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldUpdateOperationsInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"b_id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldUpdateOperationsInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"ACreateManyInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"b_id","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]}]},{"name":"AUpdateManyMutationInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldUpdateOperationsInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"AUncheckedUpdateManyInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldUpdateOperationsInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"b_id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldUpdateOperationsInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"BCreateInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"a","isRequired":false,"isNullable":false,"inputTypes":[{"type":"ACreateNestedOneWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"BUncheckedCreateInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"a","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AUncheckedCreateNestedOneWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"BUpdateInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldUpdateOperationsInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"a","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AUpdateOneWithoutBNestedInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"BUncheckedUpdateInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldUpdateOperationsInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"a","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AUncheckedUpdateOneWithoutBNestedInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"BCreateManyInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]}]},{"name":"BUpdateManyMutationInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldUpdateOperationsInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"BUncheckedUpdateManyInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldUpdateOperationsInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"StringFilter","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"equals","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"in","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":true},{"type":"ListStringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"notIn","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":true},{"type":"ListStringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"lt","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"lte","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"gt","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"gte","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"contains","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"startsWith","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"endsWith","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"mode","isRequired":false,"isNullable":false,"inputTypes":[{"type":"QueryMode","namespace":"prisma","location":"enumTypes","isList":false}]},{"name":"not","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"NestedStringFilter","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"BRelationFilter","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"is","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"isNot","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"ACountOrderByAggregateInput","constraints":{"maxNumFields":1,"minNumFields":1},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]},{"name":"b_id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]}]},{"name":"AMaxOrderByAggregateInput","constraints":{"maxNumFields":1,"minNumFields":1},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]},{"name":"b_id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]}]},{"name":"AMinOrderByAggregateInput","constraints":{"maxNumFields":1,"minNumFields":1},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]},{"name":"b_id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]}]},{"name":"StringWithAggregatesFilter","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"equals","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"in","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":true},{"type":"ListStringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"notIn","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":true},{"type":"ListStringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"lt","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"lte","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"gt","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"gte","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"contains","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"startsWith","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"endsWith","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"mode","isRequired":false,"isNullable":false,"inputTypes":[{"type":"QueryMode","namespace":"prisma","location":"enumTypes","isList":false}]},{"name":"not","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"NestedStringWithAggregatesFilter","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"_count","isRequired":false,"isNullable":false,"inputTypes":[{"type":"NestedIntFilter","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"_min","isRequired":false,"isNullable":false,"inputTypes":[{"type":"NestedStringFilter","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"_max","isRequired":false,"isNullable":false,"inputTypes":[{"type":"NestedStringFilter","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"ANullableRelationFilter","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"is","isRequired":false,"isNullable":true,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"Null","location":"scalar","isList":false}]},{"name":"isNot","isRequired":false,"isNullable":true,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"Null","location":"scalar","isList":false}]}]},{"name":"BCountOrderByAggregateInput","constraints":{"maxNumFields":1,"minNumFields":1},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]}]},{"name":"BMaxOrderByAggregateInput","constraints":{"maxNumFields":1,"minNumFields":1},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]}]},{"name":"BMinOrderByAggregateInput","constraints":{"maxNumFields":1,"minNumFields":1},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"SortOrder","namespace":"prisma","location":"enumTypes","isList":false}]}]},{"name":"BCreateNestedOneWithoutAInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"create","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BCreateWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BUncheckedCreateWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"connectOrCreate","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BCreateOrConnectWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"connect","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"StringFieldUpdateOperationsInput","constraints":{"maxNumFields":1,"minNumFields":1},"fields":[{"name":"set","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]}]},{"name":"BUpdateOneRequiredWithoutANestedInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"create","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BCreateWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BUncheckedCreateWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"connectOrCreate","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BCreateOrConnectWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"upsert","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BUpsertWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"connect","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"update","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BUpdateToOneWithWhereWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BUpdateWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BUncheckedUpdateWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"ACreateNestedOneWithoutBInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"create","isRequired":false,"isNullable":false,"inputTypes":[{"type":"ACreateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedCreateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"connectOrCreate","isRequired":false,"isNullable":false,"inputTypes":[{"type":"ACreateOrConnectWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"connect","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"AUncheckedCreateNestedOneWithoutBInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"create","isRequired":false,"isNullable":false,"inputTypes":[{"type":"ACreateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedCreateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"connectOrCreate","isRequired":false,"isNullable":false,"inputTypes":[{"type":"ACreateOrConnectWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"connect","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"AUpdateOneWithoutBNestedInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"create","isRequired":false,"isNullable":false,"inputTypes":[{"type":"ACreateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedCreateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"connectOrCreate","isRequired":false,"isNullable":false,"inputTypes":[{"type":"ACreateOrConnectWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"upsert","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AUpsertWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"disconnect","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Boolean","location":"scalar","isList":false},{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"delete","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Boolean","location":"scalar","isList":false},{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"connect","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"update","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AUpdateToOneWithWhereWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUpdateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedUpdateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"AUncheckedUpdateOneWithoutBNestedInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"create","isRequired":false,"isNullable":false,"inputTypes":[{"type":"ACreateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedCreateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"connectOrCreate","isRequired":false,"isNullable":false,"inputTypes":[{"type":"ACreateOrConnectWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"upsert","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AUpsertWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"disconnect","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Boolean","location":"scalar","isList":false},{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"delete","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Boolean","location":"scalar","isList":false},{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"connect","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"update","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AUpdateToOneWithWhereWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUpdateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedUpdateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"NestedStringFilter","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"equals","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"in","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":true},{"type":"ListStringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"notIn","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":true},{"type":"ListStringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"lt","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"lte","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"gt","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"gte","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"contains","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"startsWith","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"endsWith","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"not","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"NestedStringFilter","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"NestedStringWithAggregatesFilter","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"equals","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"in","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":true},{"type":"ListStringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"notIn","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":true},{"type":"ListStringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"lt","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"lte","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"gt","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"gte","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"contains","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"startsWith","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"endsWith","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"not","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"NestedStringWithAggregatesFilter","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"_count","isRequired":false,"isNullable":false,"inputTypes":[{"type":"NestedIntFilter","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"_min","isRequired":false,"isNullable":false,"inputTypes":[{"type":"NestedStringFilter","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"_max","isRequired":false,"isNullable":false,"inputTypes":[{"type":"NestedStringFilter","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"NestedIntFilter","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"equals","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false},{"type":"IntFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"in","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":true},{"type":"ListIntFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"notIn","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":true},{"type":"ListIntFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"lt","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false},{"type":"IntFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"lte","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false},{"type":"IntFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"gt","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false},{"type":"IntFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"gte","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false},{"type":"IntFieldRefInput","namespace":"prisma","location":"fieldRefTypes","isList":false}]},{"name":"not","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false},{"type":"NestedIntFilter","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"BCreateWithoutAInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]}]},{"name":"BUncheckedCreateWithoutAInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]}]},{"name":"BCreateOrConnectWithoutAInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"where","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"create","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BCreateWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BUncheckedCreateWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"BUpsertWithoutAInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"update","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BUpdateWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BUncheckedUpdateWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"create","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BCreateWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BUncheckedCreateWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"BUpdateToOneWithWhereWithoutAInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"data","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BUpdateWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BUncheckedUpdateWithoutAInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"BUpdateWithoutAInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldUpdateOperationsInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"BUncheckedUpdateWithoutAInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldUpdateOperationsInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"ACreateWithoutBInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]}]},{"name":"AUncheckedCreateWithoutBInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]}]},{"name":"ACreateOrConnectWithoutBInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"where","isRequired":true,"isNullable":false,"inputTypes":[{"type":"AWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"create","isRequired":true,"isNullable":false,"inputTypes":[{"type":"ACreateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedCreateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"AUpsertWithoutBInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"update","isRequired":true,"isNullable":false,"inputTypes":[{"type":"AUpdateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedUpdateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"create","isRequired":true,"isNullable":false,"inputTypes":[{"type":"ACreateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedCreateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"AUpdateToOneWithWhereWithoutBInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"data","isRequired":true,"isNullable":false,"inputTypes":[{"type":"AUpdateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedUpdateWithoutBInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"AUpdateWithoutBInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldUpdateOperationsInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]},{"name":"AUncheckedUpdateWithoutBInput","constraints":{"maxNumFields":null,"minNumFields":null},"fields":[{"name":"id","isRequired":false,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false},{"type":"StringFieldUpdateOperationsInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}]}]},"outputObjectTypes":{"prisma":[{"name":"Query","fields":[{"name":"findFirstA","args":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"orderBy","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":true},{"type":"AOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"cursor","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"take","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"skip","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"distinct","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":false},{"type":"AScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":true}]}],"isNullable":true,"outputType":{"type":"A","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"findFirstAOrThrow","args":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"orderBy","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":true},{"type":"AOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"cursor","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"take","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"skip","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"distinct","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":false},{"type":"AScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":true}]}],"isNullable":true,"outputType":{"type":"A","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"findManyA","args":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"orderBy","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":true},{"type":"AOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"cursor","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"take","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"skip","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"distinct","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":false},{"type":"AScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":true}]}],"isNullable":false,"outputType":{"type":"A","namespace":"model","location":"outputObjectTypes","isList":true}},{"name":"aggregateA","args":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"orderBy","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":true},{"type":"AOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"cursor","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"take","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"skip","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]}],"isNullable":false,"outputType":{"type":"AggregateA","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"groupByA","args":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"orderBy","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AOrderByWithAggregationInput","namespace":"prisma","location":"inputObjectTypes","isList":true},{"type":"AOrderByWithAggregationInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"by","isRequired":true,"isNullable":false,"inputTypes":[{"type":"AScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":true},{"type":"AScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":false}]},{"name":"having","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AScalarWhereWithAggregatesInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"take","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"skip","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]}],"isNullable":false,"outputType":{"type":"AGroupByOutputType","namespace":"prisma","location":"outputObjectTypes","isList":true}},{"name":"findUniqueA","args":[{"name":"where","isRequired":true,"isNullable":false,"inputTypes":[{"type":"AWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":true,"outputType":{"type":"A","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"findUniqueAOrThrow","args":[{"name":"where","isRequired":true,"isNullable":false,"inputTypes":[{"type":"AWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":true,"outputType":{"type":"A","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"findFirstB","args":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"orderBy","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":true},{"type":"BOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"cursor","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"take","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"skip","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"distinct","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":false},{"type":"BScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":true}]}],"isNullable":true,"outputType":{"type":"B","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"findFirstBOrThrow","args":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"orderBy","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":true},{"type":"BOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"cursor","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"take","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"skip","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"distinct","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":false},{"type":"BScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":true}]}],"isNullable":true,"outputType":{"type":"B","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"findManyB","args":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"orderBy","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":true},{"type":"BOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"cursor","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"take","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"skip","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"distinct","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":false},{"type":"BScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":true}]}],"isNullable":false,"outputType":{"type":"B","namespace":"model","location":"outputObjectTypes","isList":true}},{"name":"aggregateB","args":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"orderBy","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":true},{"type":"BOrderByWithRelationInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"cursor","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"take","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"skip","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]}],"isNullable":false,"outputType":{"type":"AggregateB","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"groupByB","args":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"orderBy","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BOrderByWithAggregationInput","namespace":"prisma","location":"inputObjectTypes","isList":true},{"type":"BOrderByWithAggregationInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"by","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":true},{"type":"BScalarFieldEnum","namespace":"prisma","location":"enumTypes","isList":false}]},{"name":"having","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BScalarWhereWithAggregatesInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"take","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]},{"name":"skip","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Int","location":"scalar","isList":false}]}],"isNullable":false,"outputType":{"type":"BGroupByOutputType","namespace":"prisma","location":"outputObjectTypes","isList":true}},{"name":"findUniqueB","args":[{"name":"where","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":true,"outputType":{"type":"B","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"findUniqueBOrThrow","args":[{"name":"where","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":true,"outputType":{"type":"B","namespace":"model","location":"outputObjectTypes","isList":false}}]},{"name":"Mutation","fields":[{"name":"createOneA","args":[{"name":"data","isRequired":true,"isNullable":false,"inputTypes":[{"type":"ACreateInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedCreateInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":false,"outputType":{"type":"A","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"upsertOneA","args":[{"name":"where","isRequired":true,"isNullable":false,"inputTypes":[{"type":"AWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"create","isRequired":true,"isNullable":false,"inputTypes":[{"type":"ACreateInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedCreateInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"update","isRequired":true,"isNullable":false,"inputTypes":[{"type":"AUpdateInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedUpdateInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":false,"outputType":{"type":"A","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"createManyA","args":[{"name":"data","isRequired":true,"isNullable":false,"inputTypes":[{"type":"ACreateManyInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"ACreateManyInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"skipDuplicates","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Boolean","location":"scalar","isList":false}]}],"isNullable":false,"outputType":{"type":"AffectedRowsOutput","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"createManyAAndReturn","args":[{"name":"data","isRequired":true,"isNullable":false,"inputTypes":[{"type":"ACreateManyInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"ACreateManyInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"skipDuplicates","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Boolean","location":"scalar","isList":false}]}],"isNullable":false,"outputType":{"type":"CreateManyAAndReturnOutputType","namespace":"model","location":"outputObjectTypes","isList":true}},{"name":"deleteOneA","args":[{"name":"where","isRequired":true,"isNullable":false,"inputTypes":[{"type":"AWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":true,"outputType":{"type":"A","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"updateOneA","args":[{"name":"data","isRequired":true,"isNullable":false,"inputTypes":[{"type":"AUpdateInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedUpdateInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"where","isRequired":true,"isNullable":false,"inputTypes":[{"type":"AWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":true,"outputType":{"type":"A","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"updateManyA","args":[{"name":"data","isRequired":true,"isNullable":false,"inputTypes":[{"type":"AUpdateManyMutationInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"AUncheckedUpdateManyInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":false,"outputType":{"type":"AffectedRowsOutput","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"deleteManyA","args":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":false,"outputType":{"type":"AffectedRowsOutput","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"createOneB","args":[{"name":"data","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BCreateInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BUncheckedCreateInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":false,"outputType":{"type":"B","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"upsertOneB","args":[{"name":"where","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"create","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BCreateInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BUncheckedCreateInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"update","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BUpdateInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BUncheckedUpdateInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":false,"outputType":{"type":"B","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"createManyB","args":[{"name":"data","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BCreateManyInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BCreateManyInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"skipDuplicates","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Boolean","location":"scalar","isList":false}]}],"isNullable":false,"outputType":{"type":"AffectedRowsOutput","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"createManyBAndReturn","args":[{"name":"data","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BCreateManyInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BCreateManyInput","namespace":"prisma","location":"inputObjectTypes","isList":true}]},{"name":"skipDuplicates","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Boolean","location":"scalar","isList":false}]}],"isNullable":false,"outputType":{"type":"CreateManyBAndReturnOutputType","namespace":"model","location":"outputObjectTypes","isList":true}},{"name":"deleteOneB","args":[{"name":"where","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":true,"outputType":{"type":"B","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"updateOneB","args":[{"name":"data","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BUpdateInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BUncheckedUpdateInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"where","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BWhereUniqueInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":true,"outputType":{"type":"B","namespace":"model","location":"outputObjectTypes","isList":false}},{"name":"updateManyB","args":[{"name":"data","isRequired":true,"isNullable":false,"inputTypes":[{"type":"BUpdateManyMutationInput","namespace":"prisma","location":"inputObjectTypes","isList":false},{"type":"BUncheckedUpdateManyInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]},{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":false,"outputType":{"type":"AffectedRowsOutput","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"deleteManyB","args":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"BWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":false,"outputType":{"type":"AffectedRowsOutput","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"executeRaw","args":[{"name":"query","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"parameters","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Json","location":"scalar","isList":false}]}],"isNullable":false,"outputType":{"type":"Json","location":"scalar","isList":false}},{"name":"queryRaw","args":[{"name":"query","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"parameters","isRequired":false,"isNullable":false,"inputTypes":[{"type":"Json","location":"scalar","isList":false}]}],"isNullable":false,"outputType":{"type":"Json","location":"scalar","isList":false}}]},{"name":"AggregateA","fields":[{"name":"_count","args":[],"isNullable":true,"outputType":{"type":"ACountAggregateOutputType","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"_min","args":[],"isNullable":true,"outputType":{"type":"AMinAggregateOutputType","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"_max","args":[],"isNullable":true,"outputType":{"type":"AMaxAggregateOutputType","namespace":"prisma","location":"outputObjectTypes","isList":false}}]},{"name":"AGroupByOutputType","fields":[{"name":"id","args":[],"isNullable":false,"outputType":{"type":"String","location":"scalar","isList":false}},{"name":"b_id","args":[],"isNullable":false,"outputType":{"type":"String","location":"scalar","isList":false}},{"name":"_count","args":[],"isNullable":true,"outputType":{"type":"ACountAggregateOutputType","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"_min","args":[],"isNullable":true,"outputType":{"type":"AMinAggregateOutputType","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"_max","args":[],"isNullable":true,"outputType":{"type":"AMaxAggregateOutputType","namespace":"prisma","location":"outputObjectTypes","isList":false}}]},{"name":"AggregateB","fields":[{"name":"_count","args":[],"isNullable":true,"outputType":{"type":"BCountAggregateOutputType","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"_min","args":[],"isNullable":true,"outputType":{"type":"BMinAggregateOutputType","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"_max","args":[],"isNullable":true,"outputType":{"type":"BMaxAggregateOutputType","namespace":"prisma","location":"outputObjectTypes","isList":false}}]},{"name":"BGroupByOutputType","fields":[{"name":"id","args":[],"isNullable":false,"outputType":{"type":"String","location":"scalar","isList":false}},{"name":"_count","args":[],"isNullable":true,"outputType":{"type":"BCountAggregateOutputType","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"_min","args":[],"isNullable":true,"outputType":{"type":"BMinAggregateOutputType","namespace":"prisma","location":"outputObjectTypes","isList":false}},{"name":"_max","args":[],"isNullable":true,"outputType":{"type":"BMaxAggregateOutputType","namespace":"prisma","location":"outputObjectTypes","isList":false}}]},{"name":"AffectedRowsOutput","fields":[{"name":"count","args":[],"isNullable":false,"outputType":{"type":"Int","location":"scalar","isList":false}}]},{"name":"ACountAggregateOutputType","fields":[{"name":"id","args":[],"isNullable":false,"outputType":{"type":"Int","location":"scalar","isList":false}},{"name":"b_id","args":[],"isNullable":false,"outputType":{"type":"Int","location":"scalar","isList":false}},{"name":"_all","args":[],"isNullable":false,"outputType":{"type":"Int","location":"scalar","isList":false}}]},{"name":"AMinAggregateOutputType","fields":[{"name":"id","args":[],"isNullable":true,"outputType":{"type":"String","location":"scalar","isList":false}},{"name":"b_id","args":[],"isNullable":true,"outputType":{"type":"String","location":"scalar","isList":false}}]},{"name":"AMaxAggregateOutputType","fields":[{"name":"id","args":[],"isNullable":true,"outputType":{"type":"String","location":"scalar","isList":false}},{"name":"b_id","args":[],"isNullable":true,"outputType":{"type":"String","location":"scalar","isList":false}}]},{"name":"BCountAggregateOutputType","fields":[{"name":"id","args":[],"isNullable":false,"outputType":{"type":"Int","location":"scalar","isList":false}},{"name":"_all","args":[],"isNullable":false,"outputType":{"type":"Int","location":"scalar","isList":false}}]},{"name":"BMinAggregateOutputType","fields":[{"name":"id","args":[],"isNullable":true,"outputType":{"type":"String","location":"scalar","isList":false}}]},{"name":"BMaxAggregateOutputType","fields":[{"name":"id","args":[],"isNullable":true,"outputType":{"type":"String","location":"scalar","isList":false}}]}],"model":[{"name":"A","fields":[{"name":"id","args":[],"isNullable":false,"outputType":{"type":"String","location":"scalar","isList":false}},{"name":"b_id","args":[],"isNullable":false,"outputType":{"type":"String","location":"scalar","isList":false}},{"name":"b","args":[],"isNullable":false,"outputType":{"type":"B","namespace":"model","location":"outputObjectTypes","isList":false}}]},{"name":"B","fields":[{"name":"id","args":[],"isNullable":false,"outputType":{"type":"String","location":"scalar","isList":false}},{"name":"a","args":[{"name":"where","isRequired":false,"isNullable":false,"inputTypes":[{"type":"AWhereInput","namespace":"prisma","location":"inputObjectTypes","isList":false}]}],"isNullable":true,"outputType":{"type":"A","namespace":"model","location":"outputObjectTypes","isList":false}}]},{"name":"CreateManyAAndReturnOutputType","fields":[{"name":"id","args":[],"isNullable":false,"outputType":{"type":"String","location":"scalar","isList":false}},{"name":"b_id","args":[],"isNullable":false,"outputType":{"type":"String","location":"scalar","isList":false}},{"name":"b","args":[],"isNullable":false,"outputType":{"type":"B","namespace":"model","location":"outputObjectTypes","isList":false}}]},{"name":"CreateManyBAndReturnOutputType","fields":[{"name":"id","args":[],"isNullable":false,"outputType":{"type":"String","location":"scalar","isList":false}}]}]},"enumTypes":{"prisma":[{"name":"TransactionIsolationLevel","values":["ReadUncommitted","ReadCommitted","RepeatableRead","Serializable"]},{"name":"AScalarFieldEnum","values":["id","b_id"]},{"name":"BScalarFieldEnum","values":["id"]},{"name":"SortOrder","values":["asc","desc"]},{"name":"QueryMode","values":["default","insensitive"]}]},"fieldRefTypes":{"prisma":[{"name":"StringFieldRefInput","allowTypes":[{"type":"String","location":"scalar","isList":false}],"fields":[{"name":"_ref","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"_container","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]}]},{"name":"ListStringFieldRefInput","allowTypes":[{"type":"String","location":"scalar","isList":true}],"fields":[{"name":"_ref","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"_container","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]}]},{"name":"IntFieldRefInput","allowTypes":[{"type":"Int","location":"scalar","isList":false}],"fields":[{"name":"_ref","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"_container","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]}]},{"name":"ListIntFieldRefInput","allowTypes":[{"type":"Int","location":"scalar","isList":true}],"fields":[{"name":"_ref","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]},{"name":"_container","isRequired":true,"isNullable":false,"inputTypes":[{"type":"String","location":"scalar","isList":false}]}]}]}},"mappings":{"modelOperations":[{"model":"A","aggregate":"aggregateA","createMany":"createManyA","createManyAndReturn":"createManyAAndReturn","createOne":"createOneA","deleteMany":"deleteManyA","deleteOne":"deleteOneA","findFirst":"findFirstA","findFirstOrThrow":"findFirstAOrThrow","findMany":"findManyA","findUnique":"findUniqueA","findUniqueOrThrow":"findUniqueAOrThrow","groupBy":"groupByA","updateMany":"updateManyA","updateOne":"updateOneA","upsertOne":"upsertOneA"},{"model":"B","aggregate":"aggregateB","createMany":"createManyB","createManyAndReturn":"createManyBAndReturn","createOne":"createOneB","deleteMany":"deleteManyB","deleteOne":"deleteOneB","findFirst":"findFirstB","findFirstOrThrow":"findFirstBOrThrow","findMany":"findManyB","findUnique":"findUniqueB","findUniqueOrThrow":"findUniqueBOrThrow","groupBy":"groupByB","updateMany":"updateManyB","updateOne":"updateOneB","upsertOne":"upsertOneB"}],"otherOperations":{"read":[],"write":["executeRaw","queryRaw"]}}}"# - ]]; + let expected = expect![[r#" + { + "datamodel": { + "enums": [], + "models": [ + { + "name": "A", + "dbName": null, + "fields": [ + { + "name": "id", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": true, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "b_id", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": true, + "isId": false, + "isReadOnly": true, + "hasDefaultValue": false, + "type": "String", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "b", + "kind": "object", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "B", + "relationName": "AToB", + "relationFromFields": [ + "b_id" + ], + "relationToFields": [ + "id" + ], + "isGenerated": false, + "isUpdatedAt": false + } + ], + "primaryKey": null, + "uniqueFields": [], + "uniqueIndexes": [], + "isGenerated": false + }, + { + "name": "B", + "dbName": null, + "fields": [ + { + "name": "id", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": true, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "a", + "kind": "object", + "isList": false, + "isRequired": false, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "A", + "relationName": "AToB", + "relationFromFields": [], + "relationToFields": [], + "isGenerated": false, + "isUpdatedAt": false + } + ], + "primaryKey": null, + "uniqueFields": [], + "uniqueIndexes": [], + "isGenerated": false + } + ], + "types": [], + "indexes": [ + { + "model": "A", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "A", + "type": "unique", + "isDefinedOnField": true, + "fields": [ + { + "name": "b_id" + } + ] + }, + { + "model": "B", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + } + ] + }, + "schema": { + "inputObjectTypes": { + "prisma": [ + { + "name": "AWhereInput", + "meta": { + "source": "A" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "AND", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "OR", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "NOT", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "StringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "b_id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "StringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "b", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BRelationFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AOrderByWithRelationInput", + "constraints": { + "maxNumFields": 1, + "minNumFields": 0 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "b_id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "b", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AWhereUniqueInput", + "meta": { + "source": "A" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": 1, + "fields": [ + "id", + "b_id" + ] + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "b_id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "AND", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "OR", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "NOT", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "b", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BRelationFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AOrderByWithAggregationInput", + "constraints": { + "maxNumFields": 1, + "minNumFields": 0 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "b_id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "ACountOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AMaxOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AMinOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AScalarWhereWithAggregatesInput", + "meta": { + "source": "A" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "AND", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "OR", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "NOT", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "StringWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "b_id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "StringWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "BWhereInput", + "meta": { + "source": "B" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "AND", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "OR", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "NOT", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "StringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "a", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "ANullableRelationFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "BOrderByWithRelationInput", + "constraints": { + "maxNumFields": 1, + "minNumFields": 0 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "a", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BWhereUniqueInput", + "meta": { + "source": "B" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": 1, + "fields": [ + "id" + ] + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "AND", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "OR", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "NOT", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "a", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "ANullableRelationFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "BOrderByWithAggregationInput", + "constraints": { + "maxNumFields": 1, + "minNumFields": 0 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BCountOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BMaxOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BMinOrderByAggregateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BScalarWhereWithAggregatesInput", + "meta": { + "source": "B" + }, + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "AND", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "OR", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "NOT", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "StringWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "ACreateInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "b", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BCreateNestedOneWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AUncheckedCreateInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "b_id", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "AUpdateInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "b", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BUpdateOneRequiredWithoutANestedInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AUncheckedUpdateInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "b_id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "ACreateManyInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "b_id", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "AUpdateManyMutationInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AUncheckedUpdateManyInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "b_id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BCreateInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "a", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateNestedOneWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BUncheckedCreateInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "a", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AUncheckedCreateNestedOneWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BUpdateInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "a", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AUpdateOneWithoutBNestedInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BUncheckedUpdateInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "a", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AUncheckedUpdateOneWithoutBNestedInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BCreateManyInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "BUpdateManyMutationInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BUncheckedUpdateManyInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "StringFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "contains", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "startsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "endsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "mode", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "QueryMode", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NestedStringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BRelationFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "is", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "isNot", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "ACountOrderByAggregateInput", + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "b_id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AMaxOrderByAggregateInput", + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "b_id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AMinOrderByAggregateInput", + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "b_id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "StringWithAggregatesFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "contains", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "startsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "endsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "mode", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "QueryMode", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NestedStringWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedStringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedStringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "ANullableRelationFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "is", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "isNot", + "isRequired": false, + "isNullable": true, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "Null", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "BCountOrderByAggregateInput", + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BMaxOrderByAggregateInput", + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BMinOrderByAggregateInput", + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "SortOrder", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BCreateNestedOneWithoutAInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "create", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BCreateWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BUncheckedCreateWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connectOrCreate", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BCreateOrConnectWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "StringFieldUpdateOperationsInput", + "constraints": { + "maxNumFields": 1, + "minNumFields": 1 + }, + "fields": [ + { + "name": "set", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "BUpdateOneRequiredWithoutANestedInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "create", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BCreateWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BUncheckedCreateWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connectOrCreate", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BCreateOrConnectWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "upsert", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BUpsertWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "update", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BUpdateToOneWithWhereWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BUpdateWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BUncheckedUpdateWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "ACreateNestedOneWithoutBInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "create", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedCreateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connectOrCreate", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateOrConnectWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AUncheckedCreateNestedOneWithoutBInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "create", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedCreateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connectOrCreate", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateOrConnectWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AUpdateOneWithoutBNestedInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "create", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedCreateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connectOrCreate", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateOrConnectWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "upsert", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AUpsertWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "disconnect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "delete", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "update", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AUpdateToOneWithWhereWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUpdateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedUpdateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AUncheckedUpdateOneWithoutBNestedInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "create", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedCreateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connectOrCreate", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateOrConnectWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "upsert", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AUpsertWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "disconnect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "delete", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + }, + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "connect", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "update", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AUpdateToOneWithWhereWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUpdateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedUpdateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedStringFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "contains", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "startsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "endsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NestedStringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedStringWithAggregatesFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + }, + { + "type": "ListStringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "contains", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "startsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "endsWith", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "NestedStringWithAggregatesFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_count", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_min", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedStringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "_max", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "NestedStringFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "NestedIntFilter", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "equals", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "in", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "notIn", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + }, + { + "type": "ListIntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "lte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gt", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "gte", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "IntFieldRefInput", + "namespace": "prisma", + "location": "fieldRefTypes", + "isList": false + } + ] + }, + { + "name": "not", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + }, + { + "type": "NestedIntFilter", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BCreateWithoutAInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "BUncheckedCreateWithoutAInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "BCreateOrConnectWithoutAInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "create", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BCreateWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BUncheckedCreateWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BUpsertWithoutAInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "update", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BUpdateWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BUncheckedUpdateWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "create", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BCreateWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BUncheckedCreateWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BUpdateToOneWithWhereWithoutAInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BUpdateWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BUncheckedUpdateWithoutAInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BUpdateWithoutAInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "BUncheckedUpdateWithoutAInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "ACreateWithoutBInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "AUncheckedCreateWithoutBInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "ACreateOrConnectWithoutBInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "create", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedCreateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AUpsertWithoutBInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "update", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "AUpdateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedUpdateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "create", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedCreateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AUpdateToOneWithWhereWithoutBInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "AUpdateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedUpdateWithoutBInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AUpdateWithoutBInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + }, + { + "name": "AUncheckedUpdateWithoutBInput", + "constraints": { + "maxNumFields": null, + "minNumFields": null + }, + "fields": [ + { + "name": "id", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + }, + { + "type": "StringFieldUpdateOperationsInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ] + } + ] + }, + "outputObjectTypes": { + "prisma": [ + { + "name": "Query", + "fields": [ + { + "name": "findFirstA", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "AOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "distinct", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "AScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "A", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "findFirstAOrThrow", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "AOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "distinct", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "AScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "A", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "findManyA", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "AOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "distinct", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "AScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "A", + "namespace": "model", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "aggregateA", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "AOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AggregateA", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "groupByA", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AOrderByWithAggregationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "AOrderByWithAggregationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "by", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "AScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + }, + { + "type": "AScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "having", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AGroupByOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "findUniqueA", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "A", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "findUniqueAOrThrow", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "A", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "findFirstB", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "BOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "distinct", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "BScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "B", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "findFirstBOrThrow", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "BOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "distinct", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "BScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "B", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "findManyB", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "BOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "distinct", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + }, + { + "type": "BScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "B", + "namespace": "model", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "aggregateB", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "BOrderByWithRelationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "cursor", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AggregateB", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "groupByB", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "orderBy", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BOrderByWithAggregationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + }, + { + "type": "BOrderByWithAggregationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "by", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": true + }, + { + "type": "BScalarFieldEnum", + "namespace": "prisma", + "location": "enumTypes", + "isList": false + } + ] + }, + { + "name": "having", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BScalarWhereWithAggregatesInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "take", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "skip", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "BGroupByOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "findUniqueB", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "B", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "findUniqueBOrThrow", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "B", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "Mutation", + "fields": [ + { + "name": "createOneA", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedCreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "A", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "upsertOneA", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "create", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedCreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "update", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "AUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "A", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "createManyA", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "ACreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "skipDuplicates", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AffectedRowsOutput", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "createManyAAndReturn", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "ACreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "ACreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "skipDuplicates", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "CreateManyAAndReturnOutputType", + "namespace": "model", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "deleteOneA", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "A", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "updateOneA", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "AUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "A", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "updateManyA", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "AUpdateManyMutationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "AUncheckedUpdateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AffectedRowsOutput", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "deleteManyA", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AffectedRowsOutput", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "createOneB", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BCreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BUncheckedCreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "B", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "upsertOneB", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "create", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BCreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BUncheckedCreateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "update", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BUncheckedUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "B", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "createManyB", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BCreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BCreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "skipDuplicates", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AffectedRowsOutput", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "createManyBAndReturn", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BCreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BCreateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": true + } + ] + }, + { + "name": "skipDuplicates", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Boolean", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "CreateManyBAndReturnOutputType", + "namespace": "model", + "location": "outputObjectTypes", + "isList": true + } + }, + { + "name": "deleteOneB", + "args": [ + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "B", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "updateOneB", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BUncheckedUpdateInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "where", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereUniqueInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "B", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "updateManyB", + "args": [ + { + "name": "data", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "BUpdateManyMutationInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + }, + { + "type": "BUncheckedUpdateManyInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + }, + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AffectedRowsOutput", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "deleteManyB", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "BWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "AffectedRowsOutput", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "executeRaw", + "args": [ + { + "name": "query", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "parameters", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Json", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "Json", + "location": "scalar", + "isList": false + } + }, + { + "name": "queryRaw", + "args": [ + { + "name": "query", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "parameters", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "Json", + "location": "scalar", + "isList": false + } + ] + } + ], + "isNullable": false, + "outputType": { + "type": "Json", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "AggregateA", + "fields": [ + { + "name": "_count", + "args": [], + "isNullable": true, + "outputType": { + "type": "ACountAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_min", + "args": [], + "isNullable": true, + "outputType": { + "type": "AMinAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_max", + "args": [], + "isNullable": true, + "outputType": { + "type": "AMaxAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "AGroupByOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "b_id", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "_count", + "args": [], + "isNullable": true, + "outputType": { + "type": "ACountAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_min", + "args": [], + "isNullable": true, + "outputType": { + "type": "AMinAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_max", + "args": [], + "isNullable": true, + "outputType": { + "type": "AMaxAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "AggregateB", + "fields": [ + { + "name": "_count", + "args": [], + "isNullable": true, + "outputType": { + "type": "BCountAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_min", + "args": [], + "isNullable": true, + "outputType": { + "type": "BMinAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_max", + "args": [], + "isNullable": true, + "outputType": { + "type": "BMaxAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "BGroupByOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "_count", + "args": [], + "isNullable": true, + "outputType": { + "type": "BCountAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_min", + "args": [], + "isNullable": true, + "outputType": { + "type": "BMinAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + }, + { + "name": "_max", + "args": [], + "isNullable": true, + "outputType": { + "type": "BMaxAggregateOutputType", + "namespace": "prisma", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "AffectedRowsOutput", + "fields": [ + { + "name": "count", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "ACountAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "b_id", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "_all", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "AMinAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "b_id", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "AMaxAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "b_id", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "BCountAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + }, + { + "name": "_all", + "args": [], + "isNullable": false, + "outputType": { + "type": "Int", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "BMinAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + } + ] + }, + { + "name": "BMaxAggregateOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": true, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + } + ] + } + ], + "model": [ + { + "name": "A", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "b_id", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "b", + "args": [], + "isNullable": false, + "outputType": { + "type": "B", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "B", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "a", + "args": [ + { + "name": "where", + "isRequired": false, + "isNullable": false, + "inputTypes": [ + { + "type": "AWhereInput", + "namespace": "prisma", + "location": "inputObjectTypes", + "isList": false + } + ] + } + ], + "isNullable": true, + "outputType": { + "type": "A", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "CreateManyAAndReturnOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "b_id", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + }, + { + "name": "b", + "args": [], + "isNullable": false, + "outputType": { + "type": "B", + "namespace": "model", + "location": "outputObjectTypes", + "isList": false + } + } + ] + }, + { + "name": "CreateManyBAndReturnOutputType", + "fields": [ + { + "name": "id", + "args": [], + "isNullable": false, + "outputType": { + "type": "String", + "location": "scalar", + "isList": false + } + } + ] + } + ] + }, + "enumTypes": { + "prisma": [ + { + "name": "TransactionIsolationLevel", + "values": [ + "ReadUncommitted", + "ReadCommitted", + "RepeatableRead", + "Serializable" + ] + }, + { + "name": "AScalarFieldEnum", + "values": [ + "id", + "b_id" + ] + }, + { + "name": "BScalarFieldEnum", + "values": [ + "id" + ] + }, + { + "name": "SortOrder", + "values": [ + "asc", + "desc" + ] + }, + { + "name": "QueryMode", + "values": [ + "default", + "insensitive" + ] + } + ] + }, + "fieldRefTypes": { + "prisma": [ + { + "name": "StringFieldRefInput", + "allowTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ], + "fields": [ + { + "name": "_ref", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_container", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "ListStringFieldRefInput", + "allowTypes": [ + { + "type": "String", + "location": "scalar", + "isList": true + } + ], + "fields": [ + { + "name": "_ref", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_container", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "IntFieldRefInput", + "allowTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": false + } + ], + "fields": [ + { + "name": "_ref", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_container", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + }, + { + "name": "ListIntFieldRefInput", + "allowTypes": [ + { + "type": "Int", + "location": "scalar", + "isList": true + } + ], + "fields": [ + { + "name": "_ref", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + }, + { + "name": "_container", + "isRequired": true, + "isNullable": false, + "inputTypes": [ + { + "type": "String", + "location": "scalar", + "isList": false + } + ] + } + ] + } + ] + } + }, + "mappings": { + "modelOperations": [ + { + "model": "A", + "aggregate": "aggregateA", + "createMany": "createManyA", + "createManyAndReturn": "createManyAAndReturn", + "createOne": "createOneA", + "deleteMany": "deleteManyA", + "deleteOne": "deleteOneA", + "findFirst": "findFirstA", + "findFirstOrThrow": "findFirstAOrThrow", + "findMany": "findManyA", + "findUnique": "findUniqueA", + "findUniqueOrThrow": "findUniqueAOrThrow", + "groupBy": "groupByA", + "updateMany": "updateManyA", + "updateOne": "updateOneA", + "upsertOne": "upsertOneA" + }, + { + "model": "B", + "aggregate": "aggregateB", + "createMany": "createManyB", + "createManyAndReturn": "createManyBAndReturn", + "createOne": "createOneB", + "deleteMany": "deleteManyB", + "deleteOne": "deleteOneB", + "findFirst": "findFirstB", + "findFirstOrThrow": "findFirstBOrThrow", + "findMany": "findManyB", + "findUnique": "findUniqueB", + "findUniqueOrThrow": "findUniqueBOrThrow", + "groupBy": "groupByB", + "updateMany": "updateManyB", + "updateOne": "updateOneB", + "upsertOne": "upsertOneB" + } + ], + "otherOperations": { + "read": [], + "write": [ + "executeRaw", + "queryRaw" + ] + } + } + }"#]]; let response = get_dmmf(&request.to_string()).unwrap(); - expected.assert_eq(&response); + + let prettified_response = + serde_json::to_string_pretty(&serde_json::from_str::(&response).unwrap()).unwrap(); + + expected.assert_eq(&prettified_response); } #[test] diff --git a/query-engine/dmmf/Cargo.toml b/query-engine/dmmf/Cargo.toml index 4595c5dada0a..e46532ecbf7e 100644 --- a/query-engine/dmmf/Cargo.toml +++ b/query-engine/dmmf/Cargo.toml @@ -5,6 +5,7 @@ edition = "2021" [dependencies] bigdecimal = "0.3.0" +itertools.workspace = true psl.workspace = true serde.workspace = true serde_json.workspace = true diff --git a/query-engine/dmmf/src/ast_builders/datamodel_ast_builder.rs b/query-engine/dmmf/src/ast_builders/datamodel_ast_builder.rs index 67b5417d4ab3..a0e120216073 100644 --- a/query-engine/dmmf/src/ast_builders/datamodel_ast_builder.rs +++ b/query-engine/dmmf/src/ast_builders/datamodel_ast_builder.rs @@ -1,7 +1,9 @@ -use crate::serialization_ast::datamodel_ast::{ - Datamodel, Enum, EnumValue, Field, Function, Model, PrimaryKey, UniqueIndex, +use crate::serialization_ast::{ + datamodel_ast::{Datamodel, Enum, EnumValue, Field, Function, Model, PrimaryKey, UniqueIndex}, + Index, IndexField, IndexType, }; use bigdecimal::ToPrimitive; +use itertools::{Either, Itertools}; use psl::{ parser_database::{walkers, ScalarFieldType}, schema_ast::ast::WithDocumentation, @@ -13,6 +15,7 @@ pub(crate) fn schema_to_dmmf(schema: &psl::ValidatedSchema) -> Datamodel { models: Vec::with_capacity(schema.db.models_count()), enums: Vec::with_capacity(schema.db.enums_count()), types: Vec::new(), + indexes: Vec::new(), }; for enum_model in schema.db.walk_enums() { @@ -26,6 +29,7 @@ pub(crate) fn schema_to_dmmf(schema: &psl::ValidatedSchema) -> Datamodel { .chain(schema.db.walk_views().filter(|view| !view.is_ignored())) { datamodel.models.push(model_to_dmmf(model)); + datamodel.indexes.extend(model_indexes_to_dmmf(model)); } for ct in schema.db.walk_composite_types() { @@ -238,6 +242,56 @@ fn relation_field_to_dmmf(field: walkers::RelationFieldWalker<'_>) -> Field { } } +fn model_indexes_to_dmmf(model: walkers::ModelWalker<'_>) -> impl Iterator + '_ { + model + .primary_key() + .into_iter() + .map(move |pk| Index { + model: model.name().to_owned(), + r#type: IndexType::Id, + is_defined_on_field: pk.is_defined_on_field(), + name: pk.name().map(ToOwned::to_owned), + db_name: pk.mapped_name().map(ToOwned::to_owned), + algorithm: None, + clustered: pk.clustered(), + fields: pk + .scalar_field_attributes() + .map(scalar_field_attribute_to_dmmf) + .collect(), + }) + .chain(model.indexes().map(move |index| { + Index { + model: model.name().to_owned(), + r#type: index.index_type().into(), + is_defined_on_field: index.is_defined_on_field(), + name: index.name().map(ToOwned::to_owned), + db_name: index.mapped_name().map(ToOwned::to_owned), + algorithm: index.algorithm().map(|alg| alg.to_string()), + clustered: index.clustered(), + fields: index + .scalar_field_attributes() + .map(scalar_field_attribute_to_dmmf) + .collect(), + } + })) +} + +fn scalar_field_attribute_to_dmmf(sfa: walkers::ScalarFieldAttributeWalker<'_>) -> IndexField { + IndexField { + name: sfa + .as_path_to_indexed_field() + .into_iter() + .map(|(field_name, _)| field_name.to_owned()) + .join("."), + sort_order: sfa.sort_order().map(Into::into), + length: sfa.length(), + operator_class: sfa.operator_class().map(|oc| match oc.get() { + Either::Left(oc) => oc.to_string(), + Either::Right(oc) => oc.to_owned(), + }), + } +} + fn default_value_to_serde(dv: &DefaultKind) -> serde_json::Value { match dv { DefaultKind::Single(value) => prisma_value_to_serde(&value.clone()), @@ -296,27 +350,30 @@ mod tests { serde_json::to_string_pretty(&dmmf).expect("Failed to render JSON") } + const SAMPLES_FOLDER_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/test_files"); + #[test] fn test_dmmf_rendering() { - let test_cases = vec![ - "general", - "functions", - "source", - "source_with_comments", - "source_with_generator", - "without_relation_name", - "ignore", - "views", - ]; + let test_cases = fs::read_dir(SAMPLES_FOLDER_PATH) + .unwrap() + .map(|entry| entry.unwrap().file_name().into_string().unwrap()) + .filter(|name| name.ends_with(".prisma")) + .map(|name| name.trim_end_matches(".prisma").to_owned()); for test_case in test_cases { println!("TESTING: {test_case}"); let datamodel_string = load_from_file(format!("{test_case}.prisma").as_str()); let dmmf_string = render_to_dmmf(&datamodel_string); + + if std::env::var("UPDATE_EXPECT") == Ok("1".into()) { + save_to_file(&format!("{test_case}.json"), &dmmf_string); + } + let expected_json = load_from_file(format!("{test_case}.json").as_str()); + println!("{dmmf_string}"); - assert_eq_json(&dmmf_string, &expected_json, test_case); + assert_eq_json(&dmmf_string, &expected_json, &test_case); } } @@ -329,7 +386,10 @@ mod tests { } fn load_from_file(file: &str) -> String { - let samples_folder_path = concat!(env!("CARGO_MANIFEST_DIR"), "/test_files"); - fs::read_to_string(format!("{samples_folder_path}/{file}")).unwrap() + fs::read_to_string(format!("{SAMPLES_FOLDER_PATH}/{file}")).unwrap() + } + + fn save_to_file(file: &str, content: &str) { + fs::write(format!("{SAMPLES_FOLDER_PATH}/{file}"), content).unwrap(); } } diff --git a/query-engine/dmmf/src/serialization_ast/datamodel_ast.rs b/query-engine/dmmf/src/serialization_ast/datamodel_ast.rs index 5f22b5822f52..f405aec2be00 100644 --- a/query-engine/dmmf/src/serialization_ast/datamodel_ast.rs +++ b/query-engine/dmmf/src/serialization_ast/datamodel_ast.rs @@ -5,6 +5,7 @@ pub struct Datamodel { pub enums: Vec, pub models: Vec, pub types: Vec, // composite types + pub indexes: Vec, } #[derive(Debug, serde::Serialize)] @@ -107,3 +108,66 @@ pub struct EnumValue { #[serde(skip_serializing_if = "Option::is_none")] pub documentation: Option, } + +#[derive(Debug, serde::Serialize)] +#[serde(rename_all = "camelCase")] +pub struct Index { + pub model: String, + pub r#type: IndexType, + pub is_defined_on_field: bool, + #[serde(skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub db_name: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub algorithm: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub clustered: Option, + pub fields: Vec, +} + +#[derive(Debug, serde::Serialize)] +#[serde(rename_all = "camelCase")] +pub struct IndexField { + pub name: String, + #[serde(skip_serializing_if = "Option::is_none")] + pub sort_order: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub length: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub operator_class: Option, +} + +macro_rules! from { + ( $from:path => $to:ident { $( $variant:ident ),+ } ) => { + impl From<$from> for $to { + fn from(value: $from) -> Self { + match value { + $( <$from>::$variant => <$to>::$variant ),+ + } + } + } + }; +} + +#[derive(Debug, serde::Serialize)] +#[serde(rename_all = "camelCase")] +pub enum IndexType { + Id, + Normal, + Unique, + Fulltext, +} + +// `Id` doesn't exist in `psl::parser_database::IndexType` as primary keys are not represented as +// such on that level, so we only generate the From impl for the other three variants. +from!(psl::parser_database::IndexType => IndexType { Normal, Unique, Fulltext }); + +#[derive(Debug, serde::Serialize)] +#[serde(rename_all = "camelCase")] +pub enum SortOrder { + Asc, + Desc, +} + +from!(psl::parser_database::SortOrder => SortOrder { Asc, Desc }); diff --git a/query-engine/dmmf/src/tests/test-schemas/snapshots/odoo.snapshot.json.gz b/query-engine/dmmf/src/tests/test-schemas/snapshots/odoo.snapshot.json.gz index 5e907c26c660..f65efcc2c5a7 100644 Binary files a/query-engine/dmmf/src/tests/test-schemas/snapshots/odoo.snapshot.json.gz and b/query-engine/dmmf/src/tests/test-schemas/snapshots/odoo.snapshot.json.gz differ diff --git a/query-engine/dmmf/test_files/functions.json b/query-engine/dmmf/test_files/functions.json index 11df542e72c6..bdc394178a92 100644 --- a/query-engine/dmmf/test_files/functions.json +++ b/query-engine/dmmf/test_files/functions.json @@ -13,8 +13,8 @@ "isUnique": false, "isId": true, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -26,8 +26,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "DateTime", "hasDefaultValue": true, + "type": "DateTime", "default": { "name": "now", "args": [] @@ -43,8 +43,8 @@ "isUnique": true, "isId": false, "isReadOnly": false, - "type": "String", "hasDefaultValue": true, + "type": "String", "default": { "name": "cuid", "args": [] @@ -53,11 +53,33 @@ "isUpdatedAt": false } ], - "isGenerated": false, "primaryKey": null, "uniqueFields": [], - "uniqueIndexes": [] + "uniqueIndexes": [], + "isGenerated": false } ], - "types": [] -} + "types": [], + "indexes": [ + { + "model": "User", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "User", + "type": "unique", + "isDefinedOnField": true, + "fields": [ + { + "name": "someId" + } + ] + } + ] +} \ No newline at end of file diff --git a/query-engine/dmmf/test_files/general.json b/query-engine/dmmf/test_files/general.json index 288c1f255446..1d5b3c10e8b0 100644 --- a/query-engine/dmmf/test_files/general.json +++ b/query-engine/dmmf/test_files/general.json @@ -32,8 +32,8 @@ "isUnique": false, "isId": true, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -45,8 +45,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "DateTime", "hasDefaultValue": false, + "type": "DateTime", "isGenerated": false, "isUpdatedAt": false }, @@ -58,8 +58,8 @@ "isUnique": true, "isId": false, "isReadOnly": false, - "type": "String", "hasDefaultValue": false, + "type": "String", "isGenerated": false, "isUpdatedAt": false }, @@ -72,8 +72,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "String", "hasDefaultValue": false, + "type": "String", "isGenerated": false, "isUpdatedAt": false }, @@ -85,8 +85,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "Post", "hasDefaultValue": false, + "type": "Post", "relationName": "author", "relationFromFields": [], "relationToFields": [], @@ -101,8 +101,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "Profile", "hasDefaultValue": false, + "type": "Profile", "relationName": "ProfileToUser", "relationFromFields": [], "relationToFields": [], @@ -110,10 +110,10 @@ "isUpdatedAt": false } ], - "isGenerated": false, "primaryKey": null, "uniqueFields": [], - "uniqueIndexes": [] + "uniqueIndexes": [], + "isGenerated": false }, { "name": "Profile", @@ -127,8 +127,8 @@ "isUnique": false, "isId": true, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -140,8 +140,8 @@ "isUnique": true, "isId": false, "isReadOnly": true, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -153,8 +153,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "User", "hasDefaultValue": false, + "type": "User", "relationName": "ProfileToUser", "relationFromFields": [ "userId" @@ -173,16 +173,16 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "String", "hasDefaultValue": false, + "type": "String", "isGenerated": false, "isUpdatedAt": false } ], - "isGenerated": false, "primaryKey": null, "uniqueFields": [], - "uniqueIndexes": [] + "uniqueIndexes": [], + "isGenerated": false }, { "name": "Post", @@ -196,8 +196,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -209,8 +209,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "DateTime", "hasDefaultValue": false, + "type": "DateTime", "isGenerated": false, "isUpdatedAt": false }, @@ -222,8 +222,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "DateTime", "hasDefaultValue": false, + "type": "DateTime", "isGenerated": false, "isUpdatedAt": false }, @@ -235,8 +235,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "String", "hasDefaultValue": true, + "type": "String", "default": "Default-Title", "isGenerated": false, "isUpdatedAt": false @@ -249,8 +249,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "Boolean", "hasDefaultValue": true, + "type": "Boolean", "default": false, "isGenerated": false, "isUpdatedAt": false @@ -263,8 +263,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "Boolean", "hasDefaultValue": true, + "type": "Boolean", "default": false, "isGenerated": false, "isUpdatedAt": false @@ -277,8 +277,8 @@ "isUnique": false, "isId": false, "isReadOnly": true, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -290,8 +290,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "User", "hasDefaultValue": false, + "type": "User", "relationName": "author", "relationFromFields": [ "authorId" @@ -310,8 +310,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "PostToCategory", "hasDefaultValue": false, + "type": "PostToCategory", "relationName": "PostToPostToCategory", "relationFromFields": [], "relationToFields": [], @@ -319,7 +319,6 @@ "isUpdatedAt": false } ], - "isGenerated": false, "primaryKey": { "name": null, "fields": [ @@ -328,7 +327,8 @@ ] }, "uniqueFields": [], - "uniqueIndexes": [] + "uniqueIndexes": [], + "isGenerated": false }, { "name": "Category", @@ -342,8 +342,8 @@ "isUnique": false, "isId": true, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -355,8 +355,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "String", "hasDefaultValue": false, + "type": "String", "isGenerated": false, "isUpdatedAt": false }, @@ -368,8 +368,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "PostToCategory", "hasDefaultValue": false, + "type": "PostToCategory", "relationName": "CategoryToPostToCategory", "relationFromFields": [], "relationToFields": [], @@ -384,16 +384,16 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "CategoryEnum", "hasDefaultValue": false, + "type": "CategoryEnum", "isGenerated": false, "isUpdatedAt": false } ], - "isGenerated": false, "primaryKey": null, "uniqueFields": [], - "uniqueIndexes": [] + "uniqueIndexes": [], + "isGenerated": false }, { "name": "PostToCategory", @@ -407,8 +407,8 @@ "isUnique": false, "isId": true, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -420,8 +420,8 @@ "isUnique": false, "isId": false, "isReadOnly": true, - "type": "String", "hasDefaultValue": false, + "type": "String", "isGenerated": false, "isUpdatedAt": false }, @@ -433,8 +433,8 @@ "isUnique": false, "isId": false, "isReadOnly": true, - "type": "DateTime", "hasDefaultValue": false, + "type": "DateTime", "isGenerated": false, "isUpdatedAt": false }, @@ -446,8 +446,8 @@ "isUnique": false, "isId": false, "isReadOnly": true, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -459,8 +459,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "Post", "hasDefaultValue": false, + "type": "Post", "relationName": "PostToPostToCategory", "relationFromFields": [ "postTitle", @@ -481,8 +481,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "Category", "hasDefaultValue": false, + "type": "Category", "relationName": "CategoryToPostToCategory", "relationFromFields": [ "categoryId" @@ -494,7 +494,6 @@ "isUpdatedAt": false } ], - "isGenerated": false, "primaryKey": null, "uniqueFields": [ [ @@ -510,7 +509,8 @@ "categoryId" ] } - ] + ], + "isGenerated": false }, { "name": "A", @@ -524,8 +524,8 @@ "isUnique": false, "isId": true, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -537,8 +537,8 @@ "isUnique": true, "isId": false, "isReadOnly": true, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -550,8 +550,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "B", "hasDefaultValue": false, + "type": "B", "relationName": "AToB", "relationFromFields": [ "bId" @@ -563,10 +563,10 @@ "isUpdatedAt": false } ], - "isGenerated": false, "primaryKey": null, "uniqueFields": [], - "uniqueIndexes": [] + "uniqueIndexes": [], + "isGenerated": false }, { "name": "B", @@ -580,8 +580,8 @@ "isUnique": false, "isId": true, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -593,8 +593,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "A", "hasDefaultValue": false, + "type": "A", "relationName": "AToB", "relationFromFields": [], "relationToFields": [], @@ -602,10 +602,10 @@ "isUpdatedAt": false } ], - "isGenerated": false, "primaryKey": null, "uniqueFields": [], - "uniqueIndexes": [] + "uniqueIndexes": [], + "isGenerated": false }, { "name": "NamedCompounds", @@ -619,8 +619,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -632,8 +632,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -645,8 +645,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -658,13 +658,12 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false } ], - "isGenerated": false, "primaryKey": { "name": "MyPrimary", "fields": [ @@ -686,7 +685,8 @@ "d" ] } - ] + ], + "isGenerated": false }, { "name": "MappedSingles", @@ -700,8 +700,8 @@ "isUnique": false, "isId": true, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -713,17 +713,187 @@ "isUnique": true, "isId": false, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false } ], - "isGenerated": false, "primaryKey": null, "uniqueFields": [], - "uniqueIndexes": [] + "uniqueIndexes": [], + "isGenerated": false } ], - "types": [] -} + "types": [], + "indexes": [ + { + "model": "User", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "User", + "type": "unique", + "isDefinedOnField": true, + "fields": [ + { + "name": "email" + } + ] + }, + { + "model": "Profile", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "Profile", + "type": "unique", + "isDefinedOnField": true, + "fields": [ + { + "name": "userId" + } + ] + }, + { + "model": "Post", + "type": "id", + "isDefinedOnField": false, + "fields": [ + { + "name": "title" + }, + { + "name": "createdAt" + } + ] + }, + { + "model": "Category", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "PostToCategory", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "PostToCategory", + "type": "unique", + "isDefinedOnField": false, + "fields": [ + { + "name": "postTitle" + }, + { + "name": "categoryId" + } + ] + }, + { + "model": "A", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "A", + "type": "unique", + "isDefinedOnField": true, + "fields": [ + { + "name": "bId" + } + ] + }, + { + "model": "B", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "NamedCompounds", + "type": "id", + "isDefinedOnField": false, + "name": "MyPrimary", + "dbName": "DbPrimary", + "fields": [ + { + "name": "a" + }, + { + "name": "b" + } + ] + }, + { + "model": "NamedCompounds", + "type": "unique", + "isDefinedOnField": false, + "name": "MyUnique", + "dbName": "DbUnique", + "fields": [ + { + "name": "c" + }, + { + "name": "d" + } + ] + }, + { + "model": "MappedSingles", + "type": "id", + "isDefinedOnField": true, + "dbName": "Primary", + "fields": [ + { + "name": "a" + } + ] + }, + { + "model": "MappedSingles", + "type": "unique", + "isDefinedOnField": true, + "dbName": "Unique", + "fields": [ + { + "name": "b" + } + ] + } + ] +} \ No newline at end of file diff --git a/query-engine/dmmf/test_files/ignore.json b/query-engine/dmmf/test_files/ignore.json index 7934c1187eae..fd48d5f0ff2d 100644 --- a/query-engine/dmmf/test_files/ignore.json +++ b/query-engine/dmmf/test_files/ignore.json @@ -13,8 +13,8 @@ "isUnique": false, "isId": true, "isReadOnly": false, - "type": "Int", "hasDefaultValue": true, + "type": "Int", "default": { "name": "autoincrement", "args": [] @@ -30,8 +30,8 @@ "isUnique": true, "isId": false, "isReadOnly": false, - "type": "Int", "hasDefaultValue": true, + "type": "Int", "default": { "name": "dbgenerated", "args": [ @@ -42,11 +42,33 @@ "isUpdatedAt": false } ], - "isGenerated": false, "primaryKey": null, "uniqueFields": [], - "uniqueIndexes": [] + "uniqueIndexes": [], + "isGenerated": false } ], - "types": [] -} + "types": [], + "indexes": [ + { + "model": "User", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "User", + "type": "unique", + "isDefinedOnField": true, + "fields": [ + { + "name": "ip" + } + ] + } + ] +} \ No newline at end of file diff --git a/query-engine/dmmf/test_files/indexes_mongodb.json b/query-engine/dmmf/test_files/indexes_mongodb.json new file mode 100644 index 000000000000..44bc288fb853 --- /dev/null +++ b/query-engine/dmmf/test_files/indexes_mongodb.json @@ -0,0 +1,137 @@ +{ + "enums": [], + "models": [ + { + "name": "Post", + "dbName": null, + "fields": [ + { + "name": "id", + "dbName": "_id", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": true, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "title", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "content", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "comments", + "kind": "object", + "isList": true, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "Comment", + "isGenerated": false, + "isUpdatedAt": false + } + ], + "primaryKey": null, + "uniqueFields": [], + "uniqueIndexes": [], + "isGenerated": false + } + ], + "types": [ + { + "name": "Comment", + "dbName": null, + "fields": [ + { + "name": "userId", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String" + }, + { + "name": "content", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String" + } + ], + "primaryKey": null, + "uniqueFields": [], + "uniqueIndexes": [] + } + ], + "indexes": [ + { + "model": "Post", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "Post", + "type": "normal", + "isDefinedOnField": false, + "fields": [ + { + "name": "comments.userId" + } + ] + }, + { + "model": "Post", + "type": "fulltext", + "isDefinedOnField": false, + "fields": [ + { + "name": "title", + "sortOrder": "desc" + }, + { + "name": "content" + } + ] + } + ] +} \ No newline at end of file diff --git a/query-engine/dmmf/test_files/indexes_mongodb.prisma b/query-engine/dmmf/test_files/indexes_mongodb.prisma new file mode 100644 index 000000000000..e73d7f4033f3 --- /dev/null +++ b/query-engine/dmmf/test_files/indexes_mongodb.prisma @@ -0,0 +1,24 @@ +datasource db { + provider = "mongodb" + url = "mongodb://" +} + +generator client { + provider = "prisma-client-js" + previewFeatures = ["fullTextIndex"] +} + +model Post { + id String @id @map("_id") @db.ObjectId + title String + content String + comments Comment[] + + @@index([comments.userId]) + @@fulltext([title(sort: Desc), content]) +} + +type Comment { + userId String @db.ObjectId + content String +} diff --git a/query-engine/dmmf/test_files/indexes_mysql.json b/query-engine/dmmf/test_files/indexes_mysql.json new file mode 100644 index 000000000000..a503a1473fa3 --- /dev/null +++ b/query-engine/dmmf/test_files/indexes_mysql.json @@ -0,0 +1,130 @@ +{ + "enums": [], + "models": [ + { + "name": "Post", + "dbName": null, + "fields": [ + { + "name": "title", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "abstract", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "slug", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": true, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "author", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "created_at", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "DateTime", + "isGenerated": false, + "isUpdatedAt": false + } + ], + "primaryKey": { + "name": null, + "fields": [ + "title", + "abstract" + ] + }, + "uniqueFields": [], + "uniqueIndexes": [], + "isGenerated": false + } + ], + "types": [], + "indexes": [ + { + "model": "Post", + "type": "id", + "isDefinedOnField": false, + "fields": [ + { + "name": "title", + "length": 100 + }, + { + "name": "abstract", + "length": 10 + } + ] + }, + { + "model": "Post", + "type": "unique", + "isDefinedOnField": true, + "fields": [ + { + "name": "slug", + "sortOrder": "desc", + "length": 42 + } + ] + }, + { + "model": "Post", + "type": "normal", + "isDefinedOnField": false, + "fields": [ + { + "name": "author" + }, + { + "name": "created_at", + "sortOrder": "desc" + } + ] + } + ] +} \ No newline at end of file diff --git a/query-engine/dmmf/test_files/indexes_mysql.prisma b/query-engine/dmmf/test_files/indexes_mysql.prisma new file mode 100644 index 000000000000..763bc75092a4 --- /dev/null +++ b/query-engine/dmmf/test_files/indexes_mysql.prisma @@ -0,0 +1,15 @@ +datasource db { + provider = "mysql" + url = "mysql://" +} + +model Post { + title String @db.VarChar(300) + abstract String @db.VarChar(3000) + slug String @unique(sort: Desc, length: 42) @db.VarChar(3000) + author String + created_at DateTime + + @@id([title(length: 100), abstract(length: 10)]) + @@index([author, created_at(sort: Desc)]) +} diff --git a/query-engine/dmmf/test_files/indexes_postgres.json b/query-engine/dmmf/test_files/indexes_postgres.json new file mode 100644 index 000000000000..d07c4cf1e217 --- /dev/null +++ b/query-engine/dmmf/test_files/indexes_postgres.json @@ -0,0 +1,66 @@ +{ + "enums": [], + "models": [ + { + "name": "Example", + "dbName": null, + "fields": [ + { + "name": "id", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": true, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "Int", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "value", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "Json", + "isGenerated": false, + "isUpdatedAt": false + } + ], + "primaryKey": null, + "uniqueFields": [], + "uniqueIndexes": [], + "isGenerated": false + } + ], + "types": [], + "indexes": [ + { + "model": "Example", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "Example", + "type": "normal", + "isDefinedOnField": false, + "algorithm": "Gin", + "fields": [ + { + "name": "value", + "operatorClass": "JsonbPathOps" + } + ] + } + ] +} \ No newline at end of file diff --git a/query-engine/dmmf/test_files/indexes_postgres.prisma b/query-engine/dmmf/test_files/indexes_postgres.prisma new file mode 100644 index 000000000000..bec22b10a77c --- /dev/null +++ b/query-engine/dmmf/test_files/indexes_postgres.prisma @@ -0,0 +1,11 @@ +datasource db { + provider = "postgresql" + url = "postgresql://" +} + +model Example { + id Int @id + value Json + + @@index([value(ops: JsonbPathOps)], type: Gin) +} diff --git a/query-engine/dmmf/test_files/indexes_sqlserver.json b/query-engine/dmmf/test_files/indexes_sqlserver.json new file mode 100644 index 000000000000..29421158779b --- /dev/null +++ b/query-engine/dmmf/test_files/indexes_sqlserver.json @@ -0,0 +1,186 @@ +{ + "enums": [], + "models": [ + { + "name": "Example", + "dbName": null, + "fields": [ + { + "name": "id", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": true, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "Int", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "value", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "Int", + "isGenerated": false, + "isUpdatedAt": false + } + ], + "primaryKey": null, + "uniqueFields": [], + "uniqueIndexes": [], + "isGenerated": false + }, + { + "name": "Post", + "dbName": null, + "fields": [ + { + "name": "title", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "abstract", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "slug", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": true, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "author", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "String", + "isGenerated": false, + "isUpdatedAt": false + }, + { + "name": "created_at", + "kind": "scalar", + "isList": false, + "isRequired": true, + "isUnique": false, + "isId": false, + "isReadOnly": false, + "hasDefaultValue": false, + "type": "DateTime", + "isGenerated": false, + "isUpdatedAt": false + } + ], + "primaryKey": { + "name": null, + "fields": [ + "title", + "abstract" + ] + }, + "uniqueFields": [], + "uniqueIndexes": [], + "isGenerated": false + } + ], + "types": [], + "indexes": [ + { + "model": "Example", + "type": "id", + "isDefinedOnField": true, + "clustered": false, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "Example", + "type": "normal", + "isDefinedOnField": false, + "clustered": true, + "fields": [ + { + "name": "value" + } + ] + }, + { + "model": "Post", + "type": "id", + "isDefinedOnField": false, + "fields": [ + { + "name": "title", + "sortOrder": "desc" + }, + { + "name": "abstract" + } + ] + }, + { + "model": "Post", + "type": "unique", + "isDefinedOnField": true, + "fields": [ + { + "name": "slug", + "sortOrder": "desc" + } + ] + }, + { + "model": "Post", + "type": "normal", + "isDefinedOnField": false, + "fields": [ + { + "name": "author" + }, + { + "name": "created_at", + "sortOrder": "desc" + } + ] + } + ] +} \ No newline at end of file diff --git a/query-engine/dmmf/test_files/indexes_sqlserver.prisma b/query-engine/dmmf/test_files/indexes_sqlserver.prisma new file mode 100644 index 000000000000..bfd82ea2fa07 --- /dev/null +++ b/query-engine/dmmf/test_files/indexes_sqlserver.prisma @@ -0,0 +1,22 @@ +datasource db { + provider = "sqlserver" + url = "sqlserver://" +} + +model Example { + id Int @id(clustered: false) + value Int + + @@index([value], clustered: true) +} + +model Post { + title String @db.VarChar(300) + abstract String @db.VarChar(3000) + slug String @unique(sort: Desc) @db.VarChar(3000) + author String + created_at DateTime + + @@id([title(sort: Desc), abstract]) + @@index([author, created_at(sort: Desc)]) +} diff --git a/query-engine/dmmf/test_files/source.json b/query-engine/dmmf/test_files/source.json index 00667d8ea7d4..ed4e178d0f65 100644 --- a/query-engine/dmmf/test_files/source.json +++ b/query-engine/dmmf/test_files/source.json @@ -1,5 +1,6 @@ { "enums": [], "models": [], - "types": [] -} + "types": [], + "indexes": [] +} \ No newline at end of file diff --git a/query-engine/dmmf/test_files/source_with_comments.json b/query-engine/dmmf/test_files/source_with_comments.json index ca16f6ebbcc0..70955715a08e 100644 --- a/query-engine/dmmf/test_files/source_with_comments.json +++ b/query-engine/dmmf/test_files/source_with_comments.json @@ -13,8 +13,8 @@ "isUnique": false, "isId": true, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -26,19 +26,31 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "String", "hasDefaultValue": false, + "type": "String", "isGenerated": false, "isUpdatedAt": false, "documentation": "Name of the author." } ], - "isGenerated": false, - "documentation": "My author model.", "primaryKey": null, "uniqueFields": [], - "uniqueIndexes": [] + "uniqueIndexes": [], + "isGenerated": false, + "documentation": "My author model." } ], - "types": [] -} + "types": [], + "indexes": [ + { + "model": "Author", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + } + ] +} \ No newline at end of file diff --git a/query-engine/dmmf/test_files/source_with_generator.json b/query-engine/dmmf/test_files/source_with_generator.json index 6e2f9e96d059..40c86859a662 100644 --- a/query-engine/dmmf/test_files/source_with_generator.json +++ b/query-engine/dmmf/test_files/source_with_generator.json @@ -13,8 +13,8 @@ "isUnique": false, "isId": true, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -26,17 +26,29 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "String", "hasDefaultValue": false, + "type": "String", "isGenerated": false, "isUpdatedAt": false } ], - "isGenerated": false, "primaryKey": null, "uniqueFields": [], - "uniqueIndexes": [] + "uniqueIndexes": [], + "isGenerated": false } ], - "types": [] -} + "types": [], + "indexes": [ + { + "model": "Author", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + } + ] +} \ No newline at end of file diff --git a/query-engine/dmmf/test_files/views.json b/query-engine/dmmf/test_files/views.json index ac16e2814aed..ff6de0a05049 100644 --- a/query-engine/dmmf/test_files/views.json +++ b/query-engine/dmmf/test_files/views.json @@ -135,7 +135,7 @@ "uniqueIndexes": [], "isGenerated": false }, - { + { "name": "UserInfo", "dbName": null, "fields": [ @@ -198,5 +198,57 @@ "isGenerated": false } ], - "types": [] -} + "types": [], + "indexes": [ + { + "model": "User", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "User", + "type": "unique", + "isDefinedOnField": true, + "fields": [ + { + "name": "email" + } + ] + }, + { + "model": "Profile", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "Profile", + "type": "unique", + "isDefinedOnField": true, + "fields": [ + { + "name": "userId" + } + ] + }, + { + "model": "UserInfo", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + } + ] +} \ No newline at end of file diff --git a/query-engine/dmmf/test_files/without_relation_name.json b/query-engine/dmmf/test_files/without_relation_name.json index a79cdacf28ce..3725937846ea 100644 --- a/query-engine/dmmf/test_files/without_relation_name.json +++ b/query-engine/dmmf/test_files/without_relation_name.json @@ -13,8 +13,8 @@ "isUnique": false, "isId": true, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -26,8 +26,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "Post", "hasDefaultValue": false, + "type": "Post", "relationName": "PostToUser", "relationFromFields": [], "relationToFields": [], @@ -35,10 +35,10 @@ "isUpdatedAt": false } ], - "isGenerated": false, "primaryKey": null, "uniqueFields": [], - "uniqueIndexes": [] + "uniqueIndexes": [], + "isGenerated": false }, { "name": "Post", @@ -52,8 +52,8 @@ "isUnique": false, "isId": true, "isReadOnly": false, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -65,8 +65,8 @@ "isUnique": false, "isId": false, "isReadOnly": true, - "type": "Int", "hasDefaultValue": false, + "type": "Int", "isGenerated": false, "isUpdatedAt": false }, @@ -78,8 +78,8 @@ "isUnique": false, "isId": false, "isReadOnly": false, - "type": "User", "hasDefaultValue": false, + "type": "User", "relationName": "PostToUser", "relationFromFields": [ "userId" @@ -91,11 +91,33 @@ "isUpdatedAt": false } ], - "isGenerated": false, "primaryKey": null, "uniqueFields": [], - "uniqueIndexes": [] + "uniqueIndexes": [], + "isGenerated": false } ], - "types": [] -} + "types": [], + "indexes": [ + { + "model": "User", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + }, + { + "model": "Post", + "type": "id", + "isDefinedOnField": true, + "fields": [ + { + "name": "id" + } + ] + } + ] +} \ No newline at end of file