Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UserSeedData = []*UserSeedPayload{ { XID: "8ea778bc-3958-4e9f-8fa2-a8a9ad8f2ab1", Name: "admin", Email: "admin@gmail.com", Password: "p4ssw0rd", Role: constant.ADMIN, }, { XID: "c14c4865-428a-410d-a20d-6c90feb19d77", Name: "admin.one", Email: "admin.one@gmail.com", Password: "p4ssw0rd", Role: constant.ADMIN, }, }
Functions ¶
func ExecuteMysqlUserDatabaseSeederRepository ¶
func ExecuteMysqlUserDatabaseSeederRepository(isRebuildData config.IsRebuildDataDBSeederMysqlUser, db config.MysqlDatabaseSQLConnection)
Types ¶
type UserDatabaseSeederSQLRepository ¶
type UserDatabaseSeederSQLRepository struct { gorm_seeder.SeederAbstract // contains filtered or unexported fields }
func InitMysqlUserDatabaseSeederSQLRepository ¶
func InitMysqlUserDatabaseSeederSQLRepository(cfg gorm_seeder.SeederConfiguration) *UserDatabaseSeederSQLRepository
type UserSeedPayload ¶
type UserSeedPayload struct { XID string `validate:"required,uuid4"` Name string `validate:"required"` Email string `validate:"required,email"` Password string `validate:"required,min=8"` Role constant.UserRole `validate:"required,oneof=ADMIN"` }
func (*UserSeedPayload) CustomValidatePayload ¶
func (r *UserSeedPayload) CustomValidatePayload() error
Click to show internal directories.
Click to hide internal directories.