* TP-0000 | SlackBot Changes * TP-000 | Confluene Page column * TP-0000 | comments * TP-0000 | properties fix * TP-0000 | func refactor * TP-0000 | minor changes Co-authored-by: ravi chandora <ravi.chandora@navi.com>
17 lines
396 B
Go
17 lines
396 B
Go
package shedlock
|
|
|
|
import "time"
|
|
|
|
type ShedlockEntity struct {
|
|
Name string `gorm:"name"`
|
|
LockUntil time.Time `gorm:"lock_until"`
|
|
LockedAt time.Time `gorm:"locked_at"`
|
|
LockedBy string `gorm:"locked_by" hostname+name`
|
|
LockedValue bool `gorm:"locked_value"`
|
|
UnlockedBy string `gorm:"unlocked_by"`
|
|
}
|
|
|
|
func (ShedlockEntity) TableName() string {
|
|
return "shedlock"
|
|
}
|