# demopkg.models

*module*

Pydantic models, documented through the `griffe_pydantic` extension.

[View source](https://github.com/ewels/starlight-pydocs/blob/main/fixtures/demopkg/src/demopkg/models.py#L1-L1)

## demopkg.models.User

*class* · *pydantic model*

```python
class User(BaseModel)
```

Bases: `BaseModel`

Someone who can own a report.

[View source](https://github.com/ewels/starlight-pydocs/blob/main/fixtures/demopkg/src/demopkg/models.py#L6-L17)

### demopkg.models.User.email

*attribute* · *pydantic field*

```python
email: str
```

Contact address, lowercased on validation.

[View source](https://github.com/ewels/starlight-pydocs/blob/main/fixtures/demopkg/src/demopkg/models.py#L10-L10)

### demopkg.models.User.name

*attribute* · *pydantic field*

```python
name: str
```

Display name of the user.

[View source](https://github.com/ewels/starlight-pydocs/blob/main/fixtures/demopkg/src/demopkg/models.py#L9-L9)

### demopkg.models.User.reports

*attribute* · *pydantic field*

```python
reports: int = 0
```

How many reports the user owns.

[View source](https://github.com/ewels/starlight-pydocs/blob/main/fixtures/demopkg/src/demopkg/models.py#L11-L11)
