mirror of
https://github.com/warmbly/warmbly.git
synced 2026-10-15 00:02:42 +00:00
44 lines
971 B
Go
44 lines
971 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
const ManagedConsentProtocol = 1
|
|
|
|
type CloudManagedConsent struct {
|
|
ID uuid.UUID
|
|
OrganizationID uuid.UUID
|
|
UserID *uuid.UUID
|
|
InstanceID *uuid.UUID
|
|
RemoteID *uuid.UUID
|
|
SessionHash *string
|
|
Kind string
|
|
Provider InboxProvider
|
|
CloudAccountID *uuid.UUID
|
|
PlannedAccountID *uuid.UUID
|
|
AccountID *uuid.UUID
|
|
State string
|
|
CreatedAt time.Time
|
|
ExpiresAt time.Time
|
|
}
|
|
|
|
type PoolLinkManagedOperation struct {
|
|
ActivationPending bool
|
|
ID uuid.UUID
|
|
OrganizationID uuid.UUID
|
|
InstanceID *uuid.UUID
|
|
RemoteID *uuid.UUID
|
|
SessionHash *string
|
|
Kind string
|
|
Provider InboxProvider
|
|
PlannedAccountID *uuid.UUID
|
|
AccountID *uuid.UUID
|
|
State string
|
|
CreatedAt time.Time
|
|
ExpiresAt time.Time
|
|
CompletedAt *time.Time
|
|
}
|