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