15 lines
351 B
Go
15 lines
351 B
Go
|
package models
|
||
|
|
||
|
type UserSource struct {
|
||
|
UserID string `gorm:"primaryKey"`
|
||
|
Source Source `gorm:"foreignKey:ID;references:SourceID"`
|
||
|
SourceID string `gorm:"primaryKey"`
|
||
|
ScrapeTimeInterval string
|
||
|
AccountUsername string
|
||
|
AccountID string
|
||
|
}
|
||
|
|
||
|
func (UserSource) TableName() string {
|
||
|
return "UserSource"
|
||
|
}
|