diff options
| author | Saeid <43953720+surbiks@users.noreply.github.com> | 2024-01-29 23:37:20 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-29 23:37:20 +0300 |
| commit | 6c0775b12055e4546cb0fd86e1d8d569d886eefa (patch) | |
| tree | 8f7ee64e54f83f9c563a178c4afaee10e072eddc /database/db.go | |
| parent | 9fbaede59f87dd9d8b77479a3fb295c3c882630e (diff) | |
Show outbound traffic in outbounds table (#1711)
* store outbound traffic in database
* show outbound traffic in outbounds table
* add refresh button
Diffstat (limited to 'database/db.go')
| -rw-r--r-- | database/db.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/database/db.go b/database/db.go index 8bd0fb49..c75953f0 100644 --- a/database/db.go +++ b/database/db.go @@ -21,6 +21,7 @@ var db *gorm.DB var initializers = []func() error{ initUser, initInbound, + initOutbound, initSetting, initInboundClientIps, initClientTraffic, @@ -51,6 +52,10 @@ func initInbound() error { return db.AutoMigrate(&model.Inbound{}) } +func initOutbound() error { + return db.AutoMigrate(&model.OutboundTraffics{}) +} + func initSetting() error { return db.AutoMigrate(&model.Setting{}) } |
