initial commit
This commit is contained in:
25
internal/domain/auth/account.go
Normal file
25
internal/domain/auth/account.go
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user