# underfmc/vet_mate_prework architecture

> Architecture diagram of the GitHub repository underfmc/vet_mate_prework, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/underfmc/vet_mate_prework
- Repository: https://github.com/underfmc/vet_mate_prework

## Overview

Vetmate is a Django pet-care application. Its central workflow lets an owner manage pets and their health records, including vaccination and feeding schedules, and find veterinarians or record visits. Other visible product areas include accounts and subscriptions, a product catalog, homepage listings, and posts/about pages. The graph follows relationships shown in sampled source and the SOURCE INDEX; the README provides no further product detail, so unsampled capabilities and routing links are not inferred.

Main entry points: [`vet_mate/pets/models.py`](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/pets/models.py) (Pets and health), [`vet_mate/vet_mate/settings.py`](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/vet_mate/settings.py) (SQLite database), [`vet_mate/pets/views.py`](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/pets/views.py) (Pet management), [`vet_mate/vets/models.py`](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/vets/models.py) (Vets and clinics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pet_care["Pet care"]
  node_pet_views["Pet management<br/>[views.py]"]
  node_pet_forms["Pet forms<br/>[forms.py]"]
  node_pet_domain["Pets and health<br/>[models.py]"]
  node_pet_utils["Health reports<br/>[utils.py]"]
end

subgraph group_vet_services["Veterinary services"]
  node_vet_views["Vet discovery and visits<br/>[views.py]"]
  node_vet_forms["Visit forms<br/>[forms.py]"]
  node_vet_domain["Vets and clinics<br/>[models.py]"]
end

subgraph group_accounts["Accounts"]
  node_user_views["Profiles and subscriptions<br/>[views.py]"]
  node_user_forms["Account forms<br/>[forms.py]"]
  node_user_domain["Users and plans<br/>[models.py]"]
end

subgraph group_catalog_content["Catalog and content"]
  node_shop_views["Product catalog<br/>[views.py]"]
  node_shop_domain["Products and sponsors<br/>[models.py]"]
  node_homepage["Homepage listings<br/>[views.py]"]
  node_posts["Posts<br/>[views.py]"]
  node_about["About pages<br/>[views.py]"]
end

subgraph group_platform["Platform"]
  node_validators["Shared validation<br/>[validators.py]"]
  node_database[("SQLite database<br/>[settings.py]")]
end

node_owner(("Pet owner"))
node_geocoder{{"Yandex geocoder"}}

node_owner -->|"manages pets"| node_pet_views
node_pet_views -->|"validates input"| node_pet_forms
node_pet_views -->|"reads and updates"| node_pet_domain
node_pet_views -->|"records visits"| node_vet_domain
node_pet_views -->|"generates report"| node_pet_utils
node_pet_forms -->|"builds forms"| node_pet_domain
node_owner -->|"finds and books"| node_vet_views
node_vet_views -->|"validates visits"| node_vet_forms
node_vet_views -->|"reads and records"| node_vet_domain
node_vet_views -->|"filters by species"| node_pet_domain
node_vet_domain -->|"geocodes addresses"| node_geocoder
node_owner -->|"manages account"| node_user_views
node_user_views -->|"validates input"| node_user_forms
node_user_views -->|"reads and updates"| node_user_domain
node_shop_views -->|"lists products"| node_shop_domain
node_shop_views -->|"filters by species"| node_pet_domain
node_homepage -->|"shows products"| node_shop_domain
node_homepage -->|"shows veterinarians"| node_vet_domain
node_posts -.->|"uses post records"| node_database
node_about -.->|"uses page records"| node_database
node_pet_domain -->|"validates age"| node_validators
node_user_domain -->|"uses validators"| node_validators
node_pet_domain -->|"persists records"| node_database
node_vet_domain -->|"persists records"| node_database
node_user_domain -->|"persists records"| node_database
node_shop_domain -->|"persists records"| node_database

click node_pet_views "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/pets/views.py"
click node_pet_forms "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/pets/forms.py"
click node_pet_domain "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/pets/models.py"
click node_pet_utils "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/pets/utils.py"
click node_vet_views "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/vets/views.py"
click node_vet_forms "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/vets/forms.py"
click node_vet_domain "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/vets/models.py"
click node_user_views "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/users/views.py"
click node_user_forms "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/users/forms.py"
click node_user_domain "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/users/models.py"
click node_shop_views "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/shop/views.py"
click node_shop_domain "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/shop/models.py"
click node_homepage "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/homepage/views.py"
click node_posts "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/posts/views.py"
click node_about "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/about/views.py"
click node_validators "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/core/validators.py"
click node_database "https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/vet_mate/settings.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_pet_views,node_pet_forms,node_pet_domain,node_pet_utils toneBlue
class node_vet_views,node_vet_forms,node_vet_domain toneAmber
class node_user_views,node_user_forms,node_user_domain toneMint
class node_shop_views,node_shop_domain,node_homepage,node_posts,node_about toneRose
class node_validators,node_database,node_owner,node_geocoder toneIndigo
```

## Components

### Pet care

- [Pet management](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/pets/views.py): `vet_mate/pets/views.py`
- [Pet forms](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/pets/forms.py): `vet_mate/pets/forms.py`
- [Pets and health](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/pets/models.py): `vet_mate/pets/models.py`
- [Health reports](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/pets/utils.py): `vet_mate/pets/utils.py`

### Veterinary services

- [Vet discovery and visits](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/vets/views.py): `vet_mate/vets/views.py`
- [Visit forms](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/vets/forms.py): `vet_mate/vets/forms.py`
- [Vets and clinics](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/vets/models.py): `vet_mate/vets/models.py`

### Accounts

- [Profiles and subscriptions](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/users/views.py): `vet_mate/users/views.py`
- [Account forms](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/users/forms.py): `vet_mate/users/forms.py`
- [Users and plans](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/users/models.py): `vet_mate/users/models.py`

### Catalog and content

- [Product catalog](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/shop/views.py): `vet_mate/shop/views.py`
- [Products and sponsors](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/shop/models.py): `vet_mate/shop/models.py`
- [Homepage listings](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/homepage/views.py): `vet_mate/homepage/views.py`
- [Posts](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/posts/views.py): `vet_mate/posts/views.py`
- [About pages](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/about/views.py): `vet_mate/about/views.py`

### Platform

- [Shared validation](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/core/validators.py): `vet_mate/core/validators.py`
- [SQLite database](https://github.com/underfmc/vet_mate_prework/blob/prod/vet_mate/vet_mate/settings.py): `vet_mate/vet_mate/settings.py`

### Other components

- **Pet owner**
- **Yandex geocoder**

## Connections

- Pet owner → Pet management: manages pets (evidence: `vet_mate/pets/views.py`)
- Pet management → Pet forms: validates input (evidence: `vet_mate/pets/views.py`)
- Pet management → Pets and health: reads and updates (evidence: `vet_mate/pets/views.py`)
- Pet management → Vets and clinics: records visits (evidence: `vet_mate/pets/views.py`)
- Pet management → Health reports: generates report (evidence: `vet_mate/pets/views.py`)
- Pet forms → Pets and health: builds forms (evidence: `vet_mate/pets/forms.py`)
- Pet owner → Vet discovery and visits: finds and books (evidence: `vet_mate/vets/views.py`)
- Vet discovery and visits → Visit forms: validates visits (evidence: `vet_mate/vets/views.py`)
- Vet discovery and visits → Vets and clinics: reads and records (evidence: `vet_mate/vets/views.py`)
- Vet discovery and visits → Pets and health: filters by species (evidence: `vet_mate/vets/views.py`)
- Vets and clinics → Yandex geocoder: geocodes addresses (evidence: `vet_mate/vets/models.py`)
- Pet owner → Profiles and subscriptions: manages account (evidence: `vet_mate/users/views.py`)
- Profiles and subscriptions → Account forms: validates input (evidence: `vet_mate/users/views.py`)
- Profiles and subscriptions → Users and plans: reads and updates (evidence: `vet_mate/users/views.py`)
- Product catalog → Products and sponsors: lists products (evidence: `vet_mate/shop/views.py`)
- Product catalog → Pets and health: filters by species (evidence: `vet_mate/shop/views.py`)
- Homepage listings → Products and sponsors: shows products (evidence: `vet_mate/homepage/views.py`)
- Homepage listings → Vets and clinics: shows veterinarians (evidence: `vet_mate/homepage/views.py`)
- Posts → SQLite database: uses post records
- About pages → SQLite database: uses page records
- Pets and health → Shared validation: validates age (evidence: `vet_mate/pets/models.py`)
- Users and plans → Shared validation: uses validators (evidence: `vet_mate/users/models.py`)
- Pets and health → SQLite database: persists records (evidence: `vet_mate/vet_mate/settings.py`)
- Vets and clinics → SQLite database: persists records (evidence: `vet_mate/vet_mate/settings.py`)
- Users and plans → SQLite database: persists records (evidence: `vet_mate/vet_mate/settings.py`)
- Products and sponsors → SQLite database: persists records (evidence: `vet_mate/vet_mate/settings.py`)
