Add metadata types

This commit is contained in:
Fred Boniface 2024-05-02 15:18:33 +01:00
parent ab34be5063
commit 8c9a8769bd
1 changed files with 17 additions and 0 deletions

17
pkg/database/metadata.go Normal file
View File

@ -0,0 +1,17 @@
package database
import "time"
type PisMetadata struct {
Type string `json:"type"`
LastUpdate string `json:"lastUpdate"`
LastVersion string `json:"lastVersion"`
}
type CifMetadata struct {
Type string `json:"type"`
LastSequence int64 `json:"lastSequence"`
LastTimestamp int64 `json:"lastTimestamp"`
LastUpdate time.Time `json:"lastUpdate"`
LastUpdateType string `json:"lastUpdateType"`
}