migrate.go 228 B

1234567891011121314
  1. package database
  2. import (
  3. "gorm.io/gorm"
  4. "project_management/app/model"
  5. )
  6. func Migrate(db *gorm.DB) {
  7. db.Set("gorm:table_options", "ENGINE=InnoDB").AutoMigrate(
  8. model.Apply{},
  9. model.User{},
  10. model.Capabilities{},
  11. )
  12. }