- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Many2Many (0.14 sec)
-
tests/joins_table_test.go
package tests_test import ( "testing" "time" "gorm.io/gorm" "gorm.io/gorm/clause" ) type Person struct { ID int Name string Addresses []Address `gorm:"many2many:person_addresses;"` DeletedAt gorm.DeletedAt } type Address struct { ID uint Name string } type PersonAddress struct { PersonID int AddressID int CreatedAt time.Time DeletedAt gorm.DeletedAt }
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Thu Sep 10 13:46:18 GMT 2020 - 3.5K bytes - Viewed (0)