Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
golang.org/x/arch v0.8.0 // indirect
Expand Down
62 changes: 0 additions & 62 deletions internal/adapters/db/cart.go

This file was deleted.

79 changes: 0 additions & 79 deletions internal/adapters/db/cart_products.go

This file was deleted.

9 changes: 4 additions & 5 deletions internal/adapters/db/customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ type PostgresCustomerRepository struct {

type CustomerPostgres struct {
BaseModel
Name string `gorm:"name"`
Cpf string `gorm:"uniqueIndex" json:"cpf"`
Email string `gorm:"email"`
Age int `gorm:"age"`
Orders []OrderPostgres `gorm:"foreignKey:ClientID"`
Name string `gorm:"name"`
Cpf string `gorm:"uniqueIndex" json:"cpf"`
Email string `gorm:"email"`
Age int `gorm:"age"`
}

func (cp CustomerPostgres) TableName() string {
Expand Down
151 changes: 0 additions & 151 deletions internal/adapters/db/order.go

This file was deleted.

66 changes: 0 additions & 66 deletions internal/adapters/db/order_products.go

This file was deleted.

Loading