from django.db import models


class Word(models.Model):
    word = models.CharField(max_length=50, default=None, db_index=True)


class Website(models.Model):
    title = models.CharField(max_length=100, null=True)
    url = models.CharField(max_length=10000, db_index=True)
    date = models.DateField(default='2000-01-01')
    click = models.IntegerField(default=0)
    ref = models.ManyToManyField('self', default=None, null=True,
        symmetrical=False)
    word = models.ManyToManyField(Word, through='Have')


class Have(models.Model):
    word = models.ForeignKey(Word, on_delete=models.CASCADE)
    website = models.ForeignKey(Website, on_delete=models.CASCADE)
    count = models.IntegerField(default=0)

93d91d8af0586a87d8b75e216fedbf5ce7bb8d00
<mask token>


class Website(models.Model):
    title = models.CharField(max_length=100, null=True)
    url = models.CharField(max_length=10000, db_index=True)
    date = models.DateField(default='2000-01-01')
    click = models.IntegerField(default=0)
    ref = models.ManyToManyField('self', default=None, null=True,
        symmetrical=False)
    word = models.ManyToManyField(Word, through='Have')


class Have(models.Model):
    word = models.ForeignKey(Word, on_delete=models.CASCADE)
    website = models.ForeignKey(Website, on_delete=models.CASCADE)
    count = models.IntegerField(default=0)

<mask token>


class Word(models.Model):
    <mask token>


class Website(models.Model):
    title = models.CharField(max_length=100, null=True)
    url = models.CharField(max_length=10000, db_index=True)
    date = models.DateField(default='2000-01-01')
    click = models.IntegerField(default=0)
    ref = models.ManyToManyField('self', default=None, null=True,
        symmetrical=False)
    word = models.ManyToManyField(Word, through='Have')


class Have(models.Model):
    word = models.ForeignKey(Word, on_delete=models.CASCADE)
    website = models.ForeignKey(Website, on_delete=models.CASCADE)
    count = models.IntegerField(default=0)

<mask token>


class Word(models.Model):
    word = models.CharField(max_length=50, default=None, db_index=True)


class Website(models.Model):
    title = models.CharField(max_length=100, null=True)
    url = models.CharField(max_length=10000, db_index=True)
    date = models.DateField(default='2000-01-01')
    click = models.IntegerField(default=0)
    ref = models.ManyToManyField('self', default=None, null=True,
        symmetrical=False)
    word = models.ManyToManyField(Word, through='Have')


class Have(models.Model):
    word = models.ForeignKey(Word, on_delete=models.CASCADE)
    website = models.ForeignKey(Website, on_delete=models.CASCADE)
    count = models.IntegerField(default=0)

from django.db import models


class Word(models.Model):
    word = models.CharField(max_length=50, default=None, db_index=True)


class Website(models.Model):
    title = models.CharField(max_length=100, null=True)
    url = models.CharField(max_length=10000, db_index=True)
    date = models.DateField(default='2000-01-01')
    click = models.IntegerField(default=0)
    ref = models.ManyToManyField('self', default=None, null=True,
        symmetrical=False)
    word = models.ManyToManyField(Word, through='Have')


class Have(models.Model):
    word = models.ForeignKey(Word, on_delete=models.CASCADE)
    website = models.ForeignKey(Website, on_delete=models.CASCADE)
    count = models.IntegerField(default=0)
