fix: Finalize beanie migration
This commit is contained in:
parent
9ec12bb98c
commit
2521b7d6c9
3 changed files with 15 additions and 1 deletions
|
@ -17,6 +17,7 @@ __all__ = [
|
|||
"Autoreact",
|
||||
"Ban",
|
||||
"Config",
|
||||
"Filter",
|
||||
"Guess",
|
||||
"Kick",
|
||||
"Lock",
|
||||
|
@ -243,6 +244,7 @@ all_models = [
|
|||
Autoreact,
|
||||
Ban,
|
||||
Config,
|
||||
Filter,
|
||||
Guess,
|
||||
Kick,
|
||||
Lock,
|
||||
|
|
12
jarvis_core/db/models/captcha.py
Normal file
12
jarvis_core/db/models/captcha.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from datetime import datetime
|
||||
from beanie import Document
|
||||
from pydantic import Field
|
||||
|
||||
from jarvis_core.db.utils import get_now
|
||||
|
||||
|
||||
class Captcha(Document):
|
||||
user: int
|
||||
guild: int
|
||||
correct: str
|
||||
created_at: datetime = Field(default_factory=get_now)
|
|
@ -5,7 +5,7 @@ description = "JARVIS core"
|
|||
authors = ["Zevaryx <zevaryx@gmail.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
python = ">=3.10,<4"
|
||||
orjson = {version = "^3.6.6"}
|
||||
motor = "^3.1.1"
|
||||
PyYAML = {version = "^6.0"}
|
||||
|
|
Loading…
Add table
Reference in a new issue