add seeding demo
This commit is contained in:
10
contracts/seeder.go
Normal file
10
contracts/seeder.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package contracts
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
// Migration route interface
|
||||
type Seeder interface {
|
||||
Times() uint
|
||||
Table() string
|
||||
Run(*gorm.DB)
|
||||
}
|
||||
Reference in New Issue
Block a user