snapshot: Lock instances before making snapshot

This commit is contained in:
Tom Wiesing 2022-10-12 16:18:14 +02:00
parent f1c5d518c2
commit 5e7c5b2d23
No known key found for this signature in database
11 changed files with 167 additions and 0 deletions

11
internal/models/lock.go Normal file
View 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
}