File size: 451 Bytes
71e71e8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | from peewee import *
from src.model.BaseModel import BaseModel
from src.model.User import User
class DisabledNotification(BaseModel):
"""
DisabledNotification class
"""
user = ForeignKeyField(
User, backref="disabled_notification_users", on_delete="CASCADE", on_update="CASCADE"
)
type = SmallIntegerField(null=True)
class Meta:
db_table = "disabled_notification"
DisabledNotification.create_table()
|