26 lines
508 B
Go
26 lines
508 B
Go
package auth
|
|
|
|
import (
|
|
"encoding/json"
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
|
|
"base/internal/pkg/oauth"
|
|
)
|
|
|
|
type Account struct {
|
|
ID uuid.UUID
|
|
UserID uuid.UUID
|
|
Provider oauth.Provider
|
|
Password *string
|
|
AccessToken *string
|
|
RefreshToken *string
|
|
AccessTokenExpiry *time.Time
|
|
RefreshTokenExpiry *time.Time
|
|
Scope []string
|
|
Meta json.RawMessage
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|