snapshot: Lock instances before making snapshot
This commit is contained in:
parent
f1c5d518c2
commit
5e7c5b2d23
11 changed files with 167 additions and 0 deletions
11
internal/models/lock.go
Normal file
11
internal/models/lock.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package models
|
||||
|
||||
// LockTable is the name of the table the 'Metadatum' model is stored in.
|
||||
const LockTable = "locks"
|
||||
|
||||
// Lock represents a log on WissKI Instances
|
||||
type Lock struct {
|
||||
Pk uint `gorm:"column:pk;primaryKey"`
|
||||
|
||||
Slug string `gorm:"column:slug;not null"` // slug of instance
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue