quivr/backend/modules/api_key/entity/api_key.py
Stan Girard 31c1802084
feat(api-keys): added customization (#1802)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2023-12-03 23:32:37 +01:00

12 lines
182 B
Python

from pydantic import BaseModel
class ApiKey(BaseModel):
api_key: str
key_id: str
days: int
only_chat: bool
name: str
creation_time: str
is_active: bool