cryptic-game/python-daemon

View on GitHub
daemon/models/counter.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
from typing import Union

from sqlalchemy import Column, String, Integer

from ..database import db


class Counter(db.Base):
    """Counter table"""

    __tablename__ = "counter"

    user_id: Union[Column, str] = Column(String(36), primary_key=True, unique=True)
    value: Union[Column, int] = Column(Integer)