package models import "time" type UserSource struct { User User `gorm:"foreignKey:ID;references:UserID"` UserID string `gorm:"primaryKey"` Source Source `gorm:"foreignKey:ID;references:SourceID"` SourceID string `gorm:"primaryKey"` ScrapeTimeInterval string AccountUsername string AccountID string LastScrapeTime time.Time AccountValidate bool AccountValidationKey string } func (UserSource) TableName() string { return "UserSource" }