core/orm/notification.py
2021-08-20 11:08:32 +03:00

9 lines
349 B
Python

from sqlalchemy import Column, Integer, String, ForeignKey, JSON as JSONType
from orm.base import Base
class Notification(Base):
__tablename__ = 'notification'
kind: str = Column(String, unique = True, primary_key = True)
template: str = Column(String, nullable = False)
variables: JSONType = Column(JSONType, nullable = True) # [ <var1>, .. ]