core/orm/notification.py

13 lines
347 B
Python
Raw Normal View History

from sqlalchemy import Column, String, JSON as JSONType
2022-08-11 05:53:14 +00:00
from base.orm import Base
2022-09-03 10:50:14 +00:00
class Notification(Base):
2022-09-03 10:50:14 +00:00
__tablename__ = "notification"
2022-09-03 10:50:14 +00:00
kind = Column(String, unique=True, primary_key=True)
template = Column(String, nullable=False)
variables = Column(JSONType, nullable=True) # [ <var1>, .. ]
2022-09-03 10:50:14 +00:00
# looks like frontend code