add database

This commit is contained in:
Florian Hoss 2022-03-30 13:51:51 +02:00
parent 741861bca4
commit 9c6ddf6c60
2 changed files with 9 additions and 4 deletions

View file

@ -6,6 +6,8 @@ import (
"gorm.io/gorm"
)
// GCC Toolchain for Windows: https://jmeubank.github.io/tdm-gcc/
func migrateInitial(orm *gorm.DB) {
err := orm.AutoMigrate(&User{})
if err != nil {