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