The wright-way Database#
wright_way.Animal
#
Bases: SQLModel
ORM model for the Animal table.
This model represents a single animal at Wright Way Rescue, ready for adoption. It
closely mirrors the pydantic model used in the Wright Way Scraper:
wright_way_scraper.models.Animal.
Attributes:
| Name | Type | Description |
|---|---|---|
id |
UUID
|
The UUID of the animal, this is the primary key and is generated automatically. This is for internal use, and does not bear any relation to the petango_id. Defaults to uuid4. |
petango_id |
int
|
The ID of the animal on Petango. This is the unique identifier for the animal on both the Wright Way website and the Petango database. |
name |
str
|
The name of the animal. |
species |
str
|
The species of the animal, e.g. "Cat" or "Dog". |
breed |
str
|
The breed of the animal. |
birthdate |
datetime | None
|
The birthdate of the animal. |
gender |
str
|
The gender of the animal, e.g. "Male" or "Female". |
size |
str
|
The size of the animal, e.g. "Small", "Medium", "Large", "XL". |
color |
str
|
The color of the animal. |
declawed |
str
|
Whether the animal is declawed, e.g. "Yes", "No", "Unknown". |
housetrained |
str
|
Whether the animal is housetrained, e.g. "Yes", "No", "Unknown". |
location |
str
|
The Wright Way facility location of the animal. |
intake_date |
datetime
|
The date the animal was taken in by the shelter. |
stage |
str
|
The stage of the animal, e.g. "Reserved", "Available". |
url |
str
|
The URL of the animal's profile on the Wright Way website. |
profile_url |
str
|
The URL of the profile image of the animal. |
created_at |
datetime
|
The datetime the record was created. Defaults to datetime.now. |
updated_at |
datetime
|
The datetime the record was last updated. Should be updated whenever the record is updated. Defaults to datetime.now. |