🗃️ Add basic database support using SQLAlchemy and Alembic
This commit is contained in:
parent
d6792c91a8
commit
9a2a18172c
13 changed files with 325 additions and 13 deletions
0
matrix_bot_praying_times/models/__init__.py
Normal file
0
matrix_bot_praying_times/models/__init__.py
Normal file
13
matrix_bot_praying_times/models/user.py
Normal file
13
matrix_bot_praying_times/models/user.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue