@@ -33,7 +33,7 @@ If this tool helps you build better applications, please consider supporting its
33
33
34
34
Your sponsorship helps maintain and improve this project. Thank you! 🙏
35
35
36
- ## 🧪 Beta Testing - v6.0.0-beta
36
+ ## 🧪 Beta Testing - v6.0.0-beta.1
37
37
38
38
** Try the latest beta with enhanced Prisma 6 support!**
39
39
@@ -137,12 +137,12 @@ if (errors.length > 0) {
137
137
138
138
| Prisma Version | Generator Version | Maintained |
139
139
| ----------------| -------------------| ------------|
140
- | ** v6.x** | ** v6.0.0-beta** | ✅ ** Active** |
140
+ | ** v6.x** | ** v6.0.0-beta.1 ** | ✅ ** Active** |
141
141
| v5.x | v5.0.0 | ❌ No |
142
142
| v4.x | v0.2.0 - v4.x | ❌ No |
143
143
| v2-3.x | v0.1.x | ❌ No |
144
144
145
- ### 🧪 Beta Release - v6.0.0-beta
145
+ ### 🧪 Beta Release - v6.0.0-beta.1
146
146
147
147
** Currently in development!** This version brings full Prisma 6 compatibility:
148
148
@@ -175,7 +175,7 @@ export class User {
175
175
176
176
@IsOptional ()
177
177
@IsString ()
178
- name? : string ;
178
+ name? : string | null ;
179
179
180
180
@IsDefined ()
181
181
posts! : Post [];
@@ -206,7 +206,7 @@ export class Post {
206
206
207
207
@IsOptional ()
208
208
@IsString ()
209
- content? : string ;
209
+ content? : string | null ;
210
210
211
211
@IsDefined ()
212
212
@IsBoolean ()
@@ -217,11 +217,11 @@ export class Post {
217
217
viewCount! : number ;
218
218
219
219
@IsOptional ()
220
- author? : User ;
220
+ author? : User | null ;
221
221
222
222
@IsOptional ()
223
223
@IsInt ()
224
- authorId? : number ;
224
+ authorId? : number | null ;
225
225
226
226
@IsDefined ()
227
227
@IsNumber ()
@@ -319,14 +319,14 @@ export class User {
319
319
320
320
@IsOptional ()
321
321
@IsString ()
322
- name? : string ;
322
+ name? : string | null ;
323
323
324
324
@IsDefined ()
325
325
@IsEnum (Role )
326
326
role! : Role ;
327
327
328
328
@IsOptional ()
329
- profile? : Profile ;
329
+ profile? : Profile | null ;
330
330
331
331
@IsDefined ()
332
332
posts! : Post [];
@@ -374,7 +374,7 @@ The generator intelligently maps Prisma types to class-validator decorators:
374
374
| ` Json ` | ` any ` | ` @IsDefined() ` |
375
375
| ` String[] ` | ` string[] ` | ` @IsArray() ` |
376
376
| ` Enum ` | ` EnumType ` | ` @IsEnum(EnumType) ` |
377
- | Optional fields | ` type \| undefined ` | ` @IsOptional() ` |
377
+ | Optional fields | ` type \| null ` | ` @IsOptional() ` |
378
378
| Required fields | ` type ` | ` @IsDefined() ` |
379
379
380
380
## 🤝 Contributing
0 commit comments