import uuid
from django.db import models
from django.contrib.auth import get_user_model
# from django.db.models.fields import EmailField

# Create your models here.
User = get_user_model()


class Notifications(models.Model):
    key = models.UUIDField(primary_key=True, default=uuid.uuid4,
                           editable=False, unique=True)  # this unique key related to Hash
    time = models.TextField()
    # user = models.ForeignKey(verbose_name=('owner'), to=User,
    #              related_name="my_Feedback",blank = True, on_delete=models.CASCADE)
    title = models.CharField(max_length=250)
    description = models.TextField()
    inChecked = models.BooleanField(default=True)

import uuid
from django.db import models
from django.contrib.auth import get_user_model
# from django.db.models.fields import EmailField

# Create your models here.
User = get_user_model()


class Notifications(models.Model):
    key = models.UUIDField(primary_key=True, default=uuid.uuid4,
                           editable=False, unique=True)  # this unique key related to Hash
    time = models.TextField()
    # user = models.ForeignKey(verbose_name=('owner'), to=User,
    #              related_name="my_Feedback",blank = True, on_delete=models.CASCADE)
    title = models.CharField(max_length=250)
    description = models.TextField()
    inChecked = models.BooleanField(default=True)

# from django.db.models.fields import EmailField # Create your models here. # this unique key related to Hash # user = models.ForeignKey(verbose_name=('owner'), to=User, #              related_name="my_Feedback",blank = True, on_delete=models.CASCADE)