Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/prisma v5 #93

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABASE_URL=postgresql://postgres:password@localhost:5432/zod?schema=public
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
lib
package
npm-debug.log*
prisma/generated
prisma/generated
.yarn/cache
Binary file added .yarn/install-state.gz
Binary file not shown.
873 changes: 873 additions & 0 deletions .yarn/releases/yarn-3.4.1.cjs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
logFilters:
- code: YN0007
level: discard
- code: YN0013
level: discard

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.4.1.cjs
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ Automatically generate [Zod](https://github.com/colinhacks/zod) schemas from you

### Prisma 4

- 0.9.0 and higher

### Prisma 4

- 0.3.0 and higher

### Prisma 2/3
Expand Down
29 changes: 29 additions & 0 deletions lib/prisma/generated/schemas/AggregateMap.schema.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { z } from 'zod';
export declare const MapAggregateSchema: z.ZodObject<{
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<import(".prisma/client").Prisma.MapOrderByWithRelationInput, z.ZodTypeDef, import(".prisma/client").Prisma.MapOrderByWithRelationInput>, z.ZodArray<z.ZodType<import(".prisma/client").Prisma.MapOrderByWithRelationInput, z.ZodTypeDef, import(".prisma/client").Prisma.MapOrderByWithRelationInput>, "many">]>>;
where: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.MapWhereInput, z.ZodTypeDef, import(".prisma/client").Prisma.MapWhereInput>>;
cursor: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.MapWhereUniqueInput, z.ZodTypeDef, import(".prisma/client").Prisma.MapWhereUniqueInput>>;
take: z.ZodOptional<z.ZodNumber>;
skip: z.ZodOptional<z.ZodNumber>;
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<import(".prisma/client").Prisma.MapCountAggregateInputType, z.ZodTypeDef, import(".prisma/client").Prisma.MapCountAggregateInputType>]>>;
_min: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.MapMinAggregateInputType, z.ZodTypeDef, import(".prisma/client").Prisma.MapMinAggregateInputType>>;
_max: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.MapMaxAggregateInputType, z.ZodTypeDef, import(".prisma/client").Prisma.MapMaxAggregateInputType>>;
}, "strip", z.ZodTypeAny, {
_count?: true | import(".prisma/client").Prisma.MapCountAggregateInputType | undefined;
orderBy?: import(".prisma/client").Prisma.MapOrderByWithRelationInput | import(".prisma/client").Prisma.MapOrderByWithRelationInput[] | undefined;
where?: import(".prisma/client").Prisma.MapWhereInput | undefined;
cursor?: import(".prisma/client").Prisma.MapWhereUniqueInput | undefined;
take?: number | undefined;
skip?: number | undefined;
_min?: import(".prisma/client").Prisma.MapMinAggregateInputType | undefined;
_max?: import(".prisma/client").Prisma.MapMaxAggregateInputType | undefined;
}, {
_count?: true | import(".prisma/client").Prisma.MapCountAggregateInputType | undefined;
orderBy?: import(".prisma/client").Prisma.MapOrderByWithRelationInput | import(".prisma/client").Prisma.MapOrderByWithRelationInput[] | undefined;
where?: import(".prisma/client").Prisma.MapWhereInput | undefined;
cursor?: import(".prisma/client").Prisma.MapWhereUniqueInput | undefined;
take?: number | undefined;
skip?: number | undefined;
_min?: import(".prisma/client").Prisma.MapMinAggregateInputType | undefined;
_max?: import(".prisma/client").Prisma.MapMaxAggregateInputType | undefined;
}>;
28 changes: 28 additions & 0 deletions lib/prisma/generated/schemas/AggregateMap.schema.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/prisma/generated/schemas/AggregateMap.schema.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions lib/prisma/generated/schemas/AggregatePost.schema.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { z } from 'zod';
export declare const PostAggregateSchema: z.ZodObject<{
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<import(".prisma/client").Prisma.PostOrderByWithRelationInput, z.ZodTypeDef, import(".prisma/client").Prisma.PostOrderByWithRelationInput>, z.ZodArray<z.ZodType<import(".prisma/client").Prisma.PostOrderByWithRelationInput, z.ZodTypeDef, import(".prisma/client").Prisma.PostOrderByWithRelationInput>, "many">]>>;
where: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.PostWhereInput, z.ZodTypeDef, import(".prisma/client").Prisma.PostWhereInput>>;
cursor: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.PostWhereUniqueInput, z.ZodTypeDef, import(".prisma/client").Prisma.PostWhereUniqueInput>>;
take: z.ZodOptional<z.ZodNumber>;
skip: z.ZodOptional<z.ZodNumber>;
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<import(".prisma/client").Prisma.PostCountAggregateInputType, z.ZodTypeDef, import(".prisma/client").Prisma.PostCountAggregateInputType>]>>;
_min: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.PostMinAggregateInputType, z.ZodTypeDef, import(".prisma/client").Prisma.PostMinAggregateInputType>>;
_max: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.PostMaxAggregateInputType, z.ZodTypeDef, import(".prisma/client").Prisma.PostMaxAggregateInputType>>;
_avg: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.PostAvgAggregateInputType, z.ZodTypeDef, import(".prisma/client").Prisma.PostAvgAggregateInputType>>;
_sum: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.PostSumAggregateInputType, z.ZodTypeDef, import(".prisma/client").Prisma.PostSumAggregateInputType>>;
}, "strip", z.ZodTypeAny, {
_count?: true | import(".prisma/client").Prisma.PostCountAggregateInputType | undefined;
orderBy?: import(".prisma/client").Prisma.PostOrderByWithRelationInput | import(".prisma/client").Prisma.PostOrderByWithRelationInput[] | undefined;
where?: import(".prisma/client").Prisma.PostWhereInput | undefined;
cursor?: import(".prisma/client").Prisma.PostWhereUniqueInput | undefined;
take?: number | undefined;
skip?: number | undefined;
_min?: import(".prisma/client").Prisma.PostMinAggregateInputType | undefined;
_max?: import(".prisma/client").Prisma.PostMaxAggregateInputType | undefined;
_avg?: import(".prisma/client").Prisma.PostAvgAggregateInputType | undefined;
_sum?: import(".prisma/client").Prisma.PostSumAggregateInputType | undefined;
}, {
_count?: true | import(".prisma/client").Prisma.PostCountAggregateInputType | undefined;
orderBy?: import(".prisma/client").Prisma.PostOrderByWithRelationInput | import(".prisma/client").Prisma.PostOrderByWithRelationInput[] | undefined;
where?: import(".prisma/client").Prisma.PostWhereInput | undefined;
cursor?: import(".prisma/client").Prisma.PostWhereUniqueInput | undefined;
take?: number | undefined;
skip?: number | undefined;
_min?: import(".prisma/client").Prisma.PostMinAggregateInputType | undefined;
_max?: import(".prisma/client").Prisma.PostMaxAggregateInputType | undefined;
_avg?: import(".prisma/client").Prisma.PostAvgAggregateInputType | undefined;
_sum?: import(".prisma/client").Prisma.PostSumAggregateInputType | undefined;
}>;
32 changes: 32 additions & 0 deletions lib/prisma/generated/schemas/AggregatePost.schema.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/prisma/generated/schemas/AggregatePost.schema.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions lib/prisma/generated/schemas/AggregateUser.schema.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { z } from 'zod';
export declare const UserAggregateSchema: z.ZodObject<{
orderBy: z.ZodOptional<z.ZodUnion<[z.ZodType<import(".prisma/client").Prisma.UserOrderByWithRelationInput, z.ZodTypeDef, import(".prisma/client").Prisma.UserOrderByWithRelationInput>, z.ZodArray<z.ZodType<import(".prisma/client").Prisma.UserOrderByWithRelationInput, z.ZodTypeDef, import(".prisma/client").Prisma.UserOrderByWithRelationInput>, "many">]>>;
where: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.UserWhereInput, z.ZodTypeDef, import(".prisma/client").Prisma.UserWhereInput>>;
cursor: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.UserWhereUniqueInput, z.ZodTypeDef, import(".prisma/client").Prisma.UserWhereUniqueInput>>;
take: z.ZodOptional<z.ZodNumber>;
skip: z.ZodOptional<z.ZodNumber>;
_count: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodType<import(".prisma/client").Prisma.UserCountAggregateInputType, z.ZodTypeDef, import(".prisma/client").Prisma.UserCountAggregateInputType>]>>;
_min: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.UserMinAggregateInputType, z.ZodTypeDef, import(".prisma/client").Prisma.UserMinAggregateInputType>>;
_max: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.UserMaxAggregateInputType, z.ZodTypeDef, import(".prisma/client").Prisma.UserMaxAggregateInputType>>;
_avg: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.UserAvgAggregateInputType, z.ZodTypeDef, import(".prisma/client").Prisma.UserAvgAggregateInputType>>;
_sum: z.ZodOptional<z.ZodType<import(".prisma/client").Prisma.UserSumAggregateInputType, z.ZodTypeDef, import(".prisma/client").Prisma.UserSumAggregateInputType>>;
}, "strip", z.ZodTypeAny, {
_count?: true | import(".prisma/client").Prisma.UserCountAggregateInputType | undefined;
orderBy?: import(".prisma/client").Prisma.UserOrderByWithRelationInput | import(".prisma/client").Prisma.UserOrderByWithRelationInput[] | undefined;
where?: import(".prisma/client").Prisma.UserWhereInput | undefined;
cursor?: import(".prisma/client").Prisma.UserWhereUniqueInput | undefined;
take?: number | undefined;
skip?: number | undefined;
_min?: import(".prisma/client").Prisma.UserMinAggregateInputType | undefined;
_max?: import(".prisma/client").Prisma.UserMaxAggregateInputType | undefined;
_avg?: import(".prisma/client").Prisma.UserAvgAggregateInputType | undefined;
_sum?: import(".prisma/client").Prisma.UserSumAggregateInputType | undefined;
}, {
_count?: true | import(".prisma/client").Prisma.UserCountAggregateInputType | undefined;
orderBy?: import(".prisma/client").Prisma.UserOrderByWithRelationInput | import(".prisma/client").Prisma.UserOrderByWithRelationInput[] | undefined;
where?: import(".prisma/client").Prisma.UserWhereInput | undefined;
cursor?: import(".prisma/client").Prisma.UserWhereUniqueInput | undefined;
take?: number | undefined;
skip?: number | undefined;
_min?: import(".prisma/client").Prisma.UserMinAggregateInputType | undefined;
_max?: import(".prisma/client").Prisma.UserMaxAggregateInputType | undefined;
_avg?: import(".prisma/client").Prisma.UserAvgAggregateInputType | undefined;
_sum?: import(".prisma/client").Prisma.UserSumAggregateInputType | undefined;
}>;
32 changes: 32 additions & 0 deletions lib/prisma/generated/schemas/AggregateUser.schema.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/prisma/generated/schemas/AggregateUser.schema.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions lib/prisma/generated/schemas/CreateManyMap.schema.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { z } from 'zod';
export declare const MapCreateManySchema: z.ZodObject<{
data: z.ZodUnion<[z.ZodType<import(".prisma/client").Prisma.MapCreateManyInput, z.ZodTypeDef, import(".prisma/client").Prisma.MapCreateManyInput>, z.ZodArray<z.ZodType<import(".prisma/client").Prisma.MapCreateManyInput, z.ZodTypeDef, import(".prisma/client").Prisma.MapCreateManyInput>, "many">]>;
skipDuplicates: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
data: import(".prisma/client").Prisma.MapCreateManyInput | import(".prisma/client").Prisma.MapCreateManyInput[];
skipDuplicates?: boolean | undefined;
}, {
data: import(".prisma/client").Prisma.MapCreateManyInput | import(".prisma/client").Prisma.MapCreateManyInput[];
skipDuplicates?: boolean | undefined;
}>;
13 changes: 13 additions & 0 deletions lib/prisma/generated/schemas/CreateManyMap.schema.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/prisma/generated/schemas/CreateManyMap.schema.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading