package boot import ( "passport/app/models" "passport/client/mysql" ) func InitModel() error { var err = mysql.Client.Master().Set("gorm:table_options", "ENGINE=InnoDB CHARSET=utf8mb4 auto_increment=1"). AutoMigrate( &models.TAdmin{}, &models.File{}, ).Error return err }