You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ims/database/system/202409291240_01_initialize_...

22 lines
382 B

2 months ago
package system
import (
"ims/app/models"
"github.com/go-gormigrate/gormigrate/v2"
"gorm.io/gorm"
)
var m202409291240_01_initialize_database = gormigrate.Migration{
ID: "202409291240_01_initialize_database",
Migrate: func(tx *gorm.DB) error {
return tx.AutoMigrate(
&models.Account{},
&models.Tenant{},
)
},
Rollback: func(tx *gorm.DB) error {
return nil
},
}