🗃️ Add basic database support using SQLAlchemy and Alembic
Some checks failed
ci / docker (push) Successful in 4m54s
Python formatting PEP8 / Python-PEP8 (push) Failing after 13s

This commit is contained in:
Finn Christiansen 2024-06-16 20:57:18 +02:00
parent d6792c91a8
commit 9a2a18172c
13 changed files with 325 additions and 13 deletions

View file

@ -0,0 +1,13 @@
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)