14 lines
348 B
Python
14 lines
348 B
Python
from sqlalchemy import Column, String, JSON as JSONType
|
|
|
|
from base.orm import Base
|
|
|
|
|
|
class Notification(Base):
|
|
__tablename__ = "notification"
|
|
|
|
kind = Column(String, unique=True, primary_key=True)
|
|
template = Column(String, nullable=False)
|
|
variables = Column(JSONType, nullable=True) # [ <var1>, .. ]
|
|
|
|
# looks like frontend code
|