Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSameForeignKey (0.24 sec)

  1. schema/relationship_test.go

    		Name: "Company", Type: schema.BelongsTo, Schema: "", FieldSchema: "Company",
    		References: []Reference{
    			{"ID", "Company", "CompanyID", "", "", false},
    		},
    	})
    }
    
    func TestSameForeignKey(t *testing.T) {
    	type UserAux struct {
    		gorm.Model
    		Aux  string
    		UUID string
    	}
    
    	type User struct {
    		gorm.Model
    		Name string
    		UUID string
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
Back to top