Added route for saving device info

This commit is contained in:
Nedim
2023-09-12 18:28:18 +02:00
parent 32c0cd1ffc
commit 386f051d67
7 changed files with 74 additions and 18 deletions

View File

@@ -34,7 +34,7 @@ func Init() error{
return err
}
//TODO AUTOMIGRATE models once we have them
db.AutoMigrate(&models.User{}, &models.Company{}, &models.Device{})
db.AutoMigrate(&models.User{}, &models.Company{}, &models.Device{}, &models.DeviceInfo{})
return nil