From 69890148a59e71e018cadbc3699dd216187bc484 Mon Sep 17 00:00:00 2001 From: GogaCoder Date: Tue, 31 Dec 2024 10:43:13 +0700 Subject: [PATCH] refactor: delete unnessesary code --- models/testdata.go | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 models/testdata.go diff --git a/models/testdata.go b/models/testdata.go deleted file mode 100644 index 330865a..0000000 --- a/models/testdata.go +++ /dev/null @@ -1,29 +0,0 @@ -package null_safety - -type Order1 struct { - Id uint `gorm:"primaryKey"` - Description string - // not nullable - not nullable - CustomerId uint `gorm:"not null;foreignKey:CustomerId;"` -} - -type Order2 struct { - Id uint `gorm:"primaryKey"` - Description string - // nullable - nullable - CustomerId *uint `gorm:"null;foreignKey:CustomerId;"` -} - -type Order3 struct { - Id uint `gorm:"primaryKey"` - // nullable - unspecified - Status *string - Description string -} - -type Order4 struct { - Id uint `gorm:"primaryKey"` - // not nullable - unspecified - Status *string - Description string -}