summaryrefslogtreecommitdiff
path: root/tests/commands_sql/models.py
blob: fe5768b3dd69a034eb074a17792c384dc9588b91 (plain)
1
2
3
4
5
6
7
8
9
10
11
from django.db import models


class Comment(models.Model):
    pass


class Book(models.Model):
    title = models.CharField(max_length=100, db_index=True)
    comments = models.ManyToManyField(Comment)
    counter = models.PositiveIntegerField()