core/orm/notification.py

11 lines
357 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
class Notification(Base):
__tablename__ = 'notification'
2021-08-19 15:33:39 +00:00
kind: str = Column(String, unique = True, primary_key = True)
template: str = Column(String, nullable = False)
variables: JSONType = Column(JSONType, nullable = True) # [ <var1>, .. ]
2022-08-11 11:22:10 +00:00
# looks like frontend code