add seeding demo

This commit is contained in:
yanghao05
2023-01-29 17:56:51 +08:00
parent e07f8a67a4
commit f173d851c2
3 changed files with 121 additions and 0 deletions

10
contracts/seeder.go Normal file
View File

@@ -0,0 +1,10 @@
package contracts
import "gorm.io/gorm"
// Migration route interface
type Seeder interface {
Times() uint
Table() string
Run(*gorm.DB)
}