fixed gorm shema for correct deletion and many2many relation beetween users and devices

This commit is contained in:
tdv
2025-09-15 16:59:35 +03:00
parent 673971deb8
commit aa60651610
5 changed files with 17 additions and 5 deletions

View File

@@ -16,5 +16,6 @@ func AutoMigrate(db *gorm.DB) error {
&models.User{},
&models.Device{},
&models.Record{},
&models.UserDevice{},
)
}