Introduce models.Entity type

This commit is contained in:
Philipp Wolfer 2023-12-10 14:22:38 +01:00
parent a59a542967
commit c4587b80af
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
6 changed files with 18 additions and 9 deletions

View file

@ -20,13 +20,14 @@ package storage
import (
"time"
"go.uploadedlobster.com/scotty/internal/models"
"gorm.io/datatypes"
)
type ImportTimestamp struct {
SourceService string `gorm:"primaryKey"`
TargetService string `gorm:"primaryKey"`
Entity string `gorm:"primaryKey"`
SourceService string `gorm:"primaryKey"`
TargetService string `gorm:"primaryKey"`
Entity models.Entity `gorm:"primaryKey"`
CreatedAt time.Time
UpdatedAt time.Time
Timestamp time.Time `gorm:"default:'1970-01-01T00:00:00'"`