zerolin1024 commited on
Commit
bb3cd77
·
verified ·
1 Parent(s): c2a4b55

Upload 15 files

Browse files
Files changed (1) hide show
  1. models/monitor.go +2 -1
models/monitor.go CHANGED
@@ -4,7 +4,8 @@ import "gorm.io/gorm"
4
 
5
  type Monitor struct {
6
  gorm.Model
7
- Name string `json:"name"`
 
8
  URL string `json:"url"`
9
  Interval uint `json:"interval"` // Interval in seconds
10
  Status string `json:"status"` // "up", "down", "pending"
 
4
 
5
  type Monitor struct {
6
  gorm.Model
7
+ DeletedAt gorm.DeletedAt `gorm:"index"`
8
+ Name string `json:"name"`
9
  URL string `json:"url"`
10
  Interval uint `json:"interval"` // Interval in seconds
11
  Status string `json:"status"` // "up", "down", "pending"