go-watch/models.go
2022-07-22 19:01:45 +00:00

28 lines
308 B
Go

package main
import (
"gorm.io/gorm"
)
type Watch struct {
gorm.Model
Name string
Interval int
URLs []URL
}
type URL struct {
gorm.Model
WatchID uint
Name string
URL string
Queries []Query
}
type Query struct {
gorm.Model
URLID uint
Name string
Type string
Query string
}