mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
11 lines
335 B
Python
11 lines
335 B
Python
from nonebot_plugin_orm import Model
|
|
from sqlalchemy import String
|
|
from sqlalchemy.orm import Mapped, MappedAsDataclass, mapped_column
|
|
|
|
from .typing import Template
|
|
|
|
|
|
class TETRIOUserConfig(MappedAsDataclass, Model):
|
|
id: Mapped[int] = mapped_column(primary_key=True)
|
|
query_template: Mapped[Template] = mapped_column(String(2))
|