<reponame>ovchars2/sqa_lab9_ovchar305
from django.db import models
from django.contrib.auth.models import User

# Create your models here.
class Message(models.Model):
    title = models.CharField(max_length=100)
    owner = models.ForeignKey(User, on_delete=models.CASCADE)
    main_text = models.CharField(max_length=500)

    def __str__(self):
        return self.title