Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEmbeddedStructForCustomizedNamingStrategy (0.38 sec)

  1. schema/schema_test.go

    	case 1:
    		prefix = s[0][:3]
    	case 2:
    		prefix = s[0][:1] + s[1][:2]
    	default:
    		prefix = s[0][:1] + s[1][:1] + s[2][:1]
    	}
    	return prefix + "_" + baseColumnName
    }
    
    func TestEmbeddedStructForCustomizedNamingStrategy(t *testing.T) {
    	type CorpBase struct {
    		gorm.Model
    		OwnerID string
    	}
    
    	type Company struct {
    		ID      int
    		OwnerID int
    		Name    string
    		Ignored string `gorm:"-"`
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top