core/orm/notification.py

9 lines
349 B
Python
Raw Normal View History

from sqlalchemy import Column, Integer, String, ForeignKey, JSON as JSONType
from orm.base 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)
2021-08-20 08:08:32 +00:00
variables: JSONType = Column(JSONType, nullable = True) # [ <var1>, .. ]