You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
synctv/internal/model/oauth2.go

17 lines
440 B
Go

2 years ago
package model
import (
"time"
2 years ago
"github.com/synctv-org/synctv/internal/provider"
)
type UserProvider struct {
ID uint `gorm:"primarykey"`
CreatedAt time.Time
UpdatedAt time.Time
2 years ago
UserID uint `gorm:"not null"`
Provider provider.OAuth2Provider `gorm:"not null;uniqueIndex:provider_user_id"`
ProviderUserID uint `gorm:"not null;uniqueIndex:provider_user_id"`
}