support faker

This commit is contained in:
yanghao05
2023-01-30 10:49:09 +08:00
parent c8091a5d7e
commit fd51d14037
7 changed files with 91 additions and 13 deletions

View File

@@ -1,8 +1,11 @@
package contracts
import "gorm.io/gorm"
import (
"github.com/brianvoe/gofakeit/v6"
"gorm.io/gorm"
)
// Migration route interface
type Seeder interface {
Run(*gorm.DB)
Run(*gofakeit.Faker, *gorm.DB)
}