Files
core/orm/notification.py

11 lines
357 B
Python
Raw Normal View History

from sqlalchemy import Column, String, JSON as JSONType
2022-08-11 08:53:14 +03:00
from base.orm import Base
class Notification(Base):
__tablename__ = 'notification'
2021-08-19 18:33:39 +03: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 14:22:10 +03:00
# looks like frontend code