2022-07-21 11:58:50 +00:00
|
|
|
from sqlalchemy import Column, String, JSON as JSONType
|
2022-08-11 05:53:14 +00:00
|
|
|
from base.orm import Base
|
2021-08-19 10:02:28 +00:00
|
|
|
|
2022-09-03 10:50:14 +00:00
|
|
|
|
2021-08-19 10:02:28 +00:00
|
|
|
class Notification(Base):
|
2022-09-03 10:50:14 +00:00
|
|
|
__tablename__ = "notification"
|
2021-08-19 10:02:28 +00:00
|
|
|
|
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-07-21 11:58:50 +00:00
|
|
|
|
2022-09-03 10:50:14 +00:00
|
|
|
# looks like frontend code
|