@@ -202,6 +202,10 @@ func (i *importer) interfaceImports() fileImports {
202202 if uses ("uuid.UUID" ) && ! overrideUUID {
203203 pkg [ImportSpec {Path : "github.com/google/uuid" }] = struct {}{}
204204 }
205+ _ , overrideNullUUID := overrideTypes ["uuid.NullUUID" ]
206+ if uses ("uuid.NullUUID" ) && ! overrideNullUUID {
207+ pkg [ImportSpec {Path : "github.com/google/uuid" }] = struct {}{}
208+ }
205209
206210 // Custom imports
207211 for _ , o := range i .Settings .Overrides {
@@ -263,6 +267,10 @@ func (i *importer) modelImports() fileImports {
263267 if i .usesType ("uuid.UUID" ) && ! overrideUUID {
264268 pkg [ImportSpec {Path : "github.com/google/uuid" }] = struct {}{}
265269 }
270+ _ , overrideNullUUID := overrideTypes ["uuid.NullUUID" ]
271+ if i .usesType ("uuid.NullUUID" ) && ! overrideNullUUID {
272+ pkg [ImportSpec {Path : "github.com/google/uuid" }] = struct {}{}
273+ }
266274
267275 for _ , o := range i .Settings .Overrides {
268276 if o .GoBasicType || o .GoTypeName == "" {
@@ -408,6 +416,10 @@ func (i *importer) queryImports(filename string) fileImports {
408416 if uses ("uuid.UUID" ) && ! overrideUUID {
409417 pkg [ImportSpec {Path : "github.com/google/uuid" }] = struct {}{}
410418 }
419+ _ , overrideNullUUID := overrideTypes ["uuid.NullUUID" ]
420+ if uses ("uuid.NullUUID" ) && ! overrideNullUUID {
421+ pkg [ImportSpec {Path : "github.com/google/uuid" }] = struct {}{}
422+ }
411423
412424 // Custom imports
413425 for _ , o := range i .Settings .Overrides {
0 commit comments