matrix-bot-praying-times/matrix_bot_praying_times/models/user.py
Finn Christiansen 9a2a18172c
Some checks failed
ci / docker (push) Successful in 4m54s
Python formatting PEP8 / Python-PEP8 (push) Failing after 13s
🗃️ Add basic database support using SQLAlchemy and Alembic
2024-06-16 20:57:18 +02:00

13 lines
297 B
Python

from sqlalchemy import Column, String, Integer
from ..db import Base
class User(Base):
__tablename__ = "user"
id = Column(Integer, primary_key=True)
username = Column(String)
location = Column(String)
room_id = Column(String)
reminder_time_in_minutes = Column(Integer)