workouttest_backoffice/aitrainer_backoffice/controlling/models/notification.py
Tibor Bossanyi (Freelancer) 696ce5a368 V1.30 notification
2021-10-01 15:53:20 +02:00

18 lines
681 B
Python

from django.db import models
from aitrainer_backoffice.models.notification import Notification
from ..models import Customer
class NotificationHistory(models.Model):
notification_history_id = models.AutoField(primary_key=True)
notification = models.ForeignKey(Notification, on_delete=models.CASCADE)
customer = models.ForeignKey(Customer, on_delete=models.CASCADE)
response = models.CharField(max_length=255)
notification_date = models.DateField(blank=True, null=True)
class Meta:
db_table = 'notification_history'
app_label = 'controlling'
def __str__(self):
return f'{self.notification};{self.customer};{self.response}'