Skip to content

Commit

Permalink
🎨 delete some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
iChemy committed Dec 18, 2024
1 parent e68dbea commit 1861685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 43 deletions.
37 changes: 2 additions & 35 deletions infra/db/converter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions infra/db/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ var tables = []interface{}{
GroupAdmin{},
Tag{},
Room{},
// RoomAdmin{},
Event{},
EventTag{}, // Eventより下にないと、overrideされる
EventAdmin{},
Expand Down Expand Up @@ -79,13 +78,6 @@ type UserBody struct {
User User `gorm:"->; foreignKey:ID; constraint:OnDelete:CASCADE;" cvt:"->"`
}

// type RoomAdmin struct {
// UserID uuid.UUID `gorm:"type:char(36); primaryKey"`
// RoomID uuid.UUID `gorm:"type:char(36); primaryKey"`
// User User `gorm:"->; foreignKey:UserID; constraint:OnDelete:CASCADE;" cvt:"->"`
// Model `cvt:"-"`
// }

//go:generate go run github.com/fuji8/gotypeconverter/cmd/gotypeconverter@latest -s Room -d domain.Room -o converter.go .
//go:generate go run github.com/fuji8/gotypeconverter/cmd/gotypeconverter@latest -s []*Room -d []*domain.Room -o converter.go .
type Room struct {
Expand Down

0 comments on commit 1861685

Please sign in to comment.