thunderbird_accounts.mail.models
Stalwart models live here Schema is based on init scripts: https://stalw.art/docs/storage/backends/postgresql#initialization-statements
Classes
|
Slim representation of a Stalwart individual account (inbox). |
|
Models that link to Stalwart principal objects should use this as the base class |
|
Slim representation of a Stalwart email address. |
|
A TextArea field with a CharField-sized widget |
- class thunderbird_accounts.mail.models.SmallTextField(*args, db_collation=None, **kwargs)[source]
Bases:
TextFieldA TextArea field with a CharField-sized widget
- class thunderbird_accounts.mail.models.BaseStalwartObject(*args, **kwargs)[source]
Bases:
BaseModelModels that link to Stalwart principal objects should use this as the base class
- Parameters:
uuid (UUIDField) – Primary key: Uuid
created_at (DateTimeField) – Created at
updated_at (DateTimeField) – Updated at
stalwart_id (CharField) – Stalwart id. The unique ID in Stalwart. (Note: That this isn’t useful for anything besides verifying that it exists in Stalwart.
stalwart_created_at (DateTimeField) – Stalwart created at. Date that this object was created by this system in Stalwart.
stalwart_updated_at (DateTimeField) – Stalwart updated at. Date that this object was last updated by this system in Stalwart.
- class thunderbird_accounts.mail.models.Account(*args, **kwargs)[source]
Bases:
BaseStalwartObjectSlim representation of a Stalwart individual account (inbox).
- Parameters:
uuid (UUIDField) – Primary key: Uuid
created_at (DateTimeField) – Created at
updated_at (DateTimeField) – Updated at
stalwart_id (CharField) – Stalwart id. The unique ID in Stalwart. (Note: That this isn’t useful for anything besides verifying that it exists in Stalwart.
stalwart_created_at (DateTimeField) – Stalwart created at. Date that this object was created by this system in Stalwart.
stalwart_updated_at (DateTimeField) – Stalwart updated at. Date that this object was last updated by this system in Stalwart.
name (SmallTextField) – Name. The account name (this must be unique.)
active (BooleanField) – Active
Relationship fields:
- Parameters:
user (
ForeignKeytoUser) – User (related name:account)
Reverse relationships:
- Parameters:
email (Reverse
ForeignKeyfromEmail) – All emails of this account (related name ofaccount)
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- class thunderbird_accounts.mail.models.Email(*args, **kwargs)[source]
Bases:
BaseModelSlim representation of a Stalwart email address. one primary, and many aliases all connected to one account (inbox).
- Parameters:
uuid (UUIDField) – Primary key: Uuid
created_at (DateTimeField) – Created at
updated_at (DateTimeField) – Updated at
address (SmallTextField) – Address. Full email address.
type (TextField) – Type
Relationship fields:
- Parameters:
account (
ForeignKeytoAccount) – Account (related name:email)
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned