- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestCompositePrimaryKeyWithAutoIncrement (0.22 sec)
-
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 }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jun 20 12:19:31 UTC 2024 - 13.3K bytes - Viewed (0)