fixed gorm shema for correct deletion and many2many relation beetween users and devices
This commit is contained in:
@@ -16,5 +16,6 @@ func AutoMigrate(db *gorm.DB) error {
|
||||
&models.User{},
|
||||
&models.Device{},
|
||||
&models.Record{},
|
||||
&models.UserDevice{},
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user