app.model.oauth_users module

class app.model.oauth_users.OAuthUsers(*, id=<factory>, created_at, updated_at, provider, provider_user_id, status, apiKey_used)[source]

Bases: SQLModel

Represents a user authenticated via OAuth.

Parameters:
  • id (str)

  • created_at (datetime)

  • updated_at (datetime)

  • provider (str)

  • provider_user_id (str)

  • status (str)

  • apiKey_used (str)

provider

The OAuth provider.

Type:

str

provider_user_id

The OAuth user ID.

Type:

str

status

The status of the user (e.g., ‘active’, ‘inactive’).

Type:

str

__str__()[source]

Return a string representation of the object.

__repr__()[source]

Return a string representation of the object.

__eq__()[source]

Compare if two objects are equal.

__hash__()[source]

Return the hash of the object.

model_config: ClassVar[ConfigDict] = {'from_attributes': True, 'read_from_attributes': True, 'read_with_orm_mode': True, 'registry': PydanticUndefined, 'table': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].