mirror of
https://github.com/mentos1386/zdravko.git
synced 2024-11-29 02:31:17 +00:00
21 lines
373 B
Go
21 lines
373 B
Go
|
package models
|
||
|
|
||
|
type HookState string
|
||
|
|
||
|
const (
|
||
|
HookStateActive HookState = "ACTIVE"
|
||
|
HookStatePaused HookState = "PAUSED"
|
||
|
HookStateUnknown HookState = "UNKNOWN"
|
||
|
)
|
||
|
|
||
|
type Hook struct {
|
||
|
CreatedAt *Time `db:"created_at"`
|
||
|
UpdatedAt *Time `db:"updated_at"`
|
||
|
|
||
|
Id string `db:"id"`
|
||
|
Name string `db:"name"`
|
||
|
|
||
|
Schedule string `db:"schedule"`
|
||
|
Script string `db:"script"`
|
||
|
}
|