- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for TestCompositePrimaryKeyWithAutoIncrement (0.22 seconds)
-
schema/schema_test.go
checkSchemaField(t, cropSchema, &f, func(f *schema.Field) { if f.Name != "Ignored" { f.Creatable = true f.Updatable = true f.Readable = true } }) } } func TestCompositePrimaryKeyWithAutoIncrement(t *testing.T) { type Product struct { ProductID uint `gorm:"primaryKey;autoIncrement"` LanguageCode uint `gorm:"primaryKey"` Code string Name string }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Aug 28 02:57:17 GMT 2025 - 13.3K bytes - Click Count (0)