format and lint orm
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
from sqlalchemy import Column, String, JSON as JSONType
|
||||
from base.orm import Base
|
||||
|
||||
|
||||
class Notification(Base):
|
||||
__tablename__ = 'notification'
|
||||
__tablename__ = "notification"
|
||||
|
||||
kind: str = Column(String, unique = True, primary_key = True)
|
||||
template: str = Column(String, nullable = False)
|
||||
variables: JSONType = Column(JSONType, nullable = True) # [ <var1>, .. ]
|
||||
kind = Column(String, unique=True, primary_key=True)
|
||||
template = Column(String, nullable=False)
|
||||
variables = Column(JSONType, nullable=True) # [ <var1>, .. ]
|
||||
|
||||
# looks like frontend code
|
||||
# looks like frontend code
|
||||
|
Reference in New Issue
Block a user