@@ -33,7 +33,7 @@ If this tool helps you build better applications, please consider supporting its
3333
3434Your sponsorship helps maintain and improve this project. Thank you! 🙏
3535
36- ## 🧪 Beta Testing - v6.0.0-beta
36+ ## 🧪 Beta Testing - v6.0.0-beta.1
3737
3838** Try the latest beta with enhanced Prisma 6 support!**
3939
@@ -137,12 +137,12 @@ if (errors.length > 0) {
137137
138138| Prisma Version | Generator Version | Maintained |
139139| ----------------| -------------------| ------------|
140- | ** v6.x** | ** v6.0.0-beta** | ✅ ** Active** |
140+ | ** v6.x** | ** v6.0.0-beta.1 ** | ✅ ** Active** |
141141| v5.x | v5.0.0 | ❌ No |
142142| v4.x | v0.2.0 - v4.x | ❌ No |
143143| v2-3.x | v0.1.x | ❌ No |
144144
145- ### 🧪 Beta Release - v6.0.0-beta
145+ ### 🧪 Beta Release - v6.0.0-beta.1
146146
147147** Currently in development!** This version brings full Prisma 6 compatibility:
148148
@@ -175,7 +175,7 @@ export class User {
175175
176176 @IsOptional ()
177177 @IsString ()
178- name? : string ;
178+ name? : string | null ;
179179
180180 @IsDefined ()
181181 posts! : Post [];
@@ -206,7 +206,7 @@ export class Post {
206206
207207 @IsOptional ()
208208 @IsString ()
209- content? : string ;
209+ content? : string | null ;
210210
211211 @IsDefined ()
212212 @IsBoolean ()
@@ -217,11 +217,11 @@ export class Post {
217217 viewCount! : number ;
218218
219219 @IsOptional ()
220- author? : User ;
220+ author? : User | null ;
221221
222222 @IsOptional ()
223223 @IsInt ()
224- authorId? : number ;
224+ authorId? : number | null ;
225225
226226 @IsDefined ()
227227 @IsNumber ()
@@ -319,14 +319,14 @@ export class User {
319319
320320 @IsOptional ()
321321 @IsString ()
322- name? : string ;
322+ name? : string | null ;
323323
324324 @IsDefined ()
325325 @IsEnum (Role )
326326 role! : Role ;
327327
328328 @IsOptional ()
329- profile? : Profile ;
329+ profile? : Profile | null ;
330330
331331 @IsDefined ()
332332 posts! : Post [];
@@ -374,7 +374,7 @@ The generator intelligently maps Prisma types to class-validator decorators:
374374| ` Json ` | ` any ` | ` @IsDefined() ` |
375375| ` String[] ` | ` string[] ` | ` @IsArray() ` |
376376| ` Enum ` | ` EnumType ` | ` @IsEnum(EnumType) ` |
377- | Optional fields | ` type \| undefined ` | ` @IsOptional() ` |
377+ | Optional fields | ` type \| null ` | ` @IsOptional() ` |
378378| Required fields | ` type ` | ` @IsDefined() ` |
379379
380380## 🤝 Contributing
0 commit comments