Complete 4-layer notification module as reference template: domain → infrastructure → application → interfaces. 10 unit tests covering all service methods with mock repository.
12 lines
186 B
Go
12 lines
186 B
Go
package infrastructure
|
|
|
|
import (
|
|
"mengstack/internal/modules/notification/domain"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
func Migrate(db *gorm.DB) error {
|
|
return db.AutoMigrate(&domain.Notification{})
|
|
}
|